xref: /libtiff-4.0.7/configure (revision bdd91bbd)
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.4beta.
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.4beta'
594PACKAGE_STRING='LibTIFF Software 4.0.4beta'
595PACKAGE_BUGREPORT='[email protected]'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBDIR
638WIN32_IO_FALSE
639WIN32_IO_TRUE
640HAVE_OPENGL_FALSE
641HAVE_OPENGL_TRUE
642GLUT_LIBS
643GLUT_CFLAGS
644GLU_LIBS
645GLU_CFLAGS
646GL_LIBS
647GL_CFLAGS
648PTHREAD_CFLAGS
649PTHREAD_LIBS
650PTHREAD_CC
651ax_pthread_config
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657HAVE_CXX_FALSE
658HAVE_CXX_TRUE
659HAVE_LZMA_FALSE
660HAVE_LZMA_TRUE
661HAVE_JBIG_FALSE
662HAVE_JBIG_TRUE
663HAVE_JPEG_FALSE
664HAVE_JPEG_TRUE
665LIBTIFF_DOCDIR
666HAVE_RPATH_FALSE
667HAVE_RPATH_TRUE
668LIBOBJS
669tiff_libs_private
670CXXCPP
671am__fastdepCXX_FALSE
672am__fastdepCXX_TRUE
673CXXDEPMODE
674ac_ct_CXX
675CXXFLAGS
676CXX
677CPP
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687NM
688ac_ct_DUMPBIN
689DUMPBIN
690LD
691FGREP
692EGREP
693GREP
694SED
695LIBTOOL
696OBJDUMP
697DLLTOOL
698AS
699HAVE_LD_VERSION_SCRIPT_FALSE
700HAVE_LD_VERSION_SCRIPT_TRUE
701LN_S
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
705am__nodep
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719LIBTIFF_RELEASE_DATE
720LIBTIFF_VERSION_INFO
721LIBTIFF_VERSION
722LIBTIFF_ALPHA_VERSION
723LIBTIFF_MICRO_VERSION
724LIBTIFF_MINOR_VERSION
725LIBTIFF_MAJOR_VERSION
726MAINT
727MAINTAINER_MODE_FALSE
728MAINTAINER_MODE_TRUE
729AM_BACKSLASH
730AM_DEFAULT_VERBOSITY
731AM_DEFAULT_V
732AM_V
733am__untar
734am__tar
735AMTAR
736am__leading_dot
737SET_MAKE
738AWK
739mkdir_p
740MKDIR_P
741INSTALL_STRIP_PROGRAM
742STRIP
743install_sh
744MAKEINFO
745AUTOHEADER
746AUTOMAKE
747AUTOCONF
748ACLOCAL
749VERSION
750PACKAGE
751CYGPATH_W
752am__isrc
753INSTALL_DATA
754INSTALL_SCRIPT
755INSTALL_PROGRAM
756host_os
757host_vendor
758host_cpu
759host
760build_os
761build_vendor
762build_cpu
763build
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783localstatedir
784sharedstatedir
785sysconfdir
786datadir
787datarootdir
788libexecdir
789sbindir
790bindir
791program_transform_name
792prefix
793exec_prefix
794PACKAGE_URL
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
802ac_subst_files=''
803ac_user_opts='
804enable_option_checking
805enable_silent_rules
806enable_maintainer_mode
807enable_dependency_tracking
808enable_ld_version_script
809enable_shared
810enable_static
811with_pic
812enable_fast_install
813with_aix_soname
814with_gnu_ld
815with_sysroot
816enable_libtool_lock
817enable_rpath
818enable_largefile
819with_docdir
820enable_ccitt
821enable_packbits
822enable_lzw
823enable_thunder
824enable_next
825enable_logluv
826enable_mdi
827enable_zlib
828with_zlib_include_dir
829with_zlib_lib_dir
830enable_pixarlog
831enable_jpeg
832with_jpeg_include_dir
833with_jpeg_lib_dir
834enable_old_jpeg
835enable_jbig
836with_jbig_include_dir
837with_jbig_lib_dir
838enable_lzma
839with_lzma_include_dir
840with_lzma_lib_dir
841enable_jpeg12
842with_jpeg12_include_dir
843with_jpeg12_lib
844enable_cxx
845with_x
846enable_win32_io
847enable_strip_chopping
848with_default_strip_size
849enable_defer_strile_load
850enable_chunky_strip_read
851enable_extrasample_as_alpha
852enable_check_ycbcr_subsampling
853'
854      ac_precious_vars='build_alias
855host_alias
856target_alias
857CC
858CFLAGS
859LDFLAGS
860LIBS
861CPPFLAGS
862CPP
863CXX
864CXXFLAGS
865CCC
866CXXCPP
867XMKMF'
868
869
870# Initialize some variables set by options.
871ac_init_help=
872ac_init_version=false
873ac_unrecognized_opts=
874ac_unrecognized_sep=
875# The variables have the same names as the options, with
876# dashes changed to underlines.
877cache_file=/dev/null
878exec_prefix=NONE
879no_create=
880no_recursion=
881prefix=NONE
882program_prefix=NONE
883program_suffix=NONE
884program_transform_name=s,x,x,
885silent=
886site=
887srcdir=
888verbose=
889x_includes=NONE
890x_libraries=NONE
891
892# Installation directory options.
893# These are left unexpanded so users can "make install exec_prefix=/foo"
894# and all the variables that are supposed to be based on exec_prefix
895# by default will actually change.
896# Use braces instead of parens because sh, perl, etc. also accept them.
897# (The list follows the same order as the GNU Coding Standards.)
898bindir='${exec_prefix}/bin'
899sbindir='${exec_prefix}/sbin'
900libexecdir='${exec_prefix}/libexec'
901datarootdir='${prefix}/share'
902datadir='${datarootdir}'
903sysconfdir='${prefix}/etc'
904sharedstatedir='${prefix}/com'
905localstatedir='${prefix}/var'
906includedir='${prefix}/include'
907oldincludedir='/usr/include'
908docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909infodir='${datarootdir}/info'
910htmldir='${docdir}'
911dvidir='${docdir}'
912pdfdir='${docdir}'
913psdir='${docdir}'
914libdir='${exec_prefix}/lib'
915localedir='${datarootdir}/locale'
916mandir='${datarootdir}/man'
917
918ac_prev=
919ac_dashdash=
920for ac_option
921do
922  # If the previous option needs an argument, assign it.
923  if test -n "$ac_prev"; then
924    eval $ac_prev=\$ac_option
925    ac_prev=
926    continue
927  fi
928
929  case $ac_option in
930  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931  *=)   ac_optarg= ;;
932  *)    ac_optarg=yes ;;
933  esac
934
935  # Accept the important Cygnus configure options, so we can diagnose typos.
936
937  case $ac_dashdash$ac_option in
938  --)
939    ac_dashdash=yes ;;
940
941  -bindir | --bindir | --bindi | --bind | --bin | --bi)
942    ac_prev=bindir ;;
943  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944    bindir=$ac_optarg ;;
945
946  -build | --build | --buil | --bui | --bu)
947    ac_prev=build_alias ;;
948  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949    build_alias=$ac_optarg ;;
950
951  -cache-file | --cache-file | --cache-fil | --cache-fi \
952  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953    ac_prev=cache_file ;;
954  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956    cache_file=$ac_optarg ;;
957
958  --config-cache | -C)
959    cache_file=config.cache ;;
960
961  -datadir | --datadir | --datadi | --datad)
962    ac_prev=datadir ;;
963  -datadir=* | --datadir=* | --datadi=* | --datad=*)
964    datadir=$ac_optarg ;;
965
966  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967  | --dataroo | --dataro | --datar)
968    ac_prev=datarootdir ;;
969  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971    datarootdir=$ac_optarg ;;
972
973  -disable-* | --disable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: $ac_useropt"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=no ;;
988
989  -docdir | --docdir | --docdi | --doc | --do)
990    ac_prev=docdir ;;
991  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992    docdir=$ac_optarg ;;
993
994  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995    ac_prev=dvidir ;;
996  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997    dvidir=$ac_optarg ;;
998
999  -enable-* | --enable-*)
1000    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001    # Reject names that are not valid shell variable names.
1002    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003      as_fn_error $? "invalid feature name: $ac_useropt"
1004    ac_useropt_orig=$ac_useropt
1005    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006    case $ac_user_opts in
1007      *"
1008"enable_$ac_useropt"
1009"*) ;;
1010      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011	 ac_unrecognized_sep=', ';;
1012    esac
1013    eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017  | --exec | --exe | --ex)
1018    ac_prev=exec_prefix ;;
1019  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021  | --exec=* | --exe=* | --ex=*)
1022    exec_prefix=$ac_optarg ;;
1023
1024  -gas | --gas | --ga | --g)
1025    # Obsolete; use --with-gas.
1026    with_gas=yes ;;
1027
1028  -help | --help | --hel | --he | -h)
1029    ac_init_help=long ;;
1030  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031    ac_init_help=recursive ;;
1032  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033    ac_init_help=short ;;
1034
1035  -host | --host | --hos | --ho)
1036    ac_prev=host_alias ;;
1037  -host=* | --host=* | --hos=* | --ho=*)
1038    host_alias=$ac_optarg ;;
1039
1040  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041    ac_prev=htmldir ;;
1042  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043  | --ht=*)
1044    htmldir=$ac_optarg ;;
1045
1046  -includedir | --includedir | --includedi | --included | --include \
1047  | --includ | --inclu | --incl | --inc)
1048    ac_prev=includedir ;;
1049  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050  | --includ=* | --inclu=* | --incl=* | --inc=*)
1051    includedir=$ac_optarg ;;
1052
1053  -infodir | --infodir | --infodi | --infod | --info | --inf)
1054    ac_prev=infodir ;;
1055  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056    infodir=$ac_optarg ;;
1057
1058  -libdir | --libdir | --libdi | --libd)
1059    ac_prev=libdir ;;
1060  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061    libdir=$ac_optarg ;;
1062
1063  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064  | --libexe | --libex | --libe)
1065    ac_prev=libexecdir ;;
1066  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067  | --libexe=* | --libex=* | --libe=*)
1068    libexecdir=$ac_optarg ;;
1069
1070  -localedir | --localedir | --localedi | --localed | --locale)
1071    ac_prev=localedir ;;
1072  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073    localedir=$ac_optarg ;;
1074
1075  -localstatedir | --localstatedir | --localstatedi | --localstated \
1076  | --localstate | --localstat | --localsta | --localst | --locals)
1077    ac_prev=localstatedir ;;
1078  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080    localstatedir=$ac_optarg ;;
1081
1082  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083    ac_prev=mandir ;;
1084  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085    mandir=$ac_optarg ;;
1086
1087  -nfp | --nfp | --nf)
1088    # Obsolete; use --without-fp.
1089    with_fp=no ;;
1090
1091  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092  | --no-cr | --no-c | -n)
1093    no_create=yes ;;
1094
1095  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097    no_recursion=yes ;;
1098
1099  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101  | --oldin | --oldi | --old | --ol | --o)
1102    ac_prev=oldincludedir ;;
1103  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106    oldincludedir=$ac_optarg ;;
1107
1108  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109    ac_prev=prefix ;;
1110  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111    prefix=$ac_optarg ;;
1112
1113  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114  | --program-pre | --program-pr | --program-p)
1115    ac_prev=program_prefix ;;
1116  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118    program_prefix=$ac_optarg ;;
1119
1120  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121  | --program-suf | --program-su | --program-s)
1122    ac_prev=program_suffix ;;
1123  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125    program_suffix=$ac_optarg ;;
1126
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    ac_prev=program_transform_name ;;
1135  -program-transform-name=* | --program-transform-name=* \
1136  | --program-transform-nam=* | --program-transform-na=* \
1137  | --program-transform-n=* | --program-transform-=* \
1138  | --program-transform=* | --program-transfor=* \
1139  | --program-transfo=* | --program-transf=* \
1140  | --program-trans=* | --program-tran=* \
1141  | --progr-tra=* | --program-tr=* | --program-t=*)
1142    program_transform_name=$ac_optarg ;;
1143
1144  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145    ac_prev=pdfdir ;;
1146  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147    pdfdir=$ac_optarg ;;
1148
1149  -psdir | --psdir | --psdi | --psd | --ps)
1150    ac_prev=psdir ;;
1151  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152    psdir=$ac_optarg ;;
1153
1154  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155  | -silent | --silent | --silen | --sile | --sil)
1156    silent=yes ;;
1157
1158  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159    ac_prev=sbindir ;;
1160  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161  | --sbi=* | --sb=*)
1162    sbindir=$ac_optarg ;;
1163
1164  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166  | --sharedst | --shareds | --shared | --share | --shar \
1167  | --sha | --sh)
1168    ac_prev=sharedstatedir ;;
1169  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172  | --sha=* | --sh=*)
1173    sharedstatedir=$ac_optarg ;;
1174
1175  -site | --site | --sit)
1176    ac_prev=site ;;
1177  -site=* | --site=* | --sit=*)
1178    site=$ac_optarg ;;
1179
1180  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181    ac_prev=srcdir ;;
1182  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183    srcdir=$ac_optarg ;;
1184
1185  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186  | --syscon | --sysco | --sysc | --sys | --sy)
1187    ac_prev=sysconfdir ;;
1188  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190    sysconfdir=$ac_optarg ;;
1191
1192  -target | --target | --targe | --targ | --tar | --ta | --t)
1193    ac_prev=target_alias ;;
1194  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195    target_alias=$ac_optarg ;;
1196
1197  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198    verbose=yes ;;
1199
1200  -version | --version | --versio | --versi | --vers | -V)
1201    ac_init_version=: ;;
1202
1203  -with-* | --with-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: $ac_useropt"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=\$ac_optarg ;;
1218
1219  -without-* | --without-*)
1220    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223      as_fn_error $? "invalid package name: $ac_useropt"
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"with_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval with_$ac_useropt=no ;;
1234
1235  --x)
1236    # Obsolete; use --with-x.
1237    with_x=yes ;;
1238
1239  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240  | --x-incl | --x-inc | --x-in | --x-i)
1241    ac_prev=x_includes ;;
1242  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244    x_includes=$ac_optarg ;;
1245
1246  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248    ac_prev=x_libraries ;;
1249  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251    x_libraries=$ac_optarg ;;
1252
1253  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information"
1255    ;;
1256
1257  *=*)
1258    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259    # Reject names that are not valid shell variable names.
1260    case $ac_envvar in #(
1261      '' | [0-9]* | *[!_$as_cr_alnum]* )
1262      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263    esac
1264    eval $ac_envvar=\$ac_optarg
1265    export $ac_envvar ;;
1266
1267  *)
1268    # FIXME: should be removed in autoconf 3.0.
1269    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273    ;;
1274
1275  esac
1276done
1277
1278if test -n "$ac_prev"; then
1279  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280  as_fn_error $? "missing argument to $ac_option"
1281fi
1282
1283if test -n "$ac_unrecognized_opts"; then
1284  case $enable_option_checking in
1285    no) ;;
1286    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288  esac
1289fi
1290
1291# Check all directory arguments for consistency.
1292for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293		datadir sysconfdir sharedstatedir localstatedir includedir \
1294		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295		libdir localedir mandir
1296do
1297  eval ac_val=\$$ac_var
1298  # Remove trailing slashes.
1299  case $ac_val in
1300    */ )
1301      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302      eval $ac_var=\$ac_val;;
1303  esac
1304  # Be sure to have absolute directory names.
1305  case $ac_val in
1306    [\\/$]* | ?:[\\/]* )  continue;;
1307    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308  esac
1309  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321  if test "x$build_alias" = x; then
1322    cross_compiling=maybe
1323  elif test "x$build_alias" != "x$host_alias"; then
1324    cross_compiling=yes
1325  fi
1326fi
1327
1328ac_tool_prefix=
1329test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331test "$silent" = yes && exec 6>/dev/null
1332
1333
1334ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335ac_ls_di=`ls -di .` &&
1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337  as_fn_error $? "working directory cannot be determined"
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339  as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342# Find the source files, if location was not specified.
1343if test -z "$srcdir"; then
1344  ac_srcdir_defaulted=yes
1345  # Try the directory containing this script, then the parent directory.
1346  ac_confdir=`$as_dirname -- "$as_myself" ||
1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348	 X"$as_myself" : 'X\(//\)[^/]' \| \
1349	 X"$as_myself" : 'X\(//\)$' \| \
1350	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351$as_echo X"$as_myself" |
1352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)[^/].*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\).*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  s/.*/./; q'`
1369  srcdir=$ac_confdir
1370  if test ! -r "$srcdir/$ac_unique_file"; then
1371    srcdir=..
1372  fi
1373else
1374  ac_srcdir_defaulted=no
1375fi
1376if test ! -r "$srcdir/$ac_unique_file"; then
1377  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383	pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures LibTIFF Software 4.0.4beta to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking ...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430                          [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                          [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR            user executables [EPREFIX/bin]
1443  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR        program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448  --libdir=DIR            object code libraries [EPREFIX/lib]
1449  --includedir=DIR        C header files [PREFIX/include]
1450  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453  --infodir=DIR           info documentation [DATAROOTDIR/info]
1454  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455  --mandir=DIR            man documentation [DATAROOTDIR/man]
1456  --docdir=DIR            documentation root [DATAROOTDIR/doc/tiff]
1457  --htmldir=DIR           html documentation [DOCDIR]
1458  --dvidir=DIR            dvi documentation [DOCDIR]
1459  --pdfdir=DIR            pdf documentation [DOCDIR]
1460  --psdir=DIR             ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465Program names:
1466  --program-prefix=PREFIX            prepend PREFIX to installed program names
1467  --program-suffix=SUFFIX            append SUFFIX to installed program names
1468  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470X features:
1471  --x-includes=DIR    X include files are in DIR
1472  --x-libraries=DIR   X library files are in DIR
1473
1474System types:
1475  --build=BUILD     configure for building on BUILD [guessed]
1476  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477_ACEOF
1478fi
1479
1480if test -n "$ac_init_help"; then
1481  case $ac_init_help in
1482     short | recursive ) echo "Configuration of LibTIFF Software 4.0.4beta:";;
1483   esac
1484  cat <<\_ACEOF
1485
1486Optional Features:
1487  --disable-option-checking  ignore unrecognized --enable/--with options
1488  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490  --enable-silent-rules   less verbose build output (undo: "make V=1")
1491  --disable-silent-rules  verbose build output (undo: "make V=0")
1492  --enable-maintainer-mode
1493                          enable make rules and dependencies not useful (and
1494                          sometimes confusing) to the casual installer
1495  --enable-dependency-tracking
1496                          do not reject slow dependency extractors
1497  --disable-dependency-tracking
1498                          speeds up one-time build
1499  --enable-ld-version-script
1500                          enable linker version script (default is disabled)
1501  --enable-shared[=PKGS]  build shared libraries [default=yes]
1502  --enable-static[=PKGS]  build static libraries [default=yes]
1503  --enable-fast-install[=PKGS]
1504                          optimize for fast installation [default=yes]
1505  --disable-libtool-lock  avoid locking (might break parallel builds)
1506  --enable-rpath          Enable runtime linker paths (-R libtool option)
1507  --disable-largefile     omit support for large files
1508  --disable-ccitt         disable support for CCITT Group 3 & 4 algorithms
1509  --disable-packbits      disable support for Macintosh PackBits algorithm
1510  --disable-lzw           disable support for LZW algorithm
1511  --disable-thunder       disable support for ThunderScan 4-bit RLE algorithm
1512  --disable-next          disable support for NeXT 2-bit RLE algorithm
1513  --disable-logluv        disable support for LogLuv high dynamic range
1514                          encoding
1515  --disable-mdi           disable support for Microsoft Document Imaging
1516  --disable-zlib          disable Zlib usage (required for Deflate
1517                          compression, enabled by default)
1518  --disable-pixarlog      disable support for Pixar log-format algorithm
1519                          (requires Zlib)
1520  --disable-jpeg          disable IJG JPEG library usage (required for JPEG
1521                          compression, enabled by default)
1522  --disable-old-jpeg      disable support for Old JPEG compresson (read-only,
1523                          enabled by default)
1524  --disable-jbig          disable JBIG-KIT usage (required for ISO JBIG
1525                          compression, enabled by default)
1526  --disable-lzma          disable liblzma usage (required for LZMA2
1527                          compression, enabled by default)
1528  --enable-jpeg12         enable libjpeg 8/12bit dual mode
1529  --enable-cxx            enable C++ stream API building (requires C++
1530                          compiler)
1531  --disable-win32-io      disable Win32 I/O (Windows only, enabled by default
1532                          except for Cygwin)
1533  --disable-strip-chopping
1534                          disable support for strip chopping (whether or not
1535                          to convert single-strip uncompressed images to
1536                          mutiple strips of specified size to reduce memory
1537                          usage)
1538  --enable-defer-strile-load
1539                          enable deferred strip/tile offset/size loading
1540                          (experimental)
1541  --enable-chunky-strip-read
1542                          enable reading large strips in chunks for
1543                          TIFFReadScanline() (experimental)
1544  --disable-extrasample-as-alpha
1545                          the RGBA interface will treat a fourth sample with
1546                          no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1547                          packages produce RGBA files but don't mark the alpha
1548                          properly
1549  --disable-check-ycbcr-subsampling
1550                          disable picking up YCbCr subsampling info from the
1551                          JPEG data stream to support files lacking the tag
1552
1553Optional Packages:
1554  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1557                          both]
1558  --with-aix-soname=aix|svr4|both
1559                          shared library versioning (aka "SONAME") variant to
1560                          provide on AIX, [default=aix].
1561  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1562  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1563                          compiler's sysroot if not specified).
1564  --with-docdir=DIR       directory where documentation should be installed
1565  --with-zlib-include-dir=DIR
1566                          location of Zlib headers
1567  --with-zlib-lib-dir=DIR location of Zlib library binary
1568  --with-jpeg-include-dir=DIR
1569                          location of IJG JPEG library headers
1570  --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
1571  --with-jbig-include-dir=DIR
1572                          location of JBIG-KIT headers
1573  --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1574  --with-lzma-include-dir=DIR
1575                          location of liblzma headers
1576  --with-lzma-lib-dir=DIR location of liblzma library binary
1577  --with-jpeg12-include-dir=DIR
1578                          location of libjpeg 12bit headers
1579  --with-jpeg12-lib=LIBRARY
1580                          path to libjpeg 12bit library
1581  --with-x                use the X Window System
1582  --with-default-strip-size=SIZE
1583                          default size of the strip in bytes (when strip
1584                          chopping enabled) [[default=8192]]
1585
1586Some influential environment variables:
1587  CC          C compiler command
1588  CFLAGS      C compiler flags
1589  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1590              nonstandard directory <lib dir>
1591  LIBS        libraries to pass to the linker, e.g. -l<library>
1592  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593              you have headers in a nonstandard directory <include dir>
1594  CPP         C preprocessor
1595  CXX         C++ compiler command
1596  CXXFLAGS    C++ compiler flags
1597  CXXCPP      C++ preprocessor
1598  XMKMF       Path to xmkmf, Makefile generator for X Window System
1599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603Report bugs to <[email protected]>.
1604_ACEOF
1605ac_status=$?
1606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609  # If there are subdirs, report their specific --help.
1610  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611    test -d "$ac_dir" ||
1612      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613      continue
1614    ac_builddir=.
1615
1616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
1619  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620  # A ".." for each directory in $ac_dir_suffix.
1621  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622  case $ac_top_builddir_sub in
1623  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625  esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
1631
1632case $srcdir in
1633  .)  # We are building in place.
1634    ac_srcdir=.
1635    ac_top_srcdir=$ac_top_builddir_sub
1636    ac_abs_top_srcdir=$ac_pwd ;;
1637  [\\/]* | ?:[\\/]* )  # Absolute name.
1638    ac_srcdir=$srcdir$ac_dir_suffix;
1639    ac_top_srcdir=$srcdir
1640    ac_abs_top_srcdir=$srcdir ;;
1641  *) # Relative name.
1642    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643    ac_top_srcdir=$ac_top_build_prefix$srcdir
1644    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645esac
1646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648    cd "$ac_dir" || { ac_status=$?; continue; }
1649    # Check for guested configure.
1650    if test -f "$ac_srcdir/configure.gnu"; then
1651      echo &&
1652      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653    elif test -f "$ac_srcdir/configure"; then
1654      echo &&
1655      $SHELL "$ac_srcdir/configure" --help=recursive
1656    else
1657      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658    fi || ac_status=$?
1659    cd "$ac_pwd" || { ac_status=$?; break; }
1660  done
1661fi
1662
1663test -n "$ac_init_help" && exit $ac_status
1664if $ac_init_version; then
1665  cat <<\_ACEOF
1666LibTIFF Software configure 4.0.4beta
1667generated by GNU Autoconf 2.69
1668
1669Copyright (C) 2012 Free Software Foundation, Inc.
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
1673  exit
1674fi
1675
1676## ------------------------ ##
1677## Autoconf initialization. ##
1678## ------------------------ ##
1679
1680# ac_fn_c_try_compile LINENO
1681# --------------------------
1682# Try to compile conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_compile ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  rm -f conftest.$ac_objext
1687  if { { ac_try="$ac_compile"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_compile") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && {
1703	 test -z "$ac_c_werror_flag" ||
1704	 test ! -s conftest.err
1705       } && test -s conftest.$ac_objext; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711	ac_retval=1
1712fi
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_compile
1717
1718# ac_fn_c_try_link LINENO
1719# -----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_link ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  rm -f conftest.$ac_objext conftest$ac_exeext
1725  if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_link") 2>conftest.err
1733  ac_status=$?
1734  if test -s conftest.err; then
1735    grep -v '^ *+' conftest.err >conftest.er1
1736    cat conftest.er1 >&5
1737    mv -f conftest.er1 conftest.err
1738  fi
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } && {
1741	 test -z "$ac_c_werror_flag" ||
1742	 test ! -s conftest.err
1743       } && test -s conftest$ac_exeext && {
1744	 test "$cross_compiling" = yes ||
1745	 test -x conftest$ac_exeext
1746       }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752	ac_retval=1
1753fi
1754  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756  # interfere with the next link command; also delete a directory that is
1757  # left behind by Apple's compiler.  We do this before executing the actions.
1758  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_link
1763
1764# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765# -------------------------------------------------------
1766# Tests whether HEADER exists and can be compiled using the include files in
1767# INCLUDES, setting the cache variable VAR accordingly.
1768ac_fn_c_check_header_compile ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772$as_echo_n "checking for $2... " >&6; }
1773if eval \${$3+:} false; then :
1774  $as_echo_n "(cached) " >&6
1775else
1776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777/* end confdefs.h.  */
1778$4
1779#include <$2>
1780_ACEOF
1781if ac_fn_c_try_compile "$LINENO"; then :
1782  eval "$3=yes"
1783else
1784  eval "$3=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_header_compile
1794
1795# ac_fn_c_try_cpp LINENO
1796# ----------------------
1797# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_c_try_cpp ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if { { ac_try="$ac_cpp conftest.$ac_ext"
1802case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } > conftest.i && {
1817	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1818	 test ! -s conftest.err
1819       }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825    ac_retval=1
1826fi
1827  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828  as_fn_set_status $ac_retval
1829
1830} # ac_fn_c_try_cpp
1831
1832# ac_fn_c_try_run LINENO
1833# ----------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1835# that executables *can* be run.
1836ac_fn_c_try_run ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_link") 2>&5
1847  ac_status=$?
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850  { { case "(($ac_try" in
1851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852  *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856  (eval "$ac_try") 2>&5
1857  ac_status=$?
1858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; }; }; then :
1860  ac_retval=0
1861else
1862  $as_echo "$as_me: program exited with status $ac_status" >&5
1863       $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866       ac_retval=$ac_status
1867fi
1868  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870  as_fn_set_status $ac_retval
1871
1872} # ac_fn_c_try_run
1873
1874# ac_fn_c_check_func LINENO FUNC VAR
1875# ----------------------------------
1876# Tests whether FUNC exists, setting the cache variable VAR accordingly
1877ac_fn_c_check_func ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval \${$3+:} false; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1889#define $2 innocuous_$2
1890
1891/* System header to define __stub macros and hopefully few prototypes,
1892    which can conflict with char $2 (); below.
1893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894    <limits.h> exists even on freestanding compilers.  */
1895
1896#ifdef __STDC__
1897# include <limits.h>
1898#else
1899# include <assert.h>
1900#endif
1901
1902#undef $2
1903
1904/* Override any GCC internal prototype to avoid an error.
1905   Use char because int might match the return type of a GCC
1906   builtin and then its argument prototype would still apply.  */
1907#ifdef __cplusplus
1908extern "C"
1909#endif
1910char $2 ();
1911/* The GNU C library defines this for functions which it implements
1912    to always fail with ENOSYS.  Some functions are actually named
1913    something starting with __ and the normal name is an alias.  */
1914#if defined __stub_$2 || defined __stub___$2
1915choke me
1916#endif
1917
1918int
1919main ()
1920{
1921return $2 ();
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_link "$LINENO"; then :
1927  eval "$3=yes"
1928else
1929  eval "$3=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext \
1932    conftest$ac_exeext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938
1939} # ac_fn_c_check_func
1940
1941# ac_fn_cxx_try_compile LINENO
1942# ----------------------------
1943# Try to compile conftest.$ac_ext, and return whether this succeeded.
1944ac_fn_cxx_try_compile ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  rm -f conftest.$ac_objext
1948  if { { ac_try="$ac_compile"
1949case "(($ac_try" in
1950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951  *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955  (eval "$ac_compile") 2>conftest.err
1956  ac_status=$?
1957  if test -s conftest.err; then
1958    grep -v '^ *+' conftest.err >conftest.er1
1959    cat conftest.er1 >&5
1960    mv -f conftest.er1 conftest.err
1961  fi
1962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963  test $ac_status = 0; } && {
1964	 test -z "$ac_cxx_werror_flag" ||
1965	 test ! -s conftest.err
1966       } && test -s conftest.$ac_objext; then :
1967  ac_retval=0
1968else
1969  $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972	ac_retval=1
1973fi
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_cxx_try_compile
1978
1979# ac_fn_cxx_try_cpp LINENO
1980# ------------------------
1981# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_cxx_try_cpp ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  if { { ac_try="$ac_cpp conftest.$ac_ext"
1986case "(($ac_try" in
1987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988  *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993  ac_status=$?
1994  if test -s conftest.err; then
1995    grep -v '^ *+' conftest.err >conftest.er1
1996    cat conftest.er1 >&5
1997    mv -f conftest.er1 conftest.err
1998  fi
1999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000  test $ac_status = 0; } > conftest.i && {
2001	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2002	 test ! -s conftest.err
2003       }; then :
2004  ac_retval=0
2005else
2006  $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009    ac_retval=1
2010fi
2011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012  as_fn_set_status $ac_retval
2013
2014} # ac_fn_cxx_try_cpp
2015
2016# ac_fn_cxx_try_link LINENO
2017# -------------------------
2018# Try to link conftest.$ac_ext, and return whether this succeeded.
2019ac_fn_cxx_try_link ()
2020{
2021  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022  rm -f conftest.$ac_objext conftest$ac_exeext
2023  if { { ac_try="$ac_link"
2024case "(($ac_try" in
2025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026  *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030  (eval "$ac_link") 2>conftest.err
2031  ac_status=$?
2032  if test -s conftest.err; then
2033    grep -v '^ *+' conftest.err >conftest.er1
2034    cat conftest.er1 >&5
2035    mv -f conftest.er1 conftest.err
2036  fi
2037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038  test $ac_status = 0; } && {
2039	 test -z "$ac_cxx_werror_flag" ||
2040	 test ! -s conftest.err
2041       } && test -s conftest$ac_exeext && {
2042	 test "$cross_compiling" = yes ||
2043	 test -x conftest$ac_exeext
2044       }; then :
2045  ac_retval=0
2046else
2047  $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050	ac_retval=1
2051fi
2052  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054  # interfere with the next link command; also delete a directory that is
2055  # left behind by Apple's compiler.  We do this before executing the actions.
2056  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058  as_fn_set_status $ac_retval
2059
2060} # ac_fn_cxx_try_link
2061
2062# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# -------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_c_check_header_mongrel ()
2068{
2069  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070  if eval \${$3+:} false; then :
2071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
2073if eval \${$3+:} false; then :
2074  $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080  # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089  ac_header_compiler=yes
2090else
2091  ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102#include <$2>
2103_ACEOF
2104if ac_fn_c_try_cpp "$LINENO"; then :
2105  ac_header_preproc=yes
2106else
2107  ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.i conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So?  What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115  yes:no: )
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120    ;;
2121  no:yes:* )
2122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2130    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132( $as_echo "## -------------------------------------- ##
2133## Report this to [email protected] ##
2134## -------------------------------------- ##"
2135     ) | sed "s/^/$as_me: WARNING:     /" >&2
2136    ;;
2137esac
2138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
2140if eval \${$3+:} false; then :
2141  $as_echo_n "(cached) " >&6
2142else
2143  eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2154# -------------------------------------------
2155# Tests whether TYPE exists after having included INCLUDES, setting cache
2156# variable VAR accordingly.
2157ac_fn_c_check_type ()
2158{
2159  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161$as_echo_n "checking for $2... " >&6; }
2162if eval \${$3+:} false; then :
2163  $as_echo_n "(cached) " >&6
2164else
2165  eval "$3=no"
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  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h.  */
2181$4
2182int
2183main ()
2184{
2185if (sizeof (($2)))
2186	    return 0;
2187  ;
2188  return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192
2193else
2194  eval "$3=yes"
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200eval ac_res=\$$3
2201	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202$as_echo "$ac_res" >&6; }
2203  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204
2205} # ac_fn_c_check_type
2206
2207# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2208# ---------------------------------------------
2209# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2210# accordingly.
2211ac_fn_c_check_decl ()
2212{
2213  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214  as_decl_name=`echo $2|sed 's/ *(.*//'`
2215  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2217$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2218if eval \${$3+:} false; then :
2219  $as_echo_n "(cached) " >&6
2220else
2221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h.  */
2223$4
2224int
2225main ()
2226{
2227#ifndef $as_decl_name
2228#ifdef __cplusplus
2229  (void) $as_decl_use;
2230#else
2231  (void) $as_decl_name;
2232#endif
2233#endif
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240  eval "$3=yes"
2241else
2242  eval "$3=no"
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245fi
2246eval ac_res=\$$3
2247	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248$as_echo "$ac_res" >&6; }
2249  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251} # ac_fn_c_check_decl
2252
2253# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2254# --------------------------------------------
2255# Tries to find the compile-time value of EXPR in a program that includes
2256# INCLUDES, setting VAR accordingly. Returns whether the value could be
2257# computed
2258ac_fn_c_compute_int ()
2259{
2260  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261  if test "$cross_compiling" = yes; then
2262    # Depending upon the size, compute the lo and hi bounds.
2263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264/* end confdefs.h.  */
2265$4
2266int
2267main ()
2268{
2269static int test_array [1 - 2 * !(($2) >= 0)];
2270test_array [0] = 0;
2271return test_array [0];
2272
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277if ac_fn_c_try_compile "$LINENO"; then :
2278  ac_lo=0 ac_mid=0
2279  while :; do
2280    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281/* end confdefs.h.  */
2282$4
2283int
2284main ()
2285{
2286static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287test_array [0] = 0;
2288return test_array [0];
2289
2290  ;
2291  return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_compile "$LINENO"; then :
2295  ac_hi=$ac_mid; break
2296else
2297  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298			if test $ac_lo -le $ac_mid; then
2299			  ac_lo= ac_hi=
2300			  break
2301			fi
2302			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305  done
2306else
2307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308/* end confdefs.h.  */
2309$4
2310int
2311main ()
2312{
2313static int test_array [1 - 2 * !(($2) < 0)];
2314test_array [0] = 0;
2315return test_array [0];
2316
2317  ;
2318  return 0;
2319}
2320_ACEOF
2321if ac_fn_c_try_compile "$LINENO"; then :
2322  ac_hi=-1 ac_mid=-1
2323  while :; do
2324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h.  */
2326$4
2327int
2328main ()
2329{
2330static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2331test_array [0] = 0;
2332return test_array [0];
2333
2334  ;
2335  return 0;
2336}
2337_ACEOF
2338if ac_fn_c_try_compile "$LINENO"; then :
2339  ac_lo=$ac_mid; break
2340else
2341  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2342			if test $ac_mid -le $ac_hi; then
2343			  ac_lo= ac_hi=
2344			  break
2345			fi
2346			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349  done
2350else
2351  ac_lo= ac_hi=
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356# Binary search between lo and hi bounds.
2357while test "x$ac_lo" != "x$ac_hi"; do
2358  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360/* end confdefs.h.  */
2361$4
2362int
2363main ()
2364{
2365static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2366test_array [0] = 0;
2367return test_array [0];
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373if ac_fn_c_try_compile "$LINENO"; then :
2374  ac_hi=$ac_mid
2375else
2376  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2377fi
2378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379done
2380case $ac_lo in #((
2381?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2382'') ac_retval=1 ;;
2383esac
2384  else
2385    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386/* end confdefs.h.  */
2387$4
2388static long int longval () { return $2; }
2389static unsigned long int ulongval () { return $2; }
2390#include <stdio.h>
2391#include <stdlib.h>
2392int
2393main ()
2394{
2395
2396  FILE *f = fopen ("conftest.val", "w");
2397  if (! f)
2398    return 1;
2399  if (($2) < 0)
2400    {
2401      long int i = longval ();
2402      if (i != ($2))
2403	return 1;
2404      fprintf (f, "%ld", i);
2405    }
2406  else
2407    {
2408      unsigned long int i = ulongval ();
2409      if (i != ($2))
2410	return 1;
2411      fprintf (f, "%lu", i);
2412    }
2413  /* Do not output a trailing newline, as this causes \r\n confusion
2414     on some platforms.  */
2415  return ferror (f) || fclose (f) != 0;
2416
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421if ac_fn_c_try_run "$LINENO"; then :
2422  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2423else
2424  ac_retval=1
2425fi
2426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2427  conftest.$ac_objext conftest.beam conftest.$ac_ext
2428rm -f conftest.val
2429
2430  fi
2431  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432  as_fn_set_status $ac_retval
2433
2434} # ac_fn_c_compute_int
2435cat >config.log <<_ACEOF
2436This file contains any messages produced by compilers while
2437running configure, to aid debugging if configure makes a mistake.
2438
2439It was created by LibTIFF Software $as_me 4.0.4beta, which was
2440generated by GNU Autoconf 2.69.  Invocation command line was
2441
2442  $ $0 $@
2443
2444_ACEOF
2445exec 5>>config.log
2446{
2447cat <<_ASUNAME
2448## --------- ##
2449## Platform. ##
2450## --------- ##
2451
2452hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2453uname -m = `(uname -m) 2>/dev/null || echo unknown`
2454uname -r = `(uname -r) 2>/dev/null || echo unknown`
2455uname -s = `(uname -s) 2>/dev/null || echo unknown`
2456uname -v = `(uname -v) 2>/dev/null || echo unknown`
2457
2458/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2459/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2460
2461/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2462/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2463/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2464/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2465/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2466/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2467/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2468
2469_ASUNAME
2470
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474  IFS=$as_save_IFS
2475  test -z "$as_dir" && as_dir=.
2476    $as_echo "PATH: $as_dir"
2477  done
2478IFS=$as_save_IFS
2479
2480} >&5
2481
2482cat >&5 <<_ACEOF
2483
2484
2485## ----------- ##
2486## Core tests. ##
2487## ----------- ##
2488
2489_ACEOF
2490
2491
2492# Keep a trace of the command line.
2493# Strip out --no-create and --no-recursion so they do not pile up.
2494# Strip out --silent because we don't want to record it for future runs.
2495# Also quote any args containing shell meta-characters.
2496# Make two passes to allow for proper duplicate-argument suppression.
2497ac_configure_args=
2498ac_configure_args0=
2499ac_configure_args1=
2500ac_must_keep_next=false
2501for ac_pass in 1 2
2502do
2503  for ac_arg
2504  do
2505    case $ac_arg in
2506    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2507    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2508    | -silent | --silent | --silen | --sile | --sil)
2509      continue ;;
2510    *\'*)
2511      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512    esac
2513    case $ac_pass in
2514    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2515    2)
2516      as_fn_append ac_configure_args1 " '$ac_arg'"
2517      if test $ac_must_keep_next = true; then
2518	ac_must_keep_next=false # Got value, back to normal.
2519      else
2520	case $ac_arg in
2521	  *=* | --config-cache | -C | -disable-* | --disable-* \
2522	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2523	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2524	  | -with-* | --with-* | -without-* | --without-* | --x)
2525	    case "$ac_configure_args0 " in
2526	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527	    esac
2528	    ;;
2529	  -* ) ac_must_keep_next=true ;;
2530	esac
2531      fi
2532      as_fn_append ac_configure_args " '$ac_arg'"
2533      ;;
2534    esac
2535  done
2536done
2537{ ac_configure_args0=; unset ac_configure_args0;}
2538{ ac_configure_args1=; unset ac_configure_args1;}
2539
2540# When interrupted or exit'd, cleanup temporary files, and complete
2541# config.log.  We remove comments because anyway the quotes in there
2542# would cause problems or look ugly.
2543# WARNING: Use '\'' to represent an apostrophe within the trap.
2544# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2545trap 'exit_status=$?
2546  # Save into config.log some information that might help in debugging.
2547  {
2548    echo
2549
2550    $as_echo "## ---------------- ##
2551## Cache variables. ##
2552## ---------------- ##"
2553    echo
2554    # The following way of writing the cache mishandles newlines in values,
2555(
2556  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2557    eval ac_val=\$$ac_var
2558    case $ac_val in #(
2559    *${as_nl}*)
2560      case $ac_var in #(
2561      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2562$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563      esac
2564      case $ac_var in #(
2565      _ | IFS | as_nl) ;; #(
2566      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2567      *) { eval $ac_var=; unset $ac_var;} ;;
2568      esac ;;
2569    esac
2570  done
2571  (set) 2>&1 |
2572    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2573    *${as_nl}ac_space=\ *)
2574      sed -n \
2575	"s/'\''/'\''\\\\'\'''\''/g;
2576	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577      ;; #(
2578    *)
2579      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2580      ;;
2581    esac |
2582    sort
2583)
2584    echo
2585
2586    $as_echo "## ----------------- ##
2587## Output variables. ##
2588## ----------------- ##"
2589    echo
2590    for ac_var in $ac_subst_vars
2591    do
2592      eval ac_val=\$$ac_var
2593      case $ac_val in
2594      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2595      esac
2596      $as_echo "$ac_var='\''$ac_val'\''"
2597    done | sort
2598    echo
2599
2600    if test -n "$ac_subst_files"; then
2601      $as_echo "## ------------------- ##
2602## File substitutions. ##
2603## ------------------- ##"
2604      echo
2605      for ac_var in $ac_subst_files
2606      do
2607	eval ac_val=\$$ac_var
2608	case $ac_val in
2609	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610	esac
2611	$as_echo "$ac_var='\''$ac_val'\''"
2612      done | sort
2613      echo
2614    fi
2615
2616    if test -s confdefs.h; then
2617      $as_echo "## ----------- ##
2618## confdefs.h. ##
2619## ----------- ##"
2620      echo
2621      cat confdefs.h
2622      echo
2623    fi
2624    test "$ac_signal" != 0 &&
2625      $as_echo "$as_me: caught signal $ac_signal"
2626    $as_echo "$as_me: exit $exit_status"
2627  } >&5
2628  rm -f core *.core core.conftest.* &&
2629    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630    exit $exit_status
2631' 0
2632for ac_signal in 1 2 13 15; do
2633  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2634done
2635ac_signal=0
2636
2637# confdefs.h avoids OS command line length limits that DEFS can exceed.
2638rm -f -r conftest* confdefs.h
2639
2640$as_echo "/* confdefs.h */" > confdefs.h
2641
2642# Predefined preprocessor variables.
2643
2644cat >>confdefs.h <<_ACEOF
2645#define PACKAGE_NAME "$PACKAGE_NAME"
2646_ACEOF
2647
2648cat >>confdefs.h <<_ACEOF
2649#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650_ACEOF
2651
2652cat >>confdefs.h <<_ACEOF
2653#define PACKAGE_VERSION "$PACKAGE_VERSION"
2654_ACEOF
2655
2656cat >>confdefs.h <<_ACEOF
2657#define PACKAGE_STRING "$PACKAGE_STRING"
2658_ACEOF
2659
2660cat >>confdefs.h <<_ACEOF
2661#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662_ACEOF
2663
2664cat >>confdefs.h <<_ACEOF
2665#define PACKAGE_URL "$PACKAGE_URL"
2666_ACEOF
2667
2668
2669# Let the site file select an alternate cache file if it wants to.
2670# Prefer an explicitly selected file to automatically selected ones.
2671ac_site_file1=NONE
2672ac_site_file2=NONE
2673if test -n "$CONFIG_SITE"; then
2674  # We do not want a PATH search for config.site.
2675  case $CONFIG_SITE in #((
2676    -*)  ac_site_file1=./$CONFIG_SITE;;
2677    */*) ac_site_file1=$CONFIG_SITE;;
2678    *)   ac_site_file1=./$CONFIG_SITE;;
2679  esac
2680elif test "x$prefix" != xNONE; then
2681  ac_site_file1=$prefix/share/config.site
2682  ac_site_file2=$prefix/etc/config.site
2683else
2684  ac_site_file1=$ac_default_prefix/share/config.site
2685  ac_site_file2=$ac_default_prefix/etc/config.site
2686fi
2687for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2688do
2689  test "x$ac_site_file" = xNONE && continue
2690  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2691    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2692$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2693    sed 's/^/| /' "$ac_site_file" >&5
2694    . "$ac_site_file" \
2695      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697as_fn_error $? "failed to load site script $ac_site_file
2698See \`config.log' for more details" "$LINENO" 5; }
2699  fi
2700done
2701
2702if test -r "$cache_file"; then
2703  # Some versions of bash will fail to source /dev/null (special files
2704  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2705  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2706    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2707$as_echo "$as_me: loading cache $cache_file" >&6;}
2708    case $cache_file in
2709      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2710      *)                      . "./$cache_file";;
2711    esac
2712  fi
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2715$as_echo "$as_me: creating cache $cache_file" >&6;}
2716  >$cache_file
2717fi
2718
2719# Check that the precious variables saved in the cache have kept the same
2720# value.
2721ac_cache_corrupted=false
2722for ac_var in $ac_precious_vars; do
2723  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2724  eval ac_new_set=\$ac_env_${ac_var}_set
2725  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2726  eval ac_new_val=\$ac_env_${ac_var}_value
2727  case $ac_old_set,$ac_new_set in
2728    set,)
2729      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2730$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2731      ac_cache_corrupted=: ;;
2732    ,set)
2733      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2734$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2735      ac_cache_corrupted=: ;;
2736    ,);;
2737    *)
2738      if test "x$ac_old_val" != "x$ac_new_val"; then
2739	# differences in whitespace do not lead to failure.
2740	ac_old_val_w=`echo x $ac_old_val`
2741	ac_new_val_w=`echo x $ac_new_val`
2742	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2743	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2744$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2745	  ac_cache_corrupted=:
2746	else
2747	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2748$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2749	  eval $ac_var=\$ac_old_val
2750	fi
2751	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2752$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2753	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2754$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2755      fi;;
2756  esac
2757  # Pass precious variables to config.status.
2758  if test "$ac_new_set" = set; then
2759    case $ac_new_val in
2760    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2761    *) ac_arg=$ac_var=$ac_new_val ;;
2762    esac
2763    case " $ac_configure_args " in
2764      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2765      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2766    esac
2767  fi
2768done
2769if $ac_cache_corrupted; then
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2773$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2774  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2775fi
2776## -------------------- ##
2777## Main body of script. ##
2778## -------------------- ##
2779
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786
2787ac_aux_dir=
2788for ac_dir in config "$srcdir"/config; do
2789  if test -f "$ac_dir/install-sh"; then
2790    ac_aux_dir=$ac_dir
2791    ac_install_sh="$ac_aux_dir/install-sh -c"
2792    break
2793  elif test -f "$ac_dir/install.sh"; then
2794    ac_aux_dir=$ac_dir
2795    ac_install_sh="$ac_aux_dir/install.sh -c"
2796    break
2797  elif test -f "$ac_dir/shtool"; then
2798    ac_aux_dir=$ac_dir
2799    ac_install_sh="$ac_aux_dir/shtool install -c"
2800    break
2801  fi
2802done
2803if test -z "$ac_aux_dir"; then
2804  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2805fi
2806
2807# These three variables are undocumented and unsupported,
2808# and are intended to be withdrawn in a future Autoconf release.
2809# They can cause serious problems if a builder's source tree is in a directory
2810# whose full name contains unusual characters.
2811ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2812ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2813ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2814
2815
2816
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823
2824# Make sure we can run config.sub.
2825$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2826  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2827
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2829$as_echo_n "checking build system type... " >&6; }
2830if ${ac_cv_build+:} false; then :
2831  $as_echo_n "(cached) " >&6
2832else
2833  ac_build_alias=$build_alias
2834test "x$ac_build_alias" = x &&
2835  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836test "x$ac_build_alias" = x &&
2837  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2838ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2839  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2840
2841fi
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2843$as_echo "$ac_cv_build" >&6; }
2844case $ac_cv_build in
2845*-*-*) ;;
2846*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2847esac
2848build=$ac_cv_build
2849ac_save_IFS=$IFS; IFS='-'
2850set x $ac_cv_build
2851shift
2852build_cpu=$1
2853build_vendor=$2
2854shift; shift
2855# Remember, the first character of IFS is used to create $*,
2856# except with old shells:
2857build_os=$*
2858IFS=$ac_save_IFS
2859case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2860
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2863$as_echo_n "checking host system type... " >&6; }
2864if ${ac_cv_host+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test "x$host_alias" = x; then
2868  ac_cv_host=$ac_cv_build
2869else
2870  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2871    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2872fi
2873
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2876$as_echo "$ac_cv_host" >&6; }
2877case $ac_cv_host in
2878*-*-*) ;;
2879*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2880esac
2881host=$ac_cv_host
2882ac_save_IFS=$IFS; IFS='-'
2883set x $ac_cv_host
2884shift
2885host_cpu=$1
2886host_vendor=$2
2887shift; shift
2888# Remember, the first character of IFS is used to create $*,
2889# except with old shells:
2890host_os=$*
2891IFS=$ac_save_IFS
2892case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2893
2894
2895
2896am__api_version='1.15'
2897
2898# Find a good install program.  We prefer a C program (faster),
2899# so one script is as good as another.  But avoid the broken or
2900# incompatible versions:
2901# SysV /etc/install, /usr/sbin/install
2902# SunOS /usr/etc/install
2903# IRIX /sbin/install
2904# AIX /bin/install
2905# AmigaOS /C/install, which installs bootblocks on floppy discs
2906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2909# OS/2's system install, which has a completely different semantic
2910# ./install, which can be erroneously created by make from ./install.sh.
2911# Reject install programs that cannot install multiple files.
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2913$as_echo_n "checking for a BSD-compatible install... " >&6; }
2914if test -z "$INSTALL"; then
2915if ${ac_cv_path_install+:} false; then :
2916  $as_echo_n "(cached) " >&6
2917else
2918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923    # Account for people who put trailing slashes in PATH elements.
2924case $as_dir/ in #((
2925  ./ | .// | /[cC]/* | \
2926  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2927  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2928  /usr/ucb/* ) ;;
2929  *)
2930    # OSF1 and SCO ODT 3.0 have their own names for install.
2931    # Don't use installbsd from OSF since it installs stuff as root
2932    # by default.
2933    for ac_prog in ginstall scoinst install; do
2934      for ac_exec_ext in '' $ac_executable_extensions; do
2935	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2936	  if test $ac_prog = install &&
2937	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2938	    # AIX install.  It has an incompatible calling convention.
2939	    :
2940	  elif test $ac_prog = install &&
2941	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942	    # program-specific install script used by HP pwplus--don't use.
2943	    :
2944	  else
2945	    rm -rf conftest.one conftest.two conftest.dir
2946	    echo one > conftest.one
2947	    echo two > conftest.two
2948	    mkdir conftest.dir
2949	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2950	      test -s conftest.one && test -s conftest.two &&
2951	      test -s conftest.dir/conftest.one &&
2952	      test -s conftest.dir/conftest.two
2953	    then
2954	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2955	      break 3
2956	    fi
2957	  fi
2958	fi
2959      done
2960    done
2961    ;;
2962esac
2963
2964  done
2965IFS=$as_save_IFS
2966
2967rm -rf conftest.one conftest.two conftest.dir
2968
2969fi
2970  if test "${ac_cv_path_install+set}" = set; then
2971    INSTALL=$ac_cv_path_install
2972  else
2973    # As a last resort, use the slow shell script.  Don't cache a
2974    # value for INSTALL within a source directory, because that will
2975    # break other packages using the cache if that directory is
2976    # removed, or if the value is a relative name.
2977    INSTALL=$ac_install_sh
2978  fi
2979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2981$as_echo "$INSTALL" >&6; }
2982
2983# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2984# It thinks the first close brace ends the variable substitution.
2985test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2986
2987test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2988
2989test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2990
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2992$as_echo_n "checking whether build environment is sane... " >&6; }
2993# Reject unsafe characters in $srcdir or the absolute working directory
2994# name.  Accept space and tab only in the latter.
2995am_lf='
2996'
2997case `pwd` in
2998  *[\\\"\#\$\&\'\`$am_lf]*)
2999    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3000esac
3001case $srcdir in
3002  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3003    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3004esac
3005
3006# Do 'set' in a subshell so we don't clobber the current shell's
3007# arguments.  Must try -L first in case configure is actually a
3008# symlink; some systems play weird games with the mod time of symlinks
3009# (eg FreeBSD returns the mod time of the symlink's containing
3010# directory).
3011if (
3012   am_has_slept=no
3013   for am_try in 1 2; do
3014     echo "timestamp, slept: $am_has_slept" > conftest.file
3015     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3016     if test "$*" = "X"; then
3017	# -L didn't work.
3018	set X `ls -t "$srcdir/configure" conftest.file`
3019     fi
3020     if test "$*" != "X $srcdir/configure conftest.file" \
3021	&& test "$*" != "X conftest.file $srcdir/configure"; then
3022
3023	# If neither matched, then we have a broken ls.  This can happen
3024	# if, for instance, CONFIG_SHELL is bash and it inherits a
3025	# broken ls alias from the environment.  This has actually
3026	# happened.  Such a system could not be considered "sane".
3027	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3028  alias in your environment" "$LINENO" 5
3029     fi
3030     if test "$2" = conftest.file || test $am_try -eq 2; then
3031       break
3032     fi
3033     # Just in case.
3034     sleep 1
3035     am_has_slept=yes
3036   done
3037   test "$2" = conftest.file
3038   )
3039then
3040   # Ok.
3041   :
3042else
3043   as_fn_error $? "newly created file is older than distributed files!
3044Check your system clock" "$LINENO" 5
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3047$as_echo "yes" >&6; }
3048# If we didn't sleep, we still need to ensure time stamps of config.status and
3049# generated files are strictly newer.
3050am_sleep_pid=
3051if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3052  ( sleep 1 ) &
3053  am_sleep_pid=$!
3054fi
3055
3056rm -f conftest.file
3057
3058test "$program_prefix" != NONE &&
3059  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3060# Use a double $ so make ignores it.
3061test "$program_suffix" != NONE &&
3062  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3063# Double any \ or $.
3064# By default was `s,x,x', remove it if useless.
3065ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3066program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3067
3068# Expand $ac_aux_dir to an absolute path.
3069am_aux_dir=`cd "$ac_aux_dir" && pwd`
3070
3071if test x"${MISSING+set}" != xset; then
3072  case $am_aux_dir in
3073  *\ * | *\	*)
3074    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3075  *)
3076    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3077  esac
3078fi
3079# Use eval to expand $SHELL
3080if eval "$MISSING --is-lightweight"; then
3081  am_missing_run="$MISSING "
3082else
3083  am_missing_run=
3084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3085$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3086fi
3087
3088if test x"${install_sh+set}" != xset; then
3089  case $am_aux_dir in
3090  *\ * | *\	*)
3091    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3092  *)
3093    install_sh="\${SHELL} $am_aux_dir/install-sh"
3094  esac
3095fi
3096
3097# Installed binaries are usually stripped using 'strip' when the user
3098# run "make install-strip".  However 'strip' might not be the right
3099# tool to use in cross-compilation environments, therefore Automake
3100# will honor the 'STRIP' environment variable to overrule this program.
3101if test "$cross_compiling" != no; then
3102  if test -n "$ac_tool_prefix"; then
3103  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3104set dummy ${ac_tool_prefix}strip; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_prog_STRIP+:} false; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$STRIP"; then
3111  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118    for ac_exec_ext in '' $ac_executable_extensions; do
3119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125  done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130STRIP=$ac_cv_prog_STRIP
3131if test -n "$STRIP"; then
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3133$as_echo "$STRIP" >&6; }
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139
3140fi
3141if test -z "$ac_cv_prog_STRIP"; then
3142  ac_ct_STRIP=$STRIP
3143  # Extract the first word of "strip", so it can be a program name with args.
3144set dummy strip; ac_word=$2
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3148  $as_echo_n "(cached) " >&6
3149else
3150  if test -n "$ac_ct_STRIP"; then
3151  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158    for ac_exec_ext in '' $ac_executable_extensions; do
3159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160    ac_cv_prog_ac_ct_STRIP="strip"
3161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162    break 2
3163  fi
3164done
3165  done
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3171if test -n "$ac_ct_STRIP"; then
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3173$as_echo "$ac_ct_STRIP" >&6; }
3174else
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179  if test "x$ac_ct_STRIP" = x; then
3180    STRIP=":"
3181  else
3182    case $cross_compiling:$ac_tool_warned in
3183yes:)
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186ac_tool_warned=yes ;;
3187esac
3188    STRIP=$ac_ct_STRIP
3189  fi
3190else
3191  STRIP="$ac_cv_prog_STRIP"
3192fi
3193
3194fi
3195INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3196
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3198$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3199if test -z "$MKDIR_P"; then
3200  if ${ac_cv_path_mkdir+:} false; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3205do
3206  IFS=$as_save_IFS
3207  test -z "$as_dir" && as_dir=.
3208    for ac_prog in mkdir gmkdir; do
3209	 for ac_exec_ext in '' $ac_executable_extensions; do
3210	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3211	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3212	     'mkdir (GNU coreutils) '* | \
3213	     'mkdir (coreutils) '* | \
3214	     'mkdir (fileutils) '4.1*)
3215	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3216	       break 3;;
3217	   esac
3218	 done
3219       done
3220  done
3221IFS=$as_save_IFS
3222
3223fi
3224
3225  test -d ./--version && rmdir ./--version
3226  if test "${ac_cv_path_mkdir+set}" = set; then
3227    MKDIR_P="$ac_cv_path_mkdir -p"
3228  else
3229    # As a last resort, use the slow shell script.  Don't cache a
3230    # value for MKDIR_P within a source directory, because that will
3231    # break other packages using the cache if that directory is
3232    # removed, or if the value is a relative name.
3233    MKDIR_P="$ac_install_sh -d"
3234  fi
3235fi
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3237$as_echo "$MKDIR_P" >&6; }
3238
3239for ac_prog in gawk mawk nawk awk
3240do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if ${ac_cv_prog_AWK+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  if test -n "$AWK"; then
3249  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_AWK="$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263  done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268AWK=$ac_cv_prog_AWK
3269if test -n "$AWK"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3271$as_echo "$AWK" >&6; }
3272else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278  test -n "$AWK" && break
3279done
3280
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3282$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3283set x ${MAKE-make}
3284ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3285if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288  cat >conftest.make <<\_ACEOF
3289SHELL = /bin/sh
3290all:
3291	@echo '@@@%%%=$(MAKE)=@@@%%%'
3292_ACEOF
3293# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3294case `${MAKE-make} -f conftest.make 2>/dev/null` in
3295  *@@@%%%=?*=@@@%%%*)
3296    eval ac_cv_prog_make_${ac_make}_set=yes;;
3297  *)
3298    eval ac_cv_prog_make_${ac_make}_set=no;;
3299esac
3300rm -f conftest.make
3301fi
3302if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
3305  SET_MAKE=
3306else
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308$as_echo "no" >&6; }
3309  SET_MAKE="MAKE=${MAKE-make}"
3310fi
3311
3312rm -rf .tst 2>/dev/null
3313mkdir .tst 2>/dev/null
3314if test -d .tst; then
3315  am__leading_dot=.
3316else
3317  am__leading_dot=_
3318fi
3319rmdir .tst 2>/dev/null
3320
3321# Check whether --enable-silent-rules was given.
3322if test "${enable_silent_rules+set}" = set; then :
3323  enableval=$enable_silent_rules;
3324fi
3325
3326case $enable_silent_rules in # (((
3327  yes) AM_DEFAULT_VERBOSITY=0;;
3328   no) AM_DEFAULT_VERBOSITY=1;;
3329    *) AM_DEFAULT_VERBOSITY=1;;
3330esac
3331am_make=${MAKE-make}
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3333$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3334if ${am_cv_make_support_nested_variables+:} false; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  if $as_echo 'TRUE=$(BAR$(V))
3338BAR0=false
3339BAR1=true
3340V=1
3341am__doit:
3342	@$(TRUE)
3343.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3344  am_cv_make_support_nested_variables=yes
3345else
3346  am_cv_make_support_nested_variables=no
3347fi
3348fi
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3350$as_echo "$am_cv_make_support_nested_variables" >&6; }
3351if test $am_cv_make_support_nested_variables = yes; then
3352    AM_V='$(V)'
3353  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3354else
3355  AM_V=$AM_DEFAULT_VERBOSITY
3356  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3357fi
3358AM_BACKSLASH='\'
3359
3360if test "`cd $srcdir && pwd`" != "`pwd`"; then
3361  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3362  # is not polluted with repeated "-I."
3363  am__isrc=' -I$(srcdir)'
3364  # test to see if srcdir already configured
3365  if test -f $srcdir/config.status; then
3366    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3367  fi
3368fi
3369
3370# test whether we have cygpath
3371if test -z "$CYGPATH_W"; then
3372  if (cygpath --version) >/dev/null 2>/dev/null; then
3373    CYGPATH_W='cygpath -w'
3374  else
3375    CYGPATH_W=echo
3376  fi
3377fi
3378
3379
3380# Define the identity of the package.
3381 PACKAGE='tiff'
3382 VERSION='4.0.4beta'
3383
3384
3385cat >>confdefs.h <<_ACEOF
3386#define PACKAGE "$PACKAGE"
3387_ACEOF
3388
3389
3390cat >>confdefs.h <<_ACEOF
3391#define VERSION "$VERSION"
3392_ACEOF
3393
3394# Some tools Automake needs.
3395
3396ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3397
3398
3399AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3400
3401
3402AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3403
3404
3405AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3406
3407
3408MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3409
3410# For better backward compatibility.  To be removed once Automake 1.9.x
3411# dies out for good.  For more background, see:
3412# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3413# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3414mkdir_p='$(MKDIR_P)'
3415
3416# We need awk for the "check" target (and possibly the TAP driver).  The
3417# system "awk" is bad on some platforms.
3418# Always define AMTAR for backward compatibility.  Yes, it's still used
3419# in the wild :-(  We should find a proper way to deprecate it ...
3420AMTAR='$${TAR-tar}'
3421
3422
3423# We'll loop over all known methods to create a tar archive until one works.
3424_am_tools='gnutar  pax cpio none'
3425
3426am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3427
3428
3429
3430
3431
3432
3433# POSIX will say in a future version that running "rm -f" with no argument
3434# is OK; and we want to be able to make that assumption in our Makefile
3435# recipes.  So use an aggressive probe to check that the usage we want is
3436# actually supported "in the wild" to an acceptable degree.
3437# See automake bug#10828.
3438# To make any issue more visible, cause the running configure to be aborted
3439# by default if the 'rm' program in use doesn't match our expectations; the
3440# user can still override this though.
3441if rm -f && rm -fr && rm -rf; then : OK; else
3442  cat >&2 <<'END'
3443Oops!
3444
3445Your 'rm' program seems unable to run without file operands specified
3446on the command line, even when the '-f' option is present.  This is contrary
3447to the behaviour of most rm programs out there, and not conforming with
3448the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3449
3450Please tell bug-automake@gnu.org about your system, including the value
3451of your $PATH and any error possibly output before this message.  This
3452can help us improve future automake versions.
3453
3454END
3455  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3456    echo 'Configuration will proceed anyway, since you have set the' >&2
3457    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3458    echo >&2
3459  else
3460    cat >&2 <<'END'
3461Aborting the configuration process, to ensure you take notice of the issue.
3462
3463You can download and install GNU coreutils to get an 'rm' implementation
3464that behaves properly: <http://www.gnu.org/software/coreutils/>.
3465
3466If you want to complete the configuration process using your problematic
3467'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3468to "yes", and re-run configure.
3469
3470END
3471    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3472  fi
3473fi
3474
3475
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3477$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3478    # Check whether --enable-maintainer-mode was given.
3479if test "${enable_maintainer_mode+set}" = set; then :
3480  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3481else
3482  USE_MAINTAINER_MODE=no
3483fi
3484
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3486$as_echo "$USE_MAINTAINER_MODE" >&6; }
3487   if test $USE_MAINTAINER_MODE = yes; then
3488  MAINTAINER_MODE_TRUE=
3489  MAINTAINER_MODE_FALSE='#'
3490else
3491  MAINTAINER_MODE_TRUE='#'
3492  MAINTAINER_MODE_FALSE=
3493fi
3494
3495  MAINT=$MAINTAINER_MODE_TRUE
3496
3497
3498
3499LIBTIFF_MAJOR_VERSION=4
3500LIBTIFF_MINOR_VERSION=0
3501LIBTIFF_MICRO_VERSION=4
3502LIBTIFF_ALPHA_VERSION=beta
3503LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3504LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3505
3506LIBTIFF_CURRENT=7
3507LIBTIFF_REVISION=1
3508LIBTIFF_AGE=2
3509LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3510
3511# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3512# in OpenBSD uses some special semantics for shared libraries. Their soname
3513# contains only two numbers, major and minor.
3514# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
3515#case "$host_os" in
3516#    openbsd* | mirbsd*)
3517#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3518#	;;
3519#    *)
3520#	LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3521#	;;
3522#esac
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532ac_ext=c
3533ac_cpp='$CPP $CPPFLAGS'
3534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537if test -n "$ac_tool_prefix"; then
3538  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3539set dummy ${ac_tool_prefix}gcc; ac_word=$2
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541$as_echo_n "checking for $ac_word... " >&6; }
3542if ${ac_cv_prog_CC+:} false; then :
3543  $as_echo_n "(cached) " >&6
3544else
3545  if test -n "$CC"; then
3546  ac_cv_prog_CC="$CC" # Let the user override the test.
3547else
3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549for as_dir in $PATH
3550do
3551  IFS=$as_save_IFS
3552  test -z "$as_dir" && as_dir=.
3553    for ac_exec_ext in '' $ac_executable_extensions; do
3554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557    break 2
3558  fi
3559done
3560  done
3561IFS=$as_save_IFS
3562
3563fi
3564fi
3565CC=$ac_cv_prog_CC
3566if test -n "$CC"; then
3567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568$as_echo "$CC" >&6; }
3569else
3570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571$as_echo "no" >&6; }
3572fi
3573
3574
3575fi
3576if test -z "$ac_cv_prog_CC"; then
3577  ac_ct_CC=$CC
3578  # Extract the first word of "gcc", so it can be a program name with args.
3579set dummy gcc; ac_word=$2
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581$as_echo_n "checking for $ac_word... " >&6; }
3582if ${ac_cv_prog_ac_ct_CC+:} false; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  if test -n "$ac_ct_CC"; then
3586  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587else
3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH
3590do
3591  IFS=$as_save_IFS
3592  test -z "$as_dir" && as_dir=.
3593    for ac_exec_ext in '' $ac_executable_extensions; do
3594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595    ac_cv_prog_ac_ct_CC="gcc"
3596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597    break 2
3598  fi
3599done
3600  done
3601IFS=$as_save_IFS
3602
3603fi
3604fi
3605ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606if test -n "$ac_ct_CC"; then
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608$as_echo "$ac_ct_CC" >&6; }
3609else
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611$as_echo "no" >&6; }
3612fi
3613
3614  if test "x$ac_ct_CC" = x; then
3615    CC=""
3616  else
3617    case $cross_compiling:$ac_tool_warned in
3618yes:)
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621ac_tool_warned=yes ;;
3622esac
3623    CC=$ac_ct_CC
3624  fi
3625else
3626  CC="$ac_cv_prog_CC"
3627fi
3628
3629if test -z "$CC"; then
3630          if test -n "$ac_tool_prefix"; then
3631    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3632set dummy ${ac_tool_prefix}cc; ac_word=$2
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634$as_echo_n "checking for $ac_word... " >&6; }
3635if ${ac_cv_prog_CC+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  if test -n "$CC"; then
3639  ac_cv_prog_CC="$CC" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644  IFS=$as_save_IFS
3645  test -z "$as_dir" && as_dir=.
3646    for ac_exec_ext in '' $ac_executable_extensions; do
3647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648    ac_cv_prog_CC="${ac_tool_prefix}cc"
3649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650    break 2
3651  fi
3652done
3653  done
3654IFS=$as_save_IFS
3655
3656fi
3657fi
3658CC=$ac_cv_prog_CC
3659if test -n "$CC"; then
3660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661$as_echo "$CC" >&6; }
3662else
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665fi
3666
3667
3668  fi
3669fi
3670if test -z "$CC"; then
3671  # Extract the first word of "cc", so it can be a program name with args.
3672set dummy cc; ac_word=$2
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674$as_echo_n "checking for $ac_word... " >&6; }
3675if ${ac_cv_prog_CC+:} false; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  if test -n "$CC"; then
3679  ac_cv_prog_CC="$CC" # Let the user override the test.
3680else
3681  ac_prog_rejected=no
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685  IFS=$as_save_IFS
3686  test -z "$as_dir" && as_dir=.
3687    for ac_exec_ext in '' $ac_executable_extensions; do
3688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3690       ac_prog_rejected=yes
3691       continue
3692     fi
3693    ac_cv_prog_CC="cc"
3694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695    break 2
3696  fi
3697done
3698  done
3699IFS=$as_save_IFS
3700
3701if test $ac_prog_rejected = yes; then
3702  # We found a bogon in the path, so make sure we never use it.
3703  set dummy $ac_cv_prog_CC
3704  shift
3705  if test $# != 0; then
3706    # We chose a different compiler from the bogus one.
3707    # However, it has the same basename, so the bogon will be chosen
3708    # first if we set CC to just the basename; use the full file name.
3709    shift
3710    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3711  fi
3712fi
3713fi
3714fi
3715CC=$ac_cv_prog_CC
3716if test -n "$CC"; then
3717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718$as_echo "$CC" >&6; }
3719else
3720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721$as_echo "no" >&6; }
3722fi
3723
3724
3725fi
3726if test -z "$CC"; then
3727  if test -n "$ac_tool_prefix"; then
3728  for ac_prog in cl.exe
3729  do
3730    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733$as_echo_n "checking for $ac_word... " >&6; }
3734if ${ac_cv_prog_CC+:} false; then :
3735  $as_echo_n "(cached) " >&6
3736else
3737  if test -n "$CC"; then
3738  ac_cv_prog_CC="$CC" # Let the user override the test.
3739else
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743  IFS=$as_save_IFS
3744  test -z "$as_dir" && as_dir=.
3745    for ac_exec_ext in '' $ac_executable_extensions; do
3746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749    break 2
3750  fi
3751done
3752  done
3753IFS=$as_save_IFS
3754
3755fi
3756fi
3757CC=$ac_cv_prog_CC
3758if test -n "$CC"; then
3759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760$as_echo "$CC" >&6; }
3761else
3762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763$as_echo "no" >&6; }
3764fi
3765
3766
3767    test -n "$CC" && break
3768  done
3769fi
3770if test -z "$CC"; then
3771  ac_ct_CC=$CC
3772  for ac_prog in cl.exe
3773do
3774  # Extract the first word of "$ac_prog", so it can be a program name with args.
3775set dummy $ac_prog; ac_word=$2
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777$as_echo_n "checking for $ac_word... " >&6; }
3778if ${ac_cv_prog_ac_ct_CC+:} false; then :
3779  $as_echo_n "(cached) " >&6
3780else
3781  if test -n "$ac_ct_CC"; then
3782  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787  IFS=$as_save_IFS
3788  test -z "$as_dir" && as_dir=.
3789    for ac_exec_ext in '' $ac_executable_extensions; do
3790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791    ac_cv_prog_ac_ct_CC="$ac_prog"
3792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793    break 2
3794  fi
3795done
3796  done
3797IFS=$as_save_IFS
3798
3799fi
3800fi
3801ac_ct_CC=$ac_cv_prog_ac_ct_CC
3802if test -n "$ac_ct_CC"; then
3803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3804$as_echo "$ac_ct_CC" >&6; }
3805else
3806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807$as_echo "no" >&6; }
3808fi
3809
3810
3811  test -n "$ac_ct_CC" && break
3812done
3813
3814  if test "x$ac_ct_CC" = x; then
3815    CC=""
3816  else
3817    case $cross_compiling:$ac_tool_warned in
3818yes:)
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821ac_tool_warned=yes ;;
3822esac
3823    CC=$ac_ct_CC
3824  fi
3825fi
3826
3827fi
3828
3829
3830test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832as_fn_error $? "no acceptable C compiler found in \$PATH
3833See \`config.log' for more details" "$LINENO" 5; }
3834
3835# Provide some information about the compiler.
3836$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837set X $ac_compile
3838ac_compiler=$2
3839for ac_option in --version -v -V -qversion; do
3840  { { ac_try="$ac_compiler $ac_option >&5"
3841case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846$as_echo "$ac_try_echo"; } >&5
3847  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848  ac_status=$?
3849  if test -s conftest.err; then
3850    sed '10a\
3851... rest of stderr output deleted ...
3852         10q' conftest.err >conftest.er1
3853    cat conftest.er1 >&5
3854  fi
3855  rm -f conftest.er1 conftest.err
3856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857  test $ac_status = 0; }
3858done
3859
3860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861/* end confdefs.h.  */
3862
3863int
3864main ()
3865{
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871ac_clean_files_save=$ac_clean_files
3872ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3873# Try to create an executable without -o first, disregard a.out.
3874# It will help us diagnose broken compilers, and finding out an intuition
3875# of exeext.
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877$as_echo_n "checking whether the C compiler works... " >&6; }
3878ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3879
3880# The possible output files:
3881ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882
3883ac_rmfiles=
3884for ac_file in $ac_files
3885do
3886  case $ac_file in
3887    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3888    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3889  esac
3890done
3891rm -f $ac_rmfiles
3892
3893if { { ac_try="$ac_link_default"
3894case "(($ac_try" in
3895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896  *) ac_try_echo=$ac_try;;
3897esac
3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899$as_echo "$ac_try_echo"; } >&5
3900  (eval "$ac_link_default") 2>&5
3901  ac_status=$?
3902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903  test $ac_status = 0; }; then :
3904  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3905# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3906# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3907# so that the user can short-circuit this test for compilers unknown to
3908# Autoconf.
3909for ac_file in $ac_files ''
3910do
3911  test -f "$ac_file" || continue
3912  case $ac_file in
3913    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3914	;;
3915    [ab].out )
3916	# We found the default executable, but exeext='' is most
3917	# certainly right.
3918	break;;
3919    *.* )
3920	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3921	then :; else
3922	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923	fi
3924	# We set ac_cv_exeext here because the later test for it is not
3925	# safe: cross compilers may not add the suffix if given an `-o'
3926	# argument, so we may need to know it at that point already.
3927	# Even if this section looks crufty: it has the advantage of
3928	# actually working.
3929	break;;
3930    * )
3931	break;;
3932  esac
3933done
3934test "$ac_cv_exeext" = no && ac_cv_exeext=
3935
3936else
3937  ac_file=''
3938fi
3939if test -z "$ac_file"; then :
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942$as_echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947as_fn_error 77 "C compiler cannot create executables
3948See \`config.log' for more details" "$LINENO" 5; }
3949else
3950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951$as_echo "yes" >&6; }
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3954$as_echo_n "checking for C compiler default output file name... " >&6; }
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3956$as_echo "$ac_file" >&6; }
3957ac_exeext=$ac_cv_exeext
3958
3959rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3960ac_clean_files=$ac_clean_files_save
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962$as_echo_n "checking for suffix of executables... " >&6; }
3963if { { ac_try="$ac_link"
3964case "(($ac_try" in
3965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966  *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970  (eval "$ac_link") 2>&5
3971  ac_status=$?
3972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973  test $ac_status = 0; }; then :
3974  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3975# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3976# work properly (i.e., refer to `conftest.exe'), while it won't with
3977# `rm'.
3978for ac_file in conftest.exe conftest conftest.*; do
3979  test -f "$ac_file" || continue
3980  case $ac_file in
3981    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983	  break;;
3984    * ) break;;
3985  esac
3986done
3987else
3988  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3991See \`config.log' for more details" "$LINENO" 5; }
3992fi
3993rm -f conftest conftest$ac_cv_exeext
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995$as_echo "$ac_cv_exeext" >&6; }
3996
3997rm -f conftest.$ac_ext
3998EXEEXT=$ac_cv_exeext
3999ac_exeext=$EXEEXT
4000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002#include <stdio.h>
4003int
4004main ()
4005{
4006FILE *f = fopen ("conftest.out", "w");
4007 return ferror (f) || fclose (f) != 0;
4008
4009  ;
4010  return 0;
4011}
4012_ACEOF
4013ac_clean_files="$ac_clean_files conftest.out"
4014# Check that the compiler produces executables we can run.  If not, either
4015# the compiler is broken, or we cross compile.
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017$as_echo_n "checking whether we are cross compiling... " >&6; }
4018if test "$cross_compiling" != yes; then
4019  { { ac_try="$ac_link"
4020case "(($ac_try" in
4021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022  *) ac_try_echo=$ac_try;;
4023esac
4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025$as_echo "$ac_try_echo"; } >&5
4026  (eval "$ac_link") 2>&5
4027  ac_status=$?
4028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029  test $ac_status = 0; }
4030  if { ac_try='./conftest$ac_cv_exeext'
4031  { { case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037  (eval "$ac_try") 2>&5
4038  ac_status=$?
4039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040  test $ac_status = 0; }; }; then
4041    cross_compiling=no
4042  else
4043    if test "$cross_compiling" = maybe; then
4044	cross_compiling=yes
4045    else
4046	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048as_fn_error $? "cannot run C compiled programs.
4049If you meant to cross compile, use \`--host'.
4050See \`config.log' for more details" "$LINENO" 5; }
4051    fi
4052  fi
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055$as_echo "$cross_compiling" >&6; }
4056
4057rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4058ac_clean_files=$ac_clean_files_save
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4060$as_echo_n "checking for suffix of object files... " >&6; }
4061if ${ac_cv_objext+:} false; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065/* end confdefs.h.  */
4066
4067int
4068main ()
4069{
4070
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075rm -f conftest.o conftest.obj
4076if { { ac_try="$ac_compile"
4077case "(($ac_try" in
4078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079  *) ac_try_echo=$ac_try;;
4080esac
4081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082$as_echo "$ac_try_echo"; } >&5
4083  (eval "$ac_compile") 2>&5
4084  ac_status=$?
4085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086  test $ac_status = 0; }; then :
4087  for ac_file in conftest.o conftest.obj conftest.*; do
4088  test -f "$ac_file" || continue;
4089  case $ac_file in
4090    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4091    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4092       break;;
4093  esac
4094done
4095else
4096  $as_echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101as_fn_error $? "cannot compute suffix of object files: cannot compile
4102See \`config.log' for more details" "$LINENO" 5; }
4103fi
4104rm -f conftest.$ac_cv_objext conftest.$ac_ext
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4107$as_echo "$ac_cv_objext" >&6; }
4108OBJEXT=$ac_cv_objext
4109ac_objext=$OBJEXT
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4111$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4112if ${ac_cv_c_compiler_gnu+:} false; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121#ifndef __GNUC__
4122       choke me
4123#endif
4124
4125  ;
4126  return 0;
4127}
4128_ACEOF
4129if ac_fn_c_try_compile "$LINENO"; then :
4130  ac_compiler_gnu=yes
4131else
4132  ac_compiler_gnu=no
4133fi
4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136
4137fi
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4139$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4140if test $ac_compiler_gnu = yes; then
4141  GCC=yes
4142else
4143  GCC=
4144fi
4145ac_test_CFLAGS=${CFLAGS+set}
4146ac_save_CFLAGS=$CFLAGS
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4148$as_echo_n "checking whether $CC accepts -g... " >&6; }
4149if ${ac_cv_prog_cc_g+:} false; then :
4150  $as_echo_n "(cached) " >&6
4151else
4152  ac_save_c_werror_flag=$ac_c_werror_flag
4153   ac_c_werror_flag=yes
4154   ac_cv_prog_cc_g=no
4155   CFLAGS="-g"
4156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h.  */
4158
4159int
4160main ()
4161{
4162
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167if ac_fn_c_try_compile "$LINENO"; then :
4168  ac_cv_prog_cc_g=yes
4169else
4170  CFLAGS=""
4171      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172/* end confdefs.h.  */
4173
4174int
4175main ()
4176{
4177
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"; then :
4183
4184else
4185  ac_c_werror_flag=$ac_save_c_werror_flag
4186	 CFLAGS="-g"
4187	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189
4190int
4191main ()
4192{
4193
4194  ;
4195  return 0;
4196}
4197_ACEOF
4198if ac_fn_c_try_compile "$LINENO"; then :
4199  ac_cv_prog_cc_g=yes
4200fi
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202fi
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206   ac_c_werror_flag=$ac_save_c_werror_flag
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209$as_echo "$ac_cv_prog_cc_g" >&6; }
4210if test "$ac_test_CFLAGS" = set; then
4211  CFLAGS=$ac_save_CFLAGS
4212elif test $ac_cv_prog_cc_g = yes; then
4213  if test "$GCC" = yes; then
4214    CFLAGS="-g -O2"
4215  else
4216    CFLAGS="-g"
4217  fi
4218else
4219  if test "$GCC" = yes; then
4220    CFLAGS="-O2"
4221  else
4222    CFLAGS=
4223  fi
4224fi
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4226$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227if ${ac_cv_prog_cc_c89+:} false; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230  ac_cv_prog_cc_c89=no
4231ac_save_CC=$CC
4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234#include <stdarg.h>
4235#include <stdio.h>
4236struct stat;
4237/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4238struct buf { int x; };
4239FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240static char *e (p, i)
4241     char **p;
4242     int i;
4243{
4244  return p[i];
4245}
4246static char *f (char * (*g) (char **, int), char **p, ...)
4247{
4248  char *s;
4249  va_list v;
4250  va_start (v,p);
4251  s = g (p, va_arg (v,int));
4252  va_end (v);
4253  return s;
4254}
4255
4256/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4257   function prototypes and stuff, but not '\xHH' hex character constants.
4258   These don't provoke an error unfortunately, instead are silently treated
4259   as 'x'.  The following induces an error, until -std is added to get
4260   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4261   array size at least.  It's necessary to write '\x00'==0 to get something
4262   that's true only with -std.  */
4263int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4264
4265/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4266   inside strings and character constants.  */
4267#define FOO(x) 'x'
4268int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4269
4270int test (int i, double x);
4271struct s1 {int (*f) (int a);};
4272struct s2 {int (*f) (double a);};
4273int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4274int argc;
4275char **argv;
4276int
4277main ()
4278{
4279return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4280  ;
4281  return 0;
4282}
4283_ACEOF
4284for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4285	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4286do
4287  CC="$ac_save_CC $ac_arg"
4288  if ac_fn_c_try_compile "$LINENO"; then :
4289  ac_cv_prog_cc_c89=$ac_arg
4290fi
4291rm -f core conftest.err conftest.$ac_objext
4292  test "x$ac_cv_prog_cc_c89" != "xno" && break
4293done
4294rm -f conftest.$ac_ext
4295CC=$ac_save_CC
4296
4297fi
4298# AC_CACHE_VAL
4299case "x$ac_cv_prog_cc_c89" in
4300  x)
4301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4302$as_echo "none needed" >&6; } ;;
4303  xno)
4304    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4305$as_echo "unsupported" >&6; } ;;
4306  *)
4307    CC="$CC $ac_cv_prog_cc_c89"
4308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4309$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310esac
4311if test "x$ac_cv_prog_cc_c89" != xno; then :
4312
4313fi
4314
4315ac_ext=c
4316ac_cpp='$CPP $CPPFLAGS'
4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321ac_ext=c
4322ac_cpp='$CPP $CPPFLAGS'
4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4327$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4328if ${am_cv_prog_cc_c_o+:} false; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333
4334int
4335main ()
4336{
4337
4338  ;
4339  return 0;
4340}
4341_ACEOF
4342  # Make sure it works both with $CC and with simple cc.
4343  # Following AC_PROG_CC_C_O, we do the test twice because some
4344  # compilers refuse to overwrite an existing .o file with -o,
4345  # though they will create one.
4346  am_cv_prog_cc_c_o=yes
4347  for am_i in 1 2; do
4348    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4349   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } \
4353         && test -f conftest2.$ac_objext; then
4354      : OK
4355    else
4356      am_cv_prog_cc_c_o=no
4357      break
4358    fi
4359  done
4360  rm -f core conftest*
4361  unset am_i
4362fi
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4364$as_echo "$am_cv_prog_cc_c_o" >&6; }
4365if test "$am_cv_prog_cc_c_o" != yes; then
4366   # Losing compiler, so override with the script.
4367   # FIXME: It is wrong to rewrite CC.
4368   # But if we don't then we get into trouble of one sort or another.
4369   # A longer-term fix would be to have automake use am__CC in this case,
4370   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4371   CC="$am_aux_dir/compile $CC"
4372fi
4373ac_ext=c
4374ac_cpp='$CPP $CPPFLAGS'
4375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
4379DEPDIR="${am__leading_dot}deps"
4380
4381ac_config_commands="$ac_config_commands depfiles"
4382
4383
4384am_make=${MAKE-make}
4385cat > confinc << 'END'
4386am__doit:
4387	@echo this is the am__doit target
4388.PHONY: am__doit
4389END
4390# If we don't find an include directive, just comment out the code.
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4392$as_echo_n "checking for style of include used by $am_make... " >&6; }
4393am__include="#"
4394am__quote=
4395_am_result=none
4396# First try GNU make style include.
4397echo "include confinc" > confmf
4398# Ignore all kinds of additional output from 'make'.
4399case `$am_make -s -f confmf 2> /dev/null` in #(
4400*the\ am__doit\ target*)
4401  am__include=include
4402  am__quote=
4403  _am_result=GNU
4404  ;;
4405esac
4406# Now try BSD make style include.
4407if test "$am__include" = "#"; then
4408   echo '.include "confinc"' > confmf
4409   case `$am_make -s -f confmf 2> /dev/null` in #(
4410   *the\ am__doit\ target*)
4411     am__include=.include
4412     am__quote="\""
4413     _am_result=BSD
4414     ;;
4415   esac
4416fi
4417
4418
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4420$as_echo "$_am_result" >&6; }
4421rm -f confinc confmf
4422
4423# Check whether --enable-dependency-tracking was given.
4424if test "${enable_dependency_tracking+set}" = set; then :
4425  enableval=$enable_dependency_tracking;
4426fi
4427
4428if test "x$enable_dependency_tracking" != xno; then
4429  am_depcomp="$ac_aux_dir/depcomp"
4430  AMDEPBACKSLASH='\'
4431  am__nodep='_no'
4432fi
4433 if test "x$enable_dependency_tracking" != xno; then
4434  AMDEP_TRUE=
4435  AMDEP_FALSE='#'
4436else
4437  AMDEP_TRUE='#'
4438  AMDEP_FALSE=
4439fi
4440
4441
4442
4443depcc="$CC"   am_compiler_list=
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4446$as_echo_n "checking dependency style of $depcc... " >&6; }
4447if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451  # We make a subdir and do the tests there.  Otherwise we can end up
4452  # making bogus files that we don't know about and never remove.  For
4453  # instance it was reported that on HP-UX the gcc test will end up
4454  # making a dummy file named 'D' -- because '-MD' means "put the output
4455  # in D".
4456  rm -rf conftest.dir
4457  mkdir conftest.dir
4458  # Copy depcomp to subdir because otherwise we won't find it if we're
4459  # using a relative directory.
4460  cp "$am_depcomp" conftest.dir
4461  cd conftest.dir
4462  # We will build objects and dependencies in a subdirectory because
4463  # it helps to detect inapplicable dependency modes.  For instance
4464  # both Tru64's cc and ICC support -MD to output dependencies as a
4465  # side effect of compilation, but ICC will put the dependencies in
4466  # the current directory while Tru64 will put them in the object
4467  # directory.
4468  mkdir sub
4469
4470  am_cv_CC_dependencies_compiler_type=none
4471  if test "$am_compiler_list" = ""; then
4472     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4473  fi
4474  am__universal=false
4475  case " $depcc " in #(
4476     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4477     esac
4478
4479  for depmode in $am_compiler_list; do
4480    # Setup a source with many dependencies, because some compilers
4481    # like to wrap large dependency lists on column 80 (with \), and
4482    # we should not choose a depcomp mode which is confused by this.
4483    #
4484    # We need to recreate these files for each test, as the compiler may
4485    # overwrite some of them when testing with obscure command lines.
4486    # This happens at least with the AIX C compiler.
4487    : > sub/conftest.c
4488    for i in 1 2 3 4 5 6; do
4489      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491      # Solaris 10 /bin/sh.
4492      echo '/* dummy */' > sub/conftst$i.h
4493    done
4494    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495
4496    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497    # mode.  It turns out that the SunPro C++ compiler does not properly
4498    # handle '-M -o', and we need to detect this.  Also, some Intel
4499    # versions had trouble with output in subdirs.
4500    am__obj=sub/conftest.${OBJEXT-o}
4501    am__minus_obj="-o $am__obj"
4502    case $depmode in
4503    gcc)
4504      # This depmode causes a compiler race in universal mode.
4505      test "$am__universal" = false || continue
4506      ;;
4507    nosideeffect)
4508      # After this tag, mechanisms are not by side-effect, so they'll
4509      # only be used when explicitly requested.
4510      if test "x$enable_dependency_tracking" = xyes; then
4511	continue
4512      else
4513	break
4514      fi
4515      ;;
4516    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517      # This compiler won't grok '-c -o', but also, the minuso test has
4518      # not run yet.  These depmodes are late enough in the game, and
4519      # so weak that their functioning should not be impacted.
4520      am__obj=conftest.${OBJEXT-o}
4521      am__minus_obj=
4522      ;;
4523    none) break ;;
4524    esac
4525    if depmode=$depmode \
4526       source=sub/conftest.c object=$am__obj \
4527       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529         >/dev/null 2>conftest.err &&
4530       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534      # icc doesn't choke on unknown options, it will just issue warnings
4535      # or remarks (even with -Werror).  So we grep stderr for any message
4536      # that says an option was ignored or not supported.
4537      # When given -MP, icc 7.0 and 7.1 complain thusly:
4538      #   icc: Command line warning: ignoring option '-M'; no argument required
4539      # The diagnosis changed in icc 8.0:
4540      #   icc: Command line remark: option '-MP' not supported
4541      if (grep 'ignoring option' conftest.err ||
4542          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543        am_cv_CC_dependencies_compiler_type=$depmode
4544        break
4545      fi
4546    fi
4547  done
4548
4549  cd ..
4550  rm -rf conftest.dir
4551else
4552  am_cv_CC_dependencies_compiler_type=none
4553fi
4554
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4557$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4558CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4559
4560 if
4561  test "x$enable_dependency_tracking" != xno \
4562  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563  am__fastdepCC_TRUE=
4564  am__fastdepCC_FALSE='#'
4565else
4566  am__fastdepCC_TRUE='#'
4567  am__fastdepCC_FALSE=
4568fi
4569
4570
4571
4572
4573
4574  ansi=
4575  if test -z "$ansi"; then
4576    msg="for C compiler warning flags"
4577  else
4578    msg="for C compiler warning and ANSI conformance flags"
4579  fi
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4581$as_echo_n "checking $msg... " >&6; }
4582if ${vl_cv_prog_cc_warnings+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585
4586    if test -n "$CC"; then
4587      cat > conftest.c <<EOF
4588int main(int argc, char **argv) { return 0; }
4589EOF
4590
4591            if test "$GCC" = "yes"; then
4592        if test -z "$ansi"; then
4593          vl_cv_prog_cc_warnings="-Wall -W"
4594        else
4595          vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4596        fi
4597
4598
4599            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4600           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4601           test -f conftest.o; then
4602        if test -z "$ansi"; then
4603          vl_cv_prog_cc_warnings="-v"
4604        else
4605          vl_cv_prog_cc_warnings="-v -Xc"
4606        fi
4607
4608            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4609           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4610           test -f conftest.o; then
4611        if test -z "$ansi"; then
4612          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4613        else
4614          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4615        fi
4616
4617            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4618           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4619           test -f conftest.o; then
4620        if test -z "$ansi"; then
4621          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4622        else
4623          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4624        fi
4625
4626            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4627           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4628           test -f conftest.o; then
4629        if test -z "$ansi"; then
4630          vl_cv_prog_cc_warnings="-fullwarn"
4631        else
4632          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4633        fi
4634
4635            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4636           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4637           test -f conftest.o; then
4638        if test -z "$ansi"; then
4639          vl_cv_prog_cc_warnings="+w1"
4640        else
4641          vl_cv_prog_cc_warnings="+w1 -Aa"
4642        fi
4643
4644            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4645           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4646           test -f conftest.o; then
4647        if test -z "$ansi"; then
4648          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4649        else
4650          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4651        fi
4652
4653            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4654           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4655           test -f conftest.o; then
4656        if test -z "$ansi"; then
4657          vl_cv_prog_cc_warnings="-h msglevel 2"
4658        else
4659          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4660        fi
4661
4662      fi
4663      rm -f conftest.*
4664    fi
4665    if test -n "$vl_cv_prog_cc_warnings"; then
4666      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4667    else
4668      vl_cv_prog_cc_warnings="unknown"
4669    fi
4670
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4673$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4674
4675
4676
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4678$as_echo_n "checking whether ln -s works... " >&6; }
4679LN_S=$as_ln_s
4680if test "$LN_S" = "ln -s"; then
4681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4682$as_echo "yes" >&6; }
4683else
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4685$as_echo "no, using $LN_S" >&6; }
4686fi
4687
4688
4689
4690# Check if LD supports linker scripts, and define automake conditional
4691# HAVE_LD_VERSION_SCRIPT if so.  This functionality is currently
4692# constrained to compilers using GNU ld on ELF systems or systems
4693# which provide an adequate emulation thereof.
4694# Check whether --enable-ld-version-script was given.
4695if test "${enable_ld_version_script+set}" = set; then :
4696  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4697else
4698  have_ld_version_script=no
4699fi
4700
4701if test "$have_ld_version_script" != no; then
4702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4703$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4704  save_LDFLAGS="$LDFLAGS"
4705  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4706  cat > conftest.map <<EOF
4707VERS_1 {
4708        global: sym;
4709};
4710
4711VERS_2 {
4712        global: sym;
4713} VERS_1;
4714EOF
4715
4716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h.  */
4718
4719int
4720main ()
4721{
4722
4723  ;
4724  return 0;
4725}
4726_ACEOF
4727if ac_fn_c_try_link "$LINENO"; then :
4728  have_ld_version_script=yes
4729else
4730  have_ld_version_script=no
4731fi
4732rm -f core conftest.err conftest.$ac_objext \
4733    conftest$ac_exeext conftest.$ac_ext
4734  rm -f conftest.map
4735  LDFLAGS="$save_LDFLAGS"
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4737$as_echo "$have_ld_version_script" >&6; }
4738fi
4739 if test "$have_ld_version_script" = "yes"; then
4740  HAVE_LD_VERSION_SCRIPT_TRUE=
4741  HAVE_LD_VERSION_SCRIPT_FALSE='#'
4742else
4743  HAVE_LD_VERSION_SCRIPT_TRUE='#'
4744  HAVE_LD_VERSION_SCRIPT_FALSE=
4745fi
4746
4747
4748
4749
4750
4751
4752case `pwd` in
4753  *\ * | *\	*)
4754    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4755$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4756esac
4757
4758
4759
4760macro_version='2.4.4'
4761macro_revision='2.4.4'
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775ltmain=$ac_aux_dir/ltmain.sh
4776
4777# Backslashify metacharacters that are still active within
4778# double-quoted strings.
4779sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4780
4781# Same as above, but do not quote variable references.
4782double_quote_subst='s/\(["`\\]\)/\\\1/g'
4783
4784# Sed substitution to delay expansion of an escaped shell variable in a
4785# double_quote_subst'ed string.
4786delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4787
4788# Sed substitution to delay expansion of an escaped single quote.
4789delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4790
4791# Sed substitution to avoid accidental globbing in evaled expressions
4792no_glob_subst='s/\*/\\\*/g'
4793
4794ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4795ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4796ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4797
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4799$as_echo_n "checking how to print strings... " >&6; }
4800# Test print first, because it will be a builtin if present.
4801if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4802   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4803  ECHO='print -r --'
4804elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4805  ECHO='printf %s\n'
4806else
4807  # Use this function as a fallback that always works.
4808  func_fallback_echo ()
4809  {
4810    eval 'cat <<_LTECHO_EOF
4811$1
4812_LTECHO_EOF'
4813  }
4814  ECHO='func_fallback_echo'
4815fi
4816
4817# func_echo_all arg...
4818# Invoke $ECHO with all args, space-separated.
4819func_echo_all ()
4820{
4821    $ECHO ""
4822}
4823
4824case $ECHO in
4825  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4826$as_echo "printf" >&6; } ;;
4827  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4828$as_echo "print -r" >&6; } ;;
4829  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4830$as_echo "cat" >&6; } ;;
4831esac
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4847$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4848if ${ac_cv_path_SED+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4852     for ac_i in 1 2 3 4 5 6 7; do
4853       ac_script="$ac_script$as_nl$ac_script"
4854     done
4855     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4856     { ac_script=; unset ac_script;}
4857     if test -z "$SED"; then
4858  ac_path_SED_found=false
4859  # Loop through the user's path and test for each of PROGNAME-LIST
4860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865    for ac_prog in sed gsed; do
4866    for ac_exec_ext in '' $ac_executable_extensions; do
4867      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4868      as_fn_executable_p "$ac_path_SED" || continue
4869# Check for GNU ac_path_SED and select it if it is found.
4870  # Check for GNU $ac_path_SED
4871case `"$ac_path_SED" --version 2>&1` in
4872*GNU*)
4873  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4874*)
4875  ac_count=0
4876  $as_echo_n 0123456789 >"conftest.in"
4877  while :
4878  do
4879    cat "conftest.in" "conftest.in" >"conftest.tmp"
4880    mv "conftest.tmp" "conftest.in"
4881    cp "conftest.in" "conftest.nl"
4882    $as_echo '' >> "conftest.nl"
4883    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4884    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4885    as_fn_arith $ac_count + 1 && ac_count=$as_val
4886    if test $ac_count -gt ${ac_path_SED_max-0}; then
4887      # Best one so far, save it but keep looking for a better one
4888      ac_cv_path_SED="$ac_path_SED"
4889      ac_path_SED_max=$ac_count
4890    fi
4891    # 10*(2^10) chars as input seems more than enough
4892    test $ac_count -gt 10 && break
4893  done
4894  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895esac
4896
4897      $ac_path_SED_found && break 3
4898    done
4899  done
4900  done
4901IFS=$as_save_IFS
4902  if test -z "$ac_cv_path_SED"; then
4903    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4904  fi
4905else
4906  ac_cv_path_SED=$SED
4907fi
4908
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4911$as_echo "$ac_cv_path_SED" >&6; }
4912 SED="$ac_cv_path_SED"
4913  rm -f conftest.sed
4914
4915test -z "$SED" && SED=sed
4916Xsed="$SED -e 1s/^X//"
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4929$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4930if ${ac_cv_path_GREP+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  if test -z "$GREP"; then
4934  ac_path_GREP_found=false
4935  # Loop through the user's path and test for each of PROGNAME-LIST
4936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938do
4939  IFS=$as_save_IFS
4940  test -z "$as_dir" && as_dir=.
4941    for ac_prog in grep ggrep; do
4942    for ac_exec_ext in '' $ac_executable_extensions; do
4943      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4944      as_fn_executable_p "$ac_path_GREP" || continue
4945# Check for GNU ac_path_GREP and select it if it is found.
4946  # Check for GNU $ac_path_GREP
4947case `"$ac_path_GREP" --version 2>&1` in
4948*GNU*)
4949  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4950*)
4951  ac_count=0
4952  $as_echo_n 0123456789 >"conftest.in"
4953  while :
4954  do
4955    cat "conftest.in" "conftest.in" >"conftest.tmp"
4956    mv "conftest.tmp" "conftest.in"
4957    cp "conftest.in" "conftest.nl"
4958    $as_echo 'GREP' >> "conftest.nl"
4959    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4960    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4961    as_fn_arith $ac_count + 1 && ac_count=$as_val
4962    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4963      # Best one so far, save it but keep looking for a better one
4964      ac_cv_path_GREP="$ac_path_GREP"
4965      ac_path_GREP_max=$ac_count
4966    fi
4967    # 10*(2^10) chars as input seems more than enough
4968    test $ac_count -gt 10 && break
4969  done
4970  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4971esac
4972
4973      $ac_path_GREP_found && break 3
4974    done
4975  done
4976  done
4977IFS=$as_save_IFS
4978  if test -z "$ac_cv_path_GREP"; then
4979    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4980  fi
4981else
4982  ac_cv_path_GREP=$GREP
4983fi
4984
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4987$as_echo "$ac_cv_path_GREP" >&6; }
4988 GREP="$ac_cv_path_GREP"
4989
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4992$as_echo_n "checking for egrep... " >&6; }
4993if ${ac_cv_path_EGREP+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4997   then ac_cv_path_EGREP="$GREP -E"
4998   else
4999     if test -z "$EGREP"; then
5000  ac_path_EGREP_found=false
5001  # Loop through the user's path and test for each of PROGNAME-LIST
5002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007    for ac_prog in egrep; do
5008    for ac_exec_ext in '' $ac_executable_extensions; do
5009      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5010      as_fn_executable_p "$ac_path_EGREP" || continue
5011# Check for GNU ac_path_EGREP and select it if it is found.
5012  # Check for GNU $ac_path_EGREP
5013case `"$ac_path_EGREP" --version 2>&1` in
5014*GNU*)
5015  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5016*)
5017  ac_count=0
5018  $as_echo_n 0123456789 >"conftest.in"
5019  while :
5020  do
5021    cat "conftest.in" "conftest.in" >"conftest.tmp"
5022    mv "conftest.tmp" "conftest.in"
5023    cp "conftest.in" "conftest.nl"
5024    $as_echo 'EGREP' >> "conftest.nl"
5025    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5026    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5027    as_fn_arith $ac_count + 1 && ac_count=$as_val
5028    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5029      # Best one so far, save it but keep looking for a better one
5030      ac_cv_path_EGREP="$ac_path_EGREP"
5031      ac_path_EGREP_max=$ac_count
5032    fi
5033    # 10*(2^10) chars as input seems more than enough
5034    test $ac_count -gt 10 && break
5035  done
5036  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037esac
5038
5039      $ac_path_EGREP_found && break 3
5040    done
5041  done
5042  done
5043IFS=$as_save_IFS
5044  if test -z "$ac_cv_path_EGREP"; then
5045    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5046  fi
5047else
5048  ac_cv_path_EGREP=$EGREP
5049fi
5050
5051   fi
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5054$as_echo "$ac_cv_path_EGREP" >&6; }
5055 EGREP="$ac_cv_path_EGREP"
5056
5057
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5059$as_echo_n "checking for fgrep... " >&6; }
5060if ${ac_cv_path_FGREP+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5064   then ac_cv_path_FGREP="$GREP -F"
5065   else
5066     if test -z "$FGREP"; then
5067  ac_path_FGREP_found=false
5068  # Loop through the user's path and test for each of PROGNAME-LIST
5069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5071do
5072  IFS=$as_save_IFS
5073  test -z "$as_dir" && as_dir=.
5074    for ac_prog in fgrep; do
5075    for ac_exec_ext in '' $ac_executable_extensions; do
5076      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5077      as_fn_executable_p "$ac_path_FGREP" || continue
5078# Check for GNU ac_path_FGREP and select it if it is found.
5079  # Check for GNU $ac_path_FGREP
5080case `"$ac_path_FGREP" --version 2>&1` in
5081*GNU*)
5082  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5083*)
5084  ac_count=0
5085  $as_echo_n 0123456789 >"conftest.in"
5086  while :
5087  do
5088    cat "conftest.in" "conftest.in" >"conftest.tmp"
5089    mv "conftest.tmp" "conftest.in"
5090    cp "conftest.in" "conftest.nl"
5091    $as_echo 'FGREP' >> "conftest.nl"
5092    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5093    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5094    as_fn_arith $ac_count + 1 && ac_count=$as_val
5095    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5096      # Best one so far, save it but keep looking for a better one
5097      ac_cv_path_FGREP="$ac_path_FGREP"
5098      ac_path_FGREP_max=$ac_count
5099    fi
5100    # 10*(2^10) chars as input seems more than enough
5101    test $ac_count -gt 10 && break
5102  done
5103  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5104esac
5105
5106      $ac_path_FGREP_found && break 3
5107    done
5108  done
5109  done
5110IFS=$as_save_IFS
5111  if test -z "$ac_cv_path_FGREP"; then
5112    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5113  fi
5114else
5115  ac_cv_path_FGREP=$FGREP
5116fi
5117
5118   fi
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5121$as_echo "$ac_cv_path_FGREP" >&6; }
5122 FGREP="$ac_cv_path_FGREP"
5123
5124
5125test -z "$GREP" && GREP=grep
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145# Check whether --with-gnu-ld was given.
5146if test "${with_gnu_ld+set}" = set; then :
5147  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5148else
5149  with_gnu_ld=no
5150fi
5151
5152ac_prog=ld
5153if test yes = "$GCC"; then
5154  # Check if gcc -print-prog-name=ld gives a path.
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5156$as_echo_n "checking for ld used by $CC... " >&6; }
5157  case $host in
5158  *-*-mingw*)
5159    # gcc leaves a trailing carriage return, which upsets mingw
5160    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5161  *)
5162    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5163  esac
5164  case $ac_prog in
5165    # Accept absolute paths.
5166    [\\/]* | ?:[\\/]*)
5167      re_direlt='/[^/][^/]*/\.\./'
5168      # Canonicalize the pathname of ld
5169      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5170      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5171	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5172      done
5173      test -z "$LD" && LD=$ac_prog
5174      ;;
5175  "")
5176    # If it fails, then pretend we aren't using GCC.
5177    ac_prog=ld
5178    ;;
5179  *)
5180    # If it is relative, then search for the first ld in PATH.
5181    with_gnu_ld=unknown
5182    ;;
5183  esac
5184elif test yes = "$with_gnu_ld"; then
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5186$as_echo_n "checking for GNU ld... " >&6; }
5187else
5188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5189$as_echo_n "checking for non-GNU ld... " >&6; }
5190fi
5191if ${lt_cv_path_LD+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  if test -z "$LD"; then
5195  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5196  for ac_dir in $PATH; do
5197    IFS=$lt_save_ifs
5198    test -z "$ac_dir" && ac_dir=.
5199    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5200      lt_cv_path_LD=$ac_dir/$ac_prog
5201      # Check to see if the program is GNU ld.  I'd rather use --version,
5202      # but apparently some variants of GNU ld only accept -v.
5203      # Break only if it was the GNU/non-GNU ld that we prefer.
5204      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5205      *GNU* | *'with BFD'*)
5206	test no != "$with_gnu_ld" && break
5207	;;
5208      *)
5209	test yes != "$with_gnu_ld" && break
5210	;;
5211      esac
5212    fi
5213  done
5214  IFS=$lt_save_ifs
5215else
5216  lt_cv_path_LD=$LD # Let the user override the test with a path.
5217fi
5218fi
5219
5220LD=$lt_cv_path_LD
5221if test -n "$LD"; then
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5223$as_echo "$LD" >&6; }
5224else
5225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5230$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5231if ${lt_cv_prog_gnu_ld+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5235case `$LD -v 2>&1 </dev/null` in
5236*GNU* | *'with BFD'*)
5237  lt_cv_prog_gnu_ld=yes
5238  ;;
5239*)
5240  lt_cv_prog_gnu_ld=no
5241  ;;
5242esac
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5245$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5246with_gnu_ld=$lt_cv_prog_gnu_ld
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5257$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5258if ${lt_cv_path_NM+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  if test -n "$NM"; then
5262  # Let the user override the test.
5263  lt_cv_path_NM=$NM
5264else
5265  lt_nm_to_check=${ac_tool_prefix}nm
5266  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5267    lt_nm_to_check="$lt_nm_to_check nm"
5268  fi
5269  for lt_tmp_nm in $lt_nm_to_check; do
5270    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5271    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5272      IFS=$lt_save_ifs
5273      test -z "$ac_dir" && ac_dir=.
5274      tmp_nm=$ac_dir/$lt_tmp_nm
5275      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5276	# Check to see if the nm accepts a BSD-compat flag.
5277	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5278	#   nm: unknown option "B" ignored
5279	# Tru64's nm complains that /dev/null is an invalid object file
5280	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5281	case $build_os in
5282	mingw*) lt_bad_file=conftest.nm/nofile ;;
5283	*) lt_bad_file=/dev/null ;;
5284	esac
5285	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5286	*$lt_bad_file* | *'Invalid file or object type'*)
5287	  lt_cv_path_NM="$tmp_nm -B"
5288	  break 2
5289	  ;;
5290	*)
5291	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5292	  */dev/null*)
5293	    lt_cv_path_NM="$tmp_nm -p"
5294	    break 2
5295	    ;;
5296	  *)
5297	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5298	    continue # so that we can try to find one that supports BSD flags
5299	    ;;
5300	  esac
5301	  ;;
5302	esac
5303      fi
5304    done
5305    IFS=$lt_save_ifs
5306  done
5307  : ${lt_cv_path_NM=no}
5308fi
5309fi
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5311$as_echo "$lt_cv_path_NM" >&6; }
5312if test no != "$lt_cv_path_NM"; then
5313  NM=$lt_cv_path_NM
5314else
5315  # Didn't find any BSD compatible name lister, look for dumpbin.
5316  if test -n "$DUMPBIN"; then :
5317    # Let the user override the test.
5318  else
5319    if test -n "$ac_tool_prefix"; then
5320  for ac_prog in dumpbin "link -dump"
5321  do
5322    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325$as_echo_n "checking for $ac_word... " >&6; }
5326if ${ac_cv_prog_DUMPBIN+:} false; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  if test -n "$DUMPBIN"; then
5330  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335  IFS=$as_save_IFS
5336  test -z "$as_dir" && as_dir=.
5337    for ac_exec_ext in '' $ac_executable_extensions; do
5338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341    break 2
5342  fi
5343done
5344  done
5345IFS=$as_save_IFS
5346
5347fi
5348fi
5349DUMPBIN=$ac_cv_prog_DUMPBIN
5350if test -n "$DUMPBIN"; then
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5352$as_echo "$DUMPBIN" >&6; }
5353else
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356fi
5357
5358
5359    test -n "$DUMPBIN" && break
5360  done
5361fi
5362if test -z "$DUMPBIN"; then
5363  ac_ct_DUMPBIN=$DUMPBIN
5364  for ac_prog in dumpbin "link -dump"
5365do
5366  # Extract the first word of "$ac_prog", so it can be a program name with args.
5367set dummy $ac_prog; ac_word=$2
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369$as_echo_n "checking for $ac_word... " >&6; }
5370if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  if test -n "$ac_ct_DUMPBIN"; then
5374  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5375else
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379  IFS=$as_save_IFS
5380  test -z "$as_dir" && as_dir=.
5381    for ac_exec_ext in '' $ac_executable_extensions; do
5382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385    break 2
5386  fi
5387done
5388  done
5389IFS=$as_save_IFS
5390
5391fi
5392fi
5393ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5394if test -n "$ac_ct_DUMPBIN"; then
5395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5396$as_echo "$ac_ct_DUMPBIN" >&6; }
5397else
5398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399$as_echo "no" >&6; }
5400fi
5401
5402
5403  test -n "$ac_ct_DUMPBIN" && break
5404done
5405
5406  if test "x$ac_ct_DUMPBIN" = x; then
5407    DUMPBIN=":"
5408  else
5409    case $cross_compiling:$ac_tool_warned in
5410yes:)
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5413ac_tool_warned=yes ;;
5414esac
5415    DUMPBIN=$ac_ct_DUMPBIN
5416  fi
5417fi
5418
5419    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5420    *COFF*)
5421      DUMPBIN="$DUMPBIN -symbols -headers"
5422      ;;
5423    *)
5424      DUMPBIN=:
5425      ;;
5426    esac
5427  fi
5428
5429  if test : != "$DUMPBIN"; then
5430    NM=$DUMPBIN
5431  fi
5432fi
5433test -z "$NM" && NM=nm
5434
5435
5436
5437
5438
5439
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5441$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5442if ${lt_cv_nm_interface+:} false; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  lt_cv_nm_interface="BSD nm"
5446  echo "int some_variable = 0;" > conftest.$ac_ext
5447  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5448  (eval "$ac_compile" 2>conftest.err)
5449  cat conftest.err >&5
5450  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5451  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5452  cat conftest.err >&5
5453  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5454  cat conftest.out >&5
5455  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5456    lt_cv_nm_interface="MS dumpbin"
5457  fi
5458  rm -f conftest*
5459fi
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5461$as_echo "$lt_cv_nm_interface" >&6; }
5462
5463# find the maximum length of command line arguments
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5465$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5466if ${lt_cv_sys_max_cmd_len+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469    i=0
5470  teststring=ABCD
5471
5472  case $build_os in
5473  msdosdjgpp*)
5474    # On DJGPP, this test can blow up pretty badly due to problems in libc
5475    # (any single argument exceeding 2000 bytes causes a buffer overrun
5476    # during glob expansion).  Even if it were fixed, the result of this
5477    # check would be larger than it should be.
5478    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5479    ;;
5480
5481  gnu*)
5482    # Under GNU Hurd, this test is not required because there is
5483    # no limit to the length of command line arguments.
5484    # Libtool will interpret -1 as no limit whatsoever
5485    lt_cv_sys_max_cmd_len=-1;
5486    ;;
5487
5488  cygwin* | mingw* | cegcc*)
5489    # On Win9x/ME, this test blows up -- it succeeds, but takes
5490    # about 5 minutes as the teststring grows exponentially.
5491    # Worse, since 9x/ME are not pre-emptively multitasking,
5492    # you end up with a "frozen" computer, even though with patience
5493    # the test eventually succeeds (with a max line length of 256k).
5494    # Instead, let's just punt: use the minimum linelength reported by
5495    # all of the supported platforms: 8192 (on NT/2K/XP).
5496    lt_cv_sys_max_cmd_len=8192;
5497    ;;
5498
5499  mint*)
5500    # On MiNT this can take a long time and run out of memory.
5501    lt_cv_sys_max_cmd_len=8192;
5502    ;;
5503
5504  amigaos*)
5505    # On AmigaOS with pdksh, this test takes hours, literally.
5506    # So we just punt and use a minimum line length of 8192.
5507    lt_cv_sys_max_cmd_len=8192;
5508    ;;
5509
5510  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5511    # This has been around since 386BSD, at least.  Likely further.
5512    if test -x /sbin/sysctl; then
5513      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5514    elif test -x /usr/sbin/sysctl; then
5515      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5516    else
5517      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5518    fi
5519    # And add a safety zone
5520    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5521    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5522    ;;
5523
5524  interix*)
5525    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5526    lt_cv_sys_max_cmd_len=196608
5527    ;;
5528
5529  os2*)
5530    # The test takes a long time on OS/2.
5531    lt_cv_sys_max_cmd_len=8192
5532    ;;
5533
5534  osf*)
5535    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5536    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5537    # nice to cause kernel panics so lets avoid the loop below.
5538    # First set a reasonable default.
5539    lt_cv_sys_max_cmd_len=16384
5540    #
5541    if test -x /sbin/sysconfig; then
5542      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5543        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5544      esac
5545    fi
5546    ;;
5547  sco3.2v5*)
5548    lt_cv_sys_max_cmd_len=102400
5549    ;;
5550  sysv5* | sco5v6* | sysv4.2uw2*)
5551    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5552    if test -n "$kargmax"; then
5553      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5554    else
5555      lt_cv_sys_max_cmd_len=32768
5556    fi
5557    ;;
5558  *)
5559    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5560    if test -n "$lt_cv_sys_max_cmd_len" && \
5561       test undefined != "$lt_cv_sys_max_cmd_len"; then
5562      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5563      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5564    else
5565      # Make teststring a little bigger before we do anything with it.
5566      # a 1K string should be a reasonable start.
5567      for i in 1 2 3 4 5 6 7 8; do
5568        teststring=$teststring$teststring
5569      done
5570      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5571      # If test is not a shell built-in, we'll probably end up computing a
5572      # maximum length that is only half of the actual maximum length, but
5573      # we can't tell.
5574      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5575	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5576	      test 17 != "$i" # 1/2 MB should be enough
5577      do
5578        i=`expr $i + 1`
5579        teststring=$teststring$teststring
5580      done
5581      # Only check the string length outside the loop.
5582      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5583      teststring=
5584      # Add a significant safety factor because C++ compilers can tack on
5585      # massive amounts of additional arguments before passing them to the
5586      # linker.  It appears as though 1/2 is a usable value.
5587      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5588    fi
5589    ;;
5590  esac
5591
5592fi
5593
5594if test -n "$lt_cv_sys_max_cmd_len"; then
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5596$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5597else
5598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5599$as_echo "none" >&6; }
5600fi
5601max_cmd_len=$lt_cv_sys_max_cmd_len
5602
5603
5604
5605
5606
5607
5608: ${CP="cp -f"}
5609: ${MV="mv -f"}
5610: ${RM="rm -f"}
5611
5612if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5613  lt_unset=unset
5614else
5615  lt_unset=false
5616fi
5617
5618
5619
5620
5621
5622# test EBCDIC or ASCII
5623case `echo X|tr X '\101'` in
5624 A) # ASCII based system
5625    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5626  lt_SP2NL='tr \040 \012'
5627  lt_NL2SP='tr \015\012 \040\040'
5628  ;;
5629 *) # EBCDIC based system
5630  lt_SP2NL='tr \100 \n'
5631  lt_NL2SP='tr \r\n \100\100'
5632  ;;
5633esac
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5644$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5645if ${lt_cv_to_host_file_cmd+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  case $host in
5649  *-*-mingw* )
5650    case $build in
5651      *-*-mingw* ) # actually msys
5652        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5653        ;;
5654      *-*-cygwin* )
5655        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5656        ;;
5657      * ) # otherwise, assume *nix
5658        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5659        ;;
5660    esac
5661    ;;
5662  *-*-cygwin* )
5663    case $build in
5664      *-*-mingw* ) # actually msys
5665        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5666        ;;
5667      *-*-cygwin* )
5668        lt_cv_to_host_file_cmd=func_convert_file_noop
5669        ;;
5670      * ) # otherwise, assume *nix
5671        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5672        ;;
5673    esac
5674    ;;
5675  * ) # unhandled hosts (and "normal" native builds)
5676    lt_cv_to_host_file_cmd=func_convert_file_noop
5677    ;;
5678esac
5679
5680fi
5681
5682to_host_file_cmd=$lt_cv_to_host_file_cmd
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5684$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5685
5686
5687
5688
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5691$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5692if ${lt_cv_to_tool_file_cmd+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  #assume ordinary cross tools, or native build.
5696lt_cv_to_tool_file_cmd=func_convert_file_noop
5697case $host in
5698  *-*-mingw* )
5699    case $build in
5700      *-*-mingw* ) # actually msys
5701        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5702        ;;
5703    esac
5704    ;;
5705esac
5706
5707fi
5708
5709to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5711$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5712
5713
5714
5715
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5718$as_echo_n "checking for $LD option to reload object files... " >&6; }
5719if ${lt_cv_ld_reload_flag+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  lt_cv_ld_reload_flag='-r'
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5725$as_echo "$lt_cv_ld_reload_flag" >&6; }
5726reload_flag=$lt_cv_ld_reload_flag
5727case $reload_flag in
5728"" | " "*) ;;
5729*) reload_flag=" $reload_flag" ;;
5730esac
5731reload_cmds='$LD$reload_flag -o $output$reload_objs'
5732case $host_os in
5733  cygwin* | mingw* | pw32* | cegcc*)
5734    if test yes != "$GCC"; then
5735      reload_cmds=false
5736    fi
5737    ;;
5738  darwin*)
5739    if test yes = "$GCC"; then
5740      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5741    else
5742      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5743    fi
5744    ;;
5745esac
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755if test -n "$ac_tool_prefix"; then
5756  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5757set dummy ${ac_tool_prefix}objdump; ac_word=$2
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759$as_echo_n "checking for $ac_word... " >&6; }
5760if ${ac_cv_prog_OBJDUMP+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  if test -n "$OBJDUMP"; then
5764  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5765else
5766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767for as_dir in $PATH
5768do
5769  IFS=$as_save_IFS
5770  test -z "$as_dir" && as_dir=.
5771    for ac_exec_ext in '' $ac_executable_extensions; do
5772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775    break 2
5776  fi
5777done
5778  done
5779IFS=$as_save_IFS
5780
5781fi
5782fi
5783OBJDUMP=$ac_cv_prog_OBJDUMP
5784if test -n "$OBJDUMP"; then
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5786$as_echo "$OBJDUMP" >&6; }
5787else
5788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789$as_echo "no" >&6; }
5790fi
5791
5792
5793fi
5794if test -z "$ac_cv_prog_OBJDUMP"; then
5795  ac_ct_OBJDUMP=$OBJDUMP
5796  # Extract the first word of "objdump", so it can be a program name with args.
5797set dummy objdump; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  if test -n "$ac_ct_OBJDUMP"; then
5804  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811    for ac_exec_ext in '' $ac_executable_extensions; do
5812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818  done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5824if test -n "$ac_ct_OBJDUMP"; then
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5826$as_echo "$ac_ct_OBJDUMP" >&6; }
5827else
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832  if test "x$ac_ct_OBJDUMP" = x; then
5833    OBJDUMP="false"
5834  else
5835    case $cross_compiling:$ac_tool_warned in
5836yes:)
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839ac_tool_warned=yes ;;
5840esac
5841    OBJDUMP=$ac_ct_OBJDUMP
5842  fi
5843else
5844  OBJDUMP="$ac_cv_prog_OBJDUMP"
5845fi
5846
5847test -z "$OBJDUMP" && OBJDUMP=objdump
5848
5849
5850
5851
5852
5853
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5855$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5856if ${lt_cv_deplibs_check_method+:} false; then :
5857  $as_echo_n "(cached) " >&6
5858else
5859  lt_cv_file_magic_cmd='$MAGIC_CMD'
5860lt_cv_file_magic_test_file=
5861lt_cv_deplibs_check_method='unknown'
5862# Need to set the preceding variable on all platforms that support
5863# interlibrary dependencies.
5864# 'none' -- dependencies not supported.
5865# 'unknown' -- same as none, but documents that we really don't know.
5866# 'pass_all' -- all dependencies passed with no checks.
5867# 'test_compile' -- check by making test program.
5868# 'file_magic [[regex]]' -- check by looking for files in library path
5869# that responds to the $file_magic_cmd with a given extended regex.
5870# If you have 'file' or equivalent on your system and you're not sure
5871# whether 'pass_all' will *always* work, you probably want this one.
5872
5873case $host_os in
5874aix[4-9]*)
5875  lt_cv_deplibs_check_method=pass_all
5876  ;;
5877
5878beos*)
5879  lt_cv_deplibs_check_method=pass_all
5880  ;;
5881
5882bsdi[45]*)
5883  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5884  lt_cv_file_magic_cmd='/usr/bin/file -L'
5885  lt_cv_file_magic_test_file=/shlib/libc.so
5886  ;;
5887
5888cygwin*)
5889  # func_win32_libid is a shell function defined in ltmain.sh
5890  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5891  lt_cv_file_magic_cmd='func_win32_libid'
5892  ;;
5893
5894mingw* | pw32*)
5895  # Base MSYS/MinGW do not provide the 'file' command needed by
5896  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5897  # unless we find 'file', for example because we are cross-compiling.
5898  if ( file / ) >/dev/null 2>&1; then
5899    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5900    lt_cv_file_magic_cmd='func_win32_libid'
5901  else
5902    # Keep this pattern in sync with the one in func_win32_libid.
5903    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5904    lt_cv_file_magic_cmd='$OBJDUMP -f'
5905  fi
5906  ;;
5907
5908cegcc*)
5909  # use the weaker test based on 'objdump'. See mingw*.
5910  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5911  lt_cv_file_magic_cmd='$OBJDUMP -f'
5912  ;;
5913
5914darwin* | rhapsody*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918freebsd* | dragonfly*)
5919  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5920    case $host_cpu in
5921    i*86 )
5922      # Not sure whether the presence of OpenBSD here was a mistake.
5923      # Let's accept both of them until this is cleared up.
5924      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5925      lt_cv_file_magic_cmd=/usr/bin/file
5926      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5927      ;;
5928    esac
5929  else
5930    lt_cv_deplibs_check_method=pass_all
5931  fi
5932  ;;
5933
5934haiku*)
5935  lt_cv_deplibs_check_method=pass_all
5936  ;;
5937
5938hpux10.20* | hpux11*)
5939  lt_cv_file_magic_cmd=/usr/bin/file
5940  case $host_cpu in
5941  ia64*)
5942    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5943    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5944    ;;
5945  hppa*64*)
5946    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]'
5947    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5948    ;;
5949  *)
5950    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5951    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5952    ;;
5953  esac
5954  ;;
5955
5956interix[3-9]*)
5957  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5958  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5959  ;;
5960
5961irix5* | irix6* | nonstopux*)
5962  case $LD in
5963  *-32|*"-32 ") libmagic=32-bit;;
5964  *-n32|*"-n32 ") libmagic=N32;;
5965  *-64|*"-64 ") libmagic=64-bit;;
5966  *) libmagic=never-match;;
5967  esac
5968  lt_cv_deplibs_check_method=pass_all
5969  ;;
5970
5971# This must be glibc/ELF.
5972linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976netbsd*)
5977  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5978    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5979  else
5980    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5981  fi
5982  ;;
5983
5984newos6*)
5985  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5986  lt_cv_file_magic_cmd=/usr/bin/file
5987  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5988  ;;
5989
5990*nto* | *qnx*)
5991  lt_cv_deplibs_check_method=pass_all
5992  ;;
5993
5994openbsd* | bitrig*)
5995  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5996    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5997  else
5998    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5999  fi
6000  ;;
6001
6002osf3* | osf4* | osf5*)
6003  lt_cv_deplibs_check_method=pass_all
6004  ;;
6005
6006rdos*)
6007  lt_cv_deplibs_check_method=pass_all
6008  ;;
6009
6010solaris*)
6011  lt_cv_deplibs_check_method=pass_all
6012  ;;
6013
6014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6015  lt_cv_deplibs_check_method=pass_all
6016  ;;
6017
6018sysv4 | sysv4.3*)
6019  case $host_vendor in
6020  motorola)
6021    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]'
6022    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6023    ;;
6024  ncr)
6025    lt_cv_deplibs_check_method=pass_all
6026    ;;
6027  sequent)
6028    lt_cv_file_magic_cmd='/bin/file'
6029    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6030    ;;
6031  sni)
6032    lt_cv_file_magic_cmd='/bin/file'
6033    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6034    lt_cv_file_magic_test_file=/lib/libc.so
6035    ;;
6036  siemens)
6037    lt_cv_deplibs_check_method=pass_all
6038    ;;
6039  pc)
6040    lt_cv_deplibs_check_method=pass_all
6041    ;;
6042  esac
6043  ;;
6044
6045tpf*)
6046  lt_cv_deplibs_check_method=pass_all
6047  ;;
6048os2*)
6049  lt_cv_deplibs_check_method=pass_all
6050  ;;
6051esac
6052
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6055$as_echo "$lt_cv_deplibs_check_method" >&6; }
6056
6057file_magic_glob=
6058want_nocaseglob=no
6059if test "$build" = "$host"; then
6060  case $host_os in
6061  mingw* | pw32*)
6062    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6063      want_nocaseglob=yes
6064    else
6065      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6066    fi
6067    ;;
6068  esac
6069fi
6070
6071file_magic_cmd=$lt_cv_file_magic_cmd
6072deplibs_check_method=$lt_cv_deplibs_check_method
6073test -z "$deplibs_check_method" && deplibs_check_method=unknown
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096if test -n "$ac_tool_prefix"; then
6097  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6098set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100$as_echo_n "checking for $ac_word... " >&6; }
6101if ${ac_cv_prog_DLLTOOL+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  if test -n "$DLLTOOL"; then
6105  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110  IFS=$as_save_IFS
6111  test -z "$as_dir" && as_dir=.
6112    for ac_exec_ext in '' $ac_executable_extensions; do
6113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116    break 2
6117  fi
6118done
6119  done
6120IFS=$as_save_IFS
6121
6122fi
6123fi
6124DLLTOOL=$ac_cv_prog_DLLTOOL
6125if test -n "$DLLTOOL"; then
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6127$as_echo "$DLLTOOL" >&6; }
6128else
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130$as_echo "no" >&6; }
6131fi
6132
6133
6134fi
6135if test -z "$ac_cv_prog_DLLTOOL"; then
6136  ac_ct_DLLTOOL=$DLLTOOL
6137  # Extract the first word of "dlltool", so it can be a program name with args.
6138set dummy dlltool; ac_word=$2
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
6141if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6142  $as_echo_n "(cached) " >&6
6143else
6144  if test -n "$ac_ct_DLLTOOL"; then
6145  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150  IFS=$as_save_IFS
6151  test -z "$as_dir" && as_dir=.
6152    for ac_exec_ext in '' $ac_executable_extensions; do
6153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156    break 2
6157  fi
6158done
6159  done
6160IFS=$as_save_IFS
6161
6162fi
6163fi
6164ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6165if test -n "$ac_ct_DLLTOOL"; then
6166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6167$as_echo "$ac_ct_DLLTOOL" >&6; }
6168else
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
6171fi
6172
6173  if test "x$ac_ct_DLLTOOL" = x; then
6174    DLLTOOL="false"
6175  else
6176    case $cross_compiling:$ac_tool_warned in
6177yes:)
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180ac_tool_warned=yes ;;
6181esac
6182    DLLTOOL=$ac_ct_DLLTOOL
6183  fi
6184else
6185  DLLTOOL="$ac_cv_prog_DLLTOOL"
6186fi
6187
6188test -z "$DLLTOOL" && DLLTOOL=dlltool
6189
6190
6191
6192
6193
6194
6195
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6197$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6198if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  lt_cv_sharedlib_from_linklib_cmd='unknown'
6202
6203case $host_os in
6204cygwin* | mingw* | pw32* | cegcc*)
6205  # two different shell functions defined in ltmain.sh;
6206  # decide which one to use based on capabilities of $DLLTOOL
6207  case `$DLLTOOL --help 2>&1` in
6208  *--identify-strict*)
6209    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6210    ;;
6211  *)
6212    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6213    ;;
6214  esac
6215  ;;
6216*)
6217  # fallback: assume linklib IS sharedlib
6218  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6219  ;;
6220esac
6221
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6224$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6225sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6226test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6227
6228
6229
6230
6231
6232
6233
6234if test -n "$ac_tool_prefix"; then
6235  for ac_prog in ar
6236  do
6237    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6238set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if ${ac_cv_prog_AR+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  if test -n "$AR"; then
6245  ac_cv_prog_AR="$AR" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250  IFS=$as_save_IFS
6251  test -z "$as_dir" && as_dir=.
6252    for ac_exec_ext in '' $ac_executable_extensions; do
6253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256    break 2
6257  fi
6258done
6259  done
6260IFS=$as_save_IFS
6261
6262fi
6263fi
6264AR=$ac_cv_prog_AR
6265if test -n "$AR"; then
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6267$as_echo "$AR" >&6; }
6268else
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274    test -n "$AR" && break
6275  done
6276fi
6277if test -z "$AR"; then
6278  ac_ct_AR=$AR
6279  for ac_prog in ar
6280do
6281  # Extract the first word of "$ac_prog", so it can be a program name with args.
6282set dummy $ac_prog; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if ${ac_cv_prog_ac_ct_AR+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  if test -n "$ac_ct_AR"; then
6289  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294  IFS=$as_save_IFS
6295  test -z "$as_dir" && as_dir=.
6296    for ac_exec_ext in '' $ac_executable_extensions; do
6297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298    ac_cv_prog_ac_ct_AR="$ac_prog"
6299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300    break 2
6301  fi
6302done
6303  done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308ac_ct_AR=$ac_cv_prog_ac_ct_AR
6309if test -n "$ac_ct_AR"; then
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6311$as_echo "$ac_ct_AR" >&6; }
6312else
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318  test -n "$ac_ct_AR" && break
6319done
6320
6321  if test "x$ac_ct_AR" = x; then
6322    AR="false"
6323  else
6324    case $cross_compiling:$ac_tool_warned in
6325yes:)
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328ac_tool_warned=yes ;;
6329esac
6330    AR=$ac_ct_AR
6331  fi
6332fi
6333
6334: ${AR=ar}
6335: ${AR_FLAGS=cru}
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6348$as_echo_n "checking for archiver @FILE support... " >&6; }
6349if ${lt_cv_ar_at_file+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  lt_cv_ar_at_file=no
6353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h.  */
6355
6356int
6357main ()
6358{
6359
6360  ;
6361  return 0;
6362}
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365  echo conftest.$ac_objext > conftest.lst
6366      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6367      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6368  (eval $lt_ar_try) 2>&5
6369  ac_status=$?
6370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371  test $ac_status = 0; }
6372      if test 0 -eq "$ac_status"; then
6373	# Ensure the archiver fails upon bogus file names.
6374	rm -f conftest.$ac_objext libconftest.a
6375	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6376  (eval $lt_ar_try) 2>&5
6377  ac_status=$?
6378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379  test $ac_status = 0; }
6380	if test 0 -ne "$ac_status"; then
6381          lt_cv_ar_at_file=@
6382        fi
6383      fi
6384      rm -f conftest.* libconftest.a
6385
6386fi
6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6391$as_echo "$lt_cv_ar_at_file" >&6; }
6392
6393if test no = "$lt_cv_ar_at_file"; then
6394  archiver_list_spec=
6395else
6396  archiver_list_spec=$lt_cv_ar_at_file
6397fi
6398
6399
6400
6401
6402
6403
6404
6405if test -n "$ac_tool_prefix"; then
6406  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}strip; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_STRIP+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  if test -n "$STRIP"; then
6414  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428  done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433STRIP=$ac_cv_prog_STRIP
6434if test -n "$STRIP"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6436$as_echo "$STRIP" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_STRIP"; then
6445  ac_ct_STRIP=$STRIP
6446  # Extract the first word of "strip", so it can be a program name with args.
6447set dummy strip; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$ac_ct_STRIP"; then
6454  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6474if test -n "$ac_ct_STRIP"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6476$as_echo "$ac_ct_STRIP" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482  if test "x$ac_ct_STRIP" = x; then
6483    STRIP=":"
6484  else
6485    case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491    STRIP=$ac_ct_STRIP
6492  fi
6493else
6494  STRIP="$ac_cv_prog_STRIP"
6495fi
6496
6497test -z "$STRIP" && STRIP=:
6498
6499
6500
6501
6502
6503
6504if test -n "$ac_tool_prefix"; then
6505  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6506set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508$as_echo_n "checking for $ac_word... " >&6; }
6509if ${ac_cv_prog_RANLIB+:} false; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512  if test -n "$RANLIB"; then
6513  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520    for ac_exec_ext in '' $ac_executable_extensions; do
6521  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527  done
6528IFS=$as_save_IFS
6529
6530fi
6531fi
6532RANLIB=$ac_cv_prog_RANLIB
6533if test -n "$RANLIB"; then
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6535$as_echo "$RANLIB" >&6; }
6536else
6537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538$as_echo "no" >&6; }
6539fi
6540
6541
6542fi
6543if test -z "$ac_cv_prog_RANLIB"; then
6544  ac_ct_RANLIB=$RANLIB
6545  # Extract the first word of "ranlib", so it can be a program name with args.
6546set dummy ranlib; ac_word=$2
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548$as_echo_n "checking for $ac_word... " >&6; }
6549if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  if test -n "$ac_ct_RANLIB"; then
6553  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562    ac_cv_prog_ac_ct_RANLIB="ranlib"
6563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567  done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6573if test -n "$ac_ct_RANLIB"; then
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6575$as_echo "$ac_ct_RANLIB" >&6; }
6576else
6577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
6579fi
6580
6581  if test "x$ac_ct_RANLIB" = x; then
6582    RANLIB=":"
6583  else
6584    case $cross_compiling:$ac_tool_warned in
6585yes:)
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588ac_tool_warned=yes ;;
6589esac
6590    RANLIB=$ac_ct_RANLIB
6591  fi
6592else
6593  RANLIB="$ac_cv_prog_RANLIB"
6594fi
6595
6596test -z "$RANLIB" && RANLIB=:
6597
6598
6599
6600
6601
6602
6603# Determine commands to create old-style static archives.
6604old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6605old_postinstall_cmds='chmod 644 $oldlib'
6606old_postuninstall_cmds=
6607
6608if test -n "$RANLIB"; then
6609  case $host_os in
6610  bitrig* | openbsd*)
6611    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6612    ;;
6613  *)
6614    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6615    ;;
6616  esac
6617  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6618fi
6619
6620case $host_os in
6621  darwin*)
6622    lock_old_archive_extraction=yes ;;
6623  *)
6624    lock_old_archive_extraction=no ;;
6625esac
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665# If no C compiler was specified, use CC.
6666LTCC=${LTCC-"$CC"}
6667
6668# If no C compiler flags were specified, use CFLAGS.
6669LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6670
6671# Allow CC to be a program name with arguments.
6672compiler=$CC
6673
6674
6675# Check for command to grab the raw symbol name followed by C symbol from nm.
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6677$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6678if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681
6682# These are sane defaults that work on at least a few old systems.
6683# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6684
6685# Character class describing NM global symbol codes.
6686symcode='[BCDEGRST]'
6687
6688# Regexp to match symbols that can be accessed directly from C.
6689sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6690
6691# Define system-specific variables.
6692case $host_os in
6693aix*)
6694  symcode='[BCDT]'
6695  ;;
6696cygwin* | mingw* | pw32* | cegcc*)
6697  symcode='[ABCDGISTW]'
6698  ;;
6699hpux*)
6700  if test ia64 = "$host_cpu"; then
6701    symcode='[ABCDEGRST]'
6702  fi
6703  ;;
6704irix* | nonstopux*)
6705  symcode='[BCDEGRST]'
6706  ;;
6707osf*)
6708  symcode='[BCDEGQRST]'
6709  ;;
6710solaris*)
6711  symcode='[BDRT]'
6712  ;;
6713sco3.2v5*)
6714  symcode='[DT]'
6715  ;;
6716sysv4.2uw2*)
6717  symcode='[DT]'
6718  ;;
6719sysv5* | sco5v6* | unixware* | OpenUNIX*)
6720  symcode='[ABDT]'
6721  ;;
6722sysv4)
6723  symcode='[DFNSTU]'
6724  ;;
6725esac
6726
6727# If we're using GNU nm, then use its standard symbol codes.
6728case `$NM -V 2>&1` in
6729*GNU* | *'with BFD'*)
6730  symcode='[ABCDGIRSTW]' ;;
6731esac
6732
6733if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6734  # Gets list of data symbols to import.
6735  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6736  # Adjust the below global symbol transforms to fixup imported variables.
6737  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6738  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6739  lt_c_name_lib_hook="\
6740  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6741  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6742else
6743  # Disable hooks by default.
6744  lt_cv_sys_global_symbol_to_import=
6745  lt_cdecl_hook=
6746  lt_c_name_hook=
6747  lt_c_name_lib_hook=
6748fi
6749
6750# Transform an extracted symbol line into a proper C declaration.
6751# Some systems (esp. on ia64) link data and code symbols differently,
6752# so use this general approach.
6753lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6754$lt_cdecl_hook\
6755" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6756" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6757
6758# Transform an extracted symbol line into symbol name and symbol address
6759lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6760$lt_c_name_hook\
6761" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6762" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6763
6764# Transform an extracted symbol line into symbol name with lib prefix and
6765# symbol address.
6766lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6767$lt_c_name_lib_hook\
6768" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6769" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6770" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6771
6772# Handle CRLF in mingw tool chain
6773opt_cr=
6774case $build_os in
6775mingw*)
6776  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6777  ;;
6778esac
6779
6780# Try without a prefix underscore, then with it.
6781for ac_symprfx in "" "_"; do
6782
6783  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6784  symxfrm="\\1 $ac_symprfx\\2 \\2"
6785
6786  # Write the raw and C identifiers.
6787  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6788    # Fake it for dumpbin and say T for any non-static function,
6789    # D for any global variable and I for any imported variable.
6790    # Also find C++ and __fastcall symbols from MSVC++,
6791    # which start with @ or ?.
6792    lt_cv_sys_global_symbol_pipe="$AWK '"\
6793"     {last_section=section; section=\$ 3};"\
6794"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6795"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6796"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6797"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6798"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6799"     \$ 0!~/External *\|/{next};"\
6800"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6801"     {if(hide[section]) next};"\
6802"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6803"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6804"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6805"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6806"     ' prfx=^$ac_symprfx"
6807  else
6808    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6809  fi
6810  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6811
6812  # Check to see that the pipe works correctly.
6813  pipe_works=no
6814
6815  rm -f conftest*
6816  cat > conftest.$ac_ext <<_LT_EOF
6817#ifdef __cplusplus
6818extern "C" {
6819#endif
6820char nm_test_var;
6821void nm_test_func(void);
6822void nm_test_func(void){}
6823#ifdef __cplusplus
6824}
6825#endif
6826int main(){nm_test_var='a';nm_test_func();return(0);}
6827_LT_EOF
6828
6829  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830  (eval $ac_compile) 2>&5
6831  ac_status=$?
6832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833  test $ac_status = 0; }; then
6834    # Now try to grab the symbols.
6835    nlist=conftest.nm
6836    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6837  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6838  ac_status=$?
6839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840  test $ac_status = 0; } && test -s "$nlist"; then
6841      # Try sorting and uniquifying the output.
6842      if sort "$nlist" | uniq > "$nlist"T; then
6843	mv -f "$nlist"T "$nlist"
6844      else
6845	rm -f "$nlist"T
6846      fi
6847
6848      # Make sure that we snagged all the symbols we need.
6849      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6850	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6851	  cat <<_LT_EOF > conftest.$ac_ext
6852/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6853#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6854/* DATA imports from DLLs on WIN32 can't be const, because runtime
6855   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6856# define LT_DLSYM_CONST
6857#elif defined __osf__
6858/* This system does not cope well with relocations in const data.  */
6859# define LT_DLSYM_CONST
6860#else
6861# define LT_DLSYM_CONST const
6862#endif
6863
6864#ifdef __cplusplus
6865extern "C" {
6866#endif
6867
6868_LT_EOF
6869	  # Now generate the symbol file.
6870	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6871
6872	  cat <<_LT_EOF >> conftest.$ac_ext
6873
6874/* The mapping between symbol names and symbols.  */
6875LT_DLSYM_CONST struct {
6876  const char *name;
6877  void       *address;
6878}
6879lt__PROGRAM__LTX_preloaded_symbols[] =
6880{
6881  { "@PROGRAM@", (void *) 0 },
6882_LT_EOF
6883	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6884	  cat <<\_LT_EOF >> conftest.$ac_ext
6885  {0, (void *) 0}
6886};
6887
6888/* This works around a problem in FreeBSD linker */
6889#ifdef FREEBSD_WORKAROUND
6890static const void *lt_preloaded_setup() {
6891  return lt__PROGRAM__LTX_preloaded_symbols;
6892}
6893#endif
6894
6895#ifdef __cplusplus
6896}
6897#endif
6898_LT_EOF
6899	  # Now try linking the two files.
6900	  mv conftest.$ac_objext conftstm.$ac_objext
6901	  lt_globsym_save_LIBS=$LIBS
6902	  lt_globsym_save_CFLAGS=$CFLAGS
6903	  LIBS=conftstm.$ac_objext
6904	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6905	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6906  (eval $ac_link) 2>&5
6907  ac_status=$?
6908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6910	    pipe_works=yes
6911	  fi
6912	  LIBS=$lt_globsym_save_LIBS
6913	  CFLAGS=$lt_globsym_save_CFLAGS
6914	else
6915	  echo "cannot find nm_test_func in $nlist" >&5
6916	fi
6917      else
6918	echo "cannot find nm_test_var in $nlist" >&5
6919      fi
6920    else
6921      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6922    fi
6923  else
6924    echo "$progname: failed program was:" >&5
6925    cat conftest.$ac_ext >&5
6926  fi
6927  rm -rf conftest* conftst*
6928
6929  # Do not use the global_symbol_pipe unless it works.
6930  if test yes = "$pipe_works"; then
6931    break
6932  else
6933    lt_cv_sys_global_symbol_pipe=
6934  fi
6935done
6936
6937fi
6938
6939if test -z "$lt_cv_sys_global_symbol_pipe"; then
6940  lt_cv_sys_global_symbol_to_cdecl=
6941fi
6942if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6944$as_echo "failed" >&6; }
6945else
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6947$as_echo "ok" >&6; }
6948fi
6949
6950# Response file support.
6951if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6952  nm_file_list_spec='@'
6953elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6954  nm_file_list_spec='@'
6955fi
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6994$as_echo_n "checking for sysroot... " >&6; }
6995
6996# Check whether --with-sysroot was given.
6997if test "${with_sysroot+set}" = set; then :
6998  withval=$with_sysroot;
6999else
7000  with_sysroot=no
7001fi
7002
7003
7004lt_sysroot=
7005case $with_sysroot in #(
7006 yes)
7007   if test yes = "$GCC"; then
7008     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7009   fi
7010   ;; #(
7011 /*)
7012   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7013   ;; #(
7014 no|'')
7015   ;; #(
7016 *)
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7018$as_echo "$with_sysroot" >&6; }
7019   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7020   ;;
7021esac
7022
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7024$as_echo "${lt_sysroot:-no}" >&6; }
7025
7026
7027
7028
7029
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7031$as_echo_n "checking for a working dd... " >&6; }
7032if ${ac_cv_path_lt_DD+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  printf 0123456789abcdef0123456789abcdef >conftest.i
7036cat conftest.i conftest.i >conftest2.i
7037: ${lt_DD:=$DD}
7038if test -z "$lt_DD"; then
7039  ac_path_lt_DD_found=false
7040  # Loop through the user's path and test for each of PROGNAME-LIST
7041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044  IFS=$as_save_IFS
7045  test -z "$as_dir" && as_dir=.
7046    for ac_prog in dd; do
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7049      as_fn_executable_p "$ac_path_lt_DD" || continue
7050if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7051  cmp -s conftest.i conftest.out \
7052  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7053fi
7054      $ac_path_lt_DD_found && break 3
7055    done
7056  done
7057  done
7058IFS=$as_save_IFS
7059  if test -z "$ac_cv_path_lt_DD"; then
7060    :
7061  fi
7062else
7063  ac_cv_path_lt_DD=$lt_DD
7064fi
7065
7066rm -f conftest.i conftest2.i conftest.out
7067fi
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7069$as_echo "$ac_cv_path_lt_DD" >&6; }
7070
7071
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7073$as_echo_n "checking how to truncate binary pipes... " >&6; }
7074if ${lt_cv_truncate_bin+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  printf 0123456789abcdef0123456789abcdef >conftest.i
7078cat conftest.i conftest.i >conftest2.i
7079lt_cv_truncate_bin=
7080if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7081  cmp -s conftest.i conftest.out \
7082  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7083fi
7084rm -f conftest.i conftest2.i conftest.out
7085test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7086fi
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7088$as_echo "$lt_cv_truncate_bin" >&6; }
7089
7090
7091
7092
7093
7094
7095# Check whether --enable-libtool-lock was given.
7096if test "${enable_libtool_lock+set}" = set; then :
7097  enableval=$enable_libtool_lock;
7098fi
7099
7100test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7101
7102# Some flags need to be propagated to the compiler or linker for good
7103# libtool support.
7104case $host in
7105ia64-*-hpux*)
7106  # Find out what ABI is being produced by ac_compile, and set mode
7107  # options accordingly.
7108  echo 'int i;' > conftest.$ac_ext
7109  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7110  (eval $ac_compile) 2>&5
7111  ac_status=$?
7112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7113  test $ac_status = 0; }; then
7114    case `/usr/bin/file conftest.$ac_objext` in
7115      *ELF-32*)
7116	HPUX_IA64_MODE=32
7117	;;
7118      *ELF-64*)
7119	HPUX_IA64_MODE=64
7120	;;
7121    esac
7122  fi
7123  rm -rf conftest*
7124  ;;
7125*-*-irix6*)
7126  # Find out what ABI is being produced by ac_compile, and set linker
7127  # options accordingly.
7128  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7129  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7130  (eval $ac_compile) 2>&5
7131  ac_status=$?
7132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133  test $ac_status = 0; }; then
7134    if test yes = "$lt_cv_prog_gnu_ld"; then
7135      case `/usr/bin/file conftest.$ac_objext` in
7136	*32-bit*)
7137	  LD="${LD-ld} -melf32bsmip"
7138	  ;;
7139	*N32*)
7140	  LD="${LD-ld} -melf32bmipn32"
7141	  ;;
7142	*64-bit*)
7143	  LD="${LD-ld} -melf64bmip"
7144	;;
7145      esac
7146    else
7147      case `/usr/bin/file conftest.$ac_objext` in
7148	*32-bit*)
7149	  LD="${LD-ld} -32"
7150	  ;;
7151	*N32*)
7152	  LD="${LD-ld} -n32"
7153	  ;;
7154	*64-bit*)
7155	  LD="${LD-ld} -64"
7156	  ;;
7157      esac
7158    fi
7159  fi
7160  rm -rf conftest*
7161  ;;
7162
7163mips64*-*linux*)
7164  # Find out what ABI is being produced by ac_compile, and set linker
7165  # options accordingly.
7166  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7167  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7168  (eval $ac_compile) 2>&5
7169  ac_status=$?
7170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7171  test $ac_status = 0; }; then
7172    emul=elf
7173    case `/usr/bin/file conftest.$ac_objext` in
7174      *32-bit*)
7175	emul="${emul}32"
7176	;;
7177      *64-bit*)
7178	emul="${emul}64"
7179	;;
7180    esac
7181    case `/usr/bin/file conftest.$ac_objext` in
7182      *MSB*)
7183	emul="${emul}btsmip"
7184	;;
7185      *LSB*)
7186	emul="${emul}ltsmip"
7187	;;
7188    esac
7189    case `/usr/bin/file conftest.$ac_objext` in
7190      *N32*)
7191	emul="${emul}n32"
7192	;;
7193    esac
7194    LD="${LD-ld} -m $emul"
7195  fi
7196  rm -rf conftest*
7197  ;;
7198
7199x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7200s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7201  # Find out what ABI is being produced by ac_compile, and set linker
7202  # options accordingly.  Note that the listed cases only cover the
7203  # situations where additional linker options are needed (such as when
7204  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7205  # vice versa); the common cases where no linker options are needed do
7206  # not appear in the list.
7207  echo 'int i;' > conftest.$ac_ext
7208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209  (eval $ac_compile) 2>&5
7210  ac_status=$?
7211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212  test $ac_status = 0; }; then
7213    case `/usr/bin/file conftest.o` in
7214      *32-bit*)
7215	case $host in
7216	  x86_64-*kfreebsd*-gnu)
7217	    LD="${LD-ld} -m elf_i386_fbsd"
7218	    ;;
7219	  x86_64-*linux*)
7220	    case `/usr/bin/file conftest.o` in
7221	      *x86-64*)
7222		LD="${LD-ld} -m elf32_x86_64"
7223		;;
7224	      *)
7225		LD="${LD-ld} -m elf_i386"
7226		;;
7227	    esac
7228	    ;;
7229	  powerpc64le-*linux*)
7230	    LD="${LD-ld} -m elf32lppclinux"
7231	    ;;
7232	  powerpc64-*linux*)
7233	    LD="${LD-ld} -m elf32ppclinux"
7234	    ;;
7235	  s390x-*linux*)
7236	    LD="${LD-ld} -m elf_s390"
7237	    ;;
7238	  sparc64-*linux*)
7239	    LD="${LD-ld} -m elf32_sparc"
7240	    ;;
7241	esac
7242	;;
7243      *64-bit*)
7244	case $host in
7245	  x86_64-*kfreebsd*-gnu)
7246	    LD="${LD-ld} -m elf_x86_64_fbsd"
7247	    ;;
7248	  x86_64-*linux*)
7249	    LD="${LD-ld} -m elf_x86_64"
7250	    ;;
7251	  powerpcle-*linux*)
7252	    LD="${LD-ld} -m elf64lppc"
7253	    ;;
7254	  powerpc-*linux*)
7255	    LD="${LD-ld} -m elf64ppc"
7256	    ;;
7257	  s390*-*linux*|s390*-*tpf*)
7258	    LD="${LD-ld} -m elf64_s390"
7259	    ;;
7260	  sparc*-*linux*)
7261	    LD="${LD-ld} -m elf64_sparc"
7262	    ;;
7263	esac
7264	;;
7265    esac
7266  fi
7267  rm -rf conftest*
7268  ;;
7269
7270*-*-sco3.2v5*)
7271  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7272  SAVE_CFLAGS=$CFLAGS
7273  CFLAGS="$CFLAGS -belf"
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7275$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7276if ${lt_cv_cc_needs_belf+:} false; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279  ac_ext=c
7280ac_cpp='$CPP $CPPFLAGS'
7281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284
7285     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287
7288int
7289main ()
7290{
7291
7292  ;
7293  return 0;
7294}
7295_ACEOF
7296if ac_fn_c_try_link "$LINENO"; then :
7297  lt_cv_cc_needs_belf=yes
7298else
7299  lt_cv_cc_needs_belf=no
7300fi
7301rm -f core conftest.err conftest.$ac_objext \
7302    conftest$ac_exeext conftest.$ac_ext
7303     ac_ext=c
7304ac_cpp='$CPP $CPPFLAGS'
7305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308
7309fi
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7311$as_echo "$lt_cv_cc_needs_belf" >&6; }
7312  if test yes != "$lt_cv_cc_needs_belf"; then
7313    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7314    CFLAGS=$SAVE_CFLAGS
7315  fi
7316  ;;
7317*-*solaris*)
7318  # Find out what ABI is being produced by ac_compile, and set linker
7319  # options accordingly.
7320  echo 'int i;' > conftest.$ac_ext
7321  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7322  (eval $ac_compile) 2>&5
7323  ac_status=$?
7324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325  test $ac_status = 0; }; then
7326    case `/usr/bin/file conftest.o` in
7327    *64-bit*)
7328      case $lt_cv_prog_gnu_ld in
7329      yes*)
7330        case $host in
7331        i?86-*-solaris*|x86_64-*-solaris*)
7332          LD="${LD-ld} -m elf_x86_64"
7333          ;;
7334        sparc*-*-solaris*)
7335          LD="${LD-ld} -m elf64_sparc"
7336          ;;
7337        esac
7338        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7339        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7340          LD=${LD-ld}_sol2
7341        fi
7342        ;;
7343      *)
7344	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7345	  LD="${LD-ld} -64"
7346	fi
7347	;;
7348      esac
7349      ;;
7350    esac
7351  fi
7352  rm -rf conftest*
7353  ;;
7354esac
7355
7356need_locks=$enable_libtool_lock
7357
7358if test -n "$ac_tool_prefix"; then
7359  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7360set dummy ${ac_tool_prefix}mt; ac_word=$2
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362$as_echo_n "checking for $ac_word... " >&6; }
7363if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  if test -n "$MANIFEST_TOOL"; then
7367  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374    for ac_exec_ext in '' $ac_executable_extensions; do
7375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381  done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7387if test -n "$MANIFEST_TOOL"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7389$as_echo "$MANIFEST_TOOL" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395
7396fi
7397if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7398  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7399  # Extract the first word of "mt", so it can be a program name with args.
7400set dummy mt; ac_word=$2
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402$as_echo_n "checking for $ac_word... " >&6; }
7403if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  if test -n "$ac_ct_MANIFEST_TOOL"; then
7407  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7408else
7409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412  IFS=$as_save_IFS
7413  test -z "$as_dir" && as_dir=.
7414    for ac_exec_ext in '' $ac_executable_extensions; do
7415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418    break 2
7419  fi
7420done
7421  done
7422IFS=$as_save_IFS
7423
7424fi
7425fi
7426ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7427if test -n "$ac_ct_MANIFEST_TOOL"; then
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7429$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7430else
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432$as_echo "no" >&6; }
7433fi
7434
7435  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7436    MANIFEST_TOOL=":"
7437  else
7438    case $cross_compiling:$ac_tool_warned in
7439yes:)
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442ac_tool_warned=yes ;;
7443esac
7444    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7445  fi
7446else
7447  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7448fi
7449
7450test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7452$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7453if ${lt_cv_path_mainfest_tool+:} false; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  lt_cv_path_mainfest_tool=no
7457  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7458  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7459  cat conftest.err >&5
7460  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7461    lt_cv_path_mainfest_tool=yes
7462  fi
7463  rm -f conftest*
7464fi
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7466$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7467if test yes != "$lt_cv_path_mainfest_tool"; then
7468  MANIFEST_TOOL=:
7469fi
7470
7471
7472
7473
7474
7475
7476  case $host_os in
7477    rhapsody* | darwin*)
7478    if test -n "$ac_tool_prefix"; then
7479  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7480set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  if test -n "$DSYMUTIL"; then
7487  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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
7506DSYMUTIL=$ac_cv_prog_DSYMUTIL
7507if test -n "$DSYMUTIL"; then
7508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7509$as_echo "$DSYMUTIL" >&6; }
7510else
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512$as_echo "no" >&6; }
7513fi
7514
7515
7516fi
7517if test -z "$ac_cv_prog_DSYMUTIL"; then
7518  ac_ct_DSYMUTIL=$DSYMUTIL
7519  # Extract the first word of "dsymutil", so it can be a program name with args.
7520set dummy dsymutil; ac_word=$2
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522$as_echo_n "checking for $ac_word... " >&6; }
7523if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  if test -n "$ac_ct_DSYMUTIL"; then
7527  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7528else
7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532  IFS=$as_save_IFS
7533  test -z "$as_dir" && as_dir=.
7534    for ac_exec_ext in '' $ac_executable_extensions; do
7535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538    break 2
7539  fi
7540done
7541  done
7542IFS=$as_save_IFS
7543
7544fi
7545fi
7546ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7547if test -n "$ac_ct_DSYMUTIL"; then
7548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7549$as_echo "$ac_ct_DSYMUTIL" >&6; }
7550else
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552$as_echo "no" >&6; }
7553fi
7554
7555  if test "x$ac_ct_DSYMUTIL" = x; then
7556    DSYMUTIL=":"
7557  else
7558    case $cross_compiling:$ac_tool_warned in
7559yes:)
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7562ac_tool_warned=yes ;;
7563esac
7564    DSYMUTIL=$ac_ct_DSYMUTIL
7565  fi
7566else
7567  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7568fi
7569
7570    if test -n "$ac_tool_prefix"; then
7571  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7572set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then :
7576  $as_echo_n "(cached) " >&6
7577else
7578  if test -n "$NMEDIT"; then
7579  ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
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
7598NMEDIT=$ac_cv_prog_NMEDIT
7599if test -n "$NMEDIT"; then
7600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7601$as_echo "$NMEDIT" >&6; }
7602else
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
7605fi
7606
7607
7608fi
7609if test -z "$ac_cv_prog_NMEDIT"; then
7610  ac_ct_NMEDIT=$NMEDIT
7611  # Extract the first word of "nmedit", so it can be a program name with args.
7612set dummy nmedit; ac_word=$2
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614$as_echo_n "checking for $ac_word... " >&6; }
7615if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7616  $as_echo_n "(cached) " >&6
7617else
7618  if test -n "$ac_ct_NMEDIT"; then
7619  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7620else
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624  IFS=$as_save_IFS
7625  test -z "$as_dir" && as_dir=.
7626    for ac_exec_ext in '' $ac_executable_extensions; do
7627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630    break 2
7631  fi
7632done
7633  done
7634IFS=$as_save_IFS
7635
7636fi
7637fi
7638ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7639if test -n "$ac_ct_NMEDIT"; then
7640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7641$as_echo "$ac_ct_NMEDIT" >&6; }
7642else
7643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644$as_echo "no" >&6; }
7645fi
7646
7647  if test "x$ac_ct_NMEDIT" = x; then
7648    NMEDIT=":"
7649  else
7650    case $cross_compiling:$ac_tool_warned in
7651yes:)
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654ac_tool_warned=yes ;;
7655esac
7656    NMEDIT=$ac_ct_NMEDIT
7657  fi
7658else
7659  NMEDIT="$ac_cv_prog_NMEDIT"
7660fi
7661
7662    if test -n "$ac_tool_prefix"; then
7663  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7664set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  if test -n "$LIPO"; then
7671  ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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
7690LIPO=$ac_cv_prog_LIPO
7691if test -n "$LIPO"; then
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7693$as_echo "$LIPO" >&6; }
7694else
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697fi
7698
7699
7700fi
7701if test -z "$ac_cv_prog_LIPO"; then
7702  ac_ct_LIPO=$LIPO
7703  # Extract the first word of "lipo", so it can be a program name with args.
7704set dummy lipo; ac_word=$2
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706$as_echo_n "checking for $ac_word... " >&6; }
7707if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  if test -n "$ac_ct_LIPO"; then
7711  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7712else
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716  IFS=$as_save_IFS
7717  test -z "$as_dir" && as_dir=.
7718    for ac_exec_ext in '' $ac_executable_extensions; do
7719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720    ac_cv_prog_ac_ct_LIPO="lipo"
7721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725  done
7726IFS=$as_save_IFS
7727
7728fi
7729fi
7730ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7731if test -n "$ac_ct_LIPO"; then
7732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7733$as_echo "$ac_ct_LIPO" >&6; }
7734else
7735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
7737fi
7738
7739  if test "x$ac_ct_LIPO" = x; then
7740    LIPO=":"
7741  else
7742    case $cross_compiling:$ac_tool_warned in
7743yes:)
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746ac_tool_warned=yes ;;
7747esac
7748    LIPO=$ac_ct_LIPO
7749  fi
7750else
7751  LIPO="$ac_cv_prog_LIPO"
7752fi
7753
7754    if test -n "$ac_tool_prefix"; then
7755  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7756set dummy ${ac_tool_prefix}otool; ac_word=$2
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758$as_echo_n "checking for $ac_word... " >&6; }
7759if ${ac_cv_prog_OTOOL+:} false; then :
7760  $as_echo_n "(cached) " >&6
7761else
7762  if test -n "$OTOOL"; then
7763  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768  IFS=$as_save_IFS
7769  test -z "$as_dir" && as_dir=.
7770    for ac_exec_ext in '' $ac_executable_extensions; do
7771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774    break 2
7775  fi
7776done
7777  done
7778IFS=$as_save_IFS
7779
7780fi
7781fi
7782OTOOL=$ac_cv_prog_OTOOL
7783if test -n "$OTOOL"; then
7784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7785$as_echo "$OTOOL" >&6; }
7786else
7787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
7789fi
7790
7791
7792fi
7793if test -z "$ac_cv_prog_OTOOL"; then
7794  ac_ct_OTOOL=$OTOOL
7795  # Extract the first word of "otool", so it can be a program name with args.
7796set dummy otool; ac_word=$2
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798$as_echo_n "checking for $ac_word... " >&6; }
7799if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7800  $as_echo_n "(cached) " >&6
7801else
7802  if test -n "$ac_ct_OTOOL"; then
7803  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808  IFS=$as_save_IFS
7809  test -z "$as_dir" && as_dir=.
7810    for ac_exec_ext in '' $ac_executable_extensions; do
7811  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812    ac_cv_prog_ac_ct_OTOOL="otool"
7813    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814    break 2
7815  fi
7816done
7817  done
7818IFS=$as_save_IFS
7819
7820fi
7821fi
7822ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7823if test -n "$ac_ct_OTOOL"; then
7824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7825$as_echo "$ac_ct_OTOOL" >&6; }
7826else
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
7829fi
7830
7831  if test "x$ac_ct_OTOOL" = x; then
7832    OTOOL=":"
7833  else
7834    case $cross_compiling:$ac_tool_warned in
7835yes:)
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838ac_tool_warned=yes ;;
7839esac
7840    OTOOL=$ac_ct_OTOOL
7841  fi
7842else
7843  OTOOL="$ac_cv_prog_OTOOL"
7844fi
7845
7846    if test -n "$ac_tool_prefix"; then
7847  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7848set dummy ${ac_tool_prefix}otool64; ac_word=$2
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
7851if ${ac_cv_prog_OTOOL64+:} false; then :
7852  $as_echo_n "(cached) " >&6
7853else
7854  if test -n "$OTOOL64"; then
7855  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860  IFS=$as_save_IFS
7861  test -z "$as_dir" && as_dir=.
7862    for ac_exec_ext in '' $ac_executable_extensions; do
7863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866    break 2
7867  fi
7868done
7869  done
7870IFS=$as_save_IFS
7871
7872fi
7873fi
7874OTOOL64=$ac_cv_prog_OTOOL64
7875if test -n "$OTOOL64"; then
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7877$as_echo "$OTOOL64" >&6; }
7878else
7879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881fi
7882
7883
7884fi
7885if test -z "$ac_cv_prog_OTOOL64"; then
7886  ac_ct_OTOOL64=$OTOOL64
7887  # Extract the first word of "otool64", so it can be a program name with args.
7888set dummy otool64; ac_word=$2
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890$as_echo_n "checking for $ac_word... " >&6; }
7891if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7892  $as_echo_n "(cached) " >&6
7893else
7894  if test -n "$ac_ct_OTOOL64"; then
7895  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900  IFS=$as_save_IFS
7901  test -z "$as_dir" && as_dir=.
7902    for ac_exec_ext in '' $ac_executable_extensions; do
7903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904    ac_cv_prog_ac_ct_OTOOL64="otool64"
7905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906    break 2
7907  fi
7908done
7909  done
7910IFS=$as_save_IFS
7911
7912fi
7913fi
7914ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7915if test -n "$ac_ct_OTOOL64"; then
7916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7917$as_echo "$ac_ct_OTOOL64" >&6; }
7918else
7919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921fi
7922
7923  if test "x$ac_ct_OTOOL64" = x; then
7924    OTOOL64=":"
7925  else
7926    case $cross_compiling:$ac_tool_warned in
7927yes:)
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930ac_tool_warned=yes ;;
7931esac
7932    OTOOL64=$ac_ct_OTOOL64
7933  fi
7934else
7935  OTOOL64="$ac_cv_prog_OTOOL64"
7936fi
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7965$as_echo_n "checking for -single_module linker flag... " >&6; }
7966if ${lt_cv_apple_cc_single_mod+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  lt_cv_apple_cc_single_mod=no
7970      if test -z "$LT_MULTI_MODULE"; then
7971	# By default we will add the -single_module flag. You can override
7972	# by either setting the environment variable LT_MULTI_MODULE
7973	# non-empty at configure time, or by adding -multi_module to the
7974	# link flags.
7975	rm -rf libconftest.dylib*
7976	echo "int foo(void){return 1;}" > conftest.c
7977	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7978-dynamiclib -Wl,-single_module conftest.c" >&5
7979	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7980	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7981        _lt_result=$?
7982	# If there is a non-empty error log, and "single_module"
7983	# appears in it, assume the flag caused a linker warning
7984        if test -s conftest.err && $GREP single_module conftest.err; then
7985	  cat conftest.err >&5
7986	# Otherwise, if the output was created with a 0 exit code from
7987	# the compiler, it worked.
7988	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7989	  lt_cv_apple_cc_single_mod=yes
7990	else
7991	  cat conftest.err >&5
7992	fi
7993	rm -rf libconftest.dylib*
7994	rm -f conftest.*
7995      fi
7996fi
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7998$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7999
8000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8001$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8002if ${lt_cv_ld_exported_symbols_list+:} false; then :
8003  $as_echo_n "(cached) " >&6
8004else
8005  lt_cv_ld_exported_symbols_list=no
8006      save_LDFLAGS=$LDFLAGS
8007      echo "_main" > conftest.sym
8008      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8009      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011
8012int
8013main ()
8014{
8015
8016  ;
8017  return 0;
8018}
8019_ACEOF
8020if ac_fn_c_try_link "$LINENO"; then :
8021  lt_cv_ld_exported_symbols_list=yes
8022else
8023  lt_cv_ld_exported_symbols_list=no
8024fi
8025rm -f core conftest.err conftest.$ac_objext \
8026    conftest$ac_exeext conftest.$ac_ext
8027	LDFLAGS=$save_LDFLAGS
8028
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8031$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8032
8033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8034$as_echo_n "checking for -force_load linker flag... " >&6; }
8035if ${lt_cv_ld_force_load+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  lt_cv_ld_force_load=no
8039      cat > conftest.c << _LT_EOF
8040int forced_loaded() { return 2;}
8041_LT_EOF
8042      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8043      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8044      echo "$AR cru libconftest.a conftest.o" >&5
8045      $AR cru libconftest.a conftest.o 2>&5
8046      echo "$RANLIB libconftest.a" >&5
8047      $RANLIB libconftest.a 2>&5
8048      cat > conftest.c << _LT_EOF
8049int main() { return 0;}
8050_LT_EOF
8051      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8052      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8053      _lt_result=$?
8054      if test -s conftest.err && $GREP force_load conftest.err; then
8055	cat conftest.err >&5
8056      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8057	lt_cv_ld_force_load=yes
8058      else
8059	cat conftest.err >&5
8060      fi
8061        rm -f conftest.err libconftest.a conftest conftest.c
8062        rm -rf conftest.dSYM
8063
8064fi
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8066$as_echo "$lt_cv_ld_force_load" >&6; }
8067    case $host_os in
8068    rhapsody* | darwin1.[012])
8069      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8070    darwin1.*)
8071      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8072    darwin*) # darwin 5.x on
8073      # if running on 10.5 or later, the deployment target defaults
8074      # to the OS version, if on x86, and 10.4, the deployment
8075      # target defaults to 10.4. Don't you love it?
8076      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8077	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8078	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8079	10.[012][,.]*)
8080	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8081	10.*)
8082	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8083      esac
8084    ;;
8085  esac
8086    if test yes = "$lt_cv_apple_cc_single_mod"; then
8087      _lt_dar_single_mod='$single_module'
8088    fi
8089    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8090      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8091    else
8092      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8093    fi
8094    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8095      _lt_dsymutil='~$DSYMUTIL $lib || :'
8096    else
8097      _lt_dsymutil=
8098    fi
8099    ;;
8100  esac
8101
8102ac_ext=c
8103ac_cpp='$CPP $CPPFLAGS'
8104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106ac_compiler_gnu=$ac_cv_c_compiler_gnu
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8108$as_echo_n "checking how to run the C preprocessor... " >&6; }
8109# On Suns, sometimes $CPP names a directory.
8110if test -n "$CPP" && test -d "$CPP"; then
8111  CPP=
8112fi
8113if test -z "$CPP"; then
8114  if ${ac_cv_prog_CPP+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117      # Double quotes because CPP needs to be expanded
8118    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8119    do
8120      ac_preproc_ok=false
8121for ac_c_preproc_warn_flag in '' yes
8122do
8123  # Use a header file that comes with gcc, so configuring glibc
8124  # with a fresh cross-compiler works.
8125  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126  # <limits.h> exists even on freestanding compilers.
8127  # On the NeXT, cc -E runs the code through the compiler's parser,
8128  # not just through cpp. "Syntax error" is here to catch this case.
8129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h.  */
8131#ifdef __STDC__
8132# include <limits.h>
8133#else
8134# include <assert.h>
8135#endif
8136		     Syntax error
8137_ACEOF
8138if ac_fn_c_try_cpp "$LINENO"; then :
8139
8140else
8141  # Broken: fails on valid input.
8142continue
8143fi
8144rm -f conftest.err conftest.i conftest.$ac_ext
8145
8146  # OK, works on sane cases.  Now check whether nonexistent headers
8147  # can be detected and how.
8148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150#include <ac_nonexistent.h>
8151_ACEOF
8152if ac_fn_c_try_cpp "$LINENO"; then :
8153  # Broken: success on invalid input.
8154continue
8155else
8156  # Passes both tests.
8157ac_preproc_ok=:
8158break
8159fi
8160rm -f conftest.err conftest.i conftest.$ac_ext
8161
8162done
8163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8164rm -f conftest.i conftest.err conftest.$ac_ext
8165if $ac_preproc_ok; then :
8166  break
8167fi
8168
8169    done
8170    ac_cv_prog_CPP=$CPP
8171
8172fi
8173  CPP=$ac_cv_prog_CPP
8174else
8175  ac_cv_prog_CPP=$CPP
8176fi
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8178$as_echo "$CPP" >&6; }
8179ac_preproc_ok=false
8180for ac_c_preproc_warn_flag in '' yes
8181do
8182  # Use a header file that comes with gcc, so configuring glibc
8183  # with a fresh cross-compiler works.
8184  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8185  # <limits.h> exists even on freestanding compilers.
8186  # On the NeXT, cc -E runs the code through the compiler's parser,
8187  # not just through cpp. "Syntax error" is here to catch this case.
8188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190#ifdef __STDC__
8191# include <limits.h>
8192#else
8193# include <assert.h>
8194#endif
8195		     Syntax error
8196_ACEOF
8197if ac_fn_c_try_cpp "$LINENO"; then :
8198
8199else
8200  # Broken: fails on valid input.
8201continue
8202fi
8203rm -f conftest.err conftest.i conftest.$ac_ext
8204
8205  # OK, works on sane cases.  Now check whether nonexistent headers
8206  # can be detected and how.
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209#include <ac_nonexistent.h>
8210_ACEOF
8211if ac_fn_c_try_cpp "$LINENO"; then :
8212  # Broken: success on invalid input.
8213continue
8214else
8215  # Passes both tests.
8216ac_preproc_ok=:
8217break
8218fi
8219rm -f conftest.err conftest.i conftest.$ac_ext
8220
8221done
8222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8223rm -f conftest.i conftest.err conftest.$ac_ext
8224if $ac_preproc_ok; then :
8225
8226else
8227  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8229as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8230See \`config.log' for more details" "$LINENO" 5; }
8231fi
8232
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8241$as_echo_n "checking for ANSI C header files... " >&6; }
8242if ${ac_cv_header_stdc+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247#include <stdlib.h>
8248#include <stdarg.h>
8249#include <string.h>
8250#include <float.h>
8251
8252int
8253main ()
8254{
8255
8256  ;
8257  return 0;
8258}
8259_ACEOF
8260if ac_fn_c_try_compile "$LINENO"; then :
8261  ac_cv_header_stdc=yes
8262else
8263  ac_cv_header_stdc=no
8264fi
8265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266
8267if test $ac_cv_header_stdc = yes; then
8268  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h.  */
8271#include <string.h>
8272
8273_ACEOF
8274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8275  $EGREP "memchr" >/dev/null 2>&1; then :
8276
8277else
8278  ac_cv_header_stdc=no
8279fi
8280rm -f conftest*
8281
8282fi
8283
8284if test $ac_cv_header_stdc = yes; then
8285  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h.  */
8288#include <stdlib.h>
8289
8290_ACEOF
8291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8292  $EGREP "free" >/dev/null 2>&1; then :
8293
8294else
8295  ac_cv_header_stdc=no
8296fi
8297rm -f conftest*
8298
8299fi
8300
8301if test $ac_cv_header_stdc = yes; then
8302  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8303  if test "$cross_compiling" = yes; then :
8304  :
8305else
8306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308#include <ctype.h>
8309#include <stdlib.h>
8310#if ((' ' & 0x0FF) == 0x020)
8311# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8312# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8313#else
8314# define ISLOWER(c) \
8315		   (('a' <= (c) && (c) <= 'i') \
8316		     || ('j' <= (c) && (c) <= 'r') \
8317		     || ('s' <= (c) && (c) <= 'z'))
8318# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8319#endif
8320
8321#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8322int
8323main ()
8324{
8325  int i;
8326  for (i = 0; i < 256; i++)
8327    if (XOR (islower (i), ISLOWER (i))
8328	|| toupper (i) != TOUPPER (i))
8329      return 2;
8330  return 0;
8331}
8332_ACEOF
8333if ac_fn_c_try_run "$LINENO"; then :
8334
8335else
8336  ac_cv_header_stdc=no
8337fi
8338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8339  conftest.$ac_objext conftest.beam conftest.$ac_ext
8340fi
8341
8342fi
8343fi
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8345$as_echo "$ac_cv_header_stdc" >&6; }
8346if test $ac_cv_header_stdc = yes; then
8347
8348$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8349
8350fi
8351
8352# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8353for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8354		  inttypes.h stdint.h unistd.h
8355do :
8356  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8357ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8358"
8359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8360  cat >>confdefs.h <<_ACEOF
8361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8362_ACEOF
8363
8364fi
8365
8366done
8367
8368
8369for ac_header in dlfcn.h
8370do :
8371  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8372"
8373if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8374  cat >>confdefs.h <<_ACEOF
8375#define HAVE_DLFCN_H 1
8376_ACEOF
8377
8378fi
8379
8380done
8381
8382
8383
8384
8385
8386# Set options
8387enable_win32_dll=yes
8388
8389case $host in
8390*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8391  if test -n "$ac_tool_prefix"; then
8392  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8393set dummy ${ac_tool_prefix}as; 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_AS+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  if test -n "$AS"; then
8400  ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
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
8419AS=$ac_cv_prog_AS
8420if test -n "$AS"; then
8421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8422$as_echo "$AS" >&6; }
8423else
8424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425$as_echo "no" >&6; }
8426fi
8427
8428
8429fi
8430if test -z "$ac_cv_prog_AS"; then
8431  ac_ct_AS=$AS
8432  # Extract the first word of "as", so it can be a program name with args.
8433set dummy as; ac_word=$2
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435$as_echo_n "checking for $ac_word... " >&6; }
8436if ${ac_cv_prog_ac_ct_AS+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  if test -n "$ac_ct_AS"; then
8440  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8441else
8442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443for as_dir in $PATH
8444do
8445  IFS=$as_save_IFS
8446  test -z "$as_dir" && as_dir=.
8447    for ac_exec_ext in '' $ac_executable_extensions; do
8448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449    ac_cv_prog_ac_ct_AS="as"
8450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451    break 2
8452  fi
8453done
8454  done
8455IFS=$as_save_IFS
8456
8457fi
8458fi
8459ac_ct_AS=$ac_cv_prog_ac_ct_AS
8460if test -n "$ac_ct_AS"; then
8461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8462$as_echo "$ac_ct_AS" >&6; }
8463else
8464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465$as_echo "no" >&6; }
8466fi
8467
8468  if test "x$ac_ct_AS" = x; then
8469    AS="false"
8470  else
8471    case $cross_compiling:$ac_tool_warned in
8472yes:)
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8475ac_tool_warned=yes ;;
8476esac
8477    AS=$ac_ct_AS
8478  fi
8479else
8480  AS="$ac_cv_prog_AS"
8481fi
8482
8483  if test -n "$ac_tool_prefix"; then
8484  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8485set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487$as_echo_n "checking for $ac_word... " >&6; }
8488if ${ac_cv_prog_DLLTOOL+:} false; then :
8489  $as_echo_n "(cached) " >&6
8490else
8491  if test -n "$DLLTOOL"; then
8492  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8493else
8494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495for as_dir in $PATH
8496do
8497  IFS=$as_save_IFS
8498  test -z "$as_dir" && as_dir=.
8499    for ac_exec_ext in '' $ac_executable_extensions; do
8500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503    break 2
8504  fi
8505done
8506  done
8507IFS=$as_save_IFS
8508
8509fi
8510fi
8511DLLTOOL=$ac_cv_prog_DLLTOOL
8512if test -n "$DLLTOOL"; then
8513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8514$as_echo "$DLLTOOL" >&6; }
8515else
8516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517$as_echo "no" >&6; }
8518fi
8519
8520
8521fi
8522if test -z "$ac_cv_prog_DLLTOOL"; then
8523  ac_ct_DLLTOOL=$DLLTOOL
8524  # Extract the first word of "dlltool", so it can be a program name with args.
8525set dummy dlltool; ac_word=$2
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527$as_echo_n "checking for $ac_word... " >&6; }
8528if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  if test -n "$ac_ct_DLLTOOL"; then
8532  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8533else
8534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535for as_dir in $PATH
8536do
8537  IFS=$as_save_IFS
8538  test -z "$as_dir" && as_dir=.
8539    for ac_exec_ext in '' $ac_executable_extensions; do
8540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543    break 2
8544  fi
8545done
8546  done
8547IFS=$as_save_IFS
8548
8549fi
8550fi
8551ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8552if test -n "$ac_ct_DLLTOOL"; then
8553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8554$as_echo "$ac_ct_DLLTOOL" >&6; }
8555else
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557$as_echo "no" >&6; }
8558fi
8559
8560  if test "x$ac_ct_DLLTOOL" = x; then
8561    DLLTOOL="false"
8562  else
8563    case $cross_compiling:$ac_tool_warned in
8564yes:)
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8567ac_tool_warned=yes ;;
8568esac
8569    DLLTOOL=$ac_ct_DLLTOOL
8570  fi
8571else
8572  DLLTOOL="$ac_cv_prog_DLLTOOL"
8573fi
8574
8575  if test -n "$ac_tool_prefix"; then
8576  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8577set dummy ${ac_tool_prefix}objdump; ac_word=$2
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579$as_echo_n "checking for $ac_word... " >&6; }
8580if ${ac_cv_prog_OBJDUMP+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  if test -n "$OBJDUMP"; then
8584  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8585else
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589  IFS=$as_save_IFS
8590  test -z "$as_dir" && as_dir=.
8591    for ac_exec_ext in '' $ac_executable_extensions; do
8592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595    break 2
8596  fi
8597done
8598  done
8599IFS=$as_save_IFS
8600
8601fi
8602fi
8603OBJDUMP=$ac_cv_prog_OBJDUMP
8604if test -n "$OBJDUMP"; then
8605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8606$as_echo "$OBJDUMP" >&6; }
8607else
8608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
8610fi
8611
8612
8613fi
8614if test -z "$ac_cv_prog_OBJDUMP"; then
8615  ac_ct_OBJDUMP=$OBJDUMP
8616  # Extract the first word of "objdump", so it can be a program name with args.
8617set dummy objdump; ac_word=$2
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619$as_echo_n "checking for $ac_word... " >&6; }
8620if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8621  $as_echo_n "(cached) " >&6
8622else
8623  if test -n "$ac_ct_OBJDUMP"; then
8624  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8625else
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629  IFS=$as_save_IFS
8630  test -z "$as_dir" && as_dir=.
8631    for ac_exec_ext in '' $ac_executable_extensions; do
8632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635    break 2
8636  fi
8637done
8638  done
8639IFS=$as_save_IFS
8640
8641fi
8642fi
8643ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8644if test -n "$ac_ct_OBJDUMP"; then
8645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8646$as_echo "$ac_ct_OBJDUMP" >&6; }
8647else
8648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649$as_echo "no" >&6; }
8650fi
8651
8652  if test "x$ac_ct_OBJDUMP" = x; then
8653    OBJDUMP="false"
8654  else
8655    case $cross_compiling:$ac_tool_warned in
8656yes:)
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8659ac_tool_warned=yes ;;
8660esac
8661    OBJDUMP=$ac_ct_OBJDUMP
8662  fi
8663else
8664  OBJDUMP="$ac_cv_prog_OBJDUMP"
8665fi
8666
8667  ;;
8668esac
8669
8670test -z "$AS" && AS=as
8671
8672
8673
8674
8675
8676test -z "$DLLTOOL" && DLLTOOL=dlltool
8677
8678
8679
8680
8681
8682test -z "$OBJDUMP" && OBJDUMP=objdump
8683
8684
8685
8686
8687
8688
8689
8690        enable_dlopen=no
8691
8692
8693
8694            # Check whether --enable-shared was given.
8695if test "${enable_shared+set}" = set; then :
8696  enableval=$enable_shared; p=${PACKAGE-default}
8697    case $enableval in
8698    yes) enable_shared=yes ;;
8699    no) enable_shared=no ;;
8700    *)
8701      enable_shared=no
8702      # Look at the argument we got.  We use all the common list separators.
8703      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8704      for pkg in $enableval; do
8705	IFS=$lt_save_ifs
8706	if test "X$pkg" = "X$p"; then
8707	  enable_shared=yes
8708	fi
8709      done
8710      IFS=$lt_save_ifs
8711      ;;
8712    esac
8713else
8714  enable_shared=yes
8715fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725  # Check whether --enable-static was given.
8726if test "${enable_static+set}" = set; then :
8727  enableval=$enable_static; p=${PACKAGE-default}
8728    case $enableval in
8729    yes) enable_static=yes ;;
8730    no) enable_static=no ;;
8731    *)
8732     enable_static=no
8733      # Look at the argument we got.  We use all the common list separators.
8734      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8735      for pkg in $enableval; do
8736	IFS=$lt_save_ifs
8737	if test "X$pkg" = "X$p"; then
8738	  enable_static=yes
8739	fi
8740      done
8741      IFS=$lt_save_ifs
8742      ;;
8743    esac
8744else
8745  enable_static=yes
8746fi
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757# Check whether --with-pic was given.
8758if test "${with_pic+set}" = set; then :
8759  withval=$with_pic; lt_p=${PACKAGE-default}
8760    case $withval in
8761    yes|no) pic_mode=$withval ;;
8762    *)
8763      pic_mode=default
8764      # Look at the argument we got.  We use all the common list separators.
8765      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8766      for lt_pkg in $withval; do
8767	IFS=$lt_save_ifs
8768	if test "X$lt_pkg" = "X$lt_p"; then
8769	  pic_mode=yes
8770	fi
8771      done
8772      IFS=$lt_save_ifs
8773      ;;
8774    esac
8775else
8776  pic_mode=default
8777fi
8778
8779
8780
8781
8782
8783
8784
8785
8786  # Check whether --enable-fast-install was given.
8787if test "${enable_fast_install+set}" = set; then :
8788  enableval=$enable_fast_install; p=${PACKAGE-default}
8789    case $enableval in
8790    yes) enable_fast_install=yes ;;
8791    no) enable_fast_install=no ;;
8792    *)
8793      enable_fast_install=no
8794      # Look at the argument we got.  We use all the common list separators.
8795      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8796      for pkg in $enableval; do
8797	IFS=$lt_save_ifs
8798	if test "X$pkg" = "X$p"; then
8799	  enable_fast_install=yes
8800	fi
8801      done
8802      IFS=$lt_save_ifs
8803      ;;
8804    esac
8805else
8806  enable_fast_install=yes
8807fi
8808
8809
8810
8811
8812
8813
8814
8815
8816  shared_archive_member_spec=
8817case $host,$enable_shared in
8818power*-*-aix[5-9]*,yes)
8819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8820$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8821
8822# Check whether --with-aix-soname was given.
8823if test "${with_aix_soname+set}" = set; then :
8824  withval=$with_aix_soname; case $withval in
8825    aix|svr4|both)
8826      ;;
8827    *)
8828      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8829      ;;
8830    esac
8831    lt_cv_with_aix_soname=$with_aix_soname
8832else
8833  if ${lt_cv_with_aix_soname+:} false; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  lt_cv_with_aix_soname=aix
8837fi
8838
8839    with_aix_soname=$lt_cv_with_aix_soname
8840fi
8841
8842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8843$as_echo "$with_aix_soname" >&6; }
8844  if test aix != "$with_aix_soname"; then
8845    # For the AIX way of multilib, we name the shared archive member
8846    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8847    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8848    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8849    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8850    if test 64 = "${OBJECT_MODE-32}"; then
8851      shared_archive_member_spec=shr_64
8852    else
8853      shared_archive_member_spec=shr
8854    fi
8855  fi
8856  ;;
8857*)
8858  with_aix_soname=aix
8859  ;;
8860esac
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871# This can be used to rebuild libtool when needed
8872LIBTOOL_DEPS=$ltmain
8873
8874# Always use our own libtool.
8875LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906test -z "$LN_S" && LN_S="ln -s"
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921if test -n "${ZSH_VERSION+set}"; then
8922   setopt NO_GLOB_SUBST
8923fi
8924
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8926$as_echo_n "checking for objdir... " >&6; }
8927if ${lt_cv_objdir+:} false; then :
8928  $as_echo_n "(cached) " >&6
8929else
8930  rm -f .libs 2>/dev/null
8931mkdir .libs 2>/dev/null
8932if test -d .libs; then
8933  lt_cv_objdir=.libs
8934else
8935  # MS-DOS does not allow filenames that begin with a dot.
8936  lt_cv_objdir=_libs
8937fi
8938rmdir .libs 2>/dev/null
8939fi
8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8941$as_echo "$lt_cv_objdir" >&6; }
8942objdir=$lt_cv_objdir
8943
8944
8945
8946
8947
8948cat >>confdefs.h <<_ACEOF
8949#define LT_OBJDIR "$lt_cv_objdir/"
8950_ACEOF
8951
8952
8953
8954
8955case $host_os in
8956aix3*)
8957  # AIX sometimes has problems with the GCC collect2 program.  For some
8958  # reason, if we set the COLLECT_NAMES environment variable, the problems
8959  # vanish in a puff of smoke.
8960  if test set != "${COLLECT_NAMES+set}"; then
8961    COLLECT_NAMES=
8962    export COLLECT_NAMES
8963  fi
8964  ;;
8965esac
8966
8967# Global variables:
8968ofile=libtool
8969can_build_shared=yes
8970
8971# All known linkers require a '.a' archive for static linking (except MSVC,
8972# which needs '.lib').
8973libext=a
8974
8975with_gnu_ld=$lt_cv_prog_gnu_ld
8976
8977old_CC=$CC
8978old_CFLAGS=$CFLAGS
8979
8980# Set sane defaults for various variables
8981test -z "$CC" && CC=cc
8982test -z "$LTCC" && LTCC=$CC
8983test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8984test -z "$LD" && LD=ld
8985test -z "$ac_objext" && ac_objext=o
8986
8987for cc_temp in $compiler""; do
8988  case $cc_temp in
8989    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8990    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8991    \-*) ;;
8992    *) break;;
8993  esac
8994done
8995cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8996
8997
8998# Only perform the check for file, if the check method requires it
8999test -z "$MAGIC_CMD" && MAGIC_CMD=file
9000case $deplibs_check_method in
9001file_magic*)
9002  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9004$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9005if ${lt_cv_path_MAGIC_CMD+:} false; then :
9006  $as_echo_n "(cached) " >&6
9007else
9008  case $MAGIC_CMD in
9009[\\/*] |  ?:[\\/]*)
9010  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9011  ;;
9012*)
9013  lt_save_MAGIC_CMD=$MAGIC_CMD
9014  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9015  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9016  for ac_dir in $ac_dummy; do
9017    IFS=$lt_save_ifs
9018    test -z "$ac_dir" && ac_dir=.
9019    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9020      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9021      if test -n "$file_magic_test_file"; then
9022	case $deplibs_check_method in
9023	"file_magic "*)
9024	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9025	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9026	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9027	    $EGREP "$file_magic_regex" > /dev/null; then
9028	    :
9029	  else
9030	    cat <<_LT_EOF 1>&2
9031
9032*** Warning: the command libtool uses to detect shared libraries,
9033*** $file_magic_cmd, produces output that libtool cannot recognize.
9034*** The result is that libtool may fail to recognize shared libraries
9035*** as such.  This will affect the creation of libtool libraries that
9036*** depend on shared libraries, but programs linked with such libtool
9037*** libraries will work regardless of this problem.  Nevertheless, you
9038*** may want to report the problem to your system manager and/or to
9039*** [email protected]
9040
9041_LT_EOF
9042	  fi ;;
9043	esac
9044      fi
9045      break
9046    fi
9047  done
9048  IFS=$lt_save_ifs
9049  MAGIC_CMD=$lt_save_MAGIC_CMD
9050  ;;
9051esac
9052fi
9053
9054MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9055if test -n "$MAGIC_CMD"; then
9056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9057$as_echo "$MAGIC_CMD" >&6; }
9058else
9059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060$as_echo "no" >&6; }
9061fi
9062
9063
9064
9065
9066
9067if test -z "$lt_cv_path_MAGIC_CMD"; then
9068  if test -n "$ac_tool_prefix"; then
9069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9070$as_echo_n "checking for file... " >&6; }
9071if ${lt_cv_path_MAGIC_CMD+:} false; then :
9072  $as_echo_n "(cached) " >&6
9073else
9074  case $MAGIC_CMD in
9075[\\/*] |  ?:[\\/]*)
9076  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9077  ;;
9078*)
9079  lt_save_MAGIC_CMD=$MAGIC_CMD
9080  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9081  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9082  for ac_dir in $ac_dummy; do
9083    IFS=$lt_save_ifs
9084    test -z "$ac_dir" && ac_dir=.
9085    if test -f "$ac_dir/file"; then
9086      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9087      if test -n "$file_magic_test_file"; then
9088	case $deplibs_check_method in
9089	"file_magic "*)
9090	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9091	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9092	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9093	    $EGREP "$file_magic_regex" > /dev/null; then
9094	    :
9095	  else
9096	    cat <<_LT_EOF 1>&2
9097
9098*** Warning: the command libtool uses to detect shared libraries,
9099*** $file_magic_cmd, produces output that libtool cannot recognize.
9100*** The result is that libtool may fail to recognize shared libraries
9101*** as such.  This will affect the creation of libtool libraries that
9102*** depend on shared libraries, but programs linked with such libtool
9103*** libraries will work regardless of this problem.  Nevertheless, you
9104*** may want to report the problem to your system manager and/or to
9105*** [email protected]
9106
9107_LT_EOF
9108	  fi ;;
9109	esac
9110      fi
9111      break
9112    fi
9113  done
9114  IFS=$lt_save_ifs
9115  MAGIC_CMD=$lt_save_MAGIC_CMD
9116  ;;
9117esac
9118fi
9119
9120MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9121if test -n "$MAGIC_CMD"; then
9122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9123$as_echo "$MAGIC_CMD" >&6; }
9124else
9125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126$as_echo "no" >&6; }
9127fi
9128
9129
9130  else
9131    MAGIC_CMD=:
9132  fi
9133fi
9134
9135  fi
9136  ;;
9137esac
9138
9139# Use C for the default configuration in the libtool script
9140
9141lt_save_CC=$CC
9142ac_ext=c
9143ac_cpp='$CPP $CPPFLAGS'
9144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9146ac_compiler_gnu=$ac_cv_c_compiler_gnu
9147
9148
9149# Source file extension for C test sources.
9150ac_ext=c
9151
9152# Object file extension for compiled C test sources.
9153objext=o
9154objext=$objext
9155
9156# Code to be used in simple compile tests
9157lt_simple_compile_test_code="int some_variable = 0;"
9158
9159# Code to be used in simple link tests
9160lt_simple_link_test_code='int main(){return(0);}'
9161
9162
9163
9164
9165
9166
9167
9168# If no C compiler was specified, use CC.
9169LTCC=${LTCC-"$CC"}
9170
9171# If no C compiler flags were specified, use CFLAGS.
9172LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9173
9174# Allow CC to be a program name with arguments.
9175compiler=$CC
9176
9177# Save the default compiler, since it gets overwritten when the other
9178# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9179compiler_DEFAULT=$CC
9180
9181# save warnings/boilerplate of simple test code
9182ac_outfile=conftest.$ac_objext
9183echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9184eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9185_lt_compiler_boilerplate=`cat conftest.err`
9186$RM conftest*
9187
9188ac_outfile=conftest.$ac_objext
9189echo "$lt_simple_link_test_code" >conftest.$ac_ext
9190eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9191_lt_linker_boilerplate=`cat conftest.err`
9192$RM -r conftest*
9193
9194
9195## CAVEAT EMPTOR:
9196## There is no encapsulation within the following macros, do not change
9197## the running order or otherwise move them around unless you know exactly
9198## what you are doing...
9199if test -n "$compiler"; then
9200
9201lt_prog_compiler_no_builtin_flag=
9202
9203if test yes = "$GCC"; then
9204  case $cc_basename in
9205  nvcc*)
9206    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9207  *)
9208    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9209  esac
9210
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9212$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9213if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9214  $as_echo_n "(cached) " >&6
9215else
9216  lt_cv_prog_compiler_rtti_exceptions=no
9217   ac_outfile=conftest.$ac_objext
9218   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9219   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9220   # Insert the option either (1) after the last *FLAGS variable, or
9221   # (2) before a word containing "conftest.", or (3) at the end.
9222   # Note that $ac_compile itself does not contain backslashes and begins
9223   # with a dollar sign (not a hyphen), so the echo should work correctly.
9224   # The option is referenced via a variable to avoid confusing sed.
9225   lt_compile=`echo "$ac_compile" | $SED \
9226   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228   -e 's:$: $lt_compiler_flag:'`
9229   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230   (eval "$lt_compile" 2>conftest.err)
9231   ac_status=$?
9232   cat conftest.err >&5
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   if (exit $ac_status) && test -s "$ac_outfile"; then
9235     # The compiler can only warn and ignore the option if not recognized
9236     # So say no if there are warnings other than the usual output.
9237     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9238     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9239     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9240       lt_cv_prog_compiler_rtti_exceptions=yes
9241     fi
9242   fi
9243   $RM conftest*
9244
9245fi
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9247$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9248
9249if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9250    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9251else
9252    :
9253fi
9254
9255fi
9256
9257
9258
9259
9260
9261
9262  lt_prog_compiler_wl=
9263lt_prog_compiler_pic=
9264lt_prog_compiler_static=
9265
9266
9267  if test yes = "$GCC"; then
9268    lt_prog_compiler_wl='-Wl,'
9269    lt_prog_compiler_static='-static'
9270
9271    case $host_os in
9272      aix*)
9273      # All AIX code is PIC.
9274      if test ia64 = "$host_cpu"; then
9275	# AIX 5 now supports IA64 processor
9276	lt_prog_compiler_static='-Bstatic'
9277      fi
9278      lt_prog_compiler_pic='-fPIC'
9279      ;;
9280
9281    amigaos*)
9282      case $host_cpu in
9283      powerpc)
9284            # see comment about AmigaOS4 .so support
9285            lt_prog_compiler_pic='-fPIC'
9286        ;;
9287      m68k)
9288            # FIXME: we need at least 68020 code to build shared libraries, but
9289            # adding the '-m68020' flag to GCC prevents building anything better,
9290            # like '-m68040'.
9291            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9292        ;;
9293      esac
9294      ;;
9295
9296    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9297      # PIC is the default for these OSes.
9298      ;;
9299
9300    mingw* | cygwin* | pw32* | os2* | cegcc*)
9301      # This hack is so that the source file can tell whether it is being
9302      # built for inclusion in a dll (and should export symbols for example).
9303      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9304      # (--disable-auto-import) libraries
9305      lt_prog_compiler_pic='-DDLL_EXPORT'
9306      case $host_os in
9307      os2*)
9308	lt_prog_compiler_static='$wl-static'
9309	;;
9310      esac
9311      ;;
9312
9313    darwin* | rhapsody*)
9314      # PIC is the default on this platform
9315      # Common symbols not allowed in MH_DYLIB files
9316      lt_prog_compiler_pic='-fno-common'
9317      ;;
9318
9319    haiku*)
9320      # PIC is the default for Haiku.
9321      # The "-static" flag exists, but is broken.
9322      lt_prog_compiler_static=
9323      ;;
9324
9325    hpux*)
9326      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9327      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9328      # sets the default TLS model and affects inlining.
9329      case $host_cpu in
9330      hppa*64*)
9331	# +Z the default
9332	;;
9333      *)
9334	lt_prog_compiler_pic='-fPIC'
9335	;;
9336      esac
9337      ;;
9338
9339    interix[3-9]*)
9340      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9341      # Instead, we relocate shared libraries at runtime.
9342      ;;
9343
9344    msdosdjgpp*)
9345      # Just because we use GCC doesn't mean we suddenly get shared libraries
9346      # on systems that don't support them.
9347      lt_prog_compiler_can_build_shared=no
9348      enable_shared=no
9349      ;;
9350
9351    *nto* | *qnx*)
9352      # QNX uses GNU C++, but need to define -shared option too, otherwise
9353      # it will coredump.
9354      lt_prog_compiler_pic='-fPIC -shared'
9355      ;;
9356
9357    sysv4*MP*)
9358      if test -d /usr/nec; then
9359	lt_prog_compiler_pic=-Kconform_pic
9360      fi
9361      ;;
9362
9363    *)
9364      lt_prog_compiler_pic='-fPIC'
9365      ;;
9366    esac
9367
9368    case $cc_basename in
9369    nvcc*) # Cuda Compiler Driver 2.2
9370      lt_prog_compiler_wl='-Xlinker '
9371      if test -n "$lt_prog_compiler_pic"; then
9372        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9373      fi
9374      ;;
9375    esac
9376  else
9377    # PORTME Check for flag to pass linker flags through the system compiler.
9378    case $host_os in
9379    aix*)
9380      lt_prog_compiler_wl='-Wl,'
9381      if test ia64 = "$host_cpu"; then
9382	# AIX 5 now supports IA64 processor
9383	lt_prog_compiler_static='-Bstatic'
9384      else
9385	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9386      fi
9387      ;;
9388
9389    darwin* | rhapsody*)
9390      # PIC is the default on this platform
9391      # Common symbols not allowed in MH_DYLIB files
9392      lt_prog_compiler_pic='-fno-common'
9393      case $cc_basename in
9394      nagfor*)
9395        # NAG Fortran compiler
9396        lt_prog_compiler_wl='-Wl,-Wl,,'
9397        lt_prog_compiler_pic='-PIC'
9398        lt_prog_compiler_static='-Bstatic'
9399        ;;
9400      esac
9401      ;;
9402
9403    mingw* | cygwin* | pw32* | os2* | cegcc*)
9404      # This hack is so that the source file can tell whether it is being
9405      # built for inclusion in a dll (and should export symbols for example).
9406      lt_prog_compiler_pic='-DDLL_EXPORT'
9407      case $host_os in
9408      os2*)
9409	lt_prog_compiler_static='$wl-static'
9410	;;
9411      esac
9412      ;;
9413
9414    hpux9* | hpux10* | hpux11*)
9415      lt_prog_compiler_wl='-Wl,'
9416      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9417      # not for PA HP-UX.
9418      case $host_cpu in
9419      hppa*64*|ia64*)
9420	# +Z the default
9421	;;
9422      *)
9423	lt_prog_compiler_pic='+Z'
9424	;;
9425      esac
9426      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9427      lt_prog_compiler_static='$wl-a ${wl}archive'
9428      ;;
9429
9430    irix5* | irix6* | nonstopux*)
9431      lt_prog_compiler_wl='-Wl,'
9432      # PIC (with -KPIC) is the default.
9433      lt_prog_compiler_static='-non_shared'
9434      ;;
9435
9436    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9437      case $cc_basename in
9438      # old Intel for x86_64, which still supported -KPIC.
9439      ecc*)
9440	lt_prog_compiler_wl='-Wl,'
9441	lt_prog_compiler_pic='-KPIC'
9442	lt_prog_compiler_static='-static'
9443        ;;
9444      # icc used to be incompatible with GCC.
9445      # ICC 10 doesn't accept -KPIC any more.
9446      icc* | ifort*)
9447	lt_prog_compiler_wl='-Wl,'
9448	lt_prog_compiler_pic='-fPIC'
9449	lt_prog_compiler_static='-static'
9450        ;;
9451      # Lahey Fortran 8.1.
9452      lf95*)
9453	lt_prog_compiler_wl='-Wl,'
9454	lt_prog_compiler_pic='--shared'
9455	lt_prog_compiler_static='--static'
9456	;;
9457      nagfor*)
9458	# NAG Fortran compiler
9459	lt_prog_compiler_wl='-Wl,-Wl,,'
9460	lt_prog_compiler_pic='-PIC'
9461	lt_prog_compiler_static='-Bstatic'
9462	;;
9463      tcc*)
9464	# Fabrice Bellard et al's Tiny C Compiler
9465	lt_prog_compiler_wl='-Wl,'
9466	lt_prog_compiler_pic='-fPIC'
9467	lt_prog_compiler_static='-static'
9468	;;
9469      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9470        # Portland Group compilers (*not* the Pentium gcc compiler,
9471	# which looks to be a dead project)
9472	lt_prog_compiler_wl='-Wl,'
9473	lt_prog_compiler_pic='-fpic'
9474	lt_prog_compiler_static='-Bstatic'
9475        ;;
9476      ccc*)
9477        lt_prog_compiler_wl='-Wl,'
9478        # All Alpha code is PIC.
9479        lt_prog_compiler_static='-non_shared'
9480        ;;
9481      xl* | bgxl* | bgf* | mpixl*)
9482	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9483	lt_prog_compiler_wl='-Wl,'
9484	lt_prog_compiler_pic='-qpic'
9485	lt_prog_compiler_static='-qstaticlink'
9486	;;
9487      *)
9488	case `$CC -V 2>&1 | sed 5q` in
9489	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9490	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9491	  lt_prog_compiler_pic='-KPIC'
9492	  lt_prog_compiler_static='-Bstatic'
9493	  lt_prog_compiler_wl=''
9494	  ;;
9495	*Sun\ F* | *Sun*Fortran*)
9496	  lt_prog_compiler_pic='-KPIC'
9497	  lt_prog_compiler_static='-Bstatic'
9498	  lt_prog_compiler_wl='-Qoption ld '
9499	  ;;
9500	*Sun\ C*)
9501	  # Sun C 5.9
9502	  lt_prog_compiler_pic='-KPIC'
9503	  lt_prog_compiler_static='-Bstatic'
9504	  lt_prog_compiler_wl='-Wl,'
9505	  ;;
9506        *Intel*\ [CF]*Compiler*)
9507	  lt_prog_compiler_wl='-Wl,'
9508	  lt_prog_compiler_pic='-fPIC'
9509	  lt_prog_compiler_static='-static'
9510	  ;;
9511	*Portland\ Group*)
9512	  lt_prog_compiler_wl='-Wl,'
9513	  lt_prog_compiler_pic='-fpic'
9514	  lt_prog_compiler_static='-Bstatic'
9515	  ;;
9516	esac
9517	;;
9518      esac
9519      ;;
9520
9521    newsos6)
9522      lt_prog_compiler_pic='-KPIC'
9523      lt_prog_compiler_static='-Bstatic'
9524      ;;
9525
9526    *nto* | *qnx*)
9527      # QNX uses GNU C++, but need to define -shared option too, otherwise
9528      # it will coredump.
9529      lt_prog_compiler_pic='-fPIC -shared'
9530      ;;
9531
9532    osf3* | osf4* | osf5*)
9533      lt_prog_compiler_wl='-Wl,'
9534      # All OSF/1 code is PIC.
9535      lt_prog_compiler_static='-non_shared'
9536      ;;
9537
9538    rdos*)
9539      lt_prog_compiler_static='-non_shared'
9540      ;;
9541
9542    solaris*)
9543      lt_prog_compiler_pic='-KPIC'
9544      lt_prog_compiler_static='-Bstatic'
9545      case $cc_basename in
9546      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9547	lt_prog_compiler_wl='-Qoption ld ';;
9548      *)
9549	lt_prog_compiler_wl='-Wl,';;
9550      esac
9551      ;;
9552
9553    sunos4*)
9554      lt_prog_compiler_wl='-Qoption ld '
9555      lt_prog_compiler_pic='-PIC'
9556      lt_prog_compiler_static='-Bstatic'
9557      ;;
9558
9559    sysv4 | sysv4.2uw2* | sysv4.3*)
9560      lt_prog_compiler_wl='-Wl,'
9561      lt_prog_compiler_pic='-KPIC'
9562      lt_prog_compiler_static='-Bstatic'
9563      ;;
9564
9565    sysv4*MP*)
9566      if test -d /usr/nec; then
9567	lt_prog_compiler_pic='-Kconform_pic'
9568	lt_prog_compiler_static='-Bstatic'
9569      fi
9570      ;;
9571
9572    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9573      lt_prog_compiler_wl='-Wl,'
9574      lt_prog_compiler_pic='-KPIC'
9575      lt_prog_compiler_static='-Bstatic'
9576      ;;
9577
9578    unicos*)
9579      lt_prog_compiler_wl='-Wl,'
9580      lt_prog_compiler_can_build_shared=no
9581      ;;
9582
9583    uts4*)
9584      lt_prog_compiler_pic='-pic'
9585      lt_prog_compiler_static='-Bstatic'
9586      ;;
9587
9588    *)
9589      lt_prog_compiler_can_build_shared=no
9590      ;;
9591    esac
9592  fi
9593
9594case $host_os in
9595  # For platforms that do not support PIC, -DPIC is meaningless:
9596  *djgpp*)
9597    lt_prog_compiler_pic=
9598    ;;
9599  *)
9600    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9601    ;;
9602esac
9603
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9605$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9606if ${lt_cv_prog_compiler_pic+:} false; then :
9607  $as_echo_n "(cached) " >&6
9608else
9609  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9612$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9613lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9614
9615#
9616# Check to make sure the PIC flag actually works.
9617#
9618if test -n "$lt_prog_compiler_pic"; then
9619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9620$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9621if ${lt_cv_prog_compiler_pic_works+:} false; then :
9622  $as_echo_n "(cached) " >&6
9623else
9624  lt_cv_prog_compiler_pic_works=no
9625   ac_outfile=conftest.$ac_objext
9626   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9627   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9628   # Insert the option either (1) after the last *FLAGS variable, or
9629   # (2) before a word containing "conftest.", or (3) at the end.
9630   # Note that $ac_compile itself does not contain backslashes and begins
9631   # with a dollar sign (not a hyphen), so the echo should work correctly.
9632   # The option is referenced via a variable to avoid confusing sed.
9633   lt_compile=`echo "$ac_compile" | $SED \
9634   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9635   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9636   -e 's:$: $lt_compiler_flag:'`
9637   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9638   (eval "$lt_compile" 2>conftest.err)
9639   ac_status=$?
9640   cat conftest.err >&5
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   if (exit $ac_status) && test -s "$ac_outfile"; then
9643     # The compiler can only warn and ignore the option if not recognized
9644     # So say no if there are warnings other than the usual output.
9645     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9646     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9647     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9648       lt_cv_prog_compiler_pic_works=yes
9649     fi
9650   fi
9651   $RM conftest*
9652
9653fi
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9655$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9656
9657if test yes = "$lt_cv_prog_compiler_pic_works"; then
9658    case $lt_prog_compiler_pic in
9659     "" | " "*) ;;
9660     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9661     esac
9662else
9663    lt_prog_compiler_pic=
9664     lt_prog_compiler_can_build_shared=no
9665fi
9666
9667fi
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679#
9680# Check to make sure the static flag actually works.
9681#
9682wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9684$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9685if ${lt_cv_prog_compiler_static_works+:} false; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  lt_cv_prog_compiler_static_works=no
9689   save_LDFLAGS=$LDFLAGS
9690   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9691   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9692   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9693     # The linker can only warn and ignore the option if not recognized
9694     # So say no if there are warnings
9695     if test -s conftest.err; then
9696       # Append any errors to the config.log.
9697       cat conftest.err 1>&5
9698       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9699       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9700       if diff conftest.exp conftest.er2 >/dev/null; then
9701         lt_cv_prog_compiler_static_works=yes
9702       fi
9703     else
9704       lt_cv_prog_compiler_static_works=yes
9705     fi
9706   fi
9707   $RM -r conftest*
9708   LDFLAGS=$save_LDFLAGS
9709
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9712$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9713
9714if test yes = "$lt_cv_prog_compiler_static_works"; then
9715    :
9716else
9717    lt_prog_compiler_static=
9718fi
9719
9720
9721
9722
9723
9724
9725
9726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9727$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9728if ${lt_cv_prog_compiler_c_o+:} false; then :
9729  $as_echo_n "(cached) " >&6
9730else
9731  lt_cv_prog_compiler_c_o=no
9732   $RM -r conftest 2>/dev/null
9733   mkdir conftest
9734   cd conftest
9735   mkdir out
9736   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9737
9738   lt_compiler_flag="-o out/conftest2.$ac_objext"
9739   # Insert the option either (1) after the last *FLAGS variable, or
9740   # (2) before a word containing "conftest.", or (3) at the end.
9741   # Note that $ac_compile itself does not contain backslashes and begins
9742   # with a dollar sign (not a hyphen), so the echo should work correctly.
9743   lt_compile=`echo "$ac_compile" | $SED \
9744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9746   -e 's:$: $lt_compiler_flag:'`
9747   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9748   (eval "$lt_compile" 2>out/conftest.err)
9749   ac_status=$?
9750   cat out/conftest.err >&5
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9753   then
9754     # The compiler can only warn and ignore the option if not recognized
9755     # So say no if there are warnings
9756     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9757     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9758     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9759       lt_cv_prog_compiler_c_o=yes
9760     fi
9761   fi
9762   chmod u+w . 2>&5
9763   $RM conftest*
9764   # SGI C++ compiler will create directory out/ii_files/ for
9765   # template instantiation
9766   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9767   $RM out/* && rmdir out
9768   cd ..
9769   $RM -r conftest
9770   $RM conftest*
9771
9772fi
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9774$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9775
9776
9777
9778
9779
9780
9781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9782$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9783if ${lt_cv_prog_compiler_c_o+:} false; then :
9784  $as_echo_n "(cached) " >&6
9785else
9786  lt_cv_prog_compiler_c_o=no
9787   $RM -r conftest 2>/dev/null
9788   mkdir conftest
9789   cd conftest
9790   mkdir out
9791   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9792
9793   lt_compiler_flag="-o out/conftest2.$ac_objext"
9794   # Insert the option either (1) after the last *FLAGS variable, or
9795   # (2) before a word containing "conftest.", or (3) at the end.
9796   # Note that $ac_compile itself does not contain backslashes and begins
9797   # with a dollar sign (not a hyphen), so the echo should work correctly.
9798   lt_compile=`echo "$ac_compile" | $SED \
9799   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9800   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9801   -e 's:$: $lt_compiler_flag:'`
9802   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9803   (eval "$lt_compile" 2>out/conftest.err)
9804   ac_status=$?
9805   cat out/conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9808   then
9809     # The compiler can only warn and ignore the option if not recognized
9810     # So say no if there are warnings
9811     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9812     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9813     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9814       lt_cv_prog_compiler_c_o=yes
9815     fi
9816   fi
9817   chmod u+w . 2>&5
9818   $RM conftest*
9819   # SGI C++ compiler will create directory out/ii_files/ for
9820   # template instantiation
9821   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9822   $RM out/* && rmdir out
9823   cd ..
9824   $RM -r conftest
9825   $RM conftest*
9826
9827fi
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9829$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9830
9831
9832
9833
9834hard_links=nottested
9835if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9836  # do not overwrite the value of need_locks provided by the user
9837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9838$as_echo_n "checking if we can lock with hard links... " >&6; }
9839  hard_links=yes
9840  $RM conftest*
9841  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9842  touch conftest.a
9843  ln conftest.a conftest.b 2>&5 || hard_links=no
9844  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9846$as_echo "$hard_links" >&6; }
9847  if test no = "$hard_links"; then
9848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9849$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9850    need_locks=warn
9851  fi
9852else
9853  need_locks=no
9854fi
9855
9856
9857
9858
9859
9860
9861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9862$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9863
9864  runpath_var=
9865  allow_undefined_flag=
9866  always_export_symbols=no
9867  archive_cmds=
9868  archive_expsym_cmds=
9869  compiler_needs_object=no
9870  enable_shared_with_static_runtimes=no
9871  export_dynamic_flag_spec=
9872  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9873  hardcode_automatic=no
9874  hardcode_direct=no
9875  hardcode_direct_absolute=no
9876  hardcode_libdir_flag_spec=
9877  hardcode_libdir_separator=
9878  hardcode_minus_L=no
9879  hardcode_shlibpath_var=unsupported
9880  inherit_rpath=no
9881  link_all_deplibs=unknown
9882  module_cmds=
9883  module_expsym_cmds=
9884  old_archive_from_new_cmds=
9885  old_archive_from_expsyms_cmds=
9886  thread_safe_flag_spec=
9887  whole_archive_flag_spec=
9888  # include_expsyms should be a list of space-separated symbols to be *always*
9889  # included in the symbol list
9890  include_expsyms=
9891  # exclude_expsyms can be an extended regexp of symbols to exclude
9892  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9893  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9894  # as well as any symbol that contains 'd'.
9895  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9896  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9897  # platforms (ab)use it in PIC code, but their linkers get confused if
9898  # the symbol is explicitly referenced.  Since portable code cannot
9899  # rely on this symbol name, it's probably fine to never include it in
9900  # preloaded symbol tables.
9901  # Exclude shared library initialization/finalization symbols.
9902  extract_expsyms_cmds=
9903
9904  case $host_os in
9905  cygwin* | mingw* | pw32* | cegcc*)
9906    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9907    # When not using gcc, we currently assume that we are using
9908    # Microsoft Visual C++.
9909    if test yes != "$GCC"; then
9910      with_gnu_ld=no
9911    fi
9912    ;;
9913  interix*)
9914    # we just hope/assume this is gcc and not c89 (= MSVC++)
9915    with_gnu_ld=yes
9916    ;;
9917  openbsd* | bitrig*)
9918    with_gnu_ld=no
9919    ;;
9920  esac
9921
9922  ld_shlibs=yes
9923
9924  # On some targets, GNU ld is compatible enough with the native linker
9925  # that we're better off using the native interface for both.
9926  lt_use_gnu_ld_interface=no
9927  if test yes = "$with_gnu_ld"; then
9928    case $host_os in
9929      aix*)
9930	# The AIX port of GNU ld has always aspired to compatibility
9931	# with the native linker.  However, as the warning in the GNU ld
9932	# block says, versions before 2.19.5* couldn't really create working
9933	# shared libraries, regardless of the interface used.
9934	case `$LD -v 2>&1` in
9935	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9936	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9937	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9938	  *)
9939	    lt_use_gnu_ld_interface=yes
9940	    ;;
9941	esac
9942	;;
9943      *)
9944	lt_use_gnu_ld_interface=yes
9945	;;
9946    esac
9947  fi
9948
9949  if test yes = "$lt_use_gnu_ld_interface"; then
9950    # If archive_cmds runs LD, not CC, wlarc should be empty
9951    wlarc='$wl'
9952
9953    # Set some defaults for GNU ld with shared library support. These
9954    # are reset later if shared libraries are not supported. Putting them
9955    # here allows them to be overridden if necessary.
9956    runpath_var=LD_RUN_PATH
9957    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9958    export_dynamic_flag_spec='$wl--export-dynamic'
9959    # ancient GNU ld didn't support --whole-archive et. al.
9960    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9961      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9962    else
9963      whole_archive_flag_spec=
9964    fi
9965    supports_anon_versioning=no
9966    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9967      *GNU\ gold*) supports_anon_versioning=yes ;;
9968      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9969      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9970      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9971      *\ 2.11.*) ;; # other 2.11 versions
9972      *) supports_anon_versioning=yes ;;
9973    esac
9974
9975    # See if GNU ld supports shared libraries.
9976    case $host_os in
9977    aix[3-9]*)
9978      # On AIX/PPC, the GNU linker is very broken
9979      if test ia64 != "$host_cpu"; then
9980	ld_shlibs=no
9981	cat <<_LT_EOF 1>&2
9982
9983*** Warning: the GNU linker, at least up to release 2.19, is reported
9984*** to be unable to reliably create shared libraries on AIX.
9985*** Therefore, libtool is disabling shared libraries support.  If you
9986*** really care for shared libraries, you may want to install binutils
9987*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9988*** You will then need to restart the configuration process.
9989
9990_LT_EOF
9991      fi
9992      ;;
9993
9994    amigaos*)
9995      case $host_cpu in
9996      powerpc)
9997            # see comment about AmigaOS4 .so support
9998            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9999            archive_expsym_cmds=''
10000        ;;
10001      m68k)
10002            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)'
10003            hardcode_libdir_flag_spec='-L$libdir'
10004            hardcode_minus_L=yes
10005        ;;
10006      esac
10007      ;;
10008
10009    beos*)
10010      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10011	allow_undefined_flag=unsupported
10012	# Joseph Beckenbach <[email protected]> says some releases of gcc
10013	# support --undefined.  This deserves some investigation.  FIXME
10014	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10015      else
10016	ld_shlibs=no
10017      fi
10018      ;;
10019
10020    cygwin* | mingw* | pw32* | cegcc*)
10021      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10022      # as there is no search path for DLLs.
10023      hardcode_libdir_flag_spec='-L$libdir'
10024      export_dynamic_flag_spec='$wl--export-all-symbols'
10025      allow_undefined_flag=unsupported
10026      always_export_symbols=no
10027      enable_shared_with_static_runtimes=yes
10028      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'
10029      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10030
10031      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10032        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10033	# If the export-symbols file already is a .def file, use it as
10034	# is; otherwise, prepend EXPORTS...
10035	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10036          cp $export_symbols $output_objdir/$soname.def;
10037        else
10038          echo EXPORTS > $output_objdir/$soname.def;
10039          cat $export_symbols >> $output_objdir/$soname.def;
10040        fi~
10041        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10042      else
10043	ld_shlibs=no
10044      fi
10045      ;;
10046
10047    haiku*)
10048      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10049      link_all_deplibs=yes
10050      ;;
10051
10052    os2*)
10053      hardcode_libdir_flag_spec='-L$libdir'
10054      hardcode_minus_L=yes
10055      allow_undefined_flag=unsupported
10056      shrext_cmds=.dll
10057      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10058	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10059	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10060	$ECHO EXPORTS >> $output_objdir/$libname.def~
10061	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10062	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10063	emximp -o $lib $output_objdir/$libname.def'
10064      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10065	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10066	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10067	$ECHO EXPORTS >> $output_objdir/$libname.def~
10068	prefix_cmds="$SED"~
10069	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10070	  prefix_cmds="$prefix_cmds -e 1d";
10071	fi~
10072	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10073	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10074	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10075	emximp -o $lib $output_objdir/$libname.def'
10076      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10077      enable_shared_with_static_runtimes=yes
10078      ;;
10079
10080    interix[3-9]*)
10081      hardcode_direct=no
10082      hardcode_shlibpath_var=no
10083      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10084      export_dynamic_flag_spec='$wl-E'
10085      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10086      # Instead, shared libraries are loaded at an image base (0x10000000 by
10087      # default) and relocated if they conflict, which is a slow very memory
10088      # consuming and fragmenting process.  To avoid this, we pick a random,
10089      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10090      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10091      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10092      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'
10093      ;;
10094
10095    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10096      tmp_diet=no
10097      if test linux-dietlibc = "$host_os"; then
10098	case $cc_basename in
10099	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10100	esac
10101      fi
10102      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10103	 && test no = "$tmp_diet"
10104      then
10105	tmp_addflag=' $pic_flag'
10106	tmp_sharedflag='-shared'
10107	case $cc_basename,$host_cpu in
10108        pgcc*)				# Portland Group C compiler
10109	  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'
10110	  tmp_addflag=' $pic_flag'
10111	  ;;
10112	pgf77* | pgf90* | pgf95* | pgfortran*)
10113					# Portland Group f77 and f90 compilers
10114	  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'
10115	  tmp_addflag=' $pic_flag -Mnomain' ;;
10116	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10117	  tmp_addflag=' -i_dynamic' ;;
10118	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10119	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10120	ifc* | ifort*)			# Intel Fortran compiler
10121	  tmp_addflag=' -nofor_main' ;;
10122	lf95*)				# Lahey Fortran 8.1
10123	  whole_archive_flag_spec=
10124	  tmp_sharedflag='--shared' ;;
10125        nagfor*)                        # NAGFOR 5.3
10126          tmp_sharedflag='-Wl,-shared' ;;
10127	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10128	  tmp_sharedflag='-qmkshrobj'
10129	  tmp_addflag= ;;
10130	nvcc*)	# Cuda Compiler Driver 2.2
10131	  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'
10132	  compiler_needs_object=yes
10133	  ;;
10134	esac
10135	case `$CC -V 2>&1 | sed 5q` in
10136	*Sun\ C*)			# Sun C 5.9
10137	  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'
10138	  compiler_needs_object=yes
10139	  tmp_sharedflag='-G' ;;
10140	*Sun\ F*)			# Sun Fortran 8.3
10141	  tmp_sharedflag='-G' ;;
10142	esac
10143	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10144
10145        if test yes = "$supports_anon_versioning"; then
10146          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10147            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10148            echo "local: *; };" >> $output_objdir/$libname.ver~
10149            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10150        fi
10151
10152	case $cc_basename in
10153	tcc*)
10154	  export_dynamic_flag_spec='-rdynamic'
10155	  ;;
10156	xlf* | bgf* | bgxlf* | mpixlf*)
10157	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10158	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10159	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10160	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10161	  if test yes = "$supports_anon_versioning"; then
10162	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10163              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10164              echo "local: *; };" >> $output_objdir/$libname.ver~
10165              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10166	  fi
10167	  ;;
10168	esac
10169      else
10170        ld_shlibs=no
10171      fi
10172      ;;
10173
10174    netbsd*)
10175      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10176	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10177	wlarc=
10178      else
10179	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10180	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10181      fi
10182      ;;
10183
10184    solaris*)
10185      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10186	ld_shlibs=no
10187	cat <<_LT_EOF 1>&2
10188
10189*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10190*** create shared libraries on Solaris systems.  Therefore, libtool
10191*** is disabling shared libraries support.  We urge you to upgrade GNU
10192*** binutils to release 2.9.1 or newer.  Another option is to modify
10193*** your PATH or compiler configuration so that the native linker is
10194*** used, and then restart.
10195
10196_LT_EOF
10197      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10198	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10199	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10200      else
10201	ld_shlibs=no
10202      fi
10203      ;;
10204
10205    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10206      case `$LD -v 2>&1` in
10207        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10208	ld_shlibs=no
10209	cat <<_LT_EOF 1>&2
10210
10211*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10212*** reliably create shared libraries on SCO systems.  Therefore, libtool
10213*** is disabling shared libraries support.  We urge you to upgrade GNU
10214*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10215*** your PATH or compiler configuration so that the native linker is
10216*** used, and then restart.
10217
10218_LT_EOF
10219	;;
10220	*)
10221	  # For security reasons, it is highly recommended that you always
10222	  # use absolute paths for naming shared libraries, and exclude the
10223	  # DT_RUNPATH tag from executables and libraries.  But doing so
10224	  # requires that you compile everything twice, which is a pain.
10225	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10226	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10227	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10228	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10229	  else
10230	    ld_shlibs=no
10231	  fi
10232	;;
10233      esac
10234      ;;
10235
10236    sunos4*)
10237      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238      wlarc=
10239      hardcode_direct=yes
10240      hardcode_shlibpath_var=no
10241      ;;
10242
10243    *)
10244      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10246	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10247      else
10248	ld_shlibs=no
10249      fi
10250      ;;
10251    esac
10252
10253    if test no = "$ld_shlibs"; then
10254      runpath_var=
10255      hardcode_libdir_flag_spec=
10256      export_dynamic_flag_spec=
10257      whole_archive_flag_spec=
10258    fi
10259  else
10260    # PORTME fill in a description of your system's linker (not GNU ld)
10261    case $host_os in
10262    aix3*)
10263      allow_undefined_flag=unsupported
10264      always_export_symbols=yes
10265      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'
10266      # Note: this linker hardcodes the directories in LIBPATH if there
10267      # are no directories specified by -L.
10268      hardcode_minus_L=yes
10269      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10270	# Neither direct hardcoding nor static linking is supported with a
10271	# broken collect2.
10272	hardcode_direct=unsupported
10273      fi
10274      ;;
10275
10276    aix[4-9]*)
10277      if test ia64 = "$host_cpu"; then
10278	# On IA64, the linker does run time linking by default, so we don't
10279	# have to do anything special.
10280	aix_use_runtimelinking=no
10281	exp_sym_flag='-Bexport'
10282	no_entry_flag=
10283      else
10284	# If we're using GNU nm, then we don't want the "-C" option.
10285	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10286	# Without the "-l" option, or with the "-B" option, AIX nm treats
10287	# weak defined symbols like other global defined symbols, whereas
10288	# GNU nm marks them as "W".
10289	# While the 'weak' keyword is ignored in the Export File, we need
10290	# it in the Import File for the 'aix-soname' feature, so we have
10291	# to replace the "-B" option with "-P" for AIX nm.
10292	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10293	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10294	else
10295	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10296	fi
10297	aix_use_runtimelinking=no
10298
10299	# Test if we are trying to use run time linking or normal
10300	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10301	# have runtime linking enabled, and use it for executables.
10302	# For shared libraries, we enable/disable runtime linking
10303	# depending on the kind of the shared library created -
10304	# when "with_aix_soname,aix_use_runtimelinking" is:
10305	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10306	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10307	#            lib.a           static archive
10308	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10309	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10310	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10311	#            lib.a(lib.so.V) shared, rtl:no
10312	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10313	#            lib.a           static archive
10314	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10315	  for ld_flag in $LDFLAGS; do
10316	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10317	    aix_use_runtimelinking=yes
10318	    break
10319	  fi
10320	  done
10321	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10322	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10323	    # so we don't have lib.a shared libs to link our executables.
10324	    # We have to force runtime linking in this case.
10325	    aix_use_runtimelinking=yes
10326	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10327	  fi
10328	  ;;
10329	esac
10330
10331	exp_sym_flag='-bexport'
10332	no_entry_flag='-bnoentry'
10333      fi
10334
10335      # When large executables or shared objects are built, AIX ld can
10336      # have problems creating the table of contents.  If linking a library
10337      # or program results in "error TOC overflow" add -mminimal-toc to
10338      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10339      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10340
10341      archive_cmds=''
10342      hardcode_direct=yes
10343      hardcode_direct_absolute=yes
10344      hardcode_libdir_separator=':'
10345      link_all_deplibs=yes
10346      file_list_spec='$wl-f,'
10347      case $with_aix_soname,$aix_use_runtimelinking in
10348      aix,*) ;; # traditional, no import file
10349      svr4,* | *,yes) # use import file
10350	# The Import File defines what to hardcode.
10351	hardcode_direct=no
10352	hardcode_direct_absolute=no
10353	;;
10354      esac
10355
10356      if test yes = "$GCC"; then
10357	case $host_os in aix4.[012]|aix4.[012].*)
10358	# We only want to do this on AIX 4.2 and lower, the check
10359	# below for broken collect2 doesn't work under 4.3+
10360	  collect2name=`$CC -print-prog-name=collect2`
10361	  if test -f "$collect2name" &&
10362	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10363	  then
10364	  # We have reworked collect2
10365	  :
10366	  else
10367	  # We have old collect2
10368	  hardcode_direct=unsupported
10369	  # It fails to find uninstalled libraries when the uninstalled
10370	  # path is not listed in the libpath.  Setting hardcode_minus_L
10371	  # to unsupported forces relinking
10372	  hardcode_minus_L=yes
10373	  hardcode_libdir_flag_spec='-L$libdir'
10374	  hardcode_libdir_separator=
10375	  fi
10376	  ;;
10377	esac
10378	shared_flag='-shared'
10379	if test yes = "$aix_use_runtimelinking"; then
10380	  shared_flag="$shared_flag "'$wl-G'
10381	fi
10382	# Need to ensure runtime linking is disabled for the traditional
10383	# shared library, or the linker may eventually find shared libraries
10384	# /with/ Import File - we do not want to mix them.
10385	shared_flag_aix='-shared'
10386	shared_flag_svr4='-shared $wl-G'
10387      else
10388	# not using gcc
10389	if test ia64 = "$host_cpu"; then
10390	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10391	# chokes on -Wl,-G. The following line is correct:
10392	  shared_flag='-G'
10393	else
10394	  if test yes = "$aix_use_runtimelinking"; then
10395	    shared_flag='$wl-G'
10396	  else
10397	    shared_flag='$wl-bM:SRE'
10398	  fi
10399	  shared_flag_aix='$wl-bM:SRE'
10400	  shared_flag_svr4='$wl-G'
10401	fi
10402      fi
10403
10404      export_dynamic_flag_spec='$wl-bexpall'
10405      # It seems that -bexpall does not export symbols beginning with
10406      # underscore (_), so it is better to generate a list of symbols to export.
10407      always_export_symbols=yes
10408      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10409	# Warning - without using the other runtime loading flags (-brtl),
10410	# -berok will link without error, but may produce a broken library.
10411	allow_undefined_flag='-berok'
10412        # Determine the default libpath from the value encoded in an
10413        # empty executable.
10414        if test set = "${lt_cv_aix_libpath+set}"; then
10415  aix_libpath=$lt_cv_aix_libpath
10416else
10417  if ${lt_cv_aix_libpath_+:} false; then :
10418  $as_echo_n "(cached) " >&6
10419else
10420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421/* end confdefs.h.  */
10422
10423int
10424main ()
10425{
10426
10427  ;
10428  return 0;
10429}
10430_ACEOF
10431if ac_fn_c_try_link "$LINENO"; then :
10432
10433  lt_aix_libpath_sed='
10434      /Import File Strings/,/^$/ {
10435	  /^0/ {
10436	      s/^0  *\([^ ]*\) *$/\1/
10437	      p
10438	  }
10439      }'
10440  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10441  # Check for a 64-bit object if we didn't find anything.
10442  if test -z "$lt_cv_aix_libpath_"; then
10443    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10444  fi
10445fi
10446rm -f core conftest.err conftest.$ac_objext \
10447    conftest$ac_exeext conftest.$ac_ext
10448  if test -z "$lt_cv_aix_libpath_"; then
10449    lt_cv_aix_libpath_=/usr/lib:/lib
10450  fi
10451
10452fi
10453
10454  aix_libpath=$lt_cv_aix_libpath_
10455fi
10456
10457        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10458        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10459      else
10460	if test ia64 = "$host_cpu"; then
10461	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10462	  allow_undefined_flag="-z nodefs"
10463	  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"
10464	else
10465	 # Determine the default libpath from the value encoded in an
10466	 # empty executable.
10467	 if test set = "${lt_cv_aix_libpath+set}"; then
10468  aix_libpath=$lt_cv_aix_libpath
10469else
10470  if ${lt_cv_aix_libpath_+:} false; then :
10471  $as_echo_n "(cached) " >&6
10472else
10473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h.  */
10475
10476int
10477main ()
10478{
10479
10480  ;
10481  return 0;
10482}
10483_ACEOF
10484if ac_fn_c_try_link "$LINENO"; then :
10485
10486  lt_aix_libpath_sed='
10487      /Import File Strings/,/^$/ {
10488	  /^0/ {
10489	      s/^0  *\([^ ]*\) *$/\1/
10490	      p
10491	  }
10492      }'
10493  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10494  # Check for a 64-bit object if we didn't find anything.
10495  if test -z "$lt_cv_aix_libpath_"; then
10496    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10497  fi
10498fi
10499rm -f core conftest.err conftest.$ac_objext \
10500    conftest$ac_exeext conftest.$ac_ext
10501  if test -z "$lt_cv_aix_libpath_"; then
10502    lt_cv_aix_libpath_=/usr/lib:/lib
10503  fi
10504
10505fi
10506
10507  aix_libpath=$lt_cv_aix_libpath_
10508fi
10509
10510	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10511	  # Warning - without using the other run time loading flags,
10512	  # -berok will link without error, but may produce a broken library.
10513	  no_undefined_flag=' $wl-bernotok'
10514	  allow_undefined_flag=' $wl-berok'
10515	  if test yes = "$with_gnu_ld"; then
10516	    # We only use this code for GNU lds that support --whole-archive.
10517	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10518	  else
10519	    # Exported symbols can be pulled into shared objects from archives
10520	    whole_archive_flag_spec='$convenience'
10521	  fi
10522	  archive_cmds_need_lc=yes
10523	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10524	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10525	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10526	  if test svr4 != "$with_aix_soname"; then
10527	    # This is similar to how AIX traditionally builds its shared libraries.
10528	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10529	  fi
10530	  if test aix != "$with_aix_soname"; then
10531	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10532	  else
10533	    # used by -dlpreopen to get the symbols
10534	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10535	  fi
10536	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10537	fi
10538      fi
10539      ;;
10540
10541    amigaos*)
10542      case $host_cpu in
10543      powerpc)
10544            # see comment about AmigaOS4 .so support
10545            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10546            archive_expsym_cmds=''
10547        ;;
10548      m68k)
10549            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)'
10550            hardcode_libdir_flag_spec='-L$libdir'
10551            hardcode_minus_L=yes
10552        ;;
10553      esac
10554      ;;
10555
10556    bsdi[45]*)
10557      export_dynamic_flag_spec=-rdynamic
10558      ;;
10559
10560    cygwin* | mingw* | pw32* | cegcc*)
10561      # When not using gcc, we currently assume that we are using
10562      # Microsoft Visual C++.
10563      # hardcode_libdir_flag_spec is actually meaningless, as there is
10564      # no search path for DLLs.
10565      case $cc_basename in
10566      cl*)
10567	# Native MSVC
10568	hardcode_libdir_flag_spec=' '
10569	allow_undefined_flag=unsupported
10570	always_export_symbols=yes
10571	file_list_spec='@'
10572	# Tell ltmain to make .lib files, not .a files.
10573	libext=lib
10574	# Tell ltmain to make .dll files, not .so files.
10575	shrext_cmds=.dll
10576	# FIXME: Setting linknames here is a bad hack.
10577	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10578	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10579            cp "$export_symbols" "$output_objdir/$soname.def";
10580            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10581          else
10582            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10583          fi~
10584          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10585          linknames='
10586	# The linker will not automatically build a static lib if we build a DLL.
10587	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10588	enable_shared_with_static_runtimes=yes
10589	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10590	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10591	# Don't use ranlib
10592	old_postinstall_cmds='chmod 644 $oldlib'
10593	postlink_cmds='lt_outputfile="@OUTPUT@"~
10594          lt_tool_outputfile="@TOOL_OUTPUT@"~
10595          case $lt_outputfile in
10596            *.exe|*.EXE) ;;
10597            *)
10598              lt_outputfile=$lt_outputfile.exe
10599              lt_tool_outputfile=$lt_tool_outputfile.exe
10600              ;;
10601          esac~
10602          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10603            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10604            $RM "$lt_outputfile.manifest";
10605          fi'
10606	;;
10607      *)
10608	# Assume MSVC wrapper
10609	hardcode_libdir_flag_spec=' '
10610	allow_undefined_flag=unsupported
10611	# Tell ltmain to make .lib files, not .a files.
10612	libext=lib
10613	# Tell ltmain to make .dll files, not .so files.
10614	shrext_cmds=.dll
10615	# FIXME: Setting linknames here is a bad hack.
10616	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10617	# The linker will automatically build a .lib file if we build a DLL.
10618	old_archive_from_new_cmds='true'
10619	# FIXME: Should let the user specify the lib program.
10620	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10621	enable_shared_with_static_runtimes=yes
10622	;;
10623      esac
10624      ;;
10625
10626    darwin* | rhapsody*)
10627
10628
10629  archive_cmds_need_lc=no
10630  hardcode_direct=no
10631  hardcode_automatic=yes
10632  hardcode_shlibpath_var=unsupported
10633  if test yes = "$lt_cv_ld_force_load"; then
10634    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\"`'
10635
10636  else
10637    whole_archive_flag_spec=''
10638  fi
10639  link_all_deplibs=yes
10640  allow_undefined_flag=$_lt_dar_allow_undefined
10641  case $cc_basename in
10642     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10643     *) _lt_dar_can_shared=$GCC ;;
10644  esac
10645  if test yes = "$_lt_dar_can_shared"; then
10646    output_verbose_link_cmd=func_echo_all
10647    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10648    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10649    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"
10650    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"
10651
10652  else
10653  ld_shlibs=no
10654  fi
10655
10656      ;;
10657
10658    dgux*)
10659      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660      hardcode_libdir_flag_spec='-L$libdir'
10661      hardcode_shlibpath_var=no
10662      ;;
10663
10664    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10665    # support.  Future versions do this automatically, but an explicit c++rt0.o
10666    # does not break anything, and helps significantly (at the cost of a little
10667    # extra space).
10668    freebsd2.2*)
10669      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10670      hardcode_libdir_flag_spec='-R$libdir'
10671      hardcode_direct=yes
10672      hardcode_shlibpath_var=no
10673      ;;
10674
10675    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10676    freebsd2.*)
10677      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10678      hardcode_direct=yes
10679      hardcode_minus_L=yes
10680      hardcode_shlibpath_var=no
10681      ;;
10682
10683    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10684    freebsd* | dragonfly*)
10685      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10686      hardcode_libdir_flag_spec='-R$libdir'
10687      hardcode_direct=yes
10688      hardcode_shlibpath_var=no
10689      ;;
10690
10691    hpux9*)
10692      if test yes = "$GCC"; then
10693	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10694      else
10695	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10696      fi
10697      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10698      hardcode_libdir_separator=:
10699      hardcode_direct=yes
10700
10701      # hardcode_minus_L: Not really in the search PATH,
10702      # but as the default location of the library.
10703      hardcode_minus_L=yes
10704      export_dynamic_flag_spec='$wl-E'
10705      ;;
10706
10707    hpux10*)
10708      if test yes,no = "$GCC,$with_gnu_ld"; then
10709	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10710      else
10711	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10712      fi
10713      if test no = "$with_gnu_ld"; then
10714	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10715	hardcode_libdir_separator=:
10716	hardcode_direct=yes
10717	hardcode_direct_absolute=yes
10718	export_dynamic_flag_spec='$wl-E'
10719	# hardcode_minus_L: Not really in the search PATH,
10720	# but as the default location of the library.
10721	hardcode_minus_L=yes
10722      fi
10723      ;;
10724
10725    hpux11*)
10726      if test yes,no = "$GCC,$with_gnu_ld"; then
10727	case $host_cpu in
10728	hppa*64*)
10729	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10730	  ;;
10731	ia64*)
10732	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10733	  ;;
10734	*)
10735	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736	  ;;
10737	esac
10738      else
10739	case $host_cpu in
10740	hppa*64*)
10741	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10742	  ;;
10743	ia64*)
10744	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10745	  ;;
10746	*)
10747
10748	  # Older versions of the 11.00 compiler do not understand -b yet
10749	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10750	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10751$as_echo_n "checking if $CC understands -b... " >&6; }
10752if ${lt_cv_prog_compiler__b+:} false; then :
10753  $as_echo_n "(cached) " >&6
10754else
10755  lt_cv_prog_compiler__b=no
10756   save_LDFLAGS=$LDFLAGS
10757   LDFLAGS="$LDFLAGS -b"
10758   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10759   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10760     # The linker can only warn and ignore the option if not recognized
10761     # So say no if there are warnings
10762     if test -s conftest.err; then
10763       # Append any errors to the config.log.
10764       cat conftest.err 1>&5
10765       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10766       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10767       if diff conftest.exp conftest.er2 >/dev/null; then
10768         lt_cv_prog_compiler__b=yes
10769       fi
10770     else
10771       lt_cv_prog_compiler__b=yes
10772     fi
10773   fi
10774   $RM -r conftest*
10775   LDFLAGS=$save_LDFLAGS
10776
10777fi
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10779$as_echo "$lt_cv_prog_compiler__b" >&6; }
10780
10781if test yes = "$lt_cv_prog_compiler__b"; then
10782    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10783else
10784    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10785fi
10786
10787	  ;;
10788	esac
10789      fi
10790      if test no = "$with_gnu_ld"; then
10791	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10792	hardcode_libdir_separator=:
10793
10794	case $host_cpu in
10795	hppa*64*|ia64*)
10796	  hardcode_direct=no
10797	  hardcode_shlibpath_var=no
10798	  ;;
10799	*)
10800	  hardcode_direct=yes
10801	  hardcode_direct_absolute=yes
10802	  export_dynamic_flag_spec='$wl-E'
10803
10804	  # hardcode_minus_L: Not really in the search PATH,
10805	  # but as the default location of the library.
10806	  hardcode_minus_L=yes
10807	  ;;
10808	esac
10809      fi
10810      ;;
10811
10812    irix5* | irix6* | nonstopux*)
10813      if test yes = "$GCC"; then
10814	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'
10815	# Try to use the -exported_symbol ld option, if it does not
10816	# work, assume that -exports_file does not work either and
10817	# implicitly export all symbols.
10818	# This should be the same for all languages, so no per-tag cache variable.
10819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10820$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10821if ${lt_cv_irix_exported_symbol+:} false; then :
10822  $as_echo_n "(cached) " >&6
10823else
10824  save_LDFLAGS=$LDFLAGS
10825	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10826	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h.  */
10828int foo (void) { return 0; }
10829_ACEOF
10830if ac_fn_c_try_link "$LINENO"; then :
10831  lt_cv_irix_exported_symbol=yes
10832else
10833  lt_cv_irix_exported_symbol=no
10834fi
10835rm -f core conftest.err conftest.$ac_objext \
10836    conftest$ac_exeext conftest.$ac_ext
10837           LDFLAGS=$save_LDFLAGS
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10840$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10841	if test yes = "$lt_cv_irix_exported_symbol"; then
10842          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'
10843	fi
10844      else
10845	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'
10846	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'
10847      fi
10848      archive_cmds_need_lc='no'
10849      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10850      hardcode_libdir_separator=:
10851      inherit_rpath=yes
10852      link_all_deplibs=yes
10853      ;;
10854
10855    linux*)
10856      case $cc_basename in
10857      tcc*)
10858	# Fabrice Bellard et al's Tiny C Compiler
10859	ld_shlibs=yes
10860	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10861	;;
10862      esac
10863      ;;
10864
10865    netbsd*)
10866      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10867	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10868      else
10869	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10870      fi
10871      hardcode_libdir_flag_spec='-R$libdir'
10872      hardcode_direct=yes
10873      hardcode_shlibpath_var=no
10874      ;;
10875
10876    newsos6)
10877      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878      hardcode_direct=yes
10879      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10880      hardcode_libdir_separator=:
10881      hardcode_shlibpath_var=no
10882      ;;
10883
10884    *nto* | *qnx*)
10885      ;;
10886
10887    openbsd* | bitrig*)
10888      if test -f /usr/libexec/ld.so; then
10889	hardcode_direct=yes
10890	hardcode_shlibpath_var=no
10891	hardcode_direct_absolute=yes
10892	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10893	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10894	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10895	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10896	  export_dynamic_flag_spec='$wl-E'
10897	else
10898	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10899	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10900	fi
10901      else
10902	ld_shlibs=no
10903      fi
10904      ;;
10905
10906    os2*)
10907      hardcode_libdir_flag_spec='-L$libdir'
10908      hardcode_minus_L=yes
10909      allow_undefined_flag=unsupported
10910      shrext_cmds=.dll
10911      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10912	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10913	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10914	$ECHO EXPORTS >> $output_objdir/$libname.def~
10915	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10916	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10917	emximp -o $lib $output_objdir/$libname.def'
10918      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10919	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10920	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10921	$ECHO EXPORTS >> $output_objdir/$libname.def~
10922	prefix_cmds="$SED"~
10923	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10924	  prefix_cmds="$prefix_cmds -e 1d";
10925	fi~
10926	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10927	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10928	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10929	emximp -o $lib $output_objdir/$libname.def'
10930      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10931      enable_shared_with_static_runtimes=yes
10932      ;;
10933
10934    osf3*)
10935      if test yes = "$GCC"; then
10936	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10937	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'
10938      else
10939	allow_undefined_flag=' -expect_unresolved \*'
10940	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'
10941      fi
10942      archive_cmds_need_lc='no'
10943      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10944      hardcode_libdir_separator=:
10945      ;;
10946
10947    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10948      if test yes = "$GCC"; then
10949	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10950	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'
10951	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10952      else
10953	allow_undefined_flag=' -expect_unresolved \*'
10954	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'
10955	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~
10956          $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'
10957
10958	# Both c and cxx compiler support -rpath directly
10959	hardcode_libdir_flag_spec='-rpath $libdir'
10960      fi
10961      archive_cmds_need_lc='no'
10962      hardcode_libdir_separator=:
10963      ;;
10964
10965    solaris*)
10966      no_undefined_flag=' -z defs'
10967      if test yes = "$GCC"; then
10968	wlarc='$wl'
10969	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10970	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10971          $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'
10972      else
10973	case `$CC -V 2>&1` in
10974	*"Compilers 5.0"*)
10975	  wlarc=''
10976	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10977	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10978            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10979	  ;;
10980	*)
10981	  wlarc='$wl'
10982	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10983	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10984            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10985	  ;;
10986	esac
10987      fi
10988      hardcode_libdir_flag_spec='-R$libdir'
10989      hardcode_shlibpath_var=no
10990      case $host_os in
10991      solaris2.[0-5] | solaris2.[0-5].*) ;;
10992      *)
10993	# The compiler driver will combine and reorder linker options,
10994	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10995	# but is careful enough not to reorder.
10996	# Supported since Solaris 2.6 (maybe 2.5.1?)
10997	if test yes = "$GCC"; then
10998	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10999	else
11000	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11001	fi
11002	;;
11003      esac
11004      link_all_deplibs=yes
11005      ;;
11006
11007    sunos4*)
11008      if test sequent = "$host_vendor"; then
11009	# Use $CC to link under sequent, because it throws in some extra .o
11010	# files that make .init and .fini sections work.
11011	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11012      else
11013	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11014      fi
11015      hardcode_libdir_flag_spec='-L$libdir'
11016      hardcode_direct=yes
11017      hardcode_minus_L=yes
11018      hardcode_shlibpath_var=no
11019      ;;
11020
11021    sysv4)
11022      case $host_vendor in
11023	sni)
11024	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11025	  hardcode_direct=yes # is this really true???
11026	;;
11027	siemens)
11028	  ## LD is ld it makes a PLAMLIB
11029	  ## CC just makes a GrossModule.
11030	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11031	  reload_cmds='$CC -r -o $output$reload_objs'
11032	  hardcode_direct=no
11033        ;;
11034	motorola)
11035	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11036	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11037	;;
11038      esac
11039      runpath_var='LD_RUN_PATH'
11040      hardcode_shlibpath_var=no
11041      ;;
11042
11043    sysv4.3*)
11044      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045      hardcode_shlibpath_var=no
11046      export_dynamic_flag_spec='-Bexport'
11047      ;;
11048
11049    sysv4*MP*)
11050      if test -d /usr/nec; then
11051	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11052	hardcode_shlibpath_var=no
11053	runpath_var=LD_RUN_PATH
11054	hardcode_runpath_var=yes
11055	ld_shlibs=yes
11056      fi
11057      ;;
11058
11059    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11060      no_undefined_flag='$wl-z,text'
11061      archive_cmds_need_lc=no
11062      hardcode_shlibpath_var=no
11063      runpath_var='LD_RUN_PATH'
11064
11065      if test yes = "$GCC"; then
11066	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11068      else
11069	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071      fi
11072      ;;
11073
11074    sysv5* | sco3.2v5* | sco5v6*)
11075      # Note: We CANNOT use -z defs as we might desire, because we do not
11076      # link with -lc, and that would cause any symbols used from libc to
11077      # always be unresolved, which means just about no library would
11078      # ever link correctly.  If we're not using GNU ld we use -z text
11079      # though, which does catch some bad symbols but isn't as heavy-handed
11080      # as -z defs.
11081      no_undefined_flag='$wl-z,text'
11082      allow_undefined_flag='$wl-z,nodefs'
11083      archive_cmds_need_lc=no
11084      hardcode_shlibpath_var=no
11085      hardcode_libdir_flag_spec='$wl-R,$libdir'
11086      hardcode_libdir_separator=':'
11087      link_all_deplibs=yes
11088      export_dynamic_flag_spec='$wl-Bexport'
11089      runpath_var='LD_RUN_PATH'
11090
11091      if test yes = "$GCC"; then
11092	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11094      else
11095	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11096	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11097      fi
11098      ;;
11099
11100    uts4*)
11101      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11102      hardcode_libdir_flag_spec='-L$libdir'
11103      hardcode_shlibpath_var=no
11104      ;;
11105
11106    *)
11107      ld_shlibs=no
11108      ;;
11109    esac
11110
11111    if test sni = "$host_vendor"; then
11112      case $host in
11113      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11114	export_dynamic_flag_spec='$wl-Blargedynsym'
11115	;;
11116      esac
11117    fi
11118  fi
11119
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11121$as_echo "$ld_shlibs" >&6; }
11122test no = "$ld_shlibs" && can_build_shared=no
11123
11124with_gnu_ld=$with_gnu_ld
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140#
11141# Do we need to explicitly link libc?
11142#
11143case "x$archive_cmds_need_lc" in
11144x|xyes)
11145  # Assume -lc should be added
11146  archive_cmds_need_lc=yes
11147
11148  if test yes,yes = "$GCC,$enable_shared"; then
11149    case $archive_cmds in
11150    *'~'*)
11151      # FIXME: we may have to deal with multi-command sequences.
11152      ;;
11153    '$CC '*)
11154      # Test whether the compiler implicitly links with -lc since on some
11155      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11156      # to ld, don't add -lc before -lgcc.
11157      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11158$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11159if ${lt_cv_archive_cmds_need_lc+:} false; then :
11160  $as_echo_n "(cached) " >&6
11161else
11162  $RM conftest*
11163	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11164
11165	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11166  (eval $ac_compile) 2>&5
11167  ac_status=$?
11168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11169  test $ac_status = 0; } 2>conftest.err; then
11170	  soname=conftest
11171	  lib=conftest
11172	  libobjs=conftest.$ac_objext
11173	  deplibs=
11174	  wl=$lt_prog_compiler_wl
11175	  pic_flag=$lt_prog_compiler_pic
11176	  compiler_flags=-v
11177	  linker_flags=-v
11178	  verstring=
11179	  output_objdir=.
11180	  libname=conftest
11181	  lt_save_allow_undefined_flag=$allow_undefined_flag
11182	  allow_undefined_flag=
11183	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11184  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11185  ac_status=$?
11186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187  test $ac_status = 0; }
11188	  then
11189	    lt_cv_archive_cmds_need_lc=no
11190	  else
11191	    lt_cv_archive_cmds_need_lc=yes
11192	  fi
11193	  allow_undefined_flag=$lt_save_allow_undefined_flag
11194	else
11195	  cat conftest.err 1>&5
11196	fi
11197	$RM conftest*
11198
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11201$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11202      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11203      ;;
11204    esac
11205  fi
11206  ;;
11207esac
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11361$as_echo_n "checking dynamic linker characteristics... " >&6; }
11362
11363if test yes = "$GCC"; then
11364  case $host_os in
11365    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11366    *) lt_awk_arg='/^libraries:/' ;;
11367  esac
11368  case $host_os in
11369    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11370    *) lt_sed_strip_eq='s|=/|/|g' ;;
11371  esac
11372  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11373  case $lt_search_path_spec in
11374  *\;*)
11375    # if the path contains ";" then we assume it to be the separator
11376    # otherwise default to the standard path separator (i.e. ":") - it is
11377    # assumed that no part of a normal pathname contains ";" but that should
11378    # okay in the real world where ";" in dirpaths is itself problematic.
11379    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11380    ;;
11381  *)
11382    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11383    ;;
11384  esac
11385  # Ok, now we have the path, separated by spaces, we can step through it
11386  # and add multilib dir if necessary...
11387  lt_tmp_lt_search_path_spec=
11388  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11389  # ...but if some path component already ends with the multilib dir we assume
11390  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11391  case "$lt_multi_os_dir; $lt_search_path_spec " in
11392  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11393    lt_multi_os_dir=
11394    ;;
11395  esac
11396  for lt_sys_path in $lt_search_path_spec; do
11397    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11398      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11399    elif test -n "$lt_multi_os_dir"; then
11400      test -d "$lt_sys_path" && \
11401	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11402    fi
11403  done
11404  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11405BEGIN {RS = " "; FS = "/|\n";} {
11406  lt_foo = "";
11407  lt_count = 0;
11408  for (lt_i = NF; lt_i > 0; lt_i--) {
11409    if ($lt_i != "" && $lt_i != ".") {
11410      if ($lt_i == "..") {
11411        lt_count++;
11412      } else {
11413        if (lt_count == 0) {
11414          lt_foo = "/" $lt_i lt_foo;
11415        } else {
11416          lt_count--;
11417        }
11418      }
11419    }
11420  }
11421  if (lt_foo != "") { lt_freq[lt_foo]++; }
11422  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11423}'`
11424  # AWK program above erroneously prepends '/' to C:/dos/paths
11425  # for these hosts.
11426  case $host_os in
11427    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11428      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11429  esac
11430  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11431else
11432  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11433fi
11434library_names_spec=
11435libname_spec='lib$name'
11436soname_spec=
11437shrext_cmds=.so
11438postinstall_cmds=
11439postuninstall_cmds=
11440finish_cmds=
11441finish_eval=
11442shlibpath_var=
11443shlibpath_overrides_runpath=unknown
11444version_type=none
11445dynamic_linker="$host_os ld.so"
11446sys_lib_dlsearch_path_spec="/lib /usr/lib"
11447need_lib_prefix=unknown
11448hardcode_into_libs=no
11449
11450# when you set need_version to no, make sure it does not cause -set_version
11451# flags to be left without arguments
11452need_version=unknown
11453
11454case $host_os in
11455aix3*)
11456  version_type=linux # correct to gnu/linux during the next big refactor
11457  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11458  shlibpath_var=LIBPATH
11459
11460  # AIX 3 has no versioning support, so we append a major version to the name.
11461  soname_spec='$libname$release$shared_ext$major'
11462  ;;
11463
11464aix[4-9]*)
11465  version_type=linux # correct to gnu/linux during the next big refactor
11466  need_lib_prefix=no
11467  need_version=no
11468  hardcode_into_libs=yes
11469  if test ia64 = "$host_cpu"; then
11470    # AIX 5 supports IA64
11471    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11472    shlibpath_var=LD_LIBRARY_PATH
11473  else
11474    # With GCC up to 2.95.x, collect2 would create an import file
11475    # for dependence libraries.  The import file would start with
11476    # the line '#! .'.  This would cause the generated library to
11477    # depend on '.', always an invalid library.  This was fixed in
11478    # development snapshots of GCC prior to 3.0.
11479    case $host_os in
11480      aix4 | aix4.[01] | aix4.[01].*)
11481      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11482	   echo ' yes '
11483	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11484	:
11485      else
11486	can_build_shared=no
11487      fi
11488      ;;
11489    esac
11490    # Using Import Files as archive members, it is possible to support
11491    # filename-based versioning of shared library archives on AIX. While
11492    # this would work for both with and without runtime linking, it will
11493    # prevent static linking of such archives. So we do filename-based
11494    # shared library versioning with .so extension only, which is used
11495    # when both runtime linking and shared linking is enabled.
11496    # Unfortunately, runtime linking may impact performance, so we do
11497    # not want this to be the default eventually. Also, we use the
11498    # versioned .so libs for executables only if there is the -brtl
11499    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11500    # To allow for filename-based versioning support, we need to create
11501    # libNAME.so.V as an archive file, containing:
11502    # *) an Import File, referring to the versioned filename of the
11503    #    archive as well as the shared archive member, telling the
11504    #    bitwidth (32 or 64) of that shared object, and providing the
11505    #    list of exported symbols of that shared object, eventually
11506    #    decorated with the 'weak' keyword
11507    # *) the shared object with the F_LOADONLY flag set, to really avoid
11508    #    it being seen by the linker.
11509    # At run time we better use the real file rather than another symlink,
11510    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11511
11512    case $with_aix_soname,$aix_use_runtimelinking in
11513    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11514    # soname into executable. Probably we can add versioning support to
11515    # collect2, so additional links can be useful in future.
11516    aix,yes) # traditional libtool
11517      dynamic_linker='AIX unversionable lib.so'
11518      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11519      # instead of lib<name>.a to let people know that these are not
11520      # typical AIX shared libraries.
11521      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522      ;;
11523    aix,no) # traditional AIX only
11524      dynamic_linker='AIX lib.a(lib.so.V)'
11525      # We preserve .a as extension for shared libraries through AIX4.2
11526      # and later when we are not doing run time linking.
11527      library_names_spec='$libname$release.a $libname.a'
11528      soname_spec='$libname$release$shared_ext$major'
11529      ;;
11530    svr4,*) # full svr4 only
11531      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11532      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11533      # We do not specify a path in Import Files, so LIBPATH fires.
11534      shlibpath_overrides_runpath=yes
11535      ;;
11536    *,yes) # both, prefer svr4
11537      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11538      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11539      # unpreferred sharedlib libNAME.a needs extra handling
11540      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11541      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11542      # We do not specify a path in Import Files, so LIBPATH fires.
11543      shlibpath_overrides_runpath=yes
11544      ;;
11545    *,no) # both, prefer aix
11546      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11547      library_names_spec='$libname$release.a $libname.a'
11548      soname_spec='$libname$release$shared_ext$major'
11549      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11550      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11551      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11552      ;;
11553    esac
11554    shlibpath_var=LIBPATH
11555  fi
11556  ;;
11557
11558amigaos*)
11559  case $host_cpu in
11560  powerpc)
11561    # Since July 2007 AmigaOS4 officially supports .so libraries.
11562    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11563    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11564    ;;
11565  m68k)
11566    library_names_spec='$libname.ixlibrary $libname.a'
11567    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11568    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11569    ;;
11570  esac
11571  ;;
11572
11573beos*)
11574  library_names_spec='$libname$shared_ext'
11575  dynamic_linker="$host_os ld.so"
11576  shlibpath_var=LIBRARY_PATH
11577  ;;
11578
11579bsdi[45]*)
11580  version_type=linux # correct to gnu/linux during the next big refactor
11581  need_version=no
11582  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583  soname_spec='$libname$release$shared_ext$major'
11584  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11585  shlibpath_var=LD_LIBRARY_PATH
11586  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11587  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11588  # the default ld.so.conf also contains /usr/contrib/lib and
11589  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11590  # libtool to hard-code these into programs
11591  ;;
11592
11593cygwin* | mingw* | pw32* | cegcc*)
11594  version_type=windows
11595  shrext_cmds=.dll
11596  need_version=no
11597  need_lib_prefix=no
11598
11599  case $GCC,$cc_basename in
11600  yes,*)
11601    # gcc
11602    library_names_spec='$libname.dll.a'
11603    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11604    postinstall_cmds='base_file=`basename \$file`~
11605      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11606      dldir=$destdir/`dirname \$dlpath`~
11607      test -d \$dldir || mkdir -p \$dldir~
11608      $install_prog $dir/$dlname \$dldir/$dlname~
11609      chmod a+x \$dldir/$dlname~
11610      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11611        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11612      fi'
11613    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11614      dlpath=$dir/\$dldll~
11615       $RM \$dlpath'
11616    shlibpath_overrides_runpath=yes
11617
11618    case $host_os in
11619    cygwin*)
11620      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11621      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11622
11623      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11624      ;;
11625    mingw* | cegcc*)
11626      # MinGW DLLs use traditional 'lib' prefix
11627      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11628      ;;
11629    pw32*)
11630      # pw32 DLLs use 'pw' prefix rather than 'lib'
11631      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11632      ;;
11633    esac
11634    dynamic_linker='Win32 ld.exe'
11635    ;;
11636
11637  *,cl*)
11638    # Native MSVC
11639    libname_spec='$name'
11640    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11641    library_names_spec='$libname.dll.lib'
11642
11643    case $build_os in
11644    mingw*)
11645      sys_lib_search_path_spec=
11646      lt_save_ifs=$IFS
11647      IFS=';'
11648      for lt_path in $LIB
11649      do
11650        IFS=$lt_save_ifs
11651        # Let DOS variable expansion print the short 8.3 style file name.
11652        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11653        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11654      done
11655      IFS=$lt_save_ifs
11656      # Convert to MSYS style.
11657      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11658      ;;
11659    cygwin*)
11660      # Convert to unix form, then to dos form, then back to unix form
11661      # but this time dos style (no spaces!) so that the unix form looks
11662      # like /cygdrive/c/PROGRA~1:/cygdr...
11663      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11664      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11665      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11666      ;;
11667    *)
11668      sys_lib_search_path_spec=$LIB
11669      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11670        # It is most probably a Windows format PATH.
11671        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11672      else
11673        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11674      fi
11675      # FIXME: find the short name or the path components, as spaces are
11676      # common. (e.g. "Program Files" -> "PROGRA~1")
11677      ;;
11678    esac
11679
11680    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11681    postinstall_cmds='base_file=`basename \$file`~
11682      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11683      dldir=$destdir/`dirname \$dlpath`~
11684      test -d \$dldir || mkdir -p \$dldir~
11685      $install_prog $dir/$dlname \$dldir/$dlname'
11686    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11687      dlpath=$dir/\$dldll~
11688       $RM \$dlpath'
11689    shlibpath_overrides_runpath=yes
11690    dynamic_linker='Win32 link.exe'
11691    ;;
11692
11693  *)
11694    # Assume MSVC wrapper
11695    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11696    dynamic_linker='Win32 ld.exe'
11697    ;;
11698  esac
11699  # FIXME: first we should search . and the directory the executable is in
11700  shlibpath_var=PATH
11701  ;;
11702
11703darwin* | rhapsody*)
11704  dynamic_linker="$host_os dyld"
11705  version_type=darwin
11706  need_lib_prefix=no
11707  need_version=no
11708  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11709  soname_spec='$libname$release$major$shared_ext'
11710  shlibpath_overrides_runpath=yes
11711  shlibpath_var=DYLD_LIBRARY_PATH
11712  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11713
11714  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11715  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11716  ;;
11717
11718dgux*)
11719  version_type=linux # correct to gnu/linux during the next big refactor
11720  need_lib_prefix=no
11721  need_version=no
11722  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723  soname_spec='$libname$release$shared_ext$major'
11724  shlibpath_var=LD_LIBRARY_PATH
11725  ;;
11726
11727freebsd* | dragonfly*)
11728  # DragonFly does not have aout.  When/if they implement a new
11729  # versioning mechanism, adjust this.
11730  if test -x /usr/bin/objformat; then
11731    objformat=`/usr/bin/objformat`
11732  else
11733    case $host_os in
11734    freebsd[23].*) objformat=aout ;;
11735    *) objformat=elf ;;
11736    esac
11737  fi
11738  version_type=freebsd-$objformat
11739  case $version_type in
11740    freebsd-elf*)
11741      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11742      need_version=no
11743      need_lib_prefix=no
11744      ;;
11745    freebsd-*)
11746      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11747      need_version=yes
11748      ;;
11749  esac
11750  shlibpath_var=LD_LIBRARY_PATH
11751  case $host_os in
11752  freebsd2.*)
11753    shlibpath_overrides_runpath=yes
11754    ;;
11755  freebsd3.[01]* | freebsdelf3.[01]*)
11756    shlibpath_overrides_runpath=yes
11757    hardcode_into_libs=yes
11758    ;;
11759  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11760  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11761    shlibpath_overrides_runpath=no
11762    hardcode_into_libs=yes
11763    ;;
11764  *) # from 4.6 on, and DragonFly
11765    shlibpath_overrides_runpath=yes
11766    hardcode_into_libs=yes
11767    ;;
11768  esac
11769  ;;
11770
11771haiku*)
11772  version_type=linux # correct to gnu/linux during the next big refactor
11773  need_lib_prefix=no
11774  need_version=no
11775  dynamic_linker="$host_os runtime_loader"
11776  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11777  soname_spec='$libname$release$shared_ext$major'
11778  shlibpath_var=LIBRARY_PATH
11779  shlibpath_overrides_runpath=no
11780  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11781  hardcode_into_libs=yes
11782  ;;
11783
11784hpux9* | hpux10* | hpux11*)
11785  # Give a soname corresponding to the major version so that dld.sl refuses to
11786  # link against other versions.
11787  version_type=sunos
11788  need_lib_prefix=no
11789  need_version=no
11790  case $host_cpu in
11791  ia64*)
11792    shrext_cmds='.so'
11793    hardcode_into_libs=yes
11794    dynamic_linker="$host_os dld.so"
11795    shlibpath_var=LD_LIBRARY_PATH
11796    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11797    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11798    soname_spec='$libname$release$shared_ext$major'
11799    if test 32 = "$HPUX_IA64_MODE"; then
11800      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11801    else
11802      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11803    fi
11804    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11805    ;;
11806  hppa*64*)
11807    shrext_cmds='.sl'
11808    hardcode_into_libs=yes
11809    dynamic_linker="$host_os dld.sl"
11810    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11811    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11812    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813    soname_spec='$libname$release$shared_ext$major'
11814    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11815    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11816    ;;
11817  *)
11818    shrext_cmds='.sl'
11819    dynamic_linker="$host_os dld.sl"
11820    shlibpath_var=SHLIB_PATH
11821    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11822    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823    soname_spec='$libname$release$shared_ext$major'
11824    ;;
11825  esac
11826  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11827  postinstall_cmds='chmod 555 $lib'
11828  # or fails outright, so override atomically:
11829  install_override_mode=555
11830  ;;
11831
11832interix[3-9]*)
11833  version_type=linux # correct to gnu/linux during the next big refactor
11834  need_lib_prefix=no
11835  need_version=no
11836  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11837  soname_spec='$libname$release$shared_ext$major'
11838  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11839  shlibpath_var=LD_LIBRARY_PATH
11840  shlibpath_overrides_runpath=no
11841  hardcode_into_libs=yes
11842  ;;
11843
11844irix5* | irix6* | nonstopux*)
11845  case $host_os in
11846    nonstopux*) version_type=nonstopux ;;
11847    *)
11848	if test yes = "$lt_cv_prog_gnu_ld"; then
11849		version_type=linux # correct to gnu/linux during the next big refactor
11850	else
11851		version_type=irix
11852	fi ;;
11853  esac
11854  need_lib_prefix=no
11855  need_version=no
11856  soname_spec='$libname$release$shared_ext$major'
11857  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11858  case $host_os in
11859  irix5* | nonstopux*)
11860    libsuff= shlibsuff=
11861    ;;
11862  *)
11863    case $LD in # libtool.m4 will add one of these switches to LD
11864    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11865      libsuff= shlibsuff= libmagic=32-bit;;
11866    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11867      libsuff=32 shlibsuff=N32 libmagic=N32;;
11868    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11869      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11870    *) libsuff= shlibsuff= libmagic=never-match;;
11871    esac
11872    ;;
11873  esac
11874  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11875  shlibpath_overrides_runpath=no
11876  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11877  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11878  hardcode_into_libs=yes
11879  ;;
11880
11881# No shared lib support for Linux oldld, aout, or coff.
11882linux*oldld* | linux*aout* | linux*coff*)
11883  dynamic_linker=no
11884  ;;
11885
11886linux*android*)
11887  version_type=none # Android doesn't support versioned libraries.
11888  need_lib_prefix=no
11889  need_version=no
11890  library_names_spec='$libname$release$shared_ext'
11891  soname_spec='$libname$release$shared_ext'
11892  finish_cmds=
11893  shlibpath_var=LD_LIBRARY_PATH
11894  shlibpath_overrides_runpath=yes
11895
11896  # This implies no fast_install, which is unacceptable.
11897  # Some rework will be needed to allow for fast_install
11898  # before this can be enabled.
11899  hardcode_into_libs=yes
11900
11901  dynamic_linker='Android linker'
11902  # Don't embed -rpath directories since the linker doesn't support them.
11903  hardcode_libdir_flag_spec='-L$libdir'
11904  ;;
11905
11906# This must be glibc/ELF.
11907linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11908  version_type=linux # correct to gnu/linux during the next big refactor
11909  need_lib_prefix=no
11910  need_version=no
11911  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912  soname_spec='$libname$release$shared_ext$major'
11913  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11914  shlibpath_var=LD_LIBRARY_PATH
11915  shlibpath_overrides_runpath=no
11916
11917  # Some binutils ld are patched to set DT_RUNPATH
11918  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11919  $as_echo_n "(cached) " >&6
11920else
11921  lt_cv_shlibpath_overrides_runpath=no
11922    save_LDFLAGS=$LDFLAGS
11923    save_libdir=$libdir
11924    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11925	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927/* end confdefs.h.  */
11928
11929int
11930main ()
11931{
11932
11933  ;
11934  return 0;
11935}
11936_ACEOF
11937if ac_fn_c_try_link "$LINENO"; then :
11938  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11939  lt_cv_shlibpath_overrides_runpath=yes
11940fi
11941fi
11942rm -f core conftest.err conftest.$ac_objext \
11943    conftest$ac_exeext conftest.$ac_ext
11944    LDFLAGS=$save_LDFLAGS
11945    libdir=$save_libdir
11946
11947fi
11948
11949  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11950
11951  # This implies no fast_install, which is unacceptable.
11952  # Some rework will be needed to allow for fast_install
11953  # before this can be enabled.
11954  hardcode_into_libs=yes
11955
11956  # Append ld.so.conf contents to the search path
11957  if test -f /etc/ld.so.conf; then
11958    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' ' '`
11959    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11960  fi
11961
11962  # We used to test for /lib/ld.so.1 and disable shared libraries on
11963  # powerpc, because MkLinux only supported shared libraries with the
11964  # GNU dynamic linker.  Since this was broken with cross compilers,
11965  # most powerpc-linux boxes support dynamic linking these days and
11966  # people can always --disable-shared, the test was removed, and we
11967  # assume the GNU/Linux dynamic linker is in use.
11968  dynamic_linker='GNU/Linux ld.so'
11969  ;;
11970
11971netbsd*)
11972  version_type=sunos
11973  need_lib_prefix=no
11974  need_version=no
11975  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11976    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11977    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11978    dynamic_linker='NetBSD (a.out) ld.so'
11979  else
11980    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981    soname_spec='$libname$release$shared_ext$major'
11982    dynamic_linker='NetBSD ld.elf_so'
11983  fi
11984  shlibpath_var=LD_LIBRARY_PATH
11985  shlibpath_overrides_runpath=yes
11986  hardcode_into_libs=yes
11987  ;;
11988
11989newsos6)
11990  version_type=linux # correct to gnu/linux during the next big refactor
11991  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11992  shlibpath_var=LD_LIBRARY_PATH
11993  shlibpath_overrides_runpath=yes
11994  ;;
11995
11996*nto* | *qnx*)
11997  version_type=qnx
11998  need_lib_prefix=no
11999  need_version=no
12000  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12001  soname_spec='$libname$release$shared_ext$major'
12002  shlibpath_var=LD_LIBRARY_PATH
12003  shlibpath_overrides_runpath=no
12004  hardcode_into_libs=yes
12005  dynamic_linker='ldqnx.so'
12006  ;;
12007
12008openbsd* | bitrig*)
12009  version_type=sunos
12010  sys_lib_dlsearch_path_spec=/usr/lib
12011  need_lib_prefix=no
12012  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12013    need_version=no
12014  else
12015    need_version=yes
12016  fi
12017  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12018  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12019  shlibpath_var=LD_LIBRARY_PATH
12020  shlibpath_overrides_runpath=yes
12021  ;;
12022
12023os2*)
12024  libname_spec='$name'
12025  version_type=windows
12026  shrext_cmds=.dll
12027  need_version=no
12028  need_lib_prefix=no
12029  # OS/2 can only load a DLL with a base name of 8 characters or less.
12030  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12031    v=$($ECHO $release$versuffix | tr -d .-);
12032    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12033    $ECHO $n$v`$shared_ext'
12034  library_names_spec='${libname}_dll.$libext'
12035  dynamic_linker='OS/2 ld.exe'
12036  shlibpath_var=BEGINLIBPATH
12037  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12038  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12039  postinstall_cmds='base_file=`basename \$file`~
12040    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12041    dldir=$destdir/`dirname \$dlpath`~
12042    test -d \$dldir || mkdir -p \$dldir~
12043    $install_prog $dir/$dlname \$dldir/$dlname~
12044    chmod a+x \$dldir/$dlname~
12045    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12046      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12047    fi'
12048  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12049    dlpath=$dir/\$dldll~
12050    $RM \$dlpath'
12051  ;;
12052
12053osf3* | osf4* | osf5*)
12054  version_type=osf
12055  need_lib_prefix=no
12056  need_version=no
12057  soname_spec='$libname$release$shared_ext$major'
12058  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12059  shlibpath_var=LD_LIBRARY_PATH
12060  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12061  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062  ;;
12063
12064rdos*)
12065  dynamic_linker=no
12066  ;;
12067
12068solaris*)
12069  version_type=linux # correct to gnu/linux during the next big refactor
12070  need_lib_prefix=no
12071  need_version=no
12072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12073  soname_spec='$libname$release$shared_ext$major'
12074  shlibpath_var=LD_LIBRARY_PATH
12075  shlibpath_overrides_runpath=yes
12076  hardcode_into_libs=yes
12077  # ldd complains unless libraries are executable
12078  postinstall_cmds='chmod +x $lib'
12079  ;;
12080
12081sunos4*)
12082  version_type=sunos
12083  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12084  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12085  shlibpath_var=LD_LIBRARY_PATH
12086  shlibpath_overrides_runpath=yes
12087  if test yes = "$with_gnu_ld"; then
12088    need_lib_prefix=no
12089  fi
12090  need_version=yes
12091  ;;
12092
12093sysv4 | sysv4.3*)
12094  version_type=linux # correct to gnu/linux during the next big refactor
12095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096  soname_spec='$libname$release$shared_ext$major'
12097  shlibpath_var=LD_LIBRARY_PATH
12098  case $host_vendor in
12099    sni)
12100      shlibpath_overrides_runpath=no
12101      need_lib_prefix=no
12102      runpath_var=LD_RUN_PATH
12103      ;;
12104    siemens)
12105      need_lib_prefix=no
12106      ;;
12107    motorola)
12108      need_lib_prefix=no
12109      need_version=no
12110      shlibpath_overrides_runpath=no
12111      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12112      ;;
12113  esac
12114  ;;
12115
12116sysv4*MP*)
12117  if test -d /usr/nec; then
12118    version_type=linux # correct to gnu/linux during the next big refactor
12119    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12120    soname_spec='$libname$shared_ext.$major'
12121    shlibpath_var=LD_LIBRARY_PATH
12122  fi
12123  ;;
12124
12125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12126  version_type=sco
12127  need_lib_prefix=no
12128  need_version=no
12129  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12130  soname_spec='$libname$release$shared_ext$major'
12131  shlibpath_var=LD_LIBRARY_PATH
12132  shlibpath_overrides_runpath=yes
12133  hardcode_into_libs=yes
12134  if test yes = "$with_gnu_ld"; then
12135    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12136  else
12137    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12138    case $host_os in
12139      sco3.2v5*)
12140        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12141	;;
12142    esac
12143  fi
12144  sys_lib_dlsearch_path_spec='/usr/lib'
12145  ;;
12146
12147tpf*)
12148  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12149  version_type=linux # correct to gnu/linux during the next big refactor
12150  need_lib_prefix=no
12151  need_version=no
12152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153  shlibpath_var=LD_LIBRARY_PATH
12154  shlibpath_overrides_runpath=no
12155  hardcode_into_libs=yes
12156  ;;
12157
12158uts4*)
12159  version_type=linux # correct to gnu/linux during the next big refactor
12160  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12161  soname_spec='$libname$release$shared_ext$major'
12162  shlibpath_var=LD_LIBRARY_PATH
12163  ;;
12164
12165*)
12166  dynamic_linker=no
12167  ;;
12168esac
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12170$as_echo "$dynamic_linker" >&6; }
12171test no = "$dynamic_linker" && can_build_shared=no
12172
12173variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12174if test yes = "$GCC"; then
12175  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12176fi
12177
12178if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12179  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12180fi
12181if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12182  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12183fi
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12277$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12278hardcode_action=
12279if test -n "$hardcode_libdir_flag_spec" ||
12280   test -n "$runpath_var" ||
12281   test yes = "$hardcode_automatic"; then
12282
12283  # We can hardcode non-existent directories.
12284  if test no != "$hardcode_direct" &&
12285     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12286     # have to relink, otherwise we might link with an installed library
12287     # when we should be linking with a yet-to-be-installed one
12288     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12289     test no != "$hardcode_minus_L"; then
12290    # Linking always hardcodes the temporary library directory.
12291    hardcode_action=relink
12292  else
12293    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12294    hardcode_action=immediate
12295  fi
12296else
12297  # We cannot hardcode anything, or else we can only hardcode existing
12298  # directories.
12299  hardcode_action=unsupported
12300fi
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12302$as_echo "$hardcode_action" >&6; }
12303
12304if test relink = "$hardcode_action" ||
12305   test yes = "$inherit_rpath"; then
12306  # Fast installation is not supported
12307  enable_fast_install=no
12308elif test yes = "$shlibpath_overrides_runpath" ||
12309     test no = "$enable_shared"; then
12310  # Fast installation is not necessary
12311  enable_fast_install=needless
12312fi
12313
12314
12315
12316
12317
12318
12319  if test yes != "$enable_dlopen"; then
12320  enable_dlopen=unknown
12321  enable_dlopen_self=unknown
12322  enable_dlopen_self_static=unknown
12323else
12324  lt_cv_dlopen=no
12325  lt_cv_dlopen_libs=
12326
12327  case $host_os in
12328  beos*)
12329    lt_cv_dlopen=load_add_on
12330    lt_cv_dlopen_libs=
12331    lt_cv_dlopen_self=yes
12332    ;;
12333
12334  mingw* | pw32* | cegcc*)
12335    lt_cv_dlopen=LoadLibrary
12336    lt_cv_dlopen_libs=
12337    ;;
12338
12339  cygwin*)
12340    lt_cv_dlopen=dlopen
12341    lt_cv_dlopen_libs=
12342    ;;
12343
12344  darwin*)
12345    # if libdl is installed we need to link against it
12346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12347$as_echo_n "checking for dlopen in -ldl... " >&6; }
12348if ${ac_cv_lib_dl_dlopen+:} false; then :
12349  $as_echo_n "(cached) " >&6
12350else
12351  ac_check_lib_save_LIBS=$LIBS
12352LIBS="-ldl  $LIBS"
12353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h.  */
12355
12356/* Override any GCC internal prototype to avoid an error.
12357   Use char because int might match the return type of a GCC
12358   builtin and then its argument prototype would still apply.  */
12359#ifdef __cplusplus
12360extern "C"
12361#endif
12362char dlopen ();
12363int
12364main ()
12365{
12366return dlopen ();
12367  ;
12368  return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_link "$LINENO"; then :
12372  ac_cv_lib_dl_dlopen=yes
12373else
12374  ac_cv_lib_dl_dlopen=no
12375fi
12376rm -f core conftest.err conftest.$ac_objext \
12377    conftest$ac_exeext conftest.$ac_ext
12378LIBS=$ac_check_lib_save_LIBS
12379fi
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12381$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12382if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12383  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12384else
12385
12386    lt_cv_dlopen=dyld
12387    lt_cv_dlopen_libs=
12388    lt_cv_dlopen_self=yes
12389
12390fi
12391
12392    ;;
12393
12394  tpf*)
12395    # Don't try to run any link tests for TPF.  We know it's impossible
12396    # because TPF is a cross-compiler, and we know how we open DSOs.
12397    lt_cv_dlopen=dlopen
12398    lt_cv_dlopen_libs=
12399    lt_cv_dlopen_self=no
12400    ;;
12401
12402  *)
12403    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12404if test "x$ac_cv_func_shl_load" = xyes; then :
12405  lt_cv_dlopen=shl_load
12406else
12407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12408$as_echo_n "checking for shl_load in -ldld... " >&6; }
12409if ${ac_cv_lib_dld_shl_load+:} false; then :
12410  $as_echo_n "(cached) " >&6
12411else
12412  ac_check_lib_save_LIBS=$LIBS
12413LIBS="-ldld  $LIBS"
12414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415/* end confdefs.h.  */
12416
12417/* Override any GCC internal prototype to avoid an error.
12418   Use char because int might match the return type of a GCC
12419   builtin and then its argument prototype would still apply.  */
12420#ifdef __cplusplus
12421extern "C"
12422#endif
12423char shl_load ();
12424int
12425main ()
12426{
12427return shl_load ();
12428  ;
12429  return 0;
12430}
12431_ACEOF
12432if ac_fn_c_try_link "$LINENO"; then :
12433  ac_cv_lib_dld_shl_load=yes
12434else
12435  ac_cv_lib_dld_shl_load=no
12436fi
12437rm -f core conftest.err conftest.$ac_objext \
12438    conftest$ac_exeext conftest.$ac_ext
12439LIBS=$ac_check_lib_save_LIBS
12440fi
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12442$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12443if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12444  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12445else
12446  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12447if test "x$ac_cv_func_dlopen" = xyes; then :
12448  lt_cv_dlopen=dlopen
12449else
12450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12451$as_echo_n "checking for dlopen in -ldl... " >&6; }
12452if ${ac_cv_lib_dl_dlopen+:} false; then :
12453  $as_echo_n "(cached) " >&6
12454else
12455  ac_check_lib_save_LIBS=$LIBS
12456LIBS="-ldl  $LIBS"
12457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h.  */
12459
12460/* Override any GCC internal prototype to avoid an error.
12461   Use char because int might match the return type of a GCC
12462   builtin and then its argument prototype would still apply.  */
12463#ifdef __cplusplus
12464extern "C"
12465#endif
12466char dlopen ();
12467int
12468main ()
12469{
12470return dlopen ();
12471  ;
12472  return 0;
12473}
12474_ACEOF
12475if ac_fn_c_try_link "$LINENO"; then :
12476  ac_cv_lib_dl_dlopen=yes
12477else
12478  ac_cv_lib_dl_dlopen=no
12479fi
12480rm -f core conftest.err conftest.$ac_objext \
12481    conftest$ac_exeext conftest.$ac_ext
12482LIBS=$ac_check_lib_save_LIBS
12483fi
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12485$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12486if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12487  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12488else
12489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12490$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12491if ${ac_cv_lib_svld_dlopen+:} false; then :
12492  $as_echo_n "(cached) " >&6
12493else
12494  ac_check_lib_save_LIBS=$LIBS
12495LIBS="-lsvld  $LIBS"
12496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497/* end confdefs.h.  */
12498
12499/* Override any GCC internal prototype to avoid an error.
12500   Use char because int might match the return type of a GCC
12501   builtin and then its argument prototype would still apply.  */
12502#ifdef __cplusplus
12503extern "C"
12504#endif
12505char dlopen ();
12506int
12507main ()
12508{
12509return dlopen ();
12510  ;
12511  return 0;
12512}
12513_ACEOF
12514if ac_fn_c_try_link "$LINENO"; then :
12515  ac_cv_lib_svld_dlopen=yes
12516else
12517  ac_cv_lib_svld_dlopen=no
12518fi
12519rm -f core conftest.err conftest.$ac_objext \
12520    conftest$ac_exeext conftest.$ac_ext
12521LIBS=$ac_check_lib_save_LIBS
12522fi
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12524$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12525if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12526  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12527else
12528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12529$as_echo_n "checking for dld_link in -ldld... " >&6; }
12530if ${ac_cv_lib_dld_dld_link+:} false; then :
12531  $as_echo_n "(cached) " >&6
12532else
12533  ac_check_lib_save_LIBS=$LIBS
12534LIBS="-ldld  $LIBS"
12535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536/* end confdefs.h.  */
12537
12538/* Override any GCC internal prototype to avoid an error.
12539   Use char because int might match the return type of a GCC
12540   builtin and then its argument prototype would still apply.  */
12541#ifdef __cplusplus
12542extern "C"
12543#endif
12544char dld_link ();
12545int
12546main ()
12547{
12548return dld_link ();
12549  ;
12550  return 0;
12551}
12552_ACEOF
12553if ac_fn_c_try_link "$LINENO"; then :
12554  ac_cv_lib_dld_dld_link=yes
12555else
12556  ac_cv_lib_dld_dld_link=no
12557fi
12558rm -f core conftest.err conftest.$ac_objext \
12559    conftest$ac_exeext conftest.$ac_ext
12560LIBS=$ac_check_lib_save_LIBS
12561fi
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12563$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12564if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12565  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12566fi
12567
12568
12569fi
12570
12571
12572fi
12573
12574
12575fi
12576
12577
12578fi
12579
12580
12581fi
12582
12583    ;;
12584  esac
12585
12586  if test no = "$lt_cv_dlopen"; then
12587    enable_dlopen=no
12588  else
12589    enable_dlopen=yes
12590  fi
12591
12592  case $lt_cv_dlopen in
12593  dlopen)
12594    save_CPPFLAGS=$CPPFLAGS
12595    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12596
12597    save_LDFLAGS=$LDFLAGS
12598    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12599
12600    save_LIBS=$LIBS
12601    LIBS="$lt_cv_dlopen_libs $LIBS"
12602
12603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12604$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12605if ${lt_cv_dlopen_self+:} false; then :
12606  $as_echo_n "(cached) " >&6
12607else
12608  	  if test yes = "$cross_compiling"; then :
12609  lt_cv_dlopen_self=cross
12610else
12611  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12612  lt_status=$lt_dlunknown
12613  cat > conftest.$ac_ext <<_LT_EOF
12614#line $LINENO "configure"
12615#include "confdefs.h"
12616
12617#if HAVE_DLFCN_H
12618#include <dlfcn.h>
12619#endif
12620
12621#include <stdio.h>
12622
12623#ifdef RTLD_GLOBAL
12624#  define LT_DLGLOBAL		RTLD_GLOBAL
12625#else
12626#  ifdef DL_GLOBAL
12627#    define LT_DLGLOBAL		DL_GLOBAL
12628#  else
12629#    define LT_DLGLOBAL		0
12630#  endif
12631#endif
12632
12633/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12634   find out it does not work in some platform. */
12635#ifndef LT_DLLAZY_OR_NOW
12636#  ifdef RTLD_LAZY
12637#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12638#  else
12639#    ifdef DL_LAZY
12640#      define LT_DLLAZY_OR_NOW		DL_LAZY
12641#    else
12642#      ifdef RTLD_NOW
12643#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12644#      else
12645#        ifdef DL_NOW
12646#          define LT_DLLAZY_OR_NOW	DL_NOW
12647#        else
12648#          define LT_DLLAZY_OR_NOW	0
12649#        endif
12650#      endif
12651#    endif
12652#  endif
12653#endif
12654
12655/* When -fvisibility=hidden is used, assume the code has been annotated
12656   correspondingly for the symbols needed.  */
12657#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12658int fnord () __attribute__((visibility("default")));
12659#endif
12660
12661int fnord () { return 42; }
12662int main ()
12663{
12664  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665  int status = $lt_dlunknown;
12666
12667  if (self)
12668    {
12669      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12670      else
12671        {
12672	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12673          else puts (dlerror ());
12674	}
12675      /* dlclose (self); */
12676    }
12677  else
12678    puts (dlerror ());
12679
12680  return status;
12681}
12682_LT_EOF
12683  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12684  (eval $ac_link) 2>&5
12685  ac_status=$?
12686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12687  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12688    (./conftest; exit; ) >&5 2>/dev/null
12689    lt_status=$?
12690    case x$lt_status in
12691      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12692      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12693      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12694    esac
12695  else :
12696    # compilation failed
12697    lt_cv_dlopen_self=no
12698  fi
12699fi
12700rm -fr conftest*
12701
12702
12703fi
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12705$as_echo "$lt_cv_dlopen_self" >&6; }
12706
12707    if test yes = "$lt_cv_dlopen_self"; then
12708      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12709      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12710$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12711if ${lt_cv_dlopen_self_static+:} false; then :
12712  $as_echo_n "(cached) " >&6
12713else
12714  	  if test yes = "$cross_compiling"; then :
12715  lt_cv_dlopen_self_static=cross
12716else
12717  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12718  lt_status=$lt_dlunknown
12719  cat > conftest.$ac_ext <<_LT_EOF
12720#line $LINENO "configure"
12721#include "confdefs.h"
12722
12723#if HAVE_DLFCN_H
12724#include <dlfcn.h>
12725#endif
12726
12727#include <stdio.h>
12728
12729#ifdef RTLD_GLOBAL
12730#  define LT_DLGLOBAL		RTLD_GLOBAL
12731#else
12732#  ifdef DL_GLOBAL
12733#    define LT_DLGLOBAL		DL_GLOBAL
12734#  else
12735#    define LT_DLGLOBAL		0
12736#  endif
12737#endif
12738
12739/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12740   find out it does not work in some platform. */
12741#ifndef LT_DLLAZY_OR_NOW
12742#  ifdef RTLD_LAZY
12743#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12744#  else
12745#    ifdef DL_LAZY
12746#      define LT_DLLAZY_OR_NOW		DL_LAZY
12747#    else
12748#      ifdef RTLD_NOW
12749#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12750#      else
12751#        ifdef DL_NOW
12752#          define LT_DLLAZY_OR_NOW	DL_NOW
12753#        else
12754#          define LT_DLLAZY_OR_NOW	0
12755#        endif
12756#      endif
12757#    endif
12758#  endif
12759#endif
12760
12761/* When -fvisibility=hidden is used, assume the code has been annotated
12762   correspondingly for the symbols needed.  */
12763#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12764int fnord () __attribute__((visibility("default")));
12765#endif
12766
12767int fnord () { return 42; }
12768int main ()
12769{
12770  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12771  int status = $lt_dlunknown;
12772
12773  if (self)
12774    {
12775      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12776      else
12777        {
12778	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12779          else puts (dlerror ());
12780	}
12781      /* dlclose (self); */
12782    }
12783  else
12784    puts (dlerror ());
12785
12786  return status;
12787}
12788_LT_EOF
12789  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12790  (eval $ac_link) 2>&5
12791  ac_status=$?
12792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12793  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12794    (./conftest; exit; ) >&5 2>/dev/null
12795    lt_status=$?
12796    case x$lt_status in
12797      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12798      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12799      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12800    esac
12801  else :
12802    # compilation failed
12803    lt_cv_dlopen_self_static=no
12804  fi
12805fi
12806rm -fr conftest*
12807
12808
12809fi
12810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12811$as_echo "$lt_cv_dlopen_self_static" >&6; }
12812    fi
12813
12814    CPPFLAGS=$save_CPPFLAGS
12815    LDFLAGS=$save_LDFLAGS
12816    LIBS=$save_LIBS
12817    ;;
12818  esac
12819
12820  case $lt_cv_dlopen_self in
12821  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12822  *) enable_dlopen_self=unknown ;;
12823  esac
12824
12825  case $lt_cv_dlopen_self_static in
12826  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12827  *) enable_dlopen_self_static=unknown ;;
12828  esac
12829fi
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847striplib=
12848old_striplib=
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12850$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12851if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12852  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12853  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855$as_echo "yes" >&6; }
12856else
12857# FIXME - insert some real tests, host_os isn't really good enough
12858  case $host_os in
12859  darwin*)
12860    if test -n "$STRIP"; then
12861      striplib="$STRIP -x"
12862      old_striplib="$STRIP -S"
12863      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864$as_echo "yes" >&6; }
12865    else
12866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
12868    fi
12869    ;;
12870  *)
12871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872$as_echo "no" >&6; }
12873    ;;
12874  esac
12875fi
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888  # Report what library types will actually be built
12889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12890$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12892$as_echo "$can_build_shared" >&6; }
12893
12894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12895$as_echo_n "checking whether to build shared libraries... " >&6; }
12896  test no = "$can_build_shared" && enable_shared=no
12897
12898  # On AIX, shared libraries and static libraries use the same namespace, and
12899  # are all built from PIC.
12900  case $host_os in
12901  aix3*)
12902    test yes = "$enable_shared" && enable_static=no
12903    if test -n "$RANLIB"; then
12904      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12905      postinstall_cmds='$RANLIB $lib'
12906    fi
12907    ;;
12908
12909  aix[4-9]*)
12910    if test ia64 != "$host_cpu"; then
12911      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12912      yes,aix,yes) ;;			# shared object as lib.so file only
12913      yes,svr4,*) ;;			# shared object as lib.so archive member only
12914      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12915      esac
12916    fi
12917    ;;
12918  esac
12919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12920$as_echo "$enable_shared" >&6; }
12921
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12923$as_echo_n "checking whether to build static libraries... " >&6; }
12924  # Make sure either enable_shared or enable_static is yes.
12925  test yes = "$enable_shared" || enable_static=yes
12926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12927$as_echo "$enable_static" >&6; }
12928
12929
12930
12931
12932fi
12933ac_ext=c
12934ac_cpp='$CPP $CPPFLAGS'
12935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939CC=$lt_save_CC
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955        ac_config_commands="$ac_config_commands libtool"
12956
12957
12958
12959
12960# Only expand once:
12961
12962
12963ac_ext=cpp
12964ac_cpp='$CXXCPP $CPPFLAGS'
12965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12968if test -z "$CXX"; then
12969  if test -n "$CCC"; then
12970    CXX=$CCC
12971  else
12972    if test -n "$ac_tool_prefix"; then
12973  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12974  do
12975    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978$as_echo_n "checking for $ac_word... " >&6; }
12979if ${ac_cv_prog_CXX+:} false; then :
12980  $as_echo_n "(cached) " >&6
12981else
12982  if test -n "$CXX"; then
12983  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12984else
12985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986for as_dir in $PATH
12987do
12988  IFS=$as_save_IFS
12989  test -z "$as_dir" && as_dir=.
12990    for ac_exec_ext in '' $ac_executable_extensions; do
12991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12992    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994    break 2
12995  fi
12996done
12997  done
12998IFS=$as_save_IFS
12999
13000fi
13001fi
13002CXX=$ac_cv_prog_CXX
13003if test -n "$CXX"; then
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13005$as_echo "$CXX" >&6; }
13006else
13007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008$as_echo "no" >&6; }
13009fi
13010
13011
13012    test -n "$CXX" && break
13013  done
13014fi
13015if test -z "$CXX"; then
13016  ac_ct_CXX=$CXX
13017  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13018do
13019  # Extract the first word of "$ac_prog", so it can be a program name with args.
13020set dummy $ac_prog; ac_word=$2
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022$as_echo_n "checking for $ac_word... " >&6; }
13023if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  if test -n "$ac_ct_CXX"; then
13027  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13028else
13029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030for as_dir in $PATH
13031do
13032  IFS=$as_save_IFS
13033  test -z "$as_dir" && as_dir=.
13034    for ac_exec_ext in '' $ac_executable_extensions; do
13035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13036    ac_cv_prog_ac_ct_CXX="$ac_prog"
13037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038    break 2
13039  fi
13040done
13041  done
13042IFS=$as_save_IFS
13043
13044fi
13045fi
13046ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13047if test -n "$ac_ct_CXX"; then
13048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13049$as_echo "$ac_ct_CXX" >&6; }
13050else
13051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053fi
13054
13055
13056  test -n "$ac_ct_CXX" && break
13057done
13058
13059  if test "x$ac_ct_CXX" = x; then
13060    CXX="g++"
13061  else
13062    case $cross_compiling:$ac_tool_warned in
13063yes:)
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13066ac_tool_warned=yes ;;
13067esac
13068    CXX=$ac_ct_CXX
13069  fi
13070fi
13071
13072  fi
13073fi
13074# Provide some information about the compiler.
13075$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13076set X $ac_compile
13077ac_compiler=$2
13078for ac_option in --version -v -V -qversion; do
13079  { { ac_try="$ac_compiler $ac_option >&5"
13080case "(($ac_try" in
13081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082  *) ac_try_echo=$ac_try;;
13083esac
13084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13085$as_echo "$ac_try_echo"; } >&5
13086  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13087  ac_status=$?
13088  if test -s conftest.err; then
13089    sed '10a\
13090... rest of stderr output deleted ...
13091         10q' conftest.err >conftest.er1
13092    cat conftest.er1 >&5
13093  fi
13094  rm -f conftest.er1 conftest.err
13095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13096  test $ac_status = 0; }
13097done
13098
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13100$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13101if ${ac_cv_cxx_compiler_gnu+:} false; then :
13102  $as_echo_n "(cached) " >&6
13103else
13104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h.  */
13106
13107int
13108main ()
13109{
13110#ifndef __GNUC__
13111       choke me
13112#endif
13113
13114  ;
13115  return 0;
13116}
13117_ACEOF
13118if ac_fn_cxx_try_compile "$LINENO"; then :
13119  ac_compiler_gnu=yes
13120else
13121  ac_compiler_gnu=no
13122fi
13123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13125
13126fi
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13128$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13129if test $ac_compiler_gnu = yes; then
13130  GXX=yes
13131else
13132  GXX=
13133fi
13134ac_test_CXXFLAGS=${CXXFLAGS+set}
13135ac_save_CXXFLAGS=$CXXFLAGS
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13137$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13138if ${ac_cv_prog_cxx_g+:} false; then :
13139  $as_echo_n "(cached) " >&6
13140else
13141  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13142   ac_cxx_werror_flag=yes
13143   ac_cv_prog_cxx_g=no
13144   CXXFLAGS="-g"
13145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146/* end confdefs.h.  */
13147
13148int
13149main ()
13150{
13151
13152  ;
13153  return 0;
13154}
13155_ACEOF
13156if ac_fn_cxx_try_compile "$LINENO"; then :
13157  ac_cv_prog_cxx_g=yes
13158else
13159  CXXFLAGS=""
13160      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161/* end confdefs.h.  */
13162
13163int
13164main ()
13165{
13166
13167  ;
13168  return 0;
13169}
13170_ACEOF
13171if ac_fn_cxx_try_compile "$LINENO"; then :
13172
13173else
13174  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13175	 CXXFLAGS="-g"
13176	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177/* end confdefs.h.  */
13178
13179int
13180main ()
13181{
13182
13183  ;
13184  return 0;
13185}
13186_ACEOF
13187if ac_fn_cxx_try_compile "$LINENO"; then :
13188  ac_cv_prog_cxx_g=yes
13189fi
13190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191fi
13192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193fi
13194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13195   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13196fi
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13198$as_echo "$ac_cv_prog_cxx_g" >&6; }
13199if test "$ac_test_CXXFLAGS" = set; then
13200  CXXFLAGS=$ac_save_CXXFLAGS
13201elif test $ac_cv_prog_cxx_g = yes; then
13202  if test "$GXX" = yes; then
13203    CXXFLAGS="-g -O2"
13204  else
13205    CXXFLAGS="-g"
13206  fi
13207else
13208  if test "$GXX" = yes; then
13209    CXXFLAGS="-O2"
13210  else
13211    CXXFLAGS=
13212  fi
13213fi
13214ac_ext=c
13215ac_cpp='$CPP $CPPFLAGS'
13216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13218ac_compiler_gnu=$ac_cv_c_compiler_gnu
13219
13220depcc="$CXX"  am_compiler_list=
13221
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13223$as_echo_n "checking dependency style of $depcc... " >&6; }
13224if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13225  $as_echo_n "(cached) " >&6
13226else
13227  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13228  # We make a subdir and do the tests there.  Otherwise we can end up
13229  # making bogus files that we don't know about and never remove.  For
13230  # instance it was reported that on HP-UX the gcc test will end up
13231  # making a dummy file named 'D' -- because '-MD' means "put the output
13232  # in D".
13233  rm -rf conftest.dir
13234  mkdir conftest.dir
13235  # Copy depcomp to subdir because otherwise we won't find it if we're
13236  # using a relative directory.
13237  cp "$am_depcomp" conftest.dir
13238  cd conftest.dir
13239  # We will build objects and dependencies in a subdirectory because
13240  # it helps to detect inapplicable dependency modes.  For instance
13241  # both Tru64's cc and ICC support -MD to output dependencies as a
13242  # side effect of compilation, but ICC will put the dependencies in
13243  # the current directory while Tru64 will put them in the object
13244  # directory.
13245  mkdir sub
13246
13247  am_cv_CXX_dependencies_compiler_type=none
13248  if test "$am_compiler_list" = ""; then
13249     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13250  fi
13251  am__universal=false
13252  case " $depcc " in #(
13253     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13254     esac
13255
13256  for depmode in $am_compiler_list; do
13257    # Setup a source with many dependencies, because some compilers
13258    # like to wrap large dependency lists on column 80 (with \), and
13259    # we should not choose a depcomp mode which is confused by this.
13260    #
13261    # We need to recreate these files for each test, as the compiler may
13262    # overwrite some of them when testing with obscure command lines.
13263    # This happens at least with the AIX C compiler.
13264    : > sub/conftest.c
13265    for i in 1 2 3 4 5 6; do
13266      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13267      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13268      # Solaris 10 /bin/sh.
13269      echo '/* dummy */' > sub/conftst$i.h
13270    done
13271    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13272
13273    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13274    # mode.  It turns out that the SunPro C++ compiler does not properly
13275    # handle '-M -o', and we need to detect this.  Also, some Intel
13276    # versions had trouble with output in subdirs.
13277    am__obj=sub/conftest.${OBJEXT-o}
13278    am__minus_obj="-o $am__obj"
13279    case $depmode in
13280    gcc)
13281      # This depmode causes a compiler race in universal mode.
13282      test "$am__universal" = false || continue
13283      ;;
13284    nosideeffect)
13285      # After this tag, mechanisms are not by side-effect, so they'll
13286      # only be used when explicitly requested.
13287      if test "x$enable_dependency_tracking" = xyes; then
13288	continue
13289      else
13290	break
13291      fi
13292      ;;
13293    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13294      # This compiler won't grok '-c -o', but also, the minuso test has
13295      # not run yet.  These depmodes are late enough in the game, and
13296      # so weak that their functioning should not be impacted.
13297      am__obj=conftest.${OBJEXT-o}
13298      am__minus_obj=
13299      ;;
13300    none) break ;;
13301    esac
13302    if depmode=$depmode \
13303       source=sub/conftest.c object=$am__obj \
13304       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13305       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13306         >/dev/null 2>conftest.err &&
13307       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13308       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13309       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13310       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13311      # icc doesn't choke on unknown options, it will just issue warnings
13312      # or remarks (even with -Werror).  So we grep stderr for any message
13313      # that says an option was ignored or not supported.
13314      # When given -MP, icc 7.0 and 7.1 complain thusly:
13315      #   icc: Command line warning: ignoring option '-M'; no argument required
13316      # The diagnosis changed in icc 8.0:
13317      #   icc: Command line remark: option '-MP' not supported
13318      if (grep 'ignoring option' conftest.err ||
13319          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13320        am_cv_CXX_dependencies_compiler_type=$depmode
13321        break
13322      fi
13323    fi
13324  done
13325
13326  cd ..
13327  rm -rf conftest.dir
13328else
13329  am_cv_CXX_dependencies_compiler_type=none
13330fi
13331
13332fi
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13334$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13335CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13336
13337 if
13338  test "x$enable_dependency_tracking" != xno \
13339  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13340  am__fastdepCXX_TRUE=
13341  am__fastdepCXX_FALSE='#'
13342else
13343  am__fastdepCXX_TRUE='#'
13344  am__fastdepCXX_FALSE=
13345fi
13346
13347
13348
13349
13350
13351func_stripname_cnf ()
13352{
13353  case $2 in
13354  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13355  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13356  esac
13357} # func_stripname_cnf
13358
13359      if test -n "$CXX" && ( test no != "$CXX" &&
13360    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13361    (test g++ != "$CXX"))); then
13362  ac_ext=cpp
13363ac_cpp='$CXXCPP $CPPFLAGS'
13364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13368$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13369if test -z "$CXXCPP"; then
13370  if ${ac_cv_prog_CXXCPP+:} false; then :
13371  $as_echo_n "(cached) " >&6
13372else
13373      # Double quotes because CXXCPP needs to be expanded
13374    for CXXCPP in "$CXX -E" "/lib/cpp"
13375    do
13376      ac_preproc_ok=false
13377for ac_cxx_preproc_warn_flag in '' yes
13378do
13379  # Use a header file that comes with gcc, so configuring glibc
13380  # with a fresh cross-compiler works.
13381  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13382  # <limits.h> exists even on freestanding compilers.
13383  # On the NeXT, cc -E runs the code through the compiler's parser,
13384  # not just through cpp. "Syntax error" is here to catch this case.
13385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h.  */
13387#ifdef __STDC__
13388# include <limits.h>
13389#else
13390# include <assert.h>
13391#endif
13392		     Syntax error
13393_ACEOF
13394if ac_fn_cxx_try_cpp "$LINENO"; then :
13395
13396else
13397  # Broken: fails on valid input.
13398continue
13399fi
13400rm -f conftest.err conftest.i conftest.$ac_ext
13401
13402  # OK, works on sane cases.  Now check whether nonexistent headers
13403  # can be detected and how.
13404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405/* end confdefs.h.  */
13406#include <ac_nonexistent.h>
13407_ACEOF
13408if ac_fn_cxx_try_cpp "$LINENO"; then :
13409  # Broken: success on invalid input.
13410continue
13411else
13412  # Passes both tests.
13413ac_preproc_ok=:
13414break
13415fi
13416rm -f conftest.err conftest.i conftest.$ac_ext
13417
13418done
13419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13420rm -f conftest.i conftest.err conftest.$ac_ext
13421if $ac_preproc_ok; then :
13422  break
13423fi
13424
13425    done
13426    ac_cv_prog_CXXCPP=$CXXCPP
13427
13428fi
13429  CXXCPP=$ac_cv_prog_CXXCPP
13430else
13431  ac_cv_prog_CXXCPP=$CXXCPP
13432fi
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13434$as_echo "$CXXCPP" >&6; }
13435ac_preproc_ok=false
13436for ac_cxx_preproc_warn_flag in '' yes
13437do
13438  # Use a header file that comes with gcc, so configuring glibc
13439  # with a fresh cross-compiler works.
13440  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13441  # <limits.h> exists even on freestanding compilers.
13442  # On the NeXT, cc -E runs the code through the compiler's parser,
13443  # not just through cpp. "Syntax error" is here to catch this case.
13444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445/* end confdefs.h.  */
13446#ifdef __STDC__
13447# include <limits.h>
13448#else
13449# include <assert.h>
13450#endif
13451		     Syntax error
13452_ACEOF
13453if ac_fn_cxx_try_cpp "$LINENO"; then :
13454
13455else
13456  # Broken: fails on valid input.
13457continue
13458fi
13459rm -f conftest.err conftest.i conftest.$ac_ext
13460
13461  # OK, works on sane cases.  Now check whether nonexistent headers
13462  # can be detected and how.
13463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h.  */
13465#include <ac_nonexistent.h>
13466_ACEOF
13467if ac_fn_cxx_try_cpp "$LINENO"; then :
13468  # Broken: success on invalid input.
13469continue
13470else
13471  # Passes both tests.
13472ac_preproc_ok=:
13473break
13474fi
13475rm -f conftest.err conftest.i conftest.$ac_ext
13476
13477done
13478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13479rm -f conftest.i conftest.err conftest.$ac_ext
13480if $ac_preproc_ok; then :
13481
13482else
13483  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13485as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13486See \`config.log' for more details" "$LINENO" 5; }
13487fi
13488
13489ac_ext=c
13490ac_cpp='$CPP $CPPFLAGS'
13491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13493ac_compiler_gnu=$ac_cv_c_compiler_gnu
13494
13495else
13496  _lt_caught_CXX_error=yes
13497fi
13498
13499ac_ext=cpp
13500ac_cpp='$CXXCPP $CPPFLAGS'
13501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13504
13505archive_cmds_need_lc_CXX=no
13506allow_undefined_flag_CXX=
13507always_export_symbols_CXX=no
13508archive_expsym_cmds_CXX=
13509compiler_needs_object_CXX=no
13510export_dynamic_flag_spec_CXX=
13511hardcode_direct_CXX=no
13512hardcode_direct_absolute_CXX=no
13513hardcode_libdir_flag_spec_CXX=
13514hardcode_libdir_separator_CXX=
13515hardcode_minus_L_CXX=no
13516hardcode_shlibpath_var_CXX=unsupported
13517hardcode_automatic_CXX=no
13518inherit_rpath_CXX=no
13519module_cmds_CXX=
13520module_expsym_cmds_CXX=
13521link_all_deplibs_CXX=unknown
13522old_archive_cmds_CXX=$old_archive_cmds
13523reload_flag_CXX=$reload_flag
13524reload_cmds_CXX=$reload_cmds
13525no_undefined_flag_CXX=
13526whole_archive_flag_spec_CXX=
13527enable_shared_with_static_runtimes_CXX=no
13528
13529# Source file extension for C++ test sources.
13530ac_ext=cpp
13531
13532# Object file extension for compiled C++ test sources.
13533objext=o
13534objext_CXX=$objext
13535
13536# No sense in running all these tests if we already determined that
13537# the CXX compiler isn't working.  Some variables (like enable_shared)
13538# are currently assumed to apply to all compilers on this platform,
13539# and will be corrupted by setting them based on a non-working compiler.
13540if test yes != "$_lt_caught_CXX_error"; then
13541  # Code to be used in simple compile tests
13542  lt_simple_compile_test_code="int some_variable = 0;"
13543
13544  # Code to be used in simple link tests
13545  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13546
13547  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13548
13549
13550
13551
13552
13553
13554# If no C compiler was specified, use CC.
13555LTCC=${LTCC-"$CC"}
13556
13557# If no C compiler flags were specified, use CFLAGS.
13558LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13559
13560# Allow CC to be a program name with arguments.
13561compiler=$CC
13562
13563
13564  # save warnings/boilerplate of simple test code
13565  ac_outfile=conftest.$ac_objext
13566echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13567eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13568_lt_compiler_boilerplate=`cat conftest.err`
13569$RM conftest*
13570
13571  ac_outfile=conftest.$ac_objext
13572echo "$lt_simple_link_test_code" >conftest.$ac_ext
13573eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13574_lt_linker_boilerplate=`cat conftest.err`
13575$RM -r conftest*
13576
13577
13578  # Allow CC to be a program name with arguments.
13579  lt_save_CC=$CC
13580  lt_save_CFLAGS=$CFLAGS
13581  lt_save_LD=$LD
13582  lt_save_GCC=$GCC
13583  GCC=$GXX
13584  lt_save_with_gnu_ld=$with_gnu_ld
13585  lt_save_path_LD=$lt_cv_path_LD
13586  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13587    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13588  else
13589    $as_unset lt_cv_prog_gnu_ld
13590  fi
13591  if test -n "${lt_cv_path_LDCXX+set}"; then
13592    lt_cv_path_LD=$lt_cv_path_LDCXX
13593  else
13594    $as_unset lt_cv_path_LD
13595  fi
13596  test -z "${LDCXX+set}" || LD=$LDCXX
13597  CC=${CXX-"c++"}
13598  CFLAGS=$CXXFLAGS
13599  compiler=$CC
13600  compiler_CXX=$CC
13601  for cc_temp in $compiler""; do
13602  case $cc_temp in
13603    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13604    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13605    \-*) ;;
13606    *) break;;
13607  esac
13608done
13609cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13610
13611
13612  if test -n "$compiler"; then
13613    # We don't want -fno-exception when compiling C++ code, so set the
13614    # no_builtin_flag separately
13615    if test yes = "$GXX"; then
13616      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13617    else
13618      lt_prog_compiler_no_builtin_flag_CXX=
13619    fi
13620
13621    if test yes = "$GXX"; then
13622      # Set up default GNU C++ configuration
13623
13624
13625
13626# Check whether --with-gnu-ld was given.
13627if test "${with_gnu_ld+set}" = set; then :
13628  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13629else
13630  with_gnu_ld=no
13631fi
13632
13633ac_prog=ld
13634if test yes = "$GCC"; then
13635  # Check if gcc -print-prog-name=ld gives a path.
13636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13637$as_echo_n "checking for ld used by $CC... " >&6; }
13638  case $host in
13639  *-*-mingw*)
13640    # gcc leaves a trailing carriage return, which upsets mingw
13641    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13642  *)
13643    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13644  esac
13645  case $ac_prog in
13646    # Accept absolute paths.
13647    [\\/]* | ?:[\\/]*)
13648      re_direlt='/[^/][^/]*/\.\./'
13649      # Canonicalize the pathname of ld
13650      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13651      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13652	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13653      done
13654      test -z "$LD" && LD=$ac_prog
13655      ;;
13656  "")
13657    # If it fails, then pretend we aren't using GCC.
13658    ac_prog=ld
13659    ;;
13660  *)
13661    # If it is relative, then search for the first ld in PATH.
13662    with_gnu_ld=unknown
13663    ;;
13664  esac
13665elif test yes = "$with_gnu_ld"; then
13666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13667$as_echo_n "checking for GNU ld... " >&6; }
13668else
13669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13670$as_echo_n "checking for non-GNU ld... " >&6; }
13671fi
13672if ${lt_cv_path_LD+:} false; then :
13673  $as_echo_n "(cached) " >&6
13674else
13675  if test -z "$LD"; then
13676  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13677  for ac_dir in $PATH; do
13678    IFS=$lt_save_ifs
13679    test -z "$ac_dir" && ac_dir=.
13680    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13681      lt_cv_path_LD=$ac_dir/$ac_prog
13682      # Check to see if the program is GNU ld.  I'd rather use --version,
13683      # but apparently some variants of GNU ld only accept -v.
13684      # Break only if it was the GNU/non-GNU ld that we prefer.
13685      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13686      *GNU* | *'with BFD'*)
13687	test no != "$with_gnu_ld" && break
13688	;;
13689      *)
13690	test yes != "$with_gnu_ld" && break
13691	;;
13692      esac
13693    fi
13694  done
13695  IFS=$lt_save_ifs
13696else
13697  lt_cv_path_LD=$LD # Let the user override the test with a path.
13698fi
13699fi
13700
13701LD=$lt_cv_path_LD
13702if test -n "$LD"; then
13703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13704$as_echo "$LD" >&6; }
13705else
13706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707$as_echo "no" >&6; }
13708fi
13709test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13711$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13712if ${lt_cv_prog_gnu_ld+:} false; then :
13713  $as_echo_n "(cached) " >&6
13714else
13715  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13716case `$LD -v 2>&1 </dev/null` in
13717*GNU* | *'with BFD'*)
13718  lt_cv_prog_gnu_ld=yes
13719  ;;
13720*)
13721  lt_cv_prog_gnu_ld=no
13722  ;;
13723esac
13724fi
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13726$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13727with_gnu_ld=$lt_cv_prog_gnu_ld
13728
13729
13730
13731
13732
13733
13734
13735      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13736      # archiving commands below assume that GNU ld is being used.
13737      if test yes = "$with_gnu_ld"; then
13738        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13739        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'
13740
13741        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13742        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13743
13744        # If archive_cmds runs LD, not CC, wlarc should be empty
13745        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13746        #     investigate it a little bit more. (MM)
13747        wlarc='$wl'
13748
13749        # ancient GNU ld didn't support --whole-archive et. al.
13750        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13751	  $GREP 'no-whole-archive' > /dev/null; then
13752          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13753        else
13754          whole_archive_flag_spec_CXX=
13755        fi
13756      else
13757        with_gnu_ld=no
13758        wlarc=
13759
13760        # A generic and very simple default shared library creation
13761        # command for GNU C++ for the case where it uses the native
13762        # linker, instead of GNU ld.  If possible, this setting should
13763        # overridden to take advantage of the native linker features on
13764        # the platform it is being used on.
13765        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13766      fi
13767
13768      # Commands to make compiler produce verbose output that lists
13769      # what "hidden" libraries, object files and flags are used when
13770      # linking a shared library.
13771      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13772
13773    else
13774      GXX=no
13775      with_gnu_ld=no
13776      wlarc=
13777    fi
13778
13779    # PORTME: fill in a description of your system's C++ link characteristics
13780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13781$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13782    ld_shlibs_CXX=yes
13783    case $host_os in
13784      aix3*)
13785        # FIXME: insert proper C++ library support
13786        ld_shlibs_CXX=no
13787        ;;
13788      aix[4-9]*)
13789        if test ia64 = "$host_cpu"; then
13790          # On IA64, the linker does run time linking by default, so we don't
13791          # have to do anything special.
13792          aix_use_runtimelinking=no
13793          exp_sym_flag='-Bexport'
13794          no_entry_flag=
13795        else
13796          aix_use_runtimelinking=no
13797
13798          # Test if we are trying to use run time linking or normal
13799          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13800          # have runtime linking enabled, and use it for executables.
13801          # For shared libraries, we enable/disable runtime linking
13802          # depending on the kind of the shared library created -
13803          # when "with_aix_soname,aix_use_runtimelinking" is:
13804          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13805          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13806          #            lib.a           static archive
13807          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13808          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13809          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13810          #            lib.a(lib.so.V) shared, rtl:no
13811          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13812          #            lib.a           static archive
13813          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13814	    for ld_flag in $LDFLAGS; do
13815	      case $ld_flag in
13816	      *-brtl*)
13817	        aix_use_runtimelinking=yes
13818	        break
13819	        ;;
13820	      esac
13821	    done
13822	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13823	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13824	      # so we don't have lib.a shared libs to link our executables.
13825	      # We have to force runtime linking in this case.
13826	      aix_use_runtimelinking=yes
13827	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13828	    fi
13829	    ;;
13830          esac
13831
13832          exp_sym_flag='-bexport'
13833          no_entry_flag='-bnoentry'
13834        fi
13835
13836        # When large executables or shared objects are built, AIX ld can
13837        # have problems creating the table of contents.  If linking a library
13838        # or program results in "error TOC overflow" add -mminimal-toc to
13839        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13840        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13841
13842        archive_cmds_CXX=''
13843        hardcode_direct_CXX=yes
13844        hardcode_direct_absolute_CXX=yes
13845        hardcode_libdir_separator_CXX=':'
13846        link_all_deplibs_CXX=yes
13847        file_list_spec_CXX='$wl-f,'
13848        case $with_aix_soname,$aix_use_runtimelinking in
13849        aix,*) ;;	# no import file
13850        svr4,* | *,yes) # use import file
13851          # The Import File defines what to hardcode.
13852          hardcode_direct_CXX=no
13853          hardcode_direct_absolute_CXX=no
13854          ;;
13855        esac
13856
13857        if test yes = "$GXX"; then
13858          case $host_os in aix4.[012]|aix4.[012].*)
13859          # We only want to do this on AIX 4.2 and lower, the check
13860          # below for broken collect2 doesn't work under 4.3+
13861	  collect2name=`$CC -print-prog-name=collect2`
13862	  if test -f "$collect2name" &&
13863	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13864	  then
13865	    # We have reworked collect2
13866	    :
13867	  else
13868	    # We have old collect2
13869	    hardcode_direct_CXX=unsupported
13870	    # It fails to find uninstalled libraries when the uninstalled
13871	    # path is not listed in the libpath.  Setting hardcode_minus_L
13872	    # to unsupported forces relinking
13873	    hardcode_minus_L_CXX=yes
13874	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13875	    hardcode_libdir_separator_CXX=
13876	  fi
13877          esac
13878          shared_flag='-shared'
13879	  if test yes = "$aix_use_runtimelinking"; then
13880	    shared_flag=$shared_flag' $wl-G'
13881	  fi
13882	  # Need to ensure runtime linking is disabled for the traditional
13883	  # shared library, or the linker may eventually find shared libraries
13884	  # /with/ Import File - we do not want to mix them.
13885	  shared_flag_aix='-shared'
13886	  shared_flag_svr4='-shared $wl-G'
13887        else
13888          # not using gcc
13889          if test ia64 = "$host_cpu"; then
13890	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13891	  # chokes on -Wl,-G. The following line is correct:
13892	  shared_flag='-G'
13893          else
13894	    if test yes = "$aix_use_runtimelinking"; then
13895	      shared_flag='$wl-G'
13896	    else
13897	      shared_flag='$wl-bM:SRE'
13898	    fi
13899	    shared_flag_aix='$wl-bM:SRE'
13900	    shared_flag_svr4='$wl-G'
13901          fi
13902        fi
13903
13904        export_dynamic_flag_spec_CXX='$wl-bexpall'
13905        # It seems that -bexpall does not export symbols beginning with
13906        # underscore (_), so it is better to generate a list of symbols to
13907	# export.
13908        always_export_symbols_CXX=yes
13909	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13910          # Warning - without using the other runtime loading flags (-brtl),
13911          # -berok will link without error, but may produce a broken library.
13912          # The "-G" linker flag allows undefined symbols.
13913          no_undefined_flag_CXX='-bernotok'
13914          # Determine the default libpath from the value encoded in an empty
13915          # executable.
13916          if test set = "${lt_cv_aix_libpath+set}"; then
13917  aix_libpath=$lt_cv_aix_libpath
13918else
13919  if ${lt_cv_aix_libpath__CXX+:} false; then :
13920  $as_echo_n "(cached) " >&6
13921else
13922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923/* end confdefs.h.  */
13924
13925int
13926main ()
13927{
13928
13929  ;
13930  return 0;
13931}
13932_ACEOF
13933if ac_fn_cxx_try_link "$LINENO"; then :
13934
13935  lt_aix_libpath_sed='
13936      /Import File Strings/,/^$/ {
13937	  /^0/ {
13938	      s/^0  *\([^ ]*\) *$/\1/
13939	      p
13940	  }
13941      }'
13942  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13943  # Check for a 64-bit object if we didn't find anything.
13944  if test -z "$lt_cv_aix_libpath__CXX"; then
13945    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13946  fi
13947fi
13948rm -f core conftest.err conftest.$ac_objext \
13949    conftest$ac_exeext conftest.$ac_ext
13950  if test -z "$lt_cv_aix_libpath__CXX"; then
13951    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13952  fi
13953
13954fi
13955
13956  aix_libpath=$lt_cv_aix_libpath__CXX
13957fi
13958
13959          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13960
13961          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13962        else
13963          if test ia64 = "$host_cpu"; then
13964	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13965	    allow_undefined_flag_CXX="-z nodefs"
13966	    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"
13967          else
13968	    # Determine the default libpath from the value encoded in an
13969	    # empty executable.
13970	    if test set = "${lt_cv_aix_libpath+set}"; then
13971  aix_libpath=$lt_cv_aix_libpath
13972else
13973  if ${lt_cv_aix_libpath__CXX+:} false; then :
13974  $as_echo_n "(cached) " >&6
13975else
13976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977/* end confdefs.h.  */
13978
13979int
13980main ()
13981{
13982
13983  ;
13984  return 0;
13985}
13986_ACEOF
13987if ac_fn_cxx_try_link "$LINENO"; then :
13988
13989  lt_aix_libpath_sed='
13990      /Import File Strings/,/^$/ {
13991	  /^0/ {
13992	      s/^0  *\([^ ]*\) *$/\1/
13993	      p
13994	  }
13995      }'
13996  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13997  # Check for a 64-bit object if we didn't find anything.
13998  if test -z "$lt_cv_aix_libpath__CXX"; then
13999    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14000  fi
14001fi
14002rm -f core conftest.err conftest.$ac_objext \
14003    conftest$ac_exeext conftest.$ac_ext
14004  if test -z "$lt_cv_aix_libpath__CXX"; then
14005    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14006  fi
14007
14008fi
14009
14010  aix_libpath=$lt_cv_aix_libpath__CXX
14011fi
14012
14013	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14014	    # Warning - without using the other run time loading flags,
14015	    # -berok will link without error, but may produce a broken library.
14016	    no_undefined_flag_CXX=' $wl-bernotok'
14017	    allow_undefined_flag_CXX=' $wl-berok'
14018	    if test yes = "$with_gnu_ld"; then
14019	      # We only use this code for GNU lds that support --whole-archive.
14020	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14021	    else
14022	      # Exported symbols can be pulled into shared objects from archives
14023	      whole_archive_flag_spec_CXX='$convenience'
14024	    fi
14025	    archive_cmds_need_lc_CXX=yes
14026	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14027	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14028	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14029	    if test svr4 != "$with_aix_soname"; then
14030	      # This is similar to how AIX traditionally builds its shared
14031	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14032	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14033	    fi
14034	    if test aix != "$with_aix_soname"; then
14035	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14036	    else
14037	      # used by -dlpreopen to get the symbols
14038	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14039	    fi
14040	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14041          fi
14042        fi
14043        ;;
14044
14045      beos*)
14046	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14047	  allow_undefined_flag_CXX=unsupported
14048	  # Joseph Beckenbach <[email protected]> says some releases of gcc
14049	  # support --undefined.  This deserves some investigation.  FIXME
14050	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14051	else
14052	  ld_shlibs_CXX=no
14053	fi
14054	;;
14055
14056      chorus*)
14057        case $cc_basename in
14058          *)
14059	  # FIXME: insert proper C++ library support
14060	  ld_shlibs_CXX=no
14061	  ;;
14062        esac
14063        ;;
14064
14065      cygwin* | mingw* | pw32* | cegcc*)
14066	case $GXX,$cc_basename in
14067	,cl* | no,cl*)
14068	  # Native MSVC
14069	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14070	  # no search path for DLLs.
14071	  hardcode_libdir_flag_spec_CXX=' '
14072	  allow_undefined_flag_CXX=unsupported
14073	  always_export_symbols_CXX=yes
14074	  file_list_spec_CXX='@'
14075	  # Tell ltmain to make .lib files, not .a files.
14076	  libext=lib
14077	  # Tell ltmain to make .dll files, not .so files.
14078	  shrext_cmds=.dll
14079	  # FIXME: Setting linknames here is a bad hack.
14080	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14081	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14082              cp "$export_symbols" "$output_objdir/$soname.def";
14083              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14084            else
14085              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14086            fi~
14087            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14088            linknames='
14089	  # The linker will not automatically build a static lib if we build a DLL.
14090	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14091	  enable_shared_with_static_runtimes_CXX=yes
14092	  # Don't use ranlib
14093	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14094	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14095            lt_tool_outputfile="@TOOL_OUTPUT@"~
14096            case $lt_outputfile in
14097              *.exe|*.EXE) ;;
14098              *)
14099                lt_outputfile=$lt_outputfile.exe
14100                lt_tool_outputfile=$lt_tool_outputfile.exe
14101                ;;
14102            esac~
14103            func_to_tool_file "$lt_outputfile"~
14104            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14105              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14106              $RM "$lt_outputfile.manifest";
14107            fi'
14108	  ;;
14109	*)
14110	  # g++
14111	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14112	  # as there is no search path for DLLs.
14113	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14114	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14115	  allow_undefined_flag_CXX=unsupported
14116	  always_export_symbols_CXX=no
14117	  enable_shared_with_static_runtimes_CXX=yes
14118
14119	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14120	    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'
14121	    # If the export-symbols file already is a .def file, use it as
14122	    # is; otherwise, prepend EXPORTS...
14123	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14124              cp $export_symbols $output_objdir/$soname.def;
14125            else
14126              echo EXPORTS > $output_objdir/$soname.def;
14127              cat $export_symbols >> $output_objdir/$soname.def;
14128            fi~
14129            $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'
14130	  else
14131	    ld_shlibs_CXX=no
14132	  fi
14133	  ;;
14134	esac
14135	;;
14136      darwin* | rhapsody*)
14137
14138
14139  archive_cmds_need_lc_CXX=no
14140  hardcode_direct_CXX=no
14141  hardcode_automatic_CXX=yes
14142  hardcode_shlibpath_var_CXX=unsupported
14143  if test yes = "$lt_cv_ld_force_load"; then
14144    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\"`'
14145
14146  else
14147    whole_archive_flag_spec_CXX=''
14148  fi
14149  link_all_deplibs_CXX=yes
14150  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14151  case $cc_basename in
14152     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14153     *) _lt_dar_can_shared=$GCC ;;
14154  esac
14155  if test yes = "$_lt_dar_can_shared"; then
14156    output_verbose_link_cmd=func_echo_all
14157    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"
14158    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14159    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"
14160    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"
14161       if test yes != "$lt_cv_apple_cc_single_mod"; then
14162      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"
14163      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"
14164    fi
14165
14166  else
14167  ld_shlibs_CXX=no
14168  fi
14169
14170	;;
14171
14172      os2*)
14173	hardcode_libdir_flag_spec_CXX='-L$libdir'
14174	hardcode_minus_L_CXX=yes
14175	allow_undefined_flag_CXX=unsupported
14176	shrext_cmds=.dll
14177	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14178	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14179	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14180	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14181	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14182	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14183	  emximp -o $lib $output_objdir/$libname.def'
14184	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14185	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14186	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14187	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14188	  prefix_cmds="$SED"~
14189	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14190	    prefix_cmds="$prefix_cmds -e 1d";
14191	  fi~
14192	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14193	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14194	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14195	  emximp -o $lib $output_objdir/$libname.def'
14196	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14197	enable_shared_with_static_runtimes_CXX=yes
14198	;;
14199
14200      dgux*)
14201        case $cc_basename in
14202          ec++*)
14203	    # FIXME: insert proper C++ library support
14204	    ld_shlibs_CXX=no
14205	    ;;
14206          ghcx*)
14207	    # Green Hills C++ Compiler
14208	    # FIXME: insert proper C++ library support
14209	    ld_shlibs_CXX=no
14210	    ;;
14211          *)
14212	    # FIXME: insert proper C++ library support
14213	    ld_shlibs_CXX=no
14214	    ;;
14215        esac
14216        ;;
14217
14218      freebsd2.*)
14219        # C++ shared libraries reported to be fairly broken before
14220	# switch to ELF
14221        ld_shlibs_CXX=no
14222        ;;
14223
14224      freebsd-elf*)
14225        archive_cmds_need_lc_CXX=no
14226        ;;
14227
14228      freebsd* | dragonfly*)
14229        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14230        # conventions
14231        ld_shlibs_CXX=yes
14232        ;;
14233
14234      haiku*)
14235        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14236        link_all_deplibs_CXX=yes
14237        ;;
14238
14239      hpux9*)
14240        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14241        hardcode_libdir_separator_CXX=:
14242        export_dynamic_flag_spec_CXX='$wl-E'
14243        hardcode_direct_CXX=yes
14244        hardcode_minus_L_CXX=yes # Not in the search PATH,
14245				             # but as the default
14246				             # location of the library.
14247
14248        case $cc_basename in
14249          CC*)
14250            # FIXME: insert proper C++ library support
14251            ld_shlibs_CXX=no
14252            ;;
14253          aCC*)
14254            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14255            # Commands to make compiler produce verbose output that lists
14256            # what "hidden" libraries, object files and flags are used when
14257            # linking a shared library.
14258            #
14259            # There doesn't appear to be a way to prevent this compiler from
14260            # explicitly linking system object files so we need to strip them
14261            # from the output so that they don't get included in the library
14262            # dependencies.
14263            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"'
14264            ;;
14265          *)
14266            if test yes = "$GXX"; then
14267              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14268            else
14269              # FIXME: insert proper C++ library support
14270              ld_shlibs_CXX=no
14271            fi
14272            ;;
14273        esac
14274        ;;
14275
14276      hpux10*|hpux11*)
14277        if test no = "$with_gnu_ld"; then
14278	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14279	  hardcode_libdir_separator_CXX=:
14280
14281          case $host_cpu in
14282            hppa*64*|ia64*)
14283              ;;
14284            *)
14285	      export_dynamic_flag_spec_CXX='$wl-E'
14286              ;;
14287          esac
14288        fi
14289        case $host_cpu in
14290          hppa*64*|ia64*)
14291            hardcode_direct_CXX=no
14292            hardcode_shlibpath_var_CXX=no
14293            ;;
14294          *)
14295            hardcode_direct_CXX=yes
14296            hardcode_direct_absolute_CXX=yes
14297            hardcode_minus_L_CXX=yes # Not in the search PATH,
14298					         # but as the default
14299					         # location of the library.
14300            ;;
14301        esac
14302
14303        case $cc_basename in
14304          CC*)
14305	    # FIXME: insert proper C++ library support
14306	    ld_shlibs_CXX=no
14307	    ;;
14308          aCC*)
14309	    case $host_cpu in
14310	      hppa*64*)
14311	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14312	        ;;
14313	      ia64*)
14314	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14315	        ;;
14316	      *)
14317	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14318	        ;;
14319	    esac
14320	    # Commands to make compiler produce verbose output that lists
14321	    # what "hidden" libraries, object files and flags are used when
14322	    # linking a shared library.
14323	    #
14324	    # There doesn't appear to be a way to prevent this compiler from
14325	    # explicitly linking system object files so we need to strip them
14326	    # from the output so that they don't get included in the library
14327	    # dependencies.
14328	    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"'
14329	    ;;
14330          *)
14331	    if test yes = "$GXX"; then
14332	      if test no = "$with_gnu_ld"; then
14333	        case $host_cpu in
14334	          hppa*64*)
14335	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14336	            ;;
14337	          ia64*)
14338	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14339	            ;;
14340	          *)
14341	            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'
14342	            ;;
14343	        esac
14344	      fi
14345	    else
14346	      # FIXME: insert proper C++ library support
14347	      ld_shlibs_CXX=no
14348	    fi
14349	    ;;
14350        esac
14351        ;;
14352
14353      interix[3-9]*)
14354	hardcode_direct_CXX=no
14355	hardcode_shlibpath_var_CXX=no
14356	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14357	export_dynamic_flag_spec_CXX='$wl-E'
14358	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14359	# Instead, shared libraries are loaded at an image base (0x10000000 by
14360	# default) and relocated if they conflict, which is a slow very memory
14361	# consuming and fragmenting process.  To avoid this, we pick a random,
14362	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14363	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14364	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'
14365	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'
14366	;;
14367      irix5* | irix6*)
14368        case $cc_basename in
14369          CC*)
14370	    # SGI C++
14371	    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'
14372
14373	    # Archives containing C++ object files must be created using
14374	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14375	    # necessary to make sure instantiated templates are included
14376	    # in the archive.
14377	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14378	    ;;
14379          *)
14380	    if test yes = "$GXX"; then
14381	      if test no = "$with_gnu_ld"; then
14382	        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'
14383	      else
14384	        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'
14385	      fi
14386	    fi
14387	    link_all_deplibs_CXX=yes
14388	    ;;
14389        esac
14390        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14391        hardcode_libdir_separator_CXX=:
14392        inherit_rpath_CXX=yes
14393        ;;
14394
14395      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14396        case $cc_basename in
14397          KCC*)
14398	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14399
14400	    # KCC will only create a shared library if the output file
14401	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14402	    # to its proper name (with version) after linking.
14403	    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'
14404	    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'
14405	    # Commands to make compiler produce verbose output that lists
14406	    # what "hidden" libraries, object files and flags are used when
14407	    # linking a shared library.
14408	    #
14409	    # There doesn't appear to be a way to prevent this compiler from
14410	    # explicitly linking system object files so we need to strip them
14411	    # from the output so that they don't get included in the library
14412	    # dependencies.
14413	    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"'
14414
14415	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14416	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14417
14418	    # Archives containing C++ object files must be created using
14419	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14420	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14421	    ;;
14422	  icpc* | ecpc* )
14423	    # Intel C++
14424	    with_gnu_ld=yes
14425	    # version 8.0 and above of icpc choke on multiply defined symbols
14426	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14427	    # earlier do not add the objects themselves.
14428	    case `$CC -V 2>&1` in
14429	      *"Version 7."*)
14430	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14431		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'
14432		;;
14433	      *)  # Version 8.0 or newer
14434	        tmp_idyn=
14435	        case $host_cpu in
14436		  ia64*) tmp_idyn=' -i_dynamic';;
14437		esac
14438	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14439		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'
14440		;;
14441	    esac
14442	    archive_cmds_need_lc_CXX=no
14443	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14444	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14445	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14446	    ;;
14447          pgCC* | pgcpp*)
14448            # Portland Group C++ compiler
14449	    case `$CC -V` in
14450	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14451	      prelink_cmds_CXX='tpldir=Template.dir~
14452               rm -rf $tpldir~
14453               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14454               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14455	      old_archive_cmds_CXX='tpldir=Template.dir~
14456                rm -rf $tpldir~
14457                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14458                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14459                $RANLIB $oldlib'
14460	      archive_cmds_CXX='tpldir=Template.dir~
14461                rm -rf $tpldir~
14462                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14463                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14464	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14465                rm -rf $tpldir~
14466                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14467                $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'
14468	      ;;
14469	    *) # Version 6 and above use weak symbols
14470	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14471	      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'
14472	      ;;
14473	    esac
14474
14475	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14476	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14477	    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'
14478            ;;
14479	  cxx*)
14480	    # Compaq C++
14481	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14482	    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'
14483
14484	    runpath_var=LD_RUN_PATH
14485	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14486	    hardcode_libdir_separator_CXX=:
14487
14488	    # Commands to make compiler produce verbose output that lists
14489	    # what "hidden" libraries, object files and flags are used when
14490	    # linking a shared library.
14491	    #
14492	    # There doesn't appear to be a way to prevent this compiler from
14493	    # explicitly linking system object files so we need to strip them
14494	    # from the output so that they don't get included in the library
14495	    # dependencies.
14496	    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'
14497	    ;;
14498	  xl* | mpixl* | bgxl*)
14499	    # IBM XL 8.0 on PPC, with GNU ld
14500	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14501	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14502	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14503	    if test yes = "$supports_anon_versioning"; then
14504	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14505                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14506                echo "local: *; };" >> $output_objdir/$libname.ver~
14507                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14508	    fi
14509	    ;;
14510	  *)
14511	    case `$CC -V 2>&1 | sed 5q` in
14512	    *Sun\ C*)
14513	      # Sun C++ 5.9
14514	      no_undefined_flag_CXX=' -zdefs'
14515	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14516	      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'
14517	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14518	      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'
14519	      compiler_needs_object_CXX=yes
14520
14521	      # Not sure whether something based on
14522	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14523	      # would be better.
14524	      output_verbose_link_cmd='func_echo_all'
14525
14526	      # Archives containing C++ object files must be created using
14527	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14528	      # necessary to make sure instantiated templates are included
14529	      # in the archive.
14530	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14531	      ;;
14532	    esac
14533	    ;;
14534	esac
14535	;;
14536
14537      lynxos*)
14538        # FIXME: insert proper C++ library support
14539	ld_shlibs_CXX=no
14540	;;
14541
14542      m88k*)
14543        # FIXME: insert proper C++ library support
14544        ld_shlibs_CXX=no
14545	;;
14546
14547      mvs*)
14548        case $cc_basename in
14549          cxx*)
14550	    # FIXME: insert proper C++ library support
14551	    ld_shlibs_CXX=no
14552	    ;;
14553	  *)
14554	    # FIXME: insert proper C++ library support
14555	    ld_shlibs_CXX=no
14556	    ;;
14557	esac
14558	;;
14559
14560      netbsd*)
14561        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14562	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14563	  wlarc=
14564	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14565	  hardcode_direct_CXX=yes
14566	  hardcode_shlibpath_var_CXX=no
14567	fi
14568	# Workaround some broken pre-1.5 toolchains
14569	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14570	;;
14571
14572      *nto* | *qnx*)
14573        ld_shlibs_CXX=yes
14574	;;
14575
14576      openbsd* | bitrig*)
14577	if test -f /usr/libexec/ld.so; then
14578	  hardcode_direct_CXX=yes
14579	  hardcode_shlibpath_var_CXX=no
14580	  hardcode_direct_absolute_CXX=yes
14581	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14582	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14583	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14584	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14585	    export_dynamic_flag_spec_CXX='$wl-E'
14586	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14587	  fi
14588	  output_verbose_link_cmd=func_echo_all
14589	else
14590	  ld_shlibs_CXX=no
14591	fi
14592	;;
14593
14594      osf3* | osf4* | osf5*)
14595        case $cc_basename in
14596          KCC*)
14597	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14598
14599	    # KCC will only create a shared library if the output file
14600	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14601	    # to its proper name (with version) after linking.
14602	    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'
14603
14604	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14605	    hardcode_libdir_separator_CXX=:
14606
14607	    # Archives containing C++ object files must be created using
14608	    # the KAI C++ compiler.
14609	    case $host in
14610	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14611	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14612	    esac
14613	    ;;
14614          RCC*)
14615	    # Rational C++ 2.4.1
14616	    # FIXME: insert proper C++ library support
14617	    ld_shlibs_CXX=no
14618	    ;;
14619          cxx*)
14620	    case $host in
14621	      osf3*)
14622	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14623	        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'
14624	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14625		;;
14626	      *)
14627	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14628	        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'
14629	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14630                  echo "-hidden">> $lib.exp~
14631                  $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~
14632                  $RM $lib.exp'
14633	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14634		;;
14635	    esac
14636
14637	    hardcode_libdir_separator_CXX=:
14638
14639	    # Commands to make compiler produce verbose output that lists
14640	    # what "hidden" libraries, object files and flags are used when
14641	    # linking a shared library.
14642	    #
14643	    # There doesn't appear to be a way to prevent this compiler from
14644	    # explicitly linking system object files so we need to strip them
14645	    # from the output so that they don't get included in the library
14646	    # dependencies.
14647	    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"'
14648	    ;;
14649	  *)
14650	    if test yes,no = "$GXX,$with_gnu_ld"; then
14651	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14652	      case $host in
14653	        osf3*)
14654	          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'
14655		  ;;
14656	        *)
14657	          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'
14658		  ;;
14659	      esac
14660
14661	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14662	      hardcode_libdir_separator_CXX=:
14663
14664	      # Commands to make compiler produce verbose output that lists
14665	      # what "hidden" libraries, object files and flags are used when
14666	      # linking a shared library.
14667	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14668
14669	    else
14670	      # FIXME: insert proper C++ library support
14671	      ld_shlibs_CXX=no
14672	    fi
14673	    ;;
14674        esac
14675        ;;
14676
14677      psos*)
14678        # FIXME: insert proper C++ library support
14679        ld_shlibs_CXX=no
14680        ;;
14681
14682      sunos4*)
14683        case $cc_basename in
14684          CC*)
14685	    # Sun C++ 4.x
14686	    # FIXME: insert proper C++ library support
14687	    ld_shlibs_CXX=no
14688	    ;;
14689          lcc*)
14690	    # Lucid
14691	    # FIXME: insert proper C++ library support
14692	    ld_shlibs_CXX=no
14693	    ;;
14694          *)
14695	    # FIXME: insert proper C++ library support
14696	    ld_shlibs_CXX=no
14697	    ;;
14698        esac
14699        ;;
14700
14701      solaris*)
14702        case $cc_basename in
14703          CC* | sunCC*)
14704	    # Sun C++ 4.2, 5.x and Centerline C++
14705            archive_cmds_need_lc_CXX=yes
14706	    no_undefined_flag_CXX=' -zdefs'
14707	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14708	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14709              $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'
14710
14711	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14712	    hardcode_shlibpath_var_CXX=no
14713	    case $host_os in
14714	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14715	      *)
14716		# The compiler driver will combine and reorder linker options,
14717		# but understands '-z linker_flag'.
14718	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14719		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14720	        ;;
14721	    esac
14722	    link_all_deplibs_CXX=yes
14723
14724	    output_verbose_link_cmd='func_echo_all'
14725
14726	    # Archives containing C++ object files must be created using
14727	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14728	    # necessary to make sure instantiated templates are included
14729	    # in the archive.
14730	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14731	    ;;
14732          gcx*)
14733	    # Green Hills C++ Compiler
14734	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14735
14736	    # The C++ compiler must be used to create the archive.
14737	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14738	    ;;
14739          *)
14740	    # GNU C++ compiler with Solaris linker
14741	    if test yes,no = "$GXX,$with_gnu_ld"; then
14742	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14743	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14744	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14745	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14746                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14747
14748	        # Commands to make compiler produce verbose output that lists
14749	        # what "hidden" libraries, object files and flags are used when
14750	        # linking a shared library.
14751	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14752	      else
14753	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14754	        # platform.
14755	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14756	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14757                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14758
14759	        # Commands to make compiler produce verbose output that lists
14760	        # what "hidden" libraries, object files and flags are used when
14761	        # linking a shared library.
14762	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14763	      fi
14764
14765	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14766	      case $host_os in
14767		solaris2.[0-5] | solaris2.[0-5].*) ;;
14768		*)
14769		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14770		  ;;
14771	      esac
14772	    fi
14773	    ;;
14774        esac
14775        ;;
14776
14777    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14778      no_undefined_flag_CXX='$wl-z,text'
14779      archive_cmds_need_lc_CXX=no
14780      hardcode_shlibpath_var_CXX=no
14781      runpath_var='LD_RUN_PATH'
14782
14783      case $cc_basename in
14784        CC*)
14785	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14786	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14787	  ;;
14788	*)
14789	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14790	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14791	  ;;
14792      esac
14793      ;;
14794
14795      sysv5* | sco3.2v5* | sco5v6*)
14796	# Note: We CANNOT use -z defs as we might desire, because we do not
14797	# link with -lc, and that would cause any symbols used from libc to
14798	# always be unresolved, which means just about no library would
14799	# ever link correctly.  If we're not using GNU ld we use -z text
14800	# though, which does catch some bad symbols but isn't as heavy-handed
14801	# as -z defs.
14802	no_undefined_flag_CXX='$wl-z,text'
14803	allow_undefined_flag_CXX='$wl-z,nodefs'
14804	archive_cmds_need_lc_CXX=no
14805	hardcode_shlibpath_var_CXX=no
14806	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14807	hardcode_libdir_separator_CXX=':'
14808	link_all_deplibs_CXX=yes
14809	export_dynamic_flag_spec_CXX='$wl-Bexport'
14810	runpath_var='LD_RUN_PATH'
14811
14812	case $cc_basename in
14813          CC*)
14814	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14815	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14816	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14817              '"$old_archive_cmds_CXX"
14818	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14819              '"$reload_cmds_CXX"
14820	    ;;
14821	  *)
14822	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14823	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824	    ;;
14825	esac
14826      ;;
14827
14828      tandem*)
14829        case $cc_basename in
14830          NCC*)
14831	    # NonStop-UX NCC 3.20
14832	    # FIXME: insert proper C++ library support
14833	    ld_shlibs_CXX=no
14834	    ;;
14835          *)
14836	    # FIXME: insert proper C++ library support
14837	    ld_shlibs_CXX=no
14838	    ;;
14839        esac
14840        ;;
14841
14842      vxworks*)
14843        # FIXME: insert proper C++ library support
14844        ld_shlibs_CXX=no
14845        ;;
14846
14847      *)
14848        # FIXME: insert proper C++ library support
14849        ld_shlibs_CXX=no
14850        ;;
14851    esac
14852
14853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14854$as_echo "$ld_shlibs_CXX" >&6; }
14855    test no = "$ld_shlibs_CXX" && can_build_shared=no
14856
14857    GCC_CXX=$GXX
14858    LD_CXX=$LD
14859
14860    ## CAVEAT EMPTOR:
14861    ## There is no encapsulation within the following macros, do not change
14862    ## the running order or otherwise move them around unless you know exactly
14863    ## what you are doing...
14864    # Dependencies to place before and after the object being linked:
14865predep_objects_CXX=
14866postdep_objects_CXX=
14867predeps_CXX=
14868postdeps_CXX=
14869compiler_lib_search_path_CXX=
14870
14871cat > conftest.$ac_ext <<_LT_EOF
14872class Foo
14873{
14874public:
14875  Foo (void) { a = 0; }
14876private:
14877  int a;
14878};
14879_LT_EOF
14880
14881
14882_lt_libdeps_save_CFLAGS=$CFLAGS
14883case "$CC $CFLAGS " in #(
14884*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14885*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14886*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14887esac
14888
14889if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14890  (eval $ac_compile) 2>&5
14891  ac_status=$?
14892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14893  test $ac_status = 0; }; then
14894  # Parse the compiler output and extract the necessary
14895  # objects, libraries and library flags.
14896
14897  # Sentinel used to keep track of whether or not we are before
14898  # the conftest object file.
14899  pre_test_object_deps_done=no
14900
14901  for p in `eval "$output_verbose_link_cmd"`; do
14902    case $prev$p in
14903
14904    -L* | -R* | -l*)
14905       # Some compilers place space between "-{L,R}" and the path.
14906       # Remove the space.
14907       if test x-L = "$p" ||
14908          test x-R = "$p"; then
14909	 prev=$p
14910	 continue
14911       fi
14912
14913       # Expand the sysroot to ease extracting the directories later.
14914       if test -z "$prev"; then
14915         case $p in
14916         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14917         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14918         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14919         esac
14920       fi
14921       case $p in
14922       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14923       esac
14924       if test no = "$pre_test_object_deps_done"; then
14925	 case $prev in
14926	 -L | -R)
14927	   # Internal compiler library paths should come after those
14928	   # provided the user.  The postdeps already come after the
14929	   # user supplied libs so there is no need to process them.
14930	   if test -z "$compiler_lib_search_path_CXX"; then
14931	     compiler_lib_search_path_CXX=$prev$p
14932	   else
14933	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14934	   fi
14935	   ;;
14936	 # The "-l" case would never come before the object being
14937	 # linked, so don't bother handling this case.
14938	 esac
14939       else
14940	 if test -z "$postdeps_CXX"; then
14941	   postdeps_CXX=$prev$p
14942	 else
14943	   postdeps_CXX="${postdeps_CXX} $prev$p"
14944	 fi
14945       fi
14946       prev=
14947       ;;
14948
14949    *.lto.$objext) ;; # Ignore GCC LTO objects
14950    *.$objext)
14951       # This assumes that the test object file only shows up
14952       # once in the compiler output.
14953       if test "$p" = "conftest.$objext"; then
14954	 pre_test_object_deps_done=yes
14955	 continue
14956       fi
14957
14958       if test no = "$pre_test_object_deps_done"; then
14959	 if test -z "$predep_objects_CXX"; then
14960	   predep_objects_CXX=$p
14961	 else
14962	   predep_objects_CXX="$predep_objects_CXX $p"
14963	 fi
14964       else
14965	 if test -z "$postdep_objects_CXX"; then
14966	   postdep_objects_CXX=$p
14967	 else
14968	   postdep_objects_CXX="$postdep_objects_CXX $p"
14969	 fi
14970       fi
14971       ;;
14972
14973    *) ;; # Ignore the rest.
14974
14975    esac
14976  done
14977
14978  # Clean up.
14979  rm -f a.out a.exe
14980else
14981  echo "libtool.m4: error: problem compiling CXX test program"
14982fi
14983
14984$RM -f confest.$objext
14985CFLAGS=$_lt_libdeps_save_CFLAGS
14986
14987# PORTME: override above test on systems where it is broken
14988case $host_os in
14989interix[3-9]*)
14990  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14991  # hack all around it, let's just trust "g++" to DTRT.
14992  predep_objects_CXX=
14993  postdep_objects_CXX=
14994  postdeps_CXX=
14995  ;;
14996
14997linux*)
14998  case `$CC -V 2>&1 | sed 5q` in
14999  *Sun\ C*)
15000    # Sun C++ 5.9
15001
15002    # The more standards-conforming stlport4 library is
15003    # incompatible with the Cstd library. Avoid specifying
15004    # it if it's in CXXFLAGS. Ignore libCrun as
15005    # -library=stlport4 depends on it.
15006    case " $CXX $CXXFLAGS " in
15007    *" -library=stlport4 "*)
15008      solaris_use_stlport4=yes
15009      ;;
15010    esac
15011
15012    if test yes != "$solaris_use_stlport4"; then
15013      postdeps_CXX='-library=Cstd -library=Crun'
15014    fi
15015    ;;
15016  esac
15017  ;;
15018
15019solaris*)
15020  case $cc_basename in
15021  CC* | sunCC*)
15022    # The more standards-conforming stlport4 library is
15023    # incompatible with the Cstd library. Avoid specifying
15024    # it if it's in CXXFLAGS. Ignore libCrun as
15025    # -library=stlport4 depends on it.
15026    case " $CXX $CXXFLAGS " in
15027    *" -library=stlport4 "*)
15028      solaris_use_stlport4=yes
15029      ;;
15030    esac
15031
15032    # Adding this requires a known-good setup of shared libraries for
15033    # Sun compiler versions before 5.6, else PIC objects from an old
15034    # archive will be linked into the output, leading to subtle bugs.
15035    if test yes != "$solaris_use_stlport4"; then
15036      postdeps_CXX='-library=Cstd -library=Crun'
15037    fi
15038    ;;
15039  esac
15040  ;;
15041esac
15042
15043
15044case " $postdeps_CXX " in
15045*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15046esac
15047 compiler_lib_search_dirs_CXX=
15048if test -n "${compiler_lib_search_path_CXX}"; then
15049 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15050fi
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082    lt_prog_compiler_wl_CXX=
15083lt_prog_compiler_pic_CXX=
15084lt_prog_compiler_static_CXX=
15085
15086
15087  # C++ specific cases for pic, static, wl, etc.
15088  if test yes = "$GXX"; then
15089    lt_prog_compiler_wl_CXX='-Wl,'
15090    lt_prog_compiler_static_CXX='-static'
15091
15092    case $host_os in
15093    aix*)
15094      # All AIX code is PIC.
15095      if test ia64 = "$host_cpu"; then
15096	# AIX 5 now supports IA64 processor
15097	lt_prog_compiler_static_CXX='-Bstatic'
15098      fi
15099      lt_prog_compiler_pic_CXX='-fPIC'
15100      ;;
15101
15102    amigaos*)
15103      case $host_cpu in
15104      powerpc)
15105            # see comment about AmigaOS4 .so support
15106            lt_prog_compiler_pic_CXX='-fPIC'
15107        ;;
15108      m68k)
15109            # FIXME: we need at least 68020 code to build shared libraries, but
15110            # adding the '-m68020' flag to GCC prevents building anything better,
15111            # like '-m68040'.
15112            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15113        ;;
15114      esac
15115      ;;
15116
15117    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15118      # PIC is the default for these OSes.
15119      ;;
15120    mingw* | cygwin* | os2* | pw32* | cegcc*)
15121      # This hack is so that the source file can tell whether it is being
15122      # built for inclusion in a dll (and should export symbols for example).
15123      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15124      # (--disable-auto-import) libraries
15125      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15126      case $host_os in
15127      os2*)
15128	lt_prog_compiler_static_CXX='$wl-static'
15129	;;
15130      esac
15131      ;;
15132    darwin* | rhapsody*)
15133      # PIC is the default on this platform
15134      # Common symbols not allowed in MH_DYLIB files
15135      lt_prog_compiler_pic_CXX='-fno-common'
15136      ;;
15137    *djgpp*)
15138      # DJGPP does not support shared libraries at all
15139      lt_prog_compiler_pic_CXX=
15140      ;;
15141    haiku*)
15142      # PIC is the default for Haiku.
15143      # The "-static" flag exists, but is broken.
15144      lt_prog_compiler_static_CXX=
15145      ;;
15146    interix[3-9]*)
15147      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15148      # Instead, we relocate shared libraries at runtime.
15149      ;;
15150    sysv4*MP*)
15151      if test -d /usr/nec; then
15152	lt_prog_compiler_pic_CXX=-Kconform_pic
15153      fi
15154      ;;
15155    hpux*)
15156      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15157      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15158      # sets the default TLS model and affects inlining.
15159      case $host_cpu in
15160      hppa*64*)
15161	;;
15162      *)
15163	lt_prog_compiler_pic_CXX='-fPIC'
15164	;;
15165      esac
15166      ;;
15167    *qnx* | *nto*)
15168      # QNX uses GNU C++, but need to define -shared option too, otherwise
15169      # it will coredump.
15170      lt_prog_compiler_pic_CXX='-fPIC -shared'
15171      ;;
15172    *)
15173      lt_prog_compiler_pic_CXX='-fPIC'
15174      ;;
15175    esac
15176  else
15177    case $host_os in
15178      aix[4-9]*)
15179	# All AIX code is PIC.
15180	if test ia64 = "$host_cpu"; then
15181	  # AIX 5 now supports IA64 processor
15182	  lt_prog_compiler_static_CXX='-Bstatic'
15183	else
15184	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15185	fi
15186	;;
15187      chorus*)
15188	case $cc_basename in
15189	cxch68*)
15190	  # Green Hills C++ Compiler
15191	  # _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"
15192	  ;;
15193	esac
15194	;;
15195      mingw* | cygwin* | os2* | pw32* | cegcc*)
15196	# This hack is so that the source file can tell whether it is being
15197	# built for inclusion in a dll (and should export symbols for example).
15198	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15199	;;
15200      dgux*)
15201	case $cc_basename in
15202	  ec++*)
15203	    lt_prog_compiler_pic_CXX='-KPIC'
15204	    ;;
15205	  ghcx*)
15206	    # Green Hills C++ Compiler
15207	    lt_prog_compiler_pic_CXX='-pic'
15208	    ;;
15209	  *)
15210	    ;;
15211	esac
15212	;;
15213      freebsd* | dragonfly*)
15214	# FreeBSD uses GNU C++
15215	;;
15216      hpux9* | hpux10* | hpux11*)
15217	case $cc_basename in
15218	  CC*)
15219	    lt_prog_compiler_wl_CXX='-Wl,'
15220	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15221	    if test ia64 != "$host_cpu"; then
15222	      lt_prog_compiler_pic_CXX='+Z'
15223	    fi
15224	    ;;
15225	  aCC*)
15226	    lt_prog_compiler_wl_CXX='-Wl,'
15227	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15228	    case $host_cpu in
15229	    hppa*64*|ia64*)
15230	      # +Z the default
15231	      ;;
15232	    *)
15233	      lt_prog_compiler_pic_CXX='+Z'
15234	      ;;
15235	    esac
15236	    ;;
15237	  *)
15238	    ;;
15239	esac
15240	;;
15241      interix*)
15242	# This is c89, which is MS Visual C++ (no shared libs)
15243	# Anyone wants to do a port?
15244	;;
15245      irix5* | irix6* | nonstopux*)
15246	case $cc_basename in
15247	  CC*)
15248	    lt_prog_compiler_wl_CXX='-Wl,'
15249	    lt_prog_compiler_static_CXX='-non_shared'
15250	    # CC pic flag -KPIC is the default.
15251	    ;;
15252	  *)
15253	    ;;
15254	esac
15255	;;
15256      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15257	case $cc_basename in
15258	  KCC*)
15259	    # KAI C++ Compiler
15260	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15261	    lt_prog_compiler_pic_CXX='-fPIC'
15262	    ;;
15263	  ecpc* )
15264	    # old Intel C++ for x86_64, which still supported -KPIC.
15265	    lt_prog_compiler_wl_CXX='-Wl,'
15266	    lt_prog_compiler_pic_CXX='-KPIC'
15267	    lt_prog_compiler_static_CXX='-static'
15268	    ;;
15269	  icpc* )
15270	    # Intel C++, used to be incompatible with GCC.
15271	    # ICC 10 doesn't accept -KPIC any more.
15272	    lt_prog_compiler_wl_CXX='-Wl,'
15273	    lt_prog_compiler_pic_CXX='-fPIC'
15274	    lt_prog_compiler_static_CXX='-static'
15275	    ;;
15276	  pgCC* | pgcpp*)
15277	    # Portland Group C++ compiler
15278	    lt_prog_compiler_wl_CXX='-Wl,'
15279	    lt_prog_compiler_pic_CXX='-fpic'
15280	    lt_prog_compiler_static_CXX='-Bstatic'
15281	    ;;
15282	  cxx*)
15283	    # Compaq C++
15284	    # Make sure the PIC flag is empty.  It appears that all Alpha
15285	    # Linux and Compaq Tru64 Unix objects are PIC.
15286	    lt_prog_compiler_pic_CXX=
15287	    lt_prog_compiler_static_CXX='-non_shared'
15288	    ;;
15289	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15290	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15291	    lt_prog_compiler_wl_CXX='-Wl,'
15292	    lt_prog_compiler_pic_CXX='-qpic'
15293	    lt_prog_compiler_static_CXX='-qstaticlink'
15294	    ;;
15295	  *)
15296	    case `$CC -V 2>&1 | sed 5q` in
15297	    *Sun\ C*)
15298	      # Sun C++ 5.9
15299	      lt_prog_compiler_pic_CXX='-KPIC'
15300	      lt_prog_compiler_static_CXX='-Bstatic'
15301	      lt_prog_compiler_wl_CXX='-Qoption ld '
15302	      ;;
15303	    esac
15304	    ;;
15305	esac
15306	;;
15307      lynxos*)
15308	;;
15309      m88k*)
15310	;;
15311      mvs*)
15312	case $cc_basename in
15313	  cxx*)
15314	    lt_prog_compiler_pic_CXX='-W c,exportall'
15315	    ;;
15316	  *)
15317	    ;;
15318	esac
15319	;;
15320      netbsd*)
15321	;;
15322      *qnx* | *nto*)
15323        # QNX uses GNU C++, but need to define -shared option too, otherwise
15324        # it will coredump.
15325        lt_prog_compiler_pic_CXX='-fPIC -shared'
15326        ;;
15327      osf3* | osf4* | osf5*)
15328	case $cc_basename in
15329	  KCC*)
15330	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15331	    ;;
15332	  RCC*)
15333	    # Rational C++ 2.4.1
15334	    lt_prog_compiler_pic_CXX='-pic'
15335	    ;;
15336	  cxx*)
15337	    # Digital/Compaq C++
15338	    lt_prog_compiler_wl_CXX='-Wl,'
15339	    # Make sure the PIC flag is empty.  It appears that all Alpha
15340	    # Linux and Compaq Tru64 Unix objects are PIC.
15341	    lt_prog_compiler_pic_CXX=
15342	    lt_prog_compiler_static_CXX='-non_shared'
15343	    ;;
15344	  *)
15345	    ;;
15346	esac
15347	;;
15348      psos*)
15349	;;
15350      solaris*)
15351	case $cc_basename in
15352	  CC* | sunCC*)
15353	    # Sun C++ 4.2, 5.x and Centerline C++
15354	    lt_prog_compiler_pic_CXX='-KPIC'
15355	    lt_prog_compiler_static_CXX='-Bstatic'
15356	    lt_prog_compiler_wl_CXX='-Qoption ld '
15357	    ;;
15358	  gcx*)
15359	    # Green Hills C++ Compiler
15360	    lt_prog_compiler_pic_CXX='-PIC'
15361	    ;;
15362	  *)
15363	    ;;
15364	esac
15365	;;
15366      sunos4*)
15367	case $cc_basename in
15368	  CC*)
15369	    # Sun C++ 4.x
15370	    lt_prog_compiler_pic_CXX='-pic'
15371	    lt_prog_compiler_static_CXX='-Bstatic'
15372	    ;;
15373	  lcc*)
15374	    # Lucid
15375	    lt_prog_compiler_pic_CXX='-pic'
15376	    ;;
15377	  *)
15378	    ;;
15379	esac
15380	;;
15381      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15382	case $cc_basename in
15383	  CC*)
15384	    lt_prog_compiler_wl_CXX='-Wl,'
15385	    lt_prog_compiler_pic_CXX='-KPIC'
15386	    lt_prog_compiler_static_CXX='-Bstatic'
15387	    ;;
15388	esac
15389	;;
15390      tandem*)
15391	case $cc_basename in
15392	  NCC*)
15393	    # NonStop-UX NCC 3.20
15394	    lt_prog_compiler_pic_CXX='-KPIC'
15395	    ;;
15396	  *)
15397	    ;;
15398	esac
15399	;;
15400      vxworks*)
15401	;;
15402      *)
15403	lt_prog_compiler_can_build_shared_CXX=no
15404	;;
15405    esac
15406  fi
15407
15408case $host_os in
15409  # For platforms that do not support PIC, -DPIC is meaningless:
15410  *djgpp*)
15411    lt_prog_compiler_pic_CXX=
15412    ;;
15413  *)
15414    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15415    ;;
15416esac
15417
15418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15419$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15420if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15421  $as_echo_n "(cached) " >&6
15422else
15423  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15424fi
15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15426$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15427lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15428
15429#
15430# Check to make sure the PIC flag actually works.
15431#
15432if test -n "$lt_prog_compiler_pic_CXX"; then
15433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15434$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15435if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15436  $as_echo_n "(cached) " >&6
15437else
15438  lt_cv_prog_compiler_pic_works_CXX=no
15439   ac_outfile=conftest.$ac_objext
15440   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15441   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15442   # Insert the option either (1) after the last *FLAGS variable, or
15443   # (2) before a word containing "conftest.", or (3) at the end.
15444   # Note that $ac_compile itself does not contain backslashes and begins
15445   # with a dollar sign (not a hyphen), so the echo should work correctly.
15446   # The option is referenced via a variable to avoid confusing sed.
15447   lt_compile=`echo "$ac_compile" | $SED \
15448   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15449   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15450   -e 's:$: $lt_compiler_flag:'`
15451   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15452   (eval "$lt_compile" 2>conftest.err)
15453   ac_status=$?
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   if (exit $ac_status) && test -s "$ac_outfile"; then
15457     # The compiler can only warn and ignore the option if not recognized
15458     # So say no if there are warnings other than the usual output.
15459     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15460     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15462       lt_cv_prog_compiler_pic_works_CXX=yes
15463     fi
15464   fi
15465   $RM conftest*
15466
15467fi
15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15469$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15470
15471if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15472    case $lt_prog_compiler_pic_CXX in
15473     "" | " "*) ;;
15474     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15475     esac
15476else
15477    lt_prog_compiler_pic_CXX=
15478     lt_prog_compiler_can_build_shared_CXX=no
15479fi
15480
15481fi
15482
15483
15484
15485
15486
15487#
15488# Check to make sure the static flag actually works.
15489#
15490wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15492$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15493if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15494  $as_echo_n "(cached) " >&6
15495else
15496  lt_cv_prog_compiler_static_works_CXX=no
15497   save_LDFLAGS=$LDFLAGS
15498   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15499   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15500   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15501     # The linker can only warn and ignore the option if not recognized
15502     # So say no if there are warnings
15503     if test -s conftest.err; then
15504       # Append any errors to the config.log.
15505       cat conftest.err 1>&5
15506       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15507       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15508       if diff conftest.exp conftest.er2 >/dev/null; then
15509         lt_cv_prog_compiler_static_works_CXX=yes
15510       fi
15511     else
15512       lt_cv_prog_compiler_static_works_CXX=yes
15513     fi
15514   fi
15515   $RM -r conftest*
15516   LDFLAGS=$save_LDFLAGS
15517
15518fi
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15520$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15521
15522if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15523    :
15524else
15525    lt_prog_compiler_static_CXX=
15526fi
15527
15528
15529
15530
15531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15532$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15533if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15534  $as_echo_n "(cached) " >&6
15535else
15536  lt_cv_prog_compiler_c_o_CXX=no
15537   $RM -r conftest 2>/dev/null
15538   mkdir conftest
15539   cd conftest
15540   mkdir out
15541   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15542
15543   lt_compiler_flag="-o out/conftest2.$ac_objext"
15544   # Insert the option either (1) after the last *FLAGS variable, or
15545   # (2) before a word containing "conftest.", or (3) at the end.
15546   # Note that $ac_compile itself does not contain backslashes and begins
15547   # with a dollar sign (not a hyphen), so the echo should work correctly.
15548   lt_compile=`echo "$ac_compile" | $SED \
15549   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15550   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15551   -e 's:$: $lt_compiler_flag:'`
15552   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15553   (eval "$lt_compile" 2>out/conftest.err)
15554   ac_status=$?
15555   cat out/conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15558   then
15559     # The compiler can only warn and ignore the option if not recognized
15560     # So say no if there are warnings
15561     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15562     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15563     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15564       lt_cv_prog_compiler_c_o_CXX=yes
15565     fi
15566   fi
15567   chmod u+w . 2>&5
15568   $RM conftest*
15569   # SGI C++ compiler will create directory out/ii_files/ for
15570   # template instantiation
15571   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15572   $RM out/* && rmdir out
15573   cd ..
15574   $RM -r conftest
15575   $RM conftest*
15576
15577fi
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15579$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15580
15581
15582
15583    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15584$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15585if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15586  $as_echo_n "(cached) " >&6
15587else
15588  lt_cv_prog_compiler_c_o_CXX=no
15589   $RM -r conftest 2>/dev/null
15590   mkdir conftest
15591   cd conftest
15592   mkdir out
15593   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15594
15595   lt_compiler_flag="-o out/conftest2.$ac_objext"
15596   # Insert the option either (1) after the last *FLAGS variable, or
15597   # (2) before a word containing "conftest.", or (3) at the end.
15598   # Note that $ac_compile itself does not contain backslashes and begins
15599   # with a dollar sign (not a hyphen), so the echo should work correctly.
15600   lt_compile=`echo "$ac_compile" | $SED \
15601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15603   -e 's:$: $lt_compiler_flag:'`
15604   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15605   (eval "$lt_compile" 2>out/conftest.err)
15606   ac_status=$?
15607   cat out/conftest.err >&5
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15610   then
15611     # The compiler can only warn and ignore the option if not recognized
15612     # So say no if there are warnings
15613     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15614     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15615     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15616       lt_cv_prog_compiler_c_o_CXX=yes
15617     fi
15618   fi
15619   chmod u+w . 2>&5
15620   $RM conftest*
15621   # SGI C++ compiler will create directory out/ii_files/ for
15622   # template instantiation
15623   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15624   $RM out/* && rmdir out
15625   cd ..
15626   $RM -r conftest
15627   $RM conftest*
15628
15629fi
15630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15631$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15632
15633
15634
15635
15636hard_links=nottested
15637if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15638  # do not overwrite the value of need_locks provided by the user
15639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15640$as_echo_n "checking if we can lock with hard links... " >&6; }
15641  hard_links=yes
15642  $RM conftest*
15643  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15644  touch conftest.a
15645  ln conftest.a conftest.b 2>&5 || hard_links=no
15646  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15648$as_echo "$hard_links" >&6; }
15649  if test no = "$hard_links"; then
15650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15651$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15652    need_locks=warn
15653  fi
15654else
15655  need_locks=no
15656fi
15657
15658
15659
15660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15661$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15662
15663  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15664  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15665  case $host_os in
15666  aix[4-9]*)
15667    # If we're using GNU nm, then we don't want the "-C" option.
15668    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15669    # Without the "-l" option, or with the "-B" option, AIX nm treats
15670    # weak defined symbols like other global defined symbols, whereas
15671    # GNU nm marks them as "W".
15672    # While the 'weak' keyword is ignored in the Export File, we need
15673    # it in the Import File for the 'aix-soname' feature, so we have
15674    # to replace the "-B" option with "-P" for AIX nm.
15675    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15676      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15677    else
15678      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15679    fi
15680    ;;
15681  pw32*)
15682    export_symbols_cmds_CXX=$ltdll_cmds
15683    ;;
15684  cygwin* | mingw* | cegcc*)
15685    case $cc_basename in
15686    cl*)
15687      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15688      ;;
15689    *)
15690      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'
15691      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15692      ;;
15693    esac
15694    ;;
15695  *)
15696    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15697    ;;
15698  esac
15699
15700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15701$as_echo "$ld_shlibs_CXX" >&6; }
15702test no = "$ld_shlibs_CXX" && can_build_shared=no
15703
15704with_gnu_ld_CXX=$with_gnu_ld
15705
15706
15707
15708
15709
15710
15711#
15712# Do we need to explicitly link libc?
15713#
15714case "x$archive_cmds_need_lc_CXX" in
15715x|xyes)
15716  # Assume -lc should be added
15717  archive_cmds_need_lc_CXX=yes
15718
15719  if test yes,yes = "$GCC,$enable_shared"; then
15720    case $archive_cmds_CXX in
15721    *'~'*)
15722      # FIXME: we may have to deal with multi-command sequences.
15723      ;;
15724    '$CC '*)
15725      # Test whether the compiler implicitly links with -lc since on some
15726      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15727      # to ld, don't add -lc before -lgcc.
15728      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15729$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15730if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15731  $as_echo_n "(cached) " >&6
15732else
15733  $RM conftest*
15734	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15735
15736	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15737  (eval $ac_compile) 2>&5
15738  ac_status=$?
15739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15740  test $ac_status = 0; } 2>conftest.err; then
15741	  soname=conftest
15742	  lib=conftest
15743	  libobjs=conftest.$ac_objext
15744	  deplibs=
15745	  wl=$lt_prog_compiler_wl_CXX
15746	  pic_flag=$lt_prog_compiler_pic_CXX
15747	  compiler_flags=-v
15748	  linker_flags=-v
15749	  verstring=
15750	  output_objdir=.
15751	  libname=conftest
15752	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15753	  allow_undefined_flag_CXX=
15754	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15755  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15756  ac_status=$?
15757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758  test $ac_status = 0; }
15759	  then
15760	    lt_cv_archive_cmds_need_lc_CXX=no
15761	  else
15762	    lt_cv_archive_cmds_need_lc_CXX=yes
15763	  fi
15764	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15765	else
15766	  cat conftest.err 1>&5
15767	fi
15768	$RM conftest*
15769
15770fi
15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15772$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15773      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15774      ;;
15775    esac
15776  fi
15777  ;;
15778esac
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15842$as_echo_n "checking dynamic linker characteristics... " >&6; }
15843
15844library_names_spec=
15845libname_spec='lib$name'
15846soname_spec=
15847shrext_cmds=.so
15848postinstall_cmds=
15849postuninstall_cmds=
15850finish_cmds=
15851finish_eval=
15852shlibpath_var=
15853shlibpath_overrides_runpath=unknown
15854version_type=none
15855dynamic_linker="$host_os ld.so"
15856sys_lib_dlsearch_path_spec="/lib /usr/lib"
15857need_lib_prefix=unknown
15858hardcode_into_libs=no
15859
15860# when you set need_version to no, make sure it does not cause -set_version
15861# flags to be left without arguments
15862need_version=unknown
15863
15864case $host_os in
15865aix3*)
15866  version_type=linux # correct to gnu/linux during the next big refactor
15867  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15868  shlibpath_var=LIBPATH
15869
15870  # AIX 3 has no versioning support, so we append a major version to the name.
15871  soname_spec='$libname$release$shared_ext$major'
15872  ;;
15873
15874aix[4-9]*)
15875  version_type=linux # correct to gnu/linux during the next big refactor
15876  need_lib_prefix=no
15877  need_version=no
15878  hardcode_into_libs=yes
15879  if test ia64 = "$host_cpu"; then
15880    # AIX 5 supports IA64
15881    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15882    shlibpath_var=LD_LIBRARY_PATH
15883  else
15884    # With GCC up to 2.95.x, collect2 would create an import file
15885    # for dependence libraries.  The import file would start with
15886    # the line '#! .'.  This would cause the generated library to
15887    # depend on '.', always an invalid library.  This was fixed in
15888    # development snapshots of GCC prior to 3.0.
15889    case $host_os in
15890      aix4 | aix4.[01] | aix4.[01].*)
15891      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15892	   echo ' yes '
15893	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15894	:
15895      else
15896	can_build_shared=no
15897      fi
15898      ;;
15899    esac
15900    # Using Import Files as archive members, it is possible to support
15901    # filename-based versioning of shared library archives on AIX. While
15902    # this would work for both with and without runtime linking, it will
15903    # prevent static linking of such archives. So we do filename-based
15904    # shared library versioning with .so extension only, which is used
15905    # when both runtime linking and shared linking is enabled.
15906    # Unfortunately, runtime linking may impact performance, so we do
15907    # not want this to be the default eventually. Also, we use the
15908    # versioned .so libs for executables only if there is the -brtl
15909    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15910    # To allow for filename-based versioning support, we need to create
15911    # libNAME.so.V as an archive file, containing:
15912    # *) an Import File, referring to the versioned filename of the
15913    #    archive as well as the shared archive member, telling the
15914    #    bitwidth (32 or 64) of that shared object, and providing the
15915    #    list of exported symbols of that shared object, eventually
15916    #    decorated with the 'weak' keyword
15917    # *) the shared object with the F_LOADONLY flag set, to really avoid
15918    #    it being seen by the linker.
15919    # At run time we better use the real file rather than another symlink,
15920    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15921
15922    case $with_aix_soname,$aix_use_runtimelinking in
15923    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15924    # soname into executable. Probably we can add versioning support to
15925    # collect2, so additional links can be useful in future.
15926    aix,yes) # traditional libtool
15927      dynamic_linker='AIX unversionable lib.so'
15928      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15929      # instead of lib<name>.a to let people know that these are not
15930      # typical AIX shared libraries.
15931      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15932      ;;
15933    aix,no) # traditional AIX only
15934      dynamic_linker='AIX lib.a(lib.so.V)'
15935      # We preserve .a as extension for shared libraries through AIX4.2
15936      # and later when we are not doing run time linking.
15937      library_names_spec='$libname$release.a $libname.a'
15938      soname_spec='$libname$release$shared_ext$major'
15939      ;;
15940    svr4,*) # full svr4 only
15941      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15942      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15943      # We do not specify a path in Import Files, so LIBPATH fires.
15944      shlibpath_overrides_runpath=yes
15945      ;;
15946    *,yes) # both, prefer svr4
15947      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15948      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15949      # unpreferred sharedlib libNAME.a needs extra handling
15950      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15951      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15952      # We do not specify a path in Import Files, so LIBPATH fires.
15953      shlibpath_overrides_runpath=yes
15954      ;;
15955    *,no) # both, prefer aix
15956      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15957      library_names_spec='$libname$release.a $libname.a'
15958      soname_spec='$libname$release$shared_ext$major'
15959      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15960      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15961      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15962      ;;
15963    esac
15964    shlibpath_var=LIBPATH
15965  fi
15966  ;;
15967
15968amigaos*)
15969  case $host_cpu in
15970  powerpc)
15971    # Since July 2007 AmigaOS4 officially supports .so libraries.
15972    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15973    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15974    ;;
15975  m68k)
15976    library_names_spec='$libname.ixlibrary $libname.a'
15977    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15978    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15979    ;;
15980  esac
15981  ;;
15982
15983beos*)
15984  library_names_spec='$libname$shared_ext'
15985  dynamic_linker="$host_os ld.so"
15986  shlibpath_var=LIBRARY_PATH
15987  ;;
15988
15989bsdi[45]*)
15990  version_type=linux # correct to gnu/linux during the next big refactor
15991  need_version=no
15992  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15993  soname_spec='$libname$release$shared_ext$major'
15994  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15995  shlibpath_var=LD_LIBRARY_PATH
15996  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15997  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15998  # the default ld.so.conf also contains /usr/contrib/lib and
15999  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16000  # libtool to hard-code these into programs
16001  ;;
16002
16003cygwin* | mingw* | pw32* | cegcc*)
16004  version_type=windows
16005  shrext_cmds=.dll
16006  need_version=no
16007  need_lib_prefix=no
16008
16009  case $GCC,$cc_basename in
16010  yes,*)
16011    # gcc
16012    library_names_spec='$libname.dll.a'
16013    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16014    postinstall_cmds='base_file=`basename \$file`~
16015      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16016      dldir=$destdir/`dirname \$dlpath`~
16017      test -d \$dldir || mkdir -p \$dldir~
16018      $install_prog $dir/$dlname \$dldir/$dlname~
16019      chmod a+x \$dldir/$dlname~
16020      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16021        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16022      fi'
16023    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16024      dlpath=$dir/\$dldll~
16025       $RM \$dlpath'
16026    shlibpath_overrides_runpath=yes
16027
16028    case $host_os in
16029    cygwin*)
16030      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16031      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16032
16033      ;;
16034    mingw* | cegcc*)
16035      # MinGW DLLs use traditional 'lib' prefix
16036      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16037      ;;
16038    pw32*)
16039      # pw32 DLLs use 'pw' prefix rather than 'lib'
16040      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16041      ;;
16042    esac
16043    dynamic_linker='Win32 ld.exe'
16044    ;;
16045
16046  *,cl*)
16047    # Native MSVC
16048    libname_spec='$name'
16049    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16050    library_names_spec='$libname.dll.lib'
16051
16052    case $build_os in
16053    mingw*)
16054      sys_lib_search_path_spec=
16055      lt_save_ifs=$IFS
16056      IFS=';'
16057      for lt_path in $LIB
16058      do
16059        IFS=$lt_save_ifs
16060        # Let DOS variable expansion print the short 8.3 style file name.
16061        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16062        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16063      done
16064      IFS=$lt_save_ifs
16065      # Convert to MSYS style.
16066      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16067      ;;
16068    cygwin*)
16069      # Convert to unix form, then to dos form, then back to unix form
16070      # but this time dos style (no spaces!) so that the unix form looks
16071      # like /cygdrive/c/PROGRA~1:/cygdr...
16072      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16073      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16074      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16075      ;;
16076    *)
16077      sys_lib_search_path_spec=$LIB
16078      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16079        # It is most probably a Windows format PATH.
16080        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16081      else
16082        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16083      fi
16084      # FIXME: find the short name or the path components, as spaces are
16085      # common. (e.g. "Program Files" -> "PROGRA~1")
16086      ;;
16087    esac
16088
16089    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16090    postinstall_cmds='base_file=`basename \$file`~
16091      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16092      dldir=$destdir/`dirname \$dlpath`~
16093      test -d \$dldir || mkdir -p \$dldir~
16094      $install_prog $dir/$dlname \$dldir/$dlname'
16095    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16096      dlpath=$dir/\$dldll~
16097       $RM \$dlpath'
16098    shlibpath_overrides_runpath=yes
16099    dynamic_linker='Win32 link.exe'
16100    ;;
16101
16102  *)
16103    # Assume MSVC wrapper
16104    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16105    dynamic_linker='Win32 ld.exe'
16106    ;;
16107  esac
16108  # FIXME: first we should search . and the directory the executable is in
16109  shlibpath_var=PATH
16110  ;;
16111
16112darwin* | rhapsody*)
16113  dynamic_linker="$host_os dyld"
16114  version_type=darwin
16115  need_lib_prefix=no
16116  need_version=no
16117  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16118  soname_spec='$libname$release$major$shared_ext'
16119  shlibpath_overrides_runpath=yes
16120  shlibpath_var=DYLD_LIBRARY_PATH
16121  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16122
16123  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16124  ;;
16125
16126dgux*)
16127  version_type=linux # correct to gnu/linux during the next big refactor
16128  need_lib_prefix=no
16129  need_version=no
16130  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16131  soname_spec='$libname$release$shared_ext$major'
16132  shlibpath_var=LD_LIBRARY_PATH
16133  ;;
16134
16135freebsd* | dragonfly*)
16136  # DragonFly does not have aout.  When/if they implement a new
16137  # versioning mechanism, adjust this.
16138  if test -x /usr/bin/objformat; then
16139    objformat=`/usr/bin/objformat`
16140  else
16141    case $host_os in
16142    freebsd[23].*) objformat=aout ;;
16143    *) objformat=elf ;;
16144    esac
16145  fi
16146  version_type=freebsd-$objformat
16147  case $version_type in
16148    freebsd-elf*)
16149      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16150      need_version=no
16151      need_lib_prefix=no
16152      ;;
16153    freebsd-*)
16154      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16155      need_version=yes
16156      ;;
16157  esac
16158  shlibpath_var=LD_LIBRARY_PATH
16159  case $host_os in
16160  freebsd2.*)
16161    shlibpath_overrides_runpath=yes
16162    ;;
16163  freebsd3.[01]* | freebsdelf3.[01]*)
16164    shlibpath_overrides_runpath=yes
16165    hardcode_into_libs=yes
16166    ;;
16167  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16168  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16169    shlibpath_overrides_runpath=no
16170    hardcode_into_libs=yes
16171    ;;
16172  *) # from 4.6 on, and DragonFly
16173    shlibpath_overrides_runpath=yes
16174    hardcode_into_libs=yes
16175    ;;
16176  esac
16177  ;;
16178
16179haiku*)
16180  version_type=linux # correct to gnu/linux during the next big refactor
16181  need_lib_prefix=no
16182  need_version=no
16183  dynamic_linker="$host_os runtime_loader"
16184  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16185  soname_spec='$libname$release$shared_ext$major'
16186  shlibpath_var=LIBRARY_PATH
16187  shlibpath_overrides_runpath=no
16188  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16189  hardcode_into_libs=yes
16190  ;;
16191
16192hpux9* | hpux10* | hpux11*)
16193  # Give a soname corresponding to the major version so that dld.sl refuses to
16194  # link against other versions.
16195  version_type=sunos
16196  need_lib_prefix=no
16197  need_version=no
16198  case $host_cpu in
16199  ia64*)
16200    shrext_cmds='.so'
16201    hardcode_into_libs=yes
16202    dynamic_linker="$host_os dld.so"
16203    shlibpath_var=LD_LIBRARY_PATH
16204    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16206    soname_spec='$libname$release$shared_ext$major'
16207    if test 32 = "$HPUX_IA64_MODE"; then
16208      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16209    else
16210      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16211    fi
16212    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16213    ;;
16214  hppa*64*)
16215    shrext_cmds='.sl'
16216    hardcode_into_libs=yes
16217    dynamic_linker="$host_os dld.sl"
16218    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16219    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16221    soname_spec='$libname$release$shared_ext$major'
16222    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16223    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224    ;;
16225  *)
16226    shrext_cmds='.sl'
16227    dynamic_linker="$host_os dld.sl"
16228    shlibpath_var=SHLIB_PATH
16229    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16230    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16231    soname_spec='$libname$release$shared_ext$major'
16232    ;;
16233  esac
16234  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16235  postinstall_cmds='chmod 555 $lib'
16236  # or fails outright, so override atomically:
16237  install_override_mode=555
16238  ;;
16239
16240interix[3-9]*)
16241  version_type=linux # correct to gnu/linux during the next big refactor
16242  need_lib_prefix=no
16243  need_version=no
16244  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16245  soname_spec='$libname$release$shared_ext$major'
16246  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16247  shlibpath_var=LD_LIBRARY_PATH
16248  shlibpath_overrides_runpath=no
16249  hardcode_into_libs=yes
16250  ;;
16251
16252irix5* | irix6* | nonstopux*)
16253  case $host_os in
16254    nonstopux*) version_type=nonstopux ;;
16255    *)
16256	if test yes = "$lt_cv_prog_gnu_ld"; then
16257		version_type=linux # correct to gnu/linux during the next big refactor
16258	else
16259		version_type=irix
16260	fi ;;
16261  esac
16262  need_lib_prefix=no
16263  need_version=no
16264  soname_spec='$libname$release$shared_ext$major'
16265  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16266  case $host_os in
16267  irix5* | nonstopux*)
16268    libsuff= shlibsuff=
16269    ;;
16270  *)
16271    case $LD in # libtool.m4 will add one of these switches to LD
16272    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16273      libsuff= shlibsuff= libmagic=32-bit;;
16274    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16275      libsuff=32 shlibsuff=N32 libmagic=N32;;
16276    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16277      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16278    *) libsuff= shlibsuff= libmagic=never-match;;
16279    esac
16280    ;;
16281  esac
16282  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16283  shlibpath_overrides_runpath=no
16284  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16285  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16286  hardcode_into_libs=yes
16287  ;;
16288
16289# No shared lib support for Linux oldld, aout, or coff.
16290linux*oldld* | linux*aout* | linux*coff*)
16291  dynamic_linker=no
16292  ;;
16293
16294linux*android*)
16295  version_type=none # Android doesn't support versioned libraries.
16296  need_lib_prefix=no
16297  need_version=no
16298  library_names_spec='$libname$release$shared_ext'
16299  soname_spec='$libname$release$shared_ext'
16300  finish_cmds=
16301  shlibpath_var=LD_LIBRARY_PATH
16302  shlibpath_overrides_runpath=yes
16303
16304  # This implies no fast_install, which is unacceptable.
16305  # Some rework will be needed to allow for fast_install
16306  # before this can be enabled.
16307  hardcode_into_libs=yes
16308
16309  dynamic_linker='Android linker'
16310  # Don't embed -rpath directories since the linker doesn't support them.
16311  hardcode_libdir_flag_spec_CXX='-L$libdir'
16312  ;;
16313
16314# This must be glibc/ELF.
16315linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16316  version_type=linux # correct to gnu/linux during the next big refactor
16317  need_lib_prefix=no
16318  need_version=no
16319  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16320  soname_spec='$libname$release$shared_ext$major'
16321  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16322  shlibpath_var=LD_LIBRARY_PATH
16323  shlibpath_overrides_runpath=no
16324
16325  # Some binutils ld are patched to set DT_RUNPATH
16326  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16327  $as_echo_n "(cached) " >&6
16328else
16329  lt_cv_shlibpath_overrides_runpath=no
16330    save_LDFLAGS=$LDFLAGS
16331    save_libdir=$libdir
16332    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16333	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335/* end confdefs.h.  */
16336
16337int
16338main ()
16339{
16340
16341  ;
16342  return 0;
16343}
16344_ACEOF
16345if ac_fn_cxx_try_link "$LINENO"; then :
16346  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16347  lt_cv_shlibpath_overrides_runpath=yes
16348fi
16349fi
16350rm -f core conftest.err conftest.$ac_objext \
16351    conftest$ac_exeext conftest.$ac_ext
16352    LDFLAGS=$save_LDFLAGS
16353    libdir=$save_libdir
16354
16355fi
16356
16357  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16358
16359  # This implies no fast_install, which is unacceptable.
16360  # Some rework will be needed to allow for fast_install
16361  # before this can be enabled.
16362  hardcode_into_libs=yes
16363
16364  # Append ld.so.conf contents to the search path
16365  if test -f /etc/ld.so.conf; then
16366    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' ' '`
16367    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16368  fi
16369
16370  # We used to test for /lib/ld.so.1 and disable shared libraries on
16371  # powerpc, because MkLinux only supported shared libraries with the
16372  # GNU dynamic linker.  Since this was broken with cross compilers,
16373  # most powerpc-linux boxes support dynamic linking these days and
16374  # people can always --disable-shared, the test was removed, and we
16375  # assume the GNU/Linux dynamic linker is in use.
16376  dynamic_linker='GNU/Linux ld.so'
16377  ;;
16378
16379netbsd*)
16380  version_type=sunos
16381  need_lib_prefix=no
16382  need_version=no
16383  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16384    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16385    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16386    dynamic_linker='NetBSD (a.out) ld.so'
16387  else
16388    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16389    soname_spec='$libname$release$shared_ext$major'
16390    dynamic_linker='NetBSD ld.elf_so'
16391  fi
16392  shlibpath_var=LD_LIBRARY_PATH
16393  shlibpath_overrides_runpath=yes
16394  hardcode_into_libs=yes
16395  ;;
16396
16397newsos6)
16398  version_type=linux # correct to gnu/linux during the next big refactor
16399  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16400  shlibpath_var=LD_LIBRARY_PATH
16401  shlibpath_overrides_runpath=yes
16402  ;;
16403
16404*nto* | *qnx*)
16405  version_type=qnx
16406  need_lib_prefix=no
16407  need_version=no
16408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16409  soname_spec='$libname$release$shared_ext$major'
16410  shlibpath_var=LD_LIBRARY_PATH
16411  shlibpath_overrides_runpath=no
16412  hardcode_into_libs=yes
16413  dynamic_linker='ldqnx.so'
16414  ;;
16415
16416openbsd* | bitrig*)
16417  version_type=sunos
16418  sys_lib_dlsearch_path_spec=/usr/lib
16419  need_lib_prefix=no
16420  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16421    need_version=no
16422  else
16423    need_version=yes
16424  fi
16425  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16426  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16427  shlibpath_var=LD_LIBRARY_PATH
16428  shlibpath_overrides_runpath=yes
16429  ;;
16430
16431os2*)
16432  libname_spec='$name'
16433  version_type=windows
16434  shrext_cmds=.dll
16435  need_version=no
16436  need_lib_prefix=no
16437  # OS/2 can only load a DLL with a base name of 8 characters or less.
16438  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16439    v=$($ECHO $release$versuffix | tr -d .-);
16440    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16441    $ECHO $n$v`$shared_ext'
16442  library_names_spec='${libname}_dll.$libext'
16443  dynamic_linker='OS/2 ld.exe'
16444  shlibpath_var=BEGINLIBPATH
16445  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16446  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16447  postinstall_cmds='base_file=`basename \$file`~
16448    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16449    dldir=$destdir/`dirname \$dlpath`~
16450    test -d \$dldir || mkdir -p \$dldir~
16451    $install_prog $dir/$dlname \$dldir/$dlname~
16452    chmod a+x \$dldir/$dlname~
16453    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16454      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16455    fi'
16456  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16457    dlpath=$dir/\$dldll~
16458    $RM \$dlpath'
16459  ;;
16460
16461osf3* | osf4* | osf5*)
16462  version_type=osf
16463  need_lib_prefix=no
16464  need_version=no
16465  soname_spec='$libname$release$shared_ext$major'
16466  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16467  shlibpath_var=LD_LIBRARY_PATH
16468  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16469  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16470  ;;
16471
16472rdos*)
16473  dynamic_linker=no
16474  ;;
16475
16476solaris*)
16477  version_type=linux # correct to gnu/linux during the next big refactor
16478  need_lib_prefix=no
16479  need_version=no
16480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16481  soname_spec='$libname$release$shared_ext$major'
16482  shlibpath_var=LD_LIBRARY_PATH
16483  shlibpath_overrides_runpath=yes
16484  hardcode_into_libs=yes
16485  # ldd complains unless libraries are executable
16486  postinstall_cmds='chmod +x $lib'
16487  ;;
16488
16489sunos4*)
16490  version_type=sunos
16491  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16492  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16493  shlibpath_var=LD_LIBRARY_PATH
16494  shlibpath_overrides_runpath=yes
16495  if test yes = "$with_gnu_ld"; then
16496    need_lib_prefix=no
16497  fi
16498  need_version=yes
16499  ;;
16500
16501sysv4 | sysv4.3*)
16502  version_type=linux # correct to gnu/linux during the next big refactor
16503  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16504  soname_spec='$libname$release$shared_ext$major'
16505  shlibpath_var=LD_LIBRARY_PATH
16506  case $host_vendor in
16507    sni)
16508      shlibpath_overrides_runpath=no
16509      need_lib_prefix=no
16510      runpath_var=LD_RUN_PATH
16511      ;;
16512    siemens)
16513      need_lib_prefix=no
16514      ;;
16515    motorola)
16516      need_lib_prefix=no
16517      need_version=no
16518      shlibpath_overrides_runpath=no
16519      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16520      ;;
16521  esac
16522  ;;
16523
16524sysv4*MP*)
16525  if test -d /usr/nec; then
16526    version_type=linux # correct to gnu/linux during the next big refactor
16527    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16528    soname_spec='$libname$shared_ext.$major'
16529    shlibpath_var=LD_LIBRARY_PATH
16530  fi
16531  ;;
16532
16533sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16534  version_type=sco
16535  need_lib_prefix=no
16536  need_version=no
16537  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16538  soname_spec='$libname$release$shared_ext$major'
16539  shlibpath_var=LD_LIBRARY_PATH
16540  shlibpath_overrides_runpath=yes
16541  hardcode_into_libs=yes
16542  if test yes = "$with_gnu_ld"; then
16543    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16544  else
16545    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16546    case $host_os in
16547      sco3.2v5*)
16548        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16549	;;
16550    esac
16551  fi
16552  sys_lib_dlsearch_path_spec='/usr/lib'
16553  ;;
16554
16555tpf*)
16556  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16557  version_type=linux # correct to gnu/linux during the next big refactor
16558  need_lib_prefix=no
16559  need_version=no
16560  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16561  shlibpath_var=LD_LIBRARY_PATH
16562  shlibpath_overrides_runpath=no
16563  hardcode_into_libs=yes
16564  ;;
16565
16566uts4*)
16567  version_type=linux # correct to gnu/linux during the next big refactor
16568  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16569  soname_spec='$libname$release$shared_ext$major'
16570  shlibpath_var=LD_LIBRARY_PATH
16571  ;;
16572
16573*)
16574  dynamic_linker=no
16575  ;;
16576esac
16577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16578$as_echo "$dynamic_linker" >&6; }
16579test no = "$dynamic_linker" && can_build_shared=no
16580
16581variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16582if test yes = "$GCC"; then
16583  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16584fi
16585
16586if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16587  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16588fi
16589if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16590  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16591fi
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16631$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16632hardcode_action_CXX=
16633if test -n "$hardcode_libdir_flag_spec_CXX" ||
16634   test -n "$runpath_var_CXX" ||
16635   test yes = "$hardcode_automatic_CXX"; then
16636
16637  # We can hardcode non-existent directories.
16638  if test no != "$hardcode_direct_CXX" &&
16639     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16640     # have to relink, otherwise we might link with an installed library
16641     # when we should be linking with a yet-to-be-installed one
16642     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16643     test no != "$hardcode_minus_L_CXX"; then
16644    # Linking always hardcodes the temporary library directory.
16645    hardcode_action_CXX=relink
16646  else
16647    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16648    hardcode_action_CXX=immediate
16649  fi
16650else
16651  # We cannot hardcode anything, or else we can only hardcode existing
16652  # directories.
16653  hardcode_action_CXX=unsupported
16654fi
16655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16656$as_echo "$hardcode_action_CXX" >&6; }
16657
16658if test relink = "$hardcode_action_CXX" ||
16659   test yes = "$inherit_rpath_CXX"; then
16660  # Fast installation is not supported
16661  enable_fast_install=no
16662elif test yes = "$shlibpath_overrides_runpath" ||
16663     test no = "$enable_shared"; then
16664  # Fast installation is not necessary
16665  enable_fast_install=needless
16666fi
16667
16668
16669
16670
16671
16672
16673
16674  fi # test -n "$compiler"
16675
16676  CC=$lt_save_CC
16677  CFLAGS=$lt_save_CFLAGS
16678  LDCXX=$LD
16679  LD=$lt_save_LD
16680  GCC=$lt_save_GCC
16681  with_gnu_ld=$lt_save_with_gnu_ld
16682  lt_cv_path_LDCXX=$lt_cv_path_LD
16683  lt_cv_path_LD=$lt_save_path_LD
16684  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16685  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16686fi # test yes != "$_lt_caught_CXX_error"
16687
16688ac_ext=c
16689ac_cpp='$CPP $CPPFLAGS'
16690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16692ac_compiler_gnu=$ac_cv_c_compiler_gnu
16693
16694
16695
16696# Enable support for silent build rules
16697# Check whether --enable-silent-rules was given.
16698if test "${enable_silent_rules+set}" = set; then :
16699  enableval=$enable_silent_rules;
16700fi
16701
16702case $enable_silent_rules in # (((
16703  yes) AM_DEFAULT_VERBOSITY=0;;
16704   no) AM_DEFAULT_VERBOSITY=1;;
16705    *) AM_DEFAULT_VERBOSITY=1;;
16706esac
16707am_make=${MAKE-make}
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16709$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16710if ${am_cv_make_support_nested_variables+:} false; then :
16711  $as_echo_n "(cached) " >&6
16712else
16713  if $as_echo 'TRUE=$(BAR$(V))
16714BAR0=false
16715BAR1=true
16716V=1
16717am__doit:
16718	@$(TRUE)
16719.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16720  am_cv_make_support_nested_variables=yes
16721else
16722  am_cv_make_support_nested_variables=no
16723fi
16724fi
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16726$as_echo "$am_cv_make_support_nested_variables" >&6; }
16727if test $am_cv_make_support_nested_variables = yes; then
16728    AM_V='$(V)'
16729  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16730else
16731  AM_V=$AM_DEFAULT_VERBOSITY
16732  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16733fi
16734AM_BACKSLASH='\'
16735
16736
16737tiff_libs_private=
16738
16739
16740case "${host_os}" in
16741    cygwin* | mingw32* | beos* | darwin*)
16742        ;;
16743    *)
16744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16745$as_echo_n "checking for sin in -lm... " >&6; }
16746if ${ac_cv_lib_m_sin+:} false; then :
16747  $as_echo_n "(cached) " >&6
16748else
16749  ac_check_lib_save_LIBS=$LIBS
16750LIBS="-lm  $LIBS"
16751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752/* end confdefs.h.  */
16753
16754/* Override any GCC internal prototype to avoid an error.
16755   Use char because int might match the return type of a GCC
16756   builtin and then its argument prototype would still apply.  */
16757#ifdef __cplusplus
16758extern "C"
16759#endif
16760char sin ();
16761int
16762main ()
16763{
16764return sin ();
16765  ;
16766  return 0;
16767}
16768_ACEOF
16769if ac_fn_c_try_link "$LINENO"; then :
16770  ac_cv_lib_m_sin=yes
16771else
16772  ac_cv_lib_m_sin=no
16773fi
16774rm -f core conftest.err conftest.$ac_objext \
16775    conftest$ac_exeext conftest.$ac_ext
16776LIBS=$ac_check_lib_save_LIBS
16777fi
16778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16779$as_echo "$ac_cv_lib_m_sin" >&6; }
16780if test "x$ac_cv_lib_m_sin" = xyes; then :
16781  libm_lib=yes
16782else
16783  libm_lib=no
16784fi
16785
16786	if test "x$libm_lib" = "xyes" ; then
16787	  LIBS="-lm $LIBS"
16788	  tiff_libs_private="-lm ${tiff_libs_private}"
16789	fi
16790        ;;
16791esac
16792
16793for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16794do :
16795  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16796ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16797if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16798  cat >>confdefs.h <<_ACEOF
16799#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16800_ACEOF
16801
16802fi
16803
16804done
16805
16806
16807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16808$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16809if ${ac_cv_c_const+:} false; then :
16810  $as_echo_n "(cached) " >&6
16811else
16812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813/* end confdefs.h.  */
16814
16815int
16816main ()
16817{
16818
16819#ifndef __cplusplus
16820  /* Ultrix mips cc rejects this sort of thing.  */
16821  typedef int charset[2];
16822  const charset cs = { 0, 0 };
16823  /* SunOS 4.1.1 cc rejects this.  */
16824  char const *const *pcpcc;
16825  char **ppc;
16826  /* NEC SVR4.0.2 mips cc rejects this.  */
16827  struct point {int x, y;};
16828  static struct point const zero = {0,0};
16829  /* AIX XL C 1.02.0.0 rejects this.
16830     It does not let you subtract one const X* pointer from another in
16831     an arm of an if-expression whose if-part is not a constant
16832     expression */
16833  const char *g = "string";
16834  pcpcc = &g + (g ? g-g : 0);
16835  /* HPUX 7.0 cc rejects these. */
16836  ++pcpcc;
16837  ppc = (char**) pcpcc;
16838  pcpcc = (char const *const *) ppc;
16839  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16840    char tx;
16841    char *t = &tx;
16842    char const *s = 0 ? (char *) 0 : (char const *) 0;
16843
16844    *t++ = 0;
16845    if (s) return 0;
16846  }
16847  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16848    int x[] = {25, 17};
16849    const int *foo = &x[0];
16850    ++foo;
16851  }
16852  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16853    typedef const int *iptr;
16854    iptr p = 0;
16855    ++p;
16856  }
16857  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16858       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16859    struct s { int j; const int *ap[3]; } bx;
16860    struct s *b = &bx; b->j = 5;
16861  }
16862  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16863    const int foo = 10;
16864    if (!foo) return 0;
16865  }
16866  return !cs[0] && !zero.x;
16867#endif
16868
16869  ;
16870  return 0;
16871}
16872_ACEOF
16873if ac_fn_c_try_compile "$LINENO"; then :
16874  ac_cv_c_const=yes
16875else
16876  ac_cv_c_const=no
16877fi
16878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879fi
16880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16881$as_echo "$ac_cv_c_const" >&6; }
16882if test $ac_cv_c_const = no; then
16883
16884$as_echo "#define const /**/" >>confdefs.h
16885
16886fi
16887
16888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16889$as_echo_n "checking for inline... " >&6; }
16890if ${ac_cv_c_inline+:} false; then :
16891  $as_echo_n "(cached) " >&6
16892else
16893  ac_cv_c_inline=no
16894for ac_kw in inline __inline__ __inline; do
16895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896/* end confdefs.h.  */
16897#ifndef __cplusplus
16898typedef int foo_t;
16899static $ac_kw foo_t static_foo () {return 0; }
16900$ac_kw foo_t foo () {return 0; }
16901#endif
16902
16903_ACEOF
16904if ac_fn_c_try_compile "$LINENO"; then :
16905  ac_cv_c_inline=$ac_kw
16906fi
16907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908  test "$ac_cv_c_inline" != no && break
16909done
16910
16911fi
16912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16913$as_echo "$ac_cv_c_inline" >&6; }
16914
16915case $ac_cv_c_inline in
16916  inline | yes) ;;
16917  *)
16918    case $ac_cv_c_inline in
16919      no) ac_val=;;
16920      *) ac_val=$ac_cv_c_inline;;
16921    esac
16922    cat >>confdefs.h <<_ACEOF
16923#ifndef __cplusplus
16924#define inline $ac_val
16925#endif
16926_ACEOF
16927    ;;
16928esac
16929
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16931$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16932if ${ac_cv_c_bigendian+:} false; then :
16933  $as_echo_n "(cached) " >&6
16934else
16935  ac_cv_c_bigendian=unknown
16936    # See if we're dealing with a universal compiler.
16937    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939#ifndef __APPLE_CC__
16940	       not a universal capable compiler
16941	     #endif
16942	     typedef int dummy;
16943
16944_ACEOF
16945if ac_fn_c_try_compile "$LINENO"; then :
16946
16947	# Check for potential -arch flags.  It is not universal unless
16948	# there are at least two -arch flags with different values.
16949	ac_arch=
16950	ac_prev=
16951	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16952	 if test -n "$ac_prev"; then
16953	   case $ac_word in
16954	     i?86 | x86_64 | ppc | ppc64)
16955	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16956		 ac_arch=$ac_word
16957	       else
16958		 ac_cv_c_bigendian=universal
16959		 break
16960	       fi
16961	       ;;
16962	   esac
16963	   ac_prev=
16964	 elif test "x$ac_word" = "x-arch"; then
16965	   ac_prev=arch
16966	 fi
16967       done
16968fi
16969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970    if test $ac_cv_c_bigendian = unknown; then
16971      # See if sys/param.h defines the BYTE_ORDER macro.
16972      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973/* end confdefs.h.  */
16974#include <sys/types.h>
16975	     #include <sys/param.h>
16976
16977int
16978main ()
16979{
16980#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16981		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16982		     && LITTLE_ENDIAN)
16983	      bogus endian macros
16984	     #endif
16985
16986  ;
16987  return 0;
16988}
16989_ACEOF
16990if ac_fn_c_try_compile "$LINENO"; then :
16991  # It does; now see whether it defined to BIG_ENDIAN or not.
16992	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993/* end confdefs.h.  */
16994#include <sys/types.h>
16995		#include <sys/param.h>
16996
16997int
16998main ()
16999{
17000#if BYTE_ORDER != BIG_ENDIAN
17001		 not big endian
17002		#endif
17003
17004  ;
17005  return 0;
17006}
17007_ACEOF
17008if ac_fn_c_try_compile "$LINENO"; then :
17009  ac_cv_c_bigendian=yes
17010else
17011  ac_cv_c_bigendian=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014fi
17015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016    fi
17017    if test $ac_cv_c_bigendian = unknown; then
17018      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17019      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021#include <limits.h>
17022
17023int
17024main ()
17025{
17026#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17027	      bogus endian macros
17028	     #endif
17029
17030  ;
17031  return 0;
17032}
17033_ACEOF
17034if ac_fn_c_try_compile "$LINENO"; then :
17035  # It does; now see whether it defined to _BIG_ENDIAN or not.
17036	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h.  */
17038#include <limits.h>
17039
17040int
17041main ()
17042{
17043#ifndef _BIG_ENDIAN
17044		 not big endian
17045		#endif
17046
17047  ;
17048  return 0;
17049}
17050_ACEOF
17051if ac_fn_c_try_compile "$LINENO"; then :
17052  ac_cv_c_bigendian=yes
17053else
17054  ac_cv_c_bigendian=no
17055fi
17056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057fi
17058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059    fi
17060    if test $ac_cv_c_bigendian = unknown; then
17061      # Compile a test program.
17062      if test "$cross_compiling" = yes; then :
17063  # Try to guess by grepping values from an object file.
17064	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065/* end confdefs.h.  */
17066short int ascii_mm[] =
17067		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17068		short int ascii_ii[] =
17069		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17070		int use_ascii (int i) {
17071		  return ascii_mm[i] + ascii_ii[i];
17072		}
17073		short int ebcdic_ii[] =
17074		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17075		short int ebcdic_mm[] =
17076		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17077		int use_ebcdic (int i) {
17078		  return ebcdic_mm[i] + ebcdic_ii[i];
17079		}
17080		extern int foo;
17081
17082int
17083main ()
17084{
17085return use_ascii (foo) == use_ebcdic (foo);
17086  ;
17087  return 0;
17088}
17089_ACEOF
17090if ac_fn_c_try_compile "$LINENO"; then :
17091  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17092	      ac_cv_c_bigendian=yes
17093	    fi
17094	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17095	      if test "$ac_cv_c_bigendian" = unknown; then
17096		ac_cv_c_bigendian=no
17097	      else
17098		# finding both strings is unlikely to happen, but who knows?
17099		ac_cv_c_bigendian=unknown
17100	      fi
17101	    fi
17102fi
17103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104else
17105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106/* end confdefs.h.  */
17107$ac_includes_default
17108int
17109main ()
17110{
17111
17112	     /* Are we little or big endian?  From Harbison&Steele.  */
17113	     union
17114	     {
17115	       long int l;
17116	       char c[sizeof (long int)];
17117	     } u;
17118	     u.l = 1;
17119	     return u.c[sizeof (long int) - 1] == 1;
17120
17121  ;
17122  return 0;
17123}
17124_ACEOF
17125if ac_fn_c_try_run "$LINENO"; then :
17126  ac_cv_c_bigendian=no
17127else
17128  ac_cv_c_bigendian=yes
17129fi
17130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17131  conftest.$ac_objext conftest.beam conftest.$ac_ext
17132fi
17133
17134    fi
17135fi
17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17137$as_echo "$ac_cv_c_bigendian" >&6; }
17138 case $ac_cv_c_bigendian in #(
17139   yes)
17140     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17141;; #(
17142   no)
17143      ;; #(
17144   universal)
17145
17146$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17147
17148     ;; #(
17149   *)
17150     as_fn_error $? "unknown endianness
17151 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17152 esac
17153
17154ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17155if test "x$ac_cv_type_off_t" = xyes; then :
17156
17157else
17158
17159cat >>confdefs.h <<_ACEOF
17160#define off_t long int
17161_ACEOF
17162
17163fi
17164
17165ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17166if test "x$ac_cv_type_size_t" = xyes; then :
17167
17168else
17169
17170cat >>confdefs.h <<_ACEOF
17171#define size_t unsigned int
17172_ACEOF
17173
17174fi
17175
17176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17177$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17178if ${ac_cv_header_time+:} false; then :
17179  $as_echo_n "(cached) " >&6
17180else
17181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182/* end confdefs.h.  */
17183#include <sys/types.h>
17184#include <sys/time.h>
17185#include <time.h>
17186
17187int
17188main ()
17189{
17190if ((struct tm *) 0)
17191return 0;
17192  ;
17193  return 0;
17194}
17195_ACEOF
17196if ac_fn_c_try_compile "$LINENO"; then :
17197  ac_cv_header_time=yes
17198else
17199  ac_cv_header_time=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202fi
17203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17204$as_echo "$ac_cv_header_time" >&6; }
17205if test $ac_cv_header_time = yes; then
17206
17207$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17208
17209fi
17210
17211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17212$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17213if ${ac_cv_struct_tm+:} false; then :
17214  $as_echo_n "(cached) " >&6
17215else
17216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h.  */
17218#include <sys/types.h>
17219#include <time.h>
17220
17221int
17222main ()
17223{
17224struct tm tm;
17225				     int *p = &tm.tm_sec;
17226				     return !p;
17227  ;
17228  return 0;
17229}
17230_ACEOF
17231if ac_fn_c_try_compile "$LINENO"; then :
17232  ac_cv_struct_tm=time.h
17233else
17234  ac_cv_struct_tm=sys/time.h
17235fi
17236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237fi
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17239$as_echo "$ac_cv_struct_tm" >&6; }
17240if test $ac_cv_struct_tm = sys/time.h; then
17241
17242$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17243
17244fi
17245
17246
17247ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
17248if test "x$ac_cv_have_decl_optarg" = xyes; then :
17249  ac_have_decl=1
17250else
17251  ac_have_decl=0
17252fi
17253
17254cat >>confdefs.h <<_ACEOF
17255#define HAVE_DECL_OPTARG $ac_have_decl
17256_ACEOF
17257
17258
17259
17260# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
17261# The cast to long int works around a bug in the HP C Compiler
17262# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17263# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17264# This bug is HP SR number 8606223364.
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
17266$as_echo_n "checking size of signed short... " >&6; }
17267if ${ac_cv_sizeof_signed_short+:} false; then :
17268  $as_echo_n "(cached) " >&6
17269else
17270  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
17271
17272else
17273  if test "$ac_cv_type_signed_short" = yes; then
17274     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17276as_fn_error 77 "cannot compute sizeof (signed short)
17277See \`config.log' for more details" "$LINENO" 5; }
17278   else
17279     ac_cv_sizeof_signed_short=0
17280   fi
17281fi
17282
17283fi
17284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
17285$as_echo "$ac_cv_sizeof_signed_short" >&6; }
17286
17287
17288
17289cat >>confdefs.h <<_ACEOF
17290#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
17291_ACEOF
17292
17293
17294
17295# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
17296# The cast to long int works around a bug in the HP C Compiler
17297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17299# This bug is HP SR number 8606223364.
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
17301$as_echo_n "checking size of unsigned short... " >&6; }
17302if ${ac_cv_sizeof_unsigned_short+:} false; then :
17303  $as_echo_n "(cached) " >&6
17304else
17305  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
17306
17307else
17308  if test "$ac_cv_type_unsigned_short" = yes; then
17309     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17311as_fn_error 77 "cannot compute sizeof (unsigned short)
17312See \`config.log' for more details" "$LINENO" 5; }
17313   else
17314     ac_cv_sizeof_unsigned_short=0
17315   fi
17316fi
17317
17318fi
17319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
17320$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
17321
17322
17323
17324cat >>confdefs.h <<_ACEOF
17325#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
17326_ACEOF
17327
17328
17329
17330# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
17331# The cast to long int works around a bug in the HP C Compiler
17332# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17333# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17334# This bug is HP SR number 8606223364.
17335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
17336$as_echo_n "checking size of signed int... " >&6; }
17337if ${ac_cv_sizeof_signed_int+:} false; then :
17338  $as_echo_n "(cached) " >&6
17339else
17340  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
17341
17342else
17343  if test "$ac_cv_type_signed_int" = yes; then
17344     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17346as_fn_error 77 "cannot compute sizeof (signed int)
17347See \`config.log' for more details" "$LINENO" 5; }
17348   else
17349     ac_cv_sizeof_signed_int=0
17350   fi
17351fi
17352
17353fi
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
17355$as_echo "$ac_cv_sizeof_signed_int" >&6; }
17356
17357
17358
17359cat >>confdefs.h <<_ACEOF
17360#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
17361_ACEOF
17362
17363
17364
17365# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
17366# The cast to long int works around a bug in the HP C Compiler
17367# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17368# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17369# This bug is HP SR number 8606223364.
17370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17371$as_echo_n "checking size of unsigned int... " >&6; }
17372if ${ac_cv_sizeof_unsigned_int+:} false; then :
17373  $as_echo_n "(cached) " >&6
17374else
17375  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
17376
17377else
17378  if test "$ac_cv_type_unsigned_int" = yes; then
17379     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17381as_fn_error 77 "cannot compute sizeof (unsigned int)
17382See \`config.log' for more details" "$LINENO" 5; }
17383   else
17384     ac_cv_sizeof_unsigned_int=0
17385   fi
17386fi
17387
17388fi
17389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17390$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17391
17392
17393
17394cat >>confdefs.h <<_ACEOF
17395#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17396_ACEOF
17397
17398
17399
17400# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
17401# The cast to long int works around a bug in the HP C Compiler
17402# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17403# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17404# This bug is HP SR number 8606223364.
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
17406$as_echo_n "checking size of signed long... " >&6; }
17407if ${ac_cv_sizeof_signed_long+:} false; then :
17408  $as_echo_n "(cached) " >&6
17409else
17410  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
17411
17412else
17413  if test "$ac_cv_type_signed_long" = yes; then
17414     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17416as_fn_error 77 "cannot compute sizeof (signed long)
17417See \`config.log' for more details" "$LINENO" 5; }
17418   else
17419     ac_cv_sizeof_signed_long=0
17420   fi
17421fi
17422
17423fi
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
17425$as_echo "$ac_cv_sizeof_signed_long" >&6; }
17426
17427
17428
17429cat >>confdefs.h <<_ACEOF
17430#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
17431_ACEOF
17432
17433
17434
17435# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
17436# The cast to long int works around a bug in the HP C Compiler
17437# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17438# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17439# This bug is HP SR number 8606223364.
17440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17441$as_echo_n "checking size of unsigned long... " >&6; }
17442if ${ac_cv_sizeof_unsigned_long+:} false; then :
17443  $as_echo_n "(cached) " >&6
17444else
17445  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
17446
17447else
17448  if test "$ac_cv_type_unsigned_long" = yes; then
17449     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17451as_fn_error 77 "cannot compute sizeof (unsigned long)
17452See \`config.log' for more details" "$LINENO" 5; }
17453   else
17454     ac_cv_sizeof_unsigned_long=0
17455   fi
17456fi
17457
17458fi
17459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17460$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17461
17462
17463
17464cat >>confdefs.h <<_ACEOF
17465#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17466_ACEOF
17467
17468
17469
17470# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
17471# If 'long long' is not supported then the value defined is zero.
17472# The cast to long int works around a bug in the HP C Compiler
17473# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17474# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17475# This bug is HP SR number 8606223364.
17476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
17477$as_echo_n "checking size of signed long long... " >&6; }
17478if ${ac_cv_sizeof_signed_long_long+:} false; then :
17479  $as_echo_n "(cached) " >&6
17480else
17481  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
17482
17483else
17484  if test "$ac_cv_type_signed_long_long" = yes; then
17485     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17487as_fn_error 77 "cannot compute sizeof (signed long long)
17488See \`config.log' for more details" "$LINENO" 5; }
17489   else
17490     ac_cv_sizeof_signed_long_long=0
17491   fi
17492fi
17493
17494fi
17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
17496$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
17497
17498
17499
17500cat >>confdefs.h <<_ACEOF
17501#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
17502_ACEOF
17503
17504
17505
17506# Obtain size of a 'unsigned long long' and define as
17507# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
17508# supported then the value defined is zero.
17509# The cast to long int works around a bug in the HP C Compiler
17510# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17511# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17512# This bug is HP SR number 8606223364.
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
17514$as_echo_n "checking size of unsigned long long... " >&6; }
17515if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
17516  $as_echo_n "(cached) " >&6
17517else
17518  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
17519
17520else
17521  if test "$ac_cv_type_unsigned_long_long" = yes; then
17522     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17524as_fn_error 77 "cannot compute sizeof (unsigned long long)
17525See \`config.log' for more details" "$LINENO" 5; }
17526   else
17527     ac_cv_sizeof_unsigned_long_long=0
17528   fi
17529fi
17530
17531fi
17532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
17533$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
17534
17535
17536
17537cat >>confdefs.h <<_ACEOF
17538#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
17539_ACEOF
17540
17541
17542
17543# Obtain the size of an 'unsigned char *' and define as
17544# SIZEOF_UNSIGNED_CHAR_P.  Result is available in
17545# ac_cv_sizeof_unsigned_char_p.
17546# The cast to long int works around a bug in the HP C Compiler
17547# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17548# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17549# This bug is HP SR number 8606223364.
17550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
17551$as_echo_n "checking size of unsigned char *... " >&6; }
17552if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
17553  $as_echo_n "(cached) " >&6
17554else
17555  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p"        "$ac_includes_default"; then :
17556
17557else
17558  if test "$ac_cv_type_unsigned_char_p" = yes; then
17559     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17561as_fn_error 77 "cannot compute sizeof (unsigned char *)
17562See \`config.log' for more details" "$LINENO" 5; }
17563   else
17564     ac_cv_sizeof_unsigned_char_p=0
17565   fi
17566fi
17567
17568fi
17569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
17570$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
17571
17572
17573
17574cat >>confdefs.h <<_ACEOF
17575#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
17576_ACEOF
17577
17578
17579
17580# Obtain the size of 'size_t' and define as SIZEOF_SIZE_T.  Result is
17581# available in ac_cv_sizeof_size_t
17582# The cast to long int works around a bug in the HP C Compiler
17583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17585# This bug is HP SR number 8606223364.
17586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17587$as_echo_n "checking size of size_t... " >&6; }
17588if ${ac_cv_sizeof_size_t+:} false; then :
17589  $as_echo_n "(cached) " >&6
17590else
17591  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17592
17593else
17594  if test "$ac_cv_type_size_t" = yes; then
17595     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17597as_fn_error 77 "cannot compute sizeof (size_t)
17598See \`config.log' for more details" "$LINENO" 5; }
17599   else
17600     ac_cv_sizeof_size_t=0
17601   fi
17602fi
17603
17604fi
17605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17606$as_echo "$ac_cv_sizeof_size_t" >&6; }
17607
17608
17609
17610cat >>confdefs.h <<_ACEOF
17611#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17612_ACEOF
17613
17614
17615
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
17617$as_echo_n "checking for signed 8-bit type... " >&6; }
17618INT8_T='signed char'
17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
17620$as_echo "$INT8_T" >&6; }
17621
17622cat >>confdefs.h <<_ACEOF
17623#define TIFF_INT8_T $INT8_T
17624_ACEOF
17625
17626
17627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
17628$as_echo_n "checking for unsigned 8-bit type... " >&6; }
17629UINT8_T='unsigned char'
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
17631$as_echo "$UINT8_T" >&6; }
17632
17633cat >>confdefs.h <<_ACEOF
17634#define TIFF_UINT8_T $UINT8_T
17635_ACEOF
17636
17637
17638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
17639$as_echo_n "checking for signed 16-bit type... " >&6; }
17640INT16_T='signed short'
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
17642$as_echo "$INT16_T" >&6; }
17643
17644cat >>confdefs.h <<_ACEOF
17645#define TIFF_INT16_T $INT16_T
17646_ACEOF
17647
17648
17649
17650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
17651$as_echo_n "checking for unsigned 16-bit type... " >&6; }
17652UINT16_T='unsigned short'
17653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
17654$as_echo "$UINT16_T" >&6; }
17655
17656cat >>confdefs.h <<_ACEOF
17657#define TIFF_UINT16_T $UINT16_T
17658_ACEOF
17659
17660
17661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
17662$as_echo_n "checking for signed 32-bit type... " >&6; }
17663INT32_T='none'
17664INT32_FORMAT='none'
17665if test $ac_cv_sizeof_signed_int -eq 4
17666then
17667  INT32_T='signed int'
17668  INT32_FORMAT='"%d"'
17669elif test $ac_cv_sizeof_signed_long -eq 4
17670then
17671  INT32_T='signed long'
17672  INT32_FORMAT='"%ld"'
17673fi
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
17675$as_echo "$INT32_T" >&6; }
17676
17677cat >>confdefs.h <<_ACEOF
17678#define TIFF_INT32_T $INT32_T
17679_ACEOF
17680
17681
17682cat >>confdefs.h <<_ACEOF
17683#define TIFF_INT32_FORMAT $INT32_FORMAT
17684_ACEOF
17685
17686
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
17688$as_echo_n "checking for unsigned 32-bit type... " >&6; }
17689UINT32_T='none'
17690UINT32_FORMAT='none'
17691if test $ac_cv_sizeof_unsigned_int -eq 4
17692then
17693  UINT32_T='unsigned int'
17694  UINT32_FORMAT='"%u"'
17695elif test $ac_cv_sizeof_unsigned_long -eq 4
17696then
17697  UINT32_T='unsigned long'
17698  UINT32_FORMAT='"%lu"'
17699fi
17700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17701$as_echo "$UINT32_T" >&6; }
17702
17703cat >>confdefs.h <<_ACEOF
17704#define TIFF_UINT32_T $UINT32_T
17705_ACEOF
17706
17707
17708cat >>confdefs.h <<_ACEOF
17709#define TIFF_UINT32_FORMAT $UINT32_FORMAT
17710_ACEOF
17711
17712
17713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
17714$as_echo_n "checking for signed 64-bit type... " >&6; }
17715INT64_T='none'
17716INT64_FORMAT='none'
17717if test $ac_cv_sizeof_signed_long -eq 8
17718then
17719  INT64_T='signed long'
17720  INT64_FORMAT='"%ld"'
17721elif test $ac_cv_sizeof_signed_long_long -eq 8
17722then
17723  INT64_T='signed long long'
17724  case "${host_os}" in
17725    mingw32*)
17726      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17727      INT64_FORMAT='"%I64d"'
17728      ;;
17729    *)
17730      INT64_FORMAT='"%lld"'
17731      ;;
17732  esac
17733fi
17734
17735
17736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17737$as_echo "$INT64_T" >&6; }
17738
17739cat >>confdefs.h <<_ACEOF
17740#define TIFF_INT64_T $INT64_T
17741_ACEOF
17742
17743
17744cat >>confdefs.h <<_ACEOF
17745#define TIFF_INT64_FORMAT $INT64_FORMAT
17746_ACEOF
17747
17748
17749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
17750$as_echo_n "checking for unsigned 64-bit type... " >&6; }
17751UINT64_T='none'
17752UINT64_FORMAT='none'
17753if test $ac_cv_sizeof_unsigned_long -eq 8
17754then
17755  UINT64_T='unsigned long'
17756  UINT64_FORMAT='"%lu"'
17757elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17758then
17759  UINT64_T='unsigned long long'
17760  case "${host_os}" in
17761    mingw32*)
17762      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17763      UINT64_FORMAT='"%I64u"'
17764      ;;
17765    *)
17766      UINT64_FORMAT='"%llu"'
17767      ;;
17768  esac
17769fi
17770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17771$as_echo "$UINT64_T" >&6; }
17772
17773cat >>confdefs.h <<_ACEOF
17774#define TIFF_UINT64_T $UINT64_T
17775_ACEOF
17776
17777
17778cat >>confdefs.h <<_ACEOF
17779#define TIFF_UINT64_FORMAT $UINT64_FORMAT
17780_ACEOF
17781
17782
17783# Determine formatting specifier for 'size_t'.  While the size should
17784# be precise, the type determined may not match the system definition.
17785# A named type is provided to allow casting to the type we determined
17786# without changing the actual size.
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'size_t' format specifier" >&5
17788$as_echo_n "checking for 'size_t' format specifier... " >&6; }
17789SIZE_T='unknown'
17790SIZE_FORMAT='unknown'
17791if test $ac_cv_sizeof_unsigned_int -eq $ac_cv_sizeof_size_t
17792then
17793  SIZE_T='unsigned int'
17794  SIZE_FORMAT='"%u"'
17795elif test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_size_t
17796then
17797  SIZE_T='unsigned long'
17798  SIZE_FORMAT='"%lu"'
17799elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_size_t
17800then
17801  SIZE_T='unsigned long long'
17802  case "${host_os}" in
17803    mingw32*)
17804      # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17805      SIZE_FORMAT='"%I64u"'
17806      ;;
17807    *)
17808      SIZE_FORMAT='"%llu"'
17809      ;;
17810  esac
17811fi
17812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIZE_FORMAT" >&5
17813$as_echo "$SIZE_FORMAT" >&6; }
17814
17815cat >>confdefs.h <<_ACEOF
17816#define TIFF_SIZE_T $SIZE_T
17817_ACEOF
17818
17819
17820cat >>confdefs.h <<_ACEOF
17821#define TIFF_SIZE_FORMAT $SIZE_FORMAT
17822_ACEOF
17823
17824
17825# Determine TIFF equivalent of ssize_t
17826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
17827$as_echo_n "checking for signed size type... " >&6; }
17828SSIZE_T='unknown'
17829SSIZE_FORMAT='unknown'
17830if test $ac_cv_sizeof_signed_int -eq $ac_cv_sizeof_unsigned_char_p
17831then
17832  SSIZE_T='signed int'
17833  SSIZE_FORMAT='"%d"'
17834elif test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
17835then
17836  SSIZE_T='signed long'
17837  SSIZE_FORMAT='"%ld"'
17838elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
17839then
17840  SSIZE_T='signed long long'
17841  case "${host_os}" in
17842    mingw32*)
17843      # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17844      SSIZE_FORMAT='"%I64d"'
17845      ;;
17846    *)
17847      SSIZE_FORMAT='"%lld"'
17848      ;;
17849  esac
17850fi
17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17852$as_echo "$SSIZE_T" >&6; }
17853
17854cat >>confdefs.h <<_ACEOF
17855#define TIFF_SSIZE_T $SSIZE_T
17856_ACEOF
17857
17858
17859cat >>confdefs.h <<_ACEOF
17860#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
17861_ACEOF
17862
17863
17864# Determine the type to use for the difference between two pointers.
17865# We will default to the POSIX ptrdiff_t if it is available, but will
17866# be prepared for the case when it is not.
17867PTRDIFF_T='unknown'
17868PTRDIFF_FORMAT='"%ld"'
17869ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17870if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17871  PTRDIFF_T=ptrdiff_t
17872fi
17873
17874if test $PTRDIFF_T = unknown
17875then
17876  PTRDIFF_T=$SSIZE_T
17877  PTRDIFF_FORMAT=$SSIZE_FORMAT
17878fi
17879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
17880$as_echo_n "checking for pointer difference type... " >&6; }
17881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
17882$as_echo "$PTRDIFF_T" >&6; }
17883
17884cat >>confdefs.h <<_ACEOF
17885#define TIFF_PTRDIFF_T $PTRDIFF_T
17886_ACEOF
17887
17888
17889cat >>confdefs.h <<_ACEOF
17890#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
17891_ACEOF
17892
17893
17894ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17895#if HAVE_INTTYPES_H
17896# include <inttypes.h>
17897#endif
17898
17899"
17900if test "x$ac_cv_type_int8" = xyes; then :
17901
17902cat >>confdefs.h <<_ACEOF
17903#define HAVE_INT8 1
17904_ACEOF
17905
17906
17907fi
17908ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17909#if HAVE_INTTYPES_H
17910# include <inttypes.h>
17911#endif
17912
17913"
17914if test "x$ac_cv_type_int16" = xyes; then :
17915
17916cat >>confdefs.h <<_ACEOF
17917#define HAVE_INT16 1
17918_ACEOF
17919
17920
17921fi
17922ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17923#if HAVE_INTTYPES_H
17924# include <inttypes.h>
17925#endif
17926
17927"
17928if test "x$ac_cv_type_int32" = xyes; then :
17929
17930cat >>confdefs.h <<_ACEOF
17931#define HAVE_INT32 1
17932_ACEOF
17933
17934
17935fi
17936
17937
17938for ac_func in floor isascii memmove memset mmap pow setmode sqrt\
17939 strchr strrchr strstr strtol strtoull
17940do :
17941  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17942ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17943if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17944  cat >>confdefs.h <<_ACEOF
17945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17946_ACEOF
17947
17948fi
17949done
17950
17951
17952ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17953if test "x$ac_cv_func_getopt" = xyes; then :
17954  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17955
17956else
17957  case " $LIBOBJS " in
17958  *" getopt.$ac_objext "* ) ;;
17959  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17960 ;;
17961esac
17962
17963fi
17964
17965
17966ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17967if test "x$ac_cv_func_strcasecmp" = xyes; then :
17968  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17969
17970else
17971  case " $LIBOBJS " in
17972  *" strcasecmp.$ac_objext "* ) ;;
17973  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17974 ;;
17975esac
17976
17977fi
17978
17979
17980ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17981if test "x$ac_cv_func_strtoul" = xyes; then :
17982  $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
17983
17984else
17985  case " $LIBOBJS " in
17986  *" strtoul.$ac_objext "* ) ;;
17987  *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17988 ;;
17989esac
17990
17991fi
17992
17993
17994ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17995if test "x$ac_cv_func_strtoull" = xyes; then :
17996  $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17997
17998else
17999  case " $LIBOBJS " in
18000  *" strtoull.$ac_objext "* ) ;;
18001  *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
18002 ;;
18003esac
18004
18005fi
18006
18007
18008ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
18009if test "x$ac_cv_func_lfind" = xyes; then :
18010  $as_echo "#define HAVE_LFIND 1" >>confdefs.h
18011
18012else
18013  case " $LIBOBJS " in
18014  *" lfind.$ac_objext "* ) ;;
18015  *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
18016 ;;
18017esac
18018
18019fi
18020
18021
18022
18023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
18024$as_echo_n "checking native cpu bit order... " >&6; }
18025case "$host_cpu" in
18026    i*86*|x86_64*)
18027        HOST_FILLORDER=FILLORDER_LSB2MSB
18028	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
18029$as_echo "lsb2msb" >&6; }
18030	;;
18031    *)
18032	HOST_FILLORDER=FILLORDER_MSB2LSB
18033	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
18034$as_echo "msb2lsb" >&6; }
18035        ;;
18036esac
18037
18038cat >>confdefs.h <<_ACEOF
18039#define HOST_FILLORDER $HOST_FILLORDER
18040_ACEOF
18041
18042
18043if test "$ac_cv_c_bigendian" = yes ; then
18044    HOST_BIGENDIAN=1
18045else
18046    HOST_BIGENDIAN=0
18047fi
18048
18049cat >>confdefs.h <<_ACEOF
18050#define HOST_BIGENDIAN $HOST_BIGENDIAN
18051_ACEOF
18052
18053
18054#_POSIX_C_SOURCE=2
18055#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
18056
18057HAVE_IEEEFP=1
18058
18059cat >>confdefs.h <<_ACEOF
18060#define HAVE_IEEEFP $HAVE_IEEEFP
18061_ACEOF
18062
18063
18064
18065# Check whether --enable-rpath was given.
18066if test "${enable_rpath+set}" = set; then :
18067  enableval=$enable_rpath; HAVE_RPATH=$enableval
18068else
18069  HAVE_RPATH=no
18070fi
18071
18072 if test "$HAVE_RPATH" = "yes"; then
18073  HAVE_RPATH_TRUE=
18074  HAVE_RPATH_FALSE='#'
18075else
18076  HAVE_RPATH_TRUE='#'
18077  HAVE_RPATH_FALSE=
18078fi
18079
18080
18081
18082# Check whether --enable-largefile was given.
18083if test "${enable_largefile+set}" = set; then :
18084  enableval=$enable_largefile;
18085fi
18086
18087if test "$enable_largefile" != no; then
18088
18089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18090$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18091if ${ac_cv_sys_largefile_CC+:} false; then :
18092  $as_echo_n "(cached) " >&6
18093else
18094  ac_cv_sys_largefile_CC=no
18095     if test "$GCC" != yes; then
18096       ac_save_CC=$CC
18097       while :; do
18098	 # IRIX 6.2 and later do not support large files by default,
18099	 # so use the C compiler's -n32 option if that helps.
18100	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101/* end confdefs.h.  */
18102#include <sys/types.h>
18103 /* Check that off_t can represent 2**63 - 1 correctly.
18104    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18105    since some C++ compilers masquerading as C compilers
18106    incorrectly reject 9223372036854775807.  */
18107#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18108  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18109		       && LARGE_OFF_T % 2147483647 == 1)
18110		      ? 1 : -1];
18111int
18112main ()
18113{
18114
18115  ;
18116  return 0;
18117}
18118_ACEOF
18119	 if ac_fn_c_try_compile "$LINENO"; then :
18120  break
18121fi
18122rm -f core conftest.err conftest.$ac_objext
18123	 CC="$CC -n32"
18124	 if ac_fn_c_try_compile "$LINENO"; then :
18125  ac_cv_sys_largefile_CC=' -n32'; break
18126fi
18127rm -f core conftest.err conftest.$ac_objext
18128	 break
18129       done
18130       CC=$ac_save_CC
18131       rm -f conftest.$ac_ext
18132    fi
18133fi
18134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18135$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18136  if test "$ac_cv_sys_largefile_CC" != no; then
18137    CC=$CC$ac_cv_sys_largefile_CC
18138  fi
18139
18140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18141$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18142if ${ac_cv_sys_file_offset_bits+:} false; then :
18143  $as_echo_n "(cached) " >&6
18144else
18145  while :; do
18146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147/* end confdefs.h.  */
18148#include <sys/types.h>
18149 /* Check that off_t can represent 2**63 - 1 correctly.
18150    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18151    since some C++ compilers masquerading as C compilers
18152    incorrectly reject 9223372036854775807.  */
18153#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18154  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18155		       && LARGE_OFF_T % 2147483647 == 1)
18156		      ? 1 : -1];
18157int
18158main ()
18159{
18160
18161  ;
18162  return 0;
18163}
18164_ACEOF
18165if ac_fn_c_try_compile "$LINENO"; then :
18166  ac_cv_sys_file_offset_bits=no; break
18167fi
18168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170/* end confdefs.h.  */
18171#define _FILE_OFFSET_BITS 64
18172#include <sys/types.h>
18173 /* Check that off_t can represent 2**63 - 1 correctly.
18174    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18175    since some C++ compilers masquerading as C compilers
18176    incorrectly reject 9223372036854775807.  */
18177#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18178  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18179		       && LARGE_OFF_T % 2147483647 == 1)
18180		      ? 1 : -1];
18181int
18182main ()
18183{
18184
18185  ;
18186  return 0;
18187}
18188_ACEOF
18189if ac_fn_c_try_compile "$LINENO"; then :
18190  ac_cv_sys_file_offset_bits=64; break
18191fi
18192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193  ac_cv_sys_file_offset_bits=unknown
18194  break
18195done
18196fi
18197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18198$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18199case $ac_cv_sys_file_offset_bits in #(
18200  no | unknown) ;;
18201  *)
18202cat >>confdefs.h <<_ACEOF
18203#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18204_ACEOF
18205;;
18206esac
18207rm -rf conftest*
18208  if test $ac_cv_sys_file_offset_bits = unknown; then
18209    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18210$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18211if ${ac_cv_sys_large_files+:} false; then :
18212  $as_echo_n "(cached) " >&6
18213else
18214  while :; do
18215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217#include <sys/types.h>
18218 /* Check that off_t can represent 2**63 - 1 correctly.
18219    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18220    since some C++ compilers masquerading as C compilers
18221    incorrectly reject 9223372036854775807.  */
18222#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18223  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18224		       && LARGE_OFF_T % 2147483647 == 1)
18225		      ? 1 : -1];
18226int
18227main ()
18228{
18229
18230  ;
18231  return 0;
18232}
18233_ACEOF
18234if ac_fn_c_try_compile "$LINENO"; then :
18235  ac_cv_sys_large_files=no; break
18236fi
18237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239/* end confdefs.h.  */
18240#define _LARGE_FILES 1
18241#include <sys/types.h>
18242 /* Check that off_t can represent 2**63 - 1 correctly.
18243    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18244    since some C++ compilers masquerading as C compilers
18245    incorrectly reject 9223372036854775807.  */
18246#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18247  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18248		       && LARGE_OFF_T % 2147483647 == 1)
18249		      ? 1 : -1];
18250int
18251main ()
18252{
18253
18254  ;
18255  return 0;
18256}
18257_ACEOF
18258if ac_fn_c_try_compile "$LINENO"; then :
18259  ac_cv_sys_large_files=1; break
18260fi
18261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262  ac_cv_sys_large_files=unknown
18263  break
18264done
18265fi
18266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18267$as_echo "$ac_cv_sys_large_files" >&6; }
18268case $ac_cv_sys_large_files in #(
18269  no | unknown) ;;
18270  *)
18271cat >>confdefs.h <<_ACEOF
18272#define _LARGE_FILES $ac_cv_sys_large_files
18273_ACEOF
18274;;
18275esac
18276rm -rf conftest*
18277  fi
18278
18279
18280fi
18281
18282
18283
18284LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
18285
18286
18287# Check whether --with-docdir was given.
18288if test "${with_docdir+set}" = set; then :
18289  withval=$with_docdir;
18290fi
18291
18292if test "x$with_docdir" != "x" ; then
18293  LIBTIFF_DOCDIR=$with_docdir
18294fi
18295
18296
18297
18298
18299# Check whether --enable-ccitt was given.
18300if test "${enable_ccitt+set}" = set; then :
18301  enableval=$enable_ccitt; HAVE_CCITT=$enableval
18302else
18303  HAVE_CCITT=yes
18304fi
18305
18306
18307if test "$HAVE_CCITT" = "yes" ; then
18308
18309$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
18310
18311fi
18312
18313# Check whether --enable-packbits was given.
18314if test "${enable_packbits+set}" = set; then :
18315  enableval=$enable_packbits; HAVE_PACKBITS=$enableval
18316else
18317  HAVE_PACKBITS=yes
18318fi
18319
18320
18321if test "$HAVE_PACKBITS" = "yes" ; then
18322
18323$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
18324
18325fi
18326
18327# Check whether --enable-lzw was given.
18328if test "${enable_lzw+set}" = set; then :
18329  enableval=$enable_lzw; HAVE_LZW=$enableval
18330else
18331  HAVE_LZW=yes
18332fi
18333
18334
18335if test "$HAVE_LZW" = "yes" ; then
18336
18337$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
18338
18339fi
18340
18341# Check whether --enable-thunder was given.
18342if test "${enable_thunder+set}" = set; then :
18343  enableval=$enable_thunder; HAVE_THUNDER=$enableval
18344else
18345  HAVE_THUNDER=yes
18346fi
18347
18348
18349if test "$HAVE_THUNDER" = "yes" ; then
18350
18351$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
18352
18353fi
18354
18355HAVE_NEXT=yes
18356
18357# Check whether --enable-next was given.
18358if test "${enable_next+set}" = set; then :
18359  enableval=$enable_next; HAVE_NEXT=$enableval
18360else
18361  HAVE_NEXT=yes
18362fi
18363
18364
18365if test "$HAVE_NEXT" = "yes" ; then
18366
18367$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
18368
18369fi
18370
18371# Check whether --enable-logluv was given.
18372if test "${enable_logluv+set}" = set; then :
18373  enableval=$enable_logluv; HAVE_LOGLUV=$enableval
18374else
18375  HAVE_LOGLUV=yes
18376fi
18377
18378
18379if test "$HAVE_LOGLUV" = "yes" ; then
18380
18381$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
18382
18383fi
18384
18385
18386# Check whether --enable-mdi was given.
18387if test "${enable_mdi+set}" = set; then :
18388  enableval=$enable_mdi; HAVE_MDI=$enableval
18389else
18390  HAVE_MDI=yes
18391fi
18392
18393
18394if test "$HAVE_MDI" = "yes" ; then
18395
18396$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
18397
18398fi
18399
18400
18401HAVE_ZLIB=no
18402
18403# Check whether --enable-zlib was given.
18404if test "${enable_zlib+set}" = set; then :
18405  enableval=$enable_zlib;
18406fi
18407
18408
18409# Check whether --with-zlib-include-dir was given.
18410if test "${with_zlib_include_dir+set}" = set; then :
18411  withval=$with_zlib_include_dir;
18412fi
18413
18414
18415# Check whether --with-zlib-lib-dir was given.
18416if test "${with_zlib_lib_dir+set}" = set; then :
18417  withval=$with_zlib_lib_dir;
18418fi
18419
18420
18421if test "x$enable_zlib" != "xno" ; then
18422
18423  if test "x$with_zlib_lib_dir" != "x" ; then
18424    LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
18425  fi
18426
18427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
18428$as_echo_n "checking for inflateEnd in -lz... " >&6; }
18429if ${ac_cv_lib_z_inflateEnd+:} false; then :
18430  $as_echo_n "(cached) " >&6
18431else
18432  ac_check_lib_save_LIBS=$LIBS
18433LIBS="-lz  $LIBS"
18434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435/* end confdefs.h.  */
18436
18437/* Override any GCC internal prototype to avoid an error.
18438   Use char because int might match the return type of a GCC
18439   builtin and then its argument prototype would still apply.  */
18440#ifdef __cplusplus
18441extern "C"
18442#endif
18443char inflateEnd ();
18444int
18445main ()
18446{
18447return inflateEnd ();
18448  ;
18449  return 0;
18450}
18451_ACEOF
18452if ac_fn_c_try_link "$LINENO"; then :
18453  ac_cv_lib_z_inflateEnd=yes
18454else
18455  ac_cv_lib_z_inflateEnd=no
18456fi
18457rm -f core conftest.err conftest.$ac_objext \
18458    conftest$ac_exeext conftest.$ac_ext
18459LIBS=$ac_check_lib_save_LIBS
18460fi
18461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
18462$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
18463if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
18464  zlib_lib=yes
18465else
18466  zlib_lib=no
18467fi
18468
18469  if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
18470    as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
18471  fi
18472
18473  if test "x$with_zlib_include_dir" != "x" ; then
18474    CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
18475  fi
18476  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18477if test "x$ac_cv_header_zlib_h" = xyes; then :
18478  zlib_h=yes
18479else
18480  zlib_h=no
18481fi
18482
18483
18484  if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
18485    as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
18486  fi
18487
18488  if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
18489    HAVE_ZLIB=yes
18490  fi
18491
18492fi
18493
18494if test "$HAVE_ZLIB" = "yes" ; then
18495
18496$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
18497
18498  LIBS="-lz $LIBS"
18499  tiff_libs_private="-lz ${tiff_libs_private}"
18500
18501  if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
18502    LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
18503  fi
18504
18505fi
18506
18507
18508# Check whether --enable-pixarlog was given.
18509if test "${enable_pixarlog+set}" = set; then :
18510  enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
18511else
18512  HAVE_PIXARLOG=yes
18513fi
18514
18515
18516if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
18517
18518$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
18519
18520else
18521  HAVE_PIXARLOG=no
18522fi
18523
18524
18525HAVE_JPEG=no
18526
18527# Check whether --enable-jpeg was given.
18528if test "${enable_jpeg+set}" = set; then :
18529  enableval=$enable_jpeg;
18530fi
18531
18532
18533# Check whether --with-jpeg-include-dir was given.
18534if test "${with_jpeg_include_dir+set}" = set; then :
18535  withval=$with_jpeg_include_dir;
18536fi
18537
18538
18539# Check whether --with-jpeg-lib-dir was given.
18540if test "${with_jpeg_lib_dir+set}" = set; then :
18541  withval=$with_jpeg_lib_dir;
18542fi
18543
18544
18545if test "x$enable_jpeg" != "xno" ; then
18546
18547  if test "x$with_jpeg_lib_dir" != "x" ; then
18548    LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
18549
18550  fi
18551
18552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
18553$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
18554if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
18555  $as_echo_n "(cached) " >&6
18556else
18557  ac_check_lib_save_LIBS=$LIBS
18558LIBS="-ljpeg  $LIBS"
18559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560/* end confdefs.h.  */
18561
18562/* Override any GCC internal prototype to avoid an error.
18563   Use char because int might match the return type of a GCC
18564   builtin and then its argument prototype would still apply.  */
18565#ifdef __cplusplus
18566extern "C"
18567#endif
18568char jpeg_read_scanlines ();
18569int
18570main ()
18571{
18572return jpeg_read_scanlines ();
18573  ;
18574  return 0;
18575}
18576_ACEOF
18577if ac_fn_c_try_link "$LINENO"; then :
18578  ac_cv_lib_jpeg_jpeg_read_scanlines=yes
18579else
18580  ac_cv_lib_jpeg_jpeg_read_scanlines=no
18581fi
18582rm -f core conftest.err conftest.$ac_objext \
18583    conftest$ac_exeext conftest.$ac_ext
18584LIBS=$ac_check_lib_save_LIBS
18585fi
18586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
18587$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
18588if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
18589  jpeg_lib=yes
18590else
18591  jpeg_lib=no
18592fi
18593
18594  if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
18595    as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
18596  fi
18597
18598  if test "x$with_jpeg_include_dir" != "x" ; then
18599    CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
18600  fi
18601  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
18602if test "x$ac_cv_header_jpeglib_h" = xyes; then :
18603  jpeg_h=yes
18604else
18605  jpeg_h=no
18606fi
18607
18608
18609  if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
18610    as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
18611  fi
18612
18613  if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
18614    HAVE_JPEG=yes
18615  fi
18616
18617fi
18618
18619if test "$HAVE_JPEG" = "yes" ; then
18620
18621$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
18622
18623  LIBS="-ljpeg $LIBS"
18624  tiff_libs_private="-ljpeg ${tiff_libs_private}"
18625
18626  if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
18627    LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
18628  fi
18629
18630fi
18631
18632 if test "$HAVE_JPEG" = 'yes'; then
18633  HAVE_JPEG_TRUE=
18634  HAVE_JPEG_FALSE='#'
18635else
18636  HAVE_JPEG_TRUE='#'
18637  HAVE_JPEG_FALSE=
18638fi
18639
18640
18641
18642# Check whether --enable-old-jpeg was given.
18643if test "${enable_old_jpeg+set}" = set; then :
18644  enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
18645else
18646  HAVE_OJPEG=yes
18647fi
18648
18649
18650if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
18651
18652$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
18653
18654else
18655  HAVE_OJPEG=no
18656fi
18657
18658
18659HAVE_JBIG=no
18660
18661# Check whether --enable-jbig was given.
18662if test "${enable_jbig+set}" = set; then :
18663  enableval=$enable_jbig;
18664fi
18665
18666
18667# Check whether --with-jbig-include-dir was given.
18668if test "${with_jbig_include_dir+set}" = set; then :
18669  withval=$with_jbig_include_dir;
18670fi
18671
18672
18673# Check whether --with-jbig-lib-dir was given.
18674if test "${with_jbig_lib_dir+set}" = set; then :
18675  withval=$with_jbig_lib_dir;
18676fi
18677
18678
18679if test "x$enable_jbig" != "xno" ; then
18680
18681  if test "x$with_jbig_lib_dir" != "x" ; then
18682    LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
18683
18684  fi
18685
18686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
18687$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
18688if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
18689  $as_echo_n "(cached) " >&6
18690else
18691  ac_check_lib_save_LIBS=$LIBS
18692LIBS="-ljbig  $LIBS"
18693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694/* end confdefs.h.  */
18695
18696/* Override any GCC internal prototype to avoid an error.
18697   Use char because int might match the return type of a GCC
18698   builtin and then its argument prototype would still apply.  */
18699#ifdef __cplusplus
18700extern "C"
18701#endif
18702char jbg_dec_init ();
18703int
18704main ()
18705{
18706return jbg_dec_init ();
18707  ;
18708  return 0;
18709}
18710_ACEOF
18711if ac_fn_c_try_link "$LINENO"; then :
18712  ac_cv_lib_jbig_jbg_dec_init=yes
18713else
18714  ac_cv_lib_jbig_jbg_dec_init=no
18715fi
18716rm -f core conftest.err conftest.$ac_objext \
18717    conftest$ac_exeext conftest.$ac_ext
18718LIBS=$ac_check_lib_save_LIBS
18719fi
18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
18721$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
18722if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
18723  jbig_lib=yes
18724else
18725  jbig_lib=no
18726fi
18727
18728  if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
18729    as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
18730  fi
18731
18732  if test "x$with_jbig_include_dir" != "x" ; then
18733    CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
18734  fi
18735  ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
18736if test "x$ac_cv_header_jbig_h" = xyes; then :
18737  jbig_h=yes
18738else
18739  jbig_h=no
18740fi
18741
18742
18743  if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
18744    as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
18745  fi
18746
18747  if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
18748    HAVE_JBIG=yes
18749  fi
18750
18751fi
18752
18753if test "$HAVE_JBIG" = "yes" ; then
18754
18755$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
18756
18757  LIBS="-ljbig $LIBS"
18758  tiff_libs_private="-ljbig ${tiff_libs_private}"
18759
18760  if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
18761    LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18762  fi
18763
18764  # Older versions of jbigkit lack jbg_newlen
18765  for ac_func in jbg_newlen
18766do :
18767  ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18768if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18769  cat >>confdefs.h <<_ACEOF
18770#define HAVE_JBG_NEWLEN 1
18771_ACEOF
18772
18773fi
18774done
18775
18776
18777fi
18778
18779 if test "$HAVE_JBIG" = 'yes'; then
18780  HAVE_JBIG_TRUE=
18781  HAVE_JBIG_FALSE='#'
18782else
18783  HAVE_JBIG_TRUE='#'
18784  HAVE_JBIG_FALSE=
18785fi
18786
18787
18788
18789HAVE_LZMA=no
18790
18791# Check whether --enable-lzma was given.
18792if test "${enable_lzma+set}" = set; then :
18793  enableval=$enable_lzma;
18794fi
18795
18796
18797# Check whether --with-lzma-include-dir was given.
18798if test "${with_lzma_include_dir+set}" = set; then :
18799  withval=$with_lzma_include_dir;
18800fi
18801
18802
18803# Check whether --with-lzma-lib-dir was given.
18804if test "${with_lzma_lib_dir+set}" = set; then :
18805  withval=$with_lzma_lib_dir;
18806fi
18807
18808
18809if test "x$enable_lzma" != "xno" ; then
18810
18811  if test "x$with_lzma_lib_dir" != "x" ; then
18812    LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18813  fi
18814
18815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18816$as_echo_n "checking for lzma_code in -llzma... " >&6; }
18817if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18818  $as_echo_n "(cached) " >&6
18819else
18820  ac_check_lib_save_LIBS=$LIBS
18821LIBS="-llzma  $LIBS"
18822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823/* end confdefs.h.  */
18824
18825/* Override any GCC internal prototype to avoid an error.
18826   Use char because int might match the return type of a GCC
18827   builtin and then its argument prototype would still apply.  */
18828#ifdef __cplusplus
18829extern "C"
18830#endif
18831char lzma_code ();
18832int
18833main ()
18834{
18835return lzma_code ();
18836  ;
18837  return 0;
18838}
18839_ACEOF
18840if ac_fn_c_try_link "$LINENO"; then :
18841  ac_cv_lib_lzma_lzma_code=yes
18842else
18843  ac_cv_lib_lzma_lzma_code=no
18844fi
18845rm -f core conftest.err conftest.$ac_objext \
18846    conftest$ac_exeext conftest.$ac_ext
18847LIBS=$ac_check_lib_save_LIBS
18848fi
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18850$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18851if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18852  lzma_lib=yes
18853else
18854  lzma_lib=no
18855fi
18856
18857  if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
18858    as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
18859  fi
18860
18861  if test "x$with_lzma_include_dir" != "x" ; then
18862    CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
18863  fi
18864  ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
18865if test "x$ac_cv_header_lzma_h" = xyes; then :
18866  lzma_h=yes
18867else
18868  lzma_h=no
18869fi
18870
18871
18872  if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
18873    as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
18874  fi
18875
18876  if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18877    HAVE_LZMA=yes
18878  fi
18879
18880fi
18881
18882if test "$HAVE_LZMA" = "yes" ; then
18883
18884$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
18885
18886  LIBS="-llzma $LIBS"
18887  tiff_libs_private="-llzma ${tiff_libs_private}"
18888
18889  if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18890    LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18891  fi
18892
18893fi
18894
18895 if test "$HAVE_LZMA" = 'yes'; then
18896  HAVE_LZMA_TRUE=
18897  HAVE_LZMA_FALSE='#'
18898else
18899  HAVE_LZMA_TRUE='#'
18900  HAVE_LZMA_FALSE=
18901fi
18902
18903
18904
18905HAVE_JPEG12=no
18906
18907# Check whether --enable-jpeg12 was given.
18908if test "${enable_jpeg12+set}" = set; then :
18909  enableval=$enable_jpeg12;
18910fi
18911
18912
18913# Check whether --with-jpeg12-include-dir was given.
18914if test "${with_jpeg12_include_dir+set}" = set; then :
18915  withval=$with_jpeg12_include_dir;
18916fi
18917
18918
18919# Check whether --with-jpeg12-lib was given.
18920if test "${with_jpeg12_lib+set}" = set; then :
18921  withval=$with_jpeg12_lib;
18922fi
18923
18924
18925if test "x$enable_jpeg12" = "xyes" ; then
18926
18927  if test "x$with_jpeg12_lib" != "x" ; then
18928    LIBS="$with_jpeg12_lib $LIBS"
18929  fi
18930
18931  HAVE_JPEG12=yes
18932
18933
18934$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
18935
18936  if test "x$with_jpeg12_include_dir" != "x" ; then
18937
18938cat >>confdefs.h <<_ACEOF
18939#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18940_ACEOF
18941
18942  fi
18943fi
18944
18945
18946
18947# Check whether --enable-cxx was given.
18948if test "${enable_cxx+set}" = set; then :
18949  enableval=$enable_cxx; HAVE_CXX=$enableval
18950else
18951  HAVE_CXX=yes
18952fi
18953
18954
18955if test "$HAVE_CXX" = "yes" ; then
18956
18957$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
18958
18959else
18960  HAVE_CXX=no
18961fi
18962
18963 if test "$HAVE_CXX" = "yes"; then
18964  HAVE_CXX_TRUE=
18965  HAVE_CXX_FALSE='#'
18966else
18967  HAVE_CXX_TRUE='#'
18968  HAVE_CXX_FALSE=
18969fi
18970
18971
18972
18973HAVE_OPENGL=no
18974
18975
18976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18977$as_echo_n "checking for X... " >&6; }
18978
18979
18980# Check whether --with-x was given.
18981if test "${with_x+set}" = set; then :
18982  withval=$with_x;
18983fi
18984
18985# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18986if test "x$with_x" = xno; then
18987  # The user explicitly disabled X.
18988  have_x=disabled
18989else
18990  case $x_includes,$x_libraries in #(
18991    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18992    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18993  $as_echo_n "(cached) " >&6
18994else
18995  # One or both of the vars are not set, and there is no cached value.
18996ac_x_includes=no ac_x_libraries=no
18997rm -f -r conftest.dir
18998if mkdir conftest.dir; then
18999  cd conftest.dir
19000  cat >Imakefile <<'_ACEOF'
19001incroot:
19002	@echo incroot='${INCROOT}'
19003usrlibdir:
19004	@echo usrlibdir='${USRLIBDIR}'
19005libdir:
19006	@echo libdir='${LIBDIR}'
19007_ACEOF
19008  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19009    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19010    for ac_var in incroot usrlibdir libdir; do
19011      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19012    done
19013    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19014    for ac_extension in a so sl dylib la dll; do
19015      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19016	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19017	ac_im_usrlibdir=$ac_im_libdir; break
19018      fi
19019    done
19020    # Screen out bogus values from the imake configuration.  They are
19021    # bogus both because they are the default anyway, and because
19022    # using them would break gcc on systems where it needs fixed includes.
19023    case $ac_im_incroot in
19024	/usr/include) ac_x_includes= ;;
19025	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19026    esac
19027    case $ac_im_usrlibdir in
19028	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
19029	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19030    esac
19031  fi
19032  cd ..
19033  rm -f -r conftest.dir
19034fi
19035
19036# Standard set of common directories for X headers.
19037# Check X11 before X11Rn because it is often a symlink to the current release.
19038ac_x_header_dirs='
19039/usr/X11/include
19040/usr/X11R7/include
19041/usr/X11R6/include
19042/usr/X11R5/include
19043/usr/X11R4/include
19044
19045/usr/include/X11
19046/usr/include/X11R7
19047/usr/include/X11R6
19048/usr/include/X11R5
19049/usr/include/X11R4
19050
19051/usr/local/X11/include
19052/usr/local/X11R7/include
19053/usr/local/X11R6/include
19054/usr/local/X11R5/include
19055/usr/local/X11R4/include
19056
19057/usr/local/include/X11
19058/usr/local/include/X11R7
19059/usr/local/include/X11R6
19060/usr/local/include/X11R5
19061/usr/local/include/X11R4
19062
19063/usr/X386/include
19064/usr/x386/include
19065/usr/XFree86/include/X11
19066
19067/usr/include
19068/usr/local/include
19069/usr/unsupported/include
19070/usr/athena/include
19071/usr/local/x11r5/include
19072/usr/lpp/Xamples/include
19073
19074/usr/openwin/include
19075/usr/openwin/share/include'
19076
19077if test "$ac_x_includes" = no; then
19078  # Guess where to find include files, by looking for Xlib.h.
19079  # First, try using that file with no special directory specified.
19080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081/* end confdefs.h.  */
19082#include <X11/Xlib.h>
19083_ACEOF
19084if ac_fn_c_try_cpp "$LINENO"; then :
19085  # We can compile using X headers with no special include directory.
19086ac_x_includes=
19087else
19088  for ac_dir in $ac_x_header_dirs; do
19089  if test -r "$ac_dir/X11/Xlib.h"; then
19090    ac_x_includes=$ac_dir
19091    break
19092  fi
19093done
19094fi
19095rm -f conftest.err conftest.i conftest.$ac_ext
19096fi # $ac_x_includes = no
19097
19098if test "$ac_x_libraries" = no; then
19099  # Check for the libraries.
19100  # See if we find them without any special options.
19101  # Don't add to $LIBS permanently.
19102  ac_save_LIBS=$LIBS
19103  LIBS="-lX11 $LIBS"
19104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19105/* end confdefs.h.  */
19106#include <X11/Xlib.h>
19107int
19108main ()
19109{
19110XrmInitialize ()
19111  ;
19112  return 0;
19113}
19114_ACEOF
19115if ac_fn_c_try_link "$LINENO"; then :
19116  LIBS=$ac_save_LIBS
19117# We can link X programs with no special library path.
19118ac_x_libraries=
19119else
19120  LIBS=$ac_save_LIBS
19121for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19122do
19123  # Don't even attempt the hair of trying to link an X program!
19124  for ac_extension in a so sl dylib la dll; do
19125    if test -r "$ac_dir/libX11.$ac_extension"; then
19126      ac_x_libraries=$ac_dir
19127      break 2
19128    fi
19129  done
19130done
19131fi
19132rm -f core conftest.err conftest.$ac_objext \
19133    conftest$ac_exeext conftest.$ac_ext
19134fi # $ac_x_libraries = no
19135
19136case $ac_x_includes,$ac_x_libraries in #(
19137  no,* | *,no | *\'*)
19138    # Didn't find X, or a directory has "'" in its name.
19139    ac_cv_have_x="have_x=no";; #(
19140  *)
19141    # Record where we found X for the cache.
19142    ac_cv_have_x="have_x=yes\
19143	ac_x_includes='$ac_x_includes'\
19144	ac_x_libraries='$ac_x_libraries'"
19145esac
19146fi
19147;; #(
19148    *) have_x=yes;;
19149  esac
19150  eval "$ac_cv_have_x"
19151fi # $with_x != no
19152
19153if test "$have_x" != yes; then
19154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19155$as_echo "$have_x" >&6; }
19156  no_x=yes
19157else
19158  # If each of the values was on the command line, it overrides each guess.
19159  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19160  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19161  # Update the cache value to reflect the command line values.
19162  ac_cv_have_x="have_x=yes\
19163	ac_x_includes='$x_includes'\
19164	ac_x_libraries='$x_libraries'"
19165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19166$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19167fi
19168
19169if test "$no_x" = yes; then
19170  # Not all programs may use this symbol, but it does not hurt to define it.
19171
19172$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19173
19174  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19175else
19176  if test -n "$x_includes"; then
19177    X_CFLAGS="$X_CFLAGS -I$x_includes"
19178  fi
19179
19180  # It would also be nice to do this for all -L options, not just this one.
19181  if test -n "$x_libraries"; then
19182    X_LIBS="$X_LIBS -L$x_libraries"
19183    # For Solaris; some versions of Sun CC require a space after -R and
19184    # others require no space.  Words are not sufficient . . . .
19185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19186$as_echo_n "checking whether -R must be followed by a space... " >&6; }
19187    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19188    ac_xsave_c_werror_flag=$ac_c_werror_flag
19189    ac_c_werror_flag=yes
19190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191/* end confdefs.h.  */
19192
19193int
19194main ()
19195{
19196
19197  ;
19198  return 0;
19199}
19200_ACEOF
19201if ac_fn_c_try_link "$LINENO"; then :
19202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19203$as_echo "no" >&6; }
19204       X_LIBS="$X_LIBS -R$x_libraries"
19205else
19206  LIBS="$ac_xsave_LIBS -R $x_libraries"
19207       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208/* end confdefs.h.  */
19209
19210int
19211main ()
19212{
19213
19214  ;
19215  return 0;
19216}
19217_ACEOF
19218if ac_fn_c_try_link "$LINENO"; then :
19219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220$as_echo "yes" >&6; }
19221	  X_LIBS="$X_LIBS -R $x_libraries"
19222else
19223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19224$as_echo "neither works" >&6; }
19225fi
19226rm -f core conftest.err conftest.$ac_objext \
19227    conftest$ac_exeext conftest.$ac_ext
19228fi
19229rm -f core conftest.err conftest.$ac_objext \
19230    conftest$ac_exeext conftest.$ac_ext
19231    ac_c_werror_flag=$ac_xsave_c_werror_flag
19232    LIBS=$ac_xsave_LIBS
19233  fi
19234
19235  # Check for system-dependent libraries X programs must link with.
19236  # Do this before checking for the system-independent R6 libraries
19237  # (-lICE), since we may need -lsocket or whatever for X linking.
19238
19239  if test "$ISC" = yes; then
19240    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19241  else
19242    # Martyn Johnson says this is needed for Ultrix, if the X
19243    # libraries were built with DECnet support.  And Karl Berry says
19244    # the Alpha needs dnet_stub (dnet does not exist).
19245    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19246    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247/* end confdefs.h.  */
19248
19249/* Override any GCC internal prototype to avoid an error.
19250   Use char because int might match the return type of a GCC
19251   builtin and then its argument prototype would still apply.  */
19252#ifdef __cplusplus
19253extern "C"
19254#endif
19255char XOpenDisplay ();
19256int
19257main ()
19258{
19259return XOpenDisplay ();
19260  ;
19261  return 0;
19262}
19263_ACEOF
19264if ac_fn_c_try_link "$LINENO"; then :
19265
19266else
19267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19268$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19269if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
19270  $as_echo_n "(cached) " >&6
19271else
19272  ac_check_lib_save_LIBS=$LIBS
19273LIBS="-ldnet  $LIBS"
19274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19275/* end confdefs.h.  */
19276
19277/* Override any GCC internal prototype to avoid an error.
19278   Use char because int might match the return type of a GCC
19279   builtin and then its argument prototype would still apply.  */
19280#ifdef __cplusplus
19281extern "C"
19282#endif
19283char dnet_ntoa ();
19284int
19285main ()
19286{
19287return dnet_ntoa ();
19288  ;
19289  return 0;
19290}
19291_ACEOF
19292if ac_fn_c_try_link "$LINENO"; then :
19293  ac_cv_lib_dnet_dnet_ntoa=yes
19294else
19295  ac_cv_lib_dnet_dnet_ntoa=no
19296fi
19297rm -f core conftest.err conftest.$ac_objext \
19298    conftest$ac_exeext conftest.$ac_ext
19299LIBS=$ac_check_lib_save_LIBS
19300fi
19301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19302$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19303if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
19304  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19305fi
19306
19307    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19308      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19309$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19310if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
19311  $as_echo_n "(cached) " >&6
19312else
19313  ac_check_lib_save_LIBS=$LIBS
19314LIBS="-ldnet_stub  $LIBS"
19315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316/* end confdefs.h.  */
19317
19318/* Override any GCC internal prototype to avoid an error.
19319   Use char because int might match the return type of a GCC
19320   builtin and then its argument prototype would still apply.  */
19321#ifdef __cplusplus
19322extern "C"
19323#endif
19324char dnet_ntoa ();
19325int
19326main ()
19327{
19328return dnet_ntoa ();
19329  ;
19330  return 0;
19331}
19332_ACEOF
19333if ac_fn_c_try_link "$LINENO"; then :
19334  ac_cv_lib_dnet_stub_dnet_ntoa=yes
19335else
19336  ac_cv_lib_dnet_stub_dnet_ntoa=no
19337fi
19338rm -f core conftest.err conftest.$ac_objext \
19339    conftest$ac_exeext conftest.$ac_ext
19340LIBS=$ac_check_lib_save_LIBS
19341fi
19342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19343$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19344if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
19345  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19346fi
19347
19348    fi
19349fi
19350rm -f core conftest.err conftest.$ac_objext \
19351    conftest$ac_exeext conftest.$ac_ext
19352    LIBS="$ac_xsave_LIBS"
19353
19354    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
19355    # to get the SysV transport functions.
19356    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19357    # needs -lnsl.
19358    # The nsl library prevents programs from opening the X display
19359    # on Irix 5.2, according to T.E. Dickey.
19360    # The functions gethostbyname, getservbyname, and inet_addr are
19361    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19362    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19363if test "x$ac_cv_func_gethostbyname" = xyes; then :
19364
19365fi
19366
19367    if test $ac_cv_func_gethostbyname = no; then
19368      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19369$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19370if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19371  $as_echo_n "(cached) " >&6
19372else
19373  ac_check_lib_save_LIBS=$LIBS
19374LIBS="-lnsl  $LIBS"
19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376/* end confdefs.h.  */
19377
19378/* Override any GCC internal prototype to avoid an error.
19379   Use char because int might match the return type of a GCC
19380   builtin and then its argument prototype would still apply.  */
19381#ifdef __cplusplus
19382extern "C"
19383#endif
19384char gethostbyname ();
19385int
19386main ()
19387{
19388return gethostbyname ();
19389  ;
19390  return 0;
19391}
19392_ACEOF
19393if ac_fn_c_try_link "$LINENO"; then :
19394  ac_cv_lib_nsl_gethostbyname=yes
19395else
19396  ac_cv_lib_nsl_gethostbyname=no
19397fi
19398rm -f core conftest.err conftest.$ac_objext \
19399    conftest$ac_exeext conftest.$ac_ext
19400LIBS=$ac_check_lib_save_LIBS
19401fi
19402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19403$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19404if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19405  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19406fi
19407
19408      if test $ac_cv_lib_nsl_gethostbyname = no; then
19409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19410$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19411if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
19412  $as_echo_n "(cached) " >&6
19413else
19414  ac_check_lib_save_LIBS=$LIBS
19415LIBS="-lbsd  $LIBS"
19416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417/* end confdefs.h.  */
19418
19419/* Override any GCC internal prototype to avoid an error.
19420   Use char because int might match the return type of a GCC
19421   builtin and then its argument prototype would still apply.  */
19422#ifdef __cplusplus
19423extern "C"
19424#endif
19425char gethostbyname ();
19426int
19427main ()
19428{
19429return gethostbyname ();
19430  ;
19431  return 0;
19432}
19433_ACEOF
19434if ac_fn_c_try_link "$LINENO"; then :
19435  ac_cv_lib_bsd_gethostbyname=yes
19436else
19437  ac_cv_lib_bsd_gethostbyname=no
19438fi
19439rm -f core conftest.err conftest.$ac_objext \
19440    conftest$ac_exeext conftest.$ac_ext
19441LIBS=$ac_check_lib_save_LIBS
19442fi
19443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19444$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19445if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
19446  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19447fi
19448
19449      fi
19450    fi
19451
19452    # [email protected] says without -lsocket,
19453    # socket/setsockopt and other routines are undefined under SCO ODT
19454    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19455    # on later versions), says Simon Leinen: it contains gethostby*
19456    # variants that don't use the name server (or something).  -lsocket
19457    # must be given before -lnsl if both are needed.  We assume that
19458    # if connect needs -lnsl, so does gethostbyname.
19459    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19460if test "x$ac_cv_func_connect" = xyes; then :
19461
19462fi
19463
19464    if test $ac_cv_func_connect = no; then
19465      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19466$as_echo_n "checking for connect in -lsocket... " >&6; }
19467if ${ac_cv_lib_socket_connect+:} false; then :
19468  $as_echo_n "(cached) " >&6
19469else
19470  ac_check_lib_save_LIBS=$LIBS
19471LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473/* end confdefs.h.  */
19474
19475/* Override any GCC internal prototype to avoid an error.
19476   Use char because int might match the return type of a GCC
19477   builtin and then its argument prototype would still apply.  */
19478#ifdef __cplusplus
19479extern "C"
19480#endif
19481char connect ();
19482int
19483main ()
19484{
19485return connect ();
19486  ;
19487  return 0;
19488}
19489_ACEOF
19490if ac_fn_c_try_link "$LINENO"; then :
19491  ac_cv_lib_socket_connect=yes
19492else
19493  ac_cv_lib_socket_connect=no
19494fi
19495rm -f core conftest.err conftest.$ac_objext \
19496    conftest$ac_exeext conftest.$ac_ext
19497LIBS=$ac_check_lib_save_LIBS
19498fi
19499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19500$as_echo "$ac_cv_lib_socket_connect" >&6; }
19501if test "x$ac_cv_lib_socket_connect" = xyes; then :
19502  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19503fi
19504
19505    fi
19506
19507    # Guillermo Gomez says -lposix is necessary on A/UX.
19508    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19509if test "x$ac_cv_func_remove" = xyes; then :
19510
19511fi
19512
19513    if test $ac_cv_func_remove = no; then
19514      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19515$as_echo_n "checking for remove in -lposix... " >&6; }
19516if ${ac_cv_lib_posix_remove+:} false; then :
19517  $as_echo_n "(cached) " >&6
19518else
19519  ac_check_lib_save_LIBS=$LIBS
19520LIBS="-lposix  $LIBS"
19521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522/* end confdefs.h.  */
19523
19524/* Override any GCC internal prototype to avoid an error.
19525   Use char because int might match the return type of a GCC
19526   builtin and then its argument prototype would still apply.  */
19527#ifdef __cplusplus
19528extern "C"
19529#endif
19530char remove ();
19531int
19532main ()
19533{
19534return remove ();
19535  ;
19536  return 0;
19537}
19538_ACEOF
19539if ac_fn_c_try_link "$LINENO"; then :
19540  ac_cv_lib_posix_remove=yes
19541else
19542  ac_cv_lib_posix_remove=no
19543fi
19544rm -f core conftest.err conftest.$ac_objext \
19545    conftest$ac_exeext conftest.$ac_ext
19546LIBS=$ac_check_lib_save_LIBS
19547fi
19548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19549$as_echo "$ac_cv_lib_posix_remove" >&6; }
19550if test "x$ac_cv_lib_posix_remove" = xyes; then :
19551  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19552fi
19553
19554    fi
19555
19556    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19557    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19558if test "x$ac_cv_func_shmat" = xyes; then :
19559
19560fi
19561
19562    if test $ac_cv_func_shmat = no; then
19563      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19564$as_echo_n "checking for shmat in -lipc... " >&6; }
19565if ${ac_cv_lib_ipc_shmat+:} false; then :
19566  $as_echo_n "(cached) " >&6
19567else
19568  ac_check_lib_save_LIBS=$LIBS
19569LIBS="-lipc  $LIBS"
19570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571/* end confdefs.h.  */
19572
19573/* Override any GCC internal prototype to avoid an error.
19574   Use char because int might match the return type of a GCC
19575   builtin and then its argument prototype would still apply.  */
19576#ifdef __cplusplus
19577extern "C"
19578#endif
19579char shmat ();
19580int
19581main ()
19582{
19583return shmat ();
19584  ;
19585  return 0;
19586}
19587_ACEOF
19588if ac_fn_c_try_link "$LINENO"; then :
19589  ac_cv_lib_ipc_shmat=yes
19590else
19591  ac_cv_lib_ipc_shmat=no
19592fi
19593rm -f core conftest.err conftest.$ac_objext \
19594    conftest$ac_exeext conftest.$ac_ext
19595LIBS=$ac_check_lib_save_LIBS
19596fi
19597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19598$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19599if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19600  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19601fi
19602
19603    fi
19604  fi
19605
19606  # Check for libraries that X11R6 Xt/Xaw programs need.
19607  ac_save_LDFLAGS=$LDFLAGS
19608  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19609  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19610  # check for ICE first), but we must link in the order -lSM -lICE or
19611  # we get undefined symbols.  So assume we have SM if we have ICE.
19612  # These have to be linked with before -lX11, unlike the other
19613  # libraries we check for below, so use a different variable.
19614  # John Interrante, Karl Berry
19615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19616$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19617if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19618  $as_echo_n "(cached) " >&6
19619else
19620  ac_check_lib_save_LIBS=$LIBS
19621LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623/* end confdefs.h.  */
19624
19625/* Override any GCC internal prototype to avoid an error.
19626   Use char because int might match the return type of a GCC
19627   builtin and then its argument prototype would still apply.  */
19628#ifdef __cplusplus
19629extern "C"
19630#endif
19631char IceConnectionNumber ();
19632int
19633main ()
19634{
19635return IceConnectionNumber ();
19636  ;
19637  return 0;
19638}
19639_ACEOF
19640if ac_fn_c_try_link "$LINENO"; then :
19641  ac_cv_lib_ICE_IceConnectionNumber=yes
19642else
19643  ac_cv_lib_ICE_IceConnectionNumber=no
19644fi
19645rm -f core conftest.err conftest.$ac_objext \
19646    conftest$ac_exeext conftest.$ac_ext
19647LIBS=$ac_check_lib_save_LIBS
19648fi
19649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19650$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19651if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19652  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19653fi
19654
19655  LDFLAGS=$ac_save_LDFLAGS
19656
19657fi
19658
19659
19660
19661
19662
19663ac_ext=c
19664ac_cpp='$CPP $CPPFLAGS'
19665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667ac_compiler_gnu=$ac_cv_c_compiler_gnu
19668
19669ax_pthread_ok=no
19670
19671
19672if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19673        save_CFLAGS="$CFLAGS"
19674        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19675        save_LIBS="$LIBS"
19676        LIBS="$PTHREAD_LIBS $LIBS"
19677        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19678$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19679        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680/* end confdefs.h.  */
19681
19682/* Override any GCC internal prototype to avoid an error.
19683   Use char because int might match the return type of a GCC
19684   builtin and then its argument prototype would still apply.  */
19685#ifdef __cplusplus
19686extern "C"
19687#endif
19688char pthread_join ();
19689int
19690main ()
19691{
19692return pthread_join ();
19693  ;
19694  return 0;
19695}
19696_ACEOF
19697if ac_fn_c_try_link "$LINENO"; then :
19698  ax_pthread_ok=yes
19699fi
19700rm -f core conftest.err conftest.$ac_objext \
19701    conftest$ac_exeext conftest.$ac_ext
19702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19703$as_echo "$ax_pthread_ok" >&6; }
19704        if test x"$ax_pthread_ok" = xno; then
19705                PTHREAD_LIBS=""
19706                PTHREAD_CFLAGS=""
19707        fi
19708        LIBS="$save_LIBS"
19709        CFLAGS="$save_CFLAGS"
19710fi
19711
19712
19713
19714ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19715
19716
19717
19718case "${host_cpu}-${host_os}" in
19719        *solaris*)
19720
19721
19722        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19723        ;;
19724
19725	*-darwin*)
19726	ax_pthread_flags="-pthread $ax_pthread_flags"
19727	;;
19728esac
19729
19730if test x"$ax_pthread_ok" = xno; then
19731for flag in $ax_pthread_flags; do
19732
19733        case $flag in
19734                none)
19735                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19736$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19737                ;;
19738
19739                -*)
19740                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19741$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19742                PTHREAD_CFLAGS="$flag"
19743                ;;
19744
19745		pthread-config)
19746		# Extract the first word of "pthread-config", so it can be a program name with args.
19747set dummy pthread-config; ac_word=$2
19748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19749$as_echo_n "checking for $ac_word... " >&6; }
19750if ${ac_cv_prog_ax_pthread_config+:} false; then :
19751  $as_echo_n "(cached) " >&6
19752else
19753  if test -n "$ax_pthread_config"; then
19754  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19755else
19756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19757for as_dir in $PATH
19758do
19759  IFS=$as_save_IFS
19760  test -z "$as_dir" && as_dir=.
19761    for ac_exec_ext in '' $ac_executable_extensions; do
19762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19763    ac_cv_prog_ax_pthread_config="yes"
19764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19765    break 2
19766  fi
19767done
19768  done
19769IFS=$as_save_IFS
19770
19771  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19772fi
19773fi
19774ax_pthread_config=$ac_cv_prog_ax_pthread_config
19775if test -n "$ax_pthread_config"; then
19776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19777$as_echo "$ax_pthread_config" >&6; }
19778else
19779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19780$as_echo "no" >&6; }
19781fi
19782
19783
19784		if test x"$ax_pthread_config" = xno; then continue; fi
19785		PTHREAD_CFLAGS="`pthread-config --cflags`"
19786		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19787		;;
19788
19789                *)
19790                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19791$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19792                PTHREAD_LIBS="-l$flag"
19793                ;;
19794        esac
19795
19796        save_LIBS="$LIBS"
19797        save_CFLAGS="$CFLAGS"
19798        LIBS="$PTHREAD_LIBS $LIBS"
19799        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19800
19801                                                                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802/* end confdefs.h.  */
19803#include <pthread.h>
19804	             static void routine(void* a) {a=0;}
19805	             static void* start_routine(void* a) {return a;}
19806int
19807main ()
19808{
19809pthread_t th; pthread_attr_t attr;
19810                     pthread_create(&th,0,start_routine,0);
19811                     pthread_join(th, 0);
19812                     pthread_attr_init(&attr);
19813                     pthread_cleanup_push(routine, 0);
19814                     pthread_cleanup_pop(0);
19815  ;
19816  return 0;
19817}
19818_ACEOF
19819if ac_fn_c_try_link "$LINENO"; then :
19820  ax_pthread_ok=yes
19821fi
19822rm -f core conftest.err conftest.$ac_objext \
19823    conftest$ac_exeext conftest.$ac_ext
19824
19825        LIBS="$save_LIBS"
19826        CFLAGS="$save_CFLAGS"
19827
19828        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19829$as_echo "$ax_pthread_ok" >&6; }
19830        if test "x$ax_pthread_ok" = xyes; then
19831                break;
19832        fi
19833
19834        PTHREAD_LIBS=""
19835        PTHREAD_CFLAGS=""
19836done
19837fi
19838
19839if test "x$ax_pthread_ok" = xyes; then
19840        save_LIBS="$LIBS"
19841        LIBS="$PTHREAD_LIBS $LIBS"
19842        save_CFLAGS="$CFLAGS"
19843        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19844
19845        	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19846$as_echo_n "checking for joinable pthread attribute... " >&6; }
19847	attr_name=unknown
19848	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19849	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850/* end confdefs.h.  */
19851#include <pthread.h>
19852int
19853main ()
19854{
19855int attr=$attr; return attr;
19856  ;
19857  return 0;
19858}
19859_ACEOF
19860if ac_fn_c_try_link "$LINENO"; then :
19861  attr_name=$attr; break
19862fi
19863rm -f core conftest.err conftest.$ac_objext \
19864    conftest$ac_exeext conftest.$ac_ext
19865	done
19866        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19867$as_echo "$attr_name" >&6; }
19868        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
19869
19870cat >>confdefs.h <<_ACEOF
19871#define PTHREAD_CREATE_JOINABLE $attr_name
19872_ACEOF
19873
19874        fi
19875
19876        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19877$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19878        flag=no
19879        case "${host_cpu}-${host_os}" in
19880            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19881            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19882        esac
19883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19884$as_echo "${flag}" >&6; }
19885        if test "x$flag" != xno; then
19886            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19887        fi
19888
19889        LIBS="$save_LIBS"
19890        CFLAGS="$save_CFLAGS"
19891
19892        	if test x"$GCC" != xyes; then
19893          for ac_prog in xlc_r cc_r
19894do
19895  # Extract the first word of "$ac_prog", so it can be a program name with args.
19896set dummy $ac_prog; ac_word=$2
19897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19898$as_echo_n "checking for $ac_word... " >&6; }
19899if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19900  $as_echo_n "(cached) " >&6
19901else
19902  if test -n "$PTHREAD_CC"; then
19903  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19904else
19905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19906for as_dir in $PATH
19907do
19908  IFS=$as_save_IFS
19909  test -z "$as_dir" && as_dir=.
19910    for ac_exec_ext in '' $ac_executable_extensions; do
19911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19912    ac_cv_prog_PTHREAD_CC="$ac_prog"
19913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19914    break 2
19915  fi
19916done
19917  done
19918IFS=$as_save_IFS
19919
19920fi
19921fi
19922PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19923if test -n "$PTHREAD_CC"; then
19924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19925$as_echo "$PTHREAD_CC" >&6; }
19926else
19927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928$as_echo "no" >&6; }
19929fi
19930
19931
19932  test -n "$PTHREAD_CC" && break
19933done
19934test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19935
19936        else
19937          PTHREAD_CC=$CC
19938	fi
19939else
19940        PTHREAD_CC="$CC"
19941fi
19942
19943
19944
19945
19946
19947if test x"$ax_pthread_ok" = xyes; then
19948
19949$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19950
19951        :
19952else
19953        ax_pthread_ok=no
19954
19955fi
19956ac_ext=c
19957ac_cpp='$CPP $CPPFLAGS'
19958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19960ac_compiler_gnu=$ac_cv_c_compiler_gnu
19961
19962
19963
19964
19965ac_ext=c
19966ac_cpp='$CPP $CPPFLAGS'
19967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19969ac_compiler_gnu=$ac_cv_c_compiler_gnu
19970
19971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
19972$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
19973if ${ax_cv_c_compiler_ms+:} false; then :
19974  $as_echo_n "(cached) " >&6
19975else
19976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977/* end confdefs.h.  */
19978
19979int
19980main ()
19981{
19982#ifndef _MSC_VER
19983       choke me
19984#endif
19985
19986  ;
19987  return 0;
19988}
19989_ACEOF
19990if ac_fn_c_try_compile "$LINENO"; then :
19991  ax_compiler_ms=yes
19992else
19993  ax_compiler_ms=no
19994fi
19995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996ax_cv_c_compiler_ms=$ax_compiler_ms
19997
19998fi
19999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
20000$as_echo "$ax_cv_c_compiler_ms" >&6; }
20001if test X$ax_compiler_ms = Xno; then :
20002  GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
20003fi
20004
20005if test "X$no_x" != "Xyes"; then :
20006  if test -n "$x_includes"; then :
20007  GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
20008fi
20009       if test -n "$x_libraries"; then :
20010  GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
20011fi
20012fi
20013
20014ax_save_CPPFLAGS="${CPPFLAGS}"
20015CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20016for ac_header in GL/gl.h OpenGL/gl.h
20017do :
20018  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20019ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20020if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20021  cat >>confdefs.h <<_ACEOF
20022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20023_ACEOF
20024
20025fi
20026
20027done
20028
20029CPPFLAGS="${ax_save_CPPFLAGS}"
20030
20031for ac_header in windows.h
20032do :
20033  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
20034if test "x$ac_cv_header_windows_h" = xyes; then :
20035  cat >>confdefs.h <<_ACEOF
20036#define HAVE_WINDOWS_H 1
20037_ACEOF
20038
20039fi
20040
20041done
20042
20043
20044
20045
20046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
20047$as_echo_n "checking for OpenGL library... " >&6; }
20048if ${ax_cv_check_gl_libgl+:} false; then :
20049  $as_echo_n "(cached) " >&6
20050else
20051  ax_cv_check_gl_libgl="no"
20052case $host_cpu in
20053  x86_64) ax_check_gl_libdir=lib64 ;;
20054  *)      ax_check_gl_libdir=lib ;;
20055esac
20056ax_save_CPPFLAGS="${CPPFLAGS}"
20057CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20058ax_save_LIBS="${LIBS}"
20059LIBS=""
20060ax_check_libs="-lopengl32 -lGL"
20061for ax_lib in ${ax_check_libs}; do
20062  if test X$ax_compiler_ms = Xyes; then :
20063  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20064else
20065  ax_try_lib="${ax_lib}"
20066fi
20067  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069/* end confdefs.h.  */
20070
20071# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20072#   include <windows.h>
20073# endif
20074# ifdef HAVE_GL_GL_H
20075#   include <GL/gl.h>
20076# elif defined(HAVE_OPENGL_GL_H)
20077#   include <OpenGL/gl.h>
20078# else
20079#   error no gl.h
20080# endif
20081int
20082main ()
20083{
20084glBegin(0)
20085  ;
20086  return 0;
20087}
20088_ACEOF
20089if ac_fn_c_try_link "$LINENO"; then :
20090  ax_cv_check_gl_libgl="${ax_try_lib}"; break
20091else
20092  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}"
20093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20094/* end confdefs.h.  */
20095
20096# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20097#   include <windows.h>
20098# endif
20099# ifdef HAVE_GL_GL_H
20100#   include <GL/gl.h>
20101# elif defined(HAVE_OPENGL_GL_H)
20102#   include <OpenGL/gl.h>
20103# else
20104#   error no gl.h
20105# endif
20106int
20107main ()
20108{
20109glBegin(0)
20110  ;
20111  return 0;
20112}
20113_ACEOF
20114if ac_fn_c_try_link "$LINENO"; then :
20115  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
20116else
20117  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}"
20118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20119/* end confdefs.h.  */
20120
20121# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20122#   include <windows.h>
20123# endif
20124# ifdef HAVE_GL_GL_H
20125#   include <GL/gl.h>
20126# elif defined(HAVE_OPENGL_GL_H)
20127#   include <OpenGL/gl.h>
20128# else
20129#   error no gl.h
20130# endif
20131int
20132main ()
20133{
20134glBegin(0)
20135  ;
20136  return 0;
20137}
20138_ACEOF
20139if ac_fn_c_try_link "$LINENO"; then :
20140  ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
20141fi
20142rm -f core conftest.err conftest.$ac_objext \
20143    conftest$ac_exeext conftest.$ac_ext
20144fi
20145rm -f core conftest.err conftest.$ac_objext \
20146    conftest$ac_exeext conftest.$ac_ext
20147fi
20148rm -f core conftest.err conftest.$ac_objext \
20149    conftest$ac_exeext conftest.$ac_ext
20150done
20151
20152if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
20153  LIBS='-framework OpenGL'
20154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155/* end confdefs.h.  */
20156
20157# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20158#   include <windows.h>
20159# endif
20160# ifdef HAVE_GL_GL_H
20161#   include <GL/gl.h>
20162# elif defined(HAVE_OPENGL_GL_H)
20163#   include <OpenGL/gl.h>
20164# else
20165#   error no gl.h
20166# endif
20167int
20168main ()
20169{
20170glBegin(0)
20171  ;
20172  return 0;
20173}
20174_ACEOF
20175if ac_fn_c_try_link "$LINENO"; then :
20176  ax_cv_check_gl_libgl="$LIBS"
20177fi
20178rm -f core conftest.err conftest.$ac_objext \
20179    conftest$ac_exeext conftest.$ac_ext
20180fi
20181
20182LIBS=${ax_save_LIBS}
20183CPPFLAGS=${ax_save_CPPFLAGS}
20184fi
20185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
20186$as_echo "$ax_cv_check_gl_libgl" >&6; }
20187
20188if test "X$ax_cv_check_gl_libgl" = Xno; then :
20189  no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
20190else
20191  GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
20192fi
20193ac_ext=c
20194ac_cpp='$CPP $CPPFLAGS'
20195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20197ac_compiler_gnu=$ac_cv_c_compiler_gnu
20198
20199
20200
20201
20202
20203
20204GLU_CFLAGS="${GL_CFLAGS}"
20205
20206ax_save_CPPFLAGS="${CPPFLAGS}"
20207CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20208for ac_header in GL/glu.h OpenGL/glu.h
20209do :
20210  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20211ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20212if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20213  cat >>confdefs.h <<_ACEOF
20214#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20215_ACEOF
20216
20217fi
20218
20219done
20220
20221CPPFLAGS="${ax_save_CPPFLAGS}"
20222
20223
20224
20225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
20226$as_echo_n "checking for OpenGL Utility library... " >&6; }
20227if ${ax_cv_check_glu_libglu+:} false; then :
20228  $as_echo_n "(cached) " >&6
20229else
20230  ax_cv_check_glu_libglu="no"
20231ax_save_CPPFLAGS="${CPPFLAGS}"
20232CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
20233ax_save_LIBS="${LIBS}"
20234
20235LIBS="${GL_LIBS} ${ax_save_LIBS}"
20236ac_ext=cpp
20237ac_cpp='$CXXCPP $CPPFLAGS'
20238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20241
20242if test X$ax_compiler_ms = Xyes; then :
20243  ac_ext=c
20244ac_cpp='$CPP $CPPFLAGS'
20245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20247ac_compiler_gnu=$ac_cv_c_compiler_gnu
20248
20249fi
20250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251/* end confdefs.h.  */
20252
20253# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20254#   include <windows.h>
20255# endif
20256# ifdef HAVE_GL_GLU_H
20257#   include <GL/glu.h>
20258# elif defined(HAVE_OPENGL_GLU_H)
20259#   include <OpenGL/glu.h>
20260# else
20261#   error no glu.h
20262# endif
20263int
20264main ()
20265{
20266gluBeginCurve(0)
20267  ;
20268  return 0;
20269}
20270_ACEOF
20271if ac_fn_c_try_link "$LINENO"; then :
20272  ax_cv_check_glu_libglu=yes
20273else
20274  LIBS=""
20275ax_check_libs="-lglu32 -lGLU"
20276for ax_lib in ${ax_check_libs}; do
20277  if test X$ax_compiler_ms = Xyes; then :
20278  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20279else
20280  ax_try_lib="${ax_lib}"
20281fi
20282  LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
20283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284/* end confdefs.h.  */
20285
20286# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
20287#   include <windows.h>
20288# endif
20289# ifdef HAVE_GL_GLU_H
20290#   include <GL/glu.h>
20291# elif defined(HAVE_OPENGL_GLU_H)
20292#   include <OpenGL/glu.h>
20293# else
20294#   error no glu.h
20295# endif
20296int
20297main ()
20298{
20299gluBeginCurve(0)
20300  ;
20301  return 0;
20302}
20303_ACEOF
20304if ac_fn_c_try_link "$LINENO"; then :
20305  ax_cv_check_glu_libglu="${ax_try_lib}"; break
20306fi
20307rm -f core conftest.err conftest.$ac_objext \
20308    conftest$ac_exeext conftest.$ac_ext
20309done
20310
20311fi
20312rm -f core conftest.err conftest.$ac_objext \
20313    conftest$ac_exeext conftest.$ac_ext
20314if test X$ax_compiler_ms = Xyes; then :
20315  ac_ext=cpp
20316ac_cpp='$CXXCPP $CPPFLAGS'
20317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20320
20321fi
20322ac_ext=c
20323ac_cpp='$CPP $CPPFLAGS'
20324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326ac_compiler_gnu=$ac_cv_c_compiler_gnu
20327
20328
20329LIBS=${ax_save_LIBS}
20330CPPFLAGS=${ax_save_CPPFLAGS}
20331fi
20332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
20333$as_echo "$ax_cv_check_glu_libglu" >&6; }
20334if test "X$ax_cv_check_glu_libglu" = Xno; then :
20335  no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
20336else
20337  if test "X$ax_cv_check_glu_libglu" = Xyes; then :
20338  GLU_LIBS="$GL_LIBS"
20339else
20340  GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
20341fi
20342fi
20343
20344
20345
20346if test "X$ax_cv_check_glu_libglu" != Xno; then :
20347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
20348$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
20349if ${ax_cv_varargs_glu_tesscb+:} false; then :
20350  $as_echo_n "(cached) " >&6
20351else
20352  ax_cv_varargs_glu_tesscb=no
20353ax_save_CFLAGS="$CFLAGS"
20354CFLAGS="$GL_CFLAGS $CFLAGS"
20355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356/* end confdefs.h.  */
20357
20358# ifdef HAVE_GL_GLU_H
20359#   include <GL/glu.h>
20360# else
20361#   include <OpenGL/glu.h>
20362# endif
20363int
20364main ()
20365{
20366GLvoid (*func)(...); gluTessCallback(0, 0, func)
20367  ;
20368  return 0;
20369}
20370_ACEOF
20371if ac_fn_c_try_compile "$LINENO"; then :
20372  ax_cv_varargs_glu_tesscb=yes
20373fi
20374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375CFLAGS="$ax_save_CFLAGS"
20376fi
20377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
20378$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
20379if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
20380
20381$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
20382
20383fi
20384fi
20385
20386
20387
20388ax_save_CPPFLAGS="${CPPFLAGS}"
20389CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
20390for ac_header in GL/glut.h GLUT/glut.h
20391do :
20392  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20393ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20395  cat >>confdefs.h <<_ACEOF
20396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20397_ACEOF
20398
20399fi
20400
20401done
20402
20403CPPFLAGS="${ax_save_CPPFLAGS}"
20404
20405GLUT_CFLAGS=${GLU_CFLAGS}
20406GLUT_LIBS=${GLU_LIBS}
20407
20408
20409
20410if test X$no_x != Xyes; then :
20411  GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
20412fi
20413
20414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
20415$as_echo_n "checking for GLUT library... " >&6; }
20416if ${ax_cv_check_glut_libglut+:} false; then :
20417  $as_echo_n "(cached) " >&6
20418else
20419  ax_cv_check_glut_libglut="no"
20420ac_ext=c
20421ac_cpp='$CPP $CPPFLAGS'
20422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424ac_compiler_gnu=$ac_cv_c_compiler_gnu
20425
20426ax_save_CPPFLAGS="${CPPFLAGS}"
20427CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
20428ax_save_LIBS="${LIBS}"
20429LIBS=""
20430ax_check_libs="-lglut32 -lglut"
20431for ax_lib in ${ax_check_libs}; do
20432  if test X$ax_compiler_ms = Xyes; then :
20433  ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
20434else
20435  ax_try_lib="${ax_lib}"
20436fi
20437  LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
20438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20439/* end confdefs.h.  */
20440
20441# if HAVE_WINDOWS_H && defined(_WIN32)
20442#   include <windows.h>
20443# endif
20444# ifdef HAVE_GL_GLUT_H
20445#   include <GL/glut.h>
20446# elif defined(HAVE_GLUT_GLUT_H)
20447#   include <GLUT/glut.h>
20448# else
20449#   error no glut.h
20450# endif
20451int
20452main ()
20453{
20454glutMainLoop()
20455  ;
20456  return 0;
20457}
20458_ACEOF
20459if ac_fn_c_try_link "$LINENO"; then :
20460  ax_cv_check_glut_libglut="${ax_try_lib}"; break
20461fi
20462rm -f core conftest.err conftest.$ac_objext \
20463    conftest$ac_exeext conftest.$ac_ext
20464done
20465
20466if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
20467  LIBS='-framework GLUT'
20468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20469/* end confdefs.h.  */
20470
20471# if HAVE_WINDOWS_H && defined(_WIN32)
20472#   include <windows.h>
20473# endif
20474# ifdef HAVE_GL_GLUT_H
20475#   include <GL/glut.h>
20476# elif defined(HAVE_GLUT_GLUT_H)
20477#   include <GLUT/glut.h>
20478# else
20479#   error no glut.h
20480# endif
20481int
20482main ()
20483{
20484glutMainLoop()
20485  ;
20486  return 0;
20487}
20488_ACEOF
20489if ac_fn_c_try_link "$LINENO"; then :
20490  ax_cv_check_glut_libglut="$LIBS"
20491fi
20492rm -f core conftest.err conftest.$ac_objext \
20493    conftest$ac_exeext conftest.$ac_ext
20494fi
20495
20496CPPFLAGS="${ax_save_CPPFLAGS}"
20497LIBS="${ax_save_LIBS}"
20498ac_ext=c
20499ac_cpp='$CPP $CPPFLAGS'
20500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20502ac_compiler_gnu=$ac_cv_c_compiler_gnu
20503
20504fi
20505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
20506$as_echo "$ax_cv_check_glut_libglut" >&6; }
20507
20508if test "X$ax_cv_check_glut_libglut" = Xno; then :
20509  no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
20510else
20511  GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
20512fi
20513
20514
20515
20516
20517
20518if test "$no_x" != "yes" -a "$no_gl" != "yes" \
20519	-a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
20520  HAVE_OPENGL=yes
20521fi
20522
20523 if test "$HAVE_OPENGL" = "yes"; then
20524  HAVE_OPENGL_TRUE=
20525  HAVE_OPENGL_FALSE='#'
20526else
20527  HAVE_OPENGL_TRUE='#'
20528  HAVE_OPENGL_FALSE=
20529fi
20530
20531
20532
20533# Check whether --enable-win32-io was given.
20534if test "${enable_win32_io+set}" = set; then :
20535  enableval=$enable_win32_io;
20536fi
20537
20538
20539win32_io_ok=no
20540case "${host_os}" in
20541    cygwin*)
20542        if test x"$ac_cv_header_windows_h" = xyes -a "x$enable_win32_io" = xyes ; then
20543            win32_io_ok=yes
20544	fi
20545        ;;
20546    *)
20547        if test x"$ac_cv_header_windows_h" = xyes -a ! "x$enable_win32_io" = xno ; then
20548            win32_io_ok=yes
20549	fi
20550        ;;
20551esac
20552
20553if test "$win32_io_ok" = "yes" ; then
20554
20555$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
20556
20557fi
20558
20559 if test "$win32_io_ok" = yes; then
20560  WIN32_IO_TRUE=
20561  WIN32_IO_FALSE='#'
20562else
20563  WIN32_IO_TRUE='#'
20564  WIN32_IO_FALSE=
20565fi
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575# Check whether --enable-strip-chopping was given.
20576if test "${enable_strip_chopping+set}" = set; then :
20577  enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
20578else
20579  HAVE_STRIPCHOP=yes
20580fi
20581
20582
20583# Check whether --with-default-strip-size was given.
20584if test "${with_default_strip_size+set}" = set; then :
20585  withval=$with_default_strip_size;
20586fi
20587
20588
20589if test "$HAVE_STRIPCHOP" = "yes" \
20590	-a "x$with_default_strip_size" != "xno"; then
20591
20592$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
20593
20594
20595  if test "x$with_default_strip_size" = "x" \
20596	  -o "x$with_default_strip_size" = "xyes"; then
20597    with_default_strip_size="8192"
20598  fi
20599
20600
20601cat >>confdefs.h <<_ACEOF
20602#define STRIP_SIZE_DEFAULT $with_default_strip_size
20603_ACEOF
20604
20605
20606fi
20607
20608
20609# Check whether --enable-defer-strile-load was given.
20610if test "${enable_defer_strile_load+set}" = set; then :
20611  enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
20612else
20613  HAVE_DEFER_STRILE_LOAD=no
20614fi
20615
20616
20617if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
20618
20619$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
20620
20621
20622fi
20623
20624
20625# Check whether --enable-chunky-strip-read was given.
20626if test "${enable_chunky_strip_read+set}" = set; then :
20627  enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
20628else
20629  HAVE_CHUNKY_STRIP_READ=no
20630fi
20631
20632
20633if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
20634
20635$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
20636
20637
20638fi
20639
20640
20641$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
20642
20643
20644
20645# Check whether --enable-extrasample-as-alpha was given.
20646if test "${enable_extrasample_as_alpha+set}" = set; then :
20647  enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
20648else
20649  HAVE_EXTRASAMPLE_AS_ALPHA=yes
20650fi
20651
20652
20653if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
20654
20655$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
20656
20657fi
20658
20659
20660# Check whether --enable-check-ycbcr-subsampling was given.
20661if test "${enable_check_ycbcr_subsampling+set}" = set; then :
20662  enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
20663else
20664  CHECK_JPEG_YCBCR_SUBSAMPLING=yes
20665fi
20666
20667
20668if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
20669
20670$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
20671
20672fi
20673
20674
20675
20676
20677ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
20678
20679
20680ac_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"
20681
20682cat >confcache <<\_ACEOF
20683# This file is a shell script that caches the results of configure
20684# tests run on this system so they can be shared between configure
20685# scripts and configure runs, see configure's option --config-cache.
20686# It is not useful on other systems.  If it contains results you don't
20687# want to keep, you may remove or edit it.
20688#
20689# config.status only pays attention to the cache file if you give it
20690# the --recheck option to rerun configure.
20691#
20692# `ac_cv_env_foo' variables (set or unset) will be overridden when
20693# loading this file, other *unset* `ac_cv_foo' will be assigned the
20694# following values.
20695
20696_ACEOF
20697
20698# The following way of writing the cache mishandles newlines in values,
20699# but we know of no workaround that is simple, portable, and efficient.
20700# So, we kill variables containing newlines.
20701# Ultrix sh set writes to stderr and can't be redirected directly,
20702# and sets the high bit in the cache file unless we assign to the vars.
20703(
20704  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20705    eval ac_val=\$$ac_var
20706    case $ac_val in #(
20707    *${as_nl}*)
20708      case $ac_var in #(
20709      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20710$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20711      esac
20712      case $ac_var in #(
20713      _ | IFS | as_nl) ;; #(
20714      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20715      *) { eval $ac_var=; unset $ac_var;} ;;
20716      esac ;;
20717    esac
20718  done
20719
20720  (set) 2>&1 |
20721    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20722    *${as_nl}ac_space=\ *)
20723      # `set' does not quote correctly, so add quotes: double-quote
20724      # substitution turns \\\\ into \\, and sed turns \\ into \.
20725      sed -n \
20726	"s/'/'\\\\''/g;
20727	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20728      ;; #(
20729    *)
20730      # `set' quotes correctly as required by POSIX, so do not add quotes.
20731      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20732      ;;
20733    esac |
20734    sort
20735) |
20736  sed '
20737     /^ac_cv_env_/b end
20738     t clear
20739     :clear
20740     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20741     t end
20742     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20743     :end' >>confcache
20744if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20745  if test -w "$cache_file"; then
20746    if test "x$cache_file" != "x/dev/null"; then
20747      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20748$as_echo "$as_me: updating cache $cache_file" >&6;}
20749      if test ! -f "$cache_file" || test -h "$cache_file"; then
20750	cat confcache >"$cache_file"
20751      else
20752        case $cache_file in #(
20753        */* | ?:*)
20754	  mv -f confcache "$cache_file"$$ &&
20755	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20756        *)
20757	  mv -f confcache "$cache_file" ;;
20758	esac
20759      fi
20760    fi
20761  else
20762    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20763$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20764  fi
20765fi
20766rm -f confcache
20767
20768test "x$prefix" = xNONE && prefix=$ac_default_prefix
20769# Let make expand exec_prefix.
20770test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20771
20772DEFS=-DHAVE_CONFIG_H
20773
20774ac_libobjs=
20775ac_ltlibobjs=
20776U=
20777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20778  # 1. Remove the extension, and $U if already installed.
20779  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20780  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20781  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20782  #    will be set to the directory where LIBOBJS objects are built.
20783  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20784  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20785done
20786LIBOBJS=$ac_libobjs
20787
20788LTLIBOBJS=$ac_ltlibobjs
20789
20790
20791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20792$as_echo_n "checking that generated files are newer than configure... " >&6; }
20793   if test -n "$am_sleep_pid"; then
20794     # Hide warnings about reused PIDs.
20795     wait $am_sleep_pid 2>/dev/null
20796   fi
20797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20798$as_echo "done" >&6; }
20799 if test -n "$EXEEXT"; then
20800  am__EXEEXT_TRUE=
20801  am__EXEEXT_FALSE='#'
20802else
20803  am__EXEEXT_TRUE='#'
20804  am__EXEEXT_FALSE=
20805fi
20806
20807if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20808  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20809Usually this means the macro was only invoked conditionally." "$LINENO" 5
20810fi
20811if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20812  as_fn_error $? "conditional \"AMDEP\" was never defined.
20813Usually this means the macro was only invoked conditionally." "$LINENO" 5
20814fi
20815if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20816  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20817Usually this means the macro was only invoked conditionally." "$LINENO" 5
20818fi
20819if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20820  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20821Usually this means the macro was only invoked conditionally." "$LINENO" 5
20822fi
20823if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20824  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20825Usually this means the macro was only invoked conditionally." "$LINENO" 5
20826fi
20827
20828if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20829  as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
20830Usually this means the macro was only invoked conditionally." "$LINENO" 5
20831fi
20832if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then
20833  as_fn_error $? "conditional \"HAVE_JPEG\" was never defined.
20834Usually this means the macro was only invoked conditionally." "$LINENO" 5
20835fi
20836if test -z "${HAVE_JBIG_TRUE}" && test -z "${HAVE_JBIG_FALSE}"; then
20837  as_fn_error $? "conditional \"HAVE_JBIG\" was never defined.
20838Usually this means the macro was only invoked conditionally." "$LINENO" 5
20839fi
20840if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
20841  as_fn_error $? "conditional \"HAVE_LZMA\" was never defined.
20842Usually this means the macro was only invoked conditionally." "$LINENO" 5
20843fi
20844if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20845  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20846Usually this means the macro was only invoked conditionally." "$LINENO" 5
20847fi
20848if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20849  as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
20850Usually this means the macro was only invoked conditionally." "$LINENO" 5
20851fi
20852if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
20853  as_fn_error $? "conditional \"WIN32_IO\" was never defined.
20854Usually this means the macro was only invoked conditionally." "$LINENO" 5
20855fi
20856
20857: "${CONFIG_STATUS=./config.status}"
20858ac_write_fail=0
20859ac_clean_files_save=$ac_clean_files
20860ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20861{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20862$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20863as_write_fail=0
20864cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20865#! $SHELL
20866# Generated by $as_me.
20867# Run this file to recreate the current configuration.
20868# Compiler output produced by configure, useful for debugging
20869# configure, is in config.log if it exists.
20870
20871debug=false
20872ac_cs_recheck=false
20873ac_cs_silent=false
20874
20875SHELL=\${CONFIG_SHELL-$SHELL}
20876export SHELL
20877_ASEOF
20878cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20879## -------------------- ##
20880## M4sh Initialization. ##
20881## -------------------- ##
20882
20883# Be more Bourne compatible
20884DUALCASE=1; export DUALCASE # for MKS sh
20885if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20886  emulate sh
20887  NULLCMD=:
20888  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20889  # is contrary to our usage.  Disable this feature.
20890  alias -g '${1+"$@"}'='"$@"'
20891  setopt NO_GLOB_SUBST
20892else
20893  case `(set -o) 2>/dev/null` in #(
20894  *posix*) :
20895    set -o posix ;; #(
20896  *) :
20897     ;;
20898esac
20899fi
20900
20901
20902as_nl='
20903'
20904export as_nl
20905# Printing a long string crashes Solaris 7 /usr/bin/printf.
20906as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20907as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20908as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20909# Prefer a ksh shell builtin over an external printf program on Solaris,
20910# but without wasting forks for bash or zsh.
20911if test -z "$BASH_VERSION$ZSH_VERSION" \
20912    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20913  as_echo='print -r --'
20914  as_echo_n='print -rn --'
20915elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20916  as_echo='printf %s\n'
20917  as_echo_n='printf %s'
20918else
20919  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20920    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20921    as_echo_n='/usr/ucb/echo -n'
20922  else
20923    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20924    as_echo_n_body='eval
20925      arg=$1;
20926      case $arg in #(
20927      *"$as_nl"*)
20928	expr "X$arg" : "X\\(.*\\)$as_nl";
20929	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20930      esac;
20931      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20932    '
20933    export as_echo_n_body
20934    as_echo_n='sh -c $as_echo_n_body as_echo'
20935  fi
20936  export as_echo_body
20937  as_echo='sh -c $as_echo_body as_echo'
20938fi
20939
20940# The user is always right.
20941if test "${PATH_SEPARATOR+set}" != set; then
20942  PATH_SEPARATOR=:
20943  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20944    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20945      PATH_SEPARATOR=';'
20946  }
20947fi
20948
20949
20950# IFS
20951# We need space, tab and new line, in precisely that order.  Quoting is
20952# there to prevent editors from complaining about space-tab.
20953# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20954# splitting by setting IFS to empty value.)
20955IFS=" ""	$as_nl"
20956
20957# Find who we are.  Look in the path if we contain no directory separator.
20958as_myself=
20959case $0 in #((
20960  *[\\/]* ) as_myself=$0 ;;
20961  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20962for as_dir in $PATH
20963do
20964  IFS=$as_save_IFS
20965  test -z "$as_dir" && as_dir=.
20966    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20967  done
20968IFS=$as_save_IFS
20969
20970     ;;
20971esac
20972# We did not find ourselves, most probably we were run as `sh COMMAND'
20973# in which case we are not to be found in the path.
20974if test "x$as_myself" = x; then
20975  as_myself=$0
20976fi
20977if test ! -f "$as_myself"; then
20978  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20979  exit 1
20980fi
20981
20982# Unset variables that we do not need and which cause bugs (e.g. in
20983# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20984# suppresses any "Segmentation fault" message there.  '((' could
20985# trigger a bug in pdksh 5.2.14.
20986for as_var in BASH_ENV ENV MAIL MAILPATH
20987do eval test x\${$as_var+set} = xset \
20988  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20989done
20990PS1='$ '
20991PS2='> '
20992PS4='+ '
20993
20994# NLS nuisances.
20995LC_ALL=C
20996export LC_ALL
20997LANGUAGE=C
20998export LANGUAGE
20999
21000# CDPATH.
21001(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21002
21003
21004# as_fn_error STATUS ERROR [LINENO LOG_FD]
21005# ----------------------------------------
21006# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21007# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21008# script with STATUS, using 1 if that was 0.
21009as_fn_error ()
21010{
21011  as_status=$1; test $as_status -eq 0 && as_status=1
21012  if test "$4"; then
21013    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21014    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21015  fi
21016  $as_echo "$as_me: error: $2" >&2
21017  as_fn_exit $as_status
21018} # as_fn_error
21019
21020
21021# as_fn_set_status STATUS
21022# -----------------------
21023# Set $? to STATUS, without forking.
21024as_fn_set_status ()
21025{
21026  return $1
21027} # as_fn_set_status
21028
21029# as_fn_exit STATUS
21030# -----------------
21031# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21032as_fn_exit ()
21033{
21034  set +e
21035  as_fn_set_status $1
21036  exit $1
21037} # as_fn_exit
21038
21039# as_fn_unset VAR
21040# ---------------
21041# Portably unset VAR.
21042as_fn_unset ()
21043{
21044  { eval $1=; unset $1;}
21045}
21046as_unset=as_fn_unset
21047# as_fn_append VAR VALUE
21048# ----------------------
21049# Append the text in VALUE to the end of the definition contained in VAR. Take
21050# advantage of any shell optimizations that allow amortized linear growth over
21051# repeated appends, instead of the typical quadratic growth present in naive
21052# implementations.
21053if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21054  eval 'as_fn_append ()
21055  {
21056    eval $1+=\$2
21057  }'
21058else
21059  as_fn_append ()
21060  {
21061    eval $1=\$$1\$2
21062  }
21063fi # as_fn_append
21064
21065# as_fn_arith ARG...
21066# ------------------
21067# Perform arithmetic evaluation on the ARGs, and store the result in the
21068# global $as_val. Take advantage of shells that can avoid forks. The arguments
21069# must be portable across $(()) and expr.
21070if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21071  eval 'as_fn_arith ()
21072  {
21073    as_val=$(( $* ))
21074  }'
21075else
21076  as_fn_arith ()
21077  {
21078    as_val=`expr "$@" || test $? -eq 1`
21079  }
21080fi # as_fn_arith
21081
21082
21083if expr a : '\(a\)' >/dev/null 2>&1 &&
21084   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21085  as_expr=expr
21086else
21087  as_expr=false
21088fi
21089
21090if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21091  as_basename=basename
21092else
21093  as_basename=false
21094fi
21095
21096if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21097  as_dirname=dirname
21098else
21099  as_dirname=false
21100fi
21101
21102as_me=`$as_basename -- "$0" ||
21103$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21104	 X"$0" : 'X\(//\)$' \| \
21105	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21106$as_echo X/"$0" |
21107    sed '/^.*\/\([^/][^/]*\)\/*$/{
21108	    s//\1/
21109	    q
21110	  }
21111	  /^X\/\(\/\/\)$/{
21112	    s//\1/
21113	    q
21114	  }
21115	  /^X\/\(\/\).*/{
21116	    s//\1/
21117	    q
21118	  }
21119	  s/.*/./; q'`
21120
21121# Avoid depending upon Character Ranges.
21122as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21123as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21124as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21125as_cr_digits='0123456789'
21126as_cr_alnum=$as_cr_Letters$as_cr_digits
21127
21128ECHO_C= ECHO_N= ECHO_T=
21129case `echo -n x` in #(((((
21130-n*)
21131  case `echo 'xy\c'` in
21132  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21133  xy)  ECHO_C='\c';;
21134  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21135       ECHO_T='	';;
21136  esac;;
21137*)
21138  ECHO_N='-n';;
21139esac
21140
21141rm -f conf$$ conf$$.exe conf$$.file
21142if test -d conf$$.dir; then
21143  rm -f conf$$.dir/conf$$.file
21144else
21145  rm -f conf$$.dir
21146  mkdir conf$$.dir 2>/dev/null
21147fi
21148if (echo >conf$$.file) 2>/dev/null; then
21149  if ln -s conf$$.file conf$$ 2>/dev/null; then
21150    as_ln_s='ln -s'
21151    # ... but there are two gotchas:
21152    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21153    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21154    # In both cases, we have to default to `cp -pR'.
21155    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21156      as_ln_s='cp -pR'
21157  elif ln conf$$.file conf$$ 2>/dev/null; then
21158    as_ln_s=ln
21159  else
21160    as_ln_s='cp -pR'
21161  fi
21162else
21163  as_ln_s='cp -pR'
21164fi
21165rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21166rmdir conf$$.dir 2>/dev/null
21167
21168
21169# as_fn_mkdir_p
21170# -------------
21171# Create "$as_dir" as a directory, including parents if necessary.
21172as_fn_mkdir_p ()
21173{
21174
21175  case $as_dir in #(
21176  -*) as_dir=./$as_dir;;
21177  esac
21178  test -d "$as_dir" || eval $as_mkdir_p || {
21179    as_dirs=
21180    while :; do
21181      case $as_dir in #(
21182      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21183      *) as_qdir=$as_dir;;
21184      esac
21185      as_dirs="'$as_qdir' $as_dirs"
21186      as_dir=`$as_dirname -- "$as_dir" ||
21187$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21188	 X"$as_dir" : 'X\(//\)[^/]' \| \
21189	 X"$as_dir" : 'X\(//\)$' \| \
21190	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21191$as_echo X"$as_dir" |
21192    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21193	    s//\1/
21194	    q
21195	  }
21196	  /^X\(\/\/\)[^/].*/{
21197	    s//\1/
21198	    q
21199	  }
21200	  /^X\(\/\/\)$/{
21201	    s//\1/
21202	    q
21203	  }
21204	  /^X\(\/\).*/{
21205	    s//\1/
21206	    q
21207	  }
21208	  s/.*/./; q'`
21209      test -d "$as_dir" && break
21210    done
21211    test -z "$as_dirs" || eval "mkdir $as_dirs"
21212  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21213
21214
21215} # as_fn_mkdir_p
21216if mkdir -p . 2>/dev/null; then
21217  as_mkdir_p='mkdir -p "$as_dir"'
21218else
21219  test -d ./-p && rmdir ./-p
21220  as_mkdir_p=false
21221fi
21222
21223
21224# as_fn_executable_p FILE
21225# -----------------------
21226# Test if FILE is an executable regular file.
21227as_fn_executable_p ()
21228{
21229  test -f "$1" && test -x "$1"
21230} # as_fn_executable_p
21231as_test_x='test -x'
21232as_executable_p=as_fn_executable_p
21233
21234# Sed expression to map a string onto a valid CPP name.
21235as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21236
21237# Sed expression to map a string onto a valid variable name.
21238as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21239
21240
21241exec 6>&1
21242## ----------------------------------- ##
21243## Main body of $CONFIG_STATUS script. ##
21244## ----------------------------------- ##
21245_ASEOF
21246test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21247
21248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21249# Save the log message, to keep $0 and so on meaningful, and to
21250# report actual input values of CONFIG_FILES etc. instead of their
21251# values after options handling.
21252ac_log="
21253This file was extended by LibTIFF Software $as_me 4.0.4beta, which was
21254generated by GNU Autoconf 2.69.  Invocation command line was
21255
21256  CONFIG_FILES    = $CONFIG_FILES
21257  CONFIG_HEADERS  = $CONFIG_HEADERS
21258  CONFIG_LINKS    = $CONFIG_LINKS
21259  CONFIG_COMMANDS = $CONFIG_COMMANDS
21260  $ $0 $@
21261
21262on `(hostname || uname -n) 2>/dev/null | sed 1q`
21263"
21264
21265_ACEOF
21266
21267case $ac_config_files in *"
21268"*) set x $ac_config_files; shift; ac_config_files=$*;;
21269esac
21270
21271case $ac_config_headers in *"
21272"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21273esac
21274
21275
21276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21277# Files that config.status was made for.
21278config_files="$ac_config_files"
21279config_headers="$ac_config_headers"
21280config_commands="$ac_config_commands"
21281
21282_ACEOF
21283
21284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21285ac_cs_usage="\
21286\`$as_me' instantiates files and other configuration actions
21287from templates according to the current configuration.  Unless the files
21288and actions are specified as TAGs, all are instantiated by default.
21289
21290Usage: $0 [OPTION]... [TAG]...
21291
21292  -h, --help       print this help, then exit
21293  -V, --version    print version number and configuration settings, then exit
21294      --config     print configuration, then exit
21295  -q, --quiet, --silent
21296                   do not print progress messages
21297  -d, --debug      don't remove temporary files
21298      --recheck    update $as_me by reconfiguring in the same conditions
21299      --file=FILE[:TEMPLATE]
21300                   instantiate the configuration file FILE
21301      --header=FILE[:TEMPLATE]
21302                   instantiate the configuration header FILE
21303
21304Configuration files:
21305$config_files
21306
21307Configuration headers:
21308$config_headers
21309
21310Configuration commands:
21311$config_commands
21312
21313Report bugs to <[email protected]>."
21314
21315_ACEOF
21316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21317ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21318ac_cs_version="\\
21319LibTIFF Software config.status 4.0.4beta
21320configured by $0, generated by GNU Autoconf 2.69,
21321  with options \\"\$ac_cs_config\\"
21322
21323Copyright (C) 2012 Free Software Foundation, Inc.
21324This config.status script is free software; the Free Software Foundation
21325gives unlimited permission to copy, distribute and modify it."
21326
21327ac_pwd='$ac_pwd'
21328srcdir='$srcdir'
21329INSTALL='$INSTALL'
21330MKDIR_P='$MKDIR_P'
21331AWK='$AWK'
21332test -n "\$AWK" || AWK=awk
21333_ACEOF
21334
21335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21336# The default lists apply if the user does not specify any file.
21337ac_need_defaults=:
21338while test $# != 0
21339do
21340  case $1 in
21341  --*=?*)
21342    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21343    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21344    ac_shift=:
21345    ;;
21346  --*=)
21347    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21348    ac_optarg=
21349    ac_shift=:
21350    ;;
21351  *)
21352    ac_option=$1
21353    ac_optarg=$2
21354    ac_shift=shift
21355    ;;
21356  esac
21357
21358  case $ac_option in
21359  # Handling of the options.
21360  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21361    ac_cs_recheck=: ;;
21362  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21363    $as_echo "$ac_cs_version"; exit ;;
21364  --config | --confi | --conf | --con | --co | --c )
21365    $as_echo "$ac_cs_config"; exit ;;
21366  --debug | --debu | --deb | --de | --d | -d )
21367    debug=: ;;
21368  --file | --fil | --fi | --f )
21369    $ac_shift
21370    case $ac_optarg in
21371    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21372    '') as_fn_error $? "missing file argument" ;;
21373    esac
21374    as_fn_append CONFIG_FILES " '$ac_optarg'"
21375    ac_need_defaults=false;;
21376  --header | --heade | --head | --hea )
21377    $ac_shift
21378    case $ac_optarg in
21379    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21380    esac
21381    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21382    ac_need_defaults=false;;
21383  --he | --h)
21384    # Conflict between --help and --header
21385    as_fn_error $? "ambiguous option: \`$1'
21386Try \`$0 --help' for more information.";;
21387  --help | --hel | -h )
21388    $as_echo "$ac_cs_usage"; exit ;;
21389  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21390  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21391    ac_cs_silent=: ;;
21392
21393  # This is an error.
21394  -*) as_fn_error $? "unrecognized option: \`$1'
21395Try \`$0 --help' for more information." ;;
21396
21397  *) as_fn_append ac_config_targets " $1"
21398     ac_need_defaults=false ;;
21399
21400  esac
21401  shift
21402done
21403
21404ac_configure_extra_args=
21405
21406if $ac_cs_silent; then
21407  exec 6>/dev/null
21408  ac_configure_extra_args="$ac_configure_extra_args --silent"
21409fi
21410
21411_ACEOF
21412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21413if \$ac_cs_recheck; then
21414  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21415  shift
21416  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21417  CONFIG_SHELL='$SHELL'
21418  export CONFIG_SHELL
21419  exec "\$@"
21420fi
21421
21422_ACEOF
21423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21424exec 5>>config.log
21425{
21426  echo
21427  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21428## Running $as_me. ##
21429_ASBOX
21430  $as_echo "$ac_log"
21431} >&5
21432
21433_ACEOF
21434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21435#
21436# INIT-COMMANDS
21437#
21438AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21439
21440
21441# The HP-UX ksh and POSIX shell print the target directory to stdout
21442# if CDPATH is set.
21443(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21444
21445sed_quote_subst='$sed_quote_subst'
21446double_quote_subst='$double_quote_subst'
21447delay_variable_subst='$delay_variable_subst'
21448macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21449macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21450AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21451DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21452OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21453enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21454enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21455pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21456enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21457shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21458SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21459ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21460PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21461host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21462host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21463host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21464build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21465build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21466build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21467SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21468Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21469GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21470EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21471FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21472LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21473NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21474LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21475max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21476ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21477exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21478lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21479lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21480lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21481lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21482lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21483reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21484reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21485deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21486file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21487file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21488want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21489sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21490AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21491AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21492archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21493STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21494RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21495old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21496old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21497old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21498lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21499CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21500CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21501compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21502GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21503lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21504lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21505lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21506lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21507lt_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"`'
21508lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21509nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21510lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21511lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21512objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21513MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21514lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21515lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21516lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21517lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21518lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21519need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21520MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21521DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21522NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21523LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21524OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21525OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21526libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21527shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21528extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21529archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21530enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21531export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21532whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21533compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21534old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21535old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21536archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21537archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21538module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21539module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21540with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21541allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21542no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21543hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21544hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21545hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21546hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21547hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21548hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21549hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21550inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21551link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21552always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21553export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21554exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21555include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21556prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21557postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21558file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21559variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21560need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21561need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21562version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21563runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21564shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21565shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21566libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21567library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21568soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21569install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21570postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21571postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21572finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21573finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21574hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21575sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21576sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21577hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21578enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21579enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21580enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21581old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21582striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21583compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21584predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21585postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21586predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21587postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21588compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21589LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21590reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21591reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21592old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21593compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21594GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21595lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21596lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21597lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21598lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21599lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21600archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21601enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21602export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21603whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21604compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21605old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21606old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21607archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21608archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21609module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21610module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21611with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21612allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21613no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21614hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21615hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21616hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21617hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21618hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21619hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21620hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21621inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21622link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21623always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21624export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21625exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21626include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21627prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21628postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21629file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21630hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21631compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21632predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21633postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21634predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21635postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21636compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21637
21638LTCC='$LTCC'
21639LTCFLAGS='$LTCFLAGS'
21640compiler='$compiler_DEFAULT'
21641
21642# A function that is used when there is no print builtin or printf.
21643func_fallback_echo ()
21644{
21645  eval 'cat <<_LTECHO_EOF
21646\$1
21647_LTECHO_EOF'
21648}
21649
21650# Quote evaled strings.
21651for var in AS \
21652DLLTOOL \
21653OBJDUMP \
21654SHELL \
21655ECHO \
21656PATH_SEPARATOR \
21657SED \
21658GREP \
21659EGREP \
21660FGREP \
21661LD \
21662NM \
21663LN_S \
21664lt_SP2NL \
21665lt_NL2SP \
21666reload_flag \
21667deplibs_check_method \
21668file_magic_cmd \
21669file_magic_glob \
21670want_nocaseglob \
21671sharedlib_from_linklib_cmd \
21672AR \
21673AR_FLAGS \
21674archiver_list_spec \
21675STRIP \
21676RANLIB \
21677CC \
21678CFLAGS \
21679compiler \
21680lt_cv_sys_global_symbol_pipe \
21681lt_cv_sys_global_symbol_to_cdecl \
21682lt_cv_sys_global_symbol_to_import \
21683lt_cv_sys_global_symbol_to_c_name_address \
21684lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21685lt_cv_nm_interface \
21686nm_file_list_spec \
21687lt_cv_truncate_bin \
21688lt_prog_compiler_no_builtin_flag \
21689lt_prog_compiler_pic \
21690lt_prog_compiler_wl \
21691lt_prog_compiler_static \
21692lt_cv_prog_compiler_c_o \
21693need_locks \
21694MANIFEST_TOOL \
21695DSYMUTIL \
21696NMEDIT \
21697LIPO \
21698OTOOL \
21699OTOOL64 \
21700shrext_cmds \
21701export_dynamic_flag_spec \
21702whole_archive_flag_spec \
21703compiler_needs_object \
21704with_gnu_ld \
21705allow_undefined_flag \
21706no_undefined_flag \
21707hardcode_libdir_flag_spec \
21708hardcode_libdir_separator \
21709exclude_expsyms \
21710include_expsyms \
21711file_list_spec \
21712variables_saved_for_relink \
21713libname_spec \
21714library_names_spec \
21715soname_spec \
21716install_override_mode \
21717finish_eval \
21718old_striplib \
21719striplib \
21720compiler_lib_search_dirs \
21721predep_objects \
21722postdep_objects \
21723predeps \
21724postdeps \
21725compiler_lib_search_path \
21726LD_CXX \
21727reload_flag_CXX \
21728compiler_CXX \
21729lt_prog_compiler_no_builtin_flag_CXX \
21730lt_prog_compiler_pic_CXX \
21731lt_prog_compiler_wl_CXX \
21732lt_prog_compiler_static_CXX \
21733lt_cv_prog_compiler_c_o_CXX \
21734export_dynamic_flag_spec_CXX \
21735whole_archive_flag_spec_CXX \
21736compiler_needs_object_CXX \
21737with_gnu_ld_CXX \
21738allow_undefined_flag_CXX \
21739no_undefined_flag_CXX \
21740hardcode_libdir_flag_spec_CXX \
21741hardcode_libdir_separator_CXX \
21742exclude_expsyms_CXX \
21743include_expsyms_CXX \
21744file_list_spec_CXX \
21745compiler_lib_search_dirs_CXX \
21746predep_objects_CXX \
21747postdep_objects_CXX \
21748predeps_CXX \
21749postdeps_CXX \
21750compiler_lib_search_path_CXX; do
21751    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21752    *[\\\\\\\`\\"\\\$]*)
21753      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21754      ;;
21755    *)
21756      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21757      ;;
21758    esac
21759done
21760
21761# Double-quote double-evaled strings.
21762for var in reload_cmds \
21763old_postinstall_cmds \
21764old_postuninstall_cmds \
21765old_archive_cmds \
21766extract_expsyms_cmds \
21767old_archive_from_new_cmds \
21768old_archive_from_expsyms_cmds \
21769archive_cmds \
21770archive_expsym_cmds \
21771module_cmds \
21772module_expsym_cmds \
21773export_symbols_cmds \
21774prelink_cmds \
21775postlink_cmds \
21776postinstall_cmds \
21777postuninstall_cmds \
21778finish_cmds \
21779sys_lib_search_path_spec \
21780sys_lib_dlsearch_path_spec \
21781reload_cmds_CXX \
21782old_archive_cmds_CXX \
21783old_archive_from_new_cmds_CXX \
21784old_archive_from_expsyms_cmds_CXX \
21785archive_cmds_CXX \
21786archive_expsym_cmds_CXX \
21787module_cmds_CXX \
21788module_expsym_cmds_CXX \
21789export_symbols_cmds_CXX \
21790prelink_cmds_CXX \
21791postlink_cmds_CXX; do
21792    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21793    *[\\\\\\\`\\"\\\$]*)
21794      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21795      ;;
21796    *)
21797      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21798      ;;
21799    esac
21800done
21801
21802ac_aux_dir='$ac_aux_dir'
21803
21804# See if we are running on zsh, and set the options that allow our
21805# commands through without removal of \ escapes INIT.
21806if test -n "\${ZSH_VERSION+set}"; then
21807   setopt NO_GLOB_SUBST
21808fi
21809
21810
21811    PACKAGE='$PACKAGE'
21812    VERSION='$VERSION'
21813    RM='$RM'
21814    ofile='$ofile'
21815
21816
21817
21818
21819
21820
21821_ACEOF
21822
21823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21824
21825# Handling of arguments.
21826for ac_config_target in $ac_config_targets
21827do
21828  case $ac_config_target in
21829    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21830    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21831    "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21832    "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21833    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21834    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21835    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
21836    "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
21837    "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
21838    "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
21839    "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
21840    "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
21841    "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21842    "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21843    "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21844    "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21845    "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21846    "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21847    "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21848    "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
21849    "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
21850    "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21851    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21852    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21853    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21854    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21855
21856  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21857  esac
21858done
21859
21860
21861# If the user did not use the arguments to specify the items to instantiate,
21862# then the envvar interface is used.  Set only those that are not.
21863# We use the long form for the default assignment because of an extremely
21864# bizarre bug on SunOS 4.1.3.
21865if $ac_need_defaults; then
21866  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21867  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21868  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21869fi
21870
21871# Have a temporary directory for convenience.  Make it in the build tree
21872# simply because there is no reason against having it here, and in addition,
21873# creating and moving files from /tmp can sometimes cause problems.
21874# Hook for its removal unless debugging.
21875# Note that there is a small window in which the directory will not be cleaned:
21876# after its creation but before its name has been assigned to `$tmp'.
21877$debug ||
21878{
21879  tmp= ac_tmp=
21880  trap 'exit_status=$?
21881  : "${ac_tmp:=$tmp}"
21882  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21883' 0
21884  trap 'as_fn_exit 1' 1 2 13 15
21885}
21886# Create a (secure) tmp directory for tmp files.
21887
21888{
21889  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21890  test -d "$tmp"
21891}  ||
21892{
21893  tmp=./conf$$-$RANDOM
21894  (umask 077 && mkdir "$tmp")
21895} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21896ac_tmp=$tmp
21897
21898# Set up the scripts for CONFIG_FILES section.
21899# No need to generate them if there are no CONFIG_FILES.
21900# This happens for instance with `./config.status config.h'.
21901if test -n "$CONFIG_FILES"; then
21902
21903
21904ac_cr=`echo X | tr X '\015'`
21905# On cygwin, bash can eat \r inside `` if the user requested igncr.
21906# But we know of no other shell where ac_cr would be empty at this
21907# point, so we can use a bashism as a fallback.
21908if test "x$ac_cr" = x; then
21909  eval ac_cr=\$\'\\r\'
21910fi
21911ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21912if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21913  ac_cs_awk_cr='\\r'
21914else
21915  ac_cs_awk_cr=$ac_cr
21916fi
21917
21918echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21919_ACEOF
21920
21921
21922{
21923  echo "cat >conf$$subs.awk <<_ACEOF" &&
21924  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21925  echo "_ACEOF"
21926} >conf$$subs.sh ||
21927  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21928ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21929ac_delim='%!_!# '
21930for ac_last_try in false false false false false :; do
21931  . ./conf$$subs.sh ||
21932    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21933
21934  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21935  if test $ac_delim_n = $ac_delim_num; then
21936    break
21937  elif $ac_last_try; then
21938    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21939  else
21940    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21941  fi
21942done
21943rm -f conf$$subs.sh
21944
21945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21946cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21947_ACEOF
21948sed -n '
21949h
21950s/^/S["/; s/!.*/"]=/
21951p
21952g
21953s/^[^!]*!//
21954:repl
21955t repl
21956s/'"$ac_delim"'$//
21957t delim
21958:nl
21959h
21960s/\(.\{148\}\)..*/\1/
21961t more1
21962s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21963p
21964n
21965b repl
21966:more1
21967s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21968p
21969g
21970s/.\{148\}//
21971t nl
21972:delim
21973h
21974s/\(.\{148\}\)..*/\1/
21975t more2
21976s/["\\]/\\&/g; s/^/"/; s/$/"/
21977p
21978b
21979:more2
21980s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21981p
21982g
21983s/.\{148\}//
21984t delim
21985' <conf$$subs.awk | sed '
21986/^[^""]/{
21987  N
21988  s/\n//
21989}
21990' >>$CONFIG_STATUS || ac_write_fail=1
21991rm -f conf$$subs.awk
21992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21993_ACAWK
21994cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21995  for (key in S) S_is_set[key] = 1
21996  FS = ""
21997
21998}
21999{
22000  line = $ 0
22001  nfields = split(line, field, "@")
22002  substed = 0
22003  len = length(field[1])
22004  for (i = 2; i < nfields; i++) {
22005    key = field[i]
22006    keylen = length(key)
22007    if (S_is_set[key]) {
22008      value = S[key]
22009      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22010      len += length(value) + length(field[++i])
22011      substed = 1
22012    } else
22013      len += 1 + keylen
22014  }
22015
22016  print line
22017}
22018
22019_ACAWK
22020_ACEOF
22021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22022if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22023  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22024else
22025  cat
22026fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22027  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22028_ACEOF
22029
22030# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22031# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22032# trailing colons and then remove the whole line if VPATH becomes empty
22033# (actually we leave an empty line to preserve line numbers).
22034if test "x$srcdir" = x.; then
22035  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22036h
22037s///
22038s/^/:/
22039s/[	 ]*$/:/
22040s/:\$(srcdir):/:/g
22041s/:\${srcdir}:/:/g
22042s/:@srcdir@:/:/g
22043s/^:*//
22044s/:*$//
22045x
22046s/\(=[	 ]*\).*/\1/
22047G
22048s/\n//
22049s/^[^=]*=[	 ]*$//
22050}'
22051fi
22052
22053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22054fi # test -n "$CONFIG_FILES"
22055
22056# Set up the scripts for CONFIG_HEADERS section.
22057# No need to generate them if there are no CONFIG_HEADERS.
22058# This happens for instance with `./config.status Makefile'.
22059if test -n "$CONFIG_HEADERS"; then
22060cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22061BEGIN {
22062_ACEOF
22063
22064# Transform confdefs.h into an awk script `defines.awk', embedded as
22065# here-document in config.status, that substitutes the proper values into
22066# config.h.in to produce config.h.
22067
22068# Create a delimiter string that does not exist in confdefs.h, to ease
22069# handling of long lines.
22070ac_delim='%!_!# '
22071for ac_last_try in false false :; do
22072  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22073  if test -z "$ac_tt"; then
22074    break
22075  elif $ac_last_try; then
22076    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22077  else
22078    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22079  fi
22080done
22081
22082# For the awk script, D is an array of macro values keyed by name,
22083# likewise P contains macro parameters if any.  Preserve backslash
22084# newline sequences.
22085
22086ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22087sed -n '
22088s/.\{148\}/&'"$ac_delim"'/g
22089t rset
22090:rset
22091s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22092t def
22093d
22094:def
22095s/\\$//
22096t bsnl
22097s/["\\]/\\&/g
22098s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22099D["\1"]=" \3"/p
22100s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22101d
22102:bsnl
22103s/["\\]/\\&/g
22104s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22105D["\1"]=" \3\\\\\\n"\\/p
22106t cont
22107s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22108t cont
22109d
22110:cont
22111n
22112s/.\{148\}/&'"$ac_delim"'/g
22113t clear
22114:clear
22115s/\\$//
22116t bsnlc
22117s/["\\]/\\&/g; s/^/"/; s/$/"/p
22118d
22119:bsnlc
22120s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22121b cont
22122' <confdefs.h | sed '
22123s/'"$ac_delim"'/"\\\
22124"/g' >>$CONFIG_STATUS || ac_write_fail=1
22125
22126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22127  for (key in D) D_is_set[key] = 1
22128  FS = ""
22129}
22130/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22131  line = \$ 0
22132  split(line, arg, " ")
22133  if (arg[1] == "#") {
22134    defundef = arg[2]
22135    mac1 = arg[3]
22136  } else {
22137    defundef = substr(arg[1], 2)
22138    mac1 = arg[2]
22139  }
22140  split(mac1, mac2, "(") #)
22141  macro = mac2[1]
22142  prefix = substr(line, 1, index(line, defundef) - 1)
22143  if (D_is_set[macro]) {
22144    # Preserve the white space surrounding the "#".
22145    print prefix "define", macro P[macro] D[macro]
22146    next
22147  } else {
22148    # Replace #undef with comments.  This is necessary, for example,
22149    # in the case of _POSIX_SOURCE, which is predefined and required
22150    # on some systems where configure will not decide to define it.
22151    if (defundef == "undef") {
22152      print "/*", prefix defundef, macro, "*/"
22153      next
22154    }
22155  }
22156}
22157{ print }
22158_ACAWK
22159_ACEOF
22160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22161  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22162fi # test -n "$CONFIG_HEADERS"
22163
22164
22165eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22166shift
22167for ac_tag
22168do
22169  case $ac_tag in
22170  :[FHLC]) ac_mode=$ac_tag; continue;;
22171  esac
22172  case $ac_mode$ac_tag in
22173  :[FHL]*:*);;
22174  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22175  :[FH]-) ac_tag=-:-;;
22176  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22177  esac
22178  ac_save_IFS=$IFS
22179  IFS=:
22180  set x $ac_tag
22181  IFS=$ac_save_IFS
22182  shift
22183  ac_file=$1
22184  shift
22185
22186  case $ac_mode in
22187  :L) ac_source=$1;;
22188  :[FH])
22189    ac_file_inputs=
22190    for ac_f
22191    do
22192      case $ac_f in
22193      -) ac_f="$ac_tmp/stdin";;
22194      *) # Look for the file first in the build tree, then in the source tree
22195	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22196	 # because $ac_f cannot contain `:'.
22197	 test -f "$ac_f" ||
22198	   case $ac_f in
22199	   [\\/$]*) false;;
22200	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22201	   esac ||
22202	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22203      esac
22204      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22205      as_fn_append ac_file_inputs " '$ac_f'"
22206    done
22207
22208    # Let's still pretend it is `configure' which instantiates (i.e., don't
22209    # use $as_me), people would be surprised to read:
22210    #    /* config.h.  Generated by config.status.  */
22211    configure_input='Generated from '`
22212	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22213	`' by configure.'
22214    if test x"$ac_file" != x-; then
22215      configure_input="$ac_file.  $configure_input"
22216      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22217$as_echo "$as_me: creating $ac_file" >&6;}
22218    fi
22219    # Neutralize special characters interpreted by sed in replacement strings.
22220    case $configure_input in #(
22221    *\&* | *\|* | *\\* )
22222       ac_sed_conf_input=`$as_echo "$configure_input" |
22223       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22224    *) ac_sed_conf_input=$configure_input;;
22225    esac
22226
22227    case $ac_tag in
22228    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22229      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22230    esac
22231    ;;
22232  esac
22233
22234  ac_dir=`$as_dirname -- "$ac_file" ||
22235$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22236	 X"$ac_file" : 'X\(//\)[^/]' \| \
22237	 X"$ac_file" : 'X\(//\)$' \| \
22238	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22239$as_echo X"$ac_file" |
22240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22241	    s//\1/
22242	    q
22243	  }
22244	  /^X\(\/\/\)[^/].*/{
22245	    s//\1/
22246	    q
22247	  }
22248	  /^X\(\/\/\)$/{
22249	    s//\1/
22250	    q
22251	  }
22252	  /^X\(\/\).*/{
22253	    s//\1/
22254	    q
22255	  }
22256	  s/.*/./; q'`
22257  as_dir="$ac_dir"; as_fn_mkdir_p
22258  ac_builddir=.
22259
22260case "$ac_dir" in
22261.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22262*)
22263  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22264  # A ".." for each directory in $ac_dir_suffix.
22265  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22266  case $ac_top_builddir_sub in
22267  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22268  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22269  esac ;;
22270esac
22271ac_abs_top_builddir=$ac_pwd
22272ac_abs_builddir=$ac_pwd$ac_dir_suffix
22273# for backward compatibility:
22274ac_top_builddir=$ac_top_build_prefix
22275
22276case $srcdir in
22277  .)  # We are building in place.
22278    ac_srcdir=.
22279    ac_top_srcdir=$ac_top_builddir_sub
22280    ac_abs_top_srcdir=$ac_pwd ;;
22281  [\\/]* | ?:[\\/]* )  # Absolute name.
22282    ac_srcdir=$srcdir$ac_dir_suffix;
22283    ac_top_srcdir=$srcdir
22284    ac_abs_top_srcdir=$srcdir ;;
22285  *) # Relative name.
22286    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22287    ac_top_srcdir=$ac_top_build_prefix$srcdir
22288    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22289esac
22290ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22291
22292
22293  case $ac_mode in
22294  :F)
22295  #
22296  # CONFIG_FILE
22297  #
22298
22299  case $INSTALL in
22300  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22301  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22302  esac
22303  ac_MKDIR_P=$MKDIR_P
22304  case $MKDIR_P in
22305  [\\/$]* | ?:[\\/]* ) ;;
22306  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22307  esac
22308_ACEOF
22309
22310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22311# If the template does not know about datarootdir, expand it.
22312# FIXME: This hack should be removed a few years after 2.60.
22313ac_datarootdir_hack=; ac_datarootdir_seen=
22314ac_sed_dataroot='
22315/datarootdir/ {
22316  p
22317  q
22318}
22319/@datadir@/p
22320/@docdir@/p
22321/@infodir@/p
22322/@localedir@/p
22323/@mandir@/p'
22324case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22325*datarootdir*) ac_datarootdir_seen=yes;;
22326*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22327  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22328$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22329_ACEOF
22330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22331  ac_datarootdir_hack='
22332  s&@datadir@&$datadir&g
22333  s&@docdir@&$docdir&g
22334  s&@infodir@&$infodir&g
22335  s&@localedir@&$localedir&g
22336  s&@mandir@&$mandir&g
22337  s&\\\${datarootdir}&$datarootdir&g' ;;
22338esac
22339_ACEOF
22340
22341# Neutralize VPATH when `$srcdir' = `.'.
22342# Shell code in configure.ac might set extrasub.
22343# FIXME: do we really want to maintain this feature?
22344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22345ac_sed_extra="$ac_vpsub
22346$extrasub
22347_ACEOF
22348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22349:t
22350/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22351s|@configure_input@|$ac_sed_conf_input|;t t
22352s&@top_builddir@&$ac_top_builddir_sub&;t t
22353s&@top_build_prefix@&$ac_top_build_prefix&;t t
22354s&@srcdir@&$ac_srcdir&;t t
22355s&@abs_srcdir@&$ac_abs_srcdir&;t t
22356s&@top_srcdir@&$ac_top_srcdir&;t t
22357s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22358s&@builddir@&$ac_builddir&;t t
22359s&@abs_builddir@&$ac_abs_builddir&;t t
22360s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22361s&@INSTALL@&$ac_INSTALL&;t t
22362s&@MKDIR_P@&$ac_MKDIR_P&;t t
22363$ac_datarootdir_hack
22364"
22365eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22366  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22367
22368test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22369  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22370  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22371      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22372  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22373which seems to be undefined.  Please make sure it is defined" >&5
22374$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22375which seems to be undefined.  Please make sure it is defined" >&2;}
22376
22377  rm -f "$ac_tmp/stdin"
22378  case $ac_file in
22379  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22380  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22381  esac \
22382  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22383 ;;
22384  :H)
22385  #
22386  # CONFIG_HEADER
22387  #
22388  if test x"$ac_file" != x-; then
22389    {
22390      $as_echo "/* $configure_input  */" \
22391      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22392    } >"$ac_tmp/config.h" \
22393      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22394    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22395      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22396$as_echo "$as_me: $ac_file is unchanged" >&6;}
22397    else
22398      rm -f "$ac_file"
22399      mv "$ac_tmp/config.h" "$ac_file" \
22400	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22401    fi
22402  else
22403    $as_echo "/* $configure_input  */" \
22404      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22405      || as_fn_error $? "could not create -" "$LINENO" 5
22406  fi
22407# Compute "$ac_file"'s index in $config_headers.
22408_am_arg="$ac_file"
22409_am_stamp_count=1
22410for _am_header in $config_headers :; do
22411  case $_am_header in
22412    $_am_arg | $_am_arg:* )
22413      break ;;
22414    * )
22415      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22416  esac
22417done
22418echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22419$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22420	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22421	 X"$_am_arg" : 'X\(//\)$' \| \
22422	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22423$as_echo X"$_am_arg" |
22424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22425	    s//\1/
22426	    q
22427	  }
22428	  /^X\(\/\/\)[^/].*/{
22429	    s//\1/
22430	    q
22431	  }
22432	  /^X\(\/\/\)$/{
22433	    s//\1/
22434	    q
22435	  }
22436	  /^X\(\/\).*/{
22437	    s//\1/
22438	    q
22439	  }
22440	  s/.*/./; q'`/stamp-h$_am_stamp_count
22441 ;;
22442
22443  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22444$as_echo "$as_me: executing $ac_file commands" >&6;}
22445 ;;
22446  esac
22447
22448
22449  case $ac_file$ac_mode in
22450    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22451  # Older Autoconf quotes --file arguments for eval, but not when files
22452  # are listed without --file.  Let's play safe and only enable the eval
22453  # if we detect the quoting.
22454  case $CONFIG_FILES in
22455  *\'*) eval set x "$CONFIG_FILES" ;;
22456  *)   set x $CONFIG_FILES ;;
22457  esac
22458  shift
22459  for mf
22460  do
22461    # Strip MF so we end up with the name of the file.
22462    mf=`echo "$mf" | sed -e 's/:.*$//'`
22463    # Check whether this is an Automake generated Makefile or not.
22464    # We used to match only the files named 'Makefile.in', but
22465    # some people rename them; so instead we look at the file content.
22466    # Grep'ing the first line is not enough: some people post-process
22467    # each Makefile.in and add a new line on top of each file to say so.
22468    # Grep'ing the whole file is not good either: AIX grep has a line
22469    # limit of 2048, but all sed's we know have understand at least 4000.
22470    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22471      dirpart=`$as_dirname -- "$mf" ||
22472$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22473	 X"$mf" : 'X\(//\)[^/]' \| \
22474	 X"$mf" : 'X\(//\)$' \| \
22475	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22476$as_echo X"$mf" |
22477    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22478	    s//\1/
22479	    q
22480	  }
22481	  /^X\(\/\/\)[^/].*/{
22482	    s//\1/
22483	    q
22484	  }
22485	  /^X\(\/\/\)$/{
22486	    s//\1/
22487	    q
22488	  }
22489	  /^X\(\/\).*/{
22490	    s//\1/
22491	    q
22492	  }
22493	  s/.*/./; q'`
22494    else
22495      continue
22496    fi
22497    # Extract the definition of DEPDIR, am__include, and am__quote
22498    # from the Makefile without running 'make'.
22499    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22500    test -z "$DEPDIR" && continue
22501    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22502    test -z "$am__include" && continue
22503    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22504    # Find all dependency output files, they are included files with
22505    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22506    # simplest approach to changing $(DEPDIR) to its actual value in the
22507    # expansion.
22508    for file in `sed -n "
22509      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22510	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22511      # Make sure the directory exists.
22512      test -f "$dirpart/$file" && continue
22513      fdir=`$as_dirname -- "$file" ||
22514$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22515	 X"$file" : 'X\(//\)[^/]' \| \
22516	 X"$file" : 'X\(//\)$' \| \
22517	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22518$as_echo X"$file" |
22519    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22520	    s//\1/
22521	    q
22522	  }
22523	  /^X\(\/\/\)[^/].*/{
22524	    s//\1/
22525	    q
22526	  }
22527	  /^X\(\/\/\)$/{
22528	    s//\1/
22529	    q
22530	  }
22531	  /^X\(\/\).*/{
22532	    s//\1/
22533	    q
22534	  }
22535	  s/.*/./; q'`
22536      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22537      # echo "creating $dirpart/$file"
22538      echo '# dummy' > "$dirpart/$file"
22539    done
22540  done
22541}
22542 ;;
22543    "libtool":C)
22544
22545    # See if we are running on zsh, and set the options that allow our
22546    # commands through without removal of \ escapes.
22547    if test -n "${ZSH_VERSION+set}"; then
22548      setopt NO_GLOB_SUBST
22549    fi
22550
22551    cfgfile=${ofile}T
22552    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22553    $RM "$cfgfile"
22554
22555    cat <<_LT_EOF >> "$cfgfile"
22556#! $SHELL
22557# Generated automatically by $as_me ($PACKAGE) $VERSION
22558# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22559# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22560
22561# Provide generalized library-building support services.
22562# Written by Gordon Matzigkeit, 1996
22563
22564# Copyright (C) 2014 Free Software Foundation, Inc.
22565# This is free software; see the source for copying conditions.  There is NO
22566# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22567
22568# GNU Libtool is free software; you can redistribute it and/or modify
22569# it under the terms of the GNU General Public License as published by
22570# the Free Software Foundation; either version 2 of of the License, or
22571# (at your option) any later version.
22572#
22573# As a special exception to the GNU General Public License, if you
22574# distribute this file as part of a program or library that is built
22575# using GNU Libtool, you may include this file under the  same
22576# distribution terms that you use for the rest of that program.
22577#
22578# GNU Libtool is distributed in the hope that it will be useful, but
22579# WITHOUT ANY WARRANTY; without even the implied warranty of
22580# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22581# GNU General Public License for more details.
22582#
22583# You should have received a copy of the GNU General Public License
22584# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22585
22586
22587# The names of the tagged configurations supported by this script.
22588available_tags='CXX '
22589
22590# ### BEGIN LIBTOOL CONFIG
22591
22592# Which release of libtool.m4 was used?
22593macro_version=$macro_version
22594macro_revision=$macro_revision
22595
22596# Assembler program.
22597AS=$lt_AS
22598
22599# DLL creation program.
22600DLLTOOL=$lt_DLLTOOL
22601
22602# Object dumper program.
22603OBJDUMP=$lt_OBJDUMP
22604
22605# Whether or not to build shared libraries.
22606build_libtool_libs=$enable_shared
22607
22608# Whether or not to build static libraries.
22609build_old_libs=$enable_static
22610
22611# What type of objects to build.
22612pic_mode=$pic_mode
22613
22614# Whether or not to optimize for fast installation.
22615fast_install=$enable_fast_install
22616
22617# Shared archive member basename,for filename based shared library versioning on AIX.
22618shared_archive_member_spec=$shared_archive_member_spec
22619
22620# Shell to use when invoking shell scripts.
22621SHELL=$lt_SHELL
22622
22623# An echo program that protects backslashes.
22624ECHO=$lt_ECHO
22625
22626# The PATH separator for the build system.
22627PATH_SEPARATOR=$lt_PATH_SEPARATOR
22628
22629# The host system.
22630host_alias=$host_alias
22631host=$host
22632host_os=$host_os
22633
22634# The build system.
22635build_alias=$build_alias
22636build=$build
22637build_os=$build_os
22638
22639# A sed program that does not truncate output.
22640SED=$lt_SED
22641
22642# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22643Xsed="\$SED -e 1s/^X//"
22644
22645# A grep program that handles long lines.
22646GREP=$lt_GREP
22647
22648# An ERE matcher.
22649EGREP=$lt_EGREP
22650
22651# A literal string matcher.
22652FGREP=$lt_FGREP
22653
22654# A BSD- or MS-compatible name lister.
22655NM=$lt_NM
22656
22657# Whether we need soft or hard links.
22658LN_S=$lt_LN_S
22659
22660# What is the maximum length of a command?
22661max_cmd_len=$max_cmd_len
22662
22663# Object file suffix (normally "o").
22664objext=$ac_objext
22665
22666# Executable file suffix (normally "").
22667exeext=$exeext
22668
22669# whether the shell understands "unset".
22670lt_unset=$lt_unset
22671
22672# turn spaces into newlines.
22673SP2NL=$lt_lt_SP2NL
22674
22675# turn newlines into spaces.
22676NL2SP=$lt_lt_NL2SP
22677
22678# convert \$build file names to \$host format.
22679to_host_file_cmd=$lt_cv_to_host_file_cmd
22680
22681# convert \$build files to toolchain format.
22682to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22683
22684# Method to check whether dependent libraries are shared objects.
22685deplibs_check_method=$lt_deplibs_check_method
22686
22687# Command to use when deplibs_check_method = "file_magic".
22688file_magic_cmd=$lt_file_magic_cmd
22689
22690# How to find potential files when deplibs_check_method = "file_magic".
22691file_magic_glob=$lt_file_magic_glob
22692
22693# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22694want_nocaseglob=$lt_want_nocaseglob
22695
22696# Command to associate shared and link libraries.
22697sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22698
22699# The archiver.
22700AR=$lt_AR
22701
22702# Flags to create an archive.
22703AR_FLAGS=$lt_AR_FLAGS
22704
22705# How to feed a file listing to the archiver.
22706archiver_list_spec=$lt_archiver_list_spec
22707
22708# A symbol stripping program.
22709STRIP=$lt_STRIP
22710
22711# Commands used to install an old-style archive.
22712RANLIB=$lt_RANLIB
22713old_postinstall_cmds=$lt_old_postinstall_cmds
22714old_postuninstall_cmds=$lt_old_postuninstall_cmds
22715
22716# Whether to use a lock for old archive extraction.
22717lock_old_archive_extraction=$lock_old_archive_extraction
22718
22719# A C compiler.
22720LTCC=$lt_CC
22721
22722# LTCC compiler flags.
22723LTCFLAGS=$lt_CFLAGS
22724
22725# Take the output of nm and produce a listing of raw symbols and C names.
22726global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22727
22728# Transform the output of nm in a proper C declaration.
22729global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22730
22731# Transform the output of nm into a list of symbols to manually relocate.
22732global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22733
22734# Transform the output of nm in a C name address pair.
22735global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22736
22737# Transform the output of nm in a C name address pair when lib prefix is needed.
22738global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22739
22740# The name lister interface.
22741nm_interface=$lt_lt_cv_nm_interface
22742
22743# Specify filename containing input files for \$NM.
22744nm_file_list_spec=$lt_nm_file_list_spec
22745
22746# The root where to search for dependent libraries,and where our libraries should be installed.
22747lt_sysroot=$lt_sysroot
22748
22749# Command to truncate a binary pipe.
22750lt_truncate_bin=$lt_lt_cv_truncate_bin
22751
22752# The name of the directory that contains temporary libtool files.
22753objdir=$objdir
22754
22755# Used to examine libraries when file_magic_cmd begins with "file".
22756MAGIC_CMD=$MAGIC_CMD
22757
22758# Must we lock files when doing compilation?
22759need_locks=$lt_need_locks
22760
22761# Manifest tool.
22762MANIFEST_TOOL=$lt_MANIFEST_TOOL
22763
22764# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22765DSYMUTIL=$lt_DSYMUTIL
22766
22767# Tool to change global to local symbols on Mac OS X.
22768NMEDIT=$lt_NMEDIT
22769
22770# Tool to manipulate fat objects and archives on Mac OS X.
22771LIPO=$lt_LIPO
22772
22773# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22774OTOOL=$lt_OTOOL
22775
22776# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22777OTOOL64=$lt_OTOOL64
22778
22779# Old archive suffix (normally "a").
22780libext=$libext
22781
22782# Shared library suffix (normally ".so").
22783shrext_cmds=$lt_shrext_cmds
22784
22785# The commands to extract the exported symbol list from a shared archive.
22786extract_expsyms_cmds=$lt_extract_expsyms_cmds
22787
22788# Variables whose values should be saved in libtool wrapper scripts and
22789# restored at link time.
22790variables_saved_for_relink=$lt_variables_saved_for_relink
22791
22792# Do we need the "lib" prefix for modules?
22793need_lib_prefix=$need_lib_prefix
22794
22795# Do we need a version for libraries?
22796need_version=$need_version
22797
22798# Library versioning type.
22799version_type=$version_type
22800
22801# Shared library runtime path variable.
22802runpath_var=$runpath_var
22803
22804# Shared library path variable.
22805shlibpath_var=$shlibpath_var
22806
22807# Is shlibpath searched before the hard-coded library search path?
22808shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22809
22810# Format of library name prefix.
22811libname_spec=$lt_libname_spec
22812
22813# List of archive names.  First name is the real one, the rest are links.
22814# The last name is the one that the linker finds with -lNAME
22815library_names_spec=$lt_library_names_spec
22816
22817# The coded name of the library, if different from the real name.
22818soname_spec=$lt_soname_spec
22819
22820# Permission mode override for installation of shared libraries.
22821install_override_mode=$lt_install_override_mode
22822
22823# Command to use after installation of a shared archive.
22824postinstall_cmds=$lt_postinstall_cmds
22825
22826# Command to use after uninstallation of a shared archive.
22827postuninstall_cmds=$lt_postuninstall_cmds
22828
22829# Commands used to finish a libtool library installation in a directory.
22830finish_cmds=$lt_finish_cmds
22831
22832# As "finish_cmds", except a single script fragment to be evaled but
22833# not shown.
22834finish_eval=$lt_finish_eval
22835
22836# Whether we should hardcode library paths into libraries.
22837hardcode_into_libs=$hardcode_into_libs
22838
22839# Compile-time system search path for libraries.
22840sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22841
22842# Run-time system search path for libraries.
22843sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22844
22845# Whether dlopen is supported.
22846dlopen_support=$enable_dlopen
22847
22848# Whether dlopen of programs is supported.
22849dlopen_self=$enable_dlopen_self
22850
22851# Whether dlopen of statically linked programs is supported.
22852dlopen_self_static=$enable_dlopen_self_static
22853
22854# Commands to strip libraries.
22855old_striplib=$lt_old_striplib
22856striplib=$lt_striplib
22857
22858
22859# The linker used to build libraries.
22860LD=$lt_LD
22861
22862# How to create reloadable object files.
22863reload_flag=$lt_reload_flag
22864reload_cmds=$lt_reload_cmds
22865
22866# Commands used to build an old-style archive.
22867old_archive_cmds=$lt_old_archive_cmds
22868
22869# A language specific compiler.
22870CC=$lt_compiler
22871
22872# Is the compiler the GNU compiler?
22873with_gcc=$GCC
22874
22875# Compiler flag to turn off builtin functions.
22876no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22877
22878# Additional compiler flags for building library objects.
22879pic_flag=$lt_lt_prog_compiler_pic
22880
22881# How to pass a linker flag through the compiler.
22882wl=$lt_lt_prog_compiler_wl
22883
22884# Compiler flag to prevent dynamic linking.
22885link_static_flag=$lt_lt_prog_compiler_static
22886
22887# Does compiler simultaneously support -c and -o options?
22888compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22889
22890# Whether or not to add -lc for building shared libraries.
22891build_libtool_need_lc=$archive_cmds_need_lc
22892
22893# Whether or not to disallow shared libs when runtime libs are static.
22894allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22895
22896# Compiler flag to allow reflexive dlopens.
22897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22898
22899# Compiler flag to generate shared objects directly from archives.
22900whole_archive_flag_spec=$lt_whole_archive_flag_spec
22901
22902# Whether the compiler copes with passing no objects directly.
22903compiler_needs_object=$lt_compiler_needs_object
22904
22905# Create an old-style archive from a shared archive.
22906old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22907
22908# Create a temporary old-style archive to link instead of a shared archive.
22909old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22910
22911# Commands used to build a shared archive.
22912archive_cmds=$lt_archive_cmds
22913archive_expsym_cmds=$lt_archive_expsym_cmds
22914
22915# Commands used to build a loadable module if different from building
22916# a shared archive.
22917module_cmds=$lt_module_cmds
22918module_expsym_cmds=$lt_module_expsym_cmds
22919
22920# Whether we are building with GNU ld or not.
22921with_gnu_ld=$lt_with_gnu_ld
22922
22923# Flag that allows shared libraries with undefined symbols to be built.
22924allow_undefined_flag=$lt_allow_undefined_flag
22925
22926# Flag that enforces no undefined symbols.
22927no_undefined_flag=$lt_no_undefined_flag
22928
22929# Flag to hardcode \$libdir into a binary during linking.
22930# This must work even if \$libdir does not exist
22931hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22932
22933# Whether we need a single "-rpath" flag with a separated argument.
22934hardcode_libdir_separator=$lt_hardcode_libdir_separator
22935
22936# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22937# DIR into the resulting binary.
22938hardcode_direct=$hardcode_direct
22939
22940# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22941# DIR into the resulting binary and the resulting library dependency is
22942# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22943# library is relocated.
22944hardcode_direct_absolute=$hardcode_direct_absolute
22945
22946# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22947# into the resulting binary.
22948hardcode_minus_L=$hardcode_minus_L
22949
22950# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22951# into the resulting binary.
22952hardcode_shlibpath_var=$hardcode_shlibpath_var
22953
22954# Set to "yes" if building a shared library automatically hardcodes DIR
22955# into the library and all subsequent libraries and executables linked
22956# against it.
22957hardcode_automatic=$hardcode_automatic
22958
22959# Set to yes if linker adds runtime paths of dependent libraries
22960# to runtime path list.
22961inherit_rpath=$inherit_rpath
22962
22963# Whether libtool must link a program against all its dependency libraries.
22964link_all_deplibs=$link_all_deplibs
22965
22966# Set to "yes" if exported symbols are required.
22967always_export_symbols=$always_export_symbols
22968
22969# The commands to list exported symbols.
22970export_symbols_cmds=$lt_export_symbols_cmds
22971
22972# Symbols that should not be listed in the preloaded symbols.
22973exclude_expsyms=$lt_exclude_expsyms
22974
22975# Symbols that must always be exported.
22976include_expsyms=$lt_include_expsyms
22977
22978# Commands necessary for linking programs (against libraries) with templates.
22979prelink_cmds=$lt_prelink_cmds
22980
22981# Commands necessary for finishing linking programs.
22982postlink_cmds=$lt_postlink_cmds
22983
22984# Specify filename containing input files.
22985file_list_spec=$lt_file_list_spec
22986
22987# How to hardcode a shared library path into an executable.
22988hardcode_action=$hardcode_action
22989
22990# The directories searched by this compiler when creating a shared library.
22991compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22992
22993# Dependencies to place before and after the objects being linked to
22994# create a shared library.
22995predep_objects=$lt_predep_objects
22996postdep_objects=$lt_postdep_objects
22997predeps=$lt_predeps
22998postdeps=$lt_postdeps
22999
23000# The library search path used internally by the compiler when linking
23001# a shared library.
23002compiler_lib_search_path=$lt_compiler_lib_search_path
23003
23004# ### END LIBTOOL CONFIG
23005
23006_LT_EOF
23007
23008  case $host_os in
23009  aix3*)
23010    cat <<\_LT_EOF >> "$cfgfile"
23011# AIX sometimes has problems with the GCC collect2 program.  For some
23012# reason, if we set the COLLECT_NAMES environment variable, the problems
23013# vanish in a puff of smoke.
23014if test set != "${COLLECT_NAMES+set}"; then
23015  COLLECT_NAMES=
23016  export COLLECT_NAMES
23017fi
23018_LT_EOF
23019    ;;
23020  esac
23021
23022
23023ltmain=$ac_aux_dir/ltmain.sh
23024
23025
23026  # We use sed instead of cat because bash on DJGPP gets confused if
23027  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23028  # text mode, it properly converts lines to CR/LF.  This bash problem
23029  # is reportedly fixed, but why not run on old versions too?
23030  sed '$q' "$ltmain" >> "$cfgfile" \
23031     || (rm -f "$cfgfile"; exit 1)
23032
23033   mv -f "$cfgfile" "$ofile" ||
23034    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23035  chmod +x "$ofile"
23036
23037
23038    cat <<_LT_EOF >> "$ofile"
23039
23040# ### BEGIN LIBTOOL TAG CONFIG: CXX
23041
23042# The linker used to build libraries.
23043LD=$lt_LD_CXX
23044
23045# How to create reloadable object files.
23046reload_flag=$lt_reload_flag_CXX
23047reload_cmds=$lt_reload_cmds_CXX
23048
23049# Commands used to build an old-style archive.
23050old_archive_cmds=$lt_old_archive_cmds_CXX
23051
23052# A language specific compiler.
23053CC=$lt_compiler_CXX
23054
23055# Is the compiler the GNU compiler?
23056with_gcc=$GCC_CXX
23057
23058# Compiler flag to turn off builtin functions.
23059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23060
23061# Additional compiler flags for building library objects.
23062pic_flag=$lt_lt_prog_compiler_pic_CXX
23063
23064# How to pass a linker flag through the compiler.
23065wl=$lt_lt_prog_compiler_wl_CXX
23066
23067# Compiler flag to prevent dynamic linking.
23068link_static_flag=$lt_lt_prog_compiler_static_CXX
23069
23070# Does compiler simultaneously support -c and -o options?
23071compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23072
23073# Whether or not to add -lc for building shared libraries.
23074build_libtool_need_lc=$archive_cmds_need_lc_CXX
23075
23076# Whether or not to disallow shared libs when runtime libs are static.
23077allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23078
23079# Compiler flag to allow reflexive dlopens.
23080export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23081
23082# Compiler flag to generate shared objects directly from archives.
23083whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23084
23085# Whether the compiler copes with passing no objects directly.
23086compiler_needs_object=$lt_compiler_needs_object_CXX
23087
23088# Create an old-style archive from a shared archive.
23089old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23090
23091# Create a temporary old-style archive to link instead of a shared archive.
23092old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23093
23094# Commands used to build a shared archive.
23095archive_cmds=$lt_archive_cmds_CXX
23096archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23097
23098# Commands used to build a loadable module if different from building
23099# a shared archive.
23100module_cmds=$lt_module_cmds_CXX
23101module_expsym_cmds=$lt_module_expsym_cmds_CXX
23102
23103# Whether we are building with GNU ld or not.
23104with_gnu_ld=$lt_with_gnu_ld_CXX
23105
23106# Flag that allows shared libraries with undefined symbols to be built.
23107allow_undefined_flag=$lt_allow_undefined_flag_CXX
23108
23109# Flag that enforces no undefined symbols.
23110no_undefined_flag=$lt_no_undefined_flag_CXX
23111
23112# Flag to hardcode \$libdir into a binary during linking.
23113# This must work even if \$libdir does not exist
23114hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23115
23116# Whether we need a single "-rpath" flag with a separated argument.
23117hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23118
23119# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23120# DIR into the resulting binary.
23121hardcode_direct=$hardcode_direct_CXX
23122
23123# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23124# DIR into the resulting binary and the resulting library dependency is
23125# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23126# library is relocated.
23127hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23128
23129# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23130# into the resulting binary.
23131hardcode_minus_L=$hardcode_minus_L_CXX
23132
23133# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23134# into the resulting binary.
23135hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23136
23137# Set to "yes" if building a shared library automatically hardcodes DIR
23138# into the library and all subsequent libraries and executables linked
23139# against it.
23140hardcode_automatic=$hardcode_automatic_CXX
23141
23142# Set to yes if linker adds runtime paths of dependent libraries
23143# to runtime path list.
23144inherit_rpath=$inherit_rpath_CXX
23145
23146# Whether libtool must link a program against all its dependency libraries.
23147link_all_deplibs=$link_all_deplibs_CXX
23148
23149# Set to "yes" if exported symbols are required.
23150always_export_symbols=$always_export_symbols_CXX
23151
23152# The commands to list exported symbols.
23153export_symbols_cmds=$lt_export_symbols_cmds_CXX
23154
23155# Symbols that should not be listed in the preloaded symbols.
23156exclude_expsyms=$lt_exclude_expsyms_CXX
23157
23158# Symbols that must always be exported.
23159include_expsyms=$lt_include_expsyms_CXX
23160
23161# Commands necessary for linking programs (against libraries) with templates.
23162prelink_cmds=$lt_prelink_cmds_CXX
23163
23164# Commands necessary for finishing linking programs.
23165postlink_cmds=$lt_postlink_cmds_CXX
23166
23167# Specify filename containing input files.
23168file_list_spec=$lt_file_list_spec_CXX
23169
23170# How to hardcode a shared library path into an executable.
23171hardcode_action=$hardcode_action_CXX
23172
23173# The directories searched by this compiler when creating a shared library.
23174compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23175
23176# Dependencies to place before and after the objects being linked to
23177# create a shared library.
23178predep_objects=$lt_predep_objects_CXX
23179postdep_objects=$lt_postdep_objects_CXX
23180predeps=$lt_predeps_CXX
23181postdeps=$lt_postdeps_CXX
23182
23183# The library search path used internally by the compiler when linking
23184# a shared library.
23185compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23186
23187# ### END LIBTOOL TAG CONFIG: CXX
23188_LT_EOF
23189
23190 ;;
23191
23192  esac
23193done # for ac_tag
23194
23195
23196as_fn_exit 0
23197_ACEOF
23198ac_clean_files=$ac_clean_files_save
23199
23200test $ac_write_fail = 0 ||
23201  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23202
23203
23204# configure is writing to config.log, and then calls config.status.
23205# config.status does its own redirection, appending to config.log.
23206# Unfortunately, on DOS this fails, as config.log is still kept open
23207# by configure, so config.status won't be able to write to it; its
23208# output is simply discarded.  So we exec the FD to /dev/null,
23209# effectively closing config.log, so it can be properly (re)opened and
23210# appended to by config.status.  When coming back to configure, we
23211# need to make the FD available again.
23212if test "$no_create" != yes; then
23213  ac_cs_success=:
23214  ac_config_status_args=
23215  test "$silent" = yes &&
23216    ac_config_status_args="$ac_config_status_args --quiet"
23217  exec 5>/dev/null
23218  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23219  exec 5>>config.log
23220  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23221  # would make configure fail if this is the last instruction.
23222  $ac_cs_success || as_fn_exit 1
23223fi
23224if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23225  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23226$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23227fi
23228
23229
23230
23231echo ""
23232echo "Libtiff is now configured for ${host}"
23233echo ""
23234echo "  Installation directory:             ${prefix}"
23235echo "  Documentation directory:            ${LIBTIFF_DOCDIR}"
23236echo "  C compiler:                         ${CC} ${CFLAGS}"
23237echo "  C++ compiler:                       ${CXX} ${CXXFLAGS}"
23238echo "  Enable runtime linker paths:        ${HAVE_RPATH}"
23239echo "  Enable linker symbol versioning:    ${have_ld_version_script}"
23240echo "  Support Microsoft Document Imaging: ${HAVE_MDI}"
23241echo "  Use win32 IO:                       ${win32_io_ok}"
23242echo ""
23243echo " Support for internal codecs:"
23244echo "  CCITT Group 3 & 4 algorithms:       ${HAVE_CCITT}"
23245echo "  Macintosh PackBits algorithm:       ${HAVE_PACKBITS}"
23246echo "  LZW algorithm:                      ${HAVE_LZW}"
23247echo "  ThunderScan 4-bit RLE algorithm:    ${HAVE_THUNDER}"
23248echo "  NeXT 2-bit RLE algorithm:           ${HAVE_NEXT}"
23249echo "  LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
23250echo ""
23251echo " Support for external codecs:"
23252echo "  ZLIB support:                       ${HAVE_ZLIB}"
23253echo "  Pixar log-format algorithm:         ${HAVE_PIXARLOG}"
23254echo "  JPEG support:                       ${HAVE_JPEG}"
23255echo "  Old JPEG support:                   ${HAVE_OJPEG}"
23256echo "  JPEG 8/12 bit dual mode:            ${HAVE_JPEG12}"
23257echo "  ISO JBIG support:                   ${HAVE_JBIG}"
23258echo "  LZMA2 support:                      ${HAVE_LZMA}"
23259echo ""
23260echo "  C++ support:                        ${HAVE_CXX}"
23261echo ""
23262echo "  OpenGL support:                     ${HAVE_OPENGL}"
23263echo ""
23264
23265