1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cone 1.1.
4#
5# Report bugs to <courier-cone@lists.sourceforge.net>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 bug-autoconf@gnu.org and
278$0: courier-cone@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script 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='cone'
592PACKAGE_TARNAME='cone'
593PACKAGE_VERSION='1.1'
594PACKAGE_STRING='cone 1.1'
595PACKAGE_BUGREPORT='courier-cone@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="cone.C"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635gt_needs=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640LDAPSEARCH
641SPELL_LIB
642LIBMAIL
643MAN5
644MAN3
645HAVE_SGML_FALSE
646HAVE_SGML_TRUE
647PERL
648cacerts
649LIBCOURIERTLS
650XMLLIBS
651XMLCONFIG
652XPDF
653IMAGEVIEWER2
654IMAGEVIEWER1
655COURIER_UNICODE_CXXFLAGS
656POSUB
657LTLIBINTL
658LIBINTL
659INTLLIBS
660LTLIBICONV
661LIBICONV
662INTL_MACOSX_LIBS
663XGETTEXT_EXTRA_OPTIONS
664MSGMERGE_FOR_MSGFMT_OPTION
665MSGMERGE
666XGETTEXT_015
667XGETTEXT
668GMSGFMT_015
669GMSGFMT
670MSGFMT
671GETTEXT_MACRO_VERSION
672USE_NLS
673CXXCPP
674LT_SYS_LIBRARY_PATH
675OTOOL64
676OTOOL
677LIPO
678NMEDIT
679DSYMUTIL
680MANIFEST_TOOL
681RANLIB
682ac_ct_AR
683AR
684DLLTOOL
685OBJDUMP
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691SED
692LIBTOOL
693LN_S
694am__fastdepCXX_FALSE
695am__fastdepCXX_TRUE
696CXXDEPMODE
697ac_ct_CXX
698CXXFLAGS
699CXX
700EGREP
701GREP
702CPP
703am__fastdepCC_FALSE
704am__fastdepCC_TRUE
705CCDEPMODE
706am__nodep
707AMDEPBACKSLASH
708AMDEP_FALSE
709AMDEP_TRUE
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719htmldatadir
720AM_BACKSLASH
721AM_DEFAULT_VERBOSITY
722AM_DEFAULT_V
723AM_V
724am__untar
725am__tar
726AMTAR
727am__leading_dot
728SET_MAKE
729AWK
730mkdir_p
731MKDIR_P
732INSTALL_STRIP_PROGRAM
733STRIP
734install_sh
735MAKEINFO
736AUTOHEADER
737AUTOMAKE
738AUTOCONF
739ACLOCAL
740VERSION
741PACKAGE
742CYGPATH_W
743am__isrc
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747target_os
748target_vendor
749target_cpu
750target
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759target_alias
760host_alias
761build_alias
762LIBS
763ECHO_T
764ECHO_N
765ECHO_C
766DEFS
767mandir
768localedir
769libdir
770psdir
771pdfdir
772dvidir
773htmldir
774infodir
775docdir
776oldincludedir
777includedir
778localstatedir
779sharedstatedir
780sysconfdir
781datadir
782datarootdir
783libexecdir
784sbindir
785bindir
786program_transform_name
787prefix
788exec_prefix
789PACKAGE_URL
790PACKAGE_BUGREPORT
791PACKAGE_STRING
792PACKAGE_VERSION
793PACKAGE_TARNAME
794PACKAGE_NAME
795PATH_SEPARATOR
796SHELL
797am__quote'
798ac_subst_files=''
799ac_user_opts='
800enable_option_checking
801enable_silent_rules
802enable_dependency_tracking
803enable_shared
804enable_static
805with_pic
806enable_fast_install
807with_aix_soname
808with_gnu_ld
809with_sysroot
810enable_libtool_lock
811enable_nls
812enable_rpath
813with_libiconv_prefix
814with_libintl_prefix
815enable_largefile
816with_spellcheck
817with_devel
818with_filterdir
819'
820      ac_precious_vars='build_alias
821host_alias
822target_alias
823CC
824CFLAGS
825LDFLAGS
826LIBS
827CPPFLAGS
828CPP
829CXX
830CXXFLAGS
831CCC
832LT_SYS_LIBRARY_PATH
833CXXCPP'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
883
884ac_prev=
885ac_dashdash=
886for ac_option
887do
888  # If the previous option needs an argument, assign it.
889  if test -n "$ac_prev"; then
890    eval $ac_prev=\$ac_option
891    ac_prev=
892    continue
893  fi
894
895  case $ac_option in
896  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897  *=)   ac_optarg= ;;
898  *)    ac_optarg=yes ;;
899  esac
900
901  # Accept the important Cygnus configure options, so we can diagnose typos.
902
903  case $ac_dashdash$ac_option in
904  --)
905    ac_dashdash=yes ;;
906
907  -bindir | --bindir | --bindi | --bind | --bin | --bi)
908    ac_prev=bindir ;;
909  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910    bindir=$ac_optarg ;;
911
912  -build | --build | --buil | --bui | --bu)
913    ac_prev=build_alias ;;
914  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915    build_alias=$ac_optarg ;;
916
917  -cache-file | --cache-file | --cache-fil | --cache-fi \
918  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919    ac_prev=cache_file ;;
920  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922    cache_file=$ac_optarg ;;
923
924  --config-cache | -C)
925    cache_file=config.cache ;;
926
927  -datadir | --datadir | --datadi | --datad)
928    ac_prev=datadir ;;
929  -datadir=* | --datadir=* | --datadi=* | --datad=*)
930    datadir=$ac_optarg ;;
931
932  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933  | --dataroo | --dataro | --datar)
934    ac_prev=datarootdir ;;
935  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937    datarootdir=$ac_optarg ;;
938
939  -disable-* | --disable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: $ac_useropt"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=no ;;
954
955  -docdir | --docdir | --docdi | --doc | --do)
956    ac_prev=docdir ;;
957  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958    docdir=$ac_optarg ;;
959
960  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961    ac_prev=dvidir ;;
962  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963    dvidir=$ac_optarg ;;
964
965  -enable-* | --enable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      as_fn_error $? "invalid feature name: $ac_useropt"
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=\$ac_optarg ;;
980
981  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983  | --exec | --exe | --ex)
984    ac_prev=exec_prefix ;;
985  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987  | --exec=* | --exe=* | --ex=*)
988    exec_prefix=$ac_optarg ;;
989
990  -gas | --gas | --ga | --g)
991    # Obsolete; use --with-gas.
992    with_gas=yes ;;
993
994  -help | --help | --hel | --he | -h)
995    ac_init_help=long ;;
996  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997    ac_init_help=recursive ;;
998  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999    ac_init_help=short ;;
1000
1001  -host | --host | --hos | --ho)
1002    ac_prev=host_alias ;;
1003  -host=* | --host=* | --hos=* | --ho=*)
1004    host_alias=$ac_optarg ;;
1005
1006  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007    ac_prev=htmldir ;;
1008  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009  | --ht=*)
1010    htmldir=$ac_optarg ;;
1011
1012  -includedir | --includedir | --includedi | --included | --include \
1013  | --includ | --inclu | --incl | --inc)
1014    ac_prev=includedir ;;
1015  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016  | --includ=* | --inclu=* | --incl=* | --inc=*)
1017    includedir=$ac_optarg ;;
1018
1019  -infodir | --infodir | --infodi | --infod | --info | --inf)
1020    ac_prev=infodir ;;
1021  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022    infodir=$ac_optarg ;;
1023
1024  -libdir | --libdir | --libdi | --libd)
1025    ac_prev=libdir ;;
1026  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027    libdir=$ac_optarg ;;
1028
1029  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030  | --libexe | --libex | --libe)
1031    ac_prev=libexecdir ;;
1032  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033  | --libexe=* | --libex=* | --libe=*)
1034    libexecdir=$ac_optarg ;;
1035
1036  -localedir | --localedir | --localedi | --localed | --locale)
1037    ac_prev=localedir ;;
1038  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039    localedir=$ac_optarg ;;
1040
1041  -localstatedir | --localstatedir | --localstatedi | --localstated \
1042  | --localstate | --localstat | --localsta | --localst | --locals)
1043    ac_prev=localstatedir ;;
1044  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046    localstatedir=$ac_optarg ;;
1047
1048  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049    ac_prev=mandir ;;
1050  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051    mandir=$ac_optarg ;;
1052
1053  -nfp | --nfp | --nf)
1054    # Obsolete; use --without-fp.
1055    with_fp=no ;;
1056
1057  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058  | --no-cr | --no-c | -n)
1059    no_create=yes ;;
1060
1061  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063    no_recursion=yes ;;
1064
1065  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067  | --oldin | --oldi | --old | --ol | --o)
1068    ac_prev=oldincludedir ;;
1069  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072    oldincludedir=$ac_optarg ;;
1073
1074  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075    ac_prev=prefix ;;
1076  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077    prefix=$ac_optarg ;;
1078
1079  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080  | --program-pre | --program-pr | --program-p)
1081    ac_prev=program_prefix ;;
1082  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084    program_prefix=$ac_optarg ;;
1085
1086  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087  | --program-suf | --program-su | --program-s)
1088    ac_prev=program_suffix ;;
1089  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091    program_suffix=$ac_optarg ;;
1092
1093  -program-transform-name | --program-transform-name \
1094  | --program-transform-nam | --program-transform-na \
1095  | --program-transform-n | --program-transform- \
1096  | --program-transform | --program-transfor \
1097  | --program-transfo | --program-transf \
1098  | --program-trans | --program-tran \
1099  | --progr-tra | --program-tr | --program-t)
1100    ac_prev=program_transform_name ;;
1101  -program-transform-name=* | --program-transform-name=* \
1102  | --program-transform-nam=* | --program-transform-na=* \
1103  | --program-transform-n=* | --program-transform-=* \
1104  | --program-transform=* | --program-transfor=* \
1105  | --program-transfo=* | --program-transf=* \
1106  | --program-trans=* | --program-tran=* \
1107  | --progr-tra=* | --program-tr=* | --program-t=*)
1108    program_transform_name=$ac_optarg ;;
1109
1110  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111    ac_prev=pdfdir ;;
1112  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113    pdfdir=$ac_optarg ;;
1114
1115  -psdir | --psdir | --psdi | --psd | --ps)
1116    ac_prev=psdir ;;
1117  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118    psdir=$ac_optarg ;;
1119
1120  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121  | -silent | --silent | --silen | --sile | --sil)
1122    silent=yes ;;
1123
1124  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125    ac_prev=sbindir ;;
1126  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127  | --sbi=* | --sb=*)
1128    sbindir=$ac_optarg ;;
1129
1130  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132  | --sharedst | --shareds | --shared | --share | --shar \
1133  | --sha | --sh)
1134    ac_prev=sharedstatedir ;;
1135  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138  | --sha=* | --sh=*)
1139    sharedstatedir=$ac_optarg ;;
1140
1141  -site | --site | --sit)
1142    ac_prev=site ;;
1143  -site=* | --site=* | --sit=*)
1144    site=$ac_optarg ;;
1145
1146  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147    ac_prev=srcdir ;;
1148  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149    srcdir=$ac_optarg ;;
1150
1151  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152  | --syscon | --sysco | --sysc | --sys | --sy)
1153    ac_prev=sysconfdir ;;
1154  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156    sysconfdir=$ac_optarg ;;
1157
1158  -target | --target | --targe | --targ | --tar | --ta | --t)
1159    ac_prev=target_alias ;;
1160  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161    target_alias=$ac_optarg ;;
1162
1163  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164    verbose=yes ;;
1165
1166  -version | --version | --versio | --versi | --vers | -V)
1167    ac_init_version=: ;;
1168
1169  -with-* | --with-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=\$ac_optarg ;;
1184
1185  -without-* | --without-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: $ac_useropt"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=no ;;
1200
1201  --x)
1202    # Obsolete; use --with-x.
1203    with_x=yes ;;
1204
1205  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206  | --x-incl | --x-inc | --x-in | --x-i)
1207    ac_prev=x_includes ;;
1208  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210    x_includes=$ac_optarg ;;
1211
1212  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214    ac_prev=x_libraries ;;
1215  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217    x_libraries=$ac_optarg ;;
1218
1219  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
1221    ;;
1222
1223  *=*)
1224    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225    # Reject names that are not valid shell variable names.
1226    case $ac_envvar in #(
1227      '' | [0-9]* | *[!_$as_cr_alnum]* )
1228      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229    esac
1230    eval $ac_envvar=\$ac_optarg
1231    export $ac_envvar ;;
1232
1233  *)
1234    # FIXME: should be removed in autoconf 3.0.
1235    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239    ;;
1240
1241  esac
1242done
1243
1244if test -n "$ac_prev"; then
1245  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246  as_fn_error $? "missing argument to $ac_option"
1247fi
1248
1249if test -n "$ac_unrecognized_opts"; then
1250  case $enable_option_checking in
1251    no) ;;
1252    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254  esac
1255fi
1256
1257# Check all directory arguments for consistency.
1258for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259		datadir sysconfdir sharedstatedir localstatedir includedir \
1260		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261		libdir localedir mandir
1262do
1263  eval ac_val=\$$ac_var
1264  # Remove trailing slashes.
1265  case $ac_val in
1266    */ )
1267      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268      eval $ac_var=\$ac_val;;
1269  esac
1270  # Be sure to have absolute directory names.
1271  case $ac_val in
1272    [\\/$]* | ?:[\\/]* )  continue;;
1273    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274  esac
1275  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276done
1277
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
1284
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287  if test "x$build_alias" = x; then
1288    cross_compiling=maybe
1289  elif test "x$build_alias" != "x$host_alias"; then
1290    cross_compiling=yes
1291  fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303  as_fn_error $? "working directory cannot be determined"
1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305  as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310  ac_srcdir_defaulted=yes
1311  # Try the directory containing this script, then the parent directory.
1312  ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314	 X"$as_myself" : 'X\(//\)[^/]' \| \
1315	 X"$as_myself" : 'X\(//\)$' \| \
1316	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317$as_echo X"$as_myself" |
1318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)[^/].*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\).*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  s/.*/./; q'`
1335  srcdir=$ac_confdir
1336  if test ! -r "$srcdir/$ac_unique_file"; then
1337    srcdir=..
1338  fi
1339else
1340  ac_srcdir_defaulted=no
1341fi
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
1348	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349	pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352  srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_env_${ac_var}_value=\$${ac_var}
1363  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
1366
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371  # Omit some internal or obsolete options to make the list less imposing.
1372  # This message is too long to be a string in the A/UX 3.1 sh.
1373  cat <<_ACEOF
1374\`configure' configures cone 1.1 to adapt to many kinds of systems.
1375
1376Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381Defaults for the options are specified in brackets.
1382
1383Configuration:
1384  -h, --help              display this help and exit
1385      --help=short        display options specific to this package
1386      --help=recursive    display the short help of all the included packages
1387  -V, --version           display version information and exit
1388  -q, --quiet, --silent   do not print \`checking ...' messages
1389      --cache-file=FILE   cache test results in FILE [disabled]
1390  -C, --config-cache      alias for \`--cache-file=config.cache'
1391  -n, --no-create         do not create output files
1392      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394Installation directories:
1395  --prefix=PREFIX         install architecture-independent files in PREFIX
1396                          [$ac_default_prefix]
1397  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                          [PREFIX]
1399
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
1404
1405For better control, use the options below.
1406
1407Fine tuning of the installation directories:
1408  --bindir=DIR            user executables [EPREFIX/bin]
1409  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410  --libexecdir=DIR        program executables [EPREFIX/libexec]
1411  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414  --libdir=DIR            object code libraries [EPREFIX/lib]
1415  --includedir=DIR        C header files [PREFIX/include]
1416  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419  --infodir=DIR           info documentation [DATAROOTDIR/info]
1420  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421  --mandir=DIR            man documentation [DATAROOTDIR/man]
1422  --docdir=DIR            documentation root [DATAROOTDIR/doc/cone]
1423  --htmldir=DIR           html documentation [DOCDIR]
1424  --dvidir=DIR            dvi documentation [DOCDIR]
1425  --pdfdir=DIR            pdf documentation [DOCDIR]
1426  --psdir=DIR             ps documentation [DOCDIR]
1427_ACEOF
1428
1429  cat <<\_ACEOF
1430
1431Program names:
1432  --program-prefix=PREFIX            prepend PREFIX to installed program names
1433  --program-suffix=SUFFIX            append SUFFIX to installed program names
1434  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1435
1436System types:
1437  --build=BUILD     configure for building on BUILD [guessed]
1438  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439  --target=TARGET   configure for building compilers for TARGET [HOST]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444  case $ac_init_help in
1445     short | recursive ) echo "Configuration of cone 1.1:";;
1446   esac
1447  cat <<\_ACEOF
1448
1449Optional Features:
1450  --disable-option-checking  ignore unrecognized --enable/--with options
1451  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453  --enable-silent-rules   less verbose build output (undo: "make V=1")
1454  --disable-silent-rules  verbose build output (undo: "make V=0")
1455  --enable-dependency-tracking
1456                          do not reject slow dependency extractors
1457  --disable-dependency-tracking
1458                          speeds up one-time build
1459  --enable-shared[=PKGS]  build shared libraries [default=yes]
1460  --enable-static[=PKGS]  build static libraries [default=yes]
1461  --enable-fast-install[=PKGS]
1462                          optimize for fast installation [default=yes]
1463  --disable-libtool-lock  avoid locking (might break parallel builds)
1464  --disable-nls           do not use Native Language Support
1465  --disable-rpath         do not hardcode runtime library paths
1466  --disable-largefile     omit support for large files
1467
1468Optional Packages:
1469  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1472                          both]
1473  --with-aix-soname=aix|svr4|both
1474                          shared library versioning (aka "SONAME") variant to
1475                          provide on AIX, [default=aix].
1476  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1478                          compiler's sysroot if not specified).
1479  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1481  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1482  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1483  --without-libintl-prefix     don't search for libintl in includedir and libdir
1484  --with-spellcheck=pspell      Use pspell for spell checking
1485  --with-spellcheck=aspell      Use aspell for spell checking
1486  --with-devel                  Install development libraries
1487--with-filterdir=dir   Internal debugging option
1488
1489Some influential environment variables:
1490  CC          C compiler command
1491  CFLAGS      C compiler flags
1492  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1493              nonstandard directory <lib dir>
1494  LIBS        libraries to pass to the linker, e.g. -l<library>
1495  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496              you have headers in a nonstandard directory <include dir>
1497  CPP         C preprocessor
1498  CXX         C++ compiler command
1499  CXXFLAGS    C++ compiler flags
1500  LT_SYS_LIBRARY_PATH
1501              User-defined run-time library search path.
1502  CXXCPP      C++ preprocessor
1503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
1507Report bugs to <courier-cone@lists.sourceforge.net>.
1508_ACEOF
1509ac_status=$?
1510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513  # If there are subdirs, report their specific --help.
1514  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515    test -d "$ac_dir" ||
1516      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517      continue
1518    ac_builddir=.
1519
1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
1523  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524  # A ".." for each directory in $ac_dir_suffix.
1525  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526  case $ac_top_builddir_sub in
1527  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529  esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
1535
1536case $srcdir in
1537  .)  # We are building in place.
1538    ac_srcdir=.
1539    ac_top_srcdir=$ac_top_builddir_sub
1540    ac_abs_top_srcdir=$ac_pwd ;;
1541  [\\/]* | ?:[\\/]* )  # Absolute name.
1542    ac_srcdir=$srcdir$ac_dir_suffix;
1543    ac_top_srcdir=$srcdir
1544    ac_abs_top_srcdir=$srcdir ;;
1545  *) # Relative name.
1546    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547    ac_top_srcdir=$ac_top_build_prefix$srcdir
1548    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549esac
1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552    cd "$ac_dir" || { ac_status=$?; continue; }
1553    # Check for guested configure.
1554    if test -f "$ac_srcdir/configure.gnu"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557    elif test -f "$ac_srcdir/configure"; then
1558      echo &&
1559      $SHELL "$ac_srcdir/configure" --help=recursive
1560    else
1561      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562    fi || ac_status=$?
1563    cd "$ac_pwd" || { ac_status=$?; break; }
1564  done
1565fi
1566
1567test -n "$ac_init_help" && exit $ac_status
1568if $ac_init_version; then
1569  cat <<\_ACEOF
1570cone configure 1.1
1571generated by GNU Autoconf 2.69
1572
1573Copyright (C) 2012 Free Software Foundation, Inc.
1574This configure script is free software; the Free Software Foundation
1575gives unlimited permission to copy, distribute and modify it.
1576_ACEOF
1577  exit
1578fi
1579
1580## ------------------------ ##
1581## Autoconf initialization. ##
1582## ------------------------ ##
1583
1584# ac_fn_c_try_compile LINENO
1585# --------------------------
1586# Try to compile conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_compile ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  rm -f conftest.$ac_objext
1591  if { { ac_try="$ac_compile"
1592case "(($ac_try" in
1593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594  *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598  (eval "$ac_compile") 2>conftest.err
1599  ac_status=$?
1600  if test -s conftest.err; then
1601    grep -v '^ *+' conftest.err >conftest.er1
1602    cat conftest.er1 >&5
1603    mv -f conftest.er1 conftest.err
1604  fi
1605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606  test $ac_status = 0; } && {
1607	 test -z "$ac_c_werror_flag" ||
1608	 test ! -s conftest.err
1609       } && test -s conftest.$ac_objext; then :
1610  ac_retval=0
1611else
1612  $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615	ac_retval=1
1616fi
1617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618  as_fn_set_status $ac_retval
1619
1620} # ac_fn_c_try_compile
1621
1622# ac_fn_c_try_cpp LINENO
1623# ----------------------
1624# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_cpp ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  if { { ac_try="$ac_cpp conftest.$ac_ext"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636  ac_status=$?
1637  if test -s conftest.err; then
1638    grep -v '^ *+' conftest.err >conftest.er1
1639    cat conftest.er1 >&5
1640    mv -f conftest.er1 conftest.err
1641  fi
1642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643  test $ac_status = 0; } > conftest.i && {
1644	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645	 test ! -s conftest.err
1646       }; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652    ac_retval=1
1653fi
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655  as_fn_set_status $ac_retval
1656
1657} # ac_fn_c_try_cpp
1658
1659# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1660# -------------------------------------------------------
1661# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1662# the include files in INCLUDES and setting the cache variable VAR
1663# accordingly.
1664ac_fn_c_check_header_mongrel ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  if eval \${$3+:} false; then :
1668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671  $as_echo_n "(cached) " >&6
1672fi
1673eval ac_res=\$$3
1674	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675$as_echo "$ac_res" >&6; }
1676else
1677  # Is the header compilable?
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1679$as_echo_n "checking $2 usability... " >&6; }
1680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h.  */
1682$4
1683#include <$2>
1684_ACEOF
1685if ac_fn_c_try_compile "$LINENO"; then :
1686  ac_header_compiler=yes
1687else
1688  ac_header_compiler=no
1689fi
1690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1692$as_echo "$ac_header_compiler" >&6; }
1693
1694# Is the header present?
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1696$as_echo_n "checking $2 presence... " >&6; }
1697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698/* end confdefs.h.  */
1699#include <$2>
1700_ACEOF
1701if ac_fn_c_try_cpp "$LINENO"; then :
1702  ac_header_preproc=yes
1703else
1704  ac_header_preproc=no
1705fi
1706rm -f conftest.err conftest.i conftest.$ac_ext
1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1708$as_echo "$ac_header_preproc" >&6; }
1709
1710# So?  What about this header?
1711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1712  yes:no: )
1713    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1714$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717    ;;
1718  no:yes:* )
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1720$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1722$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1724$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1726$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1728$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1729( $as_echo "## ------------------------------------------------- ##
1730## Report this to courier-cone@lists.sourceforge.net ##
1731## ------------------------------------------------- ##"
1732     ) | sed "s/^/$as_me: WARNING:     /" >&2
1733    ;;
1734esac
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  eval "$3=\$ac_header_compiler"
1741fi
1742eval ac_res=\$$3
1743	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745fi
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747
1748} # ac_fn_c_check_header_mongrel
1749
1750# ac_fn_c_try_run LINENO
1751# ----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753# that executables *can* be run.
1754ac_fn_c_try_run ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>&5
1765  ac_status=$?
1766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768  { { case "(($ac_try" in
1769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770  *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774  (eval "$ac_try") 2>&5
1775  ac_status=$?
1776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777  test $ac_status = 0; }; }; then :
1778  ac_retval=0
1779else
1780  $as_echo "$as_me: program exited with status $ac_status" >&5
1781       $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784       ac_retval=$ac_status
1785fi
1786  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_run
1791
1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists and can be compiled using the include files in
1795# INCLUDES, setting the cache variable VAR accordingly.
1796ac_fn_c_check_header_compile ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803else
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$4
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810  eval "$3=yes"
1811else
1812  eval "$3=no"
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_header_compile
1822
1823# ac_fn_cxx_try_compile LINENO
1824# ----------------------------
1825# Try to compile conftest.$ac_ext, and return whether this succeeded.
1826ac_fn_cxx_try_compile ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  rm -f conftest.$ac_objext
1830  if { { ac_try="$ac_compile"
1831case "(($ac_try" in
1832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833  *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837  (eval "$ac_compile") 2>conftest.err
1838  ac_status=$?
1839  if test -s conftest.err; then
1840    grep -v '^ *+' conftest.err >conftest.er1
1841    cat conftest.er1 >&5
1842    mv -f conftest.er1 conftest.err
1843  fi
1844  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845  test $ac_status = 0; } && {
1846	 test -z "$ac_cxx_werror_flag" ||
1847	 test ! -s conftest.err
1848       } && test -s conftest.$ac_objext; then :
1849  ac_retval=0
1850else
1851  $as_echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854	ac_retval=1
1855fi
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857  as_fn_set_status $ac_retval
1858
1859} # ac_fn_cxx_try_compile
1860
1861# ac_fn_c_try_link LINENO
1862# -----------------------
1863# Try to link conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_c_try_link ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  rm -f conftest.$ac_objext conftest$ac_exeext
1868  if { { ac_try="$ac_link"
1869case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875  (eval "$ac_link") 2>conftest.err
1876  ac_status=$?
1877  if test -s conftest.err; then
1878    grep -v '^ *+' conftest.err >conftest.er1
1879    cat conftest.er1 >&5
1880    mv -f conftest.er1 conftest.err
1881  fi
1882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883  test $ac_status = 0; } && {
1884	 test -z "$ac_c_werror_flag" ||
1885	 test ! -s conftest.err
1886       } && test -s conftest$ac_exeext && {
1887	 test "$cross_compiling" = yes ||
1888	 test -x conftest$ac_exeext
1889       }; then :
1890  ac_retval=0
1891else
1892  $as_echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895	ac_retval=1
1896fi
1897  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899  # interfere with the next link command; also delete a directory that is
1900  # left behind by Apple's compiler.  We do this before executing the actions.
1901  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903  as_fn_set_status $ac_retval
1904
1905} # ac_fn_c_try_link
1906
1907# ac_fn_c_check_func LINENO FUNC VAR
1908# ----------------------------------
1909# Tests whether FUNC exists, setting the cache variable VAR accordingly
1910ac_fn_c_check_func ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1922#define $2 innocuous_$2
1923
1924/* System header to define __stub macros and hopefully few prototypes,
1925    which can conflict with char $2 (); below.
1926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927    <limits.h> exists even on freestanding compilers.  */
1928
1929#ifdef __STDC__
1930# include <limits.h>
1931#else
1932# include <assert.h>
1933#endif
1934
1935#undef $2
1936
1937/* Override any GCC internal prototype to avoid an error.
1938   Use char because int might match the return type of a GCC
1939   builtin and then its argument prototype would still apply.  */
1940#ifdef __cplusplus
1941extern "C"
1942#endif
1943char $2 ();
1944/* The GNU C library defines this for functions which it implements
1945    to always fail with ENOSYS.  Some functions are actually named
1946    something starting with __ and the normal name is an alias.  */
1947#if defined __stub_$2 || defined __stub___$2
1948choke me
1949#endif
1950
1951int
1952main ()
1953{
1954return $2 ();
1955  ;
1956  return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_link "$LINENO"; then :
1960  eval "$3=yes"
1961else
1962  eval "$3=no"
1963fi
1964rm -f core conftest.err conftest.$ac_objext \
1965    conftest$ac_exeext conftest.$ac_ext
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972} # ac_fn_c_check_func
1973
1974# ac_fn_cxx_try_cpp LINENO
1975# ------------------------
1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_cxx_try_cpp ()
1978{
1979  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980  if { { ac_try="$ac_cpp conftest.$ac_ext"
1981case "(($ac_try" in
1982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983  *) ac_try_echo=$ac_try;;
1984esac
1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986$as_echo "$ac_try_echo"; } >&5
1987  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1988  ac_status=$?
1989  if test -s conftest.err; then
1990    grep -v '^ *+' conftest.err >conftest.er1
1991    cat conftest.er1 >&5
1992    mv -f conftest.er1 conftest.err
1993  fi
1994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995  test $ac_status = 0; } > conftest.i && {
1996	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1997	 test ! -s conftest.err
1998       }; then :
1999  ac_retval=0
2000else
2001  $as_echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004    ac_retval=1
2005fi
2006  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007  as_fn_set_status $ac_retval
2008
2009} # ac_fn_cxx_try_cpp
2010
2011# ac_fn_cxx_try_link LINENO
2012# -------------------------
2013# Try to link conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_cxx_try_link ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  rm -f conftest.$ac_objext conftest$ac_exeext
2018  if { { ac_try="$ac_link"
2019case "(($ac_try" in
2020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021  *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025  (eval "$ac_link") 2>conftest.err
2026  ac_status=$?
2027  if test -s conftest.err; then
2028    grep -v '^ *+' conftest.err >conftest.er1
2029    cat conftest.er1 >&5
2030    mv -f conftest.er1 conftest.err
2031  fi
2032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033  test $ac_status = 0; } && {
2034	 test -z "$ac_cxx_werror_flag" ||
2035	 test ! -s conftest.err
2036       } && test -s conftest$ac_exeext && {
2037	 test "$cross_compiling" = yes ||
2038	 test -x conftest$ac_exeext
2039       }; then :
2040  ac_retval=0
2041else
2042  $as_echo "$as_me: failed program was:" >&5
2043sed 's/^/| /' conftest.$ac_ext >&5
2044
2045	ac_retval=1
2046fi
2047  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2048  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2049  # interfere with the next link command; also delete a directory that is
2050  # left behind by Apple's compiler.  We do this before executing the actions.
2051  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053  as_fn_set_status $ac_retval
2054
2055} # ac_fn_cxx_try_link
2056
2057# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058# -------------------------------------------
2059# Tests whether TYPE exists after having included INCLUDES, setting cache
2060# variable VAR accordingly.
2061ac_fn_c_check_type ()
2062{
2063  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065$as_echo_n "checking for $2... " >&6; }
2066if eval \${$3+:} false; then :
2067  $as_echo_n "(cached) " >&6
2068else
2069  eval "$3=no"
2070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h.  */
2072$4
2073int
2074main ()
2075{
2076if (sizeof ($2))
2077	 return 0;
2078  ;
2079  return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085$4
2086int
2087main ()
2088{
2089if (sizeof (($2)))
2090	    return 0;
2091  ;
2092  return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096
2097else
2098  eval "$3=yes"
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103fi
2104eval ac_res=\$$3
2105	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106$as_echo "$ac_res" >&6; }
2107  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109} # ac_fn_c_check_type
2110
2111# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2112# ---------------------------------------------------------
2113# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2114# the include files in INCLUDES and setting the cache variable VAR
2115# accordingly.
2116ac_fn_cxx_check_header_mongrel ()
2117{
2118  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119  if eval \${$3+:} false; then :
2120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121$as_echo_n "checking for $2... " >&6; }
2122if eval \${$3+:} false; then :
2123  $as_echo_n "(cached) " >&6
2124fi
2125eval ac_res=\$$3
2126	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127$as_echo "$ac_res" >&6; }
2128else
2129  # Is the header compilable?
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2131$as_echo_n "checking $2 usability... " >&6; }
2132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135#include <$2>
2136_ACEOF
2137if ac_fn_cxx_try_compile "$LINENO"; then :
2138  ac_header_compiler=yes
2139else
2140  ac_header_compiler=no
2141fi
2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2144$as_echo "$ac_header_compiler" >&6; }
2145
2146# Is the header present?
2147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2148$as_echo_n "checking $2 presence... " >&6; }
2149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h.  */
2151#include <$2>
2152_ACEOF
2153if ac_fn_cxx_try_cpp "$LINENO"; then :
2154  ac_header_preproc=yes
2155else
2156  ac_header_preproc=no
2157fi
2158rm -f conftest.err conftest.i conftest.$ac_ext
2159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2160$as_echo "$ac_header_preproc" >&6; }
2161
2162# So?  What about this header?
2163case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2164  yes:no: )
2165    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2166$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2167    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2168$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2169    ;;
2170  no:yes:* )
2171    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2172$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2173    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2174$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2175    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2176$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2177    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2178$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2179    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181( $as_echo "## ------------------------------------------------- ##
2182## Report this to courier-cone@lists.sourceforge.net ##
2183## ------------------------------------------------- ##"
2184     ) | sed "s/^/$as_me: WARNING:     /" >&2
2185    ;;
2186esac
2187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188$as_echo_n "checking for $2... " >&6; }
2189if eval \${$3+:} false; then :
2190  $as_echo_n "(cached) " >&6
2191else
2192  eval "$3=\$ac_header_compiler"
2193fi
2194eval ac_res=\$$3
2195	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196$as_echo "$ac_res" >&6; }
2197fi
2198  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200} # ac_fn_cxx_check_header_mongrel
2201cat >config.log <<_ACEOF
2202This file contains any messages produced by compilers while
2203running configure, to aid debugging if configure makes a mistake.
2204
2205It was created by cone $as_me 1.1, which was
2206generated by GNU Autoconf 2.69.  Invocation command line was
2207
2208  $ $0 $@
2209
2210_ACEOF
2211exec 5>>config.log
2212{
2213cat <<_ASUNAME
2214## --------- ##
2215## Platform. ##
2216## --------- ##
2217
2218hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2226
2227/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2228/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2229/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2231/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2232/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2233/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2234
2235_ASUNAME
2236
2237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238for as_dir in $PATH
2239do
2240  IFS=$as_save_IFS
2241  test -z "$as_dir" && as_dir=.
2242    $as_echo "PATH: $as_dir"
2243  done
2244IFS=$as_save_IFS
2245
2246} >&5
2247
2248cat >&5 <<_ACEOF
2249
2250
2251## ----------- ##
2252## Core tests. ##
2253## ----------- ##
2254
2255_ACEOF
2256
2257
2258# Keep a trace of the command line.
2259# Strip out --no-create and --no-recursion so they do not pile up.
2260# Strip out --silent because we don't want to record it for future runs.
2261# Also quote any args containing shell meta-characters.
2262# Make two passes to allow for proper duplicate-argument suppression.
2263ac_configure_args=
2264ac_configure_args0=
2265ac_configure_args1=
2266ac_must_keep_next=false
2267for ac_pass in 1 2
2268do
2269  for ac_arg
2270  do
2271    case $ac_arg in
2272    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274    | -silent | --silent | --silen | --sile | --sil)
2275      continue ;;
2276    *\'*)
2277      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278    esac
2279    case $ac_pass in
2280    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281    2)
2282      as_fn_append ac_configure_args1 " '$ac_arg'"
2283      if test $ac_must_keep_next = true; then
2284	ac_must_keep_next=false # Got value, back to normal.
2285      else
2286	case $ac_arg in
2287	  *=* | --config-cache | -C | -disable-* | --disable-* \
2288	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290	  | -with-* | --with-* | -without-* | --without-* | --x)
2291	    case "$ac_configure_args0 " in
2292	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293	    esac
2294	    ;;
2295	  -* ) ac_must_keep_next=true ;;
2296	esac
2297      fi
2298      as_fn_append ac_configure_args " '$ac_arg'"
2299      ;;
2300    esac
2301  done
2302done
2303{ ac_configure_args0=; unset ac_configure_args0;}
2304{ ac_configure_args1=; unset ac_configure_args1;}
2305
2306# When interrupted or exit'd, cleanup temporary files, and complete
2307# config.log.  We remove comments because anyway the quotes in there
2308# would cause problems or look ugly.
2309# WARNING: Use '\'' to represent an apostrophe within the trap.
2310# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311trap 'exit_status=$?
2312  # Save into config.log some information that might help in debugging.
2313  {
2314    echo
2315
2316    $as_echo "## ---------------- ##
2317## Cache variables. ##
2318## ---------------- ##"
2319    echo
2320    # The following way of writing the cache mishandles newlines in values,
2321(
2322  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323    eval ac_val=\$$ac_var
2324    case $ac_val in #(
2325    *${as_nl}*)
2326      case $ac_var in #(
2327      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329      esac
2330      case $ac_var in #(
2331      _ | IFS | as_nl) ;; #(
2332      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333      *) { eval $ac_var=; unset $ac_var;} ;;
2334      esac ;;
2335    esac
2336  done
2337  (set) 2>&1 |
2338    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339    *${as_nl}ac_space=\ *)
2340      sed -n \
2341	"s/'\''/'\''\\\\'\'''\''/g;
2342	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343      ;; #(
2344    *)
2345      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346      ;;
2347    esac |
2348    sort
2349)
2350    echo
2351
2352    $as_echo "## ----------------- ##
2353## Output variables. ##
2354## ----------------- ##"
2355    echo
2356    for ac_var in $ac_subst_vars
2357    do
2358      eval ac_val=\$$ac_var
2359      case $ac_val in
2360      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361      esac
2362      $as_echo "$ac_var='\''$ac_val'\''"
2363    done | sort
2364    echo
2365
2366    if test -n "$ac_subst_files"; then
2367      $as_echo "## ------------------- ##
2368## File substitutions. ##
2369## ------------------- ##"
2370      echo
2371      for ac_var in $ac_subst_files
2372      do
2373	eval ac_val=\$$ac_var
2374	case $ac_val in
2375	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376	esac
2377	$as_echo "$ac_var='\''$ac_val'\''"
2378      done | sort
2379      echo
2380    fi
2381
2382    if test -s confdefs.h; then
2383      $as_echo "## ----------- ##
2384## confdefs.h. ##
2385## ----------- ##"
2386      echo
2387      cat confdefs.h
2388      echo
2389    fi
2390    test "$ac_signal" != 0 &&
2391      $as_echo "$as_me: caught signal $ac_signal"
2392    $as_echo "$as_me: exit $exit_status"
2393  } >&5
2394  rm -f core *.core core.conftest.* &&
2395    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396    exit $exit_status
2397' 0
2398for ac_signal in 1 2 13 15; do
2399  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400done
2401ac_signal=0
2402
2403# confdefs.h avoids OS command line length limits that DEFS can exceed.
2404rm -f -r conftest* confdefs.h
2405
2406$as_echo "/* confdefs.h */" > confdefs.h
2407
2408# Predefined preprocessor variables.
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_NAME "$PACKAGE_NAME"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_VERSION "$PACKAGE_VERSION"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_STRING "$PACKAGE_STRING"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_URL "$PACKAGE_URL"
2432_ACEOF
2433
2434
2435# Let the site file select an alternate cache file if it wants to.
2436# Prefer an explicitly selected file to automatically selected ones.
2437ac_site_file1=NONE
2438ac_site_file2=NONE
2439if test -n "$CONFIG_SITE"; then
2440  # We do not want a PATH search for config.site.
2441  case $CONFIG_SITE in #((
2442    -*)  ac_site_file1=./$CONFIG_SITE;;
2443    */*) ac_site_file1=$CONFIG_SITE;;
2444    *)   ac_site_file1=./$CONFIG_SITE;;
2445  esac
2446elif test "x$prefix" != xNONE; then
2447  ac_site_file1=$prefix/share/config.site
2448  ac_site_file2=$prefix/etc/config.site
2449else
2450  ac_site_file1=$ac_default_prefix/share/config.site
2451  ac_site_file2=$ac_default_prefix/etc/config.site
2452fi
2453for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454do
2455  test "x$ac_site_file" = xNONE && continue
2456  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459    sed 's/^/| /' "$ac_site_file" >&5
2460    . "$ac_site_file" \
2461      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463as_fn_error $? "failed to load site script $ac_site_file
2464See \`config.log' for more details" "$LINENO" 5; }
2465  fi
2466done
2467
2468if test -r "$cache_file"; then
2469  # Some versions of bash will fail to source /dev/null (special files
2470  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2471  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473$as_echo "$as_me: loading cache $cache_file" >&6;}
2474    case $cache_file in
2475      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476      *)                      . "./$cache_file";;
2477    esac
2478  fi
2479else
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481$as_echo "$as_me: creating cache $cache_file" >&6;}
2482  >$cache_file
2483fi
2484
2485gt_needs="$gt_needs "
2486# Check that the precious variables saved in the cache have kept the same
2487# value.
2488ac_cache_corrupted=false
2489for ac_var in $ac_precious_vars; do
2490  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2491  eval ac_new_set=\$ac_env_${ac_var}_set
2492  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2493  eval ac_new_val=\$ac_env_${ac_var}_value
2494  case $ac_old_set,$ac_new_set in
2495    set,)
2496      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2497$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2498      ac_cache_corrupted=: ;;
2499    ,set)
2500      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2501$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2502      ac_cache_corrupted=: ;;
2503    ,);;
2504    *)
2505      if test "x$ac_old_val" != "x$ac_new_val"; then
2506	# differences in whitespace do not lead to failure.
2507	ac_old_val_w=`echo x $ac_old_val`
2508	ac_new_val_w=`echo x $ac_new_val`
2509	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2510	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2511$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2512	  ac_cache_corrupted=:
2513	else
2514	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2515$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2516	  eval $ac_var=\$ac_old_val
2517	fi
2518	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2519$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2520	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2521$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2522      fi;;
2523  esac
2524  # Pass precious variables to config.status.
2525  if test "$ac_new_set" = set; then
2526    case $ac_new_val in
2527    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2528    *) ac_arg=$ac_var=$ac_new_val ;;
2529    esac
2530    case " $ac_configure_args " in
2531      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2532      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2533    esac
2534  fi
2535done
2536if $ac_cache_corrupted; then
2537  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2540$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2541  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2542fi
2543## -------------------- ##
2544## Main body of script. ##
2545## -------------------- ##
2546
2547ac_ext=c
2548ac_cpp='$CPP $CPPFLAGS'
2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552
2553
2554
2555
2556ac_aux_dir=
2557for ac_dir in .. "$srcdir"/..; do
2558  if test -f "$ac_dir/install-sh"; then
2559    ac_aux_dir=$ac_dir
2560    ac_install_sh="$ac_aux_dir/install-sh -c"
2561    break
2562  elif test -f "$ac_dir/install.sh"; then
2563    ac_aux_dir=$ac_dir
2564    ac_install_sh="$ac_aux_dir/install.sh -c"
2565    break
2566  elif test -f "$ac_dir/shtool"; then
2567    ac_aux_dir=$ac_dir
2568    ac_install_sh="$ac_aux_dir/shtool install -c"
2569    break
2570  fi
2571done
2572if test -z "$ac_aux_dir"; then
2573  as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2574fi
2575
2576# These three variables are undocumented and unsupported,
2577# and are intended to be withdrawn in a future Autoconf release.
2578# They can cause serious problems if a builder's source tree is in a directory
2579# whose full name contains unusual characters.
2580ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2581ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2582ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2583
2584
2585# Make sure we can run config.sub.
2586$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2588
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590$as_echo_n "checking build system type... " >&6; }
2591if ${ac_cv_build+:} false; then :
2592  $as_echo_n "(cached) " >&6
2593else
2594  ac_build_alias=$build_alias
2595test "x$ac_build_alias" = x &&
2596  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597test "x$ac_build_alias" = x &&
2598  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2599ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2601
2602fi
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604$as_echo "$ac_cv_build" >&6; }
2605case $ac_cv_build in
2606*-*-*) ;;
2607*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2608esac
2609build=$ac_cv_build
2610ac_save_IFS=$IFS; IFS='-'
2611set x $ac_cv_build
2612shift
2613build_cpu=$1
2614build_vendor=$2
2615shift; shift
2616# Remember, the first character of IFS is used to create $*,
2617# except with old shells:
2618build_os=$*
2619IFS=$ac_save_IFS
2620case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624$as_echo_n "checking host system type... " >&6; }
2625if ${ac_cv_host+:} false; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  if test "x$host_alias" = x; then
2629  ac_cv_host=$ac_cv_build
2630else
2631  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2633fi
2634
2635fi
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637$as_echo "$ac_cv_host" >&6; }
2638case $ac_cv_host in
2639*-*-*) ;;
2640*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2641esac
2642host=$ac_cv_host
2643ac_save_IFS=$IFS; IFS='-'
2644set x $ac_cv_host
2645shift
2646host_cpu=$1
2647host_vendor=$2
2648shift; shift
2649# Remember, the first character of IFS is used to create $*,
2650# except with old shells:
2651host_os=$*
2652IFS=$ac_save_IFS
2653case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2654
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657$as_echo_n "checking target system type... " >&6; }
2658if ${ac_cv_target+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  if test "x$target_alias" = x; then
2662  ac_cv_target=$ac_cv_host
2663else
2664  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2666fi
2667
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670$as_echo "$ac_cv_target" >&6; }
2671case $ac_cv_target in
2672*-*-*) ;;
2673*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2674esac
2675target=$ac_cv_target
2676ac_save_IFS=$IFS; IFS='-'
2677set x $ac_cv_target
2678shift
2679target_cpu=$1
2680target_vendor=$2
2681shift; shift
2682# Remember, the first character of IFS is used to create $*,
2683# except with old shells:
2684target_os=$*
2685IFS=$ac_save_IFS
2686case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2687
2688
2689# The aliases save the names the user supplied, while $host etc.
2690# will get canonicalized.
2691test -n "$target_alias" &&
2692  test "$program_prefix$program_suffix$program_transform_name" = \
2693    NONENONEs,x,x, &&
2694  program_prefix=${target_alias}-
2695ac_config_headers="$ac_config_headers config.h"
2696
2697am__api_version='1.16'
2698
2699# Find a good install program.  We prefer a C program (faster),
2700# so one script is as good as another.  But avoid the broken or
2701# incompatible versions:
2702# SysV /etc/install, /usr/sbin/install
2703# SunOS /usr/etc/install
2704# IRIX /sbin/install
2705# AIX /bin/install
2706# AmigaOS /C/install, which installs bootblocks on floppy discs
2707# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2708# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2709# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2710# OS/2's system install, which has a completely different semantic
2711# ./install, which can be erroneously created by make from ./install.sh.
2712# Reject install programs that cannot install multiple files.
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2714$as_echo_n "checking for a BSD-compatible install... " >&6; }
2715if test -z "$INSTALL"; then
2716if ${ac_cv_path_install+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722  IFS=$as_save_IFS
2723  test -z "$as_dir" && as_dir=.
2724    # Account for people who put trailing slashes in PATH elements.
2725case $as_dir/ in #((
2726  ./ | .// | /[cC]/* | \
2727  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2728  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2729  /usr/ucb/* ) ;;
2730  *)
2731    # OSF1 and SCO ODT 3.0 have their own names for install.
2732    # Don't use installbsd from OSF since it installs stuff as root
2733    # by default.
2734    for ac_prog in ginstall scoinst install; do
2735      for ac_exec_ext in '' $ac_executable_extensions; do
2736	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2737	  if test $ac_prog = install &&
2738	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2739	    # AIX install.  It has an incompatible calling convention.
2740	    :
2741	  elif test $ac_prog = install &&
2742	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2743	    # program-specific install script used by HP pwplus--don't use.
2744	    :
2745	  else
2746	    rm -rf conftest.one conftest.two conftest.dir
2747	    echo one > conftest.one
2748	    echo two > conftest.two
2749	    mkdir conftest.dir
2750	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2751	      test -s conftest.one && test -s conftest.two &&
2752	      test -s conftest.dir/conftest.one &&
2753	      test -s conftest.dir/conftest.two
2754	    then
2755	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2756	      break 3
2757	    fi
2758	  fi
2759	fi
2760      done
2761    done
2762    ;;
2763esac
2764
2765  done
2766IFS=$as_save_IFS
2767
2768rm -rf conftest.one conftest.two conftest.dir
2769
2770fi
2771  if test "${ac_cv_path_install+set}" = set; then
2772    INSTALL=$ac_cv_path_install
2773  else
2774    # As a last resort, use the slow shell script.  Don't cache a
2775    # value for INSTALL within a source directory, because that will
2776    # break other packages using the cache if that directory is
2777    # removed, or if the value is a relative name.
2778    INSTALL=$ac_install_sh
2779  fi
2780fi
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2782$as_echo "$INSTALL" >&6; }
2783
2784# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2785# It thinks the first close brace ends the variable substitution.
2786test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2787
2788test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2789
2790test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2791
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2793$as_echo_n "checking whether build environment is sane... " >&6; }
2794# Reject unsafe characters in $srcdir or the absolute working directory
2795# name.  Accept space and tab only in the latter.
2796am_lf='
2797'
2798case `pwd` in
2799  *[\\\"\#\$\&\'\`$am_lf]*)
2800    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2801esac
2802case $srcdir in
2803  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2804    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2805esac
2806
2807# Do 'set' in a subshell so we don't clobber the current shell's
2808# arguments.  Must try -L first in case configure is actually a
2809# symlink; some systems play weird games with the mod time of symlinks
2810# (eg FreeBSD returns the mod time of the symlink's containing
2811# directory).
2812if (
2813   am_has_slept=no
2814   for am_try in 1 2; do
2815     echo "timestamp, slept: $am_has_slept" > conftest.file
2816     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2817     if test "$*" = "X"; then
2818	# -L didn't work.
2819	set X `ls -t "$srcdir/configure" conftest.file`
2820     fi
2821     if test "$*" != "X $srcdir/configure conftest.file" \
2822	&& test "$*" != "X conftest.file $srcdir/configure"; then
2823
2824	# If neither matched, then we have a broken ls.  This can happen
2825	# if, for instance, CONFIG_SHELL is bash and it inherits a
2826	# broken ls alias from the environment.  This has actually
2827	# happened.  Such a system could not be considered "sane".
2828	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2829  alias in your environment" "$LINENO" 5
2830     fi
2831     if test "$2" = conftest.file || test $am_try -eq 2; then
2832       break
2833     fi
2834     # Just in case.
2835     sleep 1
2836     am_has_slept=yes
2837   done
2838   test "$2" = conftest.file
2839   )
2840then
2841   # Ok.
2842   :
2843else
2844   as_fn_error $? "newly created file is older than distributed files!
2845Check your system clock" "$LINENO" 5
2846fi
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2848$as_echo "yes" >&6; }
2849# If we didn't sleep, we still need to ensure time stamps of config.status and
2850# generated files are strictly newer.
2851am_sleep_pid=
2852if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2853  ( sleep 1 ) &
2854  am_sleep_pid=$!
2855fi
2856
2857rm -f conftest.file
2858
2859test "$program_prefix" != NONE &&
2860  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2861# Use a double $ so make ignores it.
2862test "$program_suffix" != NONE &&
2863  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2864# Double any \ or $.
2865# By default was `s,x,x', remove it if useless.
2866ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2867program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2868
2869# Expand $ac_aux_dir to an absolute path.
2870am_aux_dir=`cd "$ac_aux_dir" && pwd`
2871
2872if test x"${MISSING+set}" != xset; then
2873  case $am_aux_dir in
2874  *\ * | *\	*)
2875    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2876  *)
2877    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2878  esac
2879fi
2880# Use eval to expand $SHELL
2881if eval "$MISSING --is-lightweight"; then
2882  am_missing_run="$MISSING "
2883else
2884  am_missing_run=
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2886$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2887fi
2888
2889if test x"${install_sh+set}" != xset; then
2890  case $am_aux_dir in
2891  *\ * | *\	*)
2892    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2893  *)
2894    install_sh="\${SHELL} $am_aux_dir/install-sh"
2895  esac
2896fi
2897
2898# Installed binaries are usually stripped using 'strip' when the user
2899# run "make install-strip".  However 'strip' might not be the right
2900# tool to use in cross-compilation environments, therefore Automake
2901# will honor the 'STRIP' environment variable to overrule this program.
2902if test "$cross_compiling" != no; then
2903  if test -n "$ac_tool_prefix"; then
2904  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2905set dummy ${ac_tool_prefix}strip; ac_word=$2
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907$as_echo_n "checking for $ac_word... " >&6; }
2908if ${ac_cv_prog_STRIP+:} false; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  if test -n "$STRIP"; then
2912  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917  IFS=$as_save_IFS
2918  test -z "$as_dir" && as_dir=.
2919    for ac_exec_ext in '' $ac_executable_extensions; do
2920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923    break 2
2924  fi
2925done
2926  done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931STRIP=$ac_cv_prog_STRIP
2932if test -n "$STRIP"; then
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2934$as_echo "$STRIP" >&6; }
2935else
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938fi
2939
2940
2941fi
2942if test -z "$ac_cv_prog_STRIP"; then
2943  ac_ct_STRIP=$STRIP
2944  # Extract the first word of "strip", so it can be a program name with args.
2945set dummy strip; ac_word=$2
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2949  $as_echo_n "(cached) " >&6
2950else
2951  if test -n "$ac_ct_STRIP"; then
2952  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961    ac_cv_prog_ac_ct_STRIP="strip"
2962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966  done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2972if test -n "$ac_ct_STRIP"; then
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2974$as_echo "$ac_ct_STRIP" >&6; }
2975else
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980  if test "x$ac_ct_STRIP" = x; then
2981    STRIP=":"
2982  else
2983    case $cross_compiling:$ac_tool_warned in
2984yes:)
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987ac_tool_warned=yes ;;
2988esac
2989    STRIP=$ac_ct_STRIP
2990  fi
2991else
2992  STRIP="$ac_cv_prog_STRIP"
2993fi
2994
2995fi
2996INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2997
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2999$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3000if test -z "$MKDIR_P"; then
3001  if ${ac_cv_path_mkdir+:} false; then :
3002  $as_echo_n "(cached) " >&6
3003else
3004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3006do
3007  IFS=$as_save_IFS
3008  test -z "$as_dir" && as_dir=.
3009    for ac_prog in mkdir gmkdir; do
3010	 for ac_exec_ext in '' $ac_executable_extensions; do
3011	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3012	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3013	     'mkdir (GNU coreutils) '* | \
3014	     'mkdir (coreutils) '* | \
3015	     'mkdir (fileutils) '4.1*)
3016	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3017	       break 3;;
3018	   esac
3019	 done
3020       done
3021  done
3022IFS=$as_save_IFS
3023
3024fi
3025
3026  test -d ./--version && rmdir ./--version
3027  if test "${ac_cv_path_mkdir+set}" = set; then
3028    MKDIR_P="$ac_cv_path_mkdir -p"
3029  else
3030    # As a last resort, use the slow shell script.  Don't cache a
3031    # value for MKDIR_P within a source directory, because that will
3032    # break other packages using the cache if that directory is
3033    # removed, or if the value is a relative name.
3034    MKDIR_P="$ac_install_sh -d"
3035  fi
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3038$as_echo "$MKDIR_P" >&6; }
3039
3040for ac_prog in gawk mawk nawk awk
3041do
3042  # Extract the first word of "$ac_prog", so it can be a program name with args.
3043set dummy $ac_prog; ac_word=$2
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045$as_echo_n "checking for $ac_word... " >&6; }
3046if ${ac_cv_prog_AWK+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test -n "$AWK"; then
3050  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057    for ac_exec_ext in '' $ac_executable_extensions; do
3058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_AWK="$ac_prog"
3060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064  done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069AWK=$ac_cv_prog_AWK
3070if test -n "$AWK"; then
3071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3072$as_echo "$AWK" >&6; }
3073else
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075$as_echo "no" >&6; }
3076fi
3077
3078
3079  test -n "$AWK" && break
3080done
3081
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3083$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3084set x ${MAKE-make}
3085ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3086if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3087  $as_echo_n "(cached) " >&6
3088else
3089  cat >conftest.make <<\_ACEOF
3090SHELL = /bin/sh
3091all:
3092	@echo '@@@%%%=$(MAKE)=@@@%%%'
3093_ACEOF
3094# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3095case `${MAKE-make} -f conftest.make 2>/dev/null` in
3096  *@@@%%%=?*=@@@%%%*)
3097    eval ac_cv_prog_make_${ac_make}_set=yes;;
3098  *)
3099    eval ac_cv_prog_make_${ac_make}_set=no;;
3100esac
3101rm -f conftest.make
3102fi
3103if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3105$as_echo "yes" >&6; }
3106  SET_MAKE=
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110  SET_MAKE="MAKE=${MAKE-make}"
3111fi
3112
3113rm -rf .tst 2>/dev/null
3114mkdir .tst 2>/dev/null
3115if test -d .tst; then
3116  am__leading_dot=.
3117else
3118  am__leading_dot=_
3119fi
3120rmdir .tst 2>/dev/null
3121
3122# Check whether --enable-silent-rules was given.
3123if test "${enable_silent_rules+set}" = set; then :
3124  enableval=$enable_silent_rules;
3125fi
3126
3127case $enable_silent_rules in # (((
3128  yes) AM_DEFAULT_VERBOSITY=0;;
3129   no) AM_DEFAULT_VERBOSITY=1;;
3130    *) AM_DEFAULT_VERBOSITY=1;;
3131esac
3132am_make=${MAKE-make}
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3134$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3135if ${am_cv_make_support_nested_variables+:} false; then :
3136  $as_echo_n "(cached) " >&6
3137else
3138  if $as_echo 'TRUE=$(BAR$(V))
3139BAR0=false
3140BAR1=true
3141V=1
3142am__doit:
3143	@$(TRUE)
3144.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3145  am_cv_make_support_nested_variables=yes
3146else
3147  am_cv_make_support_nested_variables=no
3148fi
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3151$as_echo "$am_cv_make_support_nested_variables" >&6; }
3152if test $am_cv_make_support_nested_variables = yes; then
3153    AM_V='$(V)'
3154  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3155else
3156  AM_V=$AM_DEFAULT_VERBOSITY
3157  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3158fi
3159AM_BACKSLASH='\'
3160
3161if test "`cd $srcdir && pwd`" != "`pwd`"; then
3162  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3163  # is not polluted with repeated "-I."
3164  am__isrc=' -I$(srcdir)'
3165  # test to see if srcdir already configured
3166  if test -f $srcdir/config.status; then
3167    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3168  fi
3169fi
3170
3171# test whether we have cygpath
3172if test -z "$CYGPATH_W"; then
3173  if (cygpath --version) >/dev/null 2>/dev/null; then
3174    CYGPATH_W='cygpath -w'
3175  else
3176    CYGPATH_W=echo
3177  fi
3178fi
3179
3180
3181# Define the identity of the package.
3182 PACKAGE='cone'
3183 VERSION='1.1'
3184
3185
3186cat >>confdefs.h <<_ACEOF
3187#define PACKAGE "$PACKAGE"
3188_ACEOF
3189
3190
3191cat >>confdefs.h <<_ACEOF
3192#define VERSION "$VERSION"
3193_ACEOF
3194
3195# Some tools Automake needs.
3196
3197ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3198
3199
3200AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3201
3202
3203AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3204
3205
3206AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3207
3208
3209MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3210
3211# For better backward compatibility.  To be removed once Automake 1.9.x
3212# dies out for good.  For more background, see:
3213# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3214# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3215mkdir_p='$(MKDIR_P)'
3216
3217# We need awk for the "check" target (and possibly the TAP driver).  The
3218# system "awk" is bad on some platforms.
3219# Always define AMTAR for backward compatibility.  Yes, it's still used
3220# in the wild :-(  We should find a proper way to deprecate it ...
3221AMTAR='$${TAR-tar}'
3222
3223
3224# We'll loop over all known methods to create a tar archive until one works.
3225_am_tools='gnutar  pax cpio none'
3226
3227am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3228
3229
3230
3231
3232
3233
3234# POSIX will say in a future version that running "rm -f" with no argument
3235# is OK; and we want to be able to make that assumption in our Makefile
3236# recipes.  So use an aggressive probe to check that the usage we want is
3237# actually supported "in the wild" to an acceptable degree.
3238# See automake bug#10828.
3239# To make any issue more visible, cause the running configure to be aborted
3240# by default if the 'rm' program in use doesn't match our expectations; the
3241# user can still override this though.
3242if rm -f && rm -fr && rm -rf; then : OK; else
3243  cat >&2 <<'END'
3244Oops!
3245
3246Your 'rm' program seems unable to run without file operands specified
3247on the command line, even when the '-f' option is present.  This is contrary
3248to the behaviour of most rm programs out there, and not conforming with
3249the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3250
3251Please tell bug-automake@gnu.org about your system, including the value
3252of your $PATH and any error possibly output before this message.  This
3253can help us improve future automake versions.
3254
3255END
3256  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3257    echo 'Configuration will proceed anyway, since you have set the' >&2
3258    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3259    echo >&2
3260  else
3261    cat >&2 <<'END'
3262Aborting the configuration process, to ensure you take notice of the issue.
3263
3264You can download and install GNU coreutils to get an 'rm' implementation
3265that behaves properly: <https://www.gnu.org/software/coreutils/>.
3266
3267If you want to complete the configuration process using your problematic
3268'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3269to "yes", and re-run configure.
3270
3271END
3272    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3273  fi
3274fi
3275
3276
3277ALL_LINGUAS=
3278LPATH="$PATH:/usr/local/bin"
3279
3280test "x$prefix" = xNONE && prefix=$ac_default_prefix
3281test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3282
3283eval "exec_prefix=$exec_prefix"
3284eval "bindir=$bindir"
3285eval "sysconfdir=$sysconfdir"
3286eval "datarootdir=$datarootdir"
3287eval "datadir=$datadir"
3288
3289htmldatadir="$datadir/cone"
3290
3291
3292
3293DEPDIR="${am__leading_dot}deps"
3294
3295ac_config_commands="$ac_config_commands depfiles"
3296
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3298$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3299cat > confinc.mk << 'END'
3300am__doit:
3301	@echo this is the am__doit target >confinc.out
3302.PHONY: am__doit
3303END
3304am__include="#"
3305am__quote=
3306# BSD make does it like this.
3307echo '.include "confinc.mk" # ignored' > confmf.BSD
3308# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3309echo 'include confinc.mk # ignored' > confmf.GNU
3310_am_result=no
3311for s in GNU BSD; do
3312  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3313   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }
3317  case $?:`cat confinc.out 2>/dev/null` in #(
3318  '0:this is the am__doit target') :
3319    case $s in #(
3320  BSD) :
3321    am__include='.include' am__quote='"' ;; #(
3322  *) :
3323    am__include='include' am__quote='' ;;
3324esac ;; #(
3325  *) :
3326     ;;
3327esac
3328  if test "$am__include" != "#"; then
3329    _am_result="yes ($s style)"
3330    break
3331  fi
3332done
3333rm -f confinc.* confmf.*
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3335$as_echo "${_am_result}" >&6; }
3336
3337# Check whether --enable-dependency-tracking was given.
3338if test "${enable_dependency_tracking+set}" = set; then :
3339  enableval=$enable_dependency_tracking;
3340fi
3341
3342if test "x$enable_dependency_tracking" != xno; then
3343  am_depcomp="$ac_aux_dir/depcomp"
3344  AMDEPBACKSLASH='\'
3345  am__nodep='_no'
3346fi
3347 if test "x$enable_dependency_tracking" != xno; then
3348  AMDEP_TRUE=
3349  AMDEP_FALSE='#'
3350else
3351  AMDEP_TRUE='#'
3352  AMDEP_FALSE=
3353fi
3354
3355
3356ac_ext=c
3357ac_cpp='$CPP $CPPFLAGS'
3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361if test -n "$ac_tool_prefix"; then
3362  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3363set dummy ${ac_tool_prefix}gcc; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_prog_CC+:} false; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  if test -n "$CC"; then
3370  ac_cv_prog_CC="$CC" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381    break 2
3382  fi
3383done
3384  done
3385IFS=$as_save_IFS
3386
3387fi
3388fi
3389CC=$ac_cv_prog_CC
3390if test -n "$CC"; then
3391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392$as_echo "$CC" >&6; }
3393else
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
3397
3398
3399fi
3400if test -z "$ac_cv_prog_CC"; then
3401  ac_ct_CC=$CC
3402  # Extract the first word of "gcc", so it can be a program name with args.
3403set dummy gcc; ac_word=$2
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405$as_echo_n "checking for $ac_word... " >&6; }
3406if ${ac_cv_prog_ac_ct_CC+:} false; then :
3407  $as_echo_n "(cached) " >&6
3408else
3409  if test -n "$ac_ct_CC"; then
3410  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411else
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415  IFS=$as_save_IFS
3416  test -z "$as_dir" && as_dir=.
3417    for ac_exec_ext in '' $ac_executable_extensions; do
3418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419    ac_cv_prog_ac_ct_CC="gcc"
3420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421    break 2
3422  fi
3423done
3424  done
3425IFS=$as_save_IFS
3426
3427fi
3428fi
3429ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430if test -n "$ac_ct_CC"; then
3431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432$as_echo "$ac_ct_CC" >&6; }
3433else
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438  if test "x$ac_ct_CC" = x; then
3439    CC=""
3440  else
3441    case $cross_compiling:$ac_tool_warned in
3442yes:)
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445ac_tool_warned=yes ;;
3446esac
3447    CC=$ac_ct_CC
3448  fi
3449else
3450  CC="$ac_cv_prog_CC"
3451fi
3452
3453if test -z "$CC"; then
3454          if test -n "$ac_tool_prefix"; then
3455    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3456set dummy ${ac_tool_prefix}cc; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if ${ac_cv_prog_CC+:} false; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  if test -n "$CC"; then
3463  ac_cv_prog_CC="$CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470    for ac_exec_ext in '' $ac_executable_extensions; do
3471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472    ac_cv_prog_CC="${ac_tool_prefix}cc"
3473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474    break 2
3475  fi
3476done
3477  done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482CC=$ac_cv_prog_CC
3483if test -n "$CC"; then
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485$as_echo "$CC" >&6; }
3486else
3487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492  fi
3493fi
3494if test -z "$CC"; then
3495  # Extract the first word of "cc", so it can be a program name with args.
3496set dummy cc; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_CC+:} false; then :
3500  $as_echo_n "(cached) " >&6
3501else
3502  if test -n "$CC"; then
3503  ac_cv_prog_CC="$CC" # Let the user override the test.
3504else
3505  ac_prog_rejected=no
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509  IFS=$as_save_IFS
3510  test -z "$as_dir" && as_dir=.
3511    for ac_exec_ext in '' $ac_executable_extensions; do
3512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514       ac_prog_rejected=yes
3515       continue
3516     fi
3517    ac_cv_prog_CC="cc"
3518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519    break 2
3520  fi
3521done
3522  done
3523IFS=$as_save_IFS
3524
3525if test $ac_prog_rejected = yes; then
3526  # We found a bogon in the path, so make sure we never use it.
3527  set dummy $ac_cv_prog_CC
3528  shift
3529  if test $# != 0; then
3530    # We chose a different compiler from the bogus one.
3531    # However, it has the same basename, so the bogon will be chosen
3532    # first if we set CC to just the basename; use the full file name.
3533    shift
3534    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3535  fi
3536fi
3537fi
3538fi
3539CC=$ac_cv_prog_CC
3540if test -n "$CC"; then
3541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542$as_echo "$CC" >&6; }
3543else
3544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545$as_echo "no" >&6; }
3546fi
3547
3548
3549fi
3550if test -z "$CC"; then
3551  if test -n "$ac_tool_prefix"; then
3552  for ac_prog in cl.exe
3553  do
3554    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  if test -n "$CC"; then
3562  ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567  IFS=$as_save_IFS
3568  test -z "$as_dir" && as_dir=.
3569    for ac_exec_ext in '' $ac_executable_extensions; do
3570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573    break 2
3574  fi
3575done
3576  done
3577IFS=$as_save_IFS
3578
3579fi
3580fi
3581CC=$ac_cv_prog_CC
3582if test -n "$CC"; then
3583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584$as_echo "$CC" >&6; }
3585else
3586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
3588fi
3589
3590
3591    test -n "$CC" && break
3592  done
3593fi
3594if test -z "$CC"; then
3595  ac_ct_CC=$CC
3596  for ac_prog in cl.exe
3597do
3598  # Extract the first word of "$ac_prog", so it can be a program name with args.
3599set dummy $ac_prog; ac_word=$2
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601$as_echo_n "checking for $ac_word... " >&6; }
3602if ${ac_cv_prog_ac_ct_CC+:} false; then :
3603  $as_echo_n "(cached) " >&6
3604else
3605  if test -n "$ac_ct_CC"; then
3606  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607else
3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609for as_dir in $PATH
3610do
3611  IFS=$as_save_IFS
3612  test -z "$as_dir" && as_dir=.
3613    for ac_exec_ext in '' $ac_executable_extensions; do
3614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615    ac_cv_prog_ac_ct_CC="$ac_prog"
3616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617    break 2
3618  fi
3619done
3620  done
3621IFS=$as_save_IFS
3622
3623fi
3624fi
3625ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626if test -n "$ac_ct_CC"; then
3627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628$as_echo "$ac_ct_CC" >&6; }
3629else
3630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
3632fi
3633
3634
3635  test -n "$ac_ct_CC" && break
3636done
3637
3638  if test "x$ac_ct_CC" = x; then
3639    CC=""
3640  else
3641    case $cross_compiling:$ac_tool_warned in
3642yes:)
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645ac_tool_warned=yes ;;
3646esac
3647    CC=$ac_ct_CC
3648  fi
3649fi
3650
3651fi
3652
3653
3654test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656as_fn_error $? "no acceptable C compiler found in \$PATH
3657See \`config.log' for more details" "$LINENO" 5; }
3658
3659# Provide some information about the compiler.
3660$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661set X $ac_compile
3662ac_compiler=$2
3663for ac_option in --version -v -V -qversion; do
3664  { { ac_try="$ac_compiler $ac_option >&5"
3665case "(($ac_try" in
3666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667  *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670$as_echo "$ac_try_echo"; } >&5
3671  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672  ac_status=$?
3673  if test -s conftest.err; then
3674    sed '10a\
3675... rest of stderr output deleted ...
3676         10q' conftest.err >conftest.er1
3677    cat conftest.er1 >&5
3678  fi
3679  rm -f conftest.er1 conftest.err
3680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681  test $ac_status = 0; }
3682done
3683
3684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685/* end confdefs.h.  */
3686
3687int
3688main ()
3689{
3690
3691  ;
3692  return 0;
3693}
3694_ACEOF
3695ac_clean_files_save=$ac_clean_files
3696ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3697# Try to create an executable without -o first, disregard a.out.
3698# It will help us diagnose broken compilers, and finding out an intuition
3699# of exeext.
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3701$as_echo_n "checking whether the C compiler works... " >&6; }
3702ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3703
3704# The possible output files:
3705ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3706
3707ac_rmfiles=
3708for ac_file in $ac_files
3709do
3710  case $ac_file in
3711    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3712    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713  esac
3714done
3715rm -f $ac_rmfiles
3716
3717if { { ac_try="$ac_link_default"
3718case "(($ac_try" in
3719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720  *) ac_try_echo=$ac_try;;
3721esac
3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723$as_echo "$ac_try_echo"; } >&5
3724  (eval "$ac_link_default") 2>&5
3725  ac_status=$?
3726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727  test $ac_status = 0; }; then :
3728  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3729# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3730# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3731# so that the user can short-circuit this test for compilers unknown to
3732# Autoconf.
3733for ac_file in $ac_files ''
3734do
3735  test -f "$ac_file" || continue
3736  case $ac_file in
3737    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3738	;;
3739    [ab].out )
3740	# We found the default executable, but exeext='' is most
3741	# certainly right.
3742	break;;
3743    *.* )
3744	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3745	then :; else
3746	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747	fi
3748	# We set ac_cv_exeext here because the later test for it is not
3749	# safe: cross compilers may not add the suffix if given an `-o'
3750	# argument, so we may need to know it at that point already.
3751	# Even if this section looks crufty: it has the advantage of
3752	# actually working.
3753	break;;
3754    * )
3755	break;;
3756  esac
3757done
3758test "$ac_cv_exeext" = no && ac_cv_exeext=
3759
3760else
3761  ac_file=''
3762fi
3763if test -z "$ac_file"; then :
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
3766$as_echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771as_fn_error 77 "C compiler cannot create executables
3772See \`config.log' for more details" "$LINENO" 5; }
3773else
3774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3775$as_echo "yes" >&6; }
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3778$as_echo_n "checking for C compiler default output file name... " >&6; }
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3780$as_echo "$ac_file" >&6; }
3781ac_exeext=$ac_cv_exeext
3782
3783rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3784ac_clean_files=$ac_clean_files_save
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3786$as_echo_n "checking for suffix of executables... " >&6; }
3787if { { ac_try="$ac_link"
3788case "(($ac_try" in
3789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790  *) ac_try_echo=$ac_try;;
3791esac
3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793$as_echo "$ac_try_echo"; } >&5
3794  (eval "$ac_link") 2>&5
3795  ac_status=$?
3796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797  test $ac_status = 0; }; then :
3798  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3799# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3800# work properly (i.e., refer to `conftest.exe'), while it won't with
3801# `rm'.
3802for ac_file in conftest.exe conftest conftest.*; do
3803  test -f "$ac_file" || continue
3804  case $ac_file in
3805    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807	  break;;
3808    * ) break;;
3809  esac
3810done
3811else
3812  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3815See \`config.log' for more details" "$LINENO" 5; }
3816fi
3817rm -f conftest conftest$ac_cv_exeext
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3819$as_echo "$ac_cv_exeext" >&6; }
3820
3821rm -f conftest.$ac_ext
3822EXEEXT=$ac_cv_exeext
3823ac_exeext=$EXEEXT
3824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826#include <stdio.h>
3827int
3828main ()
3829{
3830FILE *f = fopen ("conftest.out", "w");
3831 return ferror (f) || fclose (f) != 0;
3832
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837ac_clean_files="$ac_clean_files conftest.out"
3838# Check that the compiler produces executables we can run.  If not, either
3839# the compiler is broken, or we cross compile.
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3841$as_echo_n "checking whether we are cross compiling... " >&6; }
3842if test "$cross_compiling" != yes; then
3843  { { ac_try="$ac_link"
3844case "(($ac_try" in
3845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846  *) ac_try_echo=$ac_try;;
3847esac
3848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849$as_echo "$ac_try_echo"; } >&5
3850  (eval "$ac_link") 2>&5
3851  ac_status=$?
3852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853  test $ac_status = 0; }
3854  if { ac_try='./conftest$ac_cv_exeext'
3855  { { case "(($ac_try" in
3856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857  *) ac_try_echo=$ac_try;;
3858esac
3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860$as_echo "$ac_try_echo"; } >&5
3861  (eval "$ac_try") 2>&5
3862  ac_status=$?
3863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864  test $ac_status = 0; }; }; then
3865    cross_compiling=no
3866  else
3867    if test "$cross_compiling" = maybe; then
3868	cross_compiling=yes
3869    else
3870	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872as_fn_error $? "cannot run C compiled programs.
3873If you meant to cross compile, use \`--host'.
3874See \`config.log' for more details" "$LINENO" 5; }
3875    fi
3876  fi
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3879$as_echo "$cross_compiling" >&6; }
3880
3881rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3882ac_clean_files=$ac_clean_files_save
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3884$as_echo_n "checking for suffix of object files... " >&6; }
3885if ${ac_cv_objext+:} false; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889/* end confdefs.h.  */
3890
3891int
3892main ()
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899rm -f conftest.o conftest.obj
3900if { { ac_try="$ac_compile"
3901case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907  (eval "$ac_compile") 2>&5
3908  ac_status=$?
3909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910  test $ac_status = 0; }; then :
3911  for ac_file in conftest.o conftest.obj conftest.*; do
3912  test -f "$ac_file" || continue;
3913  case $ac_file in
3914    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3915    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3916       break;;
3917  esac
3918done
3919else
3920  $as_echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925as_fn_error $? "cannot compute suffix of object files: cannot compile
3926See \`config.log' for more details" "$LINENO" 5; }
3927fi
3928rm -f conftest.$ac_cv_objext conftest.$ac_ext
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3931$as_echo "$ac_cv_objext" >&6; }
3932OBJEXT=$ac_cv_objext
3933ac_objext=$OBJEXT
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3935$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3936if ${ac_cv_c_compiler_gnu+:} false; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941
3942int
3943main ()
3944{
3945#ifndef __GNUC__
3946       choke me
3947#endif
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"; then :
3954  ac_compiler_gnu=yes
3955else
3956  ac_compiler_gnu=no
3957fi
3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959ac_cv_c_compiler_gnu=$ac_compiler_gnu
3960
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3963$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3964if test $ac_compiler_gnu = yes; then
3965  GCC=yes
3966else
3967  GCC=
3968fi
3969ac_test_CFLAGS=${CFLAGS+set}
3970ac_save_CFLAGS=$CFLAGS
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3972$as_echo_n "checking whether $CC accepts -g... " >&6; }
3973if ${ac_cv_prog_cc_g+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  ac_save_c_werror_flag=$ac_c_werror_flag
3977   ac_c_werror_flag=yes
3978   ac_cv_prog_cc_g=no
3979   CFLAGS="-g"
3980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h.  */
3982
3983int
3984main ()
3985{
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"; then :
3992  ac_cv_prog_cc_g=yes
3993else
3994  CFLAGS=""
3995      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006if ac_fn_c_try_compile "$LINENO"; then :
4007
4008else
4009  ac_c_werror_flag=$ac_save_c_werror_flag
4010	 CFLAGS="-g"
4011	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022if ac_fn_c_try_compile "$LINENO"; then :
4023  ac_cv_prog_cc_g=yes
4024fi
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028fi
4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030   ac_c_werror_flag=$ac_save_c_werror_flag
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4033$as_echo "$ac_cv_prog_cc_g" >&6; }
4034if test "$ac_test_CFLAGS" = set; then
4035  CFLAGS=$ac_save_CFLAGS
4036elif test $ac_cv_prog_cc_g = yes; then
4037  if test "$GCC" = yes; then
4038    CFLAGS="-g -O2"
4039  else
4040    CFLAGS="-g"
4041  fi
4042else
4043  if test "$GCC" = yes; then
4044    CFLAGS="-O2"
4045  else
4046    CFLAGS=
4047  fi
4048fi
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4051if ${ac_cv_prog_cc_c89+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  ac_cv_prog_cc_c89=no
4055ac_save_CC=$CC
4056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058#include <stdarg.h>
4059#include <stdio.h>
4060struct stat;
4061/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4062struct buf { int x; };
4063FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064static char *e (p, i)
4065     char **p;
4066     int i;
4067{
4068  return p[i];
4069}
4070static char *f (char * (*g) (char **, int), char **p, ...)
4071{
4072  char *s;
4073  va_list v;
4074  va_start (v,p);
4075  s = g (p, va_arg (v,int));
4076  va_end (v);
4077  return s;
4078}
4079
4080/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4081   function prototypes and stuff, but not '\xHH' hex character constants.
4082   These don't provoke an error unfortunately, instead are silently treated
4083   as 'x'.  The following induces an error, until -std is added to get
4084   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4085   array size at least.  It's necessary to write '\x00'==0 to get something
4086   that's true only with -std.  */
4087int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088
4089/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090   inside strings and character constants.  */
4091#define FOO(x) 'x'
4092int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093
4094int test (int i, double x);
4095struct s1 {int (*f) (int a);};
4096struct s2 {int (*f) (double a);};
4097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098int argc;
4099char **argv;
4100int
4101main ()
4102{
4103return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4104  ;
4105  return 0;
4106}
4107_ACEOF
4108for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110do
4111  CC="$ac_save_CC $ac_arg"
4112  if ac_fn_c_try_compile "$LINENO"; then :
4113  ac_cv_prog_cc_c89=$ac_arg
4114fi
4115rm -f core conftest.err conftest.$ac_objext
4116  test "x$ac_cv_prog_cc_c89" != "xno" && break
4117done
4118rm -f conftest.$ac_ext
4119CC=$ac_save_CC
4120
4121fi
4122# AC_CACHE_VAL
4123case "x$ac_cv_prog_cc_c89" in
4124  x)
4125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4126$as_echo "none needed" >&6; } ;;
4127  xno)
4128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129$as_echo "unsupported" >&6; } ;;
4130  *)
4131    CC="$CC $ac_cv_prog_cc_c89"
4132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4133$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4134esac
4135if test "x$ac_cv_prog_cc_c89" != xno; then :
4136
4137fi
4138
4139ac_ext=c
4140ac_cpp='$CPP $CPPFLAGS'
4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145ac_ext=c
4146ac_cpp='$CPP $CPPFLAGS'
4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4151$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4152if ${am_cv_prog_cc_c_o+:} false; then :
4153  $as_echo_n "(cached) " >&6
4154else
4155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157
4158int
4159main ()
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166  # Make sure it works both with $CC and with simple cc.
4167  # Following AC_PROG_CC_C_O, we do the test twice because some
4168  # compilers refuse to overwrite an existing .o file with -o,
4169  # though they will create one.
4170  am_cv_prog_cc_c_o=yes
4171  for am_i in 1 2; do
4172    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4173   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); } \
4177         && test -f conftest2.$ac_objext; then
4178      : OK
4179    else
4180      am_cv_prog_cc_c_o=no
4181      break
4182    fi
4183  done
4184  rm -f core conftest*
4185  unset am_i
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4188$as_echo "$am_cv_prog_cc_c_o" >&6; }
4189if test "$am_cv_prog_cc_c_o" != yes; then
4190   # Losing compiler, so override with the script.
4191   # FIXME: It is wrong to rewrite CC.
4192   # But if we don't then we get into trouble of one sort or another.
4193   # A longer-term fix would be to have automake use am__CC in this case,
4194   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4195   CC="$am_aux_dir/compile $CC"
4196fi
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204depcc="$CC"   am_compiler_list=
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4207$as_echo_n "checking dependency style of $depcc... " >&6; }
4208if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4212  # We make a subdir and do the tests there.  Otherwise we can end up
4213  # making bogus files that we don't know about and never remove.  For
4214  # instance it was reported that on HP-UX the gcc test will end up
4215  # making a dummy file named 'D' -- because '-MD' means "put the output
4216  # in D".
4217  rm -rf conftest.dir
4218  mkdir conftest.dir
4219  # Copy depcomp to subdir because otherwise we won't find it if we're
4220  # using a relative directory.
4221  cp "$am_depcomp" conftest.dir
4222  cd conftest.dir
4223  # We will build objects and dependencies in a subdirectory because
4224  # it helps to detect inapplicable dependency modes.  For instance
4225  # both Tru64's cc and ICC support -MD to output dependencies as a
4226  # side effect of compilation, but ICC will put the dependencies in
4227  # the current directory while Tru64 will put them in the object
4228  # directory.
4229  mkdir sub
4230
4231  am_cv_CC_dependencies_compiler_type=none
4232  if test "$am_compiler_list" = ""; then
4233     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4234  fi
4235  am__universal=false
4236  case " $depcc " in #(
4237     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4238     esac
4239
4240  for depmode in $am_compiler_list; do
4241    # Setup a source with many dependencies, because some compilers
4242    # like to wrap large dependency lists on column 80 (with \), and
4243    # we should not choose a depcomp mode which is confused by this.
4244    #
4245    # We need to recreate these files for each test, as the compiler may
4246    # overwrite some of them when testing with obscure command lines.
4247    # This happens at least with the AIX C compiler.
4248    : > sub/conftest.c
4249    for i in 1 2 3 4 5 6; do
4250      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4251      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4252      # Solaris 10 /bin/sh.
4253      echo '/* dummy */' > sub/conftst$i.h
4254    done
4255    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4256
4257    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4258    # mode.  It turns out that the SunPro C++ compiler does not properly
4259    # handle '-M -o', and we need to detect this.  Also, some Intel
4260    # versions had trouble with output in subdirs.
4261    am__obj=sub/conftest.${OBJEXT-o}
4262    am__minus_obj="-o $am__obj"
4263    case $depmode in
4264    gcc)
4265      # This depmode causes a compiler race in universal mode.
4266      test "$am__universal" = false || continue
4267      ;;
4268    nosideeffect)
4269      # After this tag, mechanisms are not by side-effect, so they'll
4270      # only be used when explicitly requested.
4271      if test "x$enable_dependency_tracking" = xyes; then
4272	continue
4273      else
4274	break
4275      fi
4276      ;;
4277    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4278      # This compiler won't grok '-c -o', but also, the minuso test has
4279      # not run yet.  These depmodes are late enough in the game, and
4280      # so weak that their functioning should not be impacted.
4281      am__obj=conftest.${OBJEXT-o}
4282      am__minus_obj=
4283      ;;
4284    none) break ;;
4285    esac
4286    if depmode=$depmode \
4287       source=sub/conftest.c object=$am__obj \
4288       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4289       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4290         >/dev/null 2>conftest.err &&
4291       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4292       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4293       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4294       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4295      # icc doesn't choke on unknown options, it will just issue warnings
4296      # or remarks (even with -Werror).  So we grep stderr for any message
4297      # that says an option was ignored or not supported.
4298      # When given -MP, icc 7.0 and 7.1 complain thusly:
4299      #   icc: Command line warning: ignoring option '-M'; no argument required
4300      # The diagnosis changed in icc 8.0:
4301      #   icc: Command line remark: option '-MP' not supported
4302      if (grep 'ignoring option' conftest.err ||
4303          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4304        am_cv_CC_dependencies_compiler_type=$depmode
4305        break
4306      fi
4307    fi
4308  done
4309
4310  cd ..
4311  rm -rf conftest.dir
4312else
4313  am_cv_CC_dependencies_compiler_type=none
4314fi
4315
4316fi
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4318$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4320
4321 if
4322  test "x$enable_dependency_tracking" != xno \
4323  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4324  am__fastdepCC_TRUE=
4325  am__fastdepCC_FALSE='#'
4326else
4327  am__fastdepCC_TRUE='#'
4328  am__fastdepCC_FALSE=
4329fi
4330
4331
4332
4333ac_ext=c
4334ac_cpp='$CPP $CPPFLAGS'
4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4339$as_echo_n "checking how to run the C preprocessor... " >&6; }
4340# On Suns, sometimes $CPP names a directory.
4341if test -n "$CPP" && test -d "$CPP"; then
4342  CPP=
4343fi
4344if test -z "$CPP"; then
4345  if ${ac_cv_prog_CPP+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348      # Double quotes because CPP needs to be expanded
4349    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4350    do
4351      ac_preproc_ok=false
4352for ac_c_preproc_warn_flag in '' yes
4353do
4354  # Use a header file that comes with gcc, so configuring glibc
4355  # with a fresh cross-compiler works.
4356  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4357  # <limits.h> exists even on freestanding compilers.
4358  # On the NeXT, cc -E runs the code through the compiler's parser,
4359  # not just through cpp. "Syntax error" is here to catch this case.
4360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h.  */
4362#ifdef __STDC__
4363# include <limits.h>
4364#else
4365# include <assert.h>
4366#endif
4367		     Syntax error
4368_ACEOF
4369if ac_fn_c_try_cpp "$LINENO"; then :
4370
4371else
4372  # Broken: fails on valid input.
4373continue
4374fi
4375rm -f conftest.err conftest.i conftest.$ac_ext
4376
4377  # OK, works on sane cases.  Now check whether nonexistent headers
4378  # can be detected and how.
4379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h.  */
4381#include <ac_nonexistent.h>
4382_ACEOF
4383if ac_fn_c_try_cpp "$LINENO"; then :
4384  # Broken: success on invalid input.
4385continue
4386else
4387  # Passes both tests.
4388ac_preproc_ok=:
4389break
4390fi
4391rm -f conftest.err conftest.i conftest.$ac_ext
4392
4393done
4394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4395rm -f conftest.i conftest.err conftest.$ac_ext
4396if $ac_preproc_ok; then :
4397  break
4398fi
4399
4400    done
4401    ac_cv_prog_CPP=$CPP
4402
4403fi
4404  CPP=$ac_cv_prog_CPP
4405else
4406  ac_cv_prog_CPP=$CPP
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4409$as_echo "$CPP" >&6; }
4410ac_preproc_ok=false
4411for ac_c_preproc_warn_flag in '' yes
4412do
4413  # Use a header file that comes with gcc, so configuring glibc
4414  # with a fresh cross-compiler works.
4415  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416  # <limits.h> exists even on freestanding compilers.
4417  # On the NeXT, cc -E runs the code through the compiler's parser,
4418  # not just through cpp. "Syntax error" is here to catch this case.
4419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421#ifdef __STDC__
4422# include <limits.h>
4423#else
4424# include <assert.h>
4425#endif
4426		     Syntax error
4427_ACEOF
4428if ac_fn_c_try_cpp "$LINENO"; then :
4429
4430else
4431  # Broken: fails on valid input.
4432continue
4433fi
4434rm -f conftest.err conftest.i conftest.$ac_ext
4435
4436  # OK, works on sane cases.  Now check whether nonexistent headers
4437  # can be detected and how.
4438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h.  */
4440#include <ac_nonexistent.h>
4441_ACEOF
4442if ac_fn_c_try_cpp "$LINENO"; then :
4443  # Broken: success on invalid input.
4444continue
4445else
4446  # Passes both tests.
4447ac_preproc_ok=:
4448break
4449fi
4450rm -f conftest.err conftest.i conftest.$ac_ext
4451
4452done
4453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4454rm -f conftest.i conftest.err conftest.$ac_ext
4455if $ac_preproc_ok; then :
4456
4457else
4458  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4460as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4461See \`config.log' for more details" "$LINENO" 5; }
4462fi
4463
4464ac_ext=c
4465ac_cpp='$CPP $CPPFLAGS'
4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4472$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4473if ${ac_cv_path_GREP+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  if test -z "$GREP"; then
4477  ac_path_GREP_found=false
4478  # Loop through the user's path and test for each of PROGNAME-LIST
4479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481do
4482  IFS=$as_save_IFS
4483  test -z "$as_dir" && as_dir=.
4484    for ac_prog in grep ggrep; do
4485    for ac_exec_ext in '' $ac_executable_extensions; do
4486      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4487      as_fn_executable_p "$ac_path_GREP" || continue
4488# Check for GNU ac_path_GREP and select it if it is found.
4489  # Check for GNU $ac_path_GREP
4490case `"$ac_path_GREP" --version 2>&1` in
4491*GNU*)
4492  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4493*)
4494  ac_count=0
4495  $as_echo_n 0123456789 >"conftest.in"
4496  while :
4497  do
4498    cat "conftest.in" "conftest.in" >"conftest.tmp"
4499    mv "conftest.tmp" "conftest.in"
4500    cp "conftest.in" "conftest.nl"
4501    $as_echo 'GREP' >> "conftest.nl"
4502    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504    as_fn_arith $ac_count + 1 && ac_count=$as_val
4505    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4506      # Best one so far, save it but keep looking for a better one
4507      ac_cv_path_GREP="$ac_path_GREP"
4508      ac_path_GREP_max=$ac_count
4509    fi
4510    # 10*(2^10) chars as input seems more than enough
4511    test $ac_count -gt 10 && break
4512  done
4513  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514esac
4515
4516      $ac_path_GREP_found && break 3
4517    done
4518  done
4519  done
4520IFS=$as_save_IFS
4521  if test -z "$ac_cv_path_GREP"; then
4522    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523  fi
4524else
4525  ac_cv_path_GREP=$GREP
4526fi
4527
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4530$as_echo "$ac_cv_path_GREP" >&6; }
4531 GREP="$ac_cv_path_GREP"
4532
4533
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4535$as_echo_n "checking for egrep... " >&6; }
4536if ${ac_cv_path_EGREP+:} false; then :
4537  $as_echo_n "(cached) " >&6
4538else
4539  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4540   then ac_cv_path_EGREP="$GREP -E"
4541   else
4542     if test -z "$EGREP"; then
4543  ac_path_EGREP_found=false
4544  # Loop through the user's path and test for each of PROGNAME-LIST
4545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547do
4548  IFS=$as_save_IFS
4549  test -z "$as_dir" && as_dir=.
4550    for ac_prog in egrep; do
4551    for ac_exec_ext in '' $ac_executable_extensions; do
4552      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4553      as_fn_executable_p "$ac_path_EGREP" || continue
4554# Check for GNU ac_path_EGREP and select it if it is found.
4555  # Check for GNU $ac_path_EGREP
4556case `"$ac_path_EGREP" --version 2>&1` in
4557*GNU*)
4558  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4559*)
4560  ac_count=0
4561  $as_echo_n 0123456789 >"conftest.in"
4562  while :
4563  do
4564    cat "conftest.in" "conftest.in" >"conftest.tmp"
4565    mv "conftest.tmp" "conftest.in"
4566    cp "conftest.in" "conftest.nl"
4567    $as_echo 'EGREP' >> "conftest.nl"
4568    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570    as_fn_arith $ac_count + 1 && ac_count=$as_val
4571    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4572      # Best one so far, save it but keep looking for a better one
4573      ac_cv_path_EGREP="$ac_path_EGREP"
4574      ac_path_EGREP_max=$ac_count
4575    fi
4576    # 10*(2^10) chars as input seems more than enough
4577    test $ac_count -gt 10 && break
4578  done
4579  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580esac
4581
4582      $ac_path_EGREP_found && break 3
4583    done
4584  done
4585  done
4586IFS=$as_save_IFS
4587  if test -z "$ac_cv_path_EGREP"; then
4588    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589  fi
4590else
4591  ac_cv_path_EGREP=$EGREP
4592fi
4593
4594   fi
4595fi
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4597$as_echo "$ac_cv_path_EGREP" >&6; }
4598 EGREP="$ac_cv_path_EGREP"
4599
4600
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4602$as_echo_n "checking for ANSI C header files... " >&6; }
4603if ${ac_cv_header_stdc+:} false; then :
4604  $as_echo_n "(cached) " >&6
4605else
4606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607/* end confdefs.h.  */
4608#include <stdlib.h>
4609#include <stdarg.h>
4610#include <string.h>
4611#include <float.h>
4612
4613int
4614main ()
4615{
4616
4617  ;
4618  return 0;
4619}
4620_ACEOF
4621if ac_fn_c_try_compile "$LINENO"; then :
4622  ac_cv_header_stdc=yes
4623else
4624  ac_cv_header_stdc=no
4625fi
4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627
4628if test $ac_cv_header_stdc = yes; then
4629  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632#include <string.h>
4633
4634_ACEOF
4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636  $EGREP "memchr" >/dev/null 2>&1; then :
4637
4638else
4639  ac_cv_header_stdc=no
4640fi
4641rm -f conftest*
4642
4643fi
4644
4645if test $ac_cv_header_stdc = yes; then
4646  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649#include <stdlib.h>
4650
4651_ACEOF
4652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653  $EGREP "free" >/dev/null 2>&1; then :
4654
4655else
4656  ac_cv_header_stdc=no
4657fi
4658rm -f conftest*
4659
4660fi
4661
4662if test $ac_cv_header_stdc = yes; then
4663  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4664  if test "$cross_compiling" = yes; then :
4665  :
4666else
4667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669#include <ctype.h>
4670#include <stdlib.h>
4671#if ((' ' & 0x0FF) == 0x020)
4672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4674#else
4675# define ISLOWER(c) \
4676		   (('a' <= (c) && (c) <= 'i') \
4677		     || ('j' <= (c) && (c) <= 'r') \
4678		     || ('s' <= (c) && (c) <= 'z'))
4679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4680#endif
4681
4682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4683int
4684main ()
4685{
4686  int i;
4687  for (i = 0; i < 256; i++)
4688    if (XOR (islower (i), ISLOWER (i))
4689	|| toupper (i) != TOUPPER (i))
4690      return 2;
4691  return 0;
4692}
4693_ACEOF
4694if ac_fn_c_try_run "$LINENO"; then :
4695
4696else
4697  ac_cv_header_stdc=no
4698fi
4699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4700  conftest.$ac_objext conftest.beam conftest.$ac_ext
4701fi
4702
4703fi
4704fi
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4706$as_echo "$ac_cv_header_stdc" >&6; }
4707if test $ac_cv_header_stdc = yes; then
4708
4709$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4710
4711fi
4712
4713# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715		  inttypes.h stdint.h unistd.h
4716do :
4717  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4719"
4720if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4721  cat >>confdefs.h <<_ACEOF
4722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723_ACEOF
4724
4725fi
4726
4727done
4728
4729
4730
4731  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4732if test "x$ac_cv_header_minix_config_h" = xyes; then :
4733  MINIX=yes
4734else
4735  MINIX=
4736fi
4737
4738
4739  if test "$MINIX" = yes; then
4740
4741$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4742
4743
4744$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4745
4746
4747$as_echo "#define _MINIX 1" >>confdefs.h
4748
4749  fi
4750
4751
4752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4753$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4754if ${ac_cv_safe_to_define___extensions__+:} false; then :
4755  $as_echo_n "(cached) " >&6
4756else
4757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759
4760#         define __EXTENSIONS__ 1
4761          $ac_includes_default
4762int
4763main ()
4764{
4765
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770if ac_fn_c_try_compile "$LINENO"; then :
4771  ac_cv_safe_to_define___extensions__=yes
4772else
4773  ac_cv_safe_to_define___extensions__=no
4774fi
4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776fi
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4778$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4779  test $ac_cv_safe_to_define___extensions__ = yes &&
4780    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4781
4782  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4783
4784  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4785
4786  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4787
4788  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4789
4790
4791ac_ext=cpp
4792ac_cpp='$CXXCPP $CPPFLAGS'
4793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796if test -z "$CXX"; then
4797  if test -n "$CCC"; then
4798    CXX=$CCC
4799  else
4800    if test -n "$ac_tool_prefix"; then
4801  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802  do
4803    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if ${ac_cv_prog_CXX+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  if test -n "$CXX"; then
4811  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816  IFS=$as_save_IFS
4817  test -z "$as_dir" && as_dir=.
4818    for ac_exec_ext in '' $ac_executable_extensions; do
4819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822    break 2
4823  fi
4824done
4825  done
4826IFS=$as_save_IFS
4827
4828fi
4829fi
4830CXX=$ac_cv_prog_CXX
4831if test -n "$CXX"; then
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833$as_echo "$CXX" >&6; }
4834else
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837fi
4838
4839
4840    test -n "$CXX" && break
4841  done
4842fi
4843if test -z "$CXX"; then
4844  ac_ct_CXX=$CXX
4845  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846do
4847  # Extract the first word of "$ac_prog", so it can be a program name with args.
4848set dummy $ac_prog; ac_word=$2
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
4851if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  if test -n "$ac_ct_CXX"; then
4855  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860  IFS=$as_save_IFS
4861  test -z "$as_dir" && as_dir=.
4862    for ac_exec_ext in '' $ac_executable_extensions; do
4863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864    ac_cv_prog_ac_ct_CXX="$ac_prog"
4865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866    break 2
4867  fi
4868done
4869  done
4870IFS=$as_save_IFS
4871
4872fi
4873fi
4874ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4875if test -n "$ac_ct_CXX"; then
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4877$as_echo "$ac_ct_CXX" >&6; }
4878else
4879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
4881fi
4882
4883
4884  test -n "$ac_ct_CXX" && break
4885done
4886
4887  if test "x$ac_ct_CXX" = x; then
4888    CXX="g++"
4889  else
4890    case $cross_compiling:$ac_tool_warned in
4891yes:)
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894ac_tool_warned=yes ;;
4895esac
4896    CXX=$ac_ct_CXX
4897  fi
4898fi
4899
4900  fi
4901fi
4902# Provide some information about the compiler.
4903$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4904set X $ac_compile
4905ac_compiler=$2
4906for ac_option in --version -v -V -qversion; do
4907  { { ac_try="$ac_compiler $ac_option >&5"
4908case "(($ac_try" in
4909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910  *) ac_try_echo=$ac_try;;
4911esac
4912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
4914  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915  ac_status=$?
4916  if test -s conftest.err; then
4917    sed '10a\
4918... rest of stderr output deleted ...
4919         10q' conftest.err >conftest.er1
4920    cat conftest.er1 >&5
4921  fi
4922  rm -f conftest.er1 conftest.err
4923  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924  test $ac_status = 0; }
4925done
4926
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4928$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4929if ${ac_cv_cxx_compiler_gnu+:} false; then :
4930  $as_echo_n "(cached) " >&6
4931else
4932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934
4935int
4936main ()
4937{
4938#ifndef __GNUC__
4939       choke me
4940#endif
4941
4942  ;
4943  return 0;
4944}
4945_ACEOF
4946if ac_fn_cxx_try_compile "$LINENO"; then :
4947  ac_compiler_gnu=yes
4948else
4949  ac_compiler_gnu=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4953
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4956$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4957if test $ac_compiler_gnu = yes; then
4958  GXX=yes
4959else
4960  GXX=
4961fi
4962ac_test_CXXFLAGS=${CXXFLAGS+set}
4963ac_save_CXXFLAGS=$CXXFLAGS
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4965$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4966if ${ac_cv_prog_cxx_g+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4970   ac_cxx_werror_flag=yes
4971   ac_cv_prog_cxx_g=no
4972   CXXFLAGS="-g"
4973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h.  */
4975
4976int
4977main ()
4978{
4979
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984if ac_fn_cxx_try_compile "$LINENO"; then :
4985  ac_cv_prog_cxx_g=yes
4986else
4987  CXXFLAGS=""
4988      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h.  */
4990
4991int
4992main ()
4993{
4994
4995  ;
4996  return 0;
4997}
4998_ACEOF
4999if ac_fn_cxx_try_compile "$LINENO"; then :
5000
5001else
5002  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003	 CXXFLAGS="-g"
5004	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006
5007int
5008main ()
5009{
5010
5011  ;
5012  return 0;
5013}
5014_ACEOF
5015if ac_fn_cxx_try_compile "$LINENO"; then :
5016  ac_cv_prog_cxx_g=yes
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5026$as_echo "$ac_cv_prog_cxx_g" >&6; }
5027if test "$ac_test_CXXFLAGS" = set; then
5028  CXXFLAGS=$ac_save_CXXFLAGS
5029elif test $ac_cv_prog_cxx_g = yes; then
5030  if test "$GXX" = yes; then
5031    CXXFLAGS="-g -O2"
5032  else
5033    CXXFLAGS="-g"
5034  fi
5035else
5036  if test "$GXX" = yes; then
5037    CXXFLAGS="-O2"
5038  else
5039    CXXFLAGS=
5040  fi
5041fi
5042ac_ext=c
5043ac_cpp='$CPP $CPPFLAGS'
5044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048depcc="$CXX"  am_compiler_list=
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5051$as_echo_n "checking dependency style of $depcc... " >&6; }
5052if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5053  $as_echo_n "(cached) " >&6
5054else
5055  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5056  # We make a subdir and do the tests there.  Otherwise we can end up
5057  # making bogus files that we don't know about and never remove.  For
5058  # instance it was reported that on HP-UX the gcc test will end up
5059  # making a dummy file named 'D' -- because '-MD' means "put the output
5060  # in D".
5061  rm -rf conftest.dir
5062  mkdir conftest.dir
5063  # Copy depcomp to subdir because otherwise we won't find it if we're
5064  # using a relative directory.
5065  cp "$am_depcomp" conftest.dir
5066  cd conftest.dir
5067  # We will build objects and dependencies in a subdirectory because
5068  # it helps to detect inapplicable dependency modes.  For instance
5069  # both Tru64's cc and ICC support -MD to output dependencies as a
5070  # side effect of compilation, but ICC will put the dependencies in
5071  # the current directory while Tru64 will put them in the object
5072  # directory.
5073  mkdir sub
5074
5075  am_cv_CXX_dependencies_compiler_type=none
5076  if test "$am_compiler_list" = ""; then
5077     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5078  fi
5079  am__universal=false
5080  case " $depcc " in #(
5081     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5082     esac
5083
5084  for depmode in $am_compiler_list; do
5085    # Setup a source with many dependencies, because some compilers
5086    # like to wrap large dependency lists on column 80 (with \), and
5087    # we should not choose a depcomp mode which is confused by this.
5088    #
5089    # We need to recreate these files for each test, as the compiler may
5090    # overwrite some of them when testing with obscure command lines.
5091    # This happens at least with the AIX C compiler.
5092    : > sub/conftest.c
5093    for i in 1 2 3 4 5 6; do
5094      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5095      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5096      # Solaris 10 /bin/sh.
5097      echo '/* dummy */' > sub/conftst$i.h
5098    done
5099    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5100
5101    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5102    # mode.  It turns out that the SunPro C++ compiler does not properly
5103    # handle '-M -o', and we need to detect this.  Also, some Intel
5104    # versions had trouble with output in subdirs.
5105    am__obj=sub/conftest.${OBJEXT-o}
5106    am__minus_obj="-o $am__obj"
5107    case $depmode in
5108    gcc)
5109      # This depmode causes a compiler race in universal mode.
5110      test "$am__universal" = false || continue
5111      ;;
5112    nosideeffect)
5113      # After this tag, mechanisms are not by side-effect, so they'll
5114      # only be used when explicitly requested.
5115      if test "x$enable_dependency_tracking" = xyes; then
5116	continue
5117      else
5118	break
5119      fi
5120      ;;
5121    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5122      # This compiler won't grok '-c -o', but also, the minuso test has
5123      # not run yet.  These depmodes are late enough in the game, and
5124      # so weak that their functioning should not be impacted.
5125      am__obj=conftest.${OBJEXT-o}
5126      am__minus_obj=
5127      ;;
5128    none) break ;;
5129    esac
5130    if depmode=$depmode \
5131       source=sub/conftest.c object=$am__obj \
5132       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5133       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5134         >/dev/null 2>conftest.err &&
5135       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5136       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5137       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5138       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5139      # icc doesn't choke on unknown options, it will just issue warnings
5140      # or remarks (even with -Werror).  So we grep stderr for any message
5141      # that says an option was ignored or not supported.
5142      # When given -MP, icc 7.0 and 7.1 complain thusly:
5143      #   icc: Command line warning: ignoring option '-M'; no argument required
5144      # The diagnosis changed in icc 8.0:
5145      #   icc: Command line remark: option '-MP' not supported
5146      if (grep 'ignoring option' conftest.err ||
5147          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5148        am_cv_CXX_dependencies_compiler_type=$depmode
5149        break
5150      fi
5151    fi
5152  done
5153
5154  cd ..
5155  rm -rf conftest.dir
5156else
5157  am_cv_CXX_dependencies_compiler_type=none
5158fi
5159
5160fi
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5162$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5163CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5164
5165 if
5166  test "x$enable_dependency_tracking" != xno \
5167  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5168  am__fastdepCXX_TRUE=
5169  am__fastdepCXX_FALSE='#'
5170else
5171  am__fastdepCXX_TRUE='#'
5172  am__fastdepCXX_FALSE=
5173fi
5174
5175
5176for ac_prog in gawk mawk nawk awk
5177do
5178  # Extract the first word of "$ac_prog", so it can be a program name with args.
5179set dummy $ac_prog; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if ${ac_cv_prog_AWK+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$AWK"; then
5186  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_AWK="$ac_prog"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205AWK=$ac_cv_prog_AWK
5206if test -n "$AWK"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5208$as_echo "$AWK" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214
5215  test -n "$AWK" && break
5216done
5217
5218ac_ext=c
5219ac_cpp='$CPP $CPPFLAGS'
5220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223if test -n "$ac_tool_prefix"; then
5224  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5225set dummy ${ac_tool_prefix}gcc; ac_word=$2
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227$as_echo_n "checking for $ac_word... " >&6; }
5228if ${ac_cv_prog_CC+:} false; then :
5229  $as_echo_n "(cached) " >&6
5230else
5231  if test -n "$CC"; then
5232  ac_cv_prog_CC="$CC" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237  IFS=$as_save_IFS
5238  test -z "$as_dir" && as_dir=.
5239    for ac_exec_ext in '' $ac_executable_extensions; do
5240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243    break 2
5244  fi
5245done
5246  done
5247IFS=$as_save_IFS
5248
5249fi
5250fi
5251CC=$ac_cv_prog_CC
5252if test -n "$CC"; then
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5254$as_echo "$CC" >&6; }
5255else
5256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257$as_echo "no" >&6; }
5258fi
5259
5260
5261fi
5262if test -z "$ac_cv_prog_CC"; then
5263  ac_ct_CC=$CC
5264  # Extract the first word of "gcc", so it can be a program name with args.
5265set dummy gcc; ac_word=$2
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
5268if ${ac_cv_prog_ac_ct_CC+:} false; then :
5269  $as_echo_n "(cached) " >&6
5270else
5271  if test -n "$ac_ct_CC"; then
5272  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277  IFS=$as_save_IFS
5278  test -z "$as_dir" && as_dir=.
5279    for ac_exec_ext in '' $ac_executable_extensions; do
5280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281    ac_cv_prog_ac_ct_CC="gcc"
5282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283    break 2
5284  fi
5285done
5286  done
5287IFS=$as_save_IFS
5288
5289fi
5290fi
5291ac_ct_CC=$ac_cv_prog_ac_ct_CC
5292if test -n "$ac_ct_CC"; then
5293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5294$as_echo "$ac_ct_CC" >&6; }
5295else
5296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
5298fi
5299
5300  if test "x$ac_ct_CC" = x; then
5301    CC=""
5302  else
5303    case $cross_compiling:$ac_tool_warned in
5304yes:)
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307ac_tool_warned=yes ;;
5308esac
5309    CC=$ac_ct_CC
5310  fi
5311else
5312  CC="$ac_cv_prog_CC"
5313fi
5314
5315if test -z "$CC"; then
5316          if test -n "$ac_tool_prefix"; then
5317    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5318set dummy ${ac_tool_prefix}cc; ac_word=$2
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320$as_echo_n "checking for $ac_word... " >&6; }
5321if ${ac_cv_prog_CC+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  if test -n "$CC"; then
5325  ac_cv_prog_CC="$CC" # Let the user override the test.
5326else
5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
5330  IFS=$as_save_IFS
5331  test -z "$as_dir" && as_dir=.
5332    for ac_exec_ext in '' $ac_executable_extensions; do
5333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334    ac_cv_prog_CC="${ac_tool_prefix}cc"
5335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336    break 2
5337  fi
5338done
5339  done
5340IFS=$as_save_IFS
5341
5342fi
5343fi
5344CC=$ac_cv_prog_CC
5345if test -n "$CC"; then
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5347$as_echo "$CC" >&6; }
5348else
5349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350$as_echo "no" >&6; }
5351fi
5352
5353
5354  fi
5355fi
5356if test -z "$CC"; then
5357  # Extract the first word of "cc", so it can be a program name with args.
5358set dummy cc; ac_word=$2
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360$as_echo_n "checking for $ac_word... " >&6; }
5361if ${ac_cv_prog_CC+:} false; then :
5362  $as_echo_n "(cached) " >&6
5363else
5364  if test -n "$CC"; then
5365  ac_cv_prog_CC="$CC" # Let the user override the test.
5366else
5367  ac_prog_rejected=no
5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371  IFS=$as_save_IFS
5372  test -z "$as_dir" && as_dir=.
5373    for ac_exec_ext in '' $ac_executable_extensions; do
5374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5376       ac_prog_rejected=yes
5377       continue
5378     fi
5379    ac_cv_prog_CC="cc"
5380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384  done
5385IFS=$as_save_IFS
5386
5387if test $ac_prog_rejected = yes; then
5388  # We found a bogon in the path, so make sure we never use it.
5389  set dummy $ac_cv_prog_CC
5390  shift
5391  if test $# != 0; then
5392    # We chose a different compiler from the bogus one.
5393    # However, it has the same basename, so the bogon will be chosen
5394    # first if we set CC to just the basename; use the full file name.
5395    shift
5396    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5397  fi
5398fi
5399fi
5400fi
5401CC=$ac_cv_prog_CC
5402if test -n "$CC"; then
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5404$as_echo "$CC" >&6; }
5405else
5406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409
5410
5411fi
5412if test -z "$CC"; then
5413  if test -n "$ac_tool_prefix"; then
5414  for ac_prog in cl.exe
5415  do
5416    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419$as_echo_n "checking for $ac_word... " >&6; }
5420if ${ac_cv_prog_CC+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  if test -n "$CC"; then
5424  ac_cv_prog_CC="$CC" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429  IFS=$as_save_IFS
5430  test -z "$as_dir" && as_dir=.
5431    for ac_exec_ext in '' $ac_executable_extensions; do
5432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435    break 2
5436  fi
5437done
5438  done
5439IFS=$as_save_IFS
5440
5441fi
5442fi
5443CC=$ac_cv_prog_CC
5444if test -n "$CC"; then
5445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5446$as_echo "$CC" >&6; }
5447else
5448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449$as_echo "no" >&6; }
5450fi
5451
5452
5453    test -n "$CC" && break
5454  done
5455fi
5456if test -z "$CC"; then
5457  ac_ct_CC=$CC
5458  for ac_prog in cl.exe
5459do
5460  # Extract the first word of "$ac_prog", so it can be a program name with args.
5461set dummy $ac_prog; ac_word=$2
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if ${ac_cv_prog_ac_ct_CC+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  if test -n "$ac_ct_CC"; then
5468  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473  IFS=$as_save_IFS
5474  test -z "$as_dir" && as_dir=.
5475    for ac_exec_ext in '' $ac_executable_extensions; do
5476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477    ac_cv_prog_ac_ct_CC="$ac_prog"
5478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479    break 2
5480  fi
5481done
5482  done
5483IFS=$as_save_IFS
5484
5485fi
5486fi
5487ac_ct_CC=$ac_cv_prog_ac_ct_CC
5488if test -n "$ac_ct_CC"; then
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5490$as_echo "$ac_ct_CC" >&6; }
5491else
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
5495
5496
5497  test -n "$ac_ct_CC" && break
5498done
5499
5500  if test "x$ac_ct_CC" = x; then
5501    CC=""
5502  else
5503    case $cross_compiling:$ac_tool_warned in
5504yes:)
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507ac_tool_warned=yes ;;
5508esac
5509    CC=$ac_ct_CC
5510  fi
5511fi
5512
5513fi
5514
5515
5516test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5518as_fn_error $? "no acceptable C compiler found in \$PATH
5519See \`config.log' for more details" "$LINENO" 5; }
5520
5521# Provide some information about the compiler.
5522$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5523set X $ac_compile
5524ac_compiler=$2
5525for ac_option in --version -v -V -qversion; do
5526  { { ac_try="$ac_compiler $ac_option >&5"
5527case "(($ac_try" in
5528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529  *) ac_try_echo=$ac_try;;
5530esac
5531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5532$as_echo "$ac_try_echo"; } >&5
5533  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5534  ac_status=$?
5535  if test -s conftest.err; then
5536    sed '10a\
5537... rest of stderr output deleted ...
5538         10q' conftest.err >conftest.er1
5539    cat conftest.er1 >&5
5540  fi
5541  rm -f conftest.er1 conftest.err
5542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5543  test $ac_status = 0; }
5544done
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5547$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5548if ${ac_cv_c_compiler_gnu+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553
5554int
5555main ()
5556{
5557#ifndef __GNUC__
5558       choke me
5559#endif
5560
5561  ;
5562  return 0;
5563}
5564_ACEOF
5565if ac_fn_c_try_compile "$LINENO"; then :
5566  ac_compiler_gnu=yes
5567else
5568  ac_compiler_gnu=no
5569fi
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571ac_cv_c_compiler_gnu=$ac_compiler_gnu
5572
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5575$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5576if test $ac_compiler_gnu = yes; then
5577  GCC=yes
5578else
5579  GCC=
5580fi
5581ac_test_CFLAGS=${CFLAGS+set}
5582ac_save_CFLAGS=$CFLAGS
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5584$as_echo_n "checking whether $CC accepts -g... " >&6; }
5585if ${ac_cv_prog_cc_g+:} false; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  ac_save_c_werror_flag=$ac_c_werror_flag
5589   ac_c_werror_flag=yes
5590   ac_cv_prog_cc_g=no
5591   CFLAGS="-g"
5592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594
5595int
5596main ()
5597{
5598
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604  ac_cv_prog_cc_g=yes
5605else
5606  CFLAGS=""
5607      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609
5610int
5611main ()
5612{
5613
5614  ;
5615  return 0;
5616}
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"; then :
5619
5620else
5621  ac_c_werror_flag=$ac_save_c_werror_flag
5622	 CFLAGS="-g"
5623	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625
5626int
5627main ()
5628{
5629
5630  ;
5631  return 0;
5632}
5633_ACEOF
5634if ac_fn_c_try_compile "$LINENO"; then :
5635  ac_cv_prog_cc_g=yes
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638fi
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642   ac_c_werror_flag=$ac_save_c_werror_flag
5643fi
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5645$as_echo "$ac_cv_prog_cc_g" >&6; }
5646if test "$ac_test_CFLAGS" = set; then
5647  CFLAGS=$ac_save_CFLAGS
5648elif test $ac_cv_prog_cc_g = yes; then
5649  if test "$GCC" = yes; then
5650    CFLAGS="-g -O2"
5651  else
5652    CFLAGS="-g"
5653  fi
5654else
5655  if test "$GCC" = yes; then
5656    CFLAGS="-O2"
5657  else
5658    CFLAGS=
5659  fi
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5662$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5663if ${ac_cv_prog_cc_c89+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  ac_cv_prog_cc_c89=no
5667ac_save_CC=$CC
5668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h.  */
5670#include <stdarg.h>
5671#include <stdio.h>
5672struct stat;
5673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5674struct buf { int x; };
5675FILE * (*rcsopen) (struct buf *, struct stat *, int);
5676static char *e (p, i)
5677     char **p;
5678     int i;
5679{
5680  return p[i];
5681}
5682static char *f (char * (*g) (char **, int), char **p, ...)
5683{
5684  char *s;
5685  va_list v;
5686  va_start (v,p);
5687  s = g (p, va_arg (v,int));
5688  va_end (v);
5689  return s;
5690}
5691
5692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5693   function prototypes and stuff, but not '\xHH' hex character constants.
5694   These don't provoke an error unfortunately, instead are silently treated
5695   as 'x'.  The following induces an error, until -std is added to get
5696   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5697   array size at least.  It's necessary to write '\x00'==0 to get something
5698   that's true only with -std.  */
5699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5700
5701/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5702   inside strings and character constants.  */
5703#define FOO(x) 'x'
5704int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5705
5706int test (int i, double x);
5707struct s1 {int (*f) (int a);};
5708struct s2 {int (*f) (double a);};
5709int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5710int argc;
5711char **argv;
5712int
5713main ()
5714{
5715return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5716  ;
5717  return 0;
5718}
5719_ACEOF
5720for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5721	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5722do
5723  CC="$ac_save_CC $ac_arg"
5724  if ac_fn_c_try_compile "$LINENO"; then :
5725  ac_cv_prog_cc_c89=$ac_arg
5726fi
5727rm -f core conftest.err conftest.$ac_objext
5728  test "x$ac_cv_prog_cc_c89" != "xno" && break
5729done
5730rm -f conftest.$ac_ext
5731CC=$ac_save_CC
5732
5733fi
5734# AC_CACHE_VAL
5735case "x$ac_cv_prog_cc_c89" in
5736  x)
5737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5738$as_echo "none needed" >&6; } ;;
5739  xno)
5740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5741$as_echo "unsupported" >&6; } ;;
5742  *)
5743    CC="$CC $ac_cv_prog_cc_c89"
5744    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5745$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5746esac
5747if test "x$ac_cv_prog_cc_c89" != xno; then :
5748
5749fi
5750
5751ac_ext=c
5752ac_cpp='$CPP $CPPFLAGS'
5753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755ac_compiler_gnu=$ac_cv_c_compiler_gnu
5756
5757ac_ext=c
5758ac_cpp='$CPP $CPPFLAGS'
5759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761ac_compiler_gnu=$ac_cv_c_compiler_gnu
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5763$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5764if ${am_cv_prog_cc_c_o+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h.  */
5769
5770int
5771main ()
5772{
5773
5774  ;
5775  return 0;
5776}
5777_ACEOF
5778  # Make sure it works both with $CC and with simple cc.
5779  # Following AC_PROG_CC_C_O, we do the test twice because some
5780  # compilers refuse to overwrite an existing .o file with -o,
5781  # though they will create one.
5782  am_cv_prog_cc_c_o=yes
5783  for am_i in 1 2; do
5784    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5785   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } \
5789         && test -f conftest2.$ac_objext; then
5790      : OK
5791    else
5792      am_cv_prog_cc_c_o=no
5793      break
5794    fi
5795  done
5796  rm -f core conftest*
5797  unset am_i
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5800$as_echo "$am_cv_prog_cc_c_o" >&6; }
5801if test "$am_cv_prog_cc_c_o" != yes; then
5802   # Losing compiler, so override with the script.
5803   # FIXME: It is wrong to rewrite CC.
5804   # But if we don't then we get into trouble of one sort or another.
5805   # A longer-term fix would be to have automake use am__CC in this case,
5806   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5807   CC="$am_aux_dir/compile $CC"
5808fi
5809ac_ext=c
5810ac_cpp='$CPP $CPPFLAGS'
5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814
5815
5816depcc="$CC"   am_compiler_list=
5817
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5819$as_echo_n "checking dependency style of $depcc... " >&6; }
5820if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5824  # We make a subdir and do the tests there.  Otherwise we can end up
5825  # making bogus files that we don't know about and never remove.  For
5826  # instance it was reported that on HP-UX the gcc test will end up
5827  # making a dummy file named 'D' -- because '-MD' means "put the output
5828  # in D".
5829  rm -rf conftest.dir
5830  mkdir conftest.dir
5831  # Copy depcomp to subdir because otherwise we won't find it if we're
5832  # using a relative directory.
5833  cp "$am_depcomp" conftest.dir
5834  cd conftest.dir
5835  # We will build objects and dependencies in a subdirectory because
5836  # it helps to detect inapplicable dependency modes.  For instance
5837  # both Tru64's cc and ICC support -MD to output dependencies as a
5838  # side effect of compilation, but ICC will put the dependencies in
5839  # the current directory while Tru64 will put them in the object
5840  # directory.
5841  mkdir sub
5842
5843  am_cv_CC_dependencies_compiler_type=none
5844  if test "$am_compiler_list" = ""; then
5845     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5846  fi
5847  am__universal=false
5848  case " $depcc " in #(
5849     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5850     esac
5851
5852  for depmode in $am_compiler_list; do
5853    # Setup a source with many dependencies, because some compilers
5854    # like to wrap large dependency lists on column 80 (with \), and
5855    # we should not choose a depcomp mode which is confused by this.
5856    #
5857    # We need to recreate these files for each test, as the compiler may
5858    # overwrite some of them when testing with obscure command lines.
5859    # This happens at least with the AIX C compiler.
5860    : > sub/conftest.c
5861    for i in 1 2 3 4 5 6; do
5862      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5863      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5864      # Solaris 10 /bin/sh.
5865      echo '/* dummy */' > sub/conftst$i.h
5866    done
5867    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5868
5869    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5870    # mode.  It turns out that the SunPro C++ compiler does not properly
5871    # handle '-M -o', and we need to detect this.  Also, some Intel
5872    # versions had trouble with output in subdirs.
5873    am__obj=sub/conftest.${OBJEXT-o}
5874    am__minus_obj="-o $am__obj"
5875    case $depmode in
5876    gcc)
5877      # This depmode causes a compiler race in universal mode.
5878      test "$am__universal" = false || continue
5879      ;;
5880    nosideeffect)
5881      # After this tag, mechanisms are not by side-effect, so they'll
5882      # only be used when explicitly requested.
5883      if test "x$enable_dependency_tracking" = xyes; then
5884	continue
5885      else
5886	break
5887      fi
5888      ;;
5889    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5890      # This compiler won't grok '-c -o', but also, the minuso test has
5891      # not run yet.  These depmodes are late enough in the game, and
5892      # so weak that their functioning should not be impacted.
5893      am__obj=conftest.${OBJEXT-o}
5894      am__minus_obj=
5895      ;;
5896    none) break ;;
5897    esac
5898    if depmode=$depmode \
5899       source=sub/conftest.c object=$am__obj \
5900       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5901       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5902         >/dev/null 2>conftest.err &&
5903       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5904       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5905       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5906       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5907      # icc doesn't choke on unknown options, it will just issue warnings
5908      # or remarks (even with -Werror).  So we grep stderr for any message
5909      # that says an option was ignored or not supported.
5910      # When given -MP, icc 7.0 and 7.1 complain thusly:
5911      #   icc: Command line warning: ignoring option '-M'; no argument required
5912      # The diagnosis changed in icc 8.0:
5913      #   icc: Command line remark: option '-MP' not supported
5914      if (grep 'ignoring option' conftest.err ||
5915          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5916        am_cv_CC_dependencies_compiler_type=$depmode
5917        break
5918      fi
5919    fi
5920  done
5921
5922  cd ..
5923  rm -rf conftest.dir
5924else
5925  am_cv_CC_dependencies_compiler_type=none
5926fi
5927
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5930$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5931CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5932
5933 if
5934  test "x$enable_dependency_tracking" != xno \
5935  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5936  am__fastdepCC_TRUE=
5937  am__fastdepCC_FALSE='#'
5938else
5939  am__fastdepCC_TRUE='#'
5940  am__fastdepCC_FALSE=
5941fi
5942
5943
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5945$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5946if ${ac_cv_prog_cc_c99+:} false; then :
5947  $as_echo_n "(cached) " >&6
5948else
5949  ac_cv_prog_cc_c99=no
5950ac_save_CC=$CC
5951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h.  */
5953#include <stdarg.h>
5954#include <stdbool.h>
5955#include <stdlib.h>
5956#include <wchar.h>
5957#include <stdio.h>
5958
5959// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5960#define debug(...) fprintf (stderr, __VA_ARGS__)
5961#define showlist(...) puts (#__VA_ARGS__)
5962#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5963static void
5964test_varargs_macros (void)
5965{
5966  int x = 1234;
5967  int y = 5678;
5968  debug ("Flag");
5969  debug ("X = %d\n", x);
5970  showlist (The first, second, and third items.);
5971  report (x>y, "x is %d but y is %d", x, y);
5972}
5973
5974// Check long long types.
5975#define BIG64 18446744073709551615ull
5976#define BIG32 4294967295ul
5977#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5978#if !BIG_OK
5979  your preprocessor is broken;
5980#endif
5981#if BIG_OK
5982#else
5983  your preprocessor is broken;
5984#endif
5985static long long int bignum = -9223372036854775807LL;
5986static unsigned long long int ubignum = BIG64;
5987
5988struct incomplete_array
5989{
5990  int datasize;
5991  double data[];
5992};
5993
5994struct named_init {
5995  int number;
5996  const wchar_t *name;
5997  double average;
5998};
5999
6000typedef const char *ccp;
6001
6002static inline int
6003test_restrict (ccp restrict text)
6004{
6005  // See if C++-style comments work.
6006  // Iterate through items via the restricted pointer.
6007  // Also check for declarations in for loops.
6008  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6009    continue;
6010  return 0;
6011}
6012
6013// Check varargs and va_copy.
6014static void
6015test_varargs (const char *format, ...)
6016{
6017  va_list args;
6018  va_start (args, format);
6019  va_list args_copy;
6020  va_copy (args_copy, args);
6021
6022  const char *str;
6023  int number;
6024  float fnumber;
6025
6026  while (*format)
6027    {
6028      switch (*format++)
6029	{
6030	case 's': // string
6031	  str = va_arg (args_copy, const char *);
6032	  break;
6033	case 'd': // int
6034	  number = va_arg (args_copy, int);
6035	  break;
6036	case 'f': // float
6037	  fnumber = va_arg (args_copy, double);
6038	  break;
6039	default:
6040	  break;
6041	}
6042    }
6043  va_end (args_copy);
6044  va_end (args);
6045}
6046
6047int
6048main ()
6049{
6050
6051  // Check bool.
6052  _Bool success = false;
6053
6054  // Check restrict.
6055  if (test_restrict ("String literal") == 0)
6056    success = true;
6057  char *restrict newvar = "Another string";
6058
6059  // Check varargs.
6060  test_varargs ("s, d' f .", "string", 65, 34.234);
6061  test_varargs_macros ();
6062
6063  // Check flexible array members.
6064  struct incomplete_array *ia =
6065    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6066  ia->datasize = 10;
6067  for (int i = 0; i < ia->datasize; ++i)
6068    ia->data[i] = i * 1.234;
6069
6070  // Check named initializers.
6071  struct named_init ni = {
6072    .number = 34,
6073    .name = L"Test wide string",
6074    .average = 543.34343,
6075  };
6076
6077  ni.number = 58;
6078
6079  int dynamic_array[ni.number];
6080  dynamic_array[ni.number - 1] = 543;
6081
6082  // work around unused variable warnings
6083  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6084	  || dynamic_array[ni.number - 1] != 543);
6085
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6091do
6092  CC="$ac_save_CC $ac_arg"
6093  if ac_fn_c_try_compile "$LINENO"; then :
6094  ac_cv_prog_cc_c99=$ac_arg
6095fi
6096rm -f core conftest.err conftest.$ac_objext
6097  test "x$ac_cv_prog_cc_c99" != "xno" && break
6098done
6099rm -f conftest.$ac_ext
6100CC=$ac_save_CC
6101
6102fi
6103# AC_CACHE_VAL
6104case "x$ac_cv_prog_cc_c99" in
6105  x)
6106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6107$as_echo "none needed" >&6; } ;;
6108  xno)
6109    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6110$as_echo "unsupported" >&6; } ;;
6111  *)
6112    CC="$CC $ac_cv_prog_cc_c99"
6113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6114$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6115esac
6116if test "x$ac_cv_prog_cc_c99" != xno; then :
6117
6118fi
6119
6120
6121
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6123$as_echo_n "checking whether ln -s works... " >&6; }
6124LN_S=$as_ln_s
6125if test "$LN_S" = "ln -s"; then
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6127$as_echo "yes" >&6; }
6128else
6129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6130$as_echo "no, using $LN_S" >&6; }
6131fi
6132
6133case `pwd` in
6134  *\ * | *\	*)
6135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6136$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6137esac
6138
6139
6140
6141macro_version='2.4.6'
6142macro_revision='2.4.6'
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156ltmain=$ac_aux_dir/ltmain.sh
6157
6158# Backslashify metacharacters that are still active within
6159# double-quoted strings.
6160sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6161
6162# Same as above, but do not quote variable references.
6163double_quote_subst='s/\(["`\\]\)/\\\1/g'
6164
6165# Sed substitution to delay expansion of an escaped shell variable in a
6166# double_quote_subst'ed string.
6167delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6168
6169# Sed substitution to delay expansion of an escaped single quote.
6170delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6171
6172# Sed substitution to avoid accidental globbing in evaled expressions
6173no_glob_subst='s/\*/\\\*/g'
6174
6175ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6176ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6177ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6180$as_echo_n "checking how to print strings... " >&6; }
6181# Test print first, because it will be a builtin if present.
6182if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6183   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6184  ECHO='print -r --'
6185elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6186  ECHO='printf %s\n'
6187else
6188  # Use this function as a fallback that always works.
6189  func_fallback_echo ()
6190  {
6191    eval 'cat <<_LTECHO_EOF
6192$1
6193_LTECHO_EOF'
6194  }
6195  ECHO='func_fallback_echo'
6196fi
6197
6198# func_echo_all arg...
6199# Invoke $ECHO with all args, space-separated.
6200func_echo_all ()
6201{
6202    $ECHO ""
6203}
6204
6205case $ECHO in
6206  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6207$as_echo "printf" >&6; } ;;
6208  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6209$as_echo "print -r" >&6; } ;;
6210  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6211$as_echo "cat" >&6; } ;;
6212esac
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6228$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6229if ${ac_cv_path_SED+:} false; then :
6230  $as_echo_n "(cached) " >&6
6231else
6232            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6233     for ac_i in 1 2 3 4 5 6 7; do
6234       ac_script="$ac_script$as_nl$ac_script"
6235     done
6236     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6237     { ac_script=; unset ac_script;}
6238     if test -z "$SED"; then
6239  ac_path_SED_found=false
6240  # Loop through the user's path and test for each of PROGNAME-LIST
6241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_prog in sed gsed; do
6247    for ac_exec_ext in '' $ac_executable_extensions; do
6248      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6249      as_fn_executable_p "$ac_path_SED" || continue
6250# Check for GNU ac_path_SED and select it if it is found.
6251  # Check for GNU $ac_path_SED
6252case `"$ac_path_SED" --version 2>&1` in
6253*GNU*)
6254  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6255*)
6256  ac_count=0
6257  $as_echo_n 0123456789 >"conftest.in"
6258  while :
6259  do
6260    cat "conftest.in" "conftest.in" >"conftest.tmp"
6261    mv "conftest.tmp" "conftest.in"
6262    cp "conftest.in" "conftest.nl"
6263    $as_echo '' >> "conftest.nl"
6264    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6265    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6266    as_fn_arith $ac_count + 1 && ac_count=$as_val
6267    if test $ac_count -gt ${ac_path_SED_max-0}; then
6268      # Best one so far, save it but keep looking for a better one
6269      ac_cv_path_SED="$ac_path_SED"
6270      ac_path_SED_max=$ac_count
6271    fi
6272    # 10*(2^10) chars as input seems more than enough
6273    test $ac_count -gt 10 && break
6274  done
6275  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6276esac
6277
6278      $ac_path_SED_found && break 3
6279    done
6280  done
6281  done
6282IFS=$as_save_IFS
6283  if test -z "$ac_cv_path_SED"; then
6284    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6285  fi
6286else
6287  ac_cv_path_SED=$SED
6288fi
6289
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6292$as_echo "$ac_cv_path_SED" >&6; }
6293 SED="$ac_cv_path_SED"
6294  rm -f conftest.sed
6295
6296test -z "$SED" && SED=sed
6297Xsed="$SED -e 1s/^X//"
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6310$as_echo_n "checking for fgrep... " >&6; }
6311if ${ac_cv_path_FGREP+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6315   then ac_cv_path_FGREP="$GREP -F"
6316   else
6317     if test -z "$FGREP"; then
6318  ac_path_FGREP_found=false
6319  # Loop through the user's path and test for each of PROGNAME-LIST
6320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6322do
6323  IFS=$as_save_IFS
6324  test -z "$as_dir" && as_dir=.
6325    for ac_prog in fgrep; do
6326    for ac_exec_ext in '' $ac_executable_extensions; do
6327      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6328      as_fn_executable_p "$ac_path_FGREP" || continue
6329# Check for GNU ac_path_FGREP and select it if it is found.
6330  # Check for GNU $ac_path_FGREP
6331case `"$ac_path_FGREP" --version 2>&1` in
6332*GNU*)
6333  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6334*)
6335  ac_count=0
6336  $as_echo_n 0123456789 >"conftest.in"
6337  while :
6338  do
6339    cat "conftest.in" "conftest.in" >"conftest.tmp"
6340    mv "conftest.tmp" "conftest.in"
6341    cp "conftest.in" "conftest.nl"
6342    $as_echo 'FGREP' >> "conftest.nl"
6343    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6344    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6345    as_fn_arith $ac_count + 1 && ac_count=$as_val
6346    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6347      # Best one so far, save it but keep looking for a better one
6348      ac_cv_path_FGREP="$ac_path_FGREP"
6349      ac_path_FGREP_max=$ac_count
6350    fi
6351    # 10*(2^10) chars as input seems more than enough
6352    test $ac_count -gt 10 && break
6353  done
6354  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6355esac
6356
6357      $ac_path_FGREP_found && break 3
6358    done
6359  done
6360  done
6361IFS=$as_save_IFS
6362  if test -z "$ac_cv_path_FGREP"; then
6363    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6364  fi
6365else
6366  ac_cv_path_FGREP=$FGREP
6367fi
6368
6369   fi
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6372$as_echo "$ac_cv_path_FGREP" >&6; }
6373 FGREP="$ac_cv_path_FGREP"
6374
6375
6376test -z "$GREP" && GREP=grep
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396# Check whether --with-gnu-ld was given.
6397if test "${with_gnu_ld+set}" = set; then :
6398  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6399else
6400  with_gnu_ld=no
6401fi
6402
6403ac_prog=ld
6404if test yes = "$GCC"; then
6405  # Check if gcc -print-prog-name=ld gives a path.
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6407$as_echo_n "checking for ld used by $CC... " >&6; }
6408  case $host in
6409  *-*-mingw*)
6410    # gcc leaves a trailing carriage return, which upsets mingw
6411    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6412  *)
6413    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6414  esac
6415  case $ac_prog in
6416    # Accept absolute paths.
6417    [\\/]* | ?:[\\/]*)
6418      re_direlt='/[^/][^/]*/\.\./'
6419      # Canonicalize the pathname of ld
6420      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6421      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6422	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6423      done
6424      test -z "$LD" && LD=$ac_prog
6425      ;;
6426  "")
6427    # If it fails, then pretend we aren't using GCC.
6428    ac_prog=ld
6429    ;;
6430  *)
6431    # If it is relative, then search for the first ld in PATH.
6432    with_gnu_ld=unknown
6433    ;;
6434  esac
6435elif test yes = "$with_gnu_ld"; then
6436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6437$as_echo_n "checking for GNU ld... " >&6; }
6438else
6439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6440$as_echo_n "checking for non-GNU ld... " >&6; }
6441fi
6442if ${lt_cv_path_LD+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  if test -z "$LD"; then
6446  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6447  for ac_dir in $PATH; do
6448    IFS=$lt_save_ifs
6449    test -z "$ac_dir" && ac_dir=.
6450    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6451      lt_cv_path_LD=$ac_dir/$ac_prog
6452      # Check to see if the program is GNU ld.  I'd rather use --version,
6453      # but apparently some variants of GNU ld only accept -v.
6454      # Break only if it was the GNU/non-GNU ld that we prefer.
6455      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6456      *GNU* | *'with BFD'*)
6457	test no != "$with_gnu_ld" && break
6458	;;
6459      *)
6460	test yes != "$with_gnu_ld" && break
6461	;;
6462      esac
6463    fi
6464  done
6465  IFS=$lt_save_ifs
6466else
6467  lt_cv_path_LD=$LD # Let the user override the test with a path.
6468fi
6469fi
6470
6471LD=$lt_cv_path_LD
6472if test -n "$LD"; then
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6474$as_echo "$LD" >&6; }
6475else
6476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6481$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6482if ${lt_cv_prog_gnu_ld+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6486case `$LD -v 2>&1 </dev/null` in
6487*GNU* | *'with BFD'*)
6488  lt_cv_prog_gnu_ld=yes
6489  ;;
6490*)
6491  lt_cv_prog_gnu_ld=no
6492  ;;
6493esac
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6496$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6497with_gnu_ld=$lt_cv_prog_gnu_ld
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6508$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6509if ${lt_cv_path_NM+:} false; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512  if test -n "$NM"; then
6513  # Let the user override the test.
6514  lt_cv_path_NM=$NM
6515else
6516  lt_nm_to_check=${ac_tool_prefix}nm
6517  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6518    lt_nm_to_check="$lt_nm_to_check nm"
6519  fi
6520  for lt_tmp_nm in $lt_nm_to_check; do
6521    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6522    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6523      IFS=$lt_save_ifs
6524      test -z "$ac_dir" && ac_dir=.
6525      tmp_nm=$ac_dir/$lt_tmp_nm
6526      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6527	# Check to see if the nm accepts a BSD-compat flag.
6528	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6529	#   nm: unknown option "B" ignored
6530	# Tru64's nm complains that /dev/null is an invalid object file
6531	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6532	case $build_os in
6533	mingw*) lt_bad_file=conftest.nm/nofile ;;
6534	*) lt_bad_file=/dev/null ;;
6535	esac
6536	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6537	*$lt_bad_file* | *'Invalid file or object type'*)
6538	  lt_cv_path_NM="$tmp_nm -B"
6539	  break 2
6540	  ;;
6541	*)
6542	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6543	  */dev/null*)
6544	    lt_cv_path_NM="$tmp_nm -p"
6545	    break 2
6546	    ;;
6547	  *)
6548	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6549	    continue # so that we can try to find one that supports BSD flags
6550	    ;;
6551	  esac
6552	  ;;
6553	esac
6554      fi
6555    done
6556    IFS=$lt_save_ifs
6557  done
6558  : ${lt_cv_path_NM=no}
6559fi
6560fi
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6562$as_echo "$lt_cv_path_NM" >&6; }
6563if test no != "$lt_cv_path_NM"; then
6564  NM=$lt_cv_path_NM
6565else
6566  # Didn't find any BSD compatible name lister, look for dumpbin.
6567  if test -n "$DUMPBIN"; then :
6568    # Let the user override the test.
6569  else
6570    if test -n "$ac_tool_prefix"; then
6571  for ac_prog in dumpbin "link -dump"
6572  do
6573    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576$as_echo_n "checking for $ac_word... " >&6; }
6577if ${ac_cv_prog_DUMPBIN+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  if test -n "$DUMPBIN"; then
6581  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586  IFS=$as_save_IFS
6587  test -z "$as_dir" && as_dir=.
6588    for ac_exec_ext in '' $ac_executable_extensions; do
6589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592    break 2
6593  fi
6594done
6595  done
6596IFS=$as_save_IFS
6597
6598fi
6599fi
6600DUMPBIN=$ac_cv_prog_DUMPBIN
6601if test -n "$DUMPBIN"; then
6602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6603$as_echo "$DUMPBIN" >&6; }
6604else
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606$as_echo "no" >&6; }
6607fi
6608
6609
6610    test -n "$DUMPBIN" && break
6611  done
6612fi
6613if test -z "$DUMPBIN"; then
6614  ac_ct_DUMPBIN=$DUMPBIN
6615  for ac_prog in dumpbin "link -dump"
6616do
6617  # Extract the first word of "$ac_prog", so it can be a program name with args.
6618set dummy $ac_prog; ac_word=$2
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620$as_echo_n "checking for $ac_word... " >&6; }
6621if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6622  $as_echo_n "(cached) " >&6
6623else
6624  if test -n "$ac_ct_DUMPBIN"; then
6625  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  test -z "$as_dir" && as_dir=.
6632    for ac_exec_ext in '' $ac_executable_extensions; do
6633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636    break 2
6637  fi
6638done
6639  done
6640IFS=$as_save_IFS
6641
6642fi
6643fi
6644ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6645if test -n "$ac_ct_DUMPBIN"; then
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6647$as_echo "$ac_ct_DUMPBIN" >&6; }
6648else
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650$as_echo "no" >&6; }
6651fi
6652
6653
6654  test -n "$ac_ct_DUMPBIN" && break
6655done
6656
6657  if test "x$ac_ct_DUMPBIN" = x; then
6658    DUMPBIN=":"
6659  else
6660    case $cross_compiling:$ac_tool_warned in
6661yes:)
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664ac_tool_warned=yes ;;
6665esac
6666    DUMPBIN=$ac_ct_DUMPBIN
6667  fi
6668fi
6669
6670    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6671    *COFF*)
6672      DUMPBIN="$DUMPBIN -symbols -headers"
6673      ;;
6674    *)
6675      DUMPBIN=:
6676      ;;
6677    esac
6678  fi
6679
6680  if test : != "$DUMPBIN"; then
6681    NM=$DUMPBIN
6682  fi
6683fi
6684test -z "$NM" && NM=nm
6685
6686
6687
6688
6689
6690
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6692$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6693if ${lt_cv_nm_interface+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  lt_cv_nm_interface="BSD nm"
6697  echo "int some_variable = 0;" > conftest.$ac_ext
6698  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6699  (eval "$ac_compile" 2>conftest.err)
6700  cat conftest.err >&5
6701  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6702  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6703  cat conftest.err >&5
6704  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6705  cat conftest.out >&5
6706  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6707    lt_cv_nm_interface="MS dumpbin"
6708  fi
6709  rm -f conftest*
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6712$as_echo "$lt_cv_nm_interface" >&6; }
6713
6714# find the maximum length of command line arguments
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6716$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6717if ${lt_cv_sys_max_cmd_len+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720    i=0
6721  teststring=ABCD
6722
6723  case $build_os in
6724  msdosdjgpp*)
6725    # On DJGPP, this test can blow up pretty badly due to problems in libc
6726    # (any single argument exceeding 2000 bytes causes a buffer overrun
6727    # during glob expansion).  Even if it were fixed, the result of this
6728    # check would be larger than it should be.
6729    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6730    ;;
6731
6732  gnu*)
6733    # Under GNU Hurd, this test is not required because there is
6734    # no limit to the length of command line arguments.
6735    # Libtool will interpret -1 as no limit whatsoever
6736    lt_cv_sys_max_cmd_len=-1;
6737    ;;
6738
6739  cygwin* | mingw* | cegcc*)
6740    # On Win9x/ME, this test blows up -- it succeeds, but takes
6741    # about 5 minutes as the teststring grows exponentially.
6742    # Worse, since 9x/ME are not pre-emptively multitasking,
6743    # you end up with a "frozen" computer, even though with patience
6744    # the test eventually succeeds (with a max line length of 256k).
6745    # Instead, let's just punt: use the minimum linelength reported by
6746    # all of the supported platforms: 8192 (on NT/2K/XP).
6747    lt_cv_sys_max_cmd_len=8192;
6748    ;;
6749
6750  mint*)
6751    # On MiNT this can take a long time and run out of memory.
6752    lt_cv_sys_max_cmd_len=8192;
6753    ;;
6754
6755  amigaos*)
6756    # On AmigaOS with pdksh, this test takes hours, literally.
6757    # So we just punt and use a minimum line length of 8192.
6758    lt_cv_sys_max_cmd_len=8192;
6759    ;;
6760
6761  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6762    # This has been around since 386BSD, at least.  Likely further.
6763    if test -x /sbin/sysctl; then
6764      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765    elif test -x /usr/sbin/sysctl; then
6766      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6767    else
6768      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6769    fi
6770    # And add a safety zone
6771    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6773    ;;
6774
6775  interix*)
6776    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6777    lt_cv_sys_max_cmd_len=196608
6778    ;;
6779
6780  os2*)
6781    # The test takes a long time on OS/2.
6782    lt_cv_sys_max_cmd_len=8192
6783    ;;
6784
6785  osf*)
6786    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6787    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6788    # nice to cause kernel panics so lets avoid the loop below.
6789    # First set a reasonable default.
6790    lt_cv_sys_max_cmd_len=16384
6791    #
6792    if test -x /sbin/sysconfig; then
6793      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6794        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6795      esac
6796    fi
6797    ;;
6798  sco3.2v5*)
6799    lt_cv_sys_max_cmd_len=102400
6800    ;;
6801  sysv5* | sco5v6* | sysv4.2uw2*)
6802    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6803    if test -n "$kargmax"; then
6804      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6805    else
6806      lt_cv_sys_max_cmd_len=32768
6807    fi
6808    ;;
6809  *)
6810    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6811    if test -n "$lt_cv_sys_max_cmd_len" && \
6812       test undefined != "$lt_cv_sys_max_cmd_len"; then
6813      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6814      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6815    else
6816      # Make teststring a little bigger before we do anything with it.
6817      # a 1K string should be a reasonable start.
6818      for i in 1 2 3 4 5 6 7 8; do
6819        teststring=$teststring$teststring
6820      done
6821      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6822      # If test is not a shell built-in, we'll probably end up computing a
6823      # maximum length that is only half of the actual maximum length, but
6824      # we can't tell.
6825      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6826	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6827	      test 17 != "$i" # 1/2 MB should be enough
6828      do
6829        i=`expr $i + 1`
6830        teststring=$teststring$teststring
6831      done
6832      # Only check the string length outside the loop.
6833      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6834      teststring=
6835      # Add a significant safety factor because C++ compilers can tack on
6836      # massive amounts of additional arguments before passing them to the
6837      # linker.  It appears as though 1/2 is a usable value.
6838      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6839    fi
6840    ;;
6841  esac
6842
6843fi
6844
6845if test -n "$lt_cv_sys_max_cmd_len"; then
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6847$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6848else
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6850$as_echo "none" >&6; }
6851fi
6852max_cmd_len=$lt_cv_sys_max_cmd_len
6853
6854
6855
6856
6857
6858
6859: ${CP="cp -f"}
6860: ${MV="mv -f"}
6861: ${RM="rm -f"}
6862
6863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6864  lt_unset=unset
6865else
6866  lt_unset=false
6867fi
6868
6869
6870
6871
6872
6873# test EBCDIC or ASCII
6874case `echo X|tr X '\101'` in
6875 A) # ASCII based system
6876    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6877  lt_SP2NL='tr \040 \012'
6878  lt_NL2SP='tr \015\012 \040\040'
6879  ;;
6880 *) # EBCDIC based system
6881  lt_SP2NL='tr \100 \n'
6882  lt_NL2SP='tr \r\n \100\100'
6883  ;;
6884esac
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6895$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6896if ${lt_cv_to_host_file_cmd+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  case $host in
6900  *-*-mingw* )
6901    case $build in
6902      *-*-mingw* ) # actually msys
6903        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6904        ;;
6905      *-*-cygwin* )
6906        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6907        ;;
6908      * ) # otherwise, assume *nix
6909        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6910        ;;
6911    esac
6912    ;;
6913  *-*-cygwin* )
6914    case $build in
6915      *-*-mingw* ) # actually msys
6916        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6917        ;;
6918      *-*-cygwin* )
6919        lt_cv_to_host_file_cmd=func_convert_file_noop
6920        ;;
6921      * ) # otherwise, assume *nix
6922        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6923        ;;
6924    esac
6925    ;;
6926  * ) # unhandled hosts (and "normal" native builds)
6927    lt_cv_to_host_file_cmd=func_convert_file_noop
6928    ;;
6929esac
6930
6931fi
6932
6933to_host_file_cmd=$lt_cv_to_host_file_cmd
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6935$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6936
6937
6938
6939
6940
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6942$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6943if ${lt_cv_to_tool_file_cmd+:} false; then :
6944  $as_echo_n "(cached) " >&6
6945else
6946  #assume ordinary cross tools, or native build.
6947lt_cv_to_tool_file_cmd=func_convert_file_noop
6948case $host in
6949  *-*-mingw* )
6950    case $build in
6951      *-*-mingw* ) # actually msys
6952        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6953        ;;
6954    esac
6955    ;;
6956esac
6957
6958fi
6959
6960to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6962$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6963
6964
6965
6966
6967
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6969$as_echo_n "checking for $LD option to reload object files... " >&6; }
6970if ${lt_cv_ld_reload_flag+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  lt_cv_ld_reload_flag='-r'
6974fi
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6976$as_echo "$lt_cv_ld_reload_flag" >&6; }
6977reload_flag=$lt_cv_ld_reload_flag
6978case $reload_flag in
6979"" | " "*) ;;
6980*) reload_flag=" $reload_flag" ;;
6981esac
6982reload_cmds='$LD$reload_flag -o $output$reload_objs'
6983case $host_os in
6984  cygwin* | mingw* | pw32* | cegcc*)
6985    if test yes != "$GCC"; then
6986      reload_cmds=false
6987    fi
6988    ;;
6989  darwin*)
6990    if test yes = "$GCC"; then
6991      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6992    else
6993      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6994    fi
6995    ;;
6996esac
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006if test -n "$ac_tool_prefix"; then
7007  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7008set dummy ${ac_tool_prefix}objdump; ac_word=$2
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010$as_echo_n "checking for $ac_word... " >&6; }
7011if ${ac_cv_prog_OBJDUMP+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  if test -n "$OBJDUMP"; then
7015  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7016else
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020  IFS=$as_save_IFS
7021  test -z "$as_dir" && as_dir=.
7022    for ac_exec_ext in '' $ac_executable_extensions; do
7023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026    break 2
7027  fi
7028done
7029  done
7030IFS=$as_save_IFS
7031
7032fi
7033fi
7034OBJDUMP=$ac_cv_prog_OBJDUMP
7035if test -n "$OBJDUMP"; then
7036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7037$as_echo "$OBJDUMP" >&6; }
7038else
7039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040$as_echo "no" >&6; }
7041fi
7042
7043
7044fi
7045if test -z "$ac_cv_prog_OBJDUMP"; then
7046  ac_ct_OBJDUMP=$OBJDUMP
7047  # Extract the first word of "objdump", so it can be a program name with args.
7048set dummy objdump; ac_word=$2
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050$as_echo_n "checking for $ac_word... " >&6; }
7051if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7052  $as_echo_n "(cached) " >&6
7053else
7054  if test -n "$ac_ct_OBJDUMP"; then
7055  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7056else
7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060  IFS=$as_save_IFS
7061  test -z "$as_dir" && as_dir=.
7062    for ac_exec_ext in '' $ac_executable_extensions; do
7063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066    break 2
7067  fi
7068done
7069  done
7070IFS=$as_save_IFS
7071
7072fi
7073fi
7074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7075if test -n "$ac_ct_OBJDUMP"; then
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7077$as_echo "$ac_ct_OBJDUMP" >&6; }
7078else
7079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080$as_echo "no" >&6; }
7081fi
7082
7083  if test "x$ac_ct_OBJDUMP" = x; then
7084    OBJDUMP="false"
7085  else
7086    case $cross_compiling:$ac_tool_warned in
7087yes:)
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090ac_tool_warned=yes ;;
7091esac
7092    OBJDUMP=$ac_ct_OBJDUMP
7093  fi
7094else
7095  OBJDUMP="$ac_cv_prog_OBJDUMP"
7096fi
7097
7098test -z "$OBJDUMP" && OBJDUMP=objdump
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7109$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7110if ${lt_cv_deplibs_check_method+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  lt_cv_file_magic_cmd='$MAGIC_CMD'
7114lt_cv_file_magic_test_file=
7115lt_cv_deplibs_check_method='unknown'
7116# Need to set the preceding variable on all platforms that support
7117# interlibrary dependencies.
7118# 'none' -- dependencies not supported.
7119# 'unknown' -- same as none, but documents that we really don't know.
7120# 'pass_all' -- all dependencies passed with no checks.
7121# 'test_compile' -- check by making test program.
7122# 'file_magic [[regex]]' -- check by looking for files in library path
7123# that responds to the $file_magic_cmd with a given extended regex.
7124# If you have 'file' or equivalent on your system and you're not sure
7125# whether 'pass_all' will *always* work, you probably want this one.
7126
7127case $host_os in
7128aix[4-9]*)
7129  lt_cv_deplibs_check_method=pass_all
7130  ;;
7131
7132beos*)
7133  lt_cv_deplibs_check_method=pass_all
7134  ;;
7135
7136bsdi[45]*)
7137  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7138  lt_cv_file_magic_cmd='/usr/bin/file -L'
7139  lt_cv_file_magic_test_file=/shlib/libc.so
7140  ;;
7141
7142cygwin*)
7143  # func_win32_libid is a shell function defined in ltmain.sh
7144  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7145  lt_cv_file_magic_cmd='func_win32_libid'
7146  ;;
7147
7148mingw* | pw32*)
7149  # Base MSYS/MinGW do not provide the 'file' command needed by
7150  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7151  # unless we find 'file', for example because we are cross-compiling.
7152  if ( file / ) >/dev/null 2>&1; then
7153    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7154    lt_cv_file_magic_cmd='func_win32_libid'
7155  else
7156    # Keep this pattern in sync with the one in func_win32_libid.
7157    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7158    lt_cv_file_magic_cmd='$OBJDUMP -f'
7159  fi
7160  ;;
7161
7162cegcc*)
7163  # use the weaker test based on 'objdump'. See mingw*.
7164  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7165  lt_cv_file_magic_cmd='$OBJDUMP -f'
7166  ;;
7167
7168darwin* | rhapsody*)
7169  lt_cv_deplibs_check_method=pass_all
7170  ;;
7171
7172freebsd* | dragonfly*)
7173  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7174    case $host_cpu in
7175    i*86 )
7176      # Not sure whether the presence of OpenBSD here was a mistake.
7177      # Let's accept both of them until this is cleared up.
7178      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7179      lt_cv_file_magic_cmd=/usr/bin/file
7180      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7181      ;;
7182    esac
7183  else
7184    lt_cv_deplibs_check_method=pass_all
7185  fi
7186  ;;
7187
7188haiku*)
7189  lt_cv_deplibs_check_method=pass_all
7190  ;;
7191
7192hpux10.20* | hpux11*)
7193  lt_cv_file_magic_cmd=/usr/bin/file
7194  case $host_cpu in
7195  ia64*)
7196    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7197    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7198    ;;
7199  hppa*64*)
7200    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]'
7201    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7202    ;;
7203  *)
7204    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7205    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7206    ;;
7207  esac
7208  ;;
7209
7210interix[3-9]*)
7211  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7212  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7213  ;;
7214
7215irix5* | irix6* | nonstopux*)
7216  case $LD in
7217  *-32|*"-32 ") libmagic=32-bit;;
7218  *-n32|*"-n32 ") libmagic=N32;;
7219  *-64|*"-64 ") libmagic=64-bit;;
7220  *) libmagic=never-match;;
7221  esac
7222  lt_cv_deplibs_check_method=pass_all
7223  ;;
7224
7225# This must be glibc/ELF.
7226linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7227  lt_cv_deplibs_check_method=pass_all
7228  ;;
7229
7230netbsd*)
7231  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7232    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7233  else
7234    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7235  fi
7236  ;;
7237
7238newos6*)
7239  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7240  lt_cv_file_magic_cmd=/usr/bin/file
7241  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7242  ;;
7243
7244*nto* | *qnx*)
7245  lt_cv_deplibs_check_method=pass_all
7246  ;;
7247
7248openbsd* | bitrig*)
7249  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7251  else
7252    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7253  fi
7254  ;;
7255
7256osf3* | osf4* | osf5*)
7257  lt_cv_deplibs_check_method=pass_all
7258  ;;
7259
7260rdos*)
7261  lt_cv_deplibs_check_method=pass_all
7262  ;;
7263
7264solaris*)
7265  lt_cv_deplibs_check_method=pass_all
7266  ;;
7267
7268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7269  lt_cv_deplibs_check_method=pass_all
7270  ;;
7271
7272sysv4 | sysv4.3*)
7273  case $host_vendor in
7274  motorola)
7275    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]'
7276    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7277    ;;
7278  ncr)
7279    lt_cv_deplibs_check_method=pass_all
7280    ;;
7281  sequent)
7282    lt_cv_file_magic_cmd='/bin/file'
7283    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7284    ;;
7285  sni)
7286    lt_cv_file_magic_cmd='/bin/file'
7287    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7288    lt_cv_file_magic_test_file=/lib/libc.so
7289    ;;
7290  siemens)
7291    lt_cv_deplibs_check_method=pass_all
7292    ;;
7293  pc)
7294    lt_cv_deplibs_check_method=pass_all
7295    ;;
7296  esac
7297  ;;
7298
7299tpf*)
7300  lt_cv_deplibs_check_method=pass_all
7301  ;;
7302os2*)
7303  lt_cv_deplibs_check_method=pass_all
7304  ;;
7305esac
7306
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7309$as_echo "$lt_cv_deplibs_check_method" >&6; }
7310
7311file_magic_glob=
7312want_nocaseglob=no
7313if test "$build" = "$host"; then
7314  case $host_os in
7315  mingw* | pw32*)
7316    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7317      want_nocaseglob=yes
7318    else
7319      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7320    fi
7321    ;;
7322  esac
7323fi
7324
7325file_magic_cmd=$lt_cv_file_magic_cmd
7326deplibs_check_method=$lt_cv_deplibs_check_method
7327test -z "$deplibs_check_method" && deplibs_check_method=unknown
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350if test -n "$ac_tool_prefix"; then
7351  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7352set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if ${ac_cv_prog_DLLTOOL+:} false; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  if test -n "$DLLTOOL"; then
7359  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366    for ac_exec_ext in '' $ac_executable_extensions; do
7367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373  done
7374IFS=$as_save_IFS
7375
7376fi
7377fi
7378DLLTOOL=$ac_cv_prog_DLLTOOL
7379if test -n "$DLLTOOL"; then
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7381$as_echo "$DLLTOOL" >&6; }
7382else
7383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384$as_echo "no" >&6; }
7385fi
7386
7387
7388fi
7389if test -z "$ac_cv_prog_DLLTOOL"; then
7390  ac_ct_DLLTOOL=$DLLTOOL
7391  # Extract the first word of "dlltool", so it can be a program name with args.
7392set dummy dlltool; ac_word=$2
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394$as_echo_n "checking for $ac_word... " >&6; }
7395if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7396  $as_echo_n "(cached) " >&6
7397else
7398  if test -n "$ac_ct_DLLTOOL"; then
7399  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406    for ac_exec_ext in '' $ac_executable_extensions; do
7407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410    break 2
7411  fi
7412done
7413  done
7414IFS=$as_save_IFS
7415
7416fi
7417fi
7418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7419if test -n "$ac_ct_DLLTOOL"; then
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7421$as_echo "$ac_ct_DLLTOOL" >&6; }
7422else
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424$as_echo "no" >&6; }
7425fi
7426
7427  if test "x$ac_ct_DLLTOOL" = x; then
7428    DLLTOOL="false"
7429  else
7430    case $cross_compiling:$ac_tool_warned in
7431yes:)
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434ac_tool_warned=yes ;;
7435esac
7436    DLLTOOL=$ac_ct_DLLTOOL
7437  fi
7438else
7439  DLLTOOL="$ac_cv_prog_DLLTOOL"
7440fi
7441
7442test -z "$DLLTOOL" && DLLTOOL=dlltool
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7454$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7455if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  lt_cv_sharedlib_from_linklib_cmd='unknown'
7459
7460case $host_os in
7461cygwin* | mingw* | pw32* | cegcc*)
7462  # two different shell functions defined in ltmain.sh;
7463  # decide which one to use based on capabilities of $DLLTOOL
7464  case `$DLLTOOL --help 2>&1` in
7465  *--identify-strict*)
7466    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7467    ;;
7468  *)
7469    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7470    ;;
7471  esac
7472  ;;
7473*)
7474  # fallback: assume linklib IS sharedlib
7475  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7476  ;;
7477esac
7478
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7481$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7482sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7483test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7484
7485
7486
7487
7488
7489
7490
7491if test -n "$ac_tool_prefix"; then
7492  for ac_prog in ar
7493  do
7494    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497$as_echo_n "checking for $ac_word... " >&6; }
7498if ${ac_cv_prog_AR+:} false; then :
7499  $as_echo_n "(cached) " >&6
7500else
7501  if test -n "$AR"; then
7502  ac_cv_prog_AR="$AR" # Let the user override the test.
7503else
7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507  IFS=$as_save_IFS
7508  test -z "$as_dir" && as_dir=.
7509    for ac_exec_ext in '' $ac_executable_extensions; do
7510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516  done
7517IFS=$as_save_IFS
7518
7519fi
7520fi
7521AR=$ac_cv_prog_AR
7522if test -n "$AR"; then
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7524$as_echo "$AR" >&6; }
7525else
7526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528fi
7529
7530
7531    test -n "$AR" && break
7532  done
7533fi
7534if test -z "$AR"; then
7535  ac_ct_AR=$AR
7536  for ac_prog in ar
7537do
7538  # Extract the first word of "$ac_prog", so it can be a program name with args.
7539set dummy $ac_prog; ac_word=$2
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541$as_echo_n "checking for $ac_word... " >&6; }
7542if ${ac_cv_prog_ac_ct_AR+:} false; then :
7543  $as_echo_n "(cached) " >&6
7544else
7545  if test -n "$ac_ct_AR"; then
7546  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7547else
7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551  IFS=$as_save_IFS
7552  test -z "$as_dir" && as_dir=.
7553    for ac_exec_ext in '' $ac_executable_extensions; do
7554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555    ac_cv_prog_ac_ct_AR="$ac_prog"
7556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557    break 2
7558  fi
7559done
7560  done
7561IFS=$as_save_IFS
7562
7563fi
7564fi
7565ac_ct_AR=$ac_cv_prog_ac_ct_AR
7566if test -n "$ac_ct_AR"; then
7567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7568$as_echo "$ac_ct_AR" >&6; }
7569else
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572fi
7573
7574
7575  test -n "$ac_ct_AR" && break
7576done
7577
7578  if test "x$ac_ct_AR" = x; then
7579    AR="false"
7580  else
7581    case $cross_compiling:$ac_tool_warned in
7582yes:)
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585ac_tool_warned=yes ;;
7586esac
7587    AR=$ac_ct_AR
7588  fi
7589fi
7590
7591: ${AR=ar}
7592: ${AR_FLAGS=cru}
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7605$as_echo_n "checking for archiver @FILE support... " >&6; }
7606if ${lt_cv_ar_at_file+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  lt_cv_ar_at_file=no
7610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611/* end confdefs.h.  */
7612
7613int
7614main ()
7615{
7616
7617  ;
7618  return 0;
7619}
7620_ACEOF
7621if ac_fn_c_try_compile "$LINENO"; then :
7622  echo conftest.$ac_objext > conftest.lst
7623      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7624      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7625  (eval $lt_ar_try) 2>&5
7626  ac_status=$?
7627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628  test $ac_status = 0; }
7629      if test 0 -eq "$ac_status"; then
7630	# Ensure the archiver fails upon bogus file names.
7631	rm -f conftest.$ac_objext libconftest.a
7632	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7633  (eval $lt_ar_try) 2>&5
7634  ac_status=$?
7635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636  test $ac_status = 0; }
7637	if test 0 -ne "$ac_status"; then
7638          lt_cv_ar_at_file=@
7639        fi
7640      fi
7641      rm -f conftest.* libconftest.a
7642
7643fi
7644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645
7646fi
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7648$as_echo "$lt_cv_ar_at_file" >&6; }
7649
7650if test no = "$lt_cv_ar_at_file"; then
7651  archiver_list_spec=
7652else
7653  archiver_list_spec=$lt_cv_ar_at_file
7654fi
7655
7656
7657
7658
7659
7660
7661
7662if test -n "$ac_tool_prefix"; then
7663  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7664set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  if test -n "$STRIP"; then
7671  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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
7690STRIP=$ac_cv_prog_STRIP
7691if test -n "$STRIP"; then
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7693$as_echo "$STRIP" >&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_STRIP"; then
7702  ac_ct_STRIP=$STRIP
7703  # Extract the first word of "strip", so it can be a program name with args.
7704set dummy strip; 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_STRIP+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  if test -n "$ac_ct_STRIP"; then
7711  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP=$ac_cv_prog_ac_ct_STRIP
7731if test -n "$ac_ct_STRIP"; then
7732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7733$as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
7740    STRIP=":"
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    STRIP=$ac_ct_STRIP
7749  fi
7750else
7751  STRIP="$ac_cv_prog_STRIP"
7752fi
7753
7754test -z "$STRIP" && STRIP=:
7755
7756
7757
7758
7759
7760
7761if test -n "$ac_tool_prefix"; then
7762  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7763set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765$as_echo_n "checking for $ac_word... " >&6; }
7766if ${ac_cv_prog_RANLIB+:} false; then :
7767  $as_echo_n "(cached) " >&6
7768else
7769  if test -n "$RANLIB"; then
7770  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775  IFS=$as_save_IFS
7776  test -z "$as_dir" && as_dir=.
7777    for ac_exec_ext in '' $ac_executable_extensions; do
7778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781    break 2
7782  fi
7783done
7784  done
7785IFS=$as_save_IFS
7786
7787fi
7788fi
7789RANLIB=$ac_cv_prog_RANLIB
7790if test -n "$RANLIB"; then
7791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7792$as_echo "$RANLIB" >&6; }
7793else
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795$as_echo "no" >&6; }
7796fi
7797
7798
7799fi
7800if test -z "$ac_cv_prog_RANLIB"; then
7801  ac_ct_RANLIB=$RANLIB
7802  # Extract the first word of "ranlib", so it can be a program name with args.
7803set dummy ranlib; ac_word=$2
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805$as_echo_n "checking for $ac_word... " >&6; }
7806if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  if test -n "$ac_ct_RANLIB"; then
7810  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7811else
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815  IFS=$as_save_IFS
7816  test -z "$as_dir" && as_dir=.
7817    for ac_exec_ext in '' $ac_executable_extensions; do
7818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819    ac_cv_prog_ac_ct_RANLIB="ranlib"
7820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821    break 2
7822  fi
7823done
7824  done
7825IFS=$as_save_IFS
7826
7827fi
7828fi
7829ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7830if test -n "$ac_ct_RANLIB"; then
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7832$as_echo "$ac_ct_RANLIB" >&6; }
7833else
7834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835$as_echo "no" >&6; }
7836fi
7837
7838  if test "x$ac_ct_RANLIB" = x; then
7839    RANLIB=":"
7840  else
7841    case $cross_compiling:$ac_tool_warned in
7842yes:)
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845ac_tool_warned=yes ;;
7846esac
7847    RANLIB=$ac_ct_RANLIB
7848  fi
7849else
7850  RANLIB="$ac_cv_prog_RANLIB"
7851fi
7852
7853test -z "$RANLIB" && RANLIB=:
7854
7855
7856
7857
7858
7859
7860# Determine commands to create old-style static archives.
7861old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7862old_postinstall_cmds='chmod 644 $oldlib'
7863old_postuninstall_cmds=
7864
7865if test -n "$RANLIB"; then
7866  case $host_os in
7867  bitrig* | openbsd*)
7868    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7869    ;;
7870  *)
7871    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7872    ;;
7873  esac
7874  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7875fi
7876
7877case $host_os in
7878  darwin*)
7879    lock_old_archive_extraction=yes ;;
7880  *)
7881    lock_old_archive_extraction=no ;;
7882esac
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922# If no C compiler was specified, use CC.
7923LTCC=${LTCC-"$CC"}
7924
7925# If no C compiler flags were specified, use CFLAGS.
7926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7927
7928# Allow CC to be a program name with arguments.
7929compiler=$CC
7930
7931
7932# Check for command to grab the raw symbol name followed by C symbol from nm.
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7934$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7935if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938
7939# These are sane defaults that work on at least a few old systems.
7940# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7941
7942# Character class describing NM global symbol codes.
7943symcode='[BCDEGRST]'
7944
7945# Regexp to match symbols that can be accessed directly from C.
7946sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7947
7948# Define system-specific variables.
7949case $host_os in
7950aix*)
7951  symcode='[BCDT]'
7952  ;;
7953cygwin* | mingw* | pw32* | cegcc*)
7954  symcode='[ABCDGISTW]'
7955  ;;
7956hpux*)
7957  if test ia64 = "$host_cpu"; then
7958    symcode='[ABCDEGRST]'
7959  fi
7960  ;;
7961irix* | nonstopux*)
7962  symcode='[BCDEGRST]'
7963  ;;
7964osf*)
7965  symcode='[BCDEGQRST]'
7966  ;;
7967solaris*)
7968  symcode='[BDRT]'
7969  ;;
7970sco3.2v5*)
7971  symcode='[DT]'
7972  ;;
7973sysv4.2uw2*)
7974  symcode='[DT]'
7975  ;;
7976sysv5* | sco5v6* | unixware* | OpenUNIX*)
7977  symcode='[ABDT]'
7978  ;;
7979sysv4)
7980  symcode='[DFNSTU]'
7981  ;;
7982esac
7983
7984# If we're using GNU nm, then use its standard symbol codes.
7985case `$NM -V 2>&1` in
7986*GNU* | *'with BFD'*)
7987  symcode='[ABCDGIRSTW]' ;;
7988esac
7989
7990if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7991  # Gets list of data symbols to import.
7992  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7993  # Adjust the below global symbol transforms to fixup imported variables.
7994  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7995  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7996  lt_c_name_lib_hook="\
7997  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7998  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7999else
8000  # Disable hooks by default.
8001  lt_cv_sys_global_symbol_to_import=
8002  lt_cdecl_hook=
8003  lt_c_name_hook=
8004  lt_c_name_lib_hook=
8005fi
8006
8007# Transform an extracted symbol line into a proper C declaration.
8008# Some systems (esp. on ia64) link data and code symbols differently,
8009# so use this general approach.
8010lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8011$lt_cdecl_hook\
8012" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8013" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8014
8015# Transform an extracted symbol line into symbol name and symbol address
8016lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8017$lt_c_name_hook\
8018" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8019" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8020
8021# Transform an extracted symbol line into symbol name with lib prefix and
8022# symbol address.
8023lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8024$lt_c_name_lib_hook\
8025" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8026" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8027" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8028
8029# Handle CRLF in mingw tool chain
8030opt_cr=
8031case $build_os in
8032mingw*)
8033  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8034  ;;
8035esac
8036
8037# Try without a prefix underscore, then with it.
8038for ac_symprfx in "" "_"; do
8039
8040  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8041  symxfrm="\\1 $ac_symprfx\\2 \\2"
8042
8043  # Write the raw and C identifiers.
8044  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8045    # Fake it for dumpbin and say T for any non-static function,
8046    # D for any global variable and I for any imported variable.
8047    # Also find C++ and __fastcall symbols from MSVC++,
8048    # which start with @ or ?.
8049    lt_cv_sys_global_symbol_pipe="$AWK '"\
8050"     {last_section=section; section=\$ 3};"\
8051"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8052"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8053"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8054"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8055"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8056"     \$ 0!~/External *\|/{next};"\
8057"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8058"     {if(hide[section]) next};"\
8059"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8060"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8061"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8062"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8063"     ' prfx=^$ac_symprfx"
8064  else
8065    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8066  fi
8067  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8068
8069  # Check to see that the pipe works correctly.
8070  pipe_works=no
8071
8072  rm -f conftest*
8073  cat > conftest.$ac_ext <<_LT_EOF
8074#ifdef __cplusplus
8075extern "C" {
8076#endif
8077char nm_test_var;
8078void nm_test_func(void);
8079void nm_test_func(void){}
8080#ifdef __cplusplus
8081}
8082#endif
8083int main(){nm_test_var='a';nm_test_func();return(0);}
8084_LT_EOF
8085
8086  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8087  (eval $ac_compile) 2>&5
8088  ac_status=$?
8089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8090  test $ac_status = 0; }; then
8091    # Now try to grab the symbols.
8092    nlist=conftest.nm
8093    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8094  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8095  ac_status=$?
8096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097  test $ac_status = 0; } && test -s "$nlist"; then
8098      # Try sorting and uniquifying the output.
8099      if sort "$nlist" | uniq > "$nlist"T; then
8100	mv -f "$nlist"T "$nlist"
8101      else
8102	rm -f "$nlist"T
8103      fi
8104
8105      # Make sure that we snagged all the symbols we need.
8106      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8107	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8108	  cat <<_LT_EOF > conftest.$ac_ext
8109/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8110#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8111/* DATA imports from DLLs on WIN32 can't be const, because runtime
8112   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8113# define LT_DLSYM_CONST
8114#elif defined __osf__
8115/* This system does not cope well with relocations in const data.  */
8116# define LT_DLSYM_CONST
8117#else
8118# define LT_DLSYM_CONST const
8119#endif
8120
8121#ifdef __cplusplus
8122extern "C" {
8123#endif
8124
8125_LT_EOF
8126	  # Now generate the symbol file.
8127	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8128
8129	  cat <<_LT_EOF >> conftest.$ac_ext
8130
8131/* The mapping between symbol names and symbols.  */
8132LT_DLSYM_CONST struct {
8133  const char *name;
8134  void       *address;
8135}
8136lt__PROGRAM__LTX_preloaded_symbols[] =
8137{
8138  { "@PROGRAM@", (void *) 0 },
8139_LT_EOF
8140	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8141	  cat <<\_LT_EOF >> conftest.$ac_ext
8142  {0, (void *) 0}
8143};
8144
8145/* This works around a problem in FreeBSD linker */
8146#ifdef FREEBSD_WORKAROUND
8147static const void *lt_preloaded_setup() {
8148  return lt__PROGRAM__LTX_preloaded_symbols;
8149}
8150#endif
8151
8152#ifdef __cplusplus
8153}
8154#endif
8155_LT_EOF
8156	  # Now try linking the two files.
8157	  mv conftest.$ac_objext conftstm.$ac_objext
8158	  lt_globsym_save_LIBS=$LIBS
8159	  lt_globsym_save_CFLAGS=$CFLAGS
8160	  LIBS=conftstm.$ac_objext
8161	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8162	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8163  (eval $ac_link) 2>&5
8164  ac_status=$?
8165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8166  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8167	    pipe_works=yes
8168	  fi
8169	  LIBS=$lt_globsym_save_LIBS
8170	  CFLAGS=$lt_globsym_save_CFLAGS
8171	else
8172	  echo "cannot find nm_test_func in $nlist" >&5
8173	fi
8174      else
8175	echo "cannot find nm_test_var in $nlist" >&5
8176      fi
8177    else
8178      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8179    fi
8180  else
8181    echo "$progname: failed program was:" >&5
8182    cat conftest.$ac_ext >&5
8183  fi
8184  rm -rf conftest* conftst*
8185
8186  # Do not use the global_symbol_pipe unless it works.
8187  if test yes = "$pipe_works"; then
8188    break
8189  else
8190    lt_cv_sys_global_symbol_pipe=
8191  fi
8192done
8193
8194fi
8195
8196if test -z "$lt_cv_sys_global_symbol_pipe"; then
8197  lt_cv_sys_global_symbol_to_cdecl=
8198fi
8199if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8201$as_echo "failed" >&6; }
8202else
8203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8204$as_echo "ok" >&6; }
8205fi
8206
8207# Response file support.
8208if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8209  nm_file_list_spec='@'
8210elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8211  nm_file_list_spec='@'
8212fi
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8251$as_echo_n "checking for sysroot... " >&6; }
8252
8253# Check whether --with-sysroot was given.
8254if test "${with_sysroot+set}" = set; then :
8255  withval=$with_sysroot;
8256else
8257  with_sysroot=no
8258fi
8259
8260
8261lt_sysroot=
8262case $with_sysroot in #(
8263 yes)
8264   if test yes = "$GCC"; then
8265     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8266   fi
8267   ;; #(
8268 /*)
8269   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8270   ;; #(
8271 no|'')
8272   ;; #(
8273 *)
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8275$as_echo "$with_sysroot" >&6; }
8276   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8277   ;;
8278esac
8279
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8281$as_echo "${lt_sysroot:-no}" >&6; }
8282
8283
8284
8285
8286
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8288$as_echo_n "checking for a working dd... " >&6; }
8289if ${ac_cv_path_lt_DD+:} false; then :
8290  $as_echo_n "(cached) " >&6
8291else
8292  printf 0123456789abcdef0123456789abcdef >conftest.i
8293cat conftest.i conftest.i >conftest2.i
8294: ${lt_DD:=$DD}
8295if test -z "$lt_DD"; then
8296  ac_path_lt_DD_found=false
8297  # Loop through the user's path and test for each of PROGNAME-LIST
8298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301  IFS=$as_save_IFS
8302  test -z "$as_dir" && as_dir=.
8303    for ac_prog in dd; do
8304    for ac_exec_ext in '' $ac_executable_extensions; do
8305      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8306      as_fn_executable_p "$ac_path_lt_DD" || continue
8307if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8308  cmp -s conftest.i conftest.out \
8309  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8310fi
8311      $ac_path_lt_DD_found && break 3
8312    done
8313  done
8314  done
8315IFS=$as_save_IFS
8316  if test -z "$ac_cv_path_lt_DD"; then
8317    :
8318  fi
8319else
8320  ac_cv_path_lt_DD=$lt_DD
8321fi
8322
8323rm -f conftest.i conftest2.i conftest.out
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8326$as_echo "$ac_cv_path_lt_DD" >&6; }
8327
8328
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8330$as_echo_n "checking how to truncate binary pipes... " >&6; }
8331if ${lt_cv_truncate_bin+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  printf 0123456789abcdef0123456789abcdef >conftest.i
8335cat conftest.i conftest.i >conftest2.i
8336lt_cv_truncate_bin=
8337if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8338  cmp -s conftest.i conftest.out \
8339  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8340fi
8341rm -f conftest.i conftest2.i conftest.out
8342test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8343fi
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8345$as_echo "$lt_cv_truncate_bin" >&6; }
8346
8347
8348
8349
8350
8351
8352
8353# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8354func_cc_basename ()
8355{
8356    for cc_temp in $*""; do
8357      case $cc_temp in
8358        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8359        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8360        \-*) ;;
8361        *) break;;
8362      esac
8363    done
8364    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8365}
8366
8367# Check whether --enable-libtool-lock was given.
8368if test "${enable_libtool_lock+set}" = set; then :
8369  enableval=$enable_libtool_lock;
8370fi
8371
8372test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8373
8374# Some flags need to be propagated to the compiler or linker for good
8375# libtool support.
8376case $host in
8377ia64-*-hpux*)
8378  # Find out what ABI is being produced by ac_compile, and set mode
8379  # options accordingly.
8380  echo 'int i;' > conftest.$ac_ext
8381  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8382  (eval $ac_compile) 2>&5
8383  ac_status=$?
8384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8385  test $ac_status = 0; }; then
8386    case `/usr/bin/file conftest.$ac_objext` in
8387      *ELF-32*)
8388	HPUX_IA64_MODE=32
8389	;;
8390      *ELF-64*)
8391	HPUX_IA64_MODE=64
8392	;;
8393    esac
8394  fi
8395  rm -rf conftest*
8396  ;;
8397*-*-irix6*)
8398  # Find out what ABI is being produced by ac_compile, and set linker
8399  # options accordingly.
8400  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8401  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8402  (eval $ac_compile) 2>&5
8403  ac_status=$?
8404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8405  test $ac_status = 0; }; then
8406    if test yes = "$lt_cv_prog_gnu_ld"; then
8407      case `/usr/bin/file conftest.$ac_objext` in
8408	*32-bit*)
8409	  LD="${LD-ld} -melf32bsmip"
8410	  ;;
8411	*N32*)
8412	  LD="${LD-ld} -melf32bmipn32"
8413	  ;;
8414	*64-bit*)
8415	  LD="${LD-ld} -melf64bmip"
8416	;;
8417      esac
8418    else
8419      case `/usr/bin/file conftest.$ac_objext` in
8420	*32-bit*)
8421	  LD="${LD-ld} -32"
8422	  ;;
8423	*N32*)
8424	  LD="${LD-ld} -n32"
8425	  ;;
8426	*64-bit*)
8427	  LD="${LD-ld} -64"
8428	  ;;
8429      esac
8430    fi
8431  fi
8432  rm -rf conftest*
8433  ;;
8434
8435mips64*-*linux*)
8436  # Find out what ABI is being produced by ac_compile, and set linker
8437  # options accordingly.
8438  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8439  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8440  (eval $ac_compile) 2>&5
8441  ac_status=$?
8442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8443  test $ac_status = 0; }; then
8444    emul=elf
8445    case `/usr/bin/file conftest.$ac_objext` in
8446      *32-bit*)
8447	emul="${emul}32"
8448	;;
8449      *64-bit*)
8450	emul="${emul}64"
8451	;;
8452    esac
8453    case `/usr/bin/file conftest.$ac_objext` in
8454      *MSB*)
8455	emul="${emul}btsmip"
8456	;;
8457      *LSB*)
8458	emul="${emul}ltsmip"
8459	;;
8460    esac
8461    case `/usr/bin/file conftest.$ac_objext` in
8462      *N32*)
8463	emul="${emul}n32"
8464	;;
8465    esac
8466    LD="${LD-ld} -m $emul"
8467  fi
8468  rm -rf conftest*
8469  ;;
8470
8471x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8472s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8473  # Find out what ABI is being produced by ac_compile, and set linker
8474  # options accordingly.  Note that the listed cases only cover the
8475  # situations where additional linker options are needed (such as when
8476  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8477  # vice versa); the common cases where no linker options are needed do
8478  # not appear in the list.
8479  echo 'int i;' > conftest.$ac_ext
8480  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8481  (eval $ac_compile) 2>&5
8482  ac_status=$?
8483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8484  test $ac_status = 0; }; then
8485    case `/usr/bin/file conftest.o` in
8486      *32-bit*)
8487	case $host in
8488	  x86_64-*kfreebsd*-gnu)
8489	    LD="${LD-ld} -m elf_i386_fbsd"
8490	    ;;
8491	  x86_64-*linux*)
8492	    case `/usr/bin/file conftest.o` in
8493	      *x86-64*)
8494		LD="${LD-ld} -m elf32_x86_64"
8495		;;
8496	      *)
8497		LD="${LD-ld} -m elf_i386"
8498		;;
8499	    esac
8500	    ;;
8501	  powerpc64le-*linux*)
8502	    LD="${LD-ld} -m elf32lppclinux"
8503	    ;;
8504	  powerpc64-*linux*)
8505	    LD="${LD-ld} -m elf32ppclinux"
8506	    ;;
8507	  s390x-*linux*)
8508	    LD="${LD-ld} -m elf_s390"
8509	    ;;
8510	  sparc64-*linux*)
8511	    LD="${LD-ld} -m elf32_sparc"
8512	    ;;
8513	esac
8514	;;
8515      *64-bit*)
8516	case $host in
8517	  x86_64-*kfreebsd*-gnu)
8518	    LD="${LD-ld} -m elf_x86_64_fbsd"
8519	    ;;
8520	  x86_64-*linux*)
8521	    LD="${LD-ld} -m elf_x86_64"
8522	    ;;
8523	  powerpcle-*linux*)
8524	    LD="${LD-ld} -m elf64lppc"
8525	    ;;
8526	  powerpc-*linux*)
8527	    LD="${LD-ld} -m elf64ppc"
8528	    ;;
8529	  s390*-*linux*|s390*-*tpf*)
8530	    LD="${LD-ld} -m elf64_s390"
8531	    ;;
8532	  sparc*-*linux*)
8533	    LD="${LD-ld} -m elf64_sparc"
8534	    ;;
8535	esac
8536	;;
8537    esac
8538  fi
8539  rm -rf conftest*
8540  ;;
8541
8542*-*-sco3.2v5*)
8543  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8544  SAVE_CFLAGS=$CFLAGS
8545  CFLAGS="$CFLAGS -belf"
8546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8547$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8548if ${lt_cv_cc_needs_belf+:} false; then :
8549  $as_echo_n "(cached) " >&6
8550else
8551  ac_ext=c
8552ac_cpp='$CPP $CPPFLAGS'
8553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555ac_compiler_gnu=$ac_cv_c_compiler_gnu
8556
8557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559
8560int
8561main ()
8562{
8563
8564  ;
8565  return 0;
8566}
8567_ACEOF
8568if ac_fn_c_try_link "$LINENO"; then :
8569  lt_cv_cc_needs_belf=yes
8570else
8571  lt_cv_cc_needs_belf=no
8572fi
8573rm -f core conftest.err conftest.$ac_objext \
8574    conftest$ac_exeext conftest.$ac_ext
8575     ac_ext=c
8576ac_cpp='$CPP $CPPFLAGS'
8577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581fi
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8583$as_echo "$lt_cv_cc_needs_belf" >&6; }
8584  if test yes != "$lt_cv_cc_needs_belf"; then
8585    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8586    CFLAGS=$SAVE_CFLAGS
8587  fi
8588  ;;
8589*-*solaris*)
8590  # Find out what ABI is being produced by ac_compile, and set linker
8591  # options accordingly.
8592  echo 'int i;' > conftest.$ac_ext
8593  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8594  (eval $ac_compile) 2>&5
8595  ac_status=$?
8596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8597  test $ac_status = 0; }; then
8598    case `/usr/bin/file conftest.o` in
8599    *64-bit*)
8600      case $lt_cv_prog_gnu_ld in
8601      yes*)
8602        case $host in
8603        i?86-*-solaris*|x86_64-*-solaris*)
8604          LD="${LD-ld} -m elf_x86_64"
8605          ;;
8606        sparc*-*-solaris*)
8607          LD="${LD-ld} -m elf64_sparc"
8608          ;;
8609        esac
8610        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8611        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8612          LD=${LD-ld}_sol2
8613        fi
8614        ;;
8615      *)
8616	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8617	  LD="${LD-ld} -64"
8618	fi
8619	;;
8620      esac
8621      ;;
8622    esac
8623  fi
8624  rm -rf conftest*
8625  ;;
8626esac
8627
8628need_locks=$enable_libtool_lock
8629
8630if test -n "$ac_tool_prefix"; then
8631  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8632set dummy ${ac_tool_prefix}mt; ac_word=$2
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634$as_echo_n "checking for $ac_word... " >&6; }
8635if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  if test -n "$MANIFEST_TOOL"; then
8639  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8640else
8641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642for as_dir in $PATH
8643do
8644  IFS=$as_save_IFS
8645  test -z "$as_dir" && as_dir=.
8646    for ac_exec_ext in '' $ac_executable_extensions; do
8647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8648    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650    break 2
8651  fi
8652done
8653  done
8654IFS=$as_save_IFS
8655
8656fi
8657fi
8658MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8659if test -n "$MANIFEST_TOOL"; then
8660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8661$as_echo "$MANIFEST_TOOL" >&6; }
8662else
8663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664$as_echo "no" >&6; }
8665fi
8666
8667
8668fi
8669if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8670  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8671  # Extract the first word of "mt", so it can be a program name with args.
8672set dummy mt; ac_word=$2
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674$as_echo_n "checking for $ac_word... " >&6; }
8675if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  if test -n "$ac_ct_MANIFEST_TOOL"; then
8679  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8680else
8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682for as_dir in $PATH
8683do
8684  IFS=$as_save_IFS
8685  test -z "$as_dir" && as_dir=.
8686    for ac_exec_ext in '' $ac_executable_extensions; do
8687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690    break 2
8691  fi
8692done
8693  done
8694IFS=$as_save_IFS
8695
8696fi
8697fi
8698ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8699if test -n "$ac_ct_MANIFEST_TOOL"; then
8700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8701$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8702else
8703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704$as_echo "no" >&6; }
8705fi
8706
8707  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8708    MANIFEST_TOOL=":"
8709  else
8710    case $cross_compiling:$ac_tool_warned in
8711yes:)
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8714ac_tool_warned=yes ;;
8715esac
8716    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8717  fi
8718else
8719  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8720fi
8721
8722test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8724$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8725if ${lt_cv_path_mainfest_tool+:} false; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  lt_cv_path_mainfest_tool=no
8729  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8730  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8731  cat conftest.err >&5
8732  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8733    lt_cv_path_mainfest_tool=yes
8734  fi
8735  rm -f conftest*
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8738$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8739if test yes != "$lt_cv_path_mainfest_tool"; then
8740  MANIFEST_TOOL=:
8741fi
8742
8743
8744
8745
8746
8747
8748  case $host_os in
8749    rhapsody* | darwin*)
8750    if test -n "$ac_tool_prefix"; then
8751  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8752set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754$as_echo_n "checking for $ac_word... " >&6; }
8755if ${ac_cv_prog_DSYMUTIL+:} false; then :
8756  $as_echo_n "(cached) " >&6
8757else
8758  if test -n "$DSYMUTIL"; then
8759  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8760else
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764  IFS=$as_save_IFS
8765  test -z "$as_dir" && as_dir=.
8766    for ac_exec_ext in '' $ac_executable_extensions; do
8767  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770    break 2
8771  fi
8772done
8773  done
8774IFS=$as_save_IFS
8775
8776fi
8777fi
8778DSYMUTIL=$ac_cv_prog_DSYMUTIL
8779if test -n "$DSYMUTIL"; then
8780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8781$as_echo "$DSYMUTIL" >&6; }
8782else
8783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784$as_echo "no" >&6; }
8785fi
8786
8787
8788fi
8789if test -z "$ac_cv_prog_DSYMUTIL"; then
8790  ac_ct_DSYMUTIL=$DSYMUTIL
8791  # Extract the first word of "dsymutil", so it can be a program name with args.
8792set dummy dsymutil; ac_word=$2
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794$as_echo_n "checking for $ac_word... " >&6; }
8795if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8796  $as_echo_n "(cached) " >&6
8797else
8798  if test -n "$ac_ct_DSYMUTIL"; then
8799  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8800else
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804  IFS=$as_save_IFS
8805  test -z "$as_dir" && as_dir=.
8806    for ac_exec_ext in '' $ac_executable_extensions; do
8807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810    break 2
8811  fi
8812done
8813  done
8814IFS=$as_save_IFS
8815
8816fi
8817fi
8818ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8819if test -n "$ac_ct_DSYMUTIL"; then
8820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8821$as_echo "$ac_ct_DSYMUTIL" >&6; }
8822else
8823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824$as_echo "no" >&6; }
8825fi
8826
8827  if test "x$ac_ct_DSYMUTIL" = x; then
8828    DSYMUTIL=":"
8829  else
8830    case $cross_compiling:$ac_tool_warned in
8831yes:)
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8834ac_tool_warned=yes ;;
8835esac
8836    DSYMUTIL=$ac_ct_DSYMUTIL
8837  fi
8838else
8839  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8840fi
8841
8842    if test -n "$ac_tool_prefix"; then
8843  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8844set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8846$as_echo_n "checking for $ac_word... " >&6; }
8847if ${ac_cv_prog_NMEDIT+:} false; then :
8848  $as_echo_n "(cached) " >&6
8849else
8850  if test -n "$NMEDIT"; then
8851  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8852else
8853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854for as_dir in $PATH
8855do
8856  IFS=$as_save_IFS
8857  test -z "$as_dir" && as_dir=.
8858    for ac_exec_ext in '' $ac_executable_extensions; do
8859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8862    break 2
8863  fi
8864done
8865  done
8866IFS=$as_save_IFS
8867
8868fi
8869fi
8870NMEDIT=$ac_cv_prog_NMEDIT
8871if test -n "$NMEDIT"; then
8872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8873$as_echo "$NMEDIT" >&6; }
8874else
8875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876$as_echo "no" >&6; }
8877fi
8878
8879
8880fi
8881if test -z "$ac_cv_prog_NMEDIT"; then
8882  ac_ct_NMEDIT=$NMEDIT
8883  # Extract the first word of "nmedit", so it can be a program name with args.
8884set dummy nmedit; ac_word=$2
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
8887if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8888  $as_echo_n "(cached) " >&6
8889else
8890  if test -n "$ac_ct_NMEDIT"; then
8891  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8892else
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896  IFS=$as_save_IFS
8897  test -z "$as_dir" && as_dir=.
8898    for ac_exec_ext in '' $ac_executable_extensions; do
8899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8900    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902    break 2
8903  fi
8904done
8905  done
8906IFS=$as_save_IFS
8907
8908fi
8909fi
8910ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8911if test -n "$ac_ct_NMEDIT"; then
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8913$as_echo "$ac_ct_NMEDIT" >&6; }
8914else
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
8917fi
8918
8919  if test "x$ac_ct_NMEDIT" = x; then
8920    NMEDIT=":"
8921  else
8922    case $cross_compiling:$ac_tool_warned in
8923yes:)
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8926ac_tool_warned=yes ;;
8927esac
8928    NMEDIT=$ac_ct_NMEDIT
8929  fi
8930else
8931  NMEDIT="$ac_cv_prog_NMEDIT"
8932fi
8933
8934    if test -n "$ac_tool_prefix"; then
8935  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8936set dummy ${ac_tool_prefix}lipo; ac_word=$2
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938$as_echo_n "checking for $ac_word... " >&6; }
8939if ${ac_cv_prog_LIPO+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  if test -n "$LIPO"; then
8943  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8944else
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948  IFS=$as_save_IFS
8949  test -z "$as_dir" && as_dir=.
8950    for ac_exec_ext in '' $ac_executable_extensions; do
8951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954    break 2
8955  fi
8956done
8957  done
8958IFS=$as_save_IFS
8959
8960fi
8961fi
8962LIPO=$ac_cv_prog_LIPO
8963if test -n "$LIPO"; then
8964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8965$as_echo "$LIPO" >&6; }
8966else
8967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968$as_echo "no" >&6; }
8969fi
8970
8971
8972fi
8973if test -z "$ac_cv_prog_LIPO"; then
8974  ac_ct_LIPO=$LIPO
8975  # Extract the first word of "lipo", so it can be a program name with args.
8976set dummy lipo; ac_word=$2
8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978$as_echo_n "checking for $ac_word... " >&6; }
8979if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  if test -n "$ac_ct_LIPO"; then
8983  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8984else
8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988  IFS=$as_save_IFS
8989  test -z "$as_dir" && as_dir=.
8990    for ac_exec_ext in '' $ac_executable_extensions; do
8991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992    ac_cv_prog_ac_ct_LIPO="lipo"
8993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994    break 2
8995  fi
8996done
8997  done
8998IFS=$as_save_IFS
8999
9000fi
9001fi
9002ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9003if test -n "$ac_ct_LIPO"; then
9004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9005$as_echo "$ac_ct_LIPO" >&6; }
9006else
9007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008$as_echo "no" >&6; }
9009fi
9010
9011  if test "x$ac_ct_LIPO" = x; then
9012    LIPO=":"
9013  else
9014    case $cross_compiling:$ac_tool_warned in
9015yes:)
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9018ac_tool_warned=yes ;;
9019esac
9020    LIPO=$ac_ct_LIPO
9021  fi
9022else
9023  LIPO="$ac_cv_prog_LIPO"
9024fi
9025
9026    if test -n "$ac_tool_prefix"; then
9027  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9028set dummy ${ac_tool_prefix}otool; ac_word=$2
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030$as_echo_n "checking for $ac_word... " >&6; }
9031if ${ac_cv_prog_OTOOL+:} false; then :
9032  $as_echo_n "(cached) " >&6
9033else
9034  if test -n "$OTOOL"; then
9035  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9036else
9037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038for as_dir in $PATH
9039do
9040  IFS=$as_save_IFS
9041  test -z "$as_dir" && as_dir=.
9042    for ac_exec_ext in '' $ac_executable_extensions; do
9043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9044    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046    break 2
9047  fi
9048done
9049  done
9050IFS=$as_save_IFS
9051
9052fi
9053fi
9054OTOOL=$ac_cv_prog_OTOOL
9055if test -n "$OTOOL"; then
9056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9057$as_echo "$OTOOL" >&6; }
9058else
9059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060$as_echo "no" >&6; }
9061fi
9062
9063
9064fi
9065if test -z "$ac_cv_prog_OTOOL"; then
9066  ac_ct_OTOOL=$OTOOL
9067  # Extract the first word of "otool", so it can be a program name with args.
9068set dummy otool; ac_word=$2
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070$as_echo_n "checking for $ac_word... " >&6; }
9071if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9072  $as_echo_n "(cached) " >&6
9073else
9074  if test -n "$ac_ct_OTOOL"; then
9075  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9076else
9077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078for as_dir in $PATH
9079do
9080  IFS=$as_save_IFS
9081  test -z "$as_dir" && as_dir=.
9082    for ac_exec_ext in '' $ac_executable_extensions; do
9083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084    ac_cv_prog_ac_ct_OTOOL="otool"
9085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086    break 2
9087  fi
9088done
9089  done
9090IFS=$as_save_IFS
9091
9092fi
9093fi
9094ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9095if test -n "$ac_ct_OTOOL"; then
9096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9097$as_echo "$ac_ct_OTOOL" >&6; }
9098else
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100$as_echo "no" >&6; }
9101fi
9102
9103  if test "x$ac_ct_OTOOL" = x; then
9104    OTOOL=":"
9105  else
9106    case $cross_compiling:$ac_tool_warned in
9107yes:)
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9110ac_tool_warned=yes ;;
9111esac
9112    OTOOL=$ac_ct_OTOOL
9113  fi
9114else
9115  OTOOL="$ac_cv_prog_OTOOL"
9116fi
9117
9118    if test -n "$ac_tool_prefix"; then
9119  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9120set dummy ${ac_tool_prefix}otool64; ac_word=$2
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122$as_echo_n "checking for $ac_word... " >&6; }
9123if ${ac_cv_prog_OTOOL64+:} false; then :
9124  $as_echo_n "(cached) " >&6
9125else
9126  if test -n "$OTOOL64"; then
9127  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9128else
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132  IFS=$as_save_IFS
9133  test -z "$as_dir" && as_dir=.
9134    for ac_exec_ext in '' $ac_executable_extensions; do
9135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138    break 2
9139  fi
9140done
9141  done
9142IFS=$as_save_IFS
9143
9144fi
9145fi
9146OTOOL64=$ac_cv_prog_OTOOL64
9147if test -n "$OTOOL64"; then
9148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9149$as_echo "$OTOOL64" >&6; }
9150else
9151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152$as_echo "no" >&6; }
9153fi
9154
9155
9156fi
9157if test -z "$ac_cv_prog_OTOOL64"; then
9158  ac_ct_OTOOL64=$OTOOL64
9159  # Extract the first word of "otool64", so it can be a program name with args.
9160set dummy otool64; ac_word=$2
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162$as_echo_n "checking for $ac_word... " >&6; }
9163if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9164  $as_echo_n "(cached) " >&6
9165else
9166  if test -n "$ac_ct_OTOOL64"; then
9167  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9168else
9169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $PATH
9171do
9172  IFS=$as_save_IFS
9173  test -z "$as_dir" && as_dir=.
9174    for ac_exec_ext in '' $ac_executable_extensions; do
9175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176    ac_cv_prog_ac_ct_OTOOL64="otool64"
9177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178    break 2
9179  fi
9180done
9181  done
9182IFS=$as_save_IFS
9183
9184fi
9185fi
9186ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9187if test -n "$ac_ct_OTOOL64"; then
9188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9189$as_echo "$ac_ct_OTOOL64" >&6; }
9190else
9191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192$as_echo "no" >&6; }
9193fi
9194
9195  if test "x$ac_ct_OTOOL64" = x; then
9196    OTOOL64=":"
9197  else
9198    case $cross_compiling:$ac_tool_warned in
9199yes:)
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9202ac_tool_warned=yes ;;
9203esac
9204    OTOOL64=$ac_ct_OTOOL64
9205  fi
9206else
9207  OTOOL64="$ac_cv_prog_OTOOL64"
9208fi
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9237$as_echo_n "checking for -single_module linker flag... " >&6; }
9238if ${lt_cv_apple_cc_single_mod+:} false; then :
9239  $as_echo_n "(cached) " >&6
9240else
9241  lt_cv_apple_cc_single_mod=no
9242      if test -z "$LT_MULTI_MODULE"; then
9243	# By default we will add the -single_module flag. You can override
9244	# by either setting the environment variable LT_MULTI_MODULE
9245	# non-empty at configure time, or by adding -multi_module to the
9246	# link flags.
9247	rm -rf libconftest.dylib*
9248	echo "int foo(void){return 1;}" > conftest.c
9249	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9250-dynamiclib -Wl,-single_module conftest.c" >&5
9251	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9252	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9253        _lt_result=$?
9254	# If there is a non-empty error log, and "single_module"
9255	# appears in it, assume the flag caused a linker warning
9256        if test -s conftest.err && $GREP single_module conftest.err; then
9257	  cat conftest.err >&5
9258	# Otherwise, if the output was created with a 0 exit code from
9259	# the compiler, it worked.
9260	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9261	  lt_cv_apple_cc_single_mod=yes
9262	else
9263	  cat conftest.err >&5
9264	fi
9265	rm -rf libconftest.dylib*
9266	rm -f conftest.*
9267      fi
9268fi
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9270$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9271
9272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9273$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9274if ${lt_cv_ld_exported_symbols_list+:} false; then :
9275  $as_echo_n "(cached) " >&6
9276else
9277  lt_cv_ld_exported_symbols_list=no
9278      save_LDFLAGS=$LDFLAGS
9279      echo "_main" > conftest.sym
9280      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9281      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h.  */
9283
9284int
9285main ()
9286{
9287
9288  ;
9289  return 0;
9290}
9291_ACEOF
9292if ac_fn_c_try_link "$LINENO"; then :
9293  lt_cv_ld_exported_symbols_list=yes
9294else
9295  lt_cv_ld_exported_symbols_list=no
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298    conftest$ac_exeext conftest.$ac_ext
9299	LDFLAGS=$save_LDFLAGS
9300
9301fi
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9303$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9304
9305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9306$as_echo_n "checking for -force_load linker flag... " >&6; }
9307if ${lt_cv_ld_force_load+:} false; then :
9308  $as_echo_n "(cached) " >&6
9309else
9310  lt_cv_ld_force_load=no
9311      cat > conftest.c << _LT_EOF
9312int forced_loaded() { return 2;}
9313_LT_EOF
9314      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9315      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9316      echo "$AR cru libconftest.a conftest.o" >&5
9317      $AR cru libconftest.a conftest.o 2>&5
9318      echo "$RANLIB libconftest.a" >&5
9319      $RANLIB libconftest.a 2>&5
9320      cat > conftest.c << _LT_EOF
9321int main() { return 0;}
9322_LT_EOF
9323      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9324      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9325      _lt_result=$?
9326      if test -s conftest.err && $GREP force_load conftest.err; then
9327	cat conftest.err >&5
9328      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9329	lt_cv_ld_force_load=yes
9330      else
9331	cat conftest.err >&5
9332      fi
9333        rm -f conftest.err libconftest.a conftest conftest.c
9334        rm -rf conftest.dSYM
9335
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9338$as_echo "$lt_cv_ld_force_load" >&6; }
9339    case $host_os in
9340    rhapsody* | darwin1.[012])
9341      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9342    darwin1.*)
9343      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9344    darwin*) # darwin 5.x on
9345      # if running on 10.5 or later, the deployment target defaults
9346      # to the OS version, if on x86, and 10.4, the deployment
9347      # target defaults to 10.4. Don't you love it?
9348      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9349	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9350	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9351	10.[012][,.]*)
9352	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9353	10.*)
9354	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9355      esac
9356    ;;
9357  esac
9358    if test yes = "$lt_cv_apple_cc_single_mod"; then
9359      _lt_dar_single_mod='$single_module'
9360    fi
9361    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9362      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9363    else
9364      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9365    fi
9366    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9367      _lt_dsymutil='~$DSYMUTIL $lib || :'
9368    else
9369      _lt_dsymutil=
9370    fi
9371    ;;
9372  esac
9373
9374# func_munge_path_list VARIABLE PATH
9375# -----------------------------------
9376# VARIABLE is name of variable containing _space_ separated list of
9377# directories to be munged by the contents of PATH, which is string
9378# having a format:
9379# "DIR[:DIR]:"
9380#       string "DIR[ DIR]" will be prepended to VARIABLE
9381# ":DIR[:DIR]"
9382#       string "DIR[ DIR]" will be appended to VARIABLE
9383# "DIRP[:DIRP]::[DIRA:]DIRA"
9384#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9385#       "DIRA[ DIRA]" will be appended to VARIABLE
9386# "DIR[:DIR]"
9387#       VARIABLE will be replaced by "DIR[ DIR]"
9388func_munge_path_list ()
9389{
9390    case x$2 in
9391    x)
9392        ;;
9393    *:)
9394        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9395        ;;
9396    x:*)
9397        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9398        ;;
9399    *::*)
9400        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9401        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9402        ;;
9403    *)
9404        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9405        ;;
9406    esac
9407}
9408
9409for ac_header in dlfcn.h
9410do :
9411  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9412"
9413if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9414  cat >>confdefs.h <<_ACEOF
9415#define HAVE_DLFCN_H 1
9416_ACEOF
9417
9418fi
9419
9420done
9421
9422
9423
9424
9425func_stripname_cnf ()
9426{
9427  case $2 in
9428  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9429  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9430  esac
9431} # func_stripname_cnf
9432
9433
9434
9435
9436
9437# Set options
9438
9439
9440
9441        enable_dlopen=no
9442
9443
9444  enable_win32_dll=no
9445
9446
9447            # Check whether --enable-shared was given.
9448if test "${enable_shared+set}" = set; then :
9449  enableval=$enable_shared; p=${PACKAGE-default}
9450    case $enableval in
9451    yes) enable_shared=yes ;;
9452    no) enable_shared=no ;;
9453    *)
9454      enable_shared=no
9455      # Look at the argument we got.  We use all the common list separators.
9456      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9457      for pkg in $enableval; do
9458	IFS=$lt_save_ifs
9459	if test "X$pkg" = "X$p"; then
9460	  enable_shared=yes
9461	fi
9462      done
9463      IFS=$lt_save_ifs
9464      ;;
9465    esac
9466else
9467  enable_shared=yes
9468fi
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478  # Check whether --enable-static was given.
9479if test "${enable_static+set}" = set; then :
9480  enableval=$enable_static; p=${PACKAGE-default}
9481    case $enableval in
9482    yes) enable_static=yes ;;
9483    no) enable_static=no ;;
9484    *)
9485     enable_static=no
9486      # Look at the argument we got.  We use all the common list separators.
9487      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9488      for pkg in $enableval; do
9489	IFS=$lt_save_ifs
9490	if test "X$pkg" = "X$p"; then
9491	  enable_static=yes
9492	fi
9493      done
9494      IFS=$lt_save_ifs
9495      ;;
9496    esac
9497else
9498  enable_static=yes
9499fi
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510# Check whether --with-pic was given.
9511if test "${with_pic+set}" = set; then :
9512  withval=$with_pic; lt_p=${PACKAGE-default}
9513    case $withval in
9514    yes|no) pic_mode=$withval ;;
9515    *)
9516      pic_mode=default
9517      # Look at the argument we got.  We use all the common list separators.
9518      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9519      for lt_pkg in $withval; do
9520	IFS=$lt_save_ifs
9521	if test "X$lt_pkg" = "X$lt_p"; then
9522	  pic_mode=yes
9523	fi
9524      done
9525      IFS=$lt_save_ifs
9526      ;;
9527    esac
9528else
9529  pic_mode=default
9530fi
9531
9532
9533
9534
9535
9536
9537
9538
9539  # Check whether --enable-fast-install was given.
9540if test "${enable_fast_install+set}" = set; then :
9541  enableval=$enable_fast_install; p=${PACKAGE-default}
9542    case $enableval in
9543    yes) enable_fast_install=yes ;;
9544    no) enable_fast_install=no ;;
9545    *)
9546      enable_fast_install=no
9547      # Look at the argument we got.  We use all the common list separators.
9548      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9549      for pkg in $enableval; do
9550	IFS=$lt_save_ifs
9551	if test "X$pkg" = "X$p"; then
9552	  enable_fast_install=yes
9553	fi
9554      done
9555      IFS=$lt_save_ifs
9556      ;;
9557    esac
9558else
9559  enable_fast_install=yes
9560fi
9561
9562
9563
9564
9565
9566
9567
9568
9569  shared_archive_member_spec=
9570case $host,$enable_shared in
9571power*-*-aix[5-9]*,yes)
9572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9573$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9574
9575# Check whether --with-aix-soname was given.
9576if test "${with_aix_soname+set}" = set; then :
9577  withval=$with_aix_soname; case $withval in
9578    aix|svr4|both)
9579      ;;
9580    *)
9581      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9582      ;;
9583    esac
9584    lt_cv_with_aix_soname=$with_aix_soname
9585else
9586  if ${lt_cv_with_aix_soname+:} false; then :
9587  $as_echo_n "(cached) " >&6
9588else
9589  lt_cv_with_aix_soname=aix
9590fi
9591
9592    with_aix_soname=$lt_cv_with_aix_soname
9593fi
9594
9595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9596$as_echo "$with_aix_soname" >&6; }
9597  if test aix != "$with_aix_soname"; then
9598    # For the AIX way of multilib, we name the shared archive member
9599    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9600    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9601    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9602    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9603    if test 64 = "${OBJECT_MODE-32}"; then
9604      shared_archive_member_spec=shr_64
9605    else
9606      shared_archive_member_spec=shr
9607    fi
9608  fi
9609  ;;
9610*)
9611  with_aix_soname=aix
9612  ;;
9613esac
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624# This can be used to rebuild libtool when needed
9625LIBTOOL_DEPS=$ltmain
9626
9627# Always use our own libtool.
9628LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659test -z "$LN_S" && LN_S="ln -s"
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674if test -n "${ZSH_VERSION+set}"; then
9675   setopt NO_GLOB_SUBST
9676fi
9677
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9679$as_echo_n "checking for objdir... " >&6; }
9680if ${lt_cv_objdir+:} false; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  rm -f .libs 2>/dev/null
9684mkdir .libs 2>/dev/null
9685if test -d .libs; then
9686  lt_cv_objdir=.libs
9687else
9688  # MS-DOS does not allow filenames that begin with a dot.
9689  lt_cv_objdir=_libs
9690fi
9691rmdir .libs 2>/dev/null
9692fi
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9694$as_echo "$lt_cv_objdir" >&6; }
9695objdir=$lt_cv_objdir
9696
9697
9698
9699
9700
9701cat >>confdefs.h <<_ACEOF
9702#define LT_OBJDIR "$lt_cv_objdir/"
9703_ACEOF
9704
9705
9706
9707
9708case $host_os in
9709aix3*)
9710  # AIX sometimes has problems with the GCC collect2 program.  For some
9711  # reason, if we set the COLLECT_NAMES environment variable, the problems
9712  # vanish in a puff of smoke.
9713  if test set != "${COLLECT_NAMES+set}"; then
9714    COLLECT_NAMES=
9715    export COLLECT_NAMES
9716  fi
9717  ;;
9718esac
9719
9720# Global variables:
9721ofile=libtool
9722can_build_shared=yes
9723
9724# All known linkers require a '.a' archive for static linking (except MSVC,
9725# which needs '.lib').
9726libext=a
9727
9728with_gnu_ld=$lt_cv_prog_gnu_ld
9729
9730old_CC=$CC
9731old_CFLAGS=$CFLAGS
9732
9733# Set sane defaults for various variables
9734test -z "$CC" && CC=cc
9735test -z "$LTCC" && LTCC=$CC
9736test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9737test -z "$LD" && LD=ld
9738test -z "$ac_objext" && ac_objext=o
9739
9740func_cc_basename $compiler
9741cc_basename=$func_cc_basename_result
9742
9743
9744# Only perform the check for file, if the check method requires it
9745test -z "$MAGIC_CMD" && MAGIC_CMD=file
9746case $deplibs_check_method in
9747file_magic*)
9748  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9750$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9751if ${lt_cv_path_MAGIC_CMD+:} false; then :
9752  $as_echo_n "(cached) " >&6
9753else
9754  case $MAGIC_CMD in
9755[\\/*] |  ?:[\\/]*)
9756  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9757  ;;
9758*)
9759  lt_save_MAGIC_CMD=$MAGIC_CMD
9760  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9761  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9762  for ac_dir in $ac_dummy; do
9763    IFS=$lt_save_ifs
9764    test -z "$ac_dir" && ac_dir=.
9765    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9766      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9767      if test -n "$file_magic_test_file"; then
9768	case $deplibs_check_method in
9769	"file_magic "*)
9770	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9771	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9772	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9773	    $EGREP "$file_magic_regex" > /dev/null; then
9774	    :
9775	  else
9776	    cat <<_LT_EOF 1>&2
9777
9778*** Warning: the command libtool uses to detect shared libraries,
9779*** $file_magic_cmd, produces output that libtool cannot recognize.
9780*** The result is that libtool may fail to recognize shared libraries
9781*** as such.  This will affect the creation of libtool libraries that
9782*** depend on shared libraries, but programs linked with such libtool
9783*** libraries will work regardless of this problem.  Nevertheless, you
9784*** may want to report the problem to your system manager and/or to
9785*** bug-libtool@gnu.org
9786
9787_LT_EOF
9788	  fi ;;
9789	esac
9790      fi
9791      break
9792    fi
9793  done
9794  IFS=$lt_save_ifs
9795  MAGIC_CMD=$lt_save_MAGIC_CMD
9796  ;;
9797esac
9798fi
9799
9800MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9801if test -n "$MAGIC_CMD"; then
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9803$as_echo "$MAGIC_CMD" >&6; }
9804else
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
9807fi
9808
9809
9810
9811
9812
9813if test -z "$lt_cv_path_MAGIC_CMD"; then
9814  if test -n "$ac_tool_prefix"; then
9815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9816$as_echo_n "checking for file... " >&6; }
9817if ${lt_cv_path_MAGIC_CMD+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  case $MAGIC_CMD in
9821[\\/*] |  ?:[\\/]*)
9822  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9823  ;;
9824*)
9825  lt_save_MAGIC_CMD=$MAGIC_CMD
9826  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9827  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9828  for ac_dir in $ac_dummy; do
9829    IFS=$lt_save_ifs
9830    test -z "$ac_dir" && ac_dir=.
9831    if test -f "$ac_dir/file"; then
9832      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9833      if test -n "$file_magic_test_file"; then
9834	case $deplibs_check_method in
9835	"file_magic "*)
9836	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9837	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9838	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9839	    $EGREP "$file_magic_regex" > /dev/null; then
9840	    :
9841	  else
9842	    cat <<_LT_EOF 1>&2
9843
9844*** Warning: the command libtool uses to detect shared libraries,
9845*** $file_magic_cmd, produces output that libtool cannot recognize.
9846*** The result is that libtool may fail to recognize shared libraries
9847*** as such.  This will affect the creation of libtool libraries that
9848*** depend on shared libraries, but programs linked with such libtool
9849*** libraries will work regardless of this problem.  Nevertheless, you
9850*** may want to report the problem to your system manager and/or to
9851*** bug-libtool@gnu.org
9852
9853_LT_EOF
9854	  fi ;;
9855	esac
9856      fi
9857      break
9858    fi
9859  done
9860  IFS=$lt_save_ifs
9861  MAGIC_CMD=$lt_save_MAGIC_CMD
9862  ;;
9863esac
9864fi
9865
9866MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9867if test -n "$MAGIC_CMD"; then
9868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9869$as_echo "$MAGIC_CMD" >&6; }
9870else
9871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
9873fi
9874
9875
9876  else
9877    MAGIC_CMD=:
9878  fi
9879fi
9880
9881  fi
9882  ;;
9883esac
9884
9885# Use C for the default configuration in the libtool script
9886
9887lt_save_CC=$CC
9888ac_ext=c
9889ac_cpp='$CPP $CPPFLAGS'
9890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892ac_compiler_gnu=$ac_cv_c_compiler_gnu
9893
9894
9895# Source file extension for C test sources.
9896ac_ext=c
9897
9898# Object file extension for compiled C test sources.
9899objext=o
9900objext=$objext
9901
9902# Code to be used in simple compile tests
9903lt_simple_compile_test_code="int some_variable = 0;"
9904
9905# Code to be used in simple link tests
9906lt_simple_link_test_code='int main(){return(0);}'
9907
9908
9909
9910
9911
9912
9913
9914# If no C compiler was specified, use CC.
9915LTCC=${LTCC-"$CC"}
9916
9917# If no C compiler flags were specified, use CFLAGS.
9918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9919
9920# Allow CC to be a program name with arguments.
9921compiler=$CC
9922
9923# Save the default compiler, since it gets overwritten when the other
9924# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9925compiler_DEFAULT=$CC
9926
9927# save warnings/boilerplate of simple test code
9928ac_outfile=conftest.$ac_objext
9929echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9930eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9931_lt_compiler_boilerplate=`cat conftest.err`
9932$RM conftest*
9933
9934ac_outfile=conftest.$ac_objext
9935echo "$lt_simple_link_test_code" >conftest.$ac_ext
9936eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9937_lt_linker_boilerplate=`cat conftest.err`
9938$RM -r conftest*
9939
9940
9941if test -n "$compiler"; then
9942
9943lt_prog_compiler_no_builtin_flag=
9944
9945if test yes = "$GCC"; then
9946  case $cc_basename in
9947  nvcc*)
9948    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9949  *)
9950    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9951  esac
9952
9953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9954$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9955if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9956  $as_echo_n "(cached) " >&6
9957else
9958  lt_cv_prog_compiler_rtti_exceptions=no
9959   ac_outfile=conftest.$ac_objext
9960   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9961   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9962   # Insert the option either (1) after the last *FLAGS variable, or
9963   # (2) before a word containing "conftest.", or (3) at the end.
9964   # Note that $ac_compile itself does not contain backslashes and begins
9965   # with a dollar sign (not a hyphen), so the echo should work correctly.
9966   # The option is referenced via a variable to avoid confusing sed.
9967   lt_compile=`echo "$ac_compile" | $SED \
9968   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9969   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9970   -e 's:$: $lt_compiler_flag:'`
9971   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9972   (eval "$lt_compile" 2>conftest.err)
9973   ac_status=$?
9974   cat conftest.err >&5
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   if (exit $ac_status) && test -s "$ac_outfile"; then
9977     # The compiler can only warn and ignore the option if not recognized
9978     # So say no if there are warnings other than the usual output.
9979     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9980     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9981     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9982       lt_cv_prog_compiler_rtti_exceptions=yes
9983     fi
9984   fi
9985   $RM conftest*
9986
9987fi
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9989$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9990
9991if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9992    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9993else
9994    :
9995fi
9996
9997fi
9998
9999
10000
10001
10002
10003
10004  lt_prog_compiler_wl=
10005lt_prog_compiler_pic=
10006lt_prog_compiler_static=
10007
10008
10009  if test yes = "$GCC"; then
10010    lt_prog_compiler_wl='-Wl,'
10011    lt_prog_compiler_static='-static'
10012
10013    case $host_os in
10014      aix*)
10015      # All AIX code is PIC.
10016      if test ia64 = "$host_cpu"; then
10017	# AIX 5 now supports IA64 processor
10018	lt_prog_compiler_static='-Bstatic'
10019      fi
10020      lt_prog_compiler_pic='-fPIC'
10021      ;;
10022
10023    amigaos*)
10024      case $host_cpu in
10025      powerpc)
10026            # see comment about AmigaOS4 .so support
10027            lt_prog_compiler_pic='-fPIC'
10028        ;;
10029      m68k)
10030            # FIXME: we need at least 68020 code to build shared libraries, but
10031            # adding the '-m68020' flag to GCC prevents building anything better,
10032            # like '-m68040'.
10033            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10034        ;;
10035      esac
10036      ;;
10037
10038    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10039      # PIC is the default for these OSes.
10040      ;;
10041
10042    mingw* | cygwin* | pw32* | os2* | cegcc*)
10043      # This hack is so that the source file can tell whether it is being
10044      # built for inclusion in a dll (and should export symbols for example).
10045      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10046      # (--disable-auto-import) libraries
10047      lt_prog_compiler_pic='-DDLL_EXPORT'
10048      case $host_os in
10049      os2*)
10050	lt_prog_compiler_static='$wl-static'
10051	;;
10052      esac
10053      ;;
10054
10055    darwin* | rhapsody*)
10056      # PIC is the default on this platform
10057      # Common symbols not allowed in MH_DYLIB files
10058      lt_prog_compiler_pic='-fno-common'
10059      ;;
10060
10061    haiku*)
10062      # PIC is the default for Haiku.
10063      # The "-static" flag exists, but is broken.
10064      lt_prog_compiler_static=
10065      ;;
10066
10067    hpux*)
10068      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10069      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10070      # sets the default TLS model and affects inlining.
10071      case $host_cpu in
10072      hppa*64*)
10073	# +Z the default
10074	;;
10075      *)
10076	lt_prog_compiler_pic='-fPIC'
10077	;;
10078      esac
10079      ;;
10080
10081    interix[3-9]*)
10082      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10083      # Instead, we relocate shared libraries at runtime.
10084      ;;
10085
10086    msdosdjgpp*)
10087      # Just because we use GCC doesn't mean we suddenly get shared libraries
10088      # on systems that don't support them.
10089      lt_prog_compiler_can_build_shared=no
10090      enable_shared=no
10091      ;;
10092
10093    *nto* | *qnx*)
10094      # QNX uses GNU C++, but need to define -shared option too, otherwise
10095      # it will coredump.
10096      lt_prog_compiler_pic='-fPIC -shared'
10097      ;;
10098
10099    sysv4*MP*)
10100      if test -d /usr/nec; then
10101	lt_prog_compiler_pic=-Kconform_pic
10102      fi
10103      ;;
10104
10105    *)
10106      lt_prog_compiler_pic='-fPIC'
10107      ;;
10108    esac
10109
10110    case $cc_basename in
10111    nvcc*) # Cuda Compiler Driver 2.2
10112      lt_prog_compiler_wl='-Xlinker '
10113      if test -n "$lt_prog_compiler_pic"; then
10114        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10115      fi
10116      ;;
10117    esac
10118  else
10119    # PORTME Check for flag to pass linker flags through the system compiler.
10120    case $host_os in
10121    aix*)
10122      lt_prog_compiler_wl='-Wl,'
10123      if test ia64 = "$host_cpu"; then
10124	# AIX 5 now supports IA64 processor
10125	lt_prog_compiler_static='-Bstatic'
10126      else
10127	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10128      fi
10129      ;;
10130
10131    darwin* | rhapsody*)
10132      # PIC is the default on this platform
10133      # Common symbols not allowed in MH_DYLIB files
10134      lt_prog_compiler_pic='-fno-common'
10135      case $cc_basename in
10136      nagfor*)
10137        # NAG Fortran compiler
10138        lt_prog_compiler_wl='-Wl,-Wl,,'
10139        lt_prog_compiler_pic='-PIC'
10140        lt_prog_compiler_static='-Bstatic'
10141        ;;
10142      esac
10143      ;;
10144
10145    mingw* | cygwin* | pw32* | os2* | cegcc*)
10146      # This hack is so that the source file can tell whether it is being
10147      # built for inclusion in a dll (and should export symbols for example).
10148      lt_prog_compiler_pic='-DDLL_EXPORT'
10149      case $host_os in
10150      os2*)
10151	lt_prog_compiler_static='$wl-static'
10152	;;
10153      esac
10154      ;;
10155
10156    hpux9* | hpux10* | hpux11*)
10157      lt_prog_compiler_wl='-Wl,'
10158      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10159      # not for PA HP-UX.
10160      case $host_cpu in
10161      hppa*64*|ia64*)
10162	# +Z the default
10163	;;
10164      *)
10165	lt_prog_compiler_pic='+Z'
10166	;;
10167      esac
10168      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10169      lt_prog_compiler_static='$wl-a ${wl}archive'
10170      ;;
10171
10172    irix5* | irix6* | nonstopux*)
10173      lt_prog_compiler_wl='-Wl,'
10174      # PIC (with -KPIC) is the default.
10175      lt_prog_compiler_static='-non_shared'
10176      ;;
10177
10178    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10179      case $cc_basename in
10180      # old Intel for x86_64, which still supported -KPIC.
10181      ecc*)
10182	lt_prog_compiler_wl='-Wl,'
10183	lt_prog_compiler_pic='-KPIC'
10184	lt_prog_compiler_static='-static'
10185        ;;
10186      # icc used to be incompatible with GCC.
10187      # ICC 10 doesn't accept -KPIC any more.
10188      icc* | ifort*)
10189	lt_prog_compiler_wl='-Wl,'
10190	lt_prog_compiler_pic='-fPIC'
10191	lt_prog_compiler_static='-static'
10192        ;;
10193      # Lahey Fortran 8.1.
10194      lf95*)
10195	lt_prog_compiler_wl='-Wl,'
10196	lt_prog_compiler_pic='--shared'
10197	lt_prog_compiler_static='--static'
10198	;;
10199      nagfor*)
10200	# NAG Fortran compiler
10201	lt_prog_compiler_wl='-Wl,-Wl,,'
10202	lt_prog_compiler_pic='-PIC'
10203	lt_prog_compiler_static='-Bstatic'
10204	;;
10205      tcc*)
10206	# Fabrice Bellard et al's Tiny C Compiler
10207	lt_prog_compiler_wl='-Wl,'
10208	lt_prog_compiler_pic='-fPIC'
10209	lt_prog_compiler_static='-static'
10210	;;
10211      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10212        # Portland Group compilers (*not* the Pentium gcc compiler,
10213	# which looks to be a dead project)
10214	lt_prog_compiler_wl='-Wl,'
10215	lt_prog_compiler_pic='-fpic'
10216	lt_prog_compiler_static='-Bstatic'
10217        ;;
10218      ccc*)
10219        lt_prog_compiler_wl='-Wl,'
10220        # All Alpha code is PIC.
10221        lt_prog_compiler_static='-non_shared'
10222        ;;
10223      xl* | bgxl* | bgf* | mpixl*)
10224	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10225	lt_prog_compiler_wl='-Wl,'
10226	lt_prog_compiler_pic='-qpic'
10227	lt_prog_compiler_static='-qstaticlink'
10228	;;
10229      *)
10230	case `$CC -V 2>&1 | sed 5q` in
10231	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10232	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10233	  lt_prog_compiler_pic='-KPIC'
10234	  lt_prog_compiler_static='-Bstatic'
10235	  lt_prog_compiler_wl=''
10236	  ;;
10237	*Sun\ F* | *Sun*Fortran*)
10238	  lt_prog_compiler_pic='-KPIC'
10239	  lt_prog_compiler_static='-Bstatic'
10240	  lt_prog_compiler_wl='-Qoption ld '
10241	  ;;
10242	*Sun\ C*)
10243	  # Sun C 5.9
10244	  lt_prog_compiler_pic='-KPIC'
10245	  lt_prog_compiler_static='-Bstatic'
10246	  lt_prog_compiler_wl='-Wl,'
10247	  ;;
10248        *Intel*\ [CF]*Compiler*)
10249	  lt_prog_compiler_wl='-Wl,'
10250	  lt_prog_compiler_pic='-fPIC'
10251	  lt_prog_compiler_static='-static'
10252	  ;;
10253	*Portland\ Group*)
10254	  lt_prog_compiler_wl='-Wl,'
10255	  lt_prog_compiler_pic='-fpic'
10256	  lt_prog_compiler_static='-Bstatic'
10257	  ;;
10258	esac
10259	;;
10260      esac
10261      ;;
10262
10263    newsos6)
10264      lt_prog_compiler_pic='-KPIC'
10265      lt_prog_compiler_static='-Bstatic'
10266      ;;
10267
10268    *nto* | *qnx*)
10269      # QNX uses GNU C++, but need to define -shared option too, otherwise
10270      # it will coredump.
10271      lt_prog_compiler_pic='-fPIC -shared'
10272      ;;
10273
10274    osf3* | osf4* | osf5*)
10275      lt_prog_compiler_wl='-Wl,'
10276      # All OSF/1 code is PIC.
10277      lt_prog_compiler_static='-non_shared'
10278      ;;
10279
10280    rdos*)
10281      lt_prog_compiler_static='-non_shared'
10282      ;;
10283
10284    solaris*)
10285      lt_prog_compiler_pic='-KPIC'
10286      lt_prog_compiler_static='-Bstatic'
10287      case $cc_basename in
10288      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10289	lt_prog_compiler_wl='-Qoption ld ';;
10290      *)
10291	lt_prog_compiler_wl='-Wl,';;
10292      esac
10293      ;;
10294
10295    sunos4*)
10296      lt_prog_compiler_wl='-Qoption ld '
10297      lt_prog_compiler_pic='-PIC'
10298      lt_prog_compiler_static='-Bstatic'
10299      ;;
10300
10301    sysv4 | sysv4.2uw2* | sysv4.3*)
10302      lt_prog_compiler_wl='-Wl,'
10303      lt_prog_compiler_pic='-KPIC'
10304      lt_prog_compiler_static='-Bstatic'
10305      ;;
10306
10307    sysv4*MP*)
10308      if test -d /usr/nec; then
10309	lt_prog_compiler_pic='-Kconform_pic'
10310	lt_prog_compiler_static='-Bstatic'
10311      fi
10312      ;;
10313
10314    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10315      lt_prog_compiler_wl='-Wl,'
10316      lt_prog_compiler_pic='-KPIC'
10317      lt_prog_compiler_static='-Bstatic'
10318      ;;
10319
10320    unicos*)
10321      lt_prog_compiler_wl='-Wl,'
10322      lt_prog_compiler_can_build_shared=no
10323      ;;
10324
10325    uts4*)
10326      lt_prog_compiler_pic='-pic'
10327      lt_prog_compiler_static='-Bstatic'
10328      ;;
10329
10330    *)
10331      lt_prog_compiler_can_build_shared=no
10332      ;;
10333    esac
10334  fi
10335
10336case $host_os in
10337  # For platforms that do not support PIC, -DPIC is meaningless:
10338  *djgpp*)
10339    lt_prog_compiler_pic=
10340    ;;
10341  *)
10342    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10343    ;;
10344esac
10345
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10347$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10348if ${lt_cv_prog_compiler_pic+:} false; then :
10349  $as_echo_n "(cached) " >&6
10350else
10351  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10352fi
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10354$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10355lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10356
10357#
10358# Check to make sure the PIC flag actually works.
10359#
10360if test -n "$lt_prog_compiler_pic"; then
10361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10362$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10363if ${lt_cv_prog_compiler_pic_works+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  lt_cv_prog_compiler_pic_works=no
10367   ac_outfile=conftest.$ac_objext
10368   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10369   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10370   # Insert the option either (1) after the last *FLAGS variable, or
10371   # (2) before a word containing "conftest.", or (3) at the end.
10372   # Note that $ac_compile itself does not contain backslashes and begins
10373   # with a dollar sign (not a hyphen), so the echo should work correctly.
10374   # The option is referenced via a variable to avoid confusing sed.
10375   lt_compile=`echo "$ac_compile" | $SED \
10376   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10377   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10378   -e 's:$: $lt_compiler_flag:'`
10379   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10380   (eval "$lt_compile" 2>conftest.err)
10381   ac_status=$?
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   if (exit $ac_status) && test -s "$ac_outfile"; then
10385     # The compiler can only warn and ignore the option if not recognized
10386     # So say no if there are warnings other than the usual output.
10387     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10388     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10389     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10390       lt_cv_prog_compiler_pic_works=yes
10391     fi
10392   fi
10393   $RM conftest*
10394
10395fi
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10397$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10398
10399if test yes = "$lt_cv_prog_compiler_pic_works"; then
10400    case $lt_prog_compiler_pic in
10401     "" | " "*) ;;
10402     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10403     esac
10404else
10405    lt_prog_compiler_pic=
10406     lt_prog_compiler_can_build_shared=no
10407fi
10408
10409fi
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421#
10422# Check to make sure the static flag actually works.
10423#
10424wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10426$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10427if ${lt_cv_prog_compiler_static_works+:} false; then :
10428  $as_echo_n "(cached) " >&6
10429else
10430  lt_cv_prog_compiler_static_works=no
10431   save_LDFLAGS=$LDFLAGS
10432   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10433   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10434   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10435     # The linker can only warn and ignore the option if not recognized
10436     # So say no if there are warnings
10437     if test -s conftest.err; then
10438       # Append any errors to the config.log.
10439       cat conftest.err 1>&5
10440       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10441       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10442       if diff conftest.exp conftest.er2 >/dev/null; then
10443         lt_cv_prog_compiler_static_works=yes
10444       fi
10445     else
10446       lt_cv_prog_compiler_static_works=yes
10447     fi
10448   fi
10449   $RM -r conftest*
10450   LDFLAGS=$save_LDFLAGS
10451
10452fi
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10454$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10455
10456if test yes = "$lt_cv_prog_compiler_static_works"; then
10457    :
10458else
10459    lt_prog_compiler_static=
10460fi
10461
10462
10463
10464
10465
10466
10467
10468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10469$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10470if ${lt_cv_prog_compiler_c_o+:} false; then :
10471  $as_echo_n "(cached) " >&6
10472else
10473  lt_cv_prog_compiler_c_o=no
10474   $RM -r conftest 2>/dev/null
10475   mkdir conftest
10476   cd conftest
10477   mkdir out
10478   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10479
10480   lt_compiler_flag="-o out/conftest2.$ac_objext"
10481   # Insert the option either (1) after the last *FLAGS variable, or
10482   # (2) before a word containing "conftest.", or (3) at the end.
10483   # Note that $ac_compile itself does not contain backslashes and begins
10484   # with a dollar sign (not a hyphen), so the echo should work correctly.
10485   lt_compile=`echo "$ac_compile" | $SED \
10486   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10487   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10488   -e 's:$: $lt_compiler_flag:'`
10489   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10490   (eval "$lt_compile" 2>out/conftest.err)
10491   ac_status=$?
10492   cat out/conftest.err >&5
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10495   then
10496     # The compiler can only warn and ignore the option if not recognized
10497     # So say no if there are warnings
10498     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10499     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10500     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10501       lt_cv_prog_compiler_c_o=yes
10502     fi
10503   fi
10504   chmod u+w . 2>&5
10505   $RM conftest*
10506   # SGI C++ compiler will create directory out/ii_files/ for
10507   # template instantiation
10508   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10509   $RM out/* && rmdir out
10510   cd ..
10511   $RM -r conftest
10512   $RM conftest*
10513
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10516$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10517
10518
10519
10520
10521
10522
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10524$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10525if ${lt_cv_prog_compiler_c_o+:} false; then :
10526  $as_echo_n "(cached) " >&6
10527else
10528  lt_cv_prog_compiler_c_o=no
10529   $RM -r conftest 2>/dev/null
10530   mkdir conftest
10531   cd conftest
10532   mkdir out
10533   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10534
10535   lt_compiler_flag="-o out/conftest2.$ac_objext"
10536   # Insert the option either (1) after the last *FLAGS variable, or
10537   # (2) before a word containing "conftest.", or (3) at the end.
10538   # Note that $ac_compile itself does not contain backslashes and begins
10539   # with a dollar sign (not a hyphen), so the echo should work correctly.
10540   lt_compile=`echo "$ac_compile" | $SED \
10541   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10542   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10543   -e 's:$: $lt_compiler_flag:'`
10544   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10545   (eval "$lt_compile" 2>out/conftest.err)
10546   ac_status=$?
10547   cat out/conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10550   then
10551     # The compiler can only warn and ignore the option if not recognized
10552     # So say no if there are warnings
10553     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10554     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10555     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10556       lt_cv_prog_compiler_c_o=yes
10557     fi
10558   fi
10559   chmod u+w . 2>&5
10560   $RM conftest*
10561   # SGI C++ compiler will create directory out/ii_files/ for
10562   # template instantiation
10563   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10564   $RM out/* && rmdir out
10565   cd ..
10566   $RM -r conftest
10567   $RM conftest*
10568
10569fi
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10571$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10572
10573
10574
10575
10576hard_links=nottested
10577if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10578  # do not overwrite the value of need_locks provided by the user
10579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10580$as_echo_n "checking if we can lock with hard links... " >&6; }
10581  hard_links=yes
10582  $RM conftest*
10583  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10584  touch conftest.a
10585  ln conftest.a conftest.b 2>&5 || hard_links=no
10586  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10588$as_echo "$hard_links" >&6; }
10589  if test no = "$hard_links"; then
10590    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10591$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10592    need_locks=warn
10593  fi
10594else
10595  need_locks=no
10596fi
10597
10598
10599
10600
10601
10602
10603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10604$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10605
10606  runpath_var=
10607  allow_undefined_flag=
10608  always_export_symbols=no
10609  archive_cmds=
10610  archive_expsym_cmds=
10611  compiler_needs_object=no
10612  enable_shared_with_static_runtimes=no
10613  export_dynamic_flag_spec=
10614  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10615  hardcode_automatic=no
10616  hardcode_direct=no
10617  hardcode_direct_absolute=no
10618  hardcode_libdir_flag_spec=
10619  hardcode_libdir_separator=
10620  hardcode_minus_L=no
10621  hardcode_shlibpath_var=unsupported
10622  inherit_rpath=no
10623  link_all_deplibs=unknown
10624  module_cmds=
10625  module_expsym_cmds=
10626  old_archive_from_new_cmds=
10627  old_archive_from_expsyms_cmds=
10628  thread_safe_flag_spec=
10629  whole_archive_flag_spec=
10630  # include_expsyms should be a list of space-separated symbols to be *always*
10631  # included in the symbol list
10632  include_expsyms=
10633  # exclude_expsyms can be an extended regexp of symbols to exclude
10634  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10635  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10636  # as well as any symbol that contains 'd'.
10637  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10638  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10639  # platforms (ab)use it in PIC code, but their linkers get confused if
10640  # the symbol is explicitly referenced.  Since portable code cannot
10641  # rely on this symbol name, it's probably fine to never include it in
10642  # preloaded symbol tables.
10643  # Exclude shared library initialization/finalization symbols.
10644  extract_expsyms_cmds=
10645
10646  case $host_os in
10647  cygwin* | mingw* | pw32* | cegcc*)
10648    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10649    # When not using gcc, we currently assume that we are using
10650    # Microsoft Visual C++.
10651    if test yes != "$GCC"; then
10652      with_gnu_ld=no
10653    fi
10654    ;;
10655  interix*)
10656    # we just hope/assume this is gcc and not c89 (= MSVC++)
10657    with_gnu_ld=yes
10658    ;;
10659  openbsd* | bitrig*)
10660    with_gnu_ld=no
10661    ;;
10662  esac
10663
10664  ld_shlibs=yes
10665
10666  # On some targets, GNU ld is compatible enough with the native linker
10667  # that we're better off using the native interface for both.
10668  lt_use_gnu_ld_interface=no
10669  if test yes = "$with_gnu_ld"; then
10670    case $host_os in
10671      aix*)
10672	# The AIX port of GNU ld has always aspired to compatibility
10673	# with the native linker.  However, as the warning in the GNU ld
10674	# block says, versions before 2.19.5* couldn't really create working
10675	# shared libraries, regardless of the interface used.
10676	case `$LD -v 2>&1` in
10677	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10678	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10679	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10680	  *)
10681	    lt_use_gnu_ld_interface=yes
10682	    ;;
10683	esac
10684	;;
10685      *)
10686	lt_use_gnu_ld_interface=yes
10687	;;
10688    esac
10689  fi
10690
10691  if test yes = "$lt_use_gnu_ld_interface"; then
10692    # If archive_cmds runs LD, not CC, wlarc should be empty
10693    wlarc='$wl'
10694
10695    # Set some defaults for GNU ld with shared library support. These
10696    # are reset later if shared libraries are not supported. Putting them
10697    # here allows them to be overridden if necessary.
10698    runpath_var=LD_RUN_PATH
10699    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10700    export_dynamic_flag_spec='$wl--export-dynamic'
10701    # ancient GNU ld didn't support --whole-archive et. al.
10702    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10703      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10704    else
10705      whole_archive_flag_spec=
10706    fi
10707    supports_anon_versioning=no
10708    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10709      *GNU\ gold*) supports_anon_versioning=yes ;;
10710      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10711      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10712      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10713      *\ 2.11.*) ;; # other 2.11 versions
10714      *) supports_anon_versioning=yes ;;
10715    esac
10716
10717    # See if GNU ld supports shared libraries.
10718    case $host_os in
10719    aix[3-9]*)
10720      # On AIX/PPC, the GNU linker is very broken
10721      if test ia64 != "$host_cpu"; then
10722	ld_shlibs=no
10723	cat <<_LT_EOF 1>&2
10724
10725*** Warning: the GNU linker, at least up to release 2.19, is reported
10726*** to be unable to reliably create shared libraries on AIX.
10727*** Therefore, libtool is disabling shared libraries support.  If you
10728*** really care for shared libraries, you may want to install binutils
10729*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10730*** You will then need to restart the configuration process.
10731
10732_LT_EOF
10733      fi
10734      ;;
10735
10736    amigaos*)
10737      case $host_cpu in
10738      powerpc)
10739            # see comment about AmigaOS4 .so support
10740            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10741            archive_expsym_cmds=''
10742        ;;
10743      m68k)
10744            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)'
10745            hardcode_libdir_flag_spec='-L$libdir'
10746            hardcode_minus_L=yes
10747        ;;
10748      esac
10749      ;;
10750
10751    beos*)
10752      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10753	allow_undefined_flag=unsupported
10754	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10755	# support --undefined.  This deserves some investigation.  FIXME
10756	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10757      else
10758	ld_shlibs=no
10759      fi
10760      ;;
10761
10762    cygwin* | mingw* | pw32* | cegcc*)
10763      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10764      # as there is no search path for DLLs.
10765      hardcode_libdir_flag_spec='-L$libdir'
10766      export_dynamic_flag_spec='$wl--export-all-symbols'
10767      allow_undefined_flag=unsupported
10768      always_export_symbols=no
10769      enable_shared_with_static_runtimes=yes
10770      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'
10771      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10772
10773      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10774        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10775	# If the export-symbols file already is a .def file, use it as
10776	# is; otherwise, prepend EXPORTS...
10777	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10778          cp $export_symbols $output_objdir/$soname.def;
10779        else
10780          echo EXPORTS > $output_objdir/$soname.def;
10781          cat $export_symbols >> $output_objdir/$soname.def;
10782        fi~
10783        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10784      else
10785	ld_shlibs=no
10786      fi
10787      ;;
10788
10789    haiku*)
10790      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10791      link_all_deplibs=yes
10792      ;;
10793
10794    os2*)
10795      hardcode_libdir_flag_spec='-L$libdir'
10796      hardcode_minus_L=yes
10797      allow_undefined_flag=unsupported
10798      shrext_cmds=.dll
10799      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10800	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10801	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10802	$ECHO EXPORTS >> $output_objdir/$libname.def~
10803	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10804	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10805	emximp -o $lib $output_objdir/$libname.def'
10806      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10807	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10808	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10809	$ECHO EXPORTS >> $output_objdir/$libname.def~
10810	prefix_cmds="$SED"~
10811	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10812	  prefix_cmds="$prefix_cmds -e 1d";
10813	fi~
10814	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10815	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10816	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10817	emximp -o $lib $output_objdir/$libname.def'
10818      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10819      enable_shared_with_static_runtimes=yes
10820      ;;
10821
10822    interix[3-9]*)
10823      hardcode_direct=no
10824      hardcode_shlibpath_var=no
10825      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10826      export_dynamic_flag_spec='$wl-E'
10827      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10828      # Instead, shared libraries are loaded at an image base (0x10000000 by
10829      # default) and relocated if they conflict, which is a slow very memory
10830      # consuming and fragmenting process.  To avoid this, we pick a random,
10831      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10832      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10833      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10834      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'
10835      ;;
10836
10837    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10838      tmp_diet=no
10839      if test linux-dietlibc = "$host_os"; then
10840	case $cc_basename in
10841	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10842	esac
10843      fi
10844      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10845	 && test no = "$tmp_diet"
10846      then
10847	tmp_addflag=' $pic_flag'
10848	tmp_sharedflag='-shared'
10849	case $cc_basename,$host_cpu in
10850        pgcc*)				# Portland Group C compiler
10851	  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'
10852	  tmp_addflag=' $pic_flag'
10853	  ;;
10854	pgf77* | pgf90* | pgf95* | pgfortran*)
10855					# Portland Group f77 and f90 compilers
10856	  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'
10857	  tmp_addflag=' $pic_flag -Mnomain' ;;
10858	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10859	  tmp_addflag=' -i_dynamic' ;;
10860	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10861	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10862	ifc* | ifort*)			# Intel Fortran compiler
10863	  tmp_addflag=' -nofor_main' ;;
10864	lf95*)				# Lahey Fortran 8.1
10865	  whole_archive_flag_spec=
10866	  tmp_sharedflag='--shared' ;;
10867        nagfor*)                        # NAGFOR 5.3
10868          tmp_sharedflag='-Wl,-shared' ;;
10869	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10870	  tmp_sharedflag='-qmkshrobj'
10871	  tmp_addflag= ;;
10872	nvcc*)	# Cuda Compiler Driver 2.2
10873	  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'
10874	  compiler_needs_object=yes
10875	  ;;
10876	esac
10877	case `$CC -V 2>&1 | sed 5q` in
10878	*Sun\ C*)			# Sun C 5.9
10879	  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'
10880	  compiler_needs_object=yes
10881	  tmp_sharedflag='-G' ;;
10882	*Sun\ F*)			# Sun Fortran 8.3
10883	  tmp_sharedflag='-G' ;;
10884	esac
10885	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10886
10887        if test yes = "$supports_anon_versioning"; then
10888          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10889            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10890            echo "local: *; };" >> $output_objdir/$libname.ver~
10891            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10892        fi
10893
10894	case $cc_basename in
10895	tcc*)
10896	  export_dynamic_flag_spec='-rdynamic'
10897	  ;;
10898	xlf* | bgf* | bgxlf* | mpixlf*)
10899	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10900	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10901	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10902	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10903	  if test yes = "$supports_anon_versioning"; then
10904	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10905              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10906              echo "local: *; };" >> $output_objdir/$libname.ver~
10907              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10908	  fi
10909	  ;;
10910	esac
10911      else
10912        ld_shlibs=no
10913      fi
10914      ;;
10915
10916    netbsd*)
10917      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10919	wlarc=
10920      else
10921	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10922	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10923      fi
10924      ;;
10925
10926    solaris*)
10927      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10928	ld_shlibs=no
10929	cat <<_LT_EOF 1>&2
10930
10931*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10932*** create shared libraries on Solaris systems.  Therefore, libtool
10933*** is disabling shared libraries support.  We urge you to upgrade GNU
10934*** binutils to release 2.9.1 or newer.  Another option is to modify
10935*** your PATH or compiler configuration so that the native linker is
10936*** used, and then restart.
10937
10938_LT_EOF
10939      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10940	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10941	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10942      else
10943	ld_shlibs=no
10944      fi
10945      ;;
10946
10947    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10948      case `$LD -v 2>&1` in
10949        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10950	ld_shlibs=no
10951	cat <<_LT_EOF 1>&2
10952
10953*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10954*** reliably create shared libraries on SCO systems.  Therefore, libtool
10955*** is disabling shared libraries support.  We urge you to upgrade GNU
10956*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10957*** your PATH or compiler configuration so that the native linker is
10958*** used, and then restart.
10959
10960_LT_EOF
10961	;;
10962	*)
10963	  # For security reasons, it is highly recommended that you always
10964	  # use absolute paths for naming shared libraries, and exclude the
10965	  # DT_RUNPATH tag from executables and libraries.  But doing so
10966	  # requires that you compile everything twice, which is a pain.
10967	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10968	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10969	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10970	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10971	  else
10972	    ld_shlibs=no
10973	  fi
10974	;;
10975      esac
10976      ;;
10977
10978    sunos4*)
10979      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10980      wlarc=
10981      hardcode_direct=yes
10982      hardcode_shlibpath_var=no
10983      ;;
10984
10985    *)
10986      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10987	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10988	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10989      else
10990	ld_shlibs=no
10991      fi
10992      ;;
10993    esac
10994
10995    if test no = "$ld_shlibs"; then
10996      runpath_var=
10997      hardcode_libdir_flag_spec=
10998      export_dynamic_flag_spec=
10999      whole_archive_flag_spec=
11000    fi
11001  else
11002    # PORTME fill in a description of your system's linker (not GNU ld)
11003    case $host_os in
11004    aix3*)
11005      allow_undefined_flag=unsupported
11006      always_export_symbols=yes
11007      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'
11008      # Note: this linker hardcodes the directories in LIBPATH if there
11009      # are no directories specified by -L.
11010      hardcode_minus_L=yes
11011      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11012	# Neither direct hardcoding nor static linking is supported with a
11013	# broken collect2.
11014	hardcode_direct=unsupported
11015      fi
11016      ;;
11017
11018    aix[4-9]*)
11019      if test ia64 = "$host_cpu"; then
11020	# On IA64, the linker does run time linking by default, so we don't
11021	# have to do anything special.
11022	aix_use_runtimelinking=no
11023	exp_sym_flag='-Bexport'
11024	no_entry_flag=
11025      else
11026	# If we're using GNU nm, then we don't want the "-C" option.
11027	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11028	# Without the "-l" option, or with the "-B" option, AIX nm treats
11029	# weak defined symbols like other global defined symbols, whereas
11030	# GNU nm marks them as "W".
11031	# While the 'weak' keyword is ignored in the Export File, we need
11032	# it in the Import File for the 'aix-soname' feature, so we have
11033	# to replace the "-B" option with "-P" for AIX nm.
11034	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11035	  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'
11036	else
11037	  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'
11038	fi
11039	aix_use_runtimelinking=no
11040
11041	# Test if we are trying to use run time linking or normal
11042	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11043	# have runtime linking enabled, and use it for executables.
11044	# For shared libraries, we enable/disable runtime linking
11045	# depending on the kind of the shared library created -
11046	# when "with_aix_soname,aix_use_runtimelinking" is:
11047	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11048	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11049	#            lib.a           static archive
11050	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11051	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11052	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11053	#            lib.a(lib.so.V) shared, rtl:no
11054	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11055	#            lib.a           static archive
11056	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11057	  for ld_flag in $LDFLAGS; do
11058	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11059	    aix_use_runtimelinking=yes
11060	    break
11061	  fi
11062	  done
11063	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11064	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11065	    # so we don't have lib.a shared libs to link our executables.
11066	    # We have to force runtime linking in this case.
11067	    aix_use_runtimelinking=yes
11068	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11069	  fi
11070	  ;;
11071	esac
11072
11073	exp_sym_flag='-bexport'
11074	no_entry_flag='-bnoentry'
11075      fi
11076
11077      # When large executables or shared objects are built, AIX ld can
11078      # have problems creating the table of contents.  If linking a library
11079      # or program results in "error TOC overflow" add -mminimal-toc to
11080      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11081      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11082
11083      archive_cmds=''
11084      hardcode_direct=yes
11085      hardcode_direct_absolute=yes
11086      hardcode_libdir_separator=':'
11087      link_all_deplibs=yes
11088      file_list_spec='$wl-f,'
11089      case $with_aix_soname,$aix_use_runtimelinking in
11090      aix,*) ;; # traditional, no import file
11091      svr4,* | *,yes) # use import file
11092	# The Import File defines what to hardcode.
11093	hardcode_direct=no
11094	hardcode_direct_absolute=no
11095	;;
11096      esac
11097
11098      if test yes = "$GCC"; then
11099	case $host_os in aix4.[012]|aix4.[012].*)
11100	# We only want to do this on AIX 4.2 and lower, the check
11101	# below for broken collect2 doesn't work under 4.3+
11102	  collect2name=`$CC -print-prog-name=collect2`
11103	  if test -f "$collect2name" &&
11104	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11105	  then
11106	  # We have reworked collect2
11107	  :
11108	  else
11109	  # We have old collect2
11110	  hardcode_direct=unsupported
11111	  # It fails to find uninstalled libraries when the uninstalled
11112	  # path is not listed in the libpath.  Setting hardcode_minus_L
11113	  # to unsupported forces relinking
11114	  hardcode_minus_L=yes
11115	  hardcode_libdir_flag_spec='-L$libdir'
11116	  hardcode_libdir_separator=
11117	  fi
11118	  ;;
11119	esac
11120	shared_flag='-shared'
11121	if test yes = "$aix_use_runtimelinking"; then
11122	  shared_flag="$shared_flag "'$wl-G'
11123	fi
11124	# Need to ensure runtime linking is disabled for the traditional
11125	# shared library, or the linker may eventually find shared libraries
11126	# /with/ Import File - we do not want to mix them.
11127	shared_flag_aix='-shared'
11128	shared_flag_svr4='-shared $wl-G'
11129      else
11130	# not using gcc
11131	if test ia64 = "$host_cpu"; then
11132	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11133	# chokes on -Wl,-G. The following line is correct:
11134	  shared_flag='-G'
11135	else
11136	  if test yes = "$aix_use_runtimelinking"; then
11137	    shared_flag='$wl-G'
11138	  else
11139	    shared_flag='$wl-bM:SRE'
11140	  fi
11141	  shared_flag_aix='$wl-bM:SRE'
11142	  shared_flag_svr4='$wl-G'
11143	fi
11144      fi
11145
11146      export_dynamic_flag_spec='$wl-bexpall'
11147      # It seems that -bexpall does not export symbols beginning with
11148      # underscore (_), so it is better to generate a list of symbols to export.
11149      always_export_symbols=yes
11150      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11151	# Warning - without using the other runtime loading flags (-brtl),
11152	# -berok will link without error, but may produce a broken library.
11153	allow_undefined_flag='-berok'
11154        # Determine the default libpath from the value encoded in an
11155        # empty executable.
11156        if test set = "${lt_cv_aix_libpath+set}"; then
11157  aix_libpath=$lt_cv_aix_libpath
11158else
11159  if ${lt_cv_aix_libpath_+:} false; then :
11160  $as_echo_n "(cached) " >&6
11161else
11162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163/* end confdefs.h.  */
11164
11165int
11166main ()
11167{
11168
11169  ;
11170  return 0;
11171}
11172_ACEOF
11173if ac_fn_c_try_link "$LINENO"; then :
11174
11175  lt_aix_libpath_sed='
11176      /Import File Strings/,/^$/ {
11177	  /^0/ {
11178	      s/^0  *\([^ ]*\) *$/\1/
11179	      p
11180	  }
11181      }'
11182  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11183  # Check for a 64-bit object if we didn't find anything.
11184  if test -z "$lt_cv_aix_libpath_"; then
11185    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11186  fi
11187fi
11188rm -f core conftest.err conftest.$ac_objext \
11189    conftest$ac_exeext conftest.$ac_ext
11190  if test -z "$lt_cv_aix_libpath_"; then
11191    lt_cv_aix_libpath_=/usr/lib:/lib
11192  fi
11193
11194fi
11195
11196  aix_libpath=$lt_cv_aix_libpath_
11197fi
11198
11199        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11200        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
11201      else
11202	if test ia64 = "$host_cpu"; then
11203	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11204	  allow_undefined_flag="-z nodefs"
11205	  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"
11206	else
11207	 # Determine the default libpath from the value encoded in an
11208	 # empty executable.
11209	 if test set = "${lt_cv_aix_libpath+set}"; then
11210  aix_libpath=$lt_cv_aix_libpath
11211else
11212  if ${lt_cv_aix_libpath_+:} false; then :
11213  $as_echo_n "(cached) " >&6
11214else
11215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216/* end confdefs.h.  */
11217
11218int
11219main ()
11220{
11221
11222  ;
11223  return 0;
11224}
11225_ACEOF
11226if ac_fn_c_try_link "$LINENO"; then :
11227
11228  lt_aix_libpath_sed='
11229      /Import File Strings/,/^$/ {
11230	  /^0/ {
11231	      s/^0  *\([^ ]*\) *$/\1/
11232	      p
11233	  }
11234      }'
11235  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11236  # Check for a 64-bit object if we didn't find anything.
11237  if test -z "$lt_cv_aix_libpath_"; then
11238    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11239  fi
11240fi
11241rm -f core conftest.err conftest.$ac_objext \
11242    conftest$ac_exeext conftest.$ac_ext
11243  if test -z "$lt_cv_aix_libpath_"; then
11244    lt_cv_aix_libpath_=/usr/lib:/lib
11245  fi
11246
11247fi
11248
11249  aix_libpath=$lt_cv_aix_libpath_
11250fi
11251
11252	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11253	  # Warning - without using the other run time loading flags,
11254	  # -berok will link without error, but may produce a broken library.
11255	  no_undefined_flag=' $wl-bernotok'
11256	  allow_undefined_flag=' $wl-berok'
11257	  if test yes = "$with_gnu_ld"; then
11258	    # We only use this code for GNU lds that support --whole-archive.
11259	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11260	  else
11261	    # Exported symbols can be pulled into shared objects from archives
11262	    whole_archive_flag_spec='$convenience'
11263	  fi
11264	  archive_cmds_need_lc=yes
11265	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11266	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11267	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11268	  if test svr4 != "$with_aix_soname"; then
11269	    # This is similar to how AIX traditionally builds its shared libraries.
11270	    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'
11271	  fi
11272	  if test aix != "$with_aix_soname"; then
11273	    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'
11274	  else
11275	    # used by -dlpreopen to get the symbols
11276	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11277	  fi
11278	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11279	fi
11280      fi
11281      ;;
11282
11283    amigaos*)
11284      case $host_cpu in
11285      powerpc)
11286            # see comment about AmigaOS4 .so support
11287            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11288            archive_expsym_cmds=''
11289        ;;
11290      m68k)
11291            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)'
11292            hardcode_libdir_flag_spec='-L$libdir'
11293            hardcode_minus_L=yes
11294        ;;
11295      esac
11296      ;;
11297
11298    bsdi[45]*)
11299      export_dynamic_flag_spec=-rdynamic
11300      ;;
11301
11302    cygwin* | mingw* | pw32* | cegcc*)
11303      # When not using gcc, we currently assume that we are using
11304      # Microsoft Visual C++.
11305      # hardcode_libdir_flag_spec is actually meaningless, as there is
11306      # no search path for DLLs.
11307      case $cc_basename in
11308      cl*)
11309	# Native MSVC
11310	hardcode_libdir_flag_spec=' '
11311	allow_undefined_flag=unsupported
11312	always_export_symbols=yes
11313	file_list_spec='@'
11314	# Tell ltmain to make .lib files, not .a files.
11315	libext=lib
11316	# Tell ltmain to make .dll files, not .so files.
11317	shrext_cmds=.dll
11318	# FIXME: Setting linknames here is a bad hack.
11319	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11320	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11321            cp "$export_symbols" "$output_objdir/$soname.def";
11322            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11323          else
11324            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11325          fi~
11326          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11327          linknames='
11328	# The linker will not automatically build a static lib if we build a DLL.
11329	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11330	enable_shared_with_static_runtimes=yes
11331	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11332	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11333	# Don't use ranlib
11334	old_postinstall_cmds='chmod 644 $oldlib'
11335	postlink_cmds='lt_outputfile="@OUTPUT@"~
11336          lt_tool_outputfile="@TOOL_OUTPUT@"~
11337          case $lt_outputfile in
11338            *.exe|*.EXE) ;;
11339            *)
11340              lt_outputfile=$lt_outputfile.exe
11341              lt_tool_outputfile=$lt_tool_outputfile.exe
11342              ;;
11343          esac~
11344          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11345            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11346            $RM "$lt_outputfile.manifest";
11347          fi'
11348	;;
11349      *)
11350	# Assume MSVC wrapper
11351	hardcode_libdir_flag_spec=' '
11352	allow_undefined_flag=unsupported
11353	# Tell ltmain to make .lib files, not .a files.
11354	libext=lib
11355	# Tell ltmain to make .dll files, not .so files.
11356	shrext_cmds=.dll
11357	# FIXME: Setting linknames here is a bad hack.
11358	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11359	# The linker will automatically build a .lib file if we build a DLL.
11360	old_archive_from_new_cmds='true'
11361	# FIXME: Should let the user specify the lib program.
11362	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11363	enable_shared_with_static_runtimes=yes
11364	;;
11365      esac
11366      ;;
11367
11368    darwin* | rhapsody*)
11369
11370
11371  archive_cmds_need_lc=no
11372  hardcode_direct=no
11373  hardcode_automatic=yes
11374  hardcode_shlibpath_var=unsupported
11375  if test yes = "$lt_cv_ld_force_load"; then
11376    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\"`'
11377
11378  else
11379    whole_archive_flag_spec=''
11380  fi
11381  link_all_deplibs=yes
11382  allow_undefined_flag=$_lt_dar_allow_undefined
11383  case $cc_basename in
11384     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11385     *) _lt_dar_can_shared=$GCC ;;
11386  esac
11387  if test yes = "$_lt_dar_can_shared"; then
11388    output_verbose_link_cmd=func_echo_all
11389    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11390    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11391    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"
11392    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"
11393
11394  else
11395  ld_shlibs=no
11396  fi
11397
11398      ;;
11399
11400    dgux*)
11401      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402      hardcode_libdir_flag_spec='-L$libdir'
11403      hardcode_shlibpath_var=no
11404      ;;
11405
11406    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11407    # support.  Future versions do this automatically, but an explicit c++rt0.o
11408    # does not break anything, and helps significantly (at the cost of a little
11409    # extra space).
11410    freebsd2.2*)
11411      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11412      hardcode_libdir_flag_spec='-R$libdir'
11413      hardcode_direct=yes
11414      hardcode_shlibpath_var=no
11415      ;;
11416
11417    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11418    freebsd2.*)
11419      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11420      hardcode_direct=yes
11421      hardcode_minus_L=yes
11422      hardcode_shlibpath_var=no
11423      ;;
11424
11425    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11426    freebsd* | dragonfly*)
11427      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11428      hardcode_libdir_flag_spec='-R$libdir'
11429      hardcode_direct=yes
11430      hardcode_shlibpath_var=no
11431      ;;
11432
11433    hpux9*)
11434      if test yes = "$GCC"; then
11435	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'
11436      else
11437	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'
11438      fi
11439      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11440      hardcode_libdir_separator=:
11441      hardcode_direct=yes
11442
11443      # hardcode_minus_L: Not really in the search PATH,
11444      # but as the default location of the library.
11445      hardcode_minus_L=yes
11446      export_dynamic_flag_spec='$wl-E'
11447      ;;
11448
11449    hpux10*)
11450      if test yes,no = "$GCC,$with_gnu_ld"; then
11451	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11452      else
11453	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11454      fi
11455      if test no = "$with_gnu_ld"; then
11456	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11457	hardcode_libdir_separator=:
11458	hardcode_direct=yes
11459	hardcode_direct_absolute=yes
11460	export_dynamic_flag_spec='$wl-E'
11461	# hardcode_minus_L: Not really in the search PATH,
11462	# but as the default location of the library.
11463	hardcode_minus_L=yes
11464      fi
11465      ;;
11466
11467    hpux11*)
11468      if test yes,no = "$GCC,$with_gnu_ld"; then
11469	case $host_cpu in
11470	hppa*64*)
11471	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11472	  ;;
11473	ia64*)
11474	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11475	  ;;
11476	*)
11477	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11478	  ;;
11479	esac
11480      else
11481	case $host_cpu in
11482	hppa*64*)
11483	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11484	  ;;
11485	ia64*)
11486	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11487	  ;;
11488	*)
11489
11490	  # Older versions of the 11.00 compiler do not understand -b yet
11491	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11492	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11493$as_echo_n "checking if $CC understands -b... " >&6; }
11494if ${lt_cv_prog_compiler__b+:} false; then :
11495  $as_echo_n "(cached) " >&6
11496else
11497  lt_cv_prog_compiler__b=no
11498   save_LDFLAGS=$LDFLAGS
11499   LDFLAGS="$LDFLAGS -b"
11500   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11501   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11502     # The linker can only warn and ignore the option if not recognized
11503     # So say no if there are warnings
11504     if test -s conftest.err; then
11505       # Append any errors to the config.log.
11506       cat conftest.err 1>&5
11507       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11508       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11509       if diff conftest.exp conftest.er2 >/dev/null; then
11510         lt_cv_prog_compiler__b=yes
11511       fi
11512     else
11513       lt_cv_prog_compiler__b=yes
11514     fi
11515   fi
11516   $RM -r conftest*
11517   LDFLAGS=$save_LDFLAGS
11518
11519fi
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11521$as_echo "$lt_cv_prog_compiler__b" >&6; }
11522
11523if test yes = "$lt_cv_prog_compiler__b"; then
11524    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11525else
11526    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11527fi
11528
11529	  ;;
11530	esac
11531      fi
11532      if test no = "$with_gnu_ld"; then
11533	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11534	hardcode_libdir_separator=:
11535
11536	case $host_cpu in
11537	hppa*64*|ia64*)
11538	  hardcode_direct=no
11539	  hardcode_shlibpath_var=no
11540	  ;;
11541	*)
11542	  hardcode_direct=yes
11543	  hardcode_direct_absolute=yes
11544	  export_dynamic_flag_spec='$wl-E'
11545
11546	  # hardcode_minus_L: Not really in the search PATH,
11547	  # but as the default location of the library.
11548	  hardcode_minus_L=yes
11549	  ;;
11550	esac
11551      fi
11552      ;;
11553
11554    irix5* | irix6* | nonstopux*)
11555      if test yes = "$GCC"; then
11556	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'
11557	# Try to use the -exported_symbol ld option, if it does not
11558	# work, assume that -exports_file does not work either and
11559	# implicitly export all symbols.
11560	# This should be the same for all languages, so no per-tag cache variable.
11561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11562$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11563if ${lt_cv_irix_exported_symbol+:} false; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  save_LDFLAGS=$LDFLAGS
11567	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11568	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h.  */
11570int foo (void) { return 0; }
11571_ACEOF
11572if ac_fn_c_try_link "$LINENO"; then :
11573  lt_cv_irix_exported_symbol=yes
11574else
11575  lt_cv_irix_exported_symbol=no
11576fi
11577rm -f core conftest.err conftest.$ac_objext \
11578    conftest$ac_exeext conftest.$ac_ext
11579           LDFLAGS=$save_LDFLAGS
11580fi
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11582$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11583	if test yes = "$lt_cv_irix_exported_symbol"; then
11584          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'
11585	fi
11586      else
11587	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'
11588	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'
11589      fi
11590      archive_cmds_need_lc='no'
11591      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11592      hardcode_libdir_separator=:
11593      inherit_rpath=yes
11594      link_all_deplibs=yes
11595      ;;
11596
11597    linux*)
11598      case $cc_basename in
11599      tcc*)
11600	# Fabrice Bellard et al's Tiny C Compiler
11601	ld_shlibs=yes
11602	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11603	;;
11604      esac
11605      ;;
11606
11607    netbsd*)
11608      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11609	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11610      else
11611	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11612      fi
11613      hardcode_libdir_flag_spec='-R$libdir'
11614      hardcode_direct=yes
11615      hardcode_shlibpath_var=no
11616      ;;
11617
11618    newsos6)
11619      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11620      hardcode_direct=yes
11621      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11622      hardcode_libdir_separator=:
11623      hardcode_shlibpath_var=no
11624      ;;
11625
11626    *nto* | *qnx*)
11627      ;;
11628
11629    openbsd* | bitrig*)
11630      if test -f /usr/libexec/ld.so; then
11631	hardcode_direct=yes
11632	hardcode_shlibpath_var=no
11633	hardcode_direct_absolute=yes
11634	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11635	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11636	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11637	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11638	  export_dynamic_flag_spec='$wl-E'
11639	else
11640	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11641	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11642	fi
11643      else
11644	ld_shlibs=no
11645      fi
11646      ;;
11647
11648    os2*)
11649      hardcode_libdir_flag_spec='-L$libdir'
11650      hardcode_minus_L=yes
11651      allow_undefined_flag=unsupported
11652      shrext_cmds=.dll
11653      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11654	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11655	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11656	$ECHO EXPORTS >> $output_objdir/$libname.def~
11657	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11658	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11659	emximp -o $lib $output_objdir/$libname.def'
11660      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11661	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11662	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11663	$ECHO EXPORTS >> $output_objdir/$libname.def~
11664	prefix_cmds="$SED"~
11665	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11666	  prefix_cmds="$prefix_cmds -e 1d";
11667	fi~
11668	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11669	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11670	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11671	emximp -o $lib $output_objdir/$libname.def'
11672      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11673      enable_shared_with_static_runtimes=yes
11674      ;;
11675
11676    osf3*)
11677      if test yes = "$GCC"; then
11678	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11679	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'
11680      else
11681	allow_undefined_flag=' -expect_unresolved \*'
11682	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'
11683      fi
11684      archive_cmds_need_lc='no'
11685      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11686      hardcode_libdir_separator=:
11687      ;;
11688
11689    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11690      if test yes = "$GCC"; then
11691	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11692	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'
11693	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11694      else
11695	allow_undefined_flag=' -expect_unresolved \*'
11696	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'
11697	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~
11698          $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'
11699
11700	# Both c and cxx compiler support -rpath directly
11701	hardcode_libdir_flag_spec='-rpath $libdir'
11702      fi
11703      archive_cmds_need_lc='no'
11704      hardcode_libdir_separator=:
11705      ;;
11706
11707    solaris*)
11708      no_undefined_flag=' -z defs'
11709      if test yes = "$GCC"; then
11710	wlarc='$wl'
11711	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11712	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11713          $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'
11714      else
11715	case `$CC -V 2>&1` in
11716	*"Compilers 5.0"*)
11717	  wlarc=''
11718	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11719	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11720            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11721	  ;;
11722	*)
11723	  wlarc='$wl'
11724	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11725	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11726            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11727	  ;;
11728	esac
11729      fi
11730      hardcode_libdir_flag_spec='-R$libdir'
11731      hardcode_shlibpath_var=no
11732      case $host_os in
11733      solaris2.[0-5] | solaris2.[0-5].*) ;;
11734      *)
11735	# The compiler driver will combine and reorder linker options,
11736	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11737	# but is careful enough not to reorder.
11738	# Supported since Solaris 2.6 (maybe 2.5.1?)
11739	if test yes = "$GCC"; then
11740	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11741	else
11742	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11743	fi
11744	;;
11745      esac
11746      link_all_deplibs=yes
11747      ;;
11748
11749    sunos4*)
11750      if test sequent = "$host_vendor"; then
11751	# Use $CC to link under sequent, because it throws in some extra .o
11752	# files that make .init and .fini sections work.
11753	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11754      else
11755	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11756      fi
11757      hardcode_libdir_flag_spec='-L$libdir'
11758      hardcode_direct=yes
11759      hardcode_minus_L=yes
11760      hardcode_shlibpath_var=no
11761      ;;
11762
11763    sysv4)
11764      case $host_vendor in
11765	sni)
11766	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11767	  hardcode_direct=yes # is this really true???
11768	;;
11769	siemens)
11770	  ## LD is ld it makes a PLAMLIB
11771	  ## CC just makes a GrossModule.
11772	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11773	  reload_cmds='$CC -r -o $output$reload_objs'
11774	  hardcode_direct=no
11775        ;;
11776	motorola)
11777	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11778	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11779	;;
11780      esac
11781      runpath_var='LD_RUN_PATH'
11782      hardcode_shlibpath_var=no
11783      ;;
11784
11785    sysv4.3*)
11786      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11787      hardcode_shlibpath_var=no
11788      export_dynamic_flag_spec='-Bexport'
11789      ;;
11790
11791    sysv4*MP*)
11792      if test -d /usr/nec; then
11793	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11794	hardcode_shlibpath_var=no
11795	runpath_var=LD_RUN_PATH
11796	hardcode_runpath_var=yes
11797	ld_shlibs=yes
11798      fi
11799      ;;
11800
11801    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11802      no_undefined_flag='$wl-z,text'
11803      archive_cmds_need_lc=no
11804      hardcode_shlibpath_var=no
11805      runpath_var='LD_RUN_PATH'
11806
11807      if test yes = "$GCC"; then
11808	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11809	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11810      else
11811	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11812	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11813      fi
11814      ;;
11815
11816    sysv5* | sco3.2v5* | sco5v6*)
11817      # Note: We CANNOT use -z defs as we might desire, because we do not
11818      # link with -lc, and that would cause any symbols used from libc to
11819      # always be unresolved, which means just about no library would
11820      # ever link correctly.  If we're not using GNU ld we use -z text
11821      # though, which does catch some bad symbols but isn't as heavy-handed
11822      # as -z defs.
11823      no_undefined_flag='$wl-z,text'
11824      allow_undefined_flag='$wl-z,nodefs'
11825      archive_cmds_need_lc=no
11826      hardcode_shlibpath_var=no
11827      hardcode_libdir_flag_spec='$wl-R,$libdir'
11828      hardcode_libdir_separator=':'
11829      link_all_deplibs=yes
11830      export_dynamic_flag_spec='$wl-Bexport'
11831      runpath_var='LD_RUN_PATH'
11832
11833      if test yes = "$GCC"; then
11834	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836      else
11837	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839      fi
11840      ;;
11841
11842    uts4*)
11843      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11844      hardcode_libdir_flag_spec='-L$libdir'
11845      hardcode_shlibpath_var=no
11846      ;;
11847
11848    *)
11849      ld_shlibs=no
11850      ;;
11851    esac
11852
11853    if test sni = "$host_vendor"; then
11854      case $host in
11855      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11856	export_dynamic_flag_spec='$wl-Blargedynsym'
11857	;;
11858      esac
11859    fi
11860  fi
11861
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11863$as_echo "$ld_shlibs" >&6; }
11864test no = "$ld_shlibs" && can_build_shared=no
11865
11866with_gnu_ld=$with_gnu_ld
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882#
11883# Do we need to explicitly link libc?
11884#
11885case "x$archive_cmds_need_lc" in
11886x|xyes)
11887  # Assume -lc should be added
11888  archive_cmds_need_lc=yes
11889
11890  if test yes,yes = "$GCC,$enable_shared"; then
11891    case $archive_cmds in
11892    *'~'*)
11893      # FIXME: we may have to deal with multi-command sequences.
11894      ;;
11895    '$CC '*)
11896      # Test whether the compiler implicitly links with -lc since on some
11897      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11898      # to ld, don't add -lc before -lgcc.
11899      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11900$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11901if ${lt_cv_archive_cmds_need_lc+:} false; then :
11902  $as_echo_n "(cached) " >&6
11903else
11904  $RM conftest*
11905	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11906
11907	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11908  (eval $ac_compile) 2>&5
11909  ac_status=$?
11910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911  test $ac_status = 0; } 2>conftest.err; then
11912	  soname=conftest
11913	  lib=conftest
11914	  libobjs=conftest.$ac_objext
11915	  deplibs=
11916	  wl=$lt_prog_compiler_wl
11917	  pic_flag=$lt_prog_compiler_pic
11918	  compiler_flags=-v
11919	  linker_flags=-v
11920	  verstring=
11921	  output_objdir=.
11922	  libname=conftest
11923	  lt_save_allow_undefined_flag=$allow_undefined_flag
11924	  allow_undefined_flag=
11925	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11926  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11927  ac_status=$?
11928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11929  test $ac_status = 0; }
11930	  then
11931	    lt_cv_archive_cmds_need_lc=no
11932	  else
11933	    lt_cv_archive_cmds_need_lc=yes
11934	  fi
11935	  allow_undefined_flag=$lt_save_allow_undefined_flag
11936	else
11937	  cat conftest.err 1>&5
11938	fi
11939	$RM conftest*
11940
11941fi
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11943$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11944      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11945      ;;
11946    esac
11947  fi
11948  ;;
11949esac
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12103$as_echo_n "checking dynamic linker characteristics... " >&6; }
12104
12105if test yes = "$GCC"; then
12106  case $host_os in
12107    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12108    *) lt_awk_arg='/^libraries:/' ;;
12109  esac
12110  case $host_os in
12111    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12112    *) lt_sed_strip_eq='s|=/|/|g' ;;
12113  esac
12114  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12115  case $lt_search_path_spec in
12116  *\;*)
12117    # if the path contains ";" then we assume it to be the separator
12118    # otherwise default to the standard path separator (i.e. ":") - it is
12119    # assumed that no part of a normal pathname contains ";" but that should
12120    # okay in the real world where ";" in dirpaths is itself problematic.
12121    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12122    ;;
12123  *)
12124    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12125    ;;
12126  esac
12127  # Ok, now we have the path, separated by spaces, we can step through it
12128  # and add multilib dir if necessary...
12129  lt_tmp_lt_search_path_spec=
12130  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12131  # ...but if some path component already ends with the multilib dir we assume
12132  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12133  case "$lt_multi_os_dir; $lt_search_path_spec " in
12134  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12135    lt_multi_os_dir=
12136    ;;
12137  esac
12138  for lt_sys_path in $lt_search_path_spec; do
12139    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12140      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12141    elif test -n "$lt_multi_os_dir"; then
12142      test -d "$lt_sys_path" && \
12143	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12144    fi
12145  done
12146  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12147BEGIN {RS = " "; FS = "/|\n";} {
12148  lt_foo = "";
12149  lt_count = 0;
12150  for (lt_i = NF; lt_i > 0; lt_i--) {
12151    if ($lt_i != "" && $lt_i != ".") {
12152      if ($lt_i == "..") {
12153        lt_count++;
12154      } else {
12155        if (lt_count == 0) {
12156          lt_foo = "/" $lt_i lt_foo;
12157        } else {
12158          lt_count--;
12159        }
12160      }
12161    }
12162  }
12163  if (lt_foo != "") { lt_freq[lt_foo]++; }
12164  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12165}'`
12166  # AWK program above erroneously prepends '/' to C:/dos/paths
12167  # for these hosts.
12168  case $host_os in
12169    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12170      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12171  esac
12172  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12173else
12174  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12175fi
12176library_names_spec=
12177libname_spec='lib$name'
12178soname_spec=
12179shrext_cmds=.so
12180postinstall_cmds=
12181postuninstall_cmds=
12182finish_cmds=
12183finish_eval=
12184shlibpath_var=
12185shlibpath_overrides_runpath=unknown
12186version_type=none
12187dynamic_linker="$host_os ld.so"
12188sys_lib_dlsearch_path_spec="/lib /usr/lib"
12189need_lib_prefix=unknown
12190hardcode_into_libs=no
12191
12192# when you set need_version to no, make sure it does not cause -set_version
12193# flags to be left without arguments
12194need_version=unknown
12195
12196
12197
12198case $host_os in
12199aix3*)
12200  version_type=linux # correct to gnu/linux during the next big refactor
12201  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12202  shlibpath_var=LIBPATH
12203
12204  # AIX 3 has no versioning support, so we append a major version to the name.
12205  soname_spec='$libname$release$shared_ext$major'
12206  ;;
12207
12208aix[4-9]*)
12209  version_type=linux # correct to gnu/linux during the next big refactor
12210  need_lib_prefix=no
12211  need_version=no
12212  hardcode_into_libs=yes
12213  if test ia64 = "$host_cpu"; then
12214    # AIX 5 supports IA64
12215    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12216    shlibpath_var=LD_LIBRARY_PATH
12217  else
12218    # With GCC up to 2.95.x, collect2 would create an import file
12219    # for dependence libraries.  The import file would start with
12220    # the line '#! .'.  This would cause the generated library to
12221    # depend on '.', always an invalid library.  This was fixed in
12222    # development snapshots of GCC prior to 3.0.
12223    case $host_os in
12224      aix4 | aix4.[01] | aix4.[01].*)
12225      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12226	   echo ' yes '
12227	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12228	:
12229      else
12230	can_build_shared=no
12231      fi
12232      ;;
12233    esac
12234    # Using Import Files as archive members, it is possible to support
12235    # filename-based versioning of shared library archives on AIX. While
12236    # this would work for both with and without runtime linking, it will
12237    # prevent static linking of such archives. So we do filename-based
12238    # shared library versioning with .so extension only, which is used
12239    # when both runtime linking and shared linking is enabled.
12240    # Unfortunately, runtime linking may impact performance, so we do
12241    # not want this to be the default eventually. Also, we use the
12242    # versioned .so libs for executables only if there is the -brtl
12243    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12244    # To allow for filename-based versioning support, we need to create
12245    # libNAME.so.V as an archive file, containing:
12246    # *) an Import File, referring to the versioned filename of the
12247    #    archive as well as the shared archive member, telling the
12248    #    bitwidth (32 or 64) of that shared object, and providing the
12249    #    list of exported symbols of that shared object, eventually
12250    #    decorated with the 'weak' keyword
12251    # *) the shared object with the F_LOADONLY flag set, to really avoid
12252    #    it being seen by the linker.
12253    # At run time we better use the real file rather than another symlink,
12254    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12255
12256    case $with_aix_soname,$aix_use_runtimelinking in
12257    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12258    # soname into executable. Probably we can add versioning support to
12259    # collect2, so additional links can be useful in future.
12260    aix,yes) # traditional libtool
12261      dynamic_linker='AIX unversionable lib.so'
12262      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12263      # instead of lib<name>.a to let people know that these are not
12264      # typical AIX shared libraries.
12265      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12266      ;;
12267    aix,no) # traditional AIX only
12268      dynamic_linker='AIX lib.a(lib.so.V)'
12269      # We preserve .a as extension for shared libraries through AIX4.2
12270      # and later when we are not doing run time linking.
12271      library_names_spec='$libname$release.a $libname.a'
12272      soname_spec='$libname$release$shared_ext$major'
12273      ;;
12274    svr4,*) # full svr4 only
12275      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12276      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12277      # We do not specify a path in Import Files, so LIBPATH fires.
12278      shlibpath_overrides_runpath=yes
12279      ;;
12280    *,yes) # both, prefer svr4
12281      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12282      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12283      # unpreferred sharedlib libNAME.a needs extra handling
12284      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"'
12285      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"'
12286      # We do not specify a path in Import Files, so LIBPATH fires.
12287      shlibpath_overrides_runpath=yes
12288      ;;
12289    *,no) # both, prefer aix
12290      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12291      library_names_spec='$libname$release.a $libname.a'
12292      soname_spec='$libname$release$shared_ext$major'
12293      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12294      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)'
12295      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"'
12296      ;;
12297    esac
12298    shlibpath_var=LIBPATH
12299  fi
12300  ;;
12301
12302amigaos*)
12303  case $host_cpu in
12304  powerpc)
12305    # Since July 2007 AmigaOS4 officially supports .so libraries.
12306    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12307    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12308    ;;
12309  m68k)
12310    library_names_spec='$libname.ixlibrary $libname.a'
12311    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12312    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'
12313    ;;
12314  esac
12315  ;;
12316
12317beos*)
12318  library_names_spec='$libname$shared_ext'
12319  dynamic_linker="$host_os ld.so"
12320  shlibpath_var=LIBRARY_PATH
12321  ;;
12322
12323bsdi[45]*)
12324  version_type=linux # correct to gnu/linux during the next big refactor
12325  need_version=no
12326  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12327  soname_spec='$libname$release$shared_ext$major'
12328  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12329  shlibpath_var=LD_LIBRARY_PATH
12330  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12331  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12332  # the default ld.so.conf also contains /usr/contrib/lib and
12333  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12334  # libtool to hard-code these into programs
12335  ;;
12336
12337cygwin* | mingw* | pw32* | cegcc*)
12338  version_type=windows
12339  shrext_cmds=.dll
12340  need_version=no
12341  need_lib_prefix=no
12342
12343  case $GCC,$cc_basename in
12344  yes,*)
12345    # gcc
12346    library_names_spec='$libname.dll.a'
12347    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12348    postinstall_cmds='base_file=`basename \$file`~
12349      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12350      dldir=$destdir/`dirname \$dlpath`~
12351      test -d \$dldir || mkdir -p \$dldir~
12352      $install_prog $dir/$dlname \$dldir/$dlname~
12353      chmod a+x \$dldir/$dlname~
12354      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12355        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12356      fi'
12357    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12358      dlpath=$dir/\$dldll~
12359       $RM \$dlpath'
12360    shlibpath_overrides_runpath=yes
12361
12362    case $host_os in
12363    cygwin*)
12364      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12365      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12366
12367      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12368      ;;
12369    mingw* | cegcc*)
12370      # MinGW DLLs use traditional 'lib' prefix
12371      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12372      ;;
12373    pw32*)
12374      # pw32 DLLs use 'pw' prefix rather than 'lib'
12375      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12376      ;;
12377    esac
12378    dynamic_linker='Win32 ld.exe'
12379    ;;
12380
12381  *,cl*)
12382    # Native MSVC
12383    libname_spec='$name'
12384    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12385    library_names_spec='$libname.dll.lib'
12386
12387    case $build_os in
12388    mingw*)
12389      sys_lib_search_path_spec=
12390      lt_save_ifs=$IFS
12391      IFS=';'
12392      for lt_path in $LIB
12393      do
12394        IFS=$lt_save_ifs
12395        # Let DOS variable expansion print the short 8.3 style file name.
12396        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12397        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12398      done
12399      IFS=$lt_save_ifs
12400      # Convert to MSYS style.
12401      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12402      ;;
12403    cygwin*)
12404      # Convert to unix form, then to dos form, then back to unix form
12405      # but this time dos style (no spaces!) so that the unix form looks
12406      # like /cygdrive/c/PROGRA~1:/cygdr...
12407      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12408      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12409      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12410      ;;
12411    *)
12412      sys_lib_search_path_spec=$LIB
12413      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12414        # It is most probably a Windows format PATH.
12415        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12416      else
12417        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12418      fi
12419      # FIXME: find the short name or the path components, as spaces are
12420      # common. (e.g. "Program Files" -> "PROGRA~1")
12421      ;;
12422    esac
12423
12424    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12425    postinstall_cmds='base_file=`basename \$file`~
12426      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12427      dldir=$destdir/`dirname \$dlpath`~
12428      test -d \$dldir || mkdir -p \$dldir~
12429      $install_prog $dir/$dlname \$dldir/$dlname'
12430    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12431      dlpath=$dir/\$dldll~
12432       $RM \$dlpath'
12433    shlibpath_overrides_runpath=yes
12434    dynamic_linker='Win32 link.exe'
12435    ;;
12436
12437  *)
12438    # Assume MSVC wrapper
12439    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12440    dynamic_linker='Win32 ld.exe'
12441    ;;
12442  esac
12443  # FIXME: first we should search . and the directory the executable is in
12444  shlibpath_var=PATH
12445  ;;
12446
12447darwin* | rhapsody*)
12448  dynamic_linker="$host_os dyld"
12449  version_type=darwin
12450  need_lib_prefix=no
12451  need_version=no
12452  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12453  soname_spec='$libname$release$major$shared_ext'
12454  shlibpath_overrides_runpath=yes
12455  shlibpath_var=DYLD_LIBRARY_PATH
12456  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12457
12458  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12459  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12460  ;;
12461
12462dgux*)
12463  version_type=linux # correct to gnu/linux during the next big refactor
12464  need_lib_prefix=no
12465  need_version=no
12466  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467  soname_spec='$libname$release$shared_ext$major'
12468  shlibpath_var=LD_LIBRARY_PATH
12469  ;;
12470
12471freebsd* | dragonfly*)
12472  # DragonFly does not have aout.  When/if they implement a new
12473  # versioning mechanism, adjust this.
12474  if test -x /usr/bin/objformat; then
12475    objformat=`/usr/bin/objformat`
12476  else
12477    case $host_os in
12478    freebsd[23].*) objformat=aout ;;
12479    *) objformat=elf ;;
12480    esac
12481  fi
12482  version_type=freebsd-$objformat
12483  case $version_type in
12484    freebsd-elf*)
12485      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12486      soname_spec='$libname$release$shared_ext$major'
12487      need_version=no
12488      need_lib_prefix=no
12489      ;;
12490    freebsd-*)
12491      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12492      need_version=yes
12493      ;;
12494  esac
12495  shlibpath_var=LD_LIBRARY_PATH
12496  case $host_os in
12497  freebsd2.*)
12498    shlibpath_overrides_runpath=yes
12499    ;;
12500  freebsd3.[01]* | freebsdelf3.[01]*)
12501    shlibpath_overrides_runpath=yes
12502    hardcode_into_libs=yes
12503    ;;
12504  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12505  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12506    shlibpath_overrides_runpath=no
12507    hardcode_into_libs=yes
12508    ;;
12509  *) # from 4.6 on, and DragonFly
12510    shlibpath_overrides_runpath=yes
12511    hardcode_into_libs=yes
12512    ;;
12513  esac
12514  ;;
12515
12516haiku*)
12517  version_type=linux # correct to gnu/linux during the next big refactor
12518  need_lib_prefix=no
12519  need_version=no
12520  dynamic_linker="$host_os runtime_loader"
12521  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12522  soname_spec='$libname$release$shared_ext$major'
12523  shlibpath_var=LIBRARY_PATH
12524  shlibpath_overrides_runpath=no
12525  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12526  hardcode_into_libs=yes
12527  ;;
12528
12529hpux9* | hpux10* | hpux11*)
12530  # Give a soname corresponding to the major version so that dld.sl refuses to
12531  # link against other versions.
12532  version_type=sunos
12533  need_lib_prefix=no
12534  need_version=no
12535  case $host_cpu in
12536  ia64*)
12537    shrext_cmds='.so'
12538    hardcode_into_libs=yes
12539    dynamic_linker="$host_os dld.so"
12540    shlibpath_var=LD_LIBRARY_PATH
12541    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12542    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12543    soname_spec='$libname$release$shared_ext$major'
12544    if test 32 = "$HPUX_IA64_MODE"; then
12545      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12546      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12547    else
12548      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12549      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12550    fi
12551    ;;
12552  hppa*64*)
12553    shrext_cmds='.sl'
12554    hardcode_into_libs=yes
12555    dynamic_linker="$host_os dld.sl"
12556    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12557    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12558    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12559    soname_spec='$libname$release$shared_ext$major'
12560    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12561    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12562    ;;
12563  *)
12564    shrext_cmds='.sl'
12565    dynamic_linker="$host_os dld.sl"
12566    shlibpath_var=SHLIB_PATH
12567    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12568    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12569    soname_spec='$libname$release$shared_ext$major'
12570    ;;
12571  esac
12572  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12573  postinstall_cmds='chmod 555 $lib'
12574  # or fails outright, so override atomically:
12575  install_override_mode=555
12576  ;;
12577
12578interix[3-9]*)
12579  version_type=linux # correct to gnu/linux during the next big refactor
12580  need_lib_prefix=no
12581  need_version=no
12582  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583  soname_spec='$libname$release$shared_ext$major'
12584  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12585  shlibpath_var=LD_LIBRARY_PATH
12586  shlibpath_overrides_runpath=no
12587  hardcode_into_libs=yes
12588  ;;
12589
12590irix5* | irix6* | nonstopux*)
12591  case $host_os in
12592    nonstopux*) version_type=nonstopux ;;
12593    *)
12594	if test yes = "$lt_cv_prog_gnu_ld"; then
12595		version_type=linux # correct to gnu/linux during the next big refactor
12596	else
12597		version_type=irix
12598	fi ;;
12599  esac
12600  need_lib_prefix=no
12601  need_version=no
12602  soname_spec='$libname$release$shared_ext$major'
12603  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12604  case $host_os in
12605  irix5* | nonstopux*)
12606    libsuff= shlibsuff=
12607    ;;
12608  *)
12609    case $LD in # libtool.m4 will add one of these switches to LD
12610    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12611      libsuff= shlibsuff= libmagic=32-bit;;
12612    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12613      libsuff=32 shlibsuff=N32 libmagic=N32;;
12614    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12615      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12616    *) libsuff= shlibsuff= libmagic=never-match;;
12617    esac
12618    ;;
12619  esac
12620  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12621  shlibpath_overrides_runpath=no
12622  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12623  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12624  hardcode_into_libs=yes
12625  ;;
12626
12627# No shared lib support for Linux oldld, aout, or coff.
12628linux*oldld* | linux*aout* | linux*coff*)
12629  dynamic_linker=no
12630  ;;
12631
12632linux*android*)
12633  version_type=none # Android doesn't support versioned libraries.
12634  need_lib_prefix=no
12635  need_version=no
12636  library_names_spec='$libname$release$shared_ext'
12637  soname_spec='$libname$release$shared_ext'
12638  finish_cmds=
12639  shlibpath_var=LD_LIBRARY_PATH
12640  shlibpath_overrides_runpath=yes
12641
12642  # This implies no fast_install, which is unacceptable.
12643  # Some rework will be needed to allow for fast_install
12644  # before this can be enabled.
12645  hardcode_into_libs=yes
12646
12647  dynamic_linker='Android linker'
12648  # Don't embed -rpath directories since the linker doesn't support them.
12649  hardcode_libdir_flag_spec='-L$libdir'
12650  ;;
12651
12652# This must be glibc/ELF.
12653linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12654  version_type=linux # correct to gnu/linux during the next big refactor
12655  need_lib_prefix=no
12656  need_version=no
12657  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12658  soname_spec='$libname$release$shared_ext$major'
12659  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12660  shlibpath_var=LD_LIBRARY_PATH
12661  shlibpath_overrides_runpath=no
12662
12663  # Some binutils ld are patched to set DT_RUNPATH
12664  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12665  $as_echo_n "(cached) " >&6
12666else
12667  lt_cv_shlibpath_overrides_runpath=no
12668    save_LDFLAGS=$LDFLAGS
12669    save_libdir=$libdir
12670    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12671	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h.  */
12674
12675int
12676main ()
12677{
12678
12679  ;
12680  return 0;
12681}
12682_ACEOF
12683if ac_fn_c_try_link "$LINENO"; then :
12684  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12685  lt_cv_shlibpath_overrides_runpath=yes
12686fi
12687fi
12688rm -f core conftest.err conftest.$ac_objext \
12689    conftest$ac_exeext conftest.$ac_ext
12690    LDFLAGS=$save_LDFLAGS
12691    libdir=$save_libdir
12692
12693fi
12694
12695  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12696
12697  # This implies no fast_install, which is unacceptable.
12698  # Some rework will be needed to allow for fast_install
12699  # before this can be enabled.
12700  hardcode_into_libs=yes
12701
12702  # Add ABI-specific directories to the system library path.
12703  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12704
12705  # Ideally, we could use ldconfig to report *all* directores which are
12706  # searched for libraries, however this is still not possible.  Aside from not
12707  # being certain /sbin/ldconfig is available, command
12708  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12709  # even though it is searched at run-time.  Try to do the best guess by
12710  # appending ld.so.conf contents (and includes) to the search path.
12711  if test -f /etc/ld.so.conf; then
12712    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' ' '`
12713    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12714  fi
12715
12716  # We used to test for /lib/ld.so.1 and disable shared libraries on
12717  # powerpc, because MkLinux only supported shared libraries with the
12718  # GNU dynamic linker.  Since this was broken with cross compilers,
12719  # most powerpc-linux boxes support dynamic linking these days and
12720  # people can always --disable-shared, the test was removed, and we
12721  # assume the GNU/Linux dynamic linker is in use.
12722  dynamic_linker='GNU/Linux ld.so'
12723  ;;
12724
12725netbsd*)
12726  version_type=sunos
12727  need_lib_prefix=no
12728  need_version=no
12729  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12730    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12731    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12732    dynamic_linker='NetBSD (a.out) ld.so'
12733  else
12734    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12735    soname_spec='$libname$release$shared_ext$major'
12736    dynamic_linker='NetBSD ld.elf_so'
12737  fi
12738  shlibpath_var=LD_LIBRARY_PATH
12739  shlibpath_overrides_runpath=yes
12740  hardcode_into_libs=yes
12741  ;;
12742
12743newsos6)
12744  version_type=linux # correct to gnu/linux during the next big refactor
12745  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12746  shlibpath_var=LD_LIBRARY_PATH
12747  shlibpath_overrides_runpath=yes
12748  ;;
12749
12750*nto* | *qnx*)
12751  version_type=qnx
12752  need_lib_prefix=no
12753  need_version=no
12754  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12755  soname_spec='$libname$release$shared_ext$major'
12756  shlibpath_var=LD_LIBRARY_PATH
12757  shlibpath_overrides_runpath=no
12758  hardcode_into_libs=yes
12759  dynamic_linker='ldqnx.so'
12760  ;;
12761
12762openbsd* | bitrig*)
12763  version_type=sunos
12764  sys_lib_dlsearch_path_spec=/usr/lib
12765  need_lib_prefix=no
12766  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12767    need_version=no
12768  else
12769    need_version=yes
12770  fi
12771  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12772  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12773  shlibpath_var=LD_LIBRARY_PATH
12774  shlibpath_overrides_runpath=yes
12775  ;;
12776
12777os2*)
12778  libname_spec='$name'
12779  version_type=windows
12780  shrext_cmds=.dll
12781  need_version=no
12782  need_lib_prefix=no
12783  # OS/2 can only load a DLL with a base name of 8 characters or less.
12784  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12785    v=$($ECHO $release$versuffix | tr -d .-);
12786    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12787    $ECHO $n$v`$shared_ext'
12788  library_names_spec='${libname}_dll.$libext'
12789  dynamic_linker='OS/2 ld.exe'
12790  shlibpath_var=BEGINLIBPATH
12791  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12792  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12793  postinstall_cmds='base_file=`basename \$file`~
12794    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12795    dldir=$destdir/`dirname \$dlpath`~
12796    test -d \$dldir || mkdir -p \$dldir~
12797    $install_prog $dir/$dlname \$dldir/$dlname~
12798    chmod a+x \$dldir/$dlname~
12799    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12800      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12801    fi'
12802  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12803    dlpath=$dir/\$dldll~
12804    $RM \$dlpath'
12805  ;;
12806
12807osf3* | osf4* | osf5*)
12808  version_type=osf
12809  need_lib_prefix=no
12810  need_version=no
12811  soname_spec='$libname$release$shared_ext$major'
12812  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12813  shlibpath_var=LD_LIBRARY_PATH
12814  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12815  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12816  ;;
12817
12818rdos*)
12819  dynamic_linker=no
12820  ;;
12821
12822solaris*)
12823  version_type=linux # correct to gnu/linux during the next big refactor
12824  need_lib_prefix=no
12825  need_version=no
12826  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12827  soname_spec='$libname$release$shared_ext$major'
12828  shlibpath_var=LD_LIBRARY_PATH
12829  shlibpath_overrides_runpath=yes
12830  hardcode_into_libs=yes
12831  # ldd complains unless libraries are executable
12832  postinstall_cmds='chmod +x $lib'
12833  ;;
12834
12835sunos4*)
12836  version_type=sunos
12837  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12838  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12839  shlibpath_var=LD_LIBRARY_PATH
12840  shlibpath_overrides_runpath=yes
12841  if test yes = "$with_gnu_ld"; then
12842    need_lib_prefix=no
12843  fi
12844  need_version=yes
12845  ;;
12846
12847sysv4 | sysv4.3*)
12848  version_type=linux # correct to gnu/linux during the next big refactor
12849  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12850  soname_spec='$libname$release$shared_ext$major'
12851  shlibpath_var=LD_LIBRARY_PATH
12852  case $host_vendor in
12853    sni)
12854      shlibpath_overrides_runpath=no
12855      need_lib_prefix=no
12856      runpath_var=LD_RUN_PATH
12857      ;;
12858    siemens)
12859      need_lib_prefix=no
12860      ;;
12861    motorola)
12862      need_lib_prefix=no
12863      need_version=no
12864      shlibpath_overrides_runpath=no
12865      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12866      ;;
12867  esac
12868  ;;
12869
12870sysv4*MP*)
12871  if test -d /usr/nec; then
12872    version_type=linux # correct to gnu/linux during the next big refactor
12873    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12874    soname_spec='$libname$shared_ext.$major'
12875    shlibpath_var=LD_LIBRARY_PATH
12876  fi
12877  ;;
12878
12879sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12880  version_type=sco
12881  need_lib_prefix=no
12882  need_version=no
12883  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12884  soname_spec='$libname$release$shared_ext$major'
12885  shlibpath_var=LD_LIBRARY_PATH
12886  shlibpath_overrides_runpath=yes
12887  hardcode_into_libs=yes
12888  if test yes = "$with_gnu_ld"; then
12889    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12890  else
12891    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12892    case $host_os in
12893      sco3.2v5*)
12894        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12895	;;
12896    esac
12897  fi
12898  sys_lib_dlsearch_path_spec='/usr/lib'
12899  ;;
12900
12901tpf*)
12902  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12903  version_type=linux # correct to gnu/linux during the next big refactor
12904  need_lib_prefix=no
12905  need_version=no
12906  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12907  shlibpath_var=LD_LIBRARY_PATH
12908  shlibpath_overrides_runpath=no
12909  hardcode_into_libs=yes
12910  ;;
12911
12912uts4*)
12913  version_type=linux # correct to gnu/linux during the next big refactor
12914  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12915  soname_spec='$libname$release$shared_ext$major'
12916  shlibpath_var=LD_LIBRARY_PATH
12917  ;;
12918
12919*)
12920  dynamic_linker=no
12921  ;;
12922esac
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12924$as_echo "$dynamic_linker" >&6; }
12925test no = "$dynamic_linker" && can_build_shared=no
12926
12927variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12928if test yes = "$GCC"; then
12929  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12930fi
12931
12932if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12933  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12934fi
12935
12936if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12937  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12938fi
12939
12940# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12941configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12942
12943# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12944func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12945
12946# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12947configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13046$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13047hardcode_action=
13048if test -n "$hardcode_libdir_flag_spec" ||
13049   test -n "$runpath_var" ||
13050   test yes = "$hardcode_automatic"; then
13051
13052  # We can hardcode non-existent directories.
13053  if test no != "$hardcode_direct" &&
13054     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13055     # have to relink, otherwise we might link with an installed library
13056     # when we should be linking with a yet-to-be-installed one
13057     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13058     test no != "$hardcode_minus_L"; then
13059    # Linking always hardcodes the temporary library directory.
13060    hardcode_action=relink
13061  else
13062    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13063    hardcode_action=immediate
13064  fi
13065else
13066  # We cannot hardcode anything, or else we can only hardcode existing
13067  # directories.
13068  hardcode_action=unsupported
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13071$as_echo "$hardcode_action" >&6; }
13072
13073if test relink = "$hardcode_action" ||
13074   test yes = "$inherit_rpath"; then
13075  # Fast installation is not supported
13076  enable_fast_install=no
13077elif test yes = "$shlibpath_overrides_runpath" ||
13078     test no = "$enable_shared"; then
13079  # Fast installation is not necessary
13080  enable_fast_install=needless
13081fi
13082
13083
13084
13085
13086
13087
13088  if test yes != "$enable_dlopen"; then
13089  enable_dlopen=unknown
13090  enable_dlopen_self=unknown
13091  enable_dlopen_self_static=unknown
13092else
13093  lt_cv_dlopen=no
13094  lt_cv_dlopen_libs=
13095
13096  case $host_os in
13097  beos*)
13098    lt_cv_dlopen=load_add_on
13099    lt_cv_dlopen_libs=
13100    lt_cv_dlopen_self=yes
13101    ;;
13102
13103  mingw* | pw32* | cegcc*)
13104    lt_cv_dlopen=LoadLibrary
13105    lt_cv_dlopen_libs=
13106    ;;
13107
13108  cygwin*)
13109    lt_cv_dlopen=dlopen
13110    lt_cv_dlopen_libs=
13111    ;;
13112
13113  darwin*)
13114    # if libdl is installed we need to link against it
13115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13116$as_echo_n "checking for dlopen in -ldl... " >&6; }
13117if ${ac_cv_lib_dl_dlopen+:} false; then :
13118  $as_echo_n "(cached) " >&6
13119else
13120  ac_check_lib_save_LIBS=$LIBS
13121LIBS="-ldl  $LIBS"
13122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123/* end confdefs.h.  */
13124
13125/* Override any GCC internal prototype to avoid an error.
13126   Use char because int might match the return type of a GCC
13127   builtin and then its argument prototype would still apply.  */
13128#ifdef __cplusplus
13129extern "C"
13130#endif
13131char dlopen ();
13132int
13133main ()
13134{
13135return dlopen ();
13136  ;
13137  return 0;
13138}
13139_ACEOF
13140if ac_fn_c_try_link "$LINENO"; then :
13141  ac_cv_lib_dl_dlopen=yes
13142else
13143  ac_cv_lib_dl_dlopen=no
13144fi
13145rm -f core conftest.err conftest.$ac_objext \
13146    conftest$ac_exeext conftest.$ac_ext
13147LIBS=$ac_check_lib_save_LIBS
13148fi
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13150$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13151if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13152  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13153else
13154
13155    lt_cv_dlopen=dyld
13156    lt_cv_dlopen_libs=
13157    lt_cv_dlopen_self=yes
13158
13159fi
13160
13161    ;;
13162
13163  tpf*)
13164    # Don't try to run any link tests for TPF.  We know it's impossible
13165    # because TPF is a cross-compiler, and we know how we open DSOs.
13166    lt_cv_dlopen=dlopen
13167    lt_cv_dlopen_libs=
13168    lt_cv_dlopen_self=no
13169    ;;
13170
13171  *)
13172    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13173if test "x$ac_cv_func_shl_load" = xyes; then :
13174  lt_cv_dlopen=shl_load
13175else
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13177$as_echo_n "checking for shl_load in -ldld... " >&6; }
13178if ${ac_cv_lib_dld_shl_load+:} false; then :
13179  $as_echo_n "(cached) " >&6
13180else
13181  ac_check_lib_save_LIBS=$LIBS
13182LIBS="-ldld  $LIBS"
13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184/* end confdefs.h.  */
13185
13186/* Override any GCC internal prototype to avoid an error.
13187   Use char because int might match the return type of a GCC
13188   builtin and then its argument prototype would still apply.  */
13189#ifdef __cplusplus
13190extern "C"
13191#endif
13192char shl_load ();
13193int
13194main ()
13195{
13196return shl_load ();
13197  ;
13198  return 0;
13199}
13200_ACEOF
13201if ac_fn_c_try_link "$LINENO"; then :
13202  ac_cv_lib_dld_shl_load=yes
13203else
13204  ac_cv_lib_dld_shl_load=no
13205fi
13206rm -f core conftest.err conftest.$ac_objext \
13207    conftest$ac_exeext conftest.$ac_ext
13208LIBS=$ac_check_lib_save_LIBS
13209fi
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13211$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13212if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13213  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13214else
13215  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13216if test "x$ac_cv_func_dlopen" = xyes; then :
13217  lt_cv_dlopen=dlopen
13218else
13219  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13220$as_echo_n "checking for dlopen in -ldl... " >&6; }
13221if ${ac_cv_lib_dl_dlopen+:} false; then :
13222  $as_echo_n "(cached) " >&6
13223else
13224  ac_check_lib_save_LIBS=$LIBS
13225LIBS="-ldl  $LIBS"
13226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227/* end confdefs.h.  */
13228
13229/* Override any GCC internal prototype to avoid an error.
13230   Use char because int might match the return type of a GCC
13231   builtin and then its argument prototype would still apply.  */
13232#ifdef __cplusplus
13233extern "C"
13234#endif
13235char dlopen ();
13236int
13237main ()
13238{
13239return dlopen ();
13240  ;
13241  return 0;
13242}
13243_ACEOF
13244if ac_fn_c_try_link "$LINENO"; then :
13245  ac_cv_lib_dl_dlopen=yes
13246else
13247  ac_cv_lib_dl_dlopen=no
13248fi
13249rm -f core conftest.err conftest.$ac_objext \
13250    conftest$ac_exeext conftest.$ac_ext
13251LIBS=$ac_check_lib_save_LIBS
13252fi
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13254$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13255if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13256  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13257else
13258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13259$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13260if ${ac_cv_lib_svld_dlopen+:} false; then :
13261  $as_echo_n "(cached) " >&6
13262else
13263  ac_check_lib_save_LIBS=$LIBS
13264LIBS="-lsvld  $LIBS"
13265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266/* end confdefs.h.  */
13267
13268/* Override any GCC internal prototype to avoid an error.
13269   Use char because int might match the return type of a GCC
13270   builtin and then its argument prototype would still apply.  */
13271#ifdef __cplusplus
13272extern "C"
13273#endif
13274char dlopen ();
13275int
13276main ()
13277{
13278return dlopen ();
13279  ;
13280  return 0;
13281}
13282_ACEOF
13283if ac_fn_c_try_link "$LINENO"; then :
13284  ac_cv_lib_svld_dlopen=yes
13285else
13286  ac_cv_lib_svld_dlopen=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext \
13289    conftest$ac_exeext conftest.$ac_ext
13290LIBS=$ac_check_lib_save_LIBS
13291fi
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13293$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13294if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13295  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13296else
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13298$as_echo_n "checking for dld_link in -ldld... " >&6; }
13299if ${ac_cv_lib_dld_dld_link+:} false; then :
13300  $as_echo_n "(cached) " >&6
13301else
13302  ac_check_lib_save_LIBS=$LIBS
13303LIBS="-ldld  $LIBS"
13304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306
13307/* Override any GCC internal prototype to avoid an error.
13308   Use char because int might match the return type of a GCC
13309   builtin and then its argument prototype would still apply.  */
13310#ifdef __cplusplus
13311extern "C"
13312#endif
13313char dld_link ();
13314int
13315main ()
13316{
13317return dld_link ();
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322if ac_fn_c_try_link "$LINENO"; then :
13323  ac_cv_lib_dld_dld_link=yes
13324else
13325  ac_cv_lib_dld_dld_link=no
13326fi
13327rm -f core conftest.err conftest.$ac_objext \
13328    conftest$ac_exeext conftest.$ac_ext
13329LIBS=$ac_check_lib_save_LIBS
13330fi
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13332$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13333if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13334  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13335fi
13336
13337
13338fi
13339
13340
13341fi
13342
13343
13344fi
13345
13346
13347fi
13348
13349
13350fi
13351
13352    ;;
13353  esac
13354
13355  if test no = "$lt_cv_dlopen"; then
13356    enable_dlopen=no
13357  else
13358    enable_dlopen=yes
13359  fi
13360
13361  case $lt_cv_dlopen in
13362  dlopen)
13363    save_CPPFLAGS=$CPPFLAGS
13364    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13365
13366    save_LDFLAGS=$LDFLAGS
13367    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13368
13369    save_LIBS=$LIBS
13370    LIBS="$lt_cv_dlopen_libs $LIBS"
13371
13372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13373$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13374if ${lt_cv_dlopen_self+:} false; then :
13375  $as_echo_n "(cached) " >&6
13376else
13377  	  if test yes = "$cross_compiling"; then :
13378  lt_cv_dlopen_self=cross
13379else
13380  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13381  lt_status=$lt_dlunknown
13382  cat > conftest.$ac_ext <<_LT_EOF
13383#line $LINENO "configure"
13384#include "confdefs.h"
13385
13386#if HAVE_DLFCN_H
13387#include <dlfcn.h>
13388#endif
13389
13390#include <stdio.h>
13391
13392#ifdef RTLD_GLOBAL
13393#  define LT_DLGLOBAL		RTLD_GLOBAL
13394#else
13395#  ifdef DL_GLOBAL
13396#    define LT_DLGLOBAL		DL_GLOBAL
13397#  else
13398#    define LT_DLGLOBAL		0
13399#  endif
13400#endif
13401
13402/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13403   find out it does not work in some platform. */
13404#ifndef LT_DLLAZY_OR_NOW
13405#  ifdef RTLD_LAZY
13406#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13407#  else
13408#    ifdef DL_LAZY
13409#      define LT_DLLAZY_OR_NOW		DL_LAZY
13410#    else
13411#      ifdef RTLD_NOW
13412#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13413#      else
13414#        ifdef DL_NOW
13415#          define LT_DLLAZY_OR_NOW	DL_NOW
13416#        else
13417#          define LT_DLLAZY_OR_NOW	0
13418#        endif
13419#      endif
13420#    endif
13421#  endif
13422#endif
13423
13424/* When -fvisibility=hidden is used, assume the code has been annotated
13425   correspondingly for the symbols needed.  */
13426#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13427int fnord () __attribute__((visibility("default")));
13428#endif
13429
13430int fnord () { return 42; }
13431int main ()
13432{
13433  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13434  int status = $lt_dlunknown;
13435
13436  if (self)
13437    {
13438      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13439      else
13440        {
13441	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13442          else puts (dlerror ());
13443	}
13444      /* dlclose (self); */
13445    }
13446  else
13447    puts (dlerror ());
13448
13449  return status;
13450}
13451_LT_EOF
13452  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13453  (eval $ac_link) 2>&5
13454  ac_status=$?
13455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13456  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13457    (./conftest; exit; ) >&5 2>/dev/null
13458    lt_status=$?
13459    case x$lt_status in
13460      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13461      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13462      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13463    esac
13464  else :
13465    # compilation failed
13466    lt_cv_dlopen_self=no
13467  fi
13468fi
13469rm -fr conftest*
13470
13471
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13474$as_echo "$lt_cv_dlopen_self" >&6; }
13475
13476    if test yes = "$lt_cv_dlopen_self"; then
13477      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13478      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13479$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13480if ${lt_cv_dlopen_self_static+:} false; then :
13481  $as_echo_n "(cached) " >&6
13482else
13483  	  if test yes = "$cross_compiling"; then :
13484  lt_cv_dlopen_self_static=cross
13485else
13486  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13487  lt_status=$lt_dlunknown
13488  cat > conftest.$ac_ext <<_LT_EOF
13489#line $LINENO "configure"
13490#include "confdefs.h"
13491
13492#if HAVE_DLFCN_H
13493#include <dlfcn.h>
13494#endif
13495
13496#include <stdio.h>
13497
13498#ifdef RTLD_GLOBAL
13499#  define LT_DLGLOBAL		RTLD_GLOBAL
13500#else
13501#  ifdef DL_GLOBAL
13502#    define LT_DLGLOBAL		DL_GLOBAL
13503#  else
13504#    define LT_DLGLOBAL		0
13505#  endif
13506#endif
13507
13508/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13509   find out it does not work in some platform. */
13510#ifndef LT_DLLAZY_OR_NOW
13511#  ifdef RTLD_LAZY
13512#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13513#  else
13514#    ifdef DL_LAZY
13515#      define LT_DLLAZY_OR_NOW		DL_LAZY
13516#    else
13517#      ifdef RTLD_NOW
13518#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13519#      else
13520#        ifdef DL_NOW
13521#          define LT_DLLAZY_OR_NOW	DL_NOW
13522#        else
13523#          define LT_DLLAZY_OR_NOW	0
13524#        endif
13525#      endif
13526#    endif
13527#  endif
13528#endif
13529
13530/* When -fvisibility=hidden is used, assume the code has been annotated
13531   correspondingly for the symbols needed.  */
13532#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13533int fnord () __attribute__((visibility("default")));
13534#endif
13535
13536int fnord () { return 42; }
13537int main ()
13538{
13539  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13540  int status = $lt_dlunknown;
13541
13542  if (self)
13543    {
13544      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13545      else
13546        {
13547	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13548          else puts (dlerror ());
13549	}
13550      /* dlclose (self); */
13551    }
13552  else
13553    puts (dlerror ());
13554
13555  return status;
13556}
13557_LT_EOF
13558  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13559  (eval $ac_link) 2>&5
13560  ac_status=$?
13561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13563    (./conftest; exit; ) >&5 2>/dev/null
13564    lt_status=$?
13565    case x$lt_status in
13566      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13567      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13568      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13569    esac
13570  else :
13571    # compilation failed
13572    lt_cv_dlopen_self_static=no
13573  fi
13574fi
13575rm -fr conftest*
13576
13577
13578fi
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13580$as_echo "$lt_cv_dlopen_self_static" >&6; }
13581    fi
13582
13583    CPPFLAGS=$save_CPPFLAGS
13584    LDFLAGS=$save_LDFLAGS
13585    LIBS=$save_LIBS
13586    ;;
13587  esac
13588
13589  case $lt_cv_dlopen_self in
13590  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13591  *) enable_dlopen_self=unknown ;;
13592  esac
13593
13594  case $lt_cv_dlopen_self_static in
13595  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13596  *) enable_dlopen_self_static=unknown ;;
13597  esac
13598fi
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616striplib=
13617old_striplib=
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13619$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13620if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13621  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13622  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13624$as_echo "yes" >&6; }
13625else
13626# FIXME - insert some real tests, host_os isn't really good enough
13627  case $host_os in
13628  darwin*)
13629    if test -n "$STRIP"; then
13630      striplib="$STRIP -x"
13631      old_striplib="$STRIP -S"
13632      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633$as_echo "yes" >&6; }
13634    else
13635      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636$as_echo "no" >&6; }
13637    fi
13638    ;;
13639  *)
13640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641$as_echo "no" >&6; }
13642    ;;
13643  esac
13644fi
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657  # Report what library types will actually be built
13658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13659$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13661$as_echo "$can_build_shared" >&6; }
13662
13663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13664$as_echo_n "checking whether to build shared libraries... " >&6; }
13665  test no = "$can_build_shared" && enable_shared=no
13666
13667  # On AIX, shared libraries and static libraries use the same namespace, and
13668  # are all built from PIC.
13669  case $host_os in
13670  aix3*)
13671    test yes = "$enable_shared" && enable_static=no
13672    if test -n "$RANLIB"; then
13673      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13674      postinstall_cmds='$RANLIB $lib'
13675    fi
13676    ;;
13677
13678  aix[4-9]*)
13679    if test ia64 != "$host_cpu"; then
13680      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13681      yes,aix,yes) ;;			# shared object as lib.so file only
13682      yes,svr4,*) ;;			# shared object as lib.so archive member only
13683      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13684      esac
13685    fi
13686    ;;
13687  esac
13688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13689$as_echo "$enable_shared" >&6; }
13690
13691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13692$as_echo_n "checking whether to build static libraries... " >&6; }
13693  # Make sure either enable_shared or enable_static is yes.
13694  test yes = "$enable_shared" || enable_static=yes
13695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13696$as_echo "$enable_static" >&6; }
13697
13698
13699
13700
13701fi
13702ac_ext=c
13703ac_cpp='$CPP $CPPFLAGS'
13704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706ac_compiler_gnu=$ac_cv_c_compiler_gnu
13707
13708CC=$lt_save_CC
13709
13710      if test -n "$CXX" && ( test no != "$CXX" &&
13711    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13712    (test g++ != "$CXX"))); then
13713  ac_ext=cpp
13714ac_cpp='$CXXCPP $CPPFLAGS'
13715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13719$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13720if test -z "$CXXCPP"; then
13721  if ${ac_cv_prog_CXXCPP+:} false; then :
13722  $as_echo_n "(cached) " >&6
13723else
13724      # Double quotes because CXXCPP needs to be expanded
13725    for CXXCPP in "$CXX -E" "/lib/cpp"
13726    do
13727      ac_preproc_ok=false
13728for ac_cxx_preproc_warn_flag in '' yes
13729do
13730  # Use a header file that comes with gcc, so configuring glibc
13731  # with a fresh cross-compiler works.
13732  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13733  # <limits.h> exists even on freestanding compilers.
13734  # On the NeXT, cc -E runs the code through the compiler's parser,
13735  # not just through cpp. "Syntax error" is here to catch this case.
13736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738#ifdef __STDC__
13739# include <limits.h>
13740#else
13741# include <assert.h>
13742#endif
13743		     Syntax error
13744_ACEOF
13745if ac_fn_cxx_try_cpp "$LINENO"; then :
13746
13747else
13748  # Broken: fails on valid input.
13749continue
13750fi
13751rm -f conftest.err conftest.i conftest.$ac_ext
13752
13753  # OK, works on sane cases.  Now check whether nonexistent headers
13754  # can be detected and how.
13755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h.  */
13757#include <ac_nonexistent.h>
13758_ACEOF
13759if ac_fn_cxx_try_cpp "$LINENO"; then :
13760  # Broken: success on invalid input.
13761continue
13762else
13763  # Passes both tests.
13764ac_preproc_ok=:
13765break
13766fi
13767rm -f conftest.err conftest.i conftest.$ac_ext
13768
13769done
13770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13771rm -f conftest.i conftest.err conftest.$ac_ext
13772if $ac_preproc_ok; then :
13773  break
13774fi
13775
13776    done
13777    ac_cv_prog_CXXCPP=$CXXCPP
13778
13779fi
13780  CXXCPP=$ac_cv_prog_CXXCPP
13781else
13782  ac_cv_prog_CXXCPP=$CXXCPP
13783fi
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13785$as_echo "$CXXCPP" >&6; }
13786ac_preproc_ok=false
13787for ac_cxx_preproc_warn_flag in '' yes
13788do
13789  # Use a header file that comes with gcc, so configuring glibc
13790  # with a fresh cross-compiler works.
13791  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13792  # <limits.h> exists even on freestanding compilers.
13793  # On the NeXT, cc -E runs the code through the compiler's parser,
13794  # not just through cpp. "Syntax error" is here to catch this case.
13795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796/* end confdefs.h.  */
13797#ifdef __STDC__
13798# include <limits.h>
13799#else
13800# include <assert.h>
13801#endif
13802		     Syntax error
13803_ACEOF
13804if ac_fn_cxx_try_cpp "$LINENO"; then :
13805
13806else
13807  # Broken: fails on valid input.
13808continue
13809fi
13810rm -f conftest.err conftest.i conftest.$ac_ext
13811
13812  # OK, works on sane cases.  Now check whether nonexistent headers
13813  # can be detected and how.
13814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815/* end confdefs.h.  */
13816#include <ac_nonexistent.h>
13817_ACEOF
13818if ac_fn_cxx_try_cpp "$LINENO"; then :
13819  # Broken: success on invalid input.
13820continue
13821else
13822  # Passes both tests.
13823ac_preproc_ok=:
13824break
13825fi
13826rm -f conftest.err conftest.i conftest.$ac_ext
13827
13828done
13829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13830rm -f conftest.i conftest.err conftest.$ac_ext
13831if $ac_preproc_ok; then :
13832
13833else
13834  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13836as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13837See \`config.log' for more details" "$LINENO" 5; }
13838fi
13839
13840ac_ext=c
13841ac_cpp='$CPP $CPPFLAGS'
13842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13844ac_compiler_gnu=$ac_cv_c_compiler_gnu
13845
13846else
13847  _lt_caught_CXX_error=yes
13848fi
13849
13850ac_ext=cpp
13851ac_cpp='$CXXCPP $CPPFLAGS'
13852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13855
13856archive_cmds_need_lc_CXX=no
13857allow_undefined_flag_CXX=
13858always_export_symbols_CXX=no
13859archive_expsym_cmds_CXX=
13860compiler_needs_object_CXX=no
13861export_dynamic_flag_spec_CXX=
13862hardcode_direct_CXX=no
13863hardcode_direct_absolute_CXX=no
13864hardcode_libdir_flag_spec_CXX=
13865hardcode_libdir_separator_CXX=
13866hardcode_minus_L_CXX=no
13867hardcode_shlibpath_var_CXX=unsupported
13868hardcode_automatic_CXX=no
13869inherit_rpath_CXX=no
13870module_cmds_CXX=
13871module_expsym_cmds_CXX=
13872link_all_deplibs_CXX=unknown
13873old_archive_cmds_CXX=$old_archive_cmds
13874reload_flag_CXX=$reload_flag
13875reload_cmds_CXX=$reload_cmds
13876no_undefined_flag_CXX=
13877whole_archive_flag_spec_CXX=
13878enable_shared_with_static_runtimes_CXX=no
13879
13880# Source file extension for C++ test sources.
13881ac_ext=cpp
13882
13883# Object file extension for compiled C++ test sources.
13884objext=o
13885objext_CXX=$objext
13886
13887# No sense in running all these tests if we already determined that
13888# the CXX compiler isn't working.  Some variables (like enable_shared)
13889# are currently assumed to apply to all compilers on this platform,
13890# and will be corrupted by setting them based on a non-working compiler.
13891if test yes != "$_lt_caught_CXX_error"; then
13892  # Code to be used in simple compile tests
13893  lt_simple_compile_test_code="int some_variable = 0;"
13894
13895  # Code to be used in simple link tests
13896  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13897
13898  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13899
13900
13901
13902
13903
13904
13905# If no C compiler was specified, use CC.
13906LTCC=${LTCC-"$CC"}
13907
13908# If no C compiler flags were specified, use CFLAGS.
13909LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13910
13911# Allow CC to be a program name with arguments.
13912compiler=$CC
13913
13914
13915  # save warnings/boilerplate of simple test code
13916  ac_outfile=conftest.$ac_objext
13917echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13918eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13919_lt_compiler_boilerplate=`cat conftest.err`
13920$RM conftest*
13921
13922  ac_outfile=conftest.$ac_objext
13923echo "$lt_simple_link_test_code" >conftest.$ac_ext
13924eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13925_lt_linker_boilerplate=`cat conftest.err`
13926$RM -r conftest*
13927
13928
13929  # Allow CC to be a program name with arguments.
13930  lt_save_CC=$CC
13931  lt_save_CFLAGS=$CFLAGS
13932  lt_save_LD=$LD
13933  lt_save_GCC=$GCC
13934  GCC=$GXX
13935  lt_save_with_gnu_ld=$with_gnu_ld
13936  lt_save_path_LD=$lt_cv_path_LD
13937  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13938    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13939  else
13940    $as_unset lt_cv_prog_gnu_ld
13941  fi
13942  if test -n "${lt_cv_path_LDCXX+set}"; then
13943    lt_cv_path_LD=$lt_cv_path_LDCXX
13944  else
13945    $as_unset lt_cv_path_LD
13946  fi
13947  test -z "${LDCXX+set}" || LD=$LDCXX
13948  CC=${CXX-"c++"}
13949  CFLAGS=$CXXFLAGS
13950  compiler=$CC
13951  compiler_CXX=$CC
13952  func_cc_basename $compiler
13953cc_basename=$func_cc_basename_result
13954
13955
13956  if test -n "$compiler"; then
13957    # We don't want -fno-exception when compiling C++ code, so set the
13958    # no_builtin_flag separately
13959    if test yes = "$GXX"; then
13960      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13961    else
13962      lt_prog_compiler_no_builtin_flag_CXX=
13963    fi
13964
13965    if test yes = "$GXX"; then
13966      # Set up default GNU C++ configuration
13967
13968
13969
13970# Check whether --with-gnu-ld was given.
13971if test "${with_gnu_ld+set}" = set; then :
13972  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13973else
13974  with_gnu_ld=no
13975fi
13976
13977ac_prog=ld
13978if test yes = "$GCC"; then
13979  # Check if gcc -print-prog-name=ld gives a path.
13980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13981$as_echo_n "checking for ld used by $CC... " >&6; }
13982  case $host in
13983  *-*-mingw*)
13984    # gcc leaves a trailing carriage return, which upsets mingw
13985    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13986  *)
13987    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13988  esac
13989  case $ac_prog in
13990    # Accept absolute paths.
13991    [\\/]* | ?:[\\/]*)
13992      re_direlt='/[^/][^/]*/\.\./'
13993      # Canonicalize the pathname of ld
13994      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13995      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13996	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13997      done
13998      test -z "$LD" && LD=$ac_prog
13999      ;;
14000  "")
14001    # If it fails, then pretend we aren't using GCC.
14002    ac_prog=ld
14003    ;;
14004  *)
14005    # If it is relative, then search for the first ld in PATH.
14006    with_gnu_ld=unknown
14007    ;;
14008  esac
14009elif test yes = "$with_gnu_ld"; then
14010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14011$as_echo_n "checking for GNU ld... " >&6; }
14012else
14013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14014$as_echo_n "checking for non-GNU ld... " >&6; }
14015fi
14016if ${lt_cv_path_LD+:} false; then :
14017  $as_echo_n "(cached) " >&6
14018else
14019  if test -z "$LD"; then
14020  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14021  for ac_dir in $PATH; do
14022    IFS=$lt_save_ifs
14023    test -z "$ac_dir" && ac_dir=.
14024    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14025      lt_cv_path_LD=$ac_dir/$ac_prog
14026      # Check to see if the program is GNU ld.  I'd rather use --version,
14027      # but apparently some variants of GNU ld only accept -v.
14028      # Break only if it was the GNU/non-GNU ld that we prefer.
14029      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14030      *GNU* | *'with BFD'*)
14031	test no != "$with_gnu_ld" && break
14032	;;
14033      *)
14034	test yes != "$with_gnu_ld" && break
14035	;;
14036      esac
14037    fi
14038  done
14039  IFS=$lt_save_ifs
14040else
14041  lt_cv_path_LD=$LD # Let the user override the test with a path.
14042fi
14043fi
14044
14045LD=$lt_cv_path_LD
14046if test -n "$LD"; then
14047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14048$as_echo "$LD" >&6; }
14049else
14050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051$as_echo "no" >&6; }
14052fi
14053test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14055$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14056if ${lt_cv_prog_gnu_ld+:} false; then :
14057  $as_echo_n "(cached) " >&6
14058else
14059  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14060case `$LD -v 2>&1 </dev/null` in
14061*GNU* | *'with BFD'*)
14062  lt_cv_prog_gnu_ld=yes
14063  ;;
14064*)
14065  lt_cv_prog_gnu_ld=no
14066  ;;
14067esac
14068fi
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14070$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14071with_gnu_ld=$lt_cv_prog_gnu_ld
14072
14073
14074
14075
14076
14077
14078
14079      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14080      # archiving commands below assume that GNU ld is being used.
14081      if test yes = "$with_gnu_ld"; then
14082        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14083        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'
14084
14085        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14086        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14087
14088        # If archive_cmds runs LD, not CC, wlarc should be empty
14089        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14090        #     investigate it a little bit more. (MM)
14091        wlarc='$wl'
14092
14093        # ancient GNU ld didn't support --whole-archive et. al.
14094        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14095	  $GREP 'no-whole-archive' > /dev/null; then
14096          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14097        else
14098          whole_archive_flag_spec_CXX=
14099        fi
14100      else
14101        with_gnu_ld=no
14102        wlarc=
14103
14104        # A generic and very simple default shared library creation
14105        # command for GNU C++ for the case where it uses the native
14106        # linker, instead of GNU ld.  If possible, this setting should
14107        # overridden to take advantage of the native linker features on
14108        # the platform it is being used on.
14109        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14110      fi
14111
14112      # Commands to make compiler produce verbose output that lists
14113      # what "hidden" libraries, object files and flags are used when
14114      # linking a shared library.
14115      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14116
14117    else
14118      GXX=no
14119      with_gnu_ld=no
14120      wlarc=
14121    fi
14122
14123    # PORTME: fill in a description of your system's C++ link characteristics
14124    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14126    ld_shlibs_CXX=yes
14127    case $host_os in
14128      aix3*)
14129        # FIXME: insert proper C++ library support
14130        ld_shlibs_CXX=no
14131        ;;
14132      aix[4-9]*)
14133        if test ia64 = "$host_cpu"; then
14134          # On IA64, the linker does run time linking by default, so we don't
14135          # have to do anything special.
14136          aix_use_runtimelinking=no
14137          exp_sym_flag='-Bexport'
14138          no_entry_flag=
14139        else
14140          aix_use_runtimelinking=no
14141
14142          # Test if we are trying to use run time linking or normal
14143          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14144          # have runtime linking enabled, and use it for executables.
14145          # For shared libraries, we enable/disable runtime linking
14146          # depending on the kind of the shared library created -
14147          # when "with_aix_soname,aix_use_runtimelinking" is:
14148          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14149          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14150          #            lib.a           static archive
14151          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14152          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14153          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14154          #            lib.a(lib.so.V) shared, rtl:no
14155          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14156          #            lib.a           static archive
14157          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14158	    for ld_flag in $LDFLAGS; do
14159	      case $ld_flag in
14160	      *-brtl*)
14161	        aix_use_runtimelinking=yes
14162	        break
14163	        ;;
14164	      esac
14165	    done
14166	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14167	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14168	      # so we don't have lib.a shared libs to link our executables.
14169	      # We have to force runtime linking in this case.
14170	      aix_use_runtimelinking=yes
14171	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14172	    fi
14173	    ;;
14174          esac
14175
14176          exp_sym_flag='-bexport'
14177          no_entry_flag='-bnoentry'
14178        fi
14179
14180        # When large executables or shared objects are built, AIX ld can
14181        # have problems creating the table of contents.  If linking a library
14182        # or program results in "error TOC overflow" add -mminimal-toc to
14183        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14184        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14185
14186        archive_cmds_CXX=''
14187        hardcode_direct_CXX=yes
14188        hardcode_direct_absolute_CXX=yes
14189        hardcode_libdir_separator_CXX=':'
14190        link_all_deplibs_CXX=yes
14191        file_list_spec_CXX='$wl-f,'
14192        case $with_aix_soname,$aix_use_runtimelinking in
14193        aix,*) ;;	# no import file
14194        svr4,* | *,yes) # use import file
14195          # The Import File defines what to hardcode.
14196          hardcode_direct_CXX=no
14197          hardcode_direct_absolute_CXX=no
14198          ;;
14199        esac
14200
14201        if test yes = "$GXX"; then
14202          case $host_os in aix4.[012]|aix4.[012].*)
14203          # We only want to do this on AIX 4.2 and lower, the check
14204          # below for broken collect2 doesn't work under 4.3+
14205	  collect2name=`$CC -print-prog-name=collect2`
14206	  if test -f "$collect2name" &&
14207	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14208	  then
14209	    # We have reworked collect2
14210	    :
14211	  else
14212	    # We have old collect2
14213	    hardcode_direct_CXX=unsupported
14214	    # It fails to find uninstalled libraries when the uninstalled
14215	    # path is not listed in the libpath.  Setting hardcode_minus_L
14216	    # to unsupported forces relinking
14217	    hardcode_minus_L_CXX=yes
14218	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14219	    hardcode_libdir_separator_CXX=
14220	  fi
14221          esac
14222          shared_flag='-shared'
14223	  if test yes = "$aix_use_runtimelinking"; then
14224	    shared_flag=$shared_flag' $wl-G'
14225	  fi
14226	  # Need to ensure runtime linking is disabled for the traditional
14227	  # shared library, or the linker may eventually find shared libraries
14228	  # /with/ Import File - we do not want to mix them.
14229	  shared_flag_aix='-shared'
14230	  shared_flag_svr4='-shared $wl-G'
14231        else
14232          # not using gcc
14233          if test ia64 = "$host_cpu"; then
14234	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14235	  # chokes on -Wl,-G. The following line is correct:
14236	  shared_flag='-G'
14237          else
14238	    if test yes = "$aix_use_runtimelinking"; then
14239	      shared_flag='$wl-G'
14240	    else
14241	      shared_flag='$wl-bM:SRE'
14242	    fi
14243	    shared_flag_aix='$wl-bM:SRE'
14244	    shared_flag_svr4='$wl-G'
14245          fi
14246        fi
14247
14248        export_dynamic_flag_spec_CXX='$wl-bexpall'
14249        # It seems that -bexpall does not export symbols beginning with
14250        # underscore (_), so it is better to generate a list of symbols to
14251	# export.
14252        always_export_symbols_CXX=yes
14253	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14254          # Warning - without using the other runtime loading flags (-brtl),
14255          # -berok will link without error, but may produce a broken library.
14256          # The "-G" linker flag allows undefined symbols.
14257          no_undefined_flag_CXX='-bernotok'
14258          # Determine the default libpath from the value encoded in an empty
14259          # executable.
14260          if test set = "${lt_cv_aix_libpath+set}"; then
14261  aix_libpath=$lt_cv_aix_libpath
14262else
14263  if ${lt_cv_aix_libpath__CXX+:} false; then :
14264  $as_echo_n "(cached) " >&6
14265else
14266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267/* end confdefs.h.  */
14268
14269int
14270main ()
14271{
14272
14273  ;
14274  return 0;
14275}
14276_ACEOF
14277if ac_fn_cxx_try_link "$LINENO"; then :
14278
14279  lt_aix_libpath_sed='
14280      /Import File Strings/,/^$/ {
14281	  /^0/ {
14282	      s/^0  *\([^ ]*\) *$/\1/
14283	      p
14284	  }
14285      }'
14286  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14287  # Check for a 64-bit object if we didn't find anything.
14288  if test -z "$lt_cv_aix_libpath__CXX"; then
14289    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14290  fi
14291fi
14292rm -f core conftest.err conftest.$ac_objext \
14293    conftest$ac_exeext conftest.$ac_ext
14294  if test -z "$lt_cv_aix_libpath__CXX"; then
14295    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14296  fi
14297
14298fi
14299
14300  aix_libpath=$lt_cv_aix_libpath__CXX
14301fi
14302
14303          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14304
14305          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
14306        else
14307          if test ia64 = "$host_cpu"; then
14308	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14309	    allow_undefined_flag_CXX="-z nodefs"
14310	    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"
14311          else
14312	    # Determine the default libpath from the value encoded in an
14313	    # empty executable.
14314	    if test set = "${lt_cv_aix_libpath+set}"; then
14315  aix_libpath=$lt_cv_aix_libpath
14316else
14317  if ${lt_cv_aix_libpath__CXX+:} false; then :
14318  $as_echo_n "(cached) " >&6
14319else
14320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321/* end confdefs.h.  */
14322
14323int
14324main ()
14325{
14326
14327  ;
14328  return 0;
14329}
14330_ACEOF
14331if ac_fn_cxx_try_link "$LINENO"; then :
14332
14333  lt_aix_libpath_sed='
14334      /Import File Strings/,/^$/ {
14335	  /^0/ {
14336	      s/^0  *\([^ ]*\) *$/\1/
14337	      p
14338	  }
14339      }'
14340  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14341  # Check for a 64-bit object if we didn't find anything.
14342  if test -z "$lt_cv_aix_libpath__CXX"; then
14343    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14344  fi
14345fi
14346rm -f core conftest.err conftest.$ac_objext \
14347    conftest$ac_exeext conftest.$ac_ext
14348  if test -z "$lt_cv_aix_libpath__CXX"; then
14349    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14350  fi
14351
14352fi
14353
14354  aix_libpath=$lt_cv_aix_libpath__CXX
14355fi
14356
14357	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14358	    # Warning - without using the other run time loading flags,
14359	    # -berok will link without error, but may produce a broken library.
14360	    no_undefined_flag_CXX=' $wl-bernotok'
14361	    allow_undefined_flag_CXX=' $wl-berok'
14362	    if test yes = "$with_gnu_ld"; then
14363	      # We only use this code for GNU lds that support --whole-archive.
14364	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14365	    else
14366	      # Exported symbols can be pulled into shared objects from archives
14367	      whole_archive_flag_spec_CXX='$convenience'
14368	    fi
14369	    archive_cmds_need_lc_CXX=yes
14370	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14371	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14372	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14373	    if test svr4 != "$with_aix_soname"; then
14374	      # This is similar to how AIX traditionally builds its shared
14375	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14376	      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'
14377	    fi
14378	    if test aix != "$with_aix_soname"; then
14379	      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'
14380	    else
14381	      # used by -dlpreopen to get the symbols
14382	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14383	    fi
14384	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14385          fi
14386        fi
14387        ;;
14388
14389      beos*)
14390	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14391	  allow_undefined_flag_CXX=unsupported
14392	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14393	  # support --undefined.  This deserves some investigation.  FIXME
14394	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14395	else
14396	  ld_shlibs_CXX=no
14397	fi
14398	;;
14399
14400      chorus*)
14401        case $cc_basename in
14402          *)
14403	  # FIXME: insert proper C++ library support
14404	  ld_shlibs_CXX=no
14405	  ;;
14406        esac
14407        ;;
14408
14409      cygwin* | mingw* | pw32* | cegcc*)
14410	case $GXX,$cc_basename in
14411	,cl* | no,cl*)
14412	  # Native MSVC
14413	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14414	  # no search path for DLLs.
14415	  hardcode_libdir_flag_spec_CXX=' '
14416	  allow_undefined_flag_CXX=unsupported
14417	  always_export_symbols_CXX=yes
14418	  file_list_spec_CXX='@'
14419	  # Tell ltmain to make .lib files, not .a files.
14420	  libext=lib
14421	  # Tell ltmain to make .dll files, not .so files.
14422	  shrext_cmds=.dll
14423	  # FIXME: Setting linknames here is a bad hack.
14424	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14425	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14426              cp "$export_symbols" "$output_objdir/$soname.def";
14427              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14428            else
14429              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14430            fi~
14431            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14432            linknames='
14433	  # The linker will not automatically build a static lib if we build a DLL.
14434	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14435	  enable_shared_with_static_runtimes_CXX=yes
14436	  # Don't use ranlib
14437	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14438	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14439            lt_tool_outputfile="@TOOL_OUTPUT@"~
14440            case $lt_outputfile in
14441              *.exe|*.EXE) ;;
14442              *)
14443                lt_outputfile=$lt_outputfile.exe
14444                lt_tool_outputfile=$lt_tool_outputfile.exe
14445                ;;
14446            esac~
14447            func_to_tool_file "$lt_outputfile"~
14448            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14449              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14450              $RM "$lt_outputfile.manifest";
14451            fi'
14452	  ;;
14453	*)
14454	  # g++
14455	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14456	  # as there is no search path for DLLs.
14457	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14458	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14459	  allow_undefined_flag_CXX=unsupported
14460	  always_export_symbols_CXX=no
14461	  enable_shared_with_static_runtimes_CXX=yes
14462
14463	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14464	    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'
14465	    # If the export-symbols file already is a .def file, use it as
14466	    # is; otherwise, prepend EXPORTS...
14467	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14468              cp $export_symbols $output_objdir/$soname.def;
14469            else
14470              echo EXPORTS > $output_objdir/$soname.def;
14471              cat $export_symbols >> $output_objdir/$soname.def;
14472            fi~
14473            $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'
14474	  else
14475	    ld_shlibs_CXX=no
14476	  fi
14477	  ;;
14478	esac
14479	;;
14480      darwin* | rhapsody*)
14481
14482
14483  archive_cmds_need_lc_CXX=no
14484  hardcode_direct_CXX=no
14485  hardcode_automatic_CXX=yes
14486  hardcode_shlibpath_var_CXX=unsupported
14487  if test yes = "$lt_cv_ld_force_load"; then
14488    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\"`'
14489
14490  else
14491    whole_archive_flag_spec_CXX=''
14492  fi
14493  link_all_deplibs_CXX=yes
14494  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14495  case $cc_basename in
14496     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14497     *) _lt_dar_can_shared=$GCC ;;
14498  esac
14499  if test yes = "$_lt_dar_can_shared"; then
14500    output_verbose_link_cmd=func_echo_all
14501    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"
14502    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14503    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"
14504    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"
14505       if test yes != "$lt_cv_apple_cc_single_mod"; then
14506      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"
14507      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"
14508    fi
14509
14510  else
14511  ld_shlibs_CXX=no
14512  fi
14513
14514	;;
14515
14516      os2*)
14517	hardcode_libdir_flag_spec_CXX='-L$libdir'
14518	hardcode_minus_L_CXX=yes
14519	allow_undefined_flag_CXX=unsupported
14520	shrext_cmds=.dll
14521	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14522	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14523	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14524	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14525	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14526	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14527	  emximp -o $lib $output_objdir/$libname.def'
14528	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14529	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14530	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14531	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14532	  prefix_cmds="$SED"~
14533	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14534	    prefix_cmds="$prefix_cmds -e 1d";
14535	  fi~
14536	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14537	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14538	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14539	  emximp -o $lib $output_objdir/$libname.def'
14540	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14541	enable_shared_with_static_runtimes_CXX=yes
14542	;;
14543
14544      dgux*)
14545        case $cc_basename in
14546          ec++*)
14547	    # FIXME: insert proper C++ library support
14548	    ld_shlibs_CXX=no
14549	    ;;
14550          ghcx*)
14551	    # Green Hills C++ Compiler
14552	    # FIXME: insert proper C++ library support
14553	    ld_shlibs_CXX=no
14554	    ;;
14555          *)
14556	    # FIXME: insert proper C++ library support
14557	    ld_shlibs_CXX=no
14558	    ;;
14559        esac
14560        ;;
14561
14562      freebsd2.*)
14563        # C++ shared libraries reported to be fairly broken before
14564	# switch to ELF
14565        ld_shlibs_CXX=no
14566        ;;
14567
14568      freebsd-elf*)
14569        archive_cmds_need_lc_CXX=no
14570        ;;
14571
14572      freebsd* | dragonfly*)
14573        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14574        # conventions
14575        ld_shlibs_CXX=yes
14576        ;;
14577
14578      haiku*)
14579        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14580        link_all_deplibs_CXX=yes
14581        ;;
14582
14583      hpux9*)
14584        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14585        hardcode_libdir_separator_CXX=:
14586        export_dynamic_flag_spec_CXX='$wl-E'
14587        hardcode_direct_CXX=yes
14588        hardcode_minus_L_CXX=yes # Not in the search PATH,
14589				             # but as the default
14590				             # location of the library.
14591
14592        case $cc_basename in
14593          CC*)
14594            # FIXME: insert proper C++ library support
14595            ld_shlibs_CXX=no
14596            ;;
14597          aCC*)
14598            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'
14599            # Commands to make compiler produce verbose output that lists
14600            # what "hidden" libraries, object files and flags are used when
14601            # linking a shared library.
14602            #
14603            # There doesn't appear to be a way to prevent this compiler from
14604            # explicitly linking system object files so we need to strip them
14605            # from the output so that they don't get included in the library
14606            # dependencies.
14607            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"'
14608            ;;
14609          *)
14610            if test yes = "$GXX"; then
14611              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'
14612            else
14613              # FIXME: insert proper C++ library support
14614              ld_shlibs_CXX=no
14615            fi
14616            ;;
14617        esac
14618        ;;
14619
14620      hpux10*|hpux11*)
14621        if test no = "$with_gnu_ld"; then
14622	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14623	  hardcode_libdir_separator_CXX=:
14624
14625          case $host_cpu in
14626            hppa*64*|ia64*)
14627              ;;
14628            *)
14629	      export_dynamic_flag_spec_CXX='$wl-E'
14630              ;;
14631          esac
14632        fi
14633        case $host_cpu in
14634          hppa*64*|ia64*)
14635            hardcode_direct_CXX=no
14636            hardcode_shlibpath_var_CXX=no
14637            ;;
14638          *)
14639            hardcode_direct_CXX=yes
14640            hardcode_direct_absolute_CXX=yes
14641            hardcode_minus_L_CXX=yes # Not in the search PATH,
14642					         # but as the default
14643					         # location of the library.
14644            ;;
14645        esac
14646
14647        case $cc_basename in
14648          CC*)
14649	    # FIXME: insert proper C++ library support
14650	    ld_shlibs_CXX=no
14651	    ;;
14652          aCC*)
14653	    case $host_cpu in
14654	      hppa*64*)
14655	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14656	        ;;
14657	      ia64*)
14658	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14659	        ;;
14660	      *)
14661	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14662	        ;;
14663	    esac
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	    #
14668	    # There doesn't appear to be a way to prevent this compiler from
14669	    # explicitly linking system object files so we need to strip them
14670	    # from the output so that they don't get included in the library
14671	    # dependencies.
14672	    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"'
14673	    ;;
14674          *)
14675	    if test yes = "$GXX"; then
14676	      if test no = "$with_gnu_ld"; then
14677	        case $host_cpu in
14678	          hppa*64*)
14679	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680	            ;;
14681	          ia64*)
14682	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14683	            ;;
14684	          *)
14685	            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'
14686	            ;;
14687	        esac
14688	      fi
14689	    else
14690	      # FIXME: insert proper C++ library support
14691	      ld_shlibs_CXX=no
14692	    fi
14693	    ;;
14694        esac
14695        ;;
14696
14697      interix[3-9]*)
14698	hardcode_direct_CXX=no
14699	hardcode_shlibpath_var_CXX=no
14700	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14701	export_dynamic_flag_spec_CXX='$wl-E'
14702	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14703	# Instead, shared libraries are loaded at an image base (0x10000000 by
14704	# default) and relocated if they conflict, which is a slow very memory
14705	# consuming and fragmenting process.  To avoid this, we pick a random,
14706	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14707	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14708	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'
14709	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'
14710	;;
14711      irix5* | irix6*)
14712        case $cc_basename in
14713          CC*)
14714	    # SGI C++
14715	    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'
14716
14717	    # Archives containing C++ object files must be created using
14718	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14719	    # necessary to make sure instantiated templates are included
14720	    # in the archive.
14721	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14722	    ;;
14723          *)
14724	    if test yes = "$GXX"; then
14725	      if test no = "$with_gnu_ld"; then
14726	        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'
14727	      else
14728	        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'
14729	      fi
14730	    fi
14731	    link_all_deplibs_CXX=yes
14732	    ;;
14733        esac
14734        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14735        hardcode_libdir_separator_CXX=:
14736        inherit_rpath_CXX=yes
14737        ;;
14738
14739      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14740        case $cc_basename in
14741          KCC*)
14742	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14743
14744	    # KCC will only create a shared library if the output file
14745	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14746	    # to its proper name (with version) after linking.
14747	    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'
14748	    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'
14749	    # Commands to make compiler produce verbose output that lists
14750	    # what "hidden" libraries, object files and flags are used when
14751	    # linking a shared library.
14752	    #
14753	    # There doesn't appear to be a way to prevent this compiler from
14754	    # explicitly linking system object files so we need to strip them
14755	    # from the output so that they don't get included in the library
14756	    # dependencies.
14757	    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"'
14758
14759	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14760	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14761
14762	    # Archives containing C++ object files must be created using
14763	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14764	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14765	    ;;
14766	  icpc* | ecpc* )
14767	    # Intel C++
14768	    with_gnu_ld=yes
14769	    # version 8.0 and above of icpc choke on multiply defined symbols
14770	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14771	    # earlier do not add the objects themselves.
14772	    case `$CC -V 2>&1` in
14773	      *"Version 7."*)
14774	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14775		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'
14776		;;
14777	      *)  # Version 8.0 or newer
14778	        tmp_idyn=
14779	        case $host_cpu in
14780		  ia64*) tmp_idyn=' -i_dynamic';;
14781		esac
14782	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14783		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'
14784		;;
14785	    esac
14786	    archive_cmds_need_lc_CXX=no
14787	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14788	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14789	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14790	    ;;
14791          pgCC* | pgcpp*)
14792            # Portland Group C++ compiler
14793	    case `$CC -V` in
14794	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14795	      prelink_cmds_CXX='tpldir=Template.dir~
14796               rm -rf $tpldir~
14797               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14798               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14799	      old_archive_cmds_CXX='tpldir=Template.dir~
14800                rm -rf $tpldir~
14801                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14802                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14803                $RANLIB $oldlib'
14804	      archive_cmds_CXX='tpldir=Template.dir~
14805                rm -rf $tpldir~
14806                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14807                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14808	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14809                rm -rf $tpldir~
14810                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14811                $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'
14812	      ;;
14813	    *) # Version 6 and above use weak symbols
14814	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14815	      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'
14816	      ;;
14817	    esac
14818
14819	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14820	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14821	    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'
14822            ;;
14823	  cxx*)
14824	    # Compaq C++
14825	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14826	    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'
14827
14828	    runpath_var=LD_RUN_PATH
14829	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14830	    hardcode_libdir_separator_CXX=:
14831
14832	    # Commands to make compiler produce verbose output that lists
14833	    # what "hidden" libraries, object files and flags are used when
14834	    # linking a shared library.
14835	    #
14836	    # There doesn't appear to be a way to prevent this compiler from
14837	    # explicitly linking system object files so we need to strip them
14838	    # from the output so that they don't get included in the library
14839	    # dependencies.
14840	    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'
14841	    ;;
14842	  xl* | mpixl* | bgxl*)
14843	    # IBM XL 8.0 on PPC, with GNU ld
14844	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14845	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14846	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14847	    if test yes = "$supports_anon_versioning"; then
14848	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14849                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14850                echo "local: *; };" >> $output_objdir/$libname.ver~
14851                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14852	    fi
14853	    ;;
14854	  *)
14855	    case `$CC -V 2>&1 | sed 5q` in
14856	    *Sun\ C*)
14857	      # Sun C++ 5.9
14858	      no_undefined_flag_CXX=' -zdefs'
14859	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14860	      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'
14861	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14862	      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'
14863	      compiler_needs_object_CXX=yes
14864
14865	      # Not sure whether something based on
14866	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14867	      # would be better.
14868	      output_verbose_link_cmd='func_echo_all'
14869
14870	      # Archives containing C++ object files must be created using
14871	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14872	      # necessary to make sure instantiated templates are included
14873	      # in the archive.
14874	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14875	      ;;
14876	    esac
14877	    ;;
14878	esac
14879	;;
14880
14881      lynxos*)
14882        # FIXME: insert proper C++ library support
14883	ld_shlibs_CXX=no
14884	;;
14885
14886      m88k*)
14887        # FIXME: insert proper C++ library support
14888        ld_shlibs_CXX=no
14889	;;
14890
14891      mvs*)
14892        case $cc_basename in
14893          cxx*)
14894	    # FIXME: insert proper C++ library support
14895	    ld_shlibs_CXX=no
14896	    ;;
14897	  *)
14898	    # FIXME: insert proper C++ library support
14899	    ld_shlibs_CXX=no
14900	    ;;
14901	esac
14902	;;
14903
14904      netbsd*)
14905        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14906	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14907	  wlarc=
14908	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14909	  hardcode_direct_CXX=yes
14910	  hardcode_shlibpath_var_CXX=no
14911	fi
14912	# Workaround some broken pre-1.5 toolchains
14913	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14914	;;
14915
14916      *nto* | *qnx*)
14917        ld_shlibs_CXX=yes
14918	;;
14919
14920      openbsd* | bitrig*)
14921	if test -f /usr/libexec/ld.so; then
14922	  hardcode_direct_CXX=yes
14923	  hardcode_shlibpath_var_CXX=no
14924	  hardcode_direct_absolute_CXX=yes
14925	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14926	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14927	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14928	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14929	    export_dynamic_flag_spec_CXX='$wl-E'
14930	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14931	  fi
14932	  output_verbose_link_cmd=func_echo_all
14933	else
14934	  ld_shlibs_CXX=no
14935	fi
14936	;;
14937
14938      osf3* | osf4* | osf5*)
14939        case $cc_basename in
14940          KCC*)
14941	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14942
14943	    # KCC will only create a shared library if the output file
14944	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14945	    # to its proper name (with version) after linking.
14946	    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'
14947
14948	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14949	    hardcode_libdir_separator_CXX=:
14950
14951	    # Archives containing C++ object files must be created using
14952	    # the KAI C++ compiler.
14953	    case $host in
14954	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14955	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14956	    esac
14957	    ;;
14958          RCC*)
14959	    # Rational C++ 2.4.1
14960	    # FIXME: insert proper C++ library support
14961	    ld_shlibs_CXX=no
14962	    ;;
14963          cxx*)
14964	    case $host in
14965	      osf3*)
14966	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14967	        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'
14968	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14969		;;
14970	      *)
14971	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14972	        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'
14973	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14974                  echo "-hidden">> $lib.exp~
14975                  $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~
14976                  $RM $lib.exp'
14977	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14978		;;
14979	    esac
14980
14981	    hardcode_libdir_separator_CXX=:
14982
14983	    # Commands to make compiler produce verbose output that lists
14984	    # what "hidden" libraries, object files and flags are used when
14985	    # linking a shared library.
14986	    #
14987	    # There doesn't appear to be a way to prevent this compiler from
14988	    # explicitly linking system object files so we need to strip them
14989	    # from the output so that they don't get included in the library
14990	    # dependencies.
14991	    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"'
14992	    ;;
14993	  *)
14994	    if test yes,no = "$GXX,$with_gnu_ld"; then
14995	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14996	      case $host in
14997	        osf3*)
14998	          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'
14999		  ;;
15000	        *)
15001	          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'
15002		  ;;
15003	      esac
15004
15005	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15006	      hardcode_libdir_separator_CXX=:
15007
15008	      # Commands to make compiler produce verbose output that lists
15009	      # what "hidden" libraries, object files and flags are used when
15010	      # linking a shared library.
15011	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15012
15013	    else
15014	      # FIXME: insert proper C++ library support
15015	      ld_shlibs_CXX=no
15016	    fi
15017	    ;;
15018        esac
15019        ;;
15020
15021      psos*)
15022        # FIXME: insert proper C++ library support
15023        ld_shlibs_CXX=no
15024        ;;
15025
15026      sunos4*)
15027        case $cc_basename in
15028          CC*)
15029	    # Sun C++ 4.x
15030	    # FIXME: insert proper C++ library support
15031	    ld_shlibs_CXX=no
15032	    ;;
15033          lcc*)
15034	    # Lucid
15035	    # FIXME: insert proper C++ library support
15036	    ld_shlibs_CXX=no
15037	    ;;
15038          *)
15039	    # FIXME: insert proper C++ library support
15040	    ld_shlibs_CXX=no
15041	    ;;
15042        esac
15043        ;;
15044
15045      solaris*)
15046        case $cc_basename in
15047          CC* | sunCC*)
15048	    # Sun C++ 4.2, 5.x and Centerline C++
15049            archive_cmds_need_lc_CXX=yes
15050	    no_undefined_flag_CXX=' -zdefs'
15051	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15052	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15053              $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'
15054
15055	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15056	    hardcode_shlibpath_var_CXX=no
15057	    case $host_os in
15058	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15059	      *)
15060		# The compiler driver will combine and reorder linker options,
15061		# but understands '-z linker_flag'.
15062	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15063		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15064	        ;;
15065	    esac
15066	    link_all_deplibs_CXX=yes
15067
15068	    output_verbose_link_cmd='func_echo_all'
15069
15070	    # Archives containing C++ object files must be created using
15071	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15072	    # necessary to make sure instantiated templates are included
15073	    # in the archive.
15074	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15075	    ;;
15076          gcx*)
15077	    # Green Hills C++ Compiler
15078	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15079
15080	    # The C++ compiler must be used to create the archive.
15081	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15082	    ;;
15083          *)
15084	    # GNU C++ compiler with Solaris linker
15085	    if test yes,no = "$GXX,$with_gnu_ld"; then
15086	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15087	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15088	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15089	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15090                  $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'
15091
15092	        # Commands to make compiler produce verbose output that lists
15093	        # what "hidden" libraries, object files and flags are used when
15094	        # linking a shared library.
15095	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15096	      else
15097	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15098	        # platform.
15099	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15100	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15101                  $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'
15102
15103	        # Commands to make compiler produce verbose output that lists
15104	        # what "hidden" libraries, object files and flags are used when
15105	        # linking a shared library.
15106	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15107	      fi
15108
15109	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15110	      case $host_os in
15111		solaris2.[0-5] | solaris2.[0-5].*) ;;
15112		*)
15113		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15114		  ;;
15115	      esac
15116	    fi
15117	    ;;
15118        esac
15119        ;;
15120
15121    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15122      no_undefined_flag_CXX='$wl-z,text'
15123      archive_cmds_need_lc_CXX=no
15124      hardcode_shlibpath_var_CXX=no
15125      runpath_var='LD_RUN_PATH'
15126
15127      case $cc_basename in
15128        CC*)
15129	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15130	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15131	  ;;
15132	*)
15133	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15134	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15135	  ;;
15136      esac
15137      ;;
15138
15139      sysv5* | sco3.2v5* | sco5v6*)
15140	# Note: We CANNOT use -z defs as we might desire, because we do not
15141	# link with -lc, and that would cause any symbols used from libc to
15142	# always be unresolved, which means just about no library would
15143	# ever link correctly.  If we're not using GNU ld we use -z text
15144	# though, which does catch some bad symbols but isn't as heavy-handed
15145	# as -z defs.
15146	no_undefined_flag_CXX='$wl-z,text'
15147	allow_undefined_flag_CXX='$wl-z,nodefs'
15148	archive_cmds_need_lc_CXX=no
15149	hardcode_shlibpath_var_CXX=no
15150	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15151	hardcode_libdir_separator_CXX=':'
15152	link_all_deplibs_CXX=yes
15153	export_dynamic_flag_spec_CXX='$wl-Bexport'
15154	runpath_var='LD_RUN_PATH'
15155
15156	case $cc_basename in
15157          CC*)
15158	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15159	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15160	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15161              '"$old_archive_cmds_CXX"
15162	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15163              '"$reload_cmds_CXX"
15164	    ;;
15165	  *)
15166	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168	    ;;
15169	esac
15170      ;;
15171
15172      tandem*)
15173        case $cc_basename in
15174          NCC*)
15175	    # NonStop-UX NCC 3.20
15176	    # FIXME: insert proper C++ library support
15177	    ld_shlibs_CXX=no
15178	    ;;
15179          *)
15180	    # FIXME: insert proper C++ library support
15181	    ld_shlibs_CXX=no
15182	    ;;
15183        esac
15184        ;;
15185
15186      vxworks*)
15187        # FIXME: insert proper C++ library support
15188        ld_shlibs_CXX=no
15189        ;;
15190
15191      *)
15192        # FIXME: insert proper C++ library support
15193        ld_shlibs_CXX=no
15194        ;;
15195    esac
15196
15197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15198$as_echo "$ld_shlibs_CXX" >&6; }
15199    test no = "$ld_shlibs_CXX" && can_build_shared=no
15200
15201    GCC_CXX=$GXX
15202    LD_CXX=$LD
15203
15204    ## CAVEAT EMPTOR:
15205    ## There is no encapsulation within the following macros, do not change
15206    ## the running order or otherwise move them around unless you know exactly
15207    ## what you are doing...
15208    # Dependencies to place before and after the object being linked:
15209predep_objects_CXX=
15210postdep_objects_CXX=
15211predeps_CXX=
15212postdeps_CXX=
15213compiler_lib_search_path_CXX=
15214
15215cat > conftest.$ac_ext <<_LT_EOF
15216class Foo
15217{
15218public:
15219  Foo (void) { a = 0; }
15220private:
15221  int a;
15222};
15223_LT_EOF
15224
15225
15226_lt_libdeps_save_CFLAGS=$CFLAGS
15227case "$CC $CFLAGS " in #(
15228*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15229*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15230*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15231esac
15232
15233if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15234  (eval $ac_compile) 2>&5
15235  ac_status=$?
15236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15237  test $ac_status = 0; }; then
15238  # Parse the compiler output and extract the necessary
15239  # objects, libraries and library flags.
15240
15241  # Sentinel used to keep track of whether or not we are before
15242  # the conftest object file.
15243  pre_test_object_deps_done=no
15244
15245  for p in `eval "$output_verbose_link_cmd"`; do
15246    case $prev$p in
15247
15248    -L* | -R* | -l*)
15249       # Some compilers place space between "-{L,R}" and the path.
15250       # Remove the space.
15251       if test x-L = "$p" ||
15252          test x-R = "$p"; then
15253	 prev=$p
15254	 continue
15255       fi
15256
15257       # Expand the sysroot to ease extracting the directories later.
15258       if test -z "$prev"; then
15259         case $p in
15260         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15261         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15262         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15263         esac
15264       fi
15265       case $p in
15266       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15267       esac
15268       if test no = "$pre_test_object_deps_done"; then
15269	 case $prev in
15270	 -L | -R)
15271	   # Internal compiler library paths should come after those
15272	   # provided the user.  The postdeps already come after the
15273	   # user supplied libs so there is no need to process them.
15274	   if test -z "$compiler_lib_search_path_CXX"; then
15275	     compiler_lib_search_path_CXX=$prev$p
15276	   else
15277	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15278	   fi
15279	   ;;
15280	 # The "-l" case would never come before the object being
15281	 # linked, so don't bother handling this case.
15282	 esac
15283       else
15284	 if test -z "$postdeps_CXX"; then
15285	   postdeps_CXX=$prev$p
15286	 else
15287	   postdeps_CXX="${postdeps_CXX} $prev$p"
15288	 fi
15289       fi
15290       prev=
15291       ;;
15292
15293    *.lto.$objext) ;; # Ignore GCC LTO objects
15294    *.$objext)
15295       # This assumes that the test object file only shows up
15296       # once in the compiler output.
15297       if test "$p" = "conftest.$objext"; then
15298	 pre_test_object_deps_done=yes
15299	 continue
15300       fi
15301
15302       if test no = "$pre_test_object_deps_done"; then
15303	 if test -z "$predep_objects_CXX"; then
15304	   predep_objects_CXX=$p
15305	 else
15306	   predep_objects_CXX="$predep_objects_CXX $p"
15307	 fi
15308       else
15309	 if test -z "$postdep_objects_CXX"; then
15310	   postdep_objects_CXX=$p
15311	 else
15312	   postdep_objects_CXX="$postdep_objects_CXX $p"
15313	 fi
15314       fi
15315       ;;
15316
15317    *) ;; # Ignore the rest.
15318
15319    esac
15320  done
15321
15322  # Clean up.
15323  rm -f a.out a.exe
15324else
15325  echo "libtool.m4: error: problem compiling CXX test program"
15326fi
15327
15328$RM -f confest.$objext
15329CFLAGS=$_lt_libdeps_save_CFLAGS
15330
15331# PORTME: override above test on systems where it is broken
15332case $host_os in
15333interix[3-9]*)
15334  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15335  # hack all around it, let's just trust "g++" to DTRT.
15336  predep_objects_CXX=
15337  postdep_objects_CXX=
15338  postdeps_CXX=
15339  ;;
15340esac
15341
15342
15343case " $postdeps_CXX " in
15344*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15345esac
15346 compiler_lib_search_dirs_CXX=
15347if test -n "${compiler_lib_search_path_CXX}"; then
15348 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15349fi
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381    lt_prog_compiler_wl_CXX=
15382lt_prog_compiler_pic_CXX=
15383lt_prog_compiler_static_CXX=
15384
15385
15386  # C++ specific cases for pic, static, wl, etc.
15387  if test yes = "$GXX"; then
15388    lt_prog_compiler_wl_CXX='-Wl,'
15389    lt_prog_compiler_static_CXX='-static'
15390
15391    case $host_os in
15392    aix*)
15393      # All AIX code is PIC.
15394      if test ia64 = "$host_cpu"; then
15395	# AIX 5 now supports IA64 processor
15396	lt_prog_compiler_static_CXX='-Bstatic'
15397      fi
15398      lt_prog_compiler_pic_CXX='-fPIC'
15399      ;;
15400
15401    amigaos*)
15402      case $host_cpu in
15403      powerpc)
15404            # see comment about AmigaOS4 .so support
15405            lt_prog_compiler_pic_CXX='-fPIC'
15406        ;;
15407      m68k)
15408            # FIXME: we need at least 68020 code to build shared libraries, but
15409            # adding the '-m68020' flag to GCC prevents building anything better,
15410            # like '-m68040'.
15411            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15412        ;;
15413      esac
15414      ;;
15415
15416    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15417      # PIC is the default for these OSes.
15418      ;;
15419    mingw* | cygwin* | os2* | pw32* | cegcc*)
15420      # This hack is so that the source file can tell whether it is being
15421      # built for inclusion in a dll (and should export symbols for example).
15422      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15423      # (--disable-auto-import) libraries
15424      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15425      case $host_os in
15426      os2*)
15427	lt_prog_compiler_static_CXX='$wl-static'
15428	;;
15429      esac
15430      ;;
15431    darwin* | rhapsody*)
15432      # PIC is the default on this platform
15433      # Common symbols not allowed in MH_DYLIB files
15434      lt_prog_compiler_pic_CXX='-fno-common'
15435      ;;
15436    *djgpp*)
15437      # DJGPP does not support shared libraries at all
15438      lt_prog_compiler_pic_CXX=
15439      ;;
15440    haiku*)
15441      # PIC is the default for Haiku.
15442      # The "-static" flag exists, but is broken.
15443      lt_prog_compiler_static_CXX=
15444      ;;
15445    interix[3-9]*)
15446      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15447      # Instead, we relocate shared libraries at runtime.
15448      ;;
15449    sysv4*MP*)
15450      if test -d /usr/nec; then
15451	lt_prog_compiler_pic_CXX=-Kconform_pic
15452      fi
15453      ;;
15454    hpux*)
15455      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15456      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15457      # sets the default TLS model and affects inlining.
15458      case $host_cpu in
15459      hppa*64*)
15460	;;
15461      *)
15462	lt_prog_compiler_pic_CXX='-fPIC'
15463	;;
15464      esac
15465      ;;
15466    *qnx* | *nto*)
15467      # QNX uses GNU C++, but need to define -shared option too, otherwise
15468      # it will coredump.
15469      lt_prog_compiler_pic_CXX='-fPIC -shared'
15470      ;;
15471    *)
15472      lt_prog_compiler_pic_CXX='-fPIC'
15473      ;;
15474    esac
15475  else
15476    case $host_os in
15477      aix[4-9]*)
15478	# All AIX code is PIC.
15479	if test ia64 = "$host_cpu"; then
15480	  # AIX 5 now supports IA64 processor
15481	  lt_prog_compiler_static_CXX='-Bstatic'
15482	else
15483	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15484	fi
15485	;;
15486      chorus*)
15487	case $cc_basename in
15488	cxch68*)
15489	  # Green Hills C++ Compiler
15490	  # _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"
15491	  ;;
15492	esac
15493	;;
15494      mingw* | cygwin* | os2* | pw32* | cegcc*)
15495	# This hack is so that the source file can tell whether it is being
15496	# built for inclusion in a dll (and should export symbols for example).
15497	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15498	;;
15499      dgux*)
15500	case $cc_basename in
15501	  ec++*)
15502	    lt_prog_compiler_pic_CXX='-KPIC'
15503	    ;;
15504	  ghcx*)
15505	    # Green Hills C++ Compiler
15506	    lt_prog_compiler_pic_CXX='-pic'
15507	    ;;
15508	  *)
15509	    ;;
15510	esac
15511	;;
15512      freebsd* | dragonfly*)
15513	# FreeBSD uses GNU C++
15514	;;
15515      hpux9* | hpux10* | hpux11*)
15516	case $cc_basename in
15517	  CC*)
15518	    lt_prog_compiler_wl_CXX='-Wl,'
15519	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15520	    if test ia64 != "$host_cpu"; then
15521	      lt_prog_compiler_pic_CXX='+Z'
15522	    fi
15523	    ;;
15524	  aCC*)
15525	    lt_prog_compiler_wl_CXX='-Wl,'
15526	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15527	    case $host_cpu in
15528	    hppa*64*|ia64*)
15529	      # +Z the default
15530	      ;;
15531	    *)
15532	      lt_prog_compiler_pic_CXX='+Z'
15533	      ;;
15534	    esac
15535	    ;;
15536	  *)
15537	    ;;
15538	esac
15539	;;
15540      interix*)
15541	# This is c89, which is MS Visual C++ (no shared libs)
15542	# Anyone wants to do a port?
15543	;;
15544      irix5* | irix6* | nonstopux*)
15545	case $cc_basename in
15546	  CC*)
15547	    lt_prog_compiler_wl_CXX='-Wl,'
15548	    lt_prog_compiler_static_CXX='-non_shared'
15549	    # CC pic flag -KPIC is the default.
15550	    ;;
15551	  *)
15552	    ;;
15553	esac
15554	;;
15555      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15556	case $cc_basename in
15557	  KCC*)
15558	    # KAI C++ Compiler
15559	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15560	    lt_prog_compiler_pic_CXX='-fPIC'
15561	    ;;
15562	  ecpc* )
15563	    # old Intel C++ for x86_64, which still supported -KPIC.
15564	    lt_prog_compiler_wl_CXX='-Wl,'
15565	    lt_prog_compiler_pic_CXX='-KPIC'
15566	    lt_prog_compiler_static_CXX='-static'
15567	    ;;
15568	  icpc* )
15569	    # Intel C++, used to be incompatible with GCC.
15570	    # ICC 10 doesn't accept -KPIC any more.
15571	    lt_prog_compiler_wl_CXX='-Wl,'
15572	    lt_prog_compiler_pic_CXX='-fPIC'
15573	    lt_prog_compiler_static_CXX='-static'
15574	    ;;
15575	  pgCC* | pgcpp*)
15576	    # Portland Group C++ compiler
15577	    lt_prog_compiler_wl_CXX='-Wl,'
15578	    lt_prog_compiler_pic_CXX='-fpic'
15579	    lt_prog_compiler_static_CXX='-Bstatic'
15580	    ;;
15581	  cxx*)
15582	    # Compaq C++
15583	    # Make sure the PIC flag is empty.  It appears that all Alpha
15584	    # Linux and Compaq Tru64 Unix objects are PIC.
15585	    lt_prog_compiler_pic_CXX=
15586	    lt_prog_compiler_static_CXX='-non_shared'
15587	    ;;
15588	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15589	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15590	    lt_prog_compiler_wl_CXX='-Wl,'
15591	    lt_prog_compiler_pic_CXX='-qpic'
15592	    lt_prog_compiler_static_CXX='-qstaticlink'
15593	    ;;
15594	  *)
15595	    case `$CC -V 2>&1 | sed 5q` in
15596	    *Sun\ C*)
15597	      # Sun C++ 5.9
15598	      lt_prog_compiler_pic_CXX='-KPIC'
15599	      lt_prog_compiler_static_CXX='-Bstatic'
15600	      lt_prog_compiler_wl_CXX='-Qoption ld '
15601	      ;;
15602	    esac
15603	    ;;
15604	esac
15605	;;
15606      lynxos*)
15607	;;
15608      m88k*)
15609	;;
15610      mvs*)
15611	case $cc_basename in
15612	  cxx*)
15613	    lt_prog_compiler_pic_CXX='-W c,exportall'
15614	    ;;
15615	  *)
15616	    ;;
15617	esac
15618	;;
15619      netbsd*)
15620	;;
15621      *qnx* | *nto*)
15622        # QNX uses GNU C++, but need to define -shared option too, otherwise
15623        # it will coredump.
15624        lt_prog_compiler_pic_CXX='-fPIC -shared'
15625        ;;
15626      osf3* | osf4* | osf5*)
15627	case $cc_basename in
15628	  KCC*)
15629	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15630	    ;;
15631	  RCC*)
15632	    # Rational C++ 2.4.1
15633	    lt_prog_compiler_pic_CXX='-pic'
15634	    ;;
15635	  cxx*)
15636	    # Digital/Compaq C++
15637	    lt_prog_compiler_wl_CXX='-Wl,'
15638	    # Make sure the PIC flag is empty.  It appears that all Alpha
15639	    # Linux and Compaq Tru64 Unix objects are PIC.
15640	    lt_prog_compiler_pic_CXX=
15641	    lt_prog_compiler_static_CXX='-non_shared'
15642	    ;;
15643	  *)
15644	    ;;
15645	esac
15646	;;
15647      psos*)
15648	;;
15649      solaris*)
15650	case $cc_basename in
15651	  CC* | sunCC*)
15652	    # Sun C++ 4.2, 5.x and Centerline C++
15653	    lt_prog_compiler_pic_CXX='-KPIC'
15654	    lt_prog_compiler_static_CXX='-Bstatic'
15655	    lt_prog_compiler_wl_CXX='-Qoption ld '
15656	    ;;
15657	  gcx*)
15658	    # Green Hills C++ Compiler
15659	    lt_prog_compiler_pic_CXX='-PIC'
15660	    ;;
15661	  *)
15662	    ;;
15663	esac
15664	;;
15665      sunos4*)
15666	case $cc_basename in
15667	  CC*)
15668	    # Sun C++ 4.x
15669	    lt_prog_compiler_pic_CXX='-pic'
15670	    lt_prog_compiler_static_CXX='-Bstatic'
15671	    ;;
15672	  lcc*)
15673	    # Lucid
15674	    lt_prog_compiler_pic_CXX='-pic'
15675	    ;;
15676	  *)
15677	    ;;
15678	esac
15679	;;
15680      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15681	case $cc_basename in
15682	  CC*)
15683	    lt_prog_compiler_wl_CXX='-Wl,'
15684	    lt_prog_compiler_pic_CXX='-KPIC'
15685	    lt_prog_compiler_static_CXX='-Bstatic'
15686	    ;;
15687	esac
15688	;;
15689      tandem*)
15690	case $cc_basename in
15691	  NCC*)
15692	    # NonStop-UX NCC 3.20
15693	    lt_prog_compiler_pic_CXX='-KPIC'
15694	    ;;
15695	  *)
15696	    ;;
15697	esac
15698	;;
15699      vxworks*)
15700	;;
15701      *)
15702	lt_prog_compiler_can_build_shared_CXX=no
15703	;;
15704    esac
15705  fi
15706
15707case $host_os in
15708  # For platforms that do not support PIC, -DPIC is meaningless:
15709  *djgpp*)
15710    lt_prog_compiler_pic_CXX=
15711    ;;
15712  *)
15713    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15714    ;;
15715esac
15716
15717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15718$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15719if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15720  $as_echo_n "(cached) " >&6
15721else
15722  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15723fi
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15725$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15726lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15727
15728#
15729# Check to make sure the PIC flag actually works.
15730#
15731if test -n "$lt_prog_compiler_pic_CXX"; then
15732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15733$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15734if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15735  $as_echo_n "(cached) " >&6
15736else
15737  lt_cv_prog_compiler_pic_works_CXX=no
15738   ac_outfile=conftest.$ac_objext
15739   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15740   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15741   # Insert the option either (1) after the last *FLAGS variable, or
15742   # (2) before a word containing "conftest.", or (3) at the end.
15743   # Note that $ac_compile itself does not contain backslashes and begins
15744   # with a dollar sign (not a hyphen), so the echo should work correctly.
15745   # The option is referenced via a variable to avoid confusing sed.
15746   lt_compile=`echo "$ac_compile" | $SED \
15747   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15748   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749   -e 's:$: $lt_compiler_flag:'`
15750   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15751   (eval "$lt_compile" 2>conftest.err)
15752   ac_status=$?
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   if (exit $ac_status) && test -s "$ac_outfile"; then
15756     # The compiler can only warn and ignore the option if not recognized
15757     # So say no if there are warnings other than the usual output.
15758     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15759     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15760     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15761       lt_cv_prog_compiler_pic_works_CXX=yes
15762     fi
15763   fi
15764   $RM conftest*
15765
15766fi
15767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15768$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15769
15770if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15771    case $lt_prog_compiler_pic_CXX in
15772     "" | " "*) ;;
15773     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15774     esac
15775else
15776    lt_prog_compiler_pic_CXX=
15777     lt_prog_compiler_can_build_shared_CXX=no
15778fi
15779
15780fi
15781
15782
15783
15784
15785
15786#
15787# Check to make sure the static flag actually works.
15788#
15789wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15791$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15792if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15793  $as_echo_n "(cached) " >&6
15794else
15795  lt_cv_prog_compiler_static_works_CXX=no
15796   save_LDFLAGS=$LDFLAGS
15797   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15798   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15799   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15800     # The linker can only warn and ignore the option if not recognized
15801     # So say no if there are warnings
15802     if test -s conftest.err; then
15803       # Append any errors to the config.log.
15804       cat conftest.err 1>&5
15805       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15806       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15807       if diff conftest.exp conftest.er2 >/dev/null; then
15808         lt_cv_prog_compiler_static_works_CXX=yes
15809       fi
15810     else
15811       lt_cv_prog_compiler_static_works_CXX=yes
15812     fi
15813   fi
15814   $RM -r conftest*
15815   LDFLAGS=$save_LDFLAGS
15816
15817fi
15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15819$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15820
15821if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15822    :
15823else
15824    lt_prog_compiler_static_CXX=
15825fi
15826
15827
15828
15829
15830    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15831$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15832if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15833  $as_echo_n "(cached) " >&6
15834else
15835  lt_cv_prog_compiler_c_o_CXX=no
15836   $RM -r conftest 2>/dev/null
15837   mkdir conftest
15838   cd conftest
15839   mkdir out
15840   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15841
15842   lt_compiler_flag="-o out/conftest2.$ac_objext"
15843   # Insert the option either (1) after the last *FLAGS variable, or
15844   # (2) before a word containing "conftest.", or (3) at the end.
15845   # Note that $ac_compile itself does not contain backslashes and begins
15846   # with a dollar sign (not a hyphen), so the echo should work correctly.
15847   lt_compile=`echo "$ac_compile" | $SED \
15848   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15849   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15850   -e 's:$: $lt_compiler_flag:'`
15851   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15852   (eval "$lt_compile" 2>out/conftest.err)
15853   ac_status=$?
15854   cat out/conftest.err >&5
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15857   then
15858     # The compiler can only warn and ignore the option if not recognized
15859     # So say no if there are warnings
15860     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15861     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15862     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15863       lt_cv_prog_compiler_c_o_CXX=yes
15864     fi
15865   fi
15866   chmod u+w . 2>&5
15867   $RM conftest*
15868   # SGI C++ compiler will create directory out/ii_files/ for
15869   # template instantiation
15870   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15871   $RM out/* && rmdir out
15872   cd ..
15873   $RM -r conftest
15874   $RM conftest*
15875
15876fi
15877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15878$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15879
15880
15881
15882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15883$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15884if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15885  $as_echo_n "(cached) " >&6
15886else
15887  lt_cv_prog_compiler_c_o_CXX=no
15888   $RM -r conftest 2>/dev/null
15889   mkdir conftest
15890   cd conftest
15891   mkdir out
15892   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15893
15894   lt_compiler_flag="-o out/conftest2.$ac_objext"
15895   # Insert the option either (1) after the last *FLAGS variable, or
15896   # (2) before a word containing "conftest.", or (3) at the end.
15897   # Note that $ac_compile itself does not contain backslashes and begins
15898   # with a dollar sign (not a hyphen), so the echo should work correctly.
15899   lt_compile=`echo "$ac_compile" | $SED \
15900   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902   -e 's:$: $lt_compiler_flag:'`
15903   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15904   (eval "$lt_compile" 2>out/conftest.err)
15905   ac_status=$?
15906   cat out/conftest.err >&5
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15909   then
15910     # The compiler can only warn and ignore the option if not recognized
15911     # So say no if there are warnings
15912     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915       lt_cv_prog_compiler_c_o_CXX=yes
15916     fi
15917   fi
15918   chmod u+w . 2>&5
15919   $RM conftest*
15920   # SGI C++ compiler will create directory out/ii_files/ for
15921   # template instantiation
15922   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923   $RM out/* && rmdir out
15924   cd ..
15925   $RM -r conftest
15926   $RM conftest*
15927
15928fi
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15930$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15931
15932
15933
15934
15935hard_links=nottested
15936if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15937  # do not overwrite the value of need_locks provided by the user
15938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15939$as_echo_n "checking if we can lock with hard links... " >&6; }
15940  hard_links=yes
15941  $RM conftest*
15942  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15943  touch conftest.a
15944  ln conftest.a conftest.b 2>&5 || hard_links=no
15945  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15947$as_echo "$hard_links" >&6; }
15948  if test no = "$hard_links"; then
15949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15950$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15951    need_locks=warn
15952  fi
15953else
15954  need_locks=no
15955fi
15956
15957
15958
15959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15960$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15961
15962  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15963  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15964  case $host_os in
15965  aix[4-9]*)
15966    # If we're using GNU nm, then we don't want the "-C" option.
15967    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15968    # Without the "-l" option, or with the "-B" option, AIX nm treats
15969    # weak defined symbols like other global defined symbols, whereas
15970    # GNU nm marks them as "W".
15971    # While the 'weak' keyword is ignored in the Export File, we need
15972    # it in the Import File for the 'aix-soname' feature, so we have
15973    # to replace the "-B" option with "-P" for AIX nm.
15974    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15975      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'
15976    else
15977      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'
15978    fi
15979    ;;
15980  pw32*)
15981    export_symbols_cmds_CXX=$ltdll_cmds
15982    ;;
15983  cygwin* | mingw* | cegcc*)
15984    case $cc_basename in
15985    cl*)
15986      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15987      ;;
15988    *)
15989      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'
15990      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15991      ;;
15992    esac
15993    ;;
15994  *)
15995    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15996    ;;
15997  esac
15998
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16000$as_echo "$ld_shlibs_CXX" >&6; }
16001test no = "$ld_shlibs_CXX" && can_build_shared=no
16002
16003with_gnu_ld_CXX=$with_gnu_ld
16004
16005
16006
16007
16008
16009
16010#
16011# Do we need to explicitly link libc?
16012#
16013case "x$archive_cmds_need_lc_CXX" in
16014x|xyes)
16015  # Assume -lc should be added
16016  archive_cmds_need_lc_CXX=yes
16017
16018  if test yes,yes = "$GCC,$enable_shared"; then
16019    case $archive_cmds_CXX in
16020    *'~'*)
16021      # FIXME: we may have to deal with multi-command sequences.
16022      ;;
16023    '$CC '*)
16024      # Test whether the compiler implicitly links with -lc since on some
16025      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16026      # to ld, don't add -lc before -lgcc.
16027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16028$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16029if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16030  $as_echo_n "(cached) " >&6
16031else
16032  $RM conftest*
16033	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16034
16035	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16036  (eval $ac_compile) 2>&5
16037  ac_status=$?
16038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16039  test $ac_status = 0; } 2>conftest.err; then
16040	  soname=conftest
16041	  lib=conftest
16042	  libobjs=conftest.$ac_objext
16043	  deplibs=
16044	  wl=$lt_prog_compiler_wl_CXX
16045	  pic_flag=$lt_prog_compiler_pic_CXX
16046	  compiler_flags=-v
16047	  linker_flags=-v
16048	  verstring=
16049	  output_objdir=.
16050	  libname=conftest
16051	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16052	  allow_undefined_flag_CXX=
16053	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16054  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16055  ac_status=$?
16056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16057  test $ac_status = 0; }
16058	  then
16059	    lt_cv_archive_cmds_need_lc_CXX=no
16060	  else
16061	    lt_cv_archive_cmds_need_lc_CXX=yes
16062	  fi
16063	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16064	else
16065	  cat conftest.err 1>&5
16066	fi
16067	$RM conftest*
16068
16069fi
16070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16071$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16072      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16073      ;;
16074    esac
16075  fi
16076  ;;
16077esac
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16141$as_echo_n "checking dynamic linker characteristics... " >&6; }
16142
16143library_names_spec=
16144libname_spec='lib$name'
16145soname_spec=
16146shrext_cmds=.so
16147postinstall_cmds=
16148postuninstall_cmds=
16149finish_cmds=
16150finish_eval=
16151shlibpath_var=
16152shlibpath_overrides_runpath=unknown
16153version_type=none
16154dynamic_linker="$host_os ld.so"
16155sys_lib_dlsearch_path_spec="/lib /usr/lib"
16156need_lib_prefix=unknown
16157hardcode_into_libs=no
16158
16159# when you set need_version to no, make sure it does not cause -set_version
16160# flags to be left without arguments
16161need_version=unknown
16162
16163
16164
16165case $host_os in
16166aix3*)
16167  version_type=linux # correct to gnu/linux during the next big refactor
16168  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16169  shlibpath_var=LIBPATH
16170
16171  # AIX 3 has no versioning support, so we append a major version to the name.
16172  soname_spec='$libname$release$shared_ext$major'
16173  ;;
16174
16175aix[4-9]*)
16176  version_type=linux # correct to gnu/linux during the next big refactor
16177  need_lib_prefix=no
16178  need_version=no
16179  hardcode_into_libs=yes
16180  if test ia64 = "$host_cpu"; then
16181    # AIX 5 supports IA64
16182    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16183    shlibpath_var=LD_LIBRARY_PATH
16184  else
16185    # With GCC up to 2.95.x, collect2 would create an import file
16186    # for dependence libraries.  The import file would start with
16187    # the line '#! .'.  This would cause the generated library to
16188    # depend on '.', always an invalid library.  This was fixed in
16189    # development snapshots of GCC prior to 3.0.
16190    case $host_os in
16191      aix4 | aix4.[01] | aix4.[01].*)
16192      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16193	   echo ' yes '
16194	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16195	:
16196      else
16197	can_build_shared=no
16198      fi
16199      ;;
16200    esac
16201    # Using Import Files as archive members, it is possible to support
16202    # filename-based versioning of shared library archives on AIX. While
16203    # this would work for both with and without runtime linking, it will
16204    # prevent static linking of such archives. So we do filename-based
16205    # shared library versioning with .so extension only, which is used
16206    # when both runtime linking and shared linking is enabled.
16207    # Unfortunately, runtime linking may impact performance, so we do
16208    # not want this to be the default eventually. Also, we use the
16209    # versioned .so libs for executables only if there is the -brtl
16210    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16211    # To allow for filename-based versioning support, we need to create
16212    # libNAME.so.V as an archive file, containing:
16213    # *) an Import File, referring to the versioned filename of the
16214    #    archive as well as the shared archive member, telling the
16215    #    bitwidth (32 or 64) of that shared object, and providing the
16216    #    list of exported symbols of that shared object, eventually
16217    #    decorated with the 'weak' keyword
16218    # *) the shared object with the F_LOADONLY flag set, to really avoid
16219    #    it being seen by the linker.
16220    # At run time we better use the real file rather than another symlink,
16221    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16222
16223    case $with_aix_soname,$aix_use_runtimelinking in
16224    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16225    # soname into executable. Probably we can add versioning support to
16226    # collect2, so additional links can be useful in future.
16227    aix,yes) # traditional libtool
16228      dynamic_linker='AIX unversionable lib.so'
16229      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16230      # instead of lib<name>.a to let people know that these are not
16231      # typical AIX shared libraries.
16232      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16233      ;;
16234    aix,no) # traditional AIX only
16235      dynamic_linker='AIX lib.a(lib.so.V)'
16236      # We preserve .a as extension for shared libraries through AIX4.2
16237      # and later when we are not doing run time linking.
16238      library_names_spec='$libname$release.a $libname.a'
16239      soname_spec='$libname$release$shared_ext$major'
16240      ;;
16241    svr4,*) # full svr4 only
16242      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16243      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16244      # We do not specify a path in Import Files, so LIBPATH fires.
16245      shlibpath_overrides_runpath=yes
16246      ;;
16247    *,yes) # both, prefer svr4
16248      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16249      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16250      # unpreferred sharedlib libNAME.a needs extra handling
16251      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"'
16252      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"'
16253      # We do not specify a path in Import Files, so LIBPATH fires.
16254      shlibpath_overrides_runpath=yes
16255      ;;
16256    *,no) # both, prefer aix
16257      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16258      library_names_spec='$libname$release.a $libname.a'
16259      soname_spec='$libname$release$shared_ext$major'
16260      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16261      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)'
16262      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"'
16263      ;;
16264    esac
16265    shlibpath_var=LIBPATH
16266  fi
16267  ;;
16268
16269amigaos*)
16270  case $host_cpu in
16271  powerpc)
16272    # Since July 2007 AmigaOS4 officially supports .so libraries.
16273    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16274    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16275    ;;
16276  m68k)
16277    library_names_spec='$libname.ixlibrary $libname.a'
16278    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16279    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'
16280    ;;
16281  esac
16282  ;;
16283
16284beos*)
16285  library_names_spec='$libname$shared_ext'
16286  dynamic_linker="$host_os ld.so"
16287  shlibpath_var=LIBRARY_PATH
16288  ;;
16289
16290bsdi[45]*)
16291  version_type=linux # correct to gnu/linux during the next big refactor
16292  need_version=no
16293  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16294  soname_spec='$libname$release$shared_ext$major'
16295  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16296  shlibpath_var=LD_LIBRARY_PATH
16297  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16298  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16299  # the default ld.so.conf also contains /usr/contrib/lib and
16300  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16301  # libtool to hard-code these into programs
16302  ;;
16303
16304cygwin* | mingw* | pw32* | cegcc*)
16305  version_type=windows
16306  shrext_cmds=.dll
16307  need_version=no
16308  need_lib_prefix=no
16309
16310  case $GCC,$cc_basename in
16311  yes,*)
16312    # gcc
16313    library_names_spec='$libname.dll.a'
16314    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16315    postinstall_cmds='base_file=`basename \$file`~
16316      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16317      dldir=$destdir/`dirname \$dlpath`~
16318      test -d \$dldir || mkdir -p \$dldir~
16319      $install_prog $dir/$dlname \$dldir/$dlname~
16320      chmod a+x \$dldir/$dlname~
16321      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16322        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16323      fi'
16324    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16325      dlpath=$dir/\$dldll~
16326       $RM \$dlpath'
16327    shlibpath_overrides_runpath=yes
16328
16329    case $host_os in
16330    cygwin*)
16331      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16332      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16333
16334      ;;
16335    mingw* | cegcc*)
16336      # MinGW DLLs use traditional 'lib' prefix
16337      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16338      ;;
16339    pw32*)
16340      # pw32 DLLs use 'pw' prefix rather than 'lib'
16341      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16342      ;;
16343    esac
16344    dynamic_linker='Win32 ld.exe'
16345    ;;
16346
16347  *,cl*)
16348    # Native MSVC
16349    libname_spec='$name'
16350    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16351    library_names_spec='$libname.dll.lib'
16352
16353    case $build_os in
16354    mingw*)
16355      sys_lib_search_path_spec=
16356      lt_save_ifs=$IFS
16357      IFS=';'
16358      for lt_path in $LIB
16359      do
16360        IFS=$lt_save_ifs
16361        # Let DOS variable expansion print the short 8.3 style file name.
16362        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16363        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16364      done
16365      IFS=$lt_save_ifs
16366      # Convert to MSYS style.
16367      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16368      ;;
16369    cygwin*)
16370      # Convert to unix form, then to dos form, then back to unix form
16371      # but this time dos style (no spaces!) so that the unix form looks
16372      # like /cygdrive/c/PROGRA~1:/cygdr...
16373      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16374      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16375      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16376      ;;
16377    *)
16378      sys_lib_search_path_spec=$LIB
16379      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16380        # It is most probably a Windows format PATH.
16381        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16382      else
16383        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16384      fi
16385      # FIXME: find the short name or the path components, as spaces are
16386      # common. (e.g. "Program Files" -> "PROGRA~1")
16387      ;;
16388    esac
16389
16390    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16391    postinstall_cmds='base_file=`basename \$file`~
16392      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16393      dldir=$destdir/`dirname \$dlpath`~
16394      test -d \$dldir || mkdir -p \$dldir~
16395      $install_prog $dir/$dlname \$dldir/$dlname'
16396    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16397      dlpath=$dir/\$dldll~
16398       $RM \$dlpath'
16399    shlibpath_overrides_runpath=yes
16400    dynamic_linker='Win32 link.exe'
16401    ;;
16402
16403  *)
16404    # Assume MSVC wrapper
16405    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16406    dynamic_linker='Win32 ld.exe'
16407    ;;
16408  esac
16409  # FIXME: first we should search . and the directory the executable is in
16410  shlibpath_var=PATH
16411  ;;
16412
16413darwin* | rhapsody*)
16414  dynamic_linker="$host_os dyld"
16415  version_type=darwin
16416  need_lib_prefix=no
16417  need_version=no
16418  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16419  soname_spec='$libname$release$major$shared_ext'
16420  shlibpath_overrides_runpath=yes
16421  shlibpath_var=DYLD_LIBRARY_PATH
16422  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16423
16424  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16425  ;;
16426
16427dgux*)
16428  version_type=linux # correct to gnu/linux during the next big refactor
16429  need_lib_prefix=no
16430  need_version=no
16431  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16432  soname_spec='$libname$release$shared_ext$major'
16433  shlibpath_var=LD_LIBRARY_PATH
16434  ;;
16435
16436freebsd* | dragonfly*)
16437  # DragonFly does not have aout.  When/if they implement a new
16438  # versioning mechanism, adjust this.
16439  if test -x /usr/bin/objformat; then
16440    objformat=`/usr/bin/objformat`
16441  else
16442    case $host_os in
16443    freebsd[23].*) objformat=aout ;;
16444    *) objformat=elf ;;
16445    esac
16446  fi
16447  version_type=freebsd-$objformat
16448  case $version_type in
16449    freebsd-elf*)
16450      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16451      soname_spec='$libname$release$shared_ext$major'
16452      need_version=no
16453      need_lib_prefix=no
16454      ;;
16455    freebsd-*)
16456      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16457      need_version=yes
16458      ;;
16459  esac
16460  shlibpath_var=LD_LIBRARY_PATH
16461  case $host_os in
16462  freebsd2.*)
16463    shlibpath_overrides_runpath=yes
16464    ;;
16465  freebsd3.[01]* | freebsdelf3.[01]*)
16466    shlibpath_overrides_runpath=yes
16467    hardcode_into_libs=yes
16468    ;;
16469  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16470  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16471    shlibpath_overrides_runpath=no
16472    hardcode_into_libs=yes
16473    ;;
16474  *) # from 4.6 on, and DragonFly
16475    shlibpath_overrides_runpath=yes
16476    hardcode_into_libs=yes
16477    ;;
16478  esac
16479  ;;
16480
16481haiku*)
16482  version_type=linux # correct to gnu/linux during the next big refactor
16483  need_lib_prefix=no
16484  need_version=no
16485  dynamic_linker="$host_os runtime_loader"
16486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16487  soname_spec='$libname$release$shared_ext$major'
16488  shlibpath_var=LIBRARY_PATH
16489  shlibpath_overrides_runpath=no
16490  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16491  hardcode_into_libs=yes
16492  ;;
16493
16494hpux9* | hpux10* | hpux11*)
16495  # Give a soname corresponding to the major version so that dld.sl refuses to
16496  # link against other versions.
16497  version_type=sunos
16498  need_lib_prefix=no
16499  need_version=no
16500  case $host_cpu in
16501  ia64*)
16502    shrext_cmds='.so'
16503    hardcode_into_libs=yes
16504    dynamic_linker="$host_os dld.so"
16505    shlibpath_var=LD_LIBRARY_PATH
16506    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16507    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16508    soname_spec='$libname$release$shared_ext$major'
16509    if test 32 = "$HPUX_IA64_MODE"; then
16510      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16511      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16512    else
16513      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16514      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16515    fi
16516    ;;
16517  hppa*64*)
16518    shrext_cmds='.sl'
16519    hardcode_into_libs=yes
16520    dynamic_linker="$host_os dld.sl"
16521    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16522    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16523    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16524    soname_spec='$libname$release$shared_ext$major'
16525    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16526    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16527    ;;
16528  *)
16529    shrext_cmds='.sl'
16530    dynamic_linker="$host_os dld.sl"
16531    shlibpath_var=SHLIB_PATH
16532    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16533    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16534    soname_spec='$libname$release$shared_ext$major'
16535    ;;
16536  esac
16537  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16538  postinstall_cmds='chmod 555 $lib'
16539  # or fails outright, so override atomically:
16540  install_override_mode=555
16541  ;;
16542
16543interix[3-9]*)
16544  version_type=linux # correct to gnu/linux during the next big refactor
16545  need_lib_prefix=no
16546  need_version=no
16547  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16548  soname_spec='$libname$release$shared_ext$major'
16549  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16550  shlibpath_var=LD_LIBRARY_PATH
16551  shlibpath_overrides_runpath=no
16552  hardcode_into_libs=yes
16553  ;;
16554
16555irix5* | irix6* | nonstopux*)
16556  case $host_os in
16557    nonstopux*) version_type=nonstopux ;;
16558    *)
16559	if test yes = "$lt_cv_prog_gnu_ld"; then
16560		version_type=linux # correct to gnu/linux during the next big refactor
16561	else
16562		version_type=irix
16563	fi ;;
16564  esac
16565  need_lib_prefix=no
16566  need_version=no
16567  soname_spec='$libname$release$shared_ext$major'
16568  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16569  case $host_os in
16570  irix5* | nonstopux*)
16571    libsuff= shlibsuff=
16572    ;;
16573  *)
16574    case $LD in # libtool.m4 will add one of these switches to LD
16575    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16576      libsuff= shlibsuff= libmagic=32-bit;;
16577    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16578      libsuff=32 shlibsuff=N32 libmagic=N32;;
16579    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16580      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16581    *) libsuff= shlibsuff= libmagic=never-match;;
16582    esac
16583    ;;
16584  esac
16585  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16586  shlibpath_overrides_runpath=no
16587  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16588  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16589  hardcode_into_libs=yes
16590  ;;
16591
16592# No shared lib support for Linux oldld, aout, or coff.
16593linux*oldld* | linux*aout* | linux*coff*)
16594  dynamic_linker=no
16595  ;;
16596
16597linux*android*)
16598  version_type=none # Android doesn't support versioned libraries.
16599  need_lib_prefix=no
16600  need_version=no
16601  library_names_spec='$libname$release$shared_ext'
16602  soname_spec='$libname$release$shared_ext'
16603  finish_cmds=
16604  shlibpath_var=LD_LIBRARY_PATH
16605  shlibpath_overrides_runpath=yes
16606
16607  # This implies no fast_install, which is unacceptable.
16608  # Some rework will be needed to allow for fast_install
16609  # before this can be enabled.
16610  hardcode_into_libs=yes
16611
16612  dynamic_linker='Android linker'
16613  # Don't embed -rpath directories since the linker doesn't support them.
16614  hardcode_libdir_flag_spec_CXX='-L$libdir'
16615  ;;
16616
16617# This must be glibc/ELF.
16618linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16619  version_type=linux # correct to gnu/linux during the next big refactor
16620  need_lib_prefix=no
16621  need_version=no
16622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16623  soname_spec='$libname$release$shared_ext$major'
16624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625  shlibpath_var=LD_LIBRARY_PATH
16626  shlibpath_overrides_runpath=no
16627
16628  # Some binutils ld are patched to set DT_RUNPATH
16629  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16630  $as_echo_n "(cached) " >&6
16631else
16632  lt_cv_shlibpath_overrides_runpath=no
16633    save_LDFLAGS=$LDFLAGS
16634    save_libdir=$libdir
16635    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16636	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638/* end confdefs.h.  */
16639
16640int
16641main ()
16642{
16643
16644  ;
16645  return 0;
16646}
16647_ACEOF
16648if ac_fn_cxx_try_link "$LINENO"; then :
16649  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16650  lt_cv_shlibpath_overrides_runpath=yes
16651fi
16652fi
16653rm -f core conftest.err conftest.$ac_objext \
16654    conftest$ac_exeext conftest.$ac_ext
16655    LDFLAGS=$save_LDFLAGS
16656    libdir=$save_libdir
16657
16658fi
16659
16660  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16661
16662  # This implies no fast_install, which is unacceptable.
16663  # Some rework will be needed to allow for fast_install
16664  # before this can be enabled.
16665  hardcode_into_libs=yes
16666
16667  # Add ABI-specific directories to the system library path.
16668  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16669
16670  # Ideally, we could use ldconfig to report *all* directores which are
16671  # searched for libraries, however this is still not possible.  Aside from not
16672  # being certain /sbin/ldconfig is available, command
16673  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16674  # even though it is searched at run-time.  Try to do the best guess by
16675  # appending ld.so.conf contents (and includes) to the search path.
16676  if test -f /etc/ld.so.conf; then
16677    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' ' '`
16678    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16679  fi
16680
16681  # We used to test for /lib/ld.so.1 and disable shared libraries on
16682  # powerpc, because MkLinux only supported shared libraries with the
16683  # GNU dynamic linker.  Since this was broken with cross compilers,
16684  # most powerpc-linux boxes support dynamic linking these days and
16685  # people can always --disable-shared, the test was removed, and we
16686  # assume the GNU/Linux dynamic linker is in use.
16687  dynamic_linker='GNU/Linux ld.so'
16688  ;;
16689
16690netbsd*)
16691  version_type=sunos
16692  need_lib_prefix=no
16693  need_version=no
16694  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16695    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16696    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16697    dynamic_linker='NetBSD (a.out) ld.so'
16698  else
16699    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16700    soname_spec='$libname$release$shared_ext$major'
16701    dynamic_linker='NetBSD ld.elf_so'
16702  fi
16703  shlibpath_var=LD_LIBRARY_PATH
16704  shlibpath_overrides_runpath=yes
16705  hardcode_into_libs=yes
16706  ;;
16707
16708newsos6)
16709  version_type=linux # correct to gnu/linux during the next big refactor
16710  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16711  shlibpath_var=LD_LIBRARY_PATH
16712  shlibpath_overrides_runpath=yes
16713  ;;
16714
16715*nto* | *qnx*)
16716  version_type=qnx
16717  need_lib_prefix=no
16718  need_version=no
16719  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16720  soname_spec='$libname$release$shared_ext$major'
16721  shlibpath_var=LD_LIBRARY_PATH
16722  shlibpath_overrides_runpath=no
16723  hardcode_into_libs=yes
16724  dynamic_linker='ldqnx.so'
16725  ;;
16726
16727openbsd* | bitrig*)
16728  version_type=sunos
16729  sys_lib_dlsearch_path_spec=/usr/lib
16730  need_lib_prefix=no
16731  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16732    need_version=no
16733  else
16734    need_version=yes
16735  fi
16736  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16737  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16738  shlibpath_var=LD_LIBRARY_PATH
16739  shlibpath_overrides_runpath=yes
16740  ;;
16741
16742os2*)
16743  libname_spec='$name'
16744  version_type=windows
16745  shrext_cmds=.dll
16746  need_version=no
16747  need_lib_prefix=no
16748  # OS/2 can only load a DLL with a base name of 8 characters or less.
16749  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16750    v=$($ECHO $release$versuffix | tr -d .-);
16751    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16752    $ECHO $n$v`$shared_ext'
16753  library_names_spec='${libname}_dll.$libext'
16754  dynamic_linker='OS/2 ld.exe'
16755  shlibpath_var=BEGINLIBPATH
16756  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16757  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16758  postinstall_cmds='base_file=`basename \$file`~
16759    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16760    dldir=$destdir/`dirname \$dlpath`~
16761    test -d \$dldir || mkdir -p \$dldir~
16762    $install_prog $dir/$dlname \$dldir/$dlname~
16763    chmod a+x \$dldir/$dlname~
16764    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16765      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16766    fi'
16767  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16768    dlpath=$dir/\$dldll~
16769    $RM \$dlpath'
16770  ;;
16771
16772osf3* | osf4* | osf5*)
16773  version_type=osf
16774  need_lib_prefix=no
16775  need_version=no
16776  soname_spec='$libname$release$shared_ext$major'
16777  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16778  shlibpath_var=LD_LIBRARY_PATH
16779  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16780  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16781  ;;
16782
16783rdos*)
16784  dynamic_linker=no
16785  ;;
16786
16787solaris*)
16788  version_type=linux # correct to gnu/linux during the next big refactor
16789  need_lib_prefix=no
16790  need_version=no
16791  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16792  soname_spec='$libname$release$shared_ext$major'
16793  shlibpath_var=LD_LIBRARY_PATH
16794  shlibpath_overrides_runpath=yes
16795  hardcode_into_libs=yes
16796  # ldd complains unless libraries are executable
16797  postinstall_cmds='chmod +x $lib'
16798  ;;
16799
16800sunos4*)
16801  version_type=sunos
16802  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16803  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16804  shlibpath_var=LD_LIBRARY_PATH
16805  shlibpath_overrides_runpath=yes
16806  if test yes = "$with_gnu_ld"; then
16807    need_lib_prefix=no
16808  fi
16809  need_version=yes
16810  ;;
16811
16812sysv4 | sysv4.3*)
16813  version_type=linux # correct to gnu/linux during the next big refactor
16814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16815  soname_spec='$libname$release$shared_ext$major'
16816  shlibpath_var=LD_LIBRARY_PATH
16817  case $host_vendor in
16818    sni)
16819      shlibpath_overrides_runpath=no
16820      need_lib_prefix=no
16821      runpath_var=LD_RUN_PATH
16822      ;;
16823    siemens)
16824      need_lib_prefix=no
16825      ;;
16826    motorola)
16827      need_lib_prefix=no
16828      need_version=no
16829      shlibpath_overrides_runpath=no
16830      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16831      ;;
16832  esac
16833  ;;
16834
16835sysv4*MP*)
16836  if test -d /usr/nec; then
16837    version_type=linux # correct to gnu/linux during the next big refactor
16838    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16839    soname_spec='$libname$shared_ext.$major'
16840    shlibpath_var=LD_LIBRARY_PATH
16841  fi
16842  ;;
16843
16844sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16845  version_type=sco
16846  need_lib_prefix=no
16847  need_version=no
16848  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16849  soname_spec='$libname$release$shared_ext$major'
16850  shlibpath_var=LD_LIBRARY_PATH
16851  shlibpath_overrides_runpath=yes
16852  hardcode_into_libs=yes
16853  if test yes = "$with_gnu_ld"; then
16854    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16855  else
16856    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16857    case $host_os in
16858      sco3.2v5*)
16859        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16860	;;
16861    esac
16862  fi
16863  sys_lib_dlsearch_path_spec='/usr/lib'
16864  ;;
16865
16866tpf*)
16867  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16868  version_type=linux # correct to gnu/linux during the next big refactor
16869  need_lib_prefix=no
16870  need_version=no
16871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16872  shlibpath_var=LD_LIBRARY_PATH
16873  shlibpath_overrides_runpath=no
16874  hardcode_into_libs=yes
16875  ;;
16876
16877uts4*)
16878  version_type=linux # correct to gnu/linux during the next big refactor
16879  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16880  soname_spec='$libname$release$shared_ext$major'
16881  shlibpath_var=LD_LIBRARY_PATH
16882  ;;
16883
16884*)
16885  dynamic_linker=no
16886  ;;
16887esac
16888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16889$as_echo "$dynamic_linker" >&6; }
16890test no = "$dynamic_linker" && can_build_shared=no
16891
16892variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16893if test yes = "$GCC"; then
16894  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16895fi
16896
16897if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16898  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16899fi
16900
16901if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16902  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16903fi
16904
16905# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16906configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16907
16908# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16909func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16910
16911# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16912configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16954$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16955hardcode_action_CXX=
16956if test -n "$hardcode_libdir_flag_spec_CXX" ||
16957   test -n "$runpath_var_CXX" ||
16958   test yes = "$hardcode_automatic_CXX"; then
16959
16960  # We can hardcode non-existent directories.
16961  if test no != "$hardcode_direct_CXX" &&
16962     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16963     # have to relink, otherwise we might link with an installed library
16964     # when we should be linking with a yet-to-be-installed one
16965     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16966     test no != "$hardcode_minus_L_CXX"; then
16967    # Linking always hardcodes the temporary library directory.
16968    hardcode_action_CXX=relink
16969  else
16970    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16971    hardcode_action_CXX=immediate
16972  fi
16973else
16974  # We cannot hardcode anything, or else we can only hardcode existing
16975  # directories.
16976  hardcode_action_CXX=unsupported
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16979$as_echo "$hardcode_action_CXX" >&6; }
16980
16981if test relink = "$hardcode_action_CXX" ||
16982   test yes = "$inherit_rpath_CXX"; then
16983  # Fast installation is not supported
16984  enable_fast_install=no
16985elif test yes = "$shlibpath_overrides_runpath" ||
16986     test no = "$enable_shared"; then
16987  # Fast installation is not necessary
16988  enable_fast_install=needless
16989fi
16990
16991
16992
16993
16994
16995
16996
16997  fi # test -n "$compiler"
16998
16999  CC=$lt_save_CC
17000  CFLAGS=$lt_save_CFLAGS
17001  LDCXX=$LD
17002  LD=$lt_save_LD
17003  GCC=$lt_save_GCC
17004  with_gnu_ld=$lt_save_with_gnu_ld
17005  lt_cv_path_LDCXX=$lt_cv_path_LD
17006  lt_cv_path_LD=$lt_save_path_LD
17007  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17008  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17009fi # test yes != "$_lt_caught_CXX_error"
17010
17011ac_ext=c
17012ac_cpp='$CPP $CPPFLAGS'
17013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17015ac_compiler_gnu=$ac_cv_c_compiler_gnu
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031        ac_config_commands="$ac_config_commands libtool"
17032
17033
17034
17035
17036# Only expand once:
17037
17038
17039
17040  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17041$as_echo_n "checking whether NLS is requested... " >&6; }
17042    # Check whether --enable-nls was given.
17043if test "${enable_nls+set}" = set; then :
17044  enableval=$enable_nls; USE_NLS=$enableval
17045else
17046  USE_NLS=yes
17047fi
17048
17049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17050$as_echo "$USE_NLS" >&6; }
17051
17052
17053
17054
17055      GETTEXT_MACRO_VERSION=0.20
17056
17057
17058
17059
17060# Prepare PATH_SEPARATOR.
17061# The user is always right.
17062if test "${PATH_SEPARATOR+set}" != set; then
17063  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17064  # contains only /bin. Note that ksh looks also at the FPATH variable,
17065  # so we have to set that as well for the test.
17066  PATH_SEPARATOR=:
17067  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17068    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17069           || PATH_SEPARATOR=';'
17070       }
17071fi
17072
17073# Find out how to test for executable files. Don't use a zero-byte file,
17074# as systems may use methods other than mode bits to determine executability.
17075cat >conf$$.file <<_ASEOF
17076#! /bin/sh
17077exit 0
17078_ASEOF
17079chmod +x conf$$.file
17080if test -x conf$$.file >/dev/null 2>&1; then
17081  ac_executable_p="test -x"
17082else
17083  ac_executable_p="test -f"
17084fi
17085rm -f conf$$.file
17086
17087# Extract the first word of "msgfmt", so it can be a program name with args.
17088set dummy msgfmt; ac_word=$2
17089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17090$as_echo_n "checking for $ac_word... " >&6; }
17091if ${ac_cv_path_MSGFMT+:} false; then :
17092  $as_echo_n "(cached) " >&6
17093else
17094  case "$MSGFMT" in
17095  [\\/]* | ?:[\\/]*)
17096    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17097    ;;
17098  *)
17099    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17100    for ac_dir in $PATH; do
17101      IFS="$ac_save_IFS"
17102      test -z "$ac_dir" && ac_dir=.
17103      for ac_exec_ext in '' $ac_executable_extensions; do
17104        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17105          echo "$as_me: trying $ac_dir/$ac_word..." >&5
17106          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17107     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17108            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17109            break 2
17110          fi
17111        fi
17112      done
17113    done
17114    IFS="$ac_save_IFS"
17115  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17116    ;;
17117esac
17118fi
17119MSGFMT="$ac_cv_path_MSGFMT"
17120if test "$MSGFMT" != ":"; then
17121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17122$as_echo "$MSGFMT" >&6; }
17123else
17124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125$as_echo "no" >&6; }
17126fi
17127
17128  # Extract the first word of "gmsgfmt", so it can be a program name with args.
17129set dummy gmsgfmt; ac_word=$2
17130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17131$as_echo_n "checking for $ac_word... " >&6; }
17132if ${ac_cv_path_GMSGFMT+:} false; then :
17133  $as_echo_n "(cached) " >&6
17134else
17135  case $GMSGFMT in
17136  [\\/]* | ?:[\\/]*)
17137  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17138  ;;
17139  *)
17140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17141for as_dir in $PATH
17142do
17143  IFS=$as_save_IFS
17144  test -z "$as_dir" && as_dir=.
17145    for ac_exec_ext in '' $ac_executable_extensions; do
17146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17147    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17149    break 2
17150  fi
17151done
17152  done
17153IFS=$as_save_IFS
17154
17155  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17156  ;;
17157esac
17158fi
17159GMSGFMT=$ac_cv_path_GMSGFMT
17160if test -n "$GMSGFMT"; then
17161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17162$as_echo "$GMSGFMT" >&6; }
17163else
17164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165$as_echo "no" >&6; }
17166fi
17167
17168
17169
17170    case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17171    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
17172    *) GMSGFMT_015=$GMSGFMT ;;
17173  esac
17174
17175
17176
17177# Prepare PATH_SEPARATOR.
17178# The user is always right.
17179if test "${PATH_SEPARATOR+set}" != set; then
17180  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17181  # contains only /bin. Note that ksh looks also at the FPATH variable,
17182  # so we have to set that as well for the test.
17183  PATH_SEPARATOR=:
17184  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17185    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17186           || PATH_SEPARATOR=';'
17187       }
17188fi
17189
17190# Find out how to test for executable files. Don't use a zero-byte file,
17191# as systems may use methods other than mode bits to determine executability.
17192cat >conf$$.file <<_ASEOF
17193#! /bin/sh
17194exit 0
17195_ASEOF
17196chmod +x conf$$.file
17197if test -x conf$$.file >/dev/null 2>&1; then
17198  ac_executable_p="test -x"
17199else
17200  ac_executable_p="test -f"
17201fi
17202rm -f conf$$.file
17203
17204# Extract the first word of "xgettext", so it can be a program name with args.
17205set dummy xgettext; ac_word=$2
17206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17207$as_echo_n "checking for $ac_word... " >&6; }
17208if ${ac_cv_path_XGETTEXT+:} false; then :
17209  $as_echo_n "(cached) " >&6
17210else
17211  case "$XGETTEXT" in
17212  [\\/]* | ?:[\\/]*)
17213    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17214    ;;
17215  *)
17216    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17217    for ac_dir in $PATH; do
17218      IFS="$ac_save_IFS"
17219      test -z "$ac_dir" && ac_dir=.
17220      for ac_exec_ext in '' $ac_executable_extensions; do
17221        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17222          echo "$as_me: trying $ac_dir/$ac_word..." >&5
17223          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17224     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17225            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17226            break 2
17227          fi
17228        fi
17229      done
17230    done
17231    IFS="$ac_save_IFS"
17232  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17233    ;;
17234esac
17235fi
17236XGETTEXT="$ac_cv_path_XGETTEXT"
17237if test "$XGETTEXT" != ":"; then
17238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17239$as_echo "$XGETTEXT" >&6; }
17240else
17241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242$as_echo "no" >&6; }
17243fi
17244
17245    rm -f messages.po
17246
17247    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
17248    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
17249    *) XGETTEXT_015=$XGETTEXT ;;
17250  esac
17251
17252
17253
17254# Prepare PATH_SEPARATOR.
17255# The user is always right.
17256if test "${PATH_SEPARATOR+set}" != set; then
17257  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17258  # contains only /bin. Note that ksh looks also at the FPATH variable,
17259  # so we have to set that as well for the test.
17260  PATH_SEPARATOR=:
17261  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17262    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17263           || PATH_SEPARATOR=';'
17264       }
17265fi
17266
17267# Find out how to test for executable files. Don't use a zero-byte file,
17268# as systems may use methods other than mode bits to determine executability.
17269cat >conf$$.file <<_ASEOF
17270#! /bin/sh
17271exit 0
17272_ASEOF
17273chmod +x conf$$.file
17274if test -x conf$$.file >/dev/null 2>&1; then
17275  ac_executable_p="test -x"
17276else
17277  ac_executable_p="test -f"
17278fi
17279rm -f conf$$.file
17280
17281# Extract the first word of "msgmerge", so it can be a program name with args.
17282set dummy msgmerge; ac_word=$2
17283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17284$as_echo_n "checking for $ac_word... " >&6; }
17285if ${ac_cv_path_MSGMERGE+:} false; then :
17286  $as_echo_n "(cached) " >&6
17287else
17288  case "$MSGMERGE" in
17289  [\\/]* | ?:[\\/]*)
17290    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17291    ;;
17292  *)
17293    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17294    for ac_dir in $PATH; do
17295      IFS="$ac_save_IFS"
17296      test -z "$ac_dir" && ac_dir=.
17297      for ac_exec_ext in '' $ac_executable_extensions; do
17298        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17299          echo "$as_me: trying $ac_dir/$ac_word..." >&5
17300          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17301            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17302            break 2
17303          fi
17304        fi
17305      done
17306    done
17307    IFS="$ac_save_IFS"
17308  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17309    ;;
17310esac
17311fi
17312MSGMERGE="$ac_cv_path_MSGMERGE"
17313if test "$MSGMERGE" != ":"; then
17314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17315$as_echo "$MSGMERGE" >&6; }
17316else
17317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17318$as_echo "no" >&6; }
17319fi
17320
17321
17322    if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
17323    MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
17324  else
17325        if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
17326      MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
17327    else
17328                        MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
17329    fi
17330  fi
17331
17332
17333    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
17334
17335
17336  ac_config_commands="$ac_config_commands po-directories"
17337
17338
17339
17340      if test "X$prefix" = "XNONE"; then
17341    acl_final_prefix="$ac_default_prefix"
17342  else
17343    acl_final_prefix="$prefix"
17344  fi
17345  if test "X$exec_prefix" = "XNONE"; then
17346    acl_final_exec_prefix='${prefix}'
17347  else
17348    acl_final_exec_prefix="$exec_prefix"
17349  fi
17350  acl_save_prefix="$prefix"
17351  prefix="$acl_final_prefix"
17352  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17353  prefix="$acl_save_prefix"
17354
17355
17356
17357# Check whether --with-gnu-ld was given.
17358if test "${with_gnu_ld+set}" = set; then :
17359  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17360else
17361  with_gnu_ld=no
17362fi
17363
17364# Prepare PATH_SEPARATOR.
17365# The user is always right.
17366if test "${PATH_SEPARATOR+set}" != set; then
17367  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17368  # contains only /bin. Note that ksh looks also at the FPATH variable,
17369  # so we have to set that as well for the test.
17370  PATH_SEPARATOR=:
17371  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17372    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17373           || PATH_SEPARATOR=';'
17374       }
17375fi
17376
17377if test -n "$LD"; then
17378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
17379$as_echo_n "checking for ld... " >&6; }
17380elif test "$GCC" = yes; then
17381  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17382$as_echo_n "checking for ld used by $CC... " >&6; }
17383elif test "$with_gnu_ld" = yes; then
17384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17385$as_echo_n "checking for GNU ld... " >&6; }
17386else
17387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17388$as_echo_n "checking for non-GNU ld... " >&6; }
17389fi
17390if test -n "$LD"; then
17391  # Let the user override the test with a path.
17392  :
17393else
17394  if ${acl_cv_path_LD+:} false; then :
17395  $as_echo_n "(cached) " >&6
17396else
17397
17398    acl_cv_path_LD= # Final result of this test
17399    ac_prog=ld # Program to search in $PATH
17400    if test "$GCC" = yes; then
17401      # Check if gcc -print-prog-name=ld gives a path.
17402      case $host in
17403        *-*-mingw*)
17404          # gcc leaves a trailing carriage return which upsets mingw
17405          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17406        *)
17407          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17408      esac
17409      case $acl_output in
17410        # Accept absolute paths.
17411        [\\/]* | ?:[\\/]*)
17412          re_direlt='/[^/][^/]*/\.\./'
17413          # Canonicalize the pathname of ld
17414          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17415          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17416            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17417          done
17418          # Got the pathname. No search in PATH is needed.
17419          acl_cv_path_LD="$acl_output"
17420          ac_prog=
17421          ;;
17422        "")
17423          # If it fails, then pretend we aren't using GCC.
17424          ;;
17425        *)
17426          # If it is relative, then search for the first ld in PATH.
17427          with_gnu_ld=unknown
17428          ;;
17429      esac
17430    fi
17431    if test -n "$ac_prog"; then
17432      # Search for $ac_prog in $PATH.
17433      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17434      for ac_dir in $PATH; do
17435        IFS="$acl_save_ifs"
17436        test -z "$ac_dir" && ac_dir=.
17437        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17438          acl_cv_path_LD="$ac_dir/$ac_prog"
17439          # Check to see if the program is GNU ld.  I'd rather use --version,
17440          # but apparently some variants of GNU ld only accept -v.
17441          # Break only if it was the GNU/non-GNU ld that we prefer.
17442          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
17443            *GNU* | *'with BFD'*)
17444              test "$with_gnu_ld" != no && break
17445              ;;
17446            *)
17447              test "$with_gnu_ld" != yes && break
17448              ;;
17449          esac
17450        fi
17451      done
17452      IFS="$acl_save_ifs"
17453    fi
17454    case $host in
17455      *-*-aix*)
17456        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457/* end confdefs.h.  */
17458#if defined __powerpc64__ || defined _ARCH_PPC64
17459                int ok;
17460               #else
17461                error fail
17462               #endif
17463
17464_ACEOF
17465if ac_fn_c_try_compile "$LINENO"; then :
17466  # The compiler produces 64-bit code. Add option '-b64' so that the
17467           # linker groks 64-bit object files.
17468           case "$acl_cv_path_LD " in
17469             *" -b64 "*) ;;
17470             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
17471           esac
17472
17473fi
17474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475        ;;
17476      sparc64-*-netbsd*)
17477        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478/* end confdefs.h.  */
17479#if defined __sparcv9 || defined __arch64__
17480                int ok;
17481               #else
17482                error fail
17483               #endif
17484
17485_ACEOF
17486if ac_fn_c_try_compile "$LINENO"; then :
17487
17488else
17489  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
17490           # so that the linker groks 32-bit object files.
17491           case "$acl_cv_path_LD " in
17492             *" -m elf32_sparc "*) ;;
17493             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
17494           esac
17495
17496fi
17497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498        ;;
17499    esac
17500
17501fi
17502
17503  LD="$acl_cv_path_LD"
17504fi
17505if test -n "$LD"; then
17506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17507$as_echo "$LD" >&6; }
17508else
17509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17510$as_echo "no" >&6; }
17511  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17512fi
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17514$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17515if ${acl_cv_prog_gnu_ld+:} false; then :
17516  $as_echo_n "(cached) " >&6
17517else
17518  # I'd rather use --version here, but apparently some GNU lds only accept -v.
17519case `$LD -v 2>&1 </dev/null` in
17520*GNU* | *'with BFD'*)
17521  acl_cv_prog_gnu_ld=yes
17522  ;;
17523*)
17524  acl_cv_prog_gnu_ld=no
17525  ;;
17526esac
17527fi
17528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17529$as_echo "$acl_cv_prog_gnu_ld" >&6; }
17530with_gnu_ld=$acl_cv_prog_gnu_ld
17531
17532
17533
17534
17535                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17536$as_echo_n "checking for shared library run path origin... " >&6; }
17537if ${acl_cv_rpath+:} false; then :
17538  $as_echo_n "(cached) " >&6
17539else
17540
17541    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17542    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17543    . ./conftest.sh
17544    rm -f ./conftest.sh
17545    acl_cv_rpath=done
17546
17547fi
17548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17549$as_echo "$acl_cv_rpath" >&6; }
17550  wl="$acl_cv_wl"
17551  acl_libext="$acl_cv_libext"
17552  acl_shlibext="$acl_cv_shlibext"
17553  acl_libname_spec="$acl_cv_libname_spec"
17554  acl_library_names_spec="$acl_cv_library_names_spec"
17555  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17556  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17557  acl_hardcode_direct="$acl_cv_hardcode_direct"
17558  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
17559    # Check whether --enable-rpath was given.
17560if test "${enable_rpath+set}" = set; then :
17561  enableval=$enable_rpath; :
17562else
17563  enable_rpath=yes
17564fi
17565
17566
17567
17568
17569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
17570$as_echo_n "checking 32-bit host C ABI... " >&6; }
17571if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
17572  $as_echo_n "(cached) " >&6
17573else
17574  if test -n "$gl_cv_host_cpu_c_abi"; then
17575       case "$gl_cv_host_cpu_c_abi" in
17576         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
17577           gl_cv_host_cpu_c_abi_32bit=yes ;;
17578         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
17579           gl_cv_host_cpu_c_abi_32bit=no ;;
17580         *)
17581           gl_cv_host_cpu_c_abi_32bit=unknown ;;
17582       esac
17583     else
17584       case "$host_cpu" in
17585
17586         # CPUs that only support a 32-bit ABI.
17587         arc \
17588         | bfin \
17589         | cris* \
17590         | csky \
17591         | epiphany \
17592         | ft32 \
17593         | h8300 \
17594         | m68k \
17595         | microblaze | microblazeel \
17596         | nds32 | nds32le | nds32be \
17597         | nios2 | nios2eb | nios2el \
17598         | or1k* \
17599         | or32 \
17600         | sh | sh1234 | sh1234elb \
17601         | tic6x \
17602         | xtensa* )
17603           gl_cv_host_cpu_c_abi_32bit=yes
17604           ;;
17605
17606         # CPUs that only support a 64-bit ABI.
17607         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
17608         | mmix )
17609           gl_cv_host_cpu_c_abi_32bit=no
17610           ;;
17611
17612         i[34567]86 )
17613           gl_cv_host_cpu_c_abi_32bit=yes
17614           ;;
17615
17616         x86_64 )
17617           # On x86_64 systems, the C compiler may be generating code in one of
17618           # these ABIs:
17619           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
17620           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
17621           #   with native Windows (mingw, MSVC).
17622           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
17623           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
17624           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625/* end confdefs.h.  */
17626#if (defined __x86_64__ || defined __amd64__ \
17627                       || defined _M_X64 || defined _M_AMD64) \
17628                      && !(defined __ILP32__ || defined _ILP32)
17629                   int ok;
17630                  #else
17631                   error fail
17632                  #endif
17633
17634_ACEOF
17635if ac_fn_c_try_compile "$LINENO"; then :
17636  gl_cv_host_cpu_c_abi_32bit=no
17637else
17638  gl_cv_host_cpu_c_abi_32bit=yes
17639fi
17640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641           ;;
17642
17643         arm* | aarch64 )
17644           # Assume arm with EABI.
17645           # On arm64 systems, the C compiler may be generating code in one of
17646           # these ABIs:
17647           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
17648           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
17649           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
17650           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651/* end confdefs.h.  */
17652#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
17653                   int ok;
17654                  #else
17655                   error fail
17656                  #endif
17657
17658_ACEOF
17659if ac_fn_c_try_compile "$LINENO"; then :
17660  gl_cv_host_cpu_c_abi_32bit=no
17661else
17662  gl_cv_host_cpu_c_abi_32bit=yes
17663fi
17664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665           ;;
17666
17667         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
17668           # On hppa, the C compiler may be generating 32-bit code or 64-bit
17669           # code. In the latter case, it defines _LP64 and __LP64__.
17670           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671/* end confdefs.h.  */
17672#ifdef __LP64__
17673                   int ok;
17674                  #else
17675                   error fail
17676                  #endif
17677
17678_ACEOF
17679if ac_fn_c_try_compile "$LINENO"; then :
17680  gl_cv_host_cpu_c_abi_32bit=no
17681else
17682  gl_cv_host_cpu_c_abi_32bit=yes
17683fi
17684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685           ;;
17686
17687         ia64* )
17688           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
17689           # 32-bit code. In the latter case, it defines _ILP32.
17690           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691/* end confdefs.h.  */
17692#ifdef _ILP32
17693                   int ok;
17694                  #else
17695                   error fail
17696                  #endif
17697
17698_ACEOF
17699if ac_fn_c_try_compile "$LINENO"; then :
17700  gl_cv_host_cpu_c_abi_32bit=yes
17701else
17702  gl_cv_host_cpu_c_abi_32bit=no
17703fi
17704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705           ;;
17706
17707         mips* )
17708           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
17709           # at 32.
17710           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711/* end confdefs.h.  */
17712#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
17713                   int ok;
17714                  #else
17715                   error fail
17716                  #endif
17717
17718_ACEOF
17719if ac_fn_c_try_compile "$LINENO"; then :
17720  gl_cv_host_cpu_c_abi_32bit=no
17721else
17722  gl_cv_host_cpu_c_abi_32bit=yes
17723fi
17724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725           ;;
17726
17727         powerpc* )
17728           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
17729           # No need to distinguish them here; the caller may distinguish
17730           # them based on the OS.
17731           # On powerpc64 systems, the C compiler may still be generating
17732           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
17733           # be generating 64-bit code.
17734           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735/* end confdefs.h.  */
17736#if defined __powerpc64__ || defined _ARCH_PPC64
17737                   int ok;
17738                  #else
17739                   error fail
17740                  #endif
17741
17742_ACEOF
17743if ac_fn_c_try_compile "$LINENO"; then :
17744  gl_cv_host_cpu_c_abi_32bit=no
17745else
17746  gl_cv_host_cpu_c_abi_32bit=yes
17747fi
17748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749           ;;
17750
17751         rs6000 )
17752           gl_cv_host_cpu_c_abi_32bit=yes
17753           ;;
17754
17755         riscv32 | riscv64 )
17756           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
17757           # Size of 'long' and 'void *':
17758           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759/* end confdefs.h.  */
17760#if defined __LP64__
17761                    int ok;
17762                  #else
17763                    error fail
17764                  #endif
17765
17766_ACEOF
17767if ac_fn_c_try_compile "$LINENO"; then :
17768  gl_cv_host_cpu_c_abi_32bit=no
17769else
17770  gl_cv_host_cpu_c_abi_32bit=yes
17771fi
17772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17773           ;;
17774
17775         s390* )
17776           # On s390x, the C compiler may be generating 64-bit (= s390x) code
17777           # or 31-bit (= s390) code.
17778           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779/* end confdefs.h.  */
17780#if defined __LP64__ || defined __s390x__
17781                    int ok;
17782                  #else
17783                    error fail
17784                  #endif
17785
17786_ACEOF
17787if ac_fn_c_try_compile "$LINENO"; then :
17788  gl_cv_host_cpu_c_abi_32bit=no
17789else
17790  gl_cv_host_cpu_c_abi_32bit=yes
17791fi
17792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793           ;;
17794
17795         sparc | sparc64 )
17796           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
17797           # C compiler still generates 32-bit code.
17798           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799/* end confdefs.h.  */
17800#if defined __sparcv9 || defined __arch64__
17801                   int ok;
17802                  #else
17803                   error fail
17804                  #endif
17805
17806_ACEOF
17807if ac_fn_c_try_compile "$LINENO"; then :
17808  gl_cv_host_cpu_c_abi_32bit=no
17809else
17810  gl_cv_host_cpu_c_abi_32bit=yes
17811fi
17812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813           ;;
17814
17815         *)
17816           gl_cv_host_cpu_c_abi_32bit=unknown
17817           ;;
17818       esac
17819     fi
17820
17821fi
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
17823$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
17824
17825  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
17826
17827
17828
17829
17830
17831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
17832$as_echo_n "checking for ELF binary format... " >&6; }
17833if ${gl_cv_elf+:} false; then :
17834  $as_echo_n "(cached) " >&6
17835else
17836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837/* end confdefs.h.  */
17838#ifdef __ELF__
17839        Extensible Linking Format
17840        #endif
17841
17842_ACEOF
17843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17844  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
17845  gl_cv_elf=yes
17846else
17847  gl_cv_elf=no
17848fi
17849rm -f conftest*
17850
17851
17852fi
17853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
17854$as_echo "$gl_cv_elf" >&6; }
17855  if test $gl_cv_elf; then
17856    # Extract the ELF class of a file (5th byte) in decimal.
17857    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
17858    if od -A x < /dev/null >/dev/null 2>/dev/null; then
17859      # Use POSIX od.
17860      func_elfclass ()
17861      {
17862        od -A n -t d1 -j 4 -N 1
17863      }
17864    else
17865      # Use BSD hexdump.
17866      func_elfclass ()
17867      {
17868        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
17869        echo
17870      }
17871    fi
17872    case $HOST_CPU_C_ABI_32BIT in
17873      yes)
17874        # 32-bit ABI.
17875        acl_is_expected_elfclass ()
17876        {
17877          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 1
17878        }
17879        ;;
17880      no)
17881        # 64-bit ABI.
17882        acl_is_expected_elfclass ()
17883        {
17884          test "`func_elfclass | sed -e 's/[ 	]//g'`" = 2
17885        }
17886        ;;
17887      *)
17888        # Unknown.
17889        acl_is_expected_elfclass ()
17890        {
17891          :
17892        }
17893        ;;
17894    esac
17895  else
17896    acl_is_expected_elfclass ()
17897    {
17898      :
17899    }
17900  fi
17901
17902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
17903$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
17904if ${acl_cv_libdirstems+:} false; then :
17905  $as_echo_n "(cached) " >&6
17906else
17907            acl_libdirstem=lib
17908     acl_libdirstem2=
17909     acl_libdirstem3=
17910     case "$host_os" in
17911       solaris*)
17912                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
17913           acl_libdirstem2=lib/64
17914           case "$host_cpu" in
17915             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
17916             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
17917           esac
17918         fi
17919         ;;
17920       *)
17921                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
17922                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
17923         if test $HOST_CPU_C_ABI_32BIT != no; then
17924           # 32-bit or unknown ABI.
17925           if test -d /usr/lib32; then
17926             acl_libdirstem2=lib32
17927           fi
17928         fi
17929         if test $HOST_CPU_C_ABI_32BIT != yes; then
17930           # 64-bit or unknown ABI.
17931           if test -d /usr/lib64; then
17932             acl_libdirstem3=lib64
17933           fi
17934         fi
17935         if test -n "$searchpath"; then
17936           acl_save_IFS="${IFS= 	}"; IFS=":"
17937           for searchdir in $searchpath; do
17938             if test -d "$searchdir"; then
17939               case "$searchdir" in
17940                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
17941                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
17942                 */../ | */.. )
17943                   # Better ignore directories of this form. They are misleading.
17944                   ;;
17945                 *) searchdir=`cd "$searchdir" && pwd`
17946                    case "$searchdir" in
17947                      */lib32 ) acl_libdirstem2=lib32 ;;
17948                      */lib64 ) acl_libdirstem3=lib64 ;;
17949                    esac ;;
17950               esac
17951             fi
17952           done
17953           IFS="$acl_save_IFS"
17954           if test $HOST_CPU_C_ABI_32BIT = yes; then
17955             # 32-bit ABI.
17956             acl_libdirstem3=
17957           fi
17958           if test $HOST_CPU_C_ABI_32BIT = no; then
17959             # 64-bit ABI.
17960             acl_libdirstem2=
17961           fi
17962         fi
17963         ;;
17964     esac
17965     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
17966     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
17967     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
17968
17969fi
17970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
17971$as_echo "$acl_cv_libdirstems" >&6; }
17972      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
17973  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
17974  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986    use_additional=yes
17987
17988  acl_save_prefix="$prefix"
17989  prefix="$acl_final_prefix"
17990  acl_save_exec_prefix="$exec_prefix"
17991  exec_prefix="$acl_final_exec_prefix"
17992
17993    eval additional_includedir=\"$includedir\"
17994    eval additional_libdir=\"$libdir\"
17995    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
17996    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
17997
17998  exec_prefix="$acl_save_exec_prefix"
17999  prefix="$acl_save_prefix"
18000
18001
18002# Check whether --with-libiconv-prefix was given.
18003if test "${with_libiconv_prefix+set}" = set; then :
18004  withval=$with_libiconv_prefix;
18005    if test "X$withval" = "Xno"; then
18006      use_additional=no
18007    else
18008      if test "X$withval" = "X"; then
18009
18010  acl_save_prefix="$prefix"
18011  prefix="$acl_final_prefix"
18012  acl_save_exec_prefix="$exec_prefix"
18013  exec_prefix="$acl_final_exec_prefix"
18014
18015          eval additional_includedir=\"$includedir\"
18016          eval additional_libdir=\"$libdir\"
18017          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18018          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18019
18020  exec_prefix="$acl_save_exec_prefix"
18021  prefix="$acl_save_prefix"
18022
18023      else
18024        additional_includedir="$withval/include"
18025        additional_libdir="$withval/$acl_libdirstem"
18026        additional_libdir2="$withval/$acl_libdirstem2"
18027        additional_libdir3="$withval/$acl_libdirstem3"
18028      fi
18029    fi
18030
18031fi
18032
18033  if test "X$additional_libdir2" = "X$additional_libdir"; then
18034    additional_libdir2=
18035  fi
18036  if test "X$additional_libdir3" = "X$additional_libdir"; then
18037    additional_libdir3=
18038  fi
18039      LIBICONV=
18040  LTLIBICONV=
18041  INCICONV=
18042  LIBICONV_PREFIX=
18043      HAVE_LIBICONV=
18044  rpathdirs=
18045  ltrpathdirs=
18046  names_already_handled=
18047  names_next_round='iconv '
18048  while test -n "$names_next_round"; do
18049    names_this_round="$names_next_round"
18050    names_next_round=
18051    for name in $names_this_round; do
18052      already_handled=
18053      for n in $names_already_handled; do
18054        if test "$n" = "$name"; then
18055          already_handled=yes
18056          break
18057        fi
18058      done
18059      if test -z "$already_handled"; then
18060        names_already_handled="$names_already_handled $name"
18061                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18062        eval value=\"\$HAVE_LIB$uppername\"
18063        if test -n "$value"; then
18064          if test "$value" = yes; then
18065            eval value=\"\$LIB$uppername\"
18066            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18067            eval value=\"\$LTLIB$uppername\"
18068            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18069          else
18070                                    :
18071          fi
18072        else
18073                              found_dir=
18074          found_la=
18075          found_so=
18076          found_a=
18077          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18078          if test -n "$acl_shlibext"; then
18079            shrext=".$acl_shlibext"             # typically: shrext=.so
18080          else
18081            shrext=
18082          fi
18083          if test $use_additional = yes; then
18084            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
18085              if test "X$found_dir" = "X"; then
18086                eval dir=\$$additional_libdir_variable
18087                if test -n "$dir"; then
18088                                                      if test -n "$acl_shlibext"; then
18089                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18090                      found_dir="$dir"
18091                      found_so="$dir/$libname$shrext"
18092                    else
18093                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18094                        ver=`(cd "$dir" && \
18095                              for f in "$libname$shrext".*; do echo "$f"; done \
18096                              | sed -e "s,^$libname$shrext\\\\.,," \
18097                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18098                              | sed 1q ) 2>/dev/null`
18099                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18100                          found_dir="$dir"
18101                          found_so="$dir/$libname$shrext.$ver"
18102                        fi
18103                      else
18104                        eval library_names=\"$acl_library_names_spec\"
18105                        for f in $library_names; do
18106                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18107                            found_dir="$dir"
18108                            found_so="$dir/$f"
18109                            break
18110                          fi
18111                        done
18112                      fi
18113                    fi
18114                  fi
18115                                    if test "X$found_dir" = "X"; then
18116                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18117                      found_dir="$dir"
18118                      found_a="$dir/$libname.$acl_libext"
18119                    fi
18120                  fi
18121                  if test "X$found_dir" != "X"; then
18122                    if test -f "$dir/$libname.la"; then
18123                      found_la="$dir/$libname.la"
18124                    fi
18125                  fi
18126                fi
18127              fi
18128            done
18129          fi
18130          if test "X$found_dir" = "X"; then
18131            for x in $LDFLAGS $LTLIBICONV; do
18132
18133  acl_save_prefix="$prefix"
18134  prefix="$acl_final_prefix"
18135  acl_save_exec_prefix="$exec_prefix"
18136  exec_prefix="$acl_final_exec_prefix"
18137  eval x=\"$x\"
18138  exec_prefix="$acl_save_exec_prefix"
18139  prefix="$acl_save_prefix"
18140
18141              case "$x" in
18142                -L*)
18143                  dir=`echo "X$x" | sed -e 's/^X-L//'`
18144                                    if test -n "$acl_shlibext"; then
18145                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
18146                      found_dir="$dir"
18147                      found_so="$dir/$libname$shrext"
18148                    else
18149                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18150                        ver=`(cd "$dir" && \
18151                              for f in "$libname$shrext".*; do echo "$f"; done \
18152                              | sed -e "s,^$libname$shrext\\\\.,," \
18153                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18154                              | sed 1q ) 2>/dev/null`
18155                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
18156                          found_dir="$dir"
18157                          found_so="$dir/$libname$shrext.$ver"
18158                        fi
18159                      else
18160                        eval library_names=\"$acl_library_names_spec\"
18161                        for f in $library_names; do
18162                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
18163                            found_dir="$dir"
18164                            found_so="$dir/$f"
18165                            break
18166                          fi
18167                        done
18168                      fi
18169                    fi
18170                  fi
18171                                    if test "X$found_dir" = "X"; then
18172                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
18173                      found_dir="$dir"
18174                      found_a="$dir/$libname.$acl_libext"
18175                    fi
18176                  fi
18177                  if test "X$found_dir" != "X"; then
18178                    if test -f "$dir/$libname.la"; then
18179                      found_la="$dir/$libname.la"
18180                    fi
18181                  fi
18182                  ;;
18183              esac
18184              if test "X$found_dir" != "X"; then
18185                break
18186              fi
18187            done
18188          fi
18189          if test "X$found_dir" != "X"; then
18190                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18191            if test "X$found_so" != "X"; then
18192                                                        if test "$enable_rpath" = no \
18193                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18194                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
18195                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
18196                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18197              else
18198                                                                                haveit=
18199                for x in $ltrpathdirs; do
18200                  if test "X$x" = "X$found_dir"; then
18201                    haveit=yes
18202                    break
18203                  fi
18204                done
18205                if test -z "$haveit"; then
18206                  ltrpathdirs="$ltrpathdirs $found_dir"
18207                fi
18208                                if test "$acl_hardcode_direct" = yes; then
18209                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18210                else
18211                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18212                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18213                                                            haveit=
18214                    for x in $rpathdirs; do
18215                      if test "X$x" = "X$found_dir"; then
18216                        haveit=yes
18217                        break
18218                      fi
18219                    done
18220                    if test -z "$haveit"; then
18221                      rpathdirs="$rpathdirs $found_dir"
18222                    fi
18223                  else
18224                                                                                haveit=
18225                    for x in $LDFLAGS $LIBICONV; do
18226
18227  acl_save_prefix="$prefix"
18228  prefix="$acl_final_prefix"
18229  acl_save_exec_prefix="$exec_prefix"
18230  exec_prefix="$acl_final_exec_prefix"
18231  eval x=\"$x\"
18232  exec_prefix="$acl_save_exec_prefix"
18233  prefix="$acl_save_prefix"
18234
18235                      if test "X$x" = "X-L$found_dir"; then
18236                        haveit=yes
18237                        break
18238                      fi
18239                    done
18240                    if test -z "$haveit"; then
18241                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18242                    fi
18243                    if test "$acl_hardcode_minus_L" != no; then
18244                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18245                    else
18246                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18247                    fi
18248                  fi
18249                fi
18250              fi
18251            else
18252              if test "X$found_a" != "X"; then
18253                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18254              else
18255                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18256              fi
18257            fi
18258                        additional_includedir=
18259            case "$found_dir" in
18260              */$acl_libdirstem | */$acl_libdirstem/)
18261                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18262                if test "$name" = 'iconv'; then
18263                  LIBICONV_PREFIX="$basedir"
18264                fi
18265                additional_includedir="$basedir/include"
18266                ;;
18267              */$acl_libdirstem2 | */$acl_libdirstem2/)
18268                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18269                if test "$name" = 'iconv'; then
18270                  LIBICONV_PREFIX="$basedir"
18271                fi
18272                additional_includedir="$basedir/include"
18273                ;;
18274              */$acl_libdirstem3 | */$acl_libdirstem3/)
18275                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
18276                if test "$name" = 'iconv'; then
18277                  LIBICONV_PREFIX="$basedir"
18278                fi
18279                additional_includedir="$basedir/include"
18280                ;;
18281            esac
18282            if test "X$additional_includedir" != "X"; then
18283                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
18284                haveit=
18285                if test "X$additional_includedir" = "X/usr/local/include"; then
18286                  if test -n "$GCC"; then
18287                    case $host_os in
18288                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18289                    esac
18290                  fi
18291                fi
18292                if test -z "$haveit"; then
18293                  for x in $CPPFLAGS $INCICONV; do
18294
18295  acl_save_prefix="$prefix"
18296  prefix="$acl_final_prefix"
18297  acl_save_exec_prefix="$exec_prefix"
18298  exec_prefix="$acl_final_exec_prefix"
18299  eval x=\"$x\"
18300  exec_prefix="$acl_save_exec_prefix"
18301  prefix="$acl_save_prefix"
18302
18303                    if test "X$x" = "X-I$additional_includedir"; then
18304                      haveit=yes
18305                      break
18306                    fi
18307                  done
18308                  if test -z "$haveit"; then
18309                    if test -d "$additional_includedir"; then
18310                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18311                    fi
18312                  fi
18313                fi
18314              fi
18315            fi
18316                        if test -n "$found_la"; then
18317                                                        save_libdir="$libdir"
18318              case "$found_la" in
18319                */* | *\\*) . "$found_la" ;;
18320                *) . "./$found_la" ;;
18321              esac
18322              libdir="$save_libdir"
18323                            for dep in $dependency_libs; do
18324                case "$dep" in
18325                  -L*)
18326                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18327                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
18328                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
18329                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
18330                      haveit=
18331                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
18332                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
18333                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
18334                        if test -n "$GCC"; then
18335                          case $host_os in
18336                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18337                          esac
18338                        fi
18339                      fi
18340                      if test -z "$haveit"; then
18341                        haveit=
18342                        for x in $LDFLAGS $LIBICONV; do
18343
18344  acl_save_prefix="$prefix"
18345  prefix="$acl_final_prefix"
18346  acl_save_exec_prefix="$exec_prefix"
18347  exec_prefix="$acl_final_exec_prefix"
18348  eval x=\"$x\"
18349  exec_prefix="$acl_save_exec_prefix"
18350  prefix="$acl_save_prefix"
18351
18352                          if test "X$x" = "X-L$dependency_libdir"; then
18353                            haveit=yes
18354                            break
18355                          fi
18356                        done
18357                        if test -z "$haveit"; then
18358                          if test -d "$dependency_libdir"; then
18359                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
18360                          fi
18361                        fi
18362                        haveit=
18363                        for x in $LDFLAGS $LTLIBICONV; do
18364
18365  acl_save_prefix="$prefix"
18366  prefix="$acl_final_prefix"
18367  acl_save_exec_prefix="$exec_prefix"
18368  exec_prefix="$acl_final_exec_prefix"
18369  eval x=\"$x\"
18370  exec_prefix="$acl_save_exec_prefix"
18371  prefix="$acl_save_prefix"
18372
18373                          if test "X$x" = "X-L$dependency_libdir"; then
18374                            haveit=yes
18375                            break
18376                          fi
18377                        done
18378                        if test -z "$haveit"; then
18379                          if test -d "$dependency_libdir"; then
18380                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
18381                          fi
18382                        fi
18383                      fi
18384                    fi
18385                    ;;
18386                  -R*)
18387                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
18388                    if test "$enable_rpath" != no; then
18389                                                                  haveit=
18390                      for x in $rpathdirs; do
18391                        if test "X$x" = "X$dir"; then
18392                          haveit=yes
18393                          break
18394                        fi
18395                      done
18396                      if test -z "$haveit"; then
18397                        rpathdirs="$rpathdirs $dir"
18398                      fi
18399                                                                  haveit=
18400                      for x in $ltrpathdirs; do
18401                        if test "X$x" = "X$dir"; then
18402                          haveit=yes
18403                          break
18404                        fi
18405                      done
18406                      if test -z "$haveit"; then
18407                        ltrpathdirs="$ltrpathdirs $dir"
18408                      fi
18409                    fi
18410                    ;;
18411                  -l*)
18412                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18413                    ;;
18414                  *.la)
18415                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18416                    ;;
18417                  *)
18418                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18419                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18420                    ;;
18421                esac
18422              done
18423            fi
18424          else
18425                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18426            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18427          fi
18428        fi
18429      fi
18430    done
18431  done
18432  if test "X$rpathdirs" != "X"; then
18433    if test -n "$acl_hardcode_libdir_separator"; then
18434                        alldirs=
18435      for found_dir in $rpathdirs; do
18436        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18437      done
18438            acl_save_libdir="$libdir"
18439      libdir="$alldirs"
18440      eval flag=\"$acl_hardcode_libdir_flag_spec\"
18441      libdir="$acl_save_libdir"
18442      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18443    else
18444            for found_dir in $rpathdirs; do
18445        acl_save_libdir="$libdir"
18446        libdir="$found_dir"
18447        eval flag=\"$acl_hardcode_libdir_flag_spec\"
18448        libdir="$acl_save_libdir"
18449        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18450      done
18451    fi
18452  fi
18453  if test "X$ltrpathdirs" != "X"; then
18454            for found_dir in $ltrpathdirs; do
18455      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18456    done
18457  fi
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18488$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18489if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18490  $as_echo_n "(cached) " >&6
18491else
18492  gt_save_LIBS="$LIBS"
18493     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18494     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495/* end confdefs.h.  */
18496#include <CoreFoundation/CFPreferences.h>
18497int
18498main ()
18499{
18500CFPreferencesCopyAppValue(NULL, NULL)
18501  ;
18502  return 0;
18503}
18504_ACEOF
18505if ac_fn_c_try_link "$LINENO"; then :
18506  gt_cv_func_CFPreferencesCopyAppValue=yes
18507else
18508  gt_cv_func_CFPreferencesCopyAppValue=no
18509fi
18510rm -f core conftest.err conftest.$ac_objext \
18511    conftest$ac_exeext conftest.$ac_ext
18512     LIBS="$gt_save_LIBS"
18513fi
18514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18515$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18516  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18517
18518$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18519
18520  fi
18521                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
18522$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
18523if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
18524  $as_echo_n "(cached) " >&6
18525else
18526  gt_save_LIBS="$LIBS"
18527     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529/* end confdefs.h.  */
18530#include <CoreFoundation/CFLocale.h>
18531int
18532main ()
18533{
18534CFLocaleCopyPreferredLanguages();
18535  ;
18536  return 0;
18537}
18538_ACEOF
18539if ac_fn_c_try_link "$LINENO"; then :
18540  gt_cv_func_CFLocaleCopyPreferredLanguages=yes
18541else
18542  gt_cv_func_CFLocaleCopyPreferredLanguages=no
18543fi
18544rm -f core conftest.err conftest.$ac_objext \
18545    conftest$ac_exeext conftest.$ac_ext
18546     LIBS="$gt_save_LIBS"
18547fi
18548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
18549$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
18550  if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
18551
18552$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
18553
18554  fi
18555  INTL_MACOSX_LIBS=
18556  if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
18557     || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
18558    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18559  fi
18560
18561
18562
18563
18564
18565
18566  LIBINTL=
18567  LTLIBINTL=
18568  POSUB=
18569
18570    case " $gt_needs " in
18571    *" need-formatstring-macros "*) gt_api_version=3 ;;
18572    *" need-ngettext "*) gt_api_version=2 ;;
18573    *) gt_api_version=1 ;;
18574  esac
18575  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
18576  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
18577
18578    if test "$USE_NLS" = "yes"; then
18579    gt_use_preinstalled_gnugettext=no
18580
18581
18582        if test $gt_api_version -ge 3; then
18583          gt_revision_test_code='
18584#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18585#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
18586#endif
18587typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
18588'
18589        else
18590          gt_revision_test_code=
18591        fi
18592        if test $gt_api_version -ge 2; then
18593          gt_expression_test_code=' + * ngettext ("", "", 0)'
18594        else
18595          gt_expression_test_code=
18596        fi
18597
18598        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18599$as_echo_n "checking for GNU gettext in libc... " >&6; }
18600if eval \${$gt_func_gnugettext_libc+:} false; then :
18601  $as_echo_n "(cached) " >&6
18602else
18603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604/* end confdefs.h.  */
18605
18606#include <libintl.h>
18607#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18608extern int _nl_msg_cat_cntr;
18609extern int *_nl_domain_bindings;
18610#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
18611#else
18612#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
18613#endif
18614$gt_revision_test_code
18615
18616int
18617main ()
18618{
18619
18620bindtextdomain ("", "");
18621return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
18622
18623  ;
18624  return 0;
18625}
18626_ACEOF
18627if ac_fn_c_try_link "$LINENO"; then :
18628  eval "$gt_func_gnugettext_libc=yes"
18629else
18630  eval "$gt_func_gnugettext_libc=no"
18631fi
18632rm -f core conftest.err conftest.$ac_objext \
18633    conftest$ac_exeext conftest.$ac_ext
18634fi
18635eval ac_res=\$$gt_func_gnugettext_libc
18636	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18637$as_echo "$ac_res" >&6; }
18638
18639        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18640
18641
18642
18643
18644
18645          am_save_CPPFLAGS="$CPPFLAGS"
18646
18647  for element in $INCICONV; do
18648    haveit=
18649    for x in $CPPFLAGS; do
18650
18651  acl_save_prefix="$prefix"
18652  prefix="$acl_final_prefix"
18653  acl_save_exec_prefix="$exec_prefix"
18654  exec_prefix="$acl_final_exec_prefix"
18655  eval x=\"$x\"
18656  exec_prefix="$acl_save_exec_prefix"
18657  prefix="$acl_save_prefix"
18658
18659      if test "X$x" = "X$element"; then
18660        haveit=yes
18661        break
18662      fi
18663    done
18664    if test -z "$haveit"; then
18665      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18666    fi
18667  done
18668
18669
18670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18671$as_echo_n "checking for iconv... " >&6; }
18672if ${am_cv_func_iconv+:} false; then :
18673  $as_echo_n "(cached) " >&6
18674else
18675
18676    am_cv_func_iconv="no, consider installing GNU libiconv"
18677    am_cv_lib_iconv=no
18678    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679/* end confdefs.h.  */
18680
18681#include <stdlib.h>
18682#include <iconv.h>
18683
18684int
18685main ()
18686{
18687iconv_t cd = iconv_open("","");
18688           iconv(cd,NULL,NULL,NULL,NULL);
18689           iconv_close(cd);
18690  ;
18691  return 0;
18692}
18693_ACEOF
18694if ac_fn_c_try_link "$LINENO"; then :
18695  am_cv_func_iconv=yes
18696fi
18697rm -f core conftest.err conftest.$ac_objext \
18698    conftest$ac_exeext conftest.$ac_ext
18699    if test "$am_cv_func_iconv" != yes; then
18700      am_save_LIBS="$LIBS"
18701      LIBS="$LIBS $LIBICONV"
18702      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h.  */
18704
18705#include <stdlib.h>
18706#include <iconv.h>
18707
18708int
18709main ()
18710{
18711iconv_t cd = iconv_open("","");
18712             iconv(cd,NULL,NULL,NULL,NULL);
18713             iconv_close(cd);
18714  ;
18715  return 0;
18716}
18717_ACEOF
18718if ac_fn_c_try_link "$LINENO"; then :
18719  am_cv_lib_iconv=yes
18720        am_cv_func_iconv=yes
18721fi
18722rm -f core conftest.err conftest.$ac_objext \
18723    conftest$ac_exeext conftest.$ac_ext
18724      LIBS="$am_save_LIBS"
18725    fi
18726
18727fi
18728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18729$as_echo "$am_cv_func_iconv" >&6; }
18730  if test "$am_cv_func_iconv" = yes; then
18731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18732$as_echo_n "checking for working iconv... " >&6; }
18733if ${am_cv_func_iconv_works+:} false; then :
18734  $as_echo_n "(cached) " >&6
18735else
18736
18737                  am_save_LIBS="$LIBS"
18738      if test $am_cv_lib_iconv = yes; then
18739        LIBS="$LIBS $LIBICONV"
18740      fi
18741      am_cv_func_iconv_works=no
18742      for ac_iconv_const in '' 'const'; do
18743        if test "$cross_compiling" = yes; then :
18744  case "$host_os" in
18745             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18746             *)            am_cv_func_iconv_works="guessing yes" ;;
18747           esac
18748else
18749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750/* end confdefs.h.  */
18751
18752#include <iconv.h>
18753#include <string.h>
18754
18755#ifndef ICONV_CONST
18756# define ICONV_CONST $ac_iconv_const
18757#endif
18758
18759int
18760main ()
18761{
18762int result = 0;
18763  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18764     returns.  */
18765  {
18766    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18767    if (cd_utf8_to_88591 != (iconv_t)(-1))
18768      {
18769        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18770        char buf[10];
18771        ICONV_CONST char *inptr = input;
18772        size_t inbytesleft = strlen (input);
18773        char *outptr = buf;
18774        size_t outbytesleft = sizeof (buf);
18775        size_t res = iconv (cd_utf8_to_88591,
18776                            &inptr, &inbytesleft,
18777                            &outptr, &outbytesleft);
18778        if (res == 0)
18779          result |= 1;
18780        iconv_close (cd_utf8_to_88591);
18781      }
18782  }
18783  /* Test against Solaris 10 bug: Failures are not distinguishable from
18784     successful returns.  */
18785  {
18786    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18787    if (cd_ascii_to_88591 != (iconv_t)(-1))
18788      {
18789        static ICONV_CONST char input[] = "\263";
18790        char buf[10];
18791        ICONV_CONST char *inptr = input;
18792        size_t inbytesleft = strlen (input);
18793        char *outptr = buf;
18794        size_t outbytesleft = sizeof (buf);
18795        size_t res = iconv (cd_ascii_to_88591,
18796                            &inptr, &inbytesleft,
18797                            &outptr, &outbytesleft);
18798        if (res == 0)
18799          result |= 2;
18800        iconv_close (cd_ascii_to_88591);
18801      }
18802  }
18803  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
18804  {
18805    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18806    if (cd_88591_to_utf8 != (iconv_t)(-1))
18807      {
18808        static ICONV_CONST char input[] = "\304";
18809        static char buf[2] = { (char)0xDE, (char)0xAD };
18810        ICONV_CONST char *inptr = input;
18811        size_t inbytesleft = 1;
18812        char *outptr = buf;
18813        size_t outbytesleft = 1;
18814        size_t res = iconv (cd_88591_to_utf8,
18815                            &inptr, &inbytesleft,
18816                            &outptr, &outbytesleft);
18817        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18818          result |= 4;
18819        iconv_close (cd_88591_to_utf8);
18820      }
18821  }
18822#if 0 /* This bug could be worked around by the caller.  */
18823  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
18824  {
18825    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18826    if (cd_88591_to_utf8 != (iconv_t)(-1))
18827      {
18828        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18829        char buf[50];
18830        ICONV_CONST char *inptr = input;
18831        size_t inbytesleft = strlen (input);
18832        char *outptr = buf;
18833        size_t outbytesleft = sizeof (buf);
18834        size_t res = iconv (cd_88591_to_utf8,
18835                            &inptr, &inbytesleft,
18836                            &outptr, &outbytesleft);
18837        if ((int)res > 0)
18838          result |= 8;
18839        iconv_close (cd_88591_to_utf8);
18840      }
18841  }
18842#endif
18843  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18844     provided.  */
18845  {
18846    /* Try standardized names.  */
18847    iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
18848    /* Try IRIX, OSF/1 names.  */
18849    iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
18850    /* Try AIX names.  */
18851    iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
18852    /* Try HP-UX names.  */
18853    iconv_t cd4 = iconv_open ("utf8", "eucJP");
18854    if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
18855        && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
18856      result |= 16;
18857    if (cd1 != (iconv_t)(-1))
18858      iconv_close (cd1);
18859    if (cd2 != (iconv_t)(-1))
18860      iconv_close (cd2);
18861    if (cd3 != (iconv_t)(-1))
18862      iconv_close (cd3);
18863    if (cd4 != (iconv_t)(-1))
18864      iconv_close (cd4);
18865  }
18866  return result;
18867
18868  ;
18869  return 0;
18870}
18871_ACEOF
18872if ac_fn_c_try_run "$LINENO"; then :
18873  am_cv_func_iconv_works=yes
18874fi
18875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18876  conftest.$ac_objext conftest.beam conftest.$ac_ext
18877fi
18878
18879        test "$am_cv_func_iconv_works" = no || break
18880      done
18881      LIBS="$am_save_LIBS"
18882
18883fi
18884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18885$as_echo "$am_cv_func_iconv_works" >&6; }
18886    case "$am_cv_func_iconv_works" in
18887      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18888      *)   am_func_iconv=yes ;;
18889    esac
18890  else
18891    am_func_iconv=no am_cv_lib_iconv=no
18892  fi
18893  if test "$am_func_iconv" = yes; then
18894
18895$as_echo "#define HAVE_ICONV 1" >>confdefs.h
18896
18897  fi
18898  if test "$am_cv_lib_iconv" = yes; then
18899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18900$as_echo_n "checking how to link with libiconv... " >&6; }
18901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18902$as_echo "$LIBICONV" >&6; }
18903  else
18904            CPPFLAGS="$am_save_CPPFLAGS"
18905    LIBICONV=
18906    LTLIBICONV=
18907  fi
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918    use_additional=yes
18919
18920  acl_save_prefix="$prefix"
18921  prefix="$acl_final_prefix"
18922  acl_save_exec_prefix="$exec_prefix"
18923  exec_prefix="$acl_final_exec_prefix"
18924
18925    eval additional_includedir=\"$includedir\"
18926    eval additional_libdir=\"$libdir\"
18927    eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18928    eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18929
18930  exec_prefix="$acl_save_exec_prefix"
18931  prefix="$acl_save_prefix"
18932
18933
18934# Check whether --with-libintl-prefix was given.
18935if test "${with_libintl_prefix+set}" = set; then :
18936  withval=$with_libintl_prefix;
18937    if test "X$withval" = "Xno"; then
18938      use_additional=no
18939    else
18940      if test "X$withval" = "X"; then
18941
18942  acl_save_prefix="$prefix"
18943  prefix="$acl_final_prefix"
18944  acl_save_exec_prefix="$exec_prefix"
18945  exec_prefix="$acl_final_exec_prefix"
18946
18947          eval additional_includedir=\"$includedir\"
18948          eval additional_libdir=\"$libdir\"
18949          eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
18950          eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
18951
18952  exec_prefix="$acl_save_exec_prefix"
18953  prefix="$acl_save_prefix"
18954
18955      else
18956        additional_includedir="$withval/include"
18957        additional_libdir="$withval/$acl_libdirstem"
18958        additional_libdir2="$withval/$acl_libdirstem2"
18959        additional_libdir3="$withval/$acl_libdirstem3"
18960      fi
18961    fi
18962
18963fi
18964
18965  if test "X$additional_libdir2" = "X$additional_libdir"; then
18966    additional_libdir2=
18967  fi
18968  if test "X$additional_libdir3" = "X$additional_libdir"; then
18969    additional_libdir3=
18970  fi
18971      LIBINTL=
18972  LTLIBINTL=
18973  INCINTL=
18974  LIBINTL_PREFIX=
18975      HAVE_LIBINTL=
18976  rpathdirs=
18977  ltrpathdirs=
18978  names_already_handled=
18979  names_next_round='intl '
18980  while test -n "$names_next_round"; do
18981    names_this_round="$names_next_round"
18982    names_next_round=
18983    for name in $names_this_round; do
18984      already_handled=
18985      for n in $names_already_handled; do
18986        if test "$n" = "$name"; then
18987          already_handled=yes
18988          break
18989        fi
18990      done
18991      if test -z "$already_handled"; then
18992        names_already_handled="$names_already_handled $name"
18993                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18994        eval value=\"\$HAVE_LIB$uppername\"
18995        if test -n "$value"; then
18996          if test "$value" = yes; then
18997            eval value=\"\$LIB$uppername\"
18998            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18999            eval value=\"\$LTLIB$uppername\"
19000            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19001          else
19002                                    :
19003          fi
19004        else
19005                              found_dir=
19006          found_la=
19007          found_so=
19008          found_a=
19009          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19010          if test -n "$acl_shlibext"; then
19011            shrext=".$acl_shlibext"             # typically: shrext=.so
19012          else
19013            shrext=
19014          fi
19015          if test $use_additional = yes; then
19016            for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
19017              if test "X$found_dir" = "X"; then
19018                eval dir=\$$additional_libdir_variable
19019                if test -n "$dir"; then
19020                                                      if test -n "$acl_shlibext"; then
19021                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19022                      found_dir="$dir"
19023                      found_so="$dir/$libname$shrext"
19024                    else
19025                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19026                        ver=`(cd "$dir" && \
19027                              for f in "$libname$shrext".*; do echo "$f"; done \
19028                              | sed -e "s,^$libname$shrext\\\\.,," \
19029                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19030                              | sed 1q ) 2>/dev/null`
19031                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19032                          found_dir="$dir"
19033                          found_so="$dir/$libname$shrext.$ver"
19034                        fi
19035                      else
19036                        eval library_names=\"$acl_library_names_spec\"
19037                        for f in $library_names; do
19038                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19039                            found_dir="$dir"
19040                            found_so="$dir/$f"
19041                            break
19042                          fi
19043                        done
19044                      fi
19045                    fi
19046                  fi
19047                                    if test "X$found_dir" = "X"; then
19048                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19049                      found_dir="$dir"
19050                      found_a="$dir/$libname.$acl_libext"
19051                    fi
19052                  fi
19053                  if test "X$found_dir" != "X"; then
19054                    if test -f "$dir/$libname.la"; then
19055                      found_la="$dir/$libname.la"
19056                    fi
19057                  fi
19058                fi
19059              fi
19060            done
19061          fi
19062          if test "X$found_dir" = "X"; then
19063            for x in $LDFLAGS $LTLIBINTL; do
19064
19065  acl_save_prefix="$prefix"
19066  prefix="$acl_final_prefix"
19067  acl_save_exec_prefix="$exec_prefix"
19068  exec_prefix="$acl_final_exec_prefix"
19069  eval x=\"$x\"
19070  exec_prefix="$acl_save_exec_prefix"
19071  prefix="$acl_save_prefix"
19072
19073              case "$x" in
19074                -L*)
19075                  dir=`echo "X$x" | sed -e 's/^X-L//'`
19076                                    if test -n "$acl_shlibext"; then
19077                    if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
19078                      found_dir="$dir"
19079                      found_so="$dir/$libname$shrext"
19080                    else
19081                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19082                        ver=`(cd "$dir" && \
19083                              for f in "$libname$shrext".*; do echo "$f"; done \
19084                              | sed -e "s,^$libname$shrext\\\\.,," \
19085                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19086                              | sed 1q ) 2>/dev/null`
19087                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
19088                          found_dir="$dir"
19089                          found_so="$dir/$libname$shrext.$ver"
19090                        fi
19091                      else
19092                        eval library_names=\"$acl_library_names_spec\"
19093                        for f in $library_names; do
19094                          if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
19095                            found_dir="$dir"
19096                            found_so="$dir/$f"
19097                            break
19098                          fi
19099                        done
19100                      fi
19101                    fi
19102                  fi
19103                                    if test "X$found_dir" = "X"; then
19104                    if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
19105                      found_dir="$dir"
19106                      found_a="$dir/$libname.$acl_libext"
19107                    fi
19108                  fi
19109                  if test "X$found_dir" != "X"; then
19110                    if test -f "$dir/$libname.la"; then
19111                      found_la="$dir/$libname.la"
19112                    fi
19113                  fi
19114                  ;;
19115              esac
19116              if test "X$found_dir" != "X"; then
19117                break
19118              fi
19119            done
19120          fi
19121          if test "X$found_dir" != "X"; then
19122                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19123            if test "X$found_so" != "X"; then
19124                                                        if test "$enable_rpath" = no \
19125                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19126                 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
19127                 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
19128                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19129              else
19130                                                                                haveit=
19131                for x in $ltrpathdirs; do
19132                  if test "X$x" = "X$found_dir"; then
19133                    haveit=yes
19134                    break
19135                  fi
19136                done
19137                if test -z "$haveit"; then
19138                  ltrpathdirs="$ltrpathdirs $found_dir"
19139                fi
19140                                if test "$acl_hardcode_direct" = yes; then
19141                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19142                else
19143                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19144                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19145                                                            haveit=
19146                    for x in $rpathdirs; do
19147                      if test "X$x" = "X$found_dir"; then
19148                        haveit=yes
19149                        break
19150                      fi
19151                    done
19152                    if test -z "$haveit"; then
19153                      rpathdirs="$rpathdirs $found_dir"
19154                    fi
19155                  else
19156                                                                                haveit=
19157                    for x in $LDFLAGS $LIBINTL; do
19158
19159  acl_save_prefix="$prefix"
19160  prefix="$acl_final_prefix"
19161  acl_save_exec_prefix="$exec_prefix"
19162  exec_prefix="$acl_final_exec_prefix"
19163  eval x=\"$x\"
19164  exec_prefix="$acl_save_exec_prefix"
19165  prefix="$acl_save_prefix"
19166
19167                      if test "X$x" = "X-L$found_dir"; then
19168                        haveit=yes
19169                        break
19170                      fi
19171                    done
19172                    if test -z "$haveit"; then
19173                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19174                    fi
19175                    if test "$acl_hardcode_minus_L" != no; then
19176                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19177                    else
19178                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19179                    fi
19180                  fi
19181                fi
19182              fi
19183            else
19184              if test "X$found_a" != "X"; then
19185                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19186              else
19187                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19188              fi
19189            fi
19190                        additional_includedir=
19191            case "$found_dir" in
19192              */$acl_libdirstem | */$acl_libdirstem/)
19193                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19194                if test "$name" = 'intl'; then
19195                  LIBINTL_PREFIX="$basedir"
19196                fi
19197                additional_includedir="$basedir/include"
19198                ;;
19199              */$acl_libdirstem2 | */$acl_libdirstem2/)
19200                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19201                if test "$name" = 'intl'; then
19202                  LIBINTL_PREFIX="$basedir"
19203                fi
19204                additional_includedir="$basedir/include"
19205                ;;
19206              */$acl_libdirstem3 | */$acl_libdirstem3/)
19207                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
19208                if test "$name" = 'intl'; then
19209                  LIBINTL_PREFIX="$basedir"
19210                fi
19211                additional_includedir="$basedir/include"
19212                ;;
19213            esac
19214            if test "X$additional_includedir" != "X"; then
19215                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19216                haveit=
19217                if test "X$additional_includedir" = "X/usr/local/include"; then
19218                  if test -n "$GCC"; then
19219                    case $host_os in
19220                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19221                    esac
19222                  fi
19223                fi
19224                if test -z "$haveit"; then
19225                  for x in $CPPFLAGS $INCINTL; do
19226
19227  acl_save_prefix="$prefix"
19228  prefix="$acl_final_prefix"
19229  acl_save_exec_prefix="$exec_prefix"
19230  exec_prefix="$acl_final_exec_prefix"
19231  eval x=\"$x\"
19232  exec_prefix="$acl_save_exec_prefix"
19233  prefix="$acl_save_prefix"
19234
19235                    if test "X$x" = "X-I$additional_includedir"; then
19236                      haveit=yes
19237                      break
19238                    fi
19239                  done
19240                  if test -z "$haveit"; then
19241                    if test -d "$additional_includedir"; then
19242                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19243                    fi
19244                  fi
19245                fi
19246              fi
19247            fi
19248                        if test -n "$found_la"; then
19249                                                        save_libdir="$libdir"
19250              case "$found_la" in
19251                */* | *\\*) . "$found_la" ;;
19252                *) . "./$found_la" ;;
19253              esac
19254              libdir="$save_libdir"
19255                            for dep in $dependency_libs; do
19256                case "$dep" in
19257                  -L*)
19258                    dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19259                                                                                                                                                                if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
19260                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
19261                       && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
19262                      haveit=
19263                      if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
19264                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
19265                         || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
19266                        if test -n "$GCC"; then
19267                          case $host_os in
19268                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19269                          esac
19270                        fi
19271                      fi
19272                      if test -z "$haveit"; then
19273                        haveit=
19274                        for x in $LDFLAGS $LIBINTL; do
19275
19276  acl_save_prefix="$prefix"
19277  prefix="$acl_final_prefix"
19278  acl_save_exec_prefix="$exec_prefix"
19279  exec_prefix="$acl_final_exec_prefix"
19280  eval x=\"$x\"
19281  exec_prefix="$acl_save_exec_prefix"
19282  prefix="$acl_save_prefix"
19283
19284                          if test "X$x" = "X-L$dependency_libdir"; then
19285                            haveit=yes
19286                            break
19287                          fi
19288                        done
19289                        if test -z "$haveit"; then
19290                          if test -d "$dependency_libdir"; then
19291                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
19292                          fi
19293                        fi
19294                        haveit=
19295                        for x in $LDFLAGS $LTLIBINTL; do
19296
19297  acl_save_prefix="$prefix"
19298  prefix="$acl_final_prefix"
19299  acl_save_exec_prefix="$exec_prefix"
19300  exec_prefix="$acl_final_exec_prefix"
19301  eval x=\"$x\"
19302  exec_prefix="$acl_save_exec_prefix"
19303  prefix="$acl_save_prefix"
19304
19305                          if test "X$x" = "X-L$dependency_libdir"; then
19306                            haveit=yes
19307                            break
19308                          fi
19309                        done
19310                        if test -z "$haveit"; then
19311                          if test -d "$dependency_libdir"; then
19312                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
19313                          fi
19314                        fi
19315                      fi
19316                    fi
19317                    ;;
19318                  -R*)
19319                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19320                    if test "$enable_rpath" != no; then
19321                                                                  haveit=
19322                      for x in $rpathdirs; do
19323                        if test "X$x" = "X$dir"; then
19324                          haveit=yes
19325                          break
19326                        fi
19327                      done
19328                      if test -z "$haveit"; then
19329                        rpathdirs="$rpathdirs $dir"
19330                      fi
19331                                                                  haveit=
19332                      for x in $ltrpathdirs; do
19333                        if test "X$x" = "X$dir"; then
19334                          haveit=yes
19335                          break
19336                        fi
19337                      done
19338                      if test -z "$haveit"; then
19339                        ltrpathdirs="$ltrpathdirs $dir"
19340                      fi
19341                    fi
19342                    ;;
19343                  -l*)
19344                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19345                    ;;
19346                  *.la)
19347                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19348                    ;;
19349                  *)
19350                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19351                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19352                    ;;
19353                esac
19354              done
19355            fi
19356          else
19357                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19358            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19359          fi
19360        fi
19361      fi
19362    done
19363  done
19364  if test "X$rpathdirs" != "X"; then
19365    if test -n "$acl_hardcode_libdir_separator"; then
19366                        alldirs=
19367      for found_dir in $rpathdirs; do
19368        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19369      done
19370            acl_save_libdir="$libdir"
19371      libdir="$alldirs"
19372      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19373      libdir="$acl_save_libdir"
19374      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19375    else
19376            for found_dir in $rpathdirs; do
19377        acl_save_libdir="$libdir"
19378        libdir="$found_dir"
19379        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19380        libdir="$acl_save_libdir"
19381        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19382      done
19383    fi
19384  fi
19385  if test "X$ltrpathdirs" != "X"; then
19386            for found_dir in $ltrpathdirs; do
19387      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19388    done
19389  fi
19390
19391
19392
19393
19394
19395          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19396$as_echo_n "checking for GNU gettext in libintl... " >&6; }
19397if eval \${$gt_func_gnugettext_libintl+:} false; then :
19398  $as_echo_n "(cached) " >&6
19399else
19400  gt_save_CPPFLAGS="$CPPFLAGS"
19401            CPPFLAGS="$CPPFLAGS $INCINTL"
19402            gt_save_LIBS="$LIBS"
19403            LIBS="$LIBS $LIBINTL"
19404                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405/* end confdefs.h.  */
19406
19407#include <libintl.h>
19408#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19409extern int _nl_msg_cat_cntr;
19410extern
19411#ifdef __cplusplus
19412"C"
19413#endif
19414const char *_nl_expand_alias (const char *);
19415#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
19416#else
19417#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19418#endif
19419$gt_revision_test_code
19420
19421int
19422main ()
19423{
19424
19425bindtextdomain ("", "");
19426return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19427
19428  ;
19429  return 0;
19430}
19431_ACEOF
19432if ac_fn_c_try_link "$LINENO"; then :
19433  eval "$gt_func_gnugettext_libintl=yes"
19434else
19435  eval "$gt_func_gnugettext_libintl=no"
19436fi
19437rm -f core conftest.err conftest.$ac_objext \
19438    conftest$ac_exeext conftest.$ac_ext
19439                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19440              LIBS="$LIBS $LIBICONV"
19441              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442/* end confdefs.h.  */
19443
19444#include <libintl.h>
19445#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19446extern int _nl_msg_cat_cntr;
19447extern
19448#ifdef __cplusplus
19449"C"
19450#endif
19451const char *_nl_expand_alias (const char *);
19452#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
19453#else
19454#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19455#endif
19456$gt_revision_test_code
19457
19458int
19459main ()
19460{
19461
19462bindtextdomain ("", "");
19463return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19464
19465  ;
19466  return 0;
19467}
19468_ACEOF
19469if ac_fn_c_try_link "$LINENO"; then :
19470  LIBINTL="$LIBINTL $LIBICONV"
19471                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19472                 eval "$gt_func_gnugettext_libintl=yes"
19473
19474fi
19475rm -f core conftest.err conftest.$ac_objext \
19476    conftest$ac_exeext conftest.$ac_ext
19477            fi
19478            CPPFLAGS="$gt_save_CPPFLAGS"
19479            LIBS="$gt_save_LIBS"
19480fi
19481eval ac_res=\$$gt_func_gnugettext_libintl
19482	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19483$as_echo "$ac_res" >&6; }
19484        fi
19485
19486                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19487           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19488                && test "$PACKAGE" != gettext-runtime \
19489                && test "$PACKAGE" != gettext-tools; }; then
19490          gt_use_preinstalled_gnugettext=yes
19491        else
19492                    LIBINTL=
19493          LTLIBINTL=
19494          INCINTL=
19495        fi
19496
19497
19498
19499    if test -n "$INTL_MACOSX_LIBS"; then
19500      if test "$gt_use_preinstalled_gnugettext" = "yes" \
19501         || test "$nls_cv_use_gnu_gettext" = "yes"; then
19502                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19503        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19504      fi
19505    fi
19506
19507    if test "$gt_use_preinstalled_gnugettext" = "yes" \
19508       || test "$nls_cv_use_gnu_gettext" = "yes"; then
19509
19510$as_echo "#define ENABLE_NLS 1" >>confdefs.h
19511
19512    else
19513      USE_NLS=no
19514    fi
19515  fi
19516
19517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19518$as_echo_n "checking whether to use NLS... " >&6; }
19519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19520$as_echo "$USE_NLS" >&6; }
19521  if test "$USE_NLS" = "yes"; then
19522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
19523$as_echo_n "checking where the gettext function comes from... " >&6; }
19524    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19525      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19526        gt_source="external libintl"
19527      else
19528        gt_source="libc"
19529      fi
19530    else
19531      gt_source="included intl directory"
19532    fi
19533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
19534$as_echo "$gt_source" >&6; }
19535  fi
19536
19537  if test "$USE_NLS" = "yes"; then
19538
19539    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19540      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19541        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
19542$as_echo_n "checking how to link with libintl... " >&6; }
19543        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
19544$as_echo "$LIBINTL" >&6; }
19545
19546  for element in $INCINTL; do
19547    haveit=
19548    for x in $CPPFLAGS; do
19549
19550  acl_save_prefix="$prefix"
19551  prefix="$acl_final_prefix"
19552  acl_save_exec_prefix="$exec_prefix"
19553  exec_prefix="$acl_final_exec_prefix"
19554  eval x=\"$x\"
19555  exec_prefix="$acl_save_exec_prefix"
19556  prefix="$acl_save_prefix"
19557
19558      if test "X$x" = "X$element"; then
19559        haveit=yes
19560        break
19561      fi
19562    done
19563    if test -z "$haveit"; then
19564      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19565    fi
19566  done
19567
19568      fi
19569
19570
19571$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19572
19573
19574$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
19575
19576    fi
19577
19578        POSUB=po
19579  fi
19580
19581
19582
19583    INTLLIBS="$LIBINTL"
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593save_FLAGS="$CXXFLAGS"
19594
19595ac_ext=cpp
19596ac_cpp='$CXXCPP $CPPFLAGS'
19597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
19601
19602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603/* end confdefs.h.  */
19604
19605#include <string>
19606
19607int
19608main ()
19609{
19610
19611     std::u32string s;
19612     char32_t c;
19613
19614  ;
19615  return 0;
19616}
19617_ACEOF
19618if ac_fn_cxx_try_compile "$LINENO"; then :
19619
19620
19621else
19622
19623
19624COURIER_UNICODE_CXXFLAGS="-std=c++11"
19625CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
19626
19627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628/* end confdefs.h.  */
19629
19630#include <string>
19631
19632int
19633main ()
19634{
19635
19636     std::u32string s;
19637     char32_t c;
19638
19639  ;
19640  return 0;
19641}
19642_ACEOF
19643if ac_fn_cxx_try_compile "$LINENO"; then :
19644
19645
19646else
19647
19648
19649COURIER_UNICODE_CXXFLAGS="-std=c++0x"
19650CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS"
19651
19652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19653/* end confdefs.h.  */
19654
19655#include <string>
19656
19657int
19658main ()
19659{
19660
19661     std::u32string s;
19662     char32_t c;
19663
19664  ;
19665  return 0;
19666}
19667_ACEOF
19668if ac_fn_cxx_try_compile "$LINENO"; then :
19669
19670
19671else
19672
19673as_fn_error $? "*** A compiler with C++11 Unicode support was not found" "$LINENO" 5
19674
19675fi
19676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677
19678fi
19679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680
19681fi
19682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683CXXFLAGS="$save_FLAGS"
19684ac_ext=c
19685ac_cpp='$CPP $CPPFLAGS'
19686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19688ac_compiler_gnu=$ac_cv_c_compiler_gnu
19689
19690
19691
19692
19693# Extract the first word of "eog", so it can be a program name with args.
19694set dummy eog; ac_word=$2
19695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19696$as_echo_n "checking for $ac_word... " >&6; }
19697if ${ac_cv_path_IMAGEVIEWER1+:} false; then :
19698  $as_echo_n "(cached) " >&6
19699else
19700  case $IMAGEVIEWER1 in
19701  [\\/]* | ?:[\\/]*)
19702  ac_cv_path_IMAGEVIEWER1="$IMAGEVIEWER1" # Let the user override the test with a path.
19703  ;;
19704  *)
19705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19706for as_dir in $LPATH
19707do
19708  IFS=$as_save_IFS
19709  test -z "$as_dir" && as_dir=.
19710    for ac_exec_ext in '' $ac_executable_extensions; do
19711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19712    ac_cv_path_IMAGEVIEWER1="$as_dir/$ac_word$ac_exec_ext"
19713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19714    break 2
19715  fi
19716done
19717  done
19718IFS=$as_save_IFS
19719
19720  test -z "$ac_cv_path_IMAGEVIEWER1" && ac_cv_path_IMAGEVIEWER1="/usr/bin/eog"
19721  ;;
19722esac
19723fi
19724IMAGEVIEWER1=$ac_cv_path_IMAGEVIEWER1
19725if test -n "$IMAGEVIEWER1"; then
19726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEVIEWER1" >&5
19727$as_echo "$IMAGEVIEWER1" >&6; }
19728else
19729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19730$as_echo "no" >&6; }
19731fi
19732
19733
19734
19735
19736# Extract the first word of "kview", so it can be a program name with args.
19737set dummy kview; ac_word=$2
19738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19739$as_echo_n "checking for $ac_word... " >&6; }
19740if ${ac_cv_path_IMAGEVIEWER2+:} false; then :
19741  $as_echo_n "(cached) " >&6
19742else
19743  case $IMAGEVIEWER2 in
19744  [\\/]* | ?:[\\/]*)
19745  ac_cv_path_IMAGEVIEWER2="$IMAGEVIEWER2" # Let the user override the test with a path.
19746  ;;
19747  *)
19748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19749for as_dir in $LPATH
19750do
19751  IFS=$as_save_IFS
19752  test -z "$as_dir" && as_dir=.
19753    for ac_exec_ext in '' $ac_executable_extensions; do
19754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19755    ac_cv_path_IMAGEVIEWER2="$as_dir/$ac_word$ac_exec_ext"
19756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19757    break 2
19758  fi
19759done
19760  done
19761IFS=$as_save_IFS
19762
19763  test -z "$ac_cv_path_IMAGEVIEWER2" && ac_cv_path_IMAGEVIEWER2="/usr/bin/kview"
19764  ;;
19765esac
19766fi
19767IMAGEVIEWER2=$ac_cv_path_IMAGEVIEWER2
19768if test -n "$IMAGEVIEWER2"; then
19769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEVIEWER2" >&5
19770$as_echo "$IMAGEVIEWER2" >&6; }
19771else
19772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19773$as_echo "no" >&6; }
19774fi
19775
19776
19777
19778
19779# Extract the first word of "xpdf", so it can be a program name with args.
19780set dummy xpdf; ac_word=$2
19781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19782$as_echo_n "checking for $ac_word... " >&6; }
19783if ${ac_cv_path_XPDF+:} false; then :
19784  $as_echo_n "(cached) " >&6
19785else
19786  case $XPDF in
19787  [\\/]* | ?:[\\/]*)
19788  ac_cv_path_XPDF="$XPDF" # Let the user override the test with a path.
19789  ;;
19790  *)
19791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19792for as_dir in $LPATH
19793do
19794  IFS=$as_save_IFS
19795  test -z "$as_dir" && as_dir=.
19796    for ac_exec_ext in '' $ac_executable_extensions; do
19797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19798    ac_cv_path_XPDF="$as_dir/$ac_word$ac_exec_ext"
19799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19800    break 2
19801  fi
19802done
19803  done
19804IFS=$as_save_IFS
19805
19806  test -z "$ac_cv_path_XPDF" && ac_cv_path_XPDF="/usr/bin/xpdf"
19807  ;;
19808esac
19809fi
19810XPDF=$ac_cv_path_XPDF
19811if test -n "$XPDF"; then
19812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPDF" >&5
19813$as_echo "$XPDF" >&6; }
19814else
19815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19816$as_echo "no" >&6; }
19817fi
19818
19819
19820
19821
19822for ac_prog in xml2-config xml-config
19823do
19824  # Extract the first word of "$ac_prog", so it can be a program name with args.
19825set dummy $ac_prog; ac_word=$2
19826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19827$as_echo_n "checking for $ac_word... " >&6; }
19828if ${ac_cv_path_XMLCONFIG+:} false; then :
19829  $as_echo_n "(cached) " >&6
19830else
19831  case $XMLCONFIG in
19832  [\\/]* | ?:[\\/]*)
19833  ac_cv_path_XMLCONFIG="$XMLCONFIG" # Let the user override the test with a path.
19834  ;;
19835  *)
19836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19837for as_dir in $LPATH
19838do
19839  IFS=$as_save_IFS
19840  test -z "$as_dir" && as_dir=.
19841    for ac_exec_ext in '' $ac_executable_extensions; do
19842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19843    ac_cv_path_XMLCONFIG="$as_dir/$ac_word$ac_exec_ext"
19844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19845    break 2
19846  fi
19847done
19848  done
19849IFS=$as_save_IFS
19850
19851  ;;
19852esac
19853fi
19854XMLCONFIG=$ac_cv_path_XMLCONFIG
19855if test -n "$XMLCONFIG"; then
19856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCONFIG" >&5
19857$as_echo "$XMLCONFIG" >&6; }
19858else
19859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19860$as_echo "no" >&6; }
19861fi
19862
19863
19864  test -n "$XMLCONFIG" && break
19865done
19866test -n "$XMLCONFIG" || XMLCONFIG="xml-config"
19867
19868
19869if test "$XMLCONFIG" = "xml-config"
19870then
19871	as_fn_error $? "xml-config not found, download libxml from http://xmlsoft.org" "$LINENO" 5
19872fi
19873
19874case "`$XMLCONFIG --version`" in
198751.*)
19876	as_fn_error $? "libxml version 2 required" "$LINENO" 5
19877	;;
19878esac
19879
19880CPPFLAGS="`$XMLCONFIG --cflags` -I.. -I${srcdir}/.. $CPPFLAGS -I../libmail -I${srcdir}/../libmail -I../libs -I$srcdir/../libs"
19881XMLLIBS="`$XMLCONFIG --libs`"
19882
19883
19884. ../libs/tcpd/couriertls.config
19885
19886if test "$couriertls" != ""
19887then
19888	LIBCOURIERTLS="../libs/tcpd/libcouriertls.la"
19889fi
19890
19891
19892. ../libs/rootcerts/rootcertsdir.cnf
19893
19894
19895for ac_prog in perl5 perl
19896do
19897  # Extract the first word of "$ac_prog", so it can be a program name with args.
19898set dummy $ac_prog; ac_word=$2
19899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19900$as_echo_n "checking for $ac_word... " >&6; }
19901if ${ac_cv_path_PERL+:} false; then :
19902  $as_echo_n "(cached) " >&6
19903else
19904  case $PERL in
19905  [\\/]* | ?:[\\/]*)
19906  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19907  ;;
19908  *)
19909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910for as_dir in $LPATH
19911do
19912  IFS=$as_save_IFS
19913  test -z "$as_dir" && as_dir=.
19914    for ac_exec_ext in '' $ac_executable_extensions; do
19915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19916    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19918    break 2
19919  fi
19920done
19921  done
19922IFS=$as_save_IFS
19923
19924  ;;
19925esac
19926fi
19927PERL=$ac_cv_path_PERL
19928if test -n "$PERL"; then
19929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19930$as_echo "$PERL" >&6; }
19931else
19932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19933$as_echo "no" >&6; }
19934fi
19935
19936
19937  test -n "$PERL" && break
19938done
19939test -n "$PERL" || PERL="perl"
19940
19941
19942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19943$as_echo_n "checking for ANSI C header files... " >&6; }
19944if ${ac_cv_header_stdc+:} false; then :
19945  $as_echo_n "(cached) " >&6
19946else
19947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19948/* end confdefs.h.  */
19949#include <stdlib.h>
19950#include <stdarg.h>
19951#include <string.h>
19952#include <float.h>
19953
19954int
19955main ()
19956{
19957
19958  ;
19959  return 0;
19960}
19961_ACEOF
19962if ac_fn_c_try_compile "$LINENO"; then :
19963  ac_cv_header_stdc=yes
19964else
19965  ac_cv_header_stdc=no
19966fi
19967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968
19969if test $ac_cv_header_stdc = yes; then
19970  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19972/* end confdefs.h.  */
19973#include <string.h>
19974
19975_ACEOF
19976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19977  $EGREP "memchr" >/dev/null 2>&1; then :
19978
19979else
19980  ac_cv_header_stdc=no
19981fi
19982rm -f conftest*
19983
19984fi
19985
19986if test $ac_cv_header_stdc = yes; then
19987  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989/* end confdefs.h.  */
19990#include <stdlib.h>
19991
19992_ACEOF
19993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19994  $EGREP "free" >/dev/null 2>&1; then :
19995
19996else
19997  ac_cv_header_stdc=no
19998fi
19999rm -f conftest*
20000
20001fi
20002
20003if test $ac_cv_header_stdc = yes; then
20004  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20005  if test "$cross_compiling" = yes; then :
20006  :
20007else
20008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20009/* end confdefs.h.  */
20010#include <ctype.h>
20011#include <stdlib.h>
20012#if ((' ' & 0x0FF) == 0x020)
20013# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20014# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20015#else
20016# define ISLOWER(c) \
20017		   (('a' <= (c) && (c) <= 'i') \
20018		     || ('j' <= (c) && (c) <= 'r') \
20019		     || ('s' <= (c) && (c) <= 'z'))
20020# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20021#endif
20022
20023#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20024int
20025main ()
20026{
20027  int i;
20028  for (i = 0; i < 256; i++)
20029    if (XOR (islower (i), ISLOWER (i))
20030	|| toupper (i) != TOUPPER (i))
20031      return 2;
20032  return 0;
20033}
20034_ACEOF
20035if ac_fn_c_try_run "$LINENO"; then :
20036
20037else
20038  ac_cv_header_stdc=no
20039fi
20040rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20041  conftest.$ac_objext conftest.beam conftest.$ac_ext
20042fi
20043
20044fi
20045fi
20046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20047$as_echo "$ac_cv_header_stdc" >&6; }
20048if test $ac_cv_header_stdc = yes; then
20049
20050$as_echo "#define STDC_HEADERS 1" >>confdefs.h
20051
20052fi
20053
20054ac_header_dirent=no
20055for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20056  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20058$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20059if eval \${$as_ac_Header+:} false; then :
20060  $as_echo_n "(cached) " >&6
20061else
20062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063/* end confdefs.h.  */
20064#include <sys/types.h>
20065#include <$ac_hdr>
20066
20067int
20068main ()
20069{
20070if ((DIR *) 0)
20071return 0;
20072  ;
20073  return 0;
20074}
20075_ACEOF
20076if ac_fn_c_try_compile "$LINENO"; then :
20077  eval "$as_ac_Header=yes"
20078else
20079  eval "$as_ac_Header=no"
20080fi
20081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082fi
20083eval ac_res=\$$as_ac_Header
20084	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20085$as_echo "$ac_res" >&6; }
20086if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20087  cat >>confdefs.h <<_ACEOF
20088#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20089_ACEOF
20090
20091ac_header_dirent=$ac_hdr; break
20092fi
20093
20094done
20095# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20096if test $ac_header_dirent = dirent.h; then
20097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20098$as_echo_n "checking for library containing opendir... " >&6; }
20099if ${ac_cv_search_opendir+:} false; then :
20100  $as_echo_n "(cached) " >&6
20101else
20102  ac_func_search_save_LIBS=$LIBS
20103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104/* end confdefs.h.  */
20105
20106/* Override any GCC internal prototype to avoid an error.
20107   Use char because int might match the return type of a GCC
20108   builtin and then its argument prototype would still apply.  */
20109#ifdef __cplusplus
20110extern "C"
20111#endif
20112char opendir ();
20113int
20114main ()
20115{
20116return opendir ();
20117  ;
20118  return 0;
20119}
20120_ACEOF
20121for ac_lib in '' dir; do
20122  if test -z "$ac_lib"; then
20123    ac_res="none required"
20124  else
20125    ac_res=-l$ac_lib
20126    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20127  fi
20128  if ac_fn_c_try_link "$LINENO"; then :
20129  ac_cv_search_opendir=$ac_res
20130fi
20131rm -f core conftest.err conftest.$ac_objext \
20132    conftest$ac_exeext
20133  if ${ac_cv_search_opendir+:} false; then :
20134  break
20135fi
20136done
20137if ${ac_cv_search_opendir+:} false; then :
20138
20139else
20140  ac_cv_search_opendir=no
20141fi
20142rm conftest.$ac_ext
20143LIBS=$ac_func_search_save_LIBS
20144fi
20145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20146$as_echo "$ac_cv_search_opendir" >&6; }
20147ac_res=$ac_cv_search_opendir
20148if test "$ac_res" != no; then :
20149  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20150
20151fi
20152
20153else
20154  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20155$as_echo_n "checking for library containing opendir... " >&6; }
20156if ${ac_cv_search_opendir+:} false; then :
20157  $as_echo_n "(cached) " >&6
20158else
20159  ac_func_search_save_LIBS=$LIBS
20160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161/* end confdefs.h.  */
20162
20163/* Override any GCC internal prototype to avoid an error.
20164   Use char because int might match the return type of a GCC
20165   builtin and then its argument prototype would still apply.  */
20166#ifdef __cplusplus
20167extern "C"
20168#endif
20169char opendir ();
20170int
20171main ()
20172{
20173return opendir ();
20174  ;
20175  return 0;
20176}
20177_ACEOF
20178for ac_lib in '' x; do
20179  if test -z "$ac_lib"; then
20180    ac_res="none required"
20181  else
20182    ac_res=-l$ac_lib
20183    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20184  fi
20185  if ac_fn_c_try_link "$LINENO"; then :
20186  ac_cv_search_opendir=$ac_res
20187fi
20188rm -f core conftest.err conftest.$ac_objext \
20189    conftest$ac_exeext
20190  if ${ac_cv_search_opendir+:} false; then :
20191  break
20192fi
20193done
20194if ${ac_cv_search_opendir+:} false; then :
20195
20196else
20197  ac_cv_search_opendir=no
20198fi
20199rm conftest.$ac_ext
20200LIBS=$ac_func_search_save_LIBS
20201fi
20202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20203$as_echo "$ac_cv_search_opendir" >&6; }
20204ac_res=$ac_cv_search_opendir
20205if test "$ac_res" != no; then :
20206  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20207
20208fi
20209
20210fi
20211
20212for ac_header in fcntl.h strings.h sys/time.h unistd.h langinfo.h utime.h sys/select.h sys/wait.h
20213do :
20214  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20215ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20216if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20217  cat >>confdefs.h <<_ACEOF
20218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20219_ACEOF
20220
20221fi
20222
20223done
20224
20225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
20226$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20227if ${ac_cv_header_sys_wait_h+:} false; then :
20228  $as_echo_n "(cached) " >&6
20229else
20230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231/* end confdefs.h.  */
20232#include <sys/types.h>
20233#include <sys/wait.h>
20234#ifndef WEXITSTATUS
20235# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20236#endif
20237#ifndef WIFEXITED
20238# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20239#endif
20240
20241int
20242main ()
20243{
20244  int s;
20245  wait (&s);
20246  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20247  ;
20248  return 0;
20249}
20250_ACEOF
20251if ac_fn_c_try_compile "$LINENO"; then :
20252  ac_cv_header_sys_wait_h=yes
20253else
20254  ac_cv_header_sys_wait_h=no
20255fi
20256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257fi
20258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
20259$as_echo "$ac_cv_header_sys_wait_h" >&6; }
20260if test $ac_cv_header_sys_wait_h = yes; then
20261
20262$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
20263
20264fi
20265
20266
20267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20268$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20269if ${ac_cv_c_const+:} false; then :
20270  $as_echo_n "(cached) " >&6
20271else
20272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273/* end confdefs.h.  */
20274
20275int
20276main ()
20277{
20278
20279#ifndef __cplusplus
20280  /* Ultrix mips cc rejects this sort of thing.  */
20281  typedef int charset[2];
20282  const charset cs = { 0, 0 };
20283  /* SunOS 4.1.1 cc rejects this.  */
20284  char const *const *pcpcc;
20285  char **ppc;
20286  /* NEC SVR4.0.2 mips cc rejects this.  */
20287  struct point {int x, y;};
20288  static struct point const zero = {0,0};
20289  /* AIX XL C 1.02.0.0 rejects this.
20290     It does not let you subtract one const X* pointer from another in
20291     an arm of an if-expression whose if-part is not a constant
20292     expression */
20293  const char *g = "string";
20294  pcpcc = &g + (g ? g-g : 0);
20295  /* HPUX 7.0 cc rejects these. */
20296  ++pcpcc;
20297  ppc = (char**) pcpcc;
20298  pcpcc = (char const *const *) ppc;
20299  { /* SCO 3.2v4 cc rejects this sort of thing.  */
20300    char tx;
20301    char *t = &tx;
20302    char const *s = 0 ? (char *) 0 : (char const *) 0;
20303
20304    *t++ = 0;
20305    if (s) return 0;
20306  }
20307  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20308    int x[] = {25, 17};
20309    const int *foo = &x[0];
20310    ++foo;
20311  }
20312  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20313    typedef const int *iptr;
20314    iptr p = 0;
20315    ++p;
20316  }
20317  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20318       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20319    struct s { int j; const int *ap[3]; } bx;
20320    struct s *b = &bx; b->j = 5;
20321  }
20322  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20323    const int foo = 10;
20324    if (!foo) return 0;
20325  }
20326  return !cs[0] && !zero.x;
20327#endif
20328
20329  ;
20330  return 0;
20331}
20332_ACEOF
20333if ac_fn_c_try_compile "$LINENO"; then :
20334  ac_cv_c_const=yes
20335else
20336  ac_cv_c_const=no
20337fi
20338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339fi
20340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20341$as_echo "$ac_cv_c_const" >&6; }
20342if test $ac_cv_c_const = no; then
20343
20344$as_echo "#define const /**/" >>confdefs.h
20345
20346fi
20347
20348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20349$as_echo_n "checking for inline... " >&6; }
20350if ${ac_cv_c_inline+:} false; then :
20351  $as_echo_n "(cached) " >&6
20352else
20353  ac_cv_c_inline=no
20354for ac_kw in inline __inline__ __inline; do
20355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356/* end confdefs.h.  */
20357#ifndef __cplusplus
20358typedef int foo_t;
20359static $ac_kw foo_t static_foo () {return 0; }
20360$ac_kw foo_t foo () {return 0; }
20361#endif
20362
20363_ACEOF
20364if ac_fn_c_try_compile "$LINENO"; then :
20365  ac_cv_c_inline=$ac_kw
20366fi
20367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368  test "$ac_cv_c_inline" != no && break
20369done
20370
20371fi
20372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20373$as_echo "$ac_cv_c_inline" >&6; }
20374
20375case $ac_cv_c_inline in
20376  inline | yes) ;;
20377  *)
20378    case $ac_cv_c_inline in
20379      no) ac_val=;;
20380      *) ac_val=$ac_cv_c_inline;;
20381    esac
20382    cat >>confdefs.h <<_ACEOF
20383#ifndef __cplusplus
20384#define inline $ac_val
20385#endif
20386_ACEOF
20387    ;;
20388esac
20389
20390ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20391if test "x$ac_cv_type_off_t" = xyes; then :
20392
20393else
20394
20395cat >>confdefs.h <<_ACEOF
20396#define off_t long int
20397_ACEOF
20398
20399fi
20400
20401ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20402if test "x$ac_cv_type_size_t" = xyes; then :
20403
20404else
20405
20406cat >>confdefs.h <<_ACEOF
20407#define size_t unsigned int
20408_ACEOF
20409
20410fi
20411
20412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20413$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20414if ${ac_cv_header_time+:} false; then :
20415  $as_echo_n "(cached) " >&6
20416else
20417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418/* end confdefs.h.  */
20419#include <sys/types.h>
20420#include <sys/time.h>
20421#include <time.h>
20422
20423int
20424main ()
20425{
20426if ((struct tm *) 0)
20427return 0;
20428  ;
20429  return 0;
20430}
20431_ACEOF
20432if ac_fn_c_try_compile "$LINENO"; then :
20433  ac_cv_header_time=yes
20434else
20435  ac_cv_header_time=no
20436fi
20437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438fi
20439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20440$as_echo "$ac_cv_header_time" >&6; }
20441if test $ac_cv_header_time = yes; then
20442
20443$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20444
20445fi
20446
20447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20448$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20449if ${ac_cv_struct_tm+:} false; then :
20450  $as_echo_n "(cached) " >&6
20451else
20452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453/* end confdefs.h.  */
20454#include <sys/types.h>
20455#include <time.h>
20456
20457int
20458main ()
20459{
20460struct tm tm;
20461				     int *p = &tm.tm_sec;
20462				     return !p;
20463  ;
20464  return 0;
20465}
20466_ACEOF
20467if ac_fn_c_try_compile "$LINENO"; then :
20468  ac_cv_struct_tm=time.h
20469else
20470  ac_cv_struct_tm=sys/time.h
20471fi
20472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473fi
20474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20475$as_echo "$ac_cv_struct_tm" >&6; }
20476if test $ac_cv_struct_tm = sys/time.h; then
20477
20478$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20479
20480fi
20481
20482
20483
20484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20485$as_echo_n "checking return type of signal handlers... " >&6; }
20486if ${ac_cv_type_signal+:} false; then :
20487  $as_echo_n "(cached) " >&6
20488else
20489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20490/* end confdefs.h.  */
20491#include <sys/types.h>
20492#include <signal.h>
20493
20494int
20495main ()
20496{
20497return *(signal (0, 0)) (0) == 1;
20498  ;
20499  return 0;
20500}
20501_ACEOF
20502if ac_fn_c_try_compile "$LINENO"; then :
20503  ac_cv_type_signal=int
20504else
20505  ac_cv_type_signal=void
20506fi
20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508fi
20509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20510$as_echo "$ac_cv_type_signal" >&6; }
20511
20512cat >>confdefs.h <<_ACEOF
20513#define RETSIGTYPE $ac_cv_type_signal
20514_ACEOF
20515
20516
20517# Check whether --enable-largefile was given.
20518if test "${enable_largefile+set}" = set; then :
20519  enableval=$enable_largefile;
20520fi
20521
20522if test "$enable_largefile" != no; then
20523
20524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20525$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20526if ${ac_cv_sys_largefile_CC+:} false; then :
20527  $as_echo_n "(cached) " >&6
20528else
20529  ac_cv_sys_largefile_CC=no
20530     if test "$GCC" != yes; then
20531       ac_save_CC=$CC
20532       while :; do
20533	 # IRIX 6.2 and later do not support large files by default,
20534	 # so use the C compiler's -n32 option if that helps.
20535	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536/* end confdefs.h.  */
20537#include <sys/types.h>
20538 /* Check that off_t can represent 2**63 - 1 correctly.
20539    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20540    since some C++ compilers masquerading as C compilers
20541    incorrectly reject 9223372036854775807.  */
20542#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20543  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20544		       && LARGE_OFF_T % 2147483647 == 1)
20545		      ? 1 : -1];
20546int
20547main ()
20548{
20549
20550  ;
20551  return 0;
20552}
20553_ACEOF
20554	 if ac_fn_c_try_compile "$LINENO"; then :
20555  break
20556fi
20557rm -f core conftest.err conftest.$ac_objext
20558	 CC="$CC -n32"
20559	 if ac_fn_c_try_compile "$LINENO"; then :
20560  ac_cv_sys_largefile_CC=' -n32'; break
20561fi
20562rm -f core conftest.err conftest.$ac_objext
20563	 break
20564       done
20565       CC=$ac_save_CC
20566       rm -f conftest.$ac_ext
20567    fi
20568fi
20569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20570$as_echo "$ac_cv_sys_largefile_CC" >&6; }
20571  if test "$ac_cv_sys_largefile_CC" != no; then
20572    CC=$CC$ac_cv_sys_largefile_CC
20573  fi
20574
20575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20576$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20577if ${ac_cv_sys_file_offset_bits+:} false; then :
20578  $as_echo_n "(cached) " >&6
20579else
20580  while :; do
20581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582/* end confdefs.h.  */
20583#include <sys/types.h>
20584 /* Check that off_t can represent 2**63 - 1 correctly.
20585    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20586    since some C++ compilers masquerading as C compilers
20587    incorrectly reject 9223372036854775807.  */
20588#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20589  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20590		       && LARGE_OFF_T % 2147483647 == 1)
20591		      ? 1 : -1];
20592int
20593main ()
20594{
20595
20596  ;
20597  return 0;
20598}
20599_ACEOF
20600if ac_fn_c_try_compile "$LINENO"; then :
20601  ac_cv_sys_file_offset_bits=no; break
20602fi
20603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605/* end confdefs.h.  */
20606#define _FILE_OFFSET_BITS 64
20607#include <sys/types.h>
20608 /* Check that off_t can represent 2**63 - 1 correctly.
20609    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20610    since some C++ compilers masquerading as C compilers
20611    incorrectly reject 9223372036854775807.  */
20612#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20613  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20614		       && LARGE_OFF_T % 2147483647 == 1)
20615		      ? 1 : -1];
20616int
20617main ()
20618{
20619
20620  ;
20621  return 0;
20622}
20623_ACEOF
20624if ac_fn_c_try_compile "$LINENO"; then :
20625  ac_cv_sys_file_offset_bits=64; break
20626fi
20627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628  ac_cv_sys_file_offset_bits=unknown
20629  break
20630done
20631fi
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20633$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20634case $ac_cv_sys_file_offset_bits in #(
20635  no | unknown) ;;
20636  *)
20637cat >>confdefs.h <<_ACEOF
20638#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20639_ACEOF
20640;;
20641esac
20642rm -rf conftest*
20643  if test $ac_cv_sys_file_offset_bits = unknown; then
20644    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20645$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20646if ${ac_cv_sys_large_files+:} false; then :
20647  $as_echo_n "(cached) " >&6
20648else
20649  while :; do
20650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20651/* end confdefs.h.  */
20652#include <sys/types.h>
20653 /* Check that off_t can represent 2**63 - 1 correctly.
20654    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20655    since some C++ compilers masquerading as C compilers
20656    incorrectly reject 9223372036854775807.  */
20657#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20658  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20659		       && LARGE_OFF_T % 2147483647 == 1)
20660		      ? 1 : -1];
20661int
20662main ()
20663{
20664
20665  ;
20666  return 0;
20667}
20668_ACEOF
20669if ac_fn_c_try_compile "$LINENO"; then :
20670  ac_cv_sys_large_files=no; break
20671fi
20672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674/* end confdefs.h.  */
20675#define _LARGE_FILES 1
20676#include <sys/types.h>
20677 /* Check that off_t can represent 2**63 - 1 correctly.
20678    We can't simply define LARGE_OFF_T to be 9223372036854775807,
20679    since some C++ compilers masquerading as C compilers
20680    incorrectly reject 9223372036854775807.  */
20681#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20682  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20683		       && LARGE_OFF_T % 2147483647 == 1)
20684		      ? 1 : -1];
20685int
20686main ()
20687{
20688
20689  ;
20690  return 0;
20691}
20692_ACEOF
20693if ac_fn_c_try_compile "$LINENO"; then :
20694  ac_cv_sys_large_files=1; break
20695fi
20696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697  ac_cv_sys_large_files=unknown
20698  break
20699done
20700fi
20701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20702$as_echo "$ac_cv_sys_large_files" >&6; }
20703case $ac_cv_sys_large_files in #(
20704  no | unknown) ;;
20705  *)
20706cat >>confdefs.h <<_ACEOF
20707#define _LARGE_FILES $ac_cv_sys_large_files
20708_ACEOF
20709;;
20710esac
20711rm -rf conftest*
20712  fi
20713
20714
20715fi
20716
20717
20718
20719for ac_func in nl_langinfo utime utimes
20720do :
20721  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20722ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20723if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20724  cat >>confdefs.h <<_ACEOF
20725#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20726_ACEOF
20727
20728fi
20729done
20730
20731
20732if test "$GXX" = "yes"
20733then
20734	CPPFLAGS="-Wall $CPPFLAGS"
20735fi
20736
20737 if test -d "$srcdir/../libs/docbook"; then
20738  HAVE_SGML_TRUE=
20739  HAVE_SGML_FALSE='#'
20740else
20741  HAVE_SGML_TRUE='#'
20742  HAVE_SGML_FALSE=
20743fi
20744
20745
20746#
20747# Spell checker
20748#
20749
20750ac_ext=cpp
20751ac_cpp='$CXXCPP $CPPFLAGS'
20752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20755
20756
20757for ac_header in aspell/config.hh
20758do :
20759  ac_fn_cxx_check_header_mongrel "$LINENO" "aspell/config.hh" "ac_cv_header_aspell_config_hh" "$ac_includes_default"
20760if test "x$ac_cv_header_aspell_config_hh" = xyes; then :
20761  cat >>confdefs.h <<_ACEOF
20762#define HAVE_ASPELL_CONFIG_HH 1
20763_ACEOF
20764
20765fi
20766
20767done
20768
20769
20770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for aspell" >&5
20771$as_echo_n "checking for aspell... " >&6; }
20772
20773save_LIBS="$LIBS"
20774LIBS="-laspell $LIBS"
20775
20776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777/* end confdefs.h.  */
20778
20779
20780#if HAVE_ASPELL_CONFIG_HH
20781
20782/* Old aspell API */
20783
20784#include "aspell/config.hh"
20785#include "aspell/manager.hh"
20786#include "aspell/suggest.hh"
20787#else
20788
20789/* New aspell API */
20790
20791#include <aspell.h>
20792#endif
20793
20794
20795int
20796main ()
20797{
20798
20799	{
20800#if HAVE_ASPELL_CONFIG_HH
20801		aspell::Config new_config;
20802#else
20803		AspellConfig *config=new_aspell_config();
20804		AspellCanHaveError *manager=new_aspell_speller(config);
20805		AspellSpeller *speller=to_aspell_speller(manager);
20806#endif
20807	}
20808
20809  ;
20810  return 0;
20811}
20812_ACEOF
20813if ac_fn_cxx_try_link "$LINENO"; then :
20814  ASPELL=yes
20815else
20816  ASPELL=no
20817fi
20818rm -f core conftest.err conftest.$ac_objext \
20819    conftest$ac_exeext conftest.$ac_ext
20820ac_ext=c
20821ac_cpp='$CPP $CPPFLAGS'
20822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20824ac_compiler_gnu=$ac_cv_c_compiler_gnu
20825
20826
20827LIBS="$save_LIBS"
20828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASPELL" >&5
20829$as_echo "$ASPELL" >&6; }
20830
20831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pspell" >&5
20832$as_echo_n "checking for pspell... " >&6; }
20833
20834save_LIBS="$LIBS"
20835LIBS="-lpspell $LIBS"
20836
20837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838/* end confdefs.h.  */
20839
20840#include "pspell/pspell.h"
20841
20842int
20843main ()
20844{
20845
20846PspellConfig *foo=new_pspell_config();
20847
20848  ;
20849  return 0;
20850}
20851_ACEOF
20852if ac_fn_c_try_link "$LINENO"; then :
20853  PSPELL=yes
20854else
20855  PSPELL=no
20856fi
20857rm -f core conftest.err conftest.$ac_objext \
20858    conftest$ac_exeext conftest.$ac_ext
20859
20860LIBS="$save_LIBS"
20861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSPELL" >&5
20862$as_echo "$PSPELL" >&6; }
20863
20864
20865# Check whether --with-spellcheck was given.
20866if test "${with_spellcheck+set}" = set; then :
20867  withval=$with_spellcheck;
20868
20869case "$withval" in
20870pspell)
20871	if test "$PSPELL" = "no"
20872	then
20873		as_fn_error $? "pspell library not found" "$LINENO" 5
20874	fi
20875	ASPELL="no"
20876	;;
20877aspell)
20878	if test "$ASPELL" = "no"
20879	then
20880		as_fn_error $? "aspell library not found" "$LINENO" 5
20881	fi
20882	;;
20883*)
20884	as_fn_error $? "Invalid --with-spellcheck option" "$LINENO" 5
20885	;;
20886esac
20887
20888fi
20889
20890
20891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iswalpha" >&5
20892$as_echo_n "checking for iswalpha... " >&6; }
20893
20894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895/* end confdefs.h.  */
20896
20897#include <wctype.h>
20898
20899int
20900main ()
20901{
20902
20903	{
20904	int w=iswalpha('A');
20905	}
20906
20907  ;
20908  return 0;
20909}
20910_ACEOF
20911if ac_fn_c_try_link "$LINENO"; then :
20912
20913
20914cat >>confdefs.h <<_ACEOF
20915#define HAVE_ISWALPHA 1
20916_ACEOF
20917
20918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20919$as_echo "yes" >&6; }
20920
20921else
20922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20923$as_echo "no" >&6; }
20924fi
20925rm -f core conftest.err conftest.$ac_objext \
20926    conftest$ac_exeext conftest.$ac_ext
20927
20928if test "$ASPELL" = "yes"
20929then
20930
20931cat >>confdefs.h <<_ACEOF
20932#define USE_ASPELL 1
20933_ACEOF
20934
20935	SPELL_LIB='-laspell'
20936else
20937	if test "$PSPELL" = "yes"
20938	then
20939
20940cat >>confdefs.h <<_ACEOF
20941#define USE_PSPELL 1
20942_ACEOF
20943
20944		SPELL_LIB='-lpspell'
20945	else
20946
20947cat >>confdefs.h <<_ACEOF
20948#define NO_SPELL 1
20949_ACEOF
20950
20951		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ---------------------------------------------------------------" >&5
20952$as_echo "$as_me: WARNING: ---------------------------------------------------------------" >&2;}
20953		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Neither pspell nor aspell was found -- disabling spell checking" >&5
20954$as_echo "$as_me: WARNING: Neither pspell nor aspell was found -- disabling spell checking" >&2;}
20955		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ---------------------------------------------------------------" >&5
20956$as_echo "$as_me: WARNING: ---------------------------------------------------------------" >&2;}
20957		sleep 5
20958		SPELL_LIB=''
20959	fi
20960fi
20961
20962
20963# Check whether --with-devel was given.
20964if test "${with_devel+set}" = set; then :
20965  withval=$with_devel; devel="$withval"
20966else
20967  devel=no
20968fi
20969
20970
20971case "$devel" in
20972y*|Y*)
20973	MAN3='$(man3src)'
20974	LIBMAIL='libmail.la'
20975	;;
20976esac
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987filterdir="${datadir}/cone"
20988
20989
20990# Check whether --with-filterdir was given.
20991if test "${with_filterdir+set}" = set; then :
20992  withval=$with_filterdir;  filterdir="$withval"
20993fi
20994
20995
20996
20997cat >>confdefs.h <<_ACEOF
20998#define FILTERDIR "$filterdir"
20999_ACEOF
21000
21001
21002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003/* end confdefs.h.  */
21004
21005
21006#include "../libs/ldapaddressbook/config.h"
21007
21008#if HAVE_OPENLDAP
21009
21010#else
21011
21012#error no openLDAP
21013#endif
21014
21015
21016int
21017main ()
21018{
21019
21020	;
21021
21022  ;
21023  return 0;
21024}
21025_ACEOF
21026if ac_fn_c_try_compile "$LINENO"; then :
21027  LDAPSEARCH="../libs/ldapaddressbook/libldapsearch.la"
21028
21029fi
21030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031
21032
21033
21034# This gets built by the make rule, and is not in the git repo
21035
21036for f in cone.dist.in
21037do
21038    if test ! -f "$srcdir/$f"
21039    then
21040	cp -p "$srcdir/$f.git" "$srcdir/$f"
21041	touch "$srcdir/$f.git"
21042    fi
21043done
21044
21045CFLAGS="-I../libs -I${srcdir}/../libs $CFLAGS"
21046CXXFLAGS="-I../libs -I${srcdir}/../libs $CXXFLAGS"
21047ac_config_files="$ac_config_files Makefile cone.dist cone.sh IMAGE.filter APPLICATION.PDF.filter http.handler po/Makefile.in"
21048
21049cat >confcache <<\_ACEOF
21050# This file is a shell script that caches the results of configure
21051# tests run on this system so they can be shared between configure
21052# scripts and configure runs, see configure's option --config-cache.
21053# It is not useful on other systems.  If it contains results you don't
21054# want to keep, you may remove or edit it.
21055#
21056# config.status only pays attention to the cache file if you give it
21057# the --recheck option to rerun configure.
21058#
21059# `ac_cv_env_foo' variables (set or unset) will be overridden when
21060# loading this file, other *unset* `ac_cv_foo' will be assigned the
21061# following values.
21062
21063_ACEOF
21064
21065# The following way of writing the cache mishandles newlines in values,
21066# but we know of no workaround that is simple, portable, and efficient.
21067# So, we kill variables containing newlines.
21068# Ultrix sh set writes to stderr and can't be redirected directly,
21069# and sets the high bit in the cache file unless we assign to the vars.
21070(
21071  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21072    eval ac_val=\$$ac_var
21073    case $ac_val in #(
21074    *${as_nl}*)
21075      case $ac_var in #(
21076      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21077$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21078      esac
21079      case $ac_var in #(
21080      _ | IFS | as_nl) ;; #(
21081      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21082      *) { eval $ac_var=; unset $ac_var;} ;;
21083      esac ;;
21084    esac
21085  done
21086
21087  (set) 2>&1 |
21088    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21089    *${as_nl}ac_space=\ *)
21090      # `set' does not quote correctly, so add quotes: double-quote
21091      # substitution turns \\\\ into \\, and sed turns \\ into \.
21092      sed -n \
21093	"s/'/'\\\\''/g;
21094	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21095      ;; #(
21096    *)
21097      # `set' quotes correctly as required by POSIX, so do not add quotes.
21098      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21099      ;;
21100    esac |
21101    sort
21102) |
21103  sed '
21104     /^ac_cv_env_/b end
21105     t clear
21106     :clear
21107     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21108     t end
21109     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21110     :end' >>confcache
21111if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21112  if test -w "$cache_file"; then
21113    if test "x$cache_file" != "x/dev/null"; then
21114      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21115$as_echo "$as_me: updating cache $cache_file" >&6;}
21116      if test ! -f "$cache_file" || test -h "$cache_file"; then
21117	cat confcache >"$cache_file"
21118      else
21119        case $cache_file in #(
21120        */* | ?:*)
21121	  mv -f confcache "$cache_file"$$ &&
21122	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21123        *)
21124	  mv -f confcache "$cache_file" ;;
21125	esac
21126      fi
21127    fi
21128  else
21129    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21130$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21131  fi
21132fi
21133rm -f confcache
21134
21135test "x$prefix" = xNONE && prefix=$ac_default_prefix
21136# Let make expand exec_prefix.
21137test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21138
21139DEFS=-DHAVE_CONFIG_H
21140
21141ac_libobjs=
21142ac_ltlibobjs=
21143U=
21144for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21145  # 1. Remove the extension, and $U if already installed.
21146  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21147  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21148  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21149  #    will be set to the directory where LIBOBJS objects are built.
21150  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21151  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21152done
21153LIBOBJS=$ac_libobjs
21154
21155LTLIBOBJS=$ac_ltlibobjs
21156
21157
21158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21159$as_echo_n "checking that generated files are newer than configure... " >&6; }
21160   if test -n "$am_sleep_pid"; then
21161     # Hide warnings about reused PIDs.
21162     wait $am_sleep_pid 2>/dev/null
21163   fi
21164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21165$as_echo "done" >&6; }
21166 if test -n "$EXEEXT"; then
21167  am__EXEEXT_TRUE=
21168  am__EXEEXT_FALSE='#'
21169else
21170  am__EXEEXT_TRUE='#'
21171  am__EXEEXT_FALSE=
21172fi
21173
21174if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21175  as_fn_error $? "conditional \"AMDEP\" was never defined.
21176Usually this means the macro was only invoked conditionally." "$LINENO" 5
21177fi
21178if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21179  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21180Usually this means the macro was only invoked conditionally." "$LINENO" 5
21181fi
21182if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21183  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21184Usually this means the macro was only invoked conditionally." "$LINENO" 5
21185fi
21186if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21187  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21188Usually this means the macro was only invoked conditionally." "$LINENO" 5
21189fi
21190if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
21191  as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
21192Usually this means the macro was only invoked conditionally." "$LINENO" 5
21193fi
21194
21195: "${CONFIG_STATUS=./config.status}"
21196ac_write_fail=0
21197ac_clean_files_save=$ac_clean_files
21198ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21199{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21200$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21201as_write_fail=0
21202cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21203#! $SHELL
21204# Generated by $as_me.
21205# Run this file to recreate the current configuration.
21206# Compiler output produced by configure, useful for debugging
21207# configure, is in config.log if it exists.
21208
21209debug=false
21210ac_cs_recheck=false
21211ac_cs_silent=false
21212
21213SHELL=\${CONFIG_SHELL-$SHELL}
21214export SHELL
21215_ASEOF
21216cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21217## -------------------- ##
21218## M4sh Initialization. ##
21219## -------------------- ##
21220
21221# Be more Bourne compatible
21222DUALCASE=1; export DUALCASE # for MKS sh
21223if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21224  emulate sh
21225  NULLCMD=:
21226  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21227  # is contrary to our usage.  Disable this feature.
21228  alias -g '${1+"$@"}'='"$@"'
21229  setopt NO_GLOB_SUBST
21230else
21231  case `(set -o) 2>/dev/null` in #(
21232  *posix*) :
21233    set -o posix ;; #(
21234  *) :
21235     ;;
21236esac
21237fi
21238
21239
21240as_nl='
21241'
21242export as_nl
21243# Printing a long string crashes Solaris 7 /usr/bin/printf.
21244as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21245as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21246as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21247# Prefer a ksh shell builtin over an external printf program on Solaris,
21248# but without wasting forks for bash or zsh.
21249if test -z "$BASH_VERSION$ZSH_VERSION" \
21250    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21251  as_echo='print -r --'
21252  as_echo_n='print -rn --'
21253elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21254  as_echo='printf %s\n'
21255  as_echo_n='printf %s'
21256else
21257  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21258    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21259    as_echo_n='/usr/ucb/echo -n'
21260  else
21261    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21262    as_echo_n_body='eval
21263      arg=$1;
21264      case $arg in #(
21265      *"$as_nl"*)
21266	expr "X$arg" : "X\\(.*\\)$as_nl";
21267	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21268      esac;
21269      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21270    '
21271    export as_echo_n_body
21272    as_echo_n='sh -c $as_echo_n_body as_echo'
21273  fi
21274  export as_echo_body
21275  as_echo='sh -c $as_echo_body as_echo'
21276fi
21277
21278# The user is always right.
21279if test "${PATH_SEPARATOR+set}" != set; then
21280  PATH_SEPARATOR=:
21281  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21282    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21283      PATH_SEPARATOR=';'
21284  }
21285fi
21286
21287
21288# IFS
21289# We need space, tab and new line, in precisely that order.  Quoting is
21290# there to prevent editors from complaining about space-tab.
21291# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21292# splitting by setting IFS to empty value.)
21293IFS=" ""	$as_nl"
21294
21295# Find who we are.  Look in the path if we contain no directory separator.
21296as_myself=
21297case $0 in #((
21298  *[\\/]* ) as_myself=$0 ;;
21299  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21300for as_dir in $PATH
21301do
21302  IFS=$as_save_IFS
21303  test -z "$as_dir" && as_dir=.
21304    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21305  done
21306IFS=$as_save_IFS
21307
21308     ;;
21309esac
21310# We did not find ourselves, most probably we were run as `sh COMMAND'
21311# in which case we are not to be found in the path.
21312if test "x$as_myself" = x; then
21313  as_myself=$0
21314fi
21315if test ! -f "$as_myself"; then
21316  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21317  exit 1
21318fi
21319
21320# Unset variables that we do not need and which cause bugs (e.g. in
21321# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21322# suppresses any "Segmentation fault" message there.  '((' could
21323# trigger a bug in pdksh 5.2.14.
21324for as_var in BASH_ENV ENV MAIL MAILPATH
21325do eval test x\${$as_var+set} = xset \
21326  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21327done
21328PS1='$ '
21329PS2='> '
21330PS4='+ '
21331
21332# NLS nuisances.
21333LC_ALL=C
21334export LC_ALL
21335LANGUAGE=C
21336export LANGUAGE
21337
21338# CDPATH.
21339(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21340
21341
21342# as_fn_error STATUS ERROR [LINENO LOG_FD]
21343# ----------------------------------------
21344# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21345# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21346# script with STATUS, using 1 if that was 0.
21347as_fn_error ()
21348{
21349  as_status=$1; test $as_status -eq 0 && as_status=1
21350  if test "$4"; then
21351    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21352    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21353  fi
21354  $as_echo "$as_me: error: $2" >&2
21355  as_fn_exit $as_status
21356} # as_fn_error
21357
21358
21359# as_fn_set_status STATUS
21360# -----------------------
21361# Set $? to STATUS, without forking.
21362as_fn_set_status ()
21363{
21364  return $1
21365} # as_fn_set_status
21366
21367# as_fn_exit STATUS
21368# -----------------
21369# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21370as_fn_exit ()
21371{
21372  set +e
21373  as_fn_set_status $1
21374  exit $1
21375} # as_fn_exit
21376
21377# as_fn_unset VAR
21378# ---------------
21379# Portably unset VAR.
21380as_fn_unset ()
21381{
21382  { eval $1=; unset $1;}
21383}
21384as_unset=as_fn_unset
21385# as_fn_append VAR VALUE
21386# ----------------------
21387# Append the text in VALUE to the end of the definition contained in VAR. Take
21388# advantage of any shell optimizations that allow amortized linear growth over
21389# repeated appends, instead of the typical quadratic growth present in naive
21390# implementations.
21391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21392  eval 'as_fn_append ()
21393  {
21394    eval $1+=\$2
21395  }'
21396else
21397  as_fn_append ()
21398  {
21399    eval $1=\$$1\$2
21400  }
21401fi # as_fn_append
21402
21403# as_fn_arith ARG...
21404# ------------------
21405# Perform arithmetic evaluation on the ARGs, and store the result in the
21406# global $as_val. Take advantage of shells that can avoid forks. The arguments
21407# must be portable across $(()) and expr.
21408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21409  eval 'as_fn_arith ()
21410  {
21411    as_val=$(( $* ))
21412  }'
21413else
21414  as_fn_arith ()
21415  {
21416    as_val=`expr "$@" || test $? -eq 1`
21417  }
21418fi # as_fn_arith
21419
21420
21421if expr a : '\(a\)' >/dev/null 2>&1 &&
21422   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21423  as_expr=expr
21424else
21425  as_expr=false
21426fi
21427
21428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21429  as_basename=basename
21430else
21431  as_basename=false
21432fi
21433
21434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21435  as_dirname=dirname
21436else
21437  as_dirname=false
21438fi
21439
21440as_me=`$as_basename -- "$0" ||
21441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21442	 X"$0" : 'X\(//\)$' \| \
21443	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21444$as_echo X/"$0" |
21445    sed '/^.*\/\([^/][^/]*\)\/*$/{
21446	    s//\1/
21447	    q
21448	  }
21449	  /^X\/\(\/\/\)$/{
21450	    s//\1/
21451	    q
21452	  }
21453	  /^X\/\(\/\).*/{
21454	    s//\1/
21455	    q
21456	  }
21457	  s/.*/./; q'`
21458
21459# Avoid depending upon Character Ranges.
21460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21463as_cr_digits='0123456789'
21464as_cr_alnum=$as_cr_Letters$as_cr_digits
21465
21466ECHO_C= ECHO_N= ECHO_T=
21467case `echo -n x` in #(((((
21468-n*)
21469  case `echo 'xy\c'` in
21470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21471  xy)  ECHO_C='\c';;
21472  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21473       ECHO_T='	';;
21474  esac;;
21475*)
21476  ECHO_N='-n';;
21477esac
21478
21479rm -f conf$$ conf$$.exe conf$$.file
21480if test -d conf$$.dir; then
21481  rm -f conf$$.dir/conf$$.file
21482else
21483  rm -f conf$$.dir
21484  mkdir conf$$.dir 2>/dev/null
21485fi
21486if (echo >conf$$.file) 2>/dev/null; then
21487  if ln -s conf$$.file conf$$ 2>/dev/null; then
21488    as_ln_s='ln -s'
21489    # ... but there are two gotchas:
21490    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21491    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21492    # In both cases, we have to default to `cp -pR'.
21493    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21494      as_ln_s='cp -pR'
21495  elif ln conf$$.file conf$$ 2>/dev/null; then
21496    as_ln_s=ln
21497  else
21498    as_ln_s='cp -pR'
21499  fi
21500else
21501  as_ln_s='cp -pR'
21502fi
21503rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21504rmdir conf$$.dir 2>/dev/null
21505
21506
21507# as_fn_mkdir_p
21508# -------------
21509# Create "$as_dir" as a directory, including parents if necessary.
21510as_fn_mkdir_p ()
21511{
21512
21513  case $as_dir in #(
21514  -*) as_dir=./$as_dir;;
21515  esac
21516  test -d "$as_dir" || eval $as_mkdir_p || {
21517    as_dirs=
21518    while :; do
21519      case $as_dir in #(
21520      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21521      *) as_qdir=$as_dir;;
21522      esac
21523      as_dirs="'$as_qdir' $as_dirs"
21524      as_dir=`$as_dirname -- "$as_dir" ||
21525$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21526	 X"$as_dir" : 'X\(//\)[^/]' \| \
21527	 X"$as_dir" : 'X\(//\)$' \| \
21528	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21529$as_echo X"$as_dir" |
21530    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21531	    s//\1/
21532	    q
21533	  }
21534	  /^X\(\/\/\)[^/].*/{
21535	    s//\1/
21536	    q
21537	  }
21538	  /^X\(\/\/\)$/{
21539	    s//\1/
21540	    q
21541	  }
21542	  /^X\(\/\).*/{
21543	    s//\1/
21544	    q
21545	  }
21546	  s/.*/./; q'`
21547      test -d "$as_dir" && break
21548    done
21549    test -z "$as_dirs" || eval "mkdir $as_dirs"
21550  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21551
21552
21553} # as_fn_mkdir_p
21554if mkdir -p . 2>/dev/null; then
21555  as_mkdir_p='mkdir -p "$as_dir"'
21556else
21557  test -d ./-p && rmdir ./-p
21558  as_mkdir_p=false
21559fi
21560
21561
21562# as_fn_executable_p FILE
21563# -----------------------
21564# Test if FILE is an executable regular file.
21565as_fn_executable_p ()
21566{
21567  test -f "$1" && test -x "$1"
21568} # as_fn_executable_p
21569as_test_x='test -x'
21570as_executable_p=as_fn_executable_p
21571
21572# Sed expression to map a string onto a valid CPP name.
21573as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21574
21575# Sed expression to map a string onto a valid variable name.
21576as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21577
21578
21579exec 6>&1
21580## ----------------------------------- ##
21581## Main body of $CONFIG_STATUS script. ##
21582## ----------------------------------- ##
21583_ASEOF
21584test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21585
21586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21587# Save the log message, to keep $0 and so on meaningful, and to
21588# report actual input values of CONFIG_FILES etc. instead of their
21589# values after options handling.
21590ac_log="
21591This file was extended by cone $as_me 1.1, which was
21592generated by GNU Autoconf 2.69.  Invocation command line was
21593
21594  CONFIG_FILES    = $CONFIG_FILES
21595  CONFIG_HEADERS  = $CONFIG_HEADERS
21596  CONFIG_LINKS    = $CONFIG_LINKS
21597  CONFIG_COMMANDS = $CONFIG_COMMANDS
21598  $ $0 $@
21599
21600on `(hostname || uname -n) 2>/dev/null | sed 1q`
21601"
21602
21603_ACEOF
21604
21605case $ac_config_files in *"
21606"*) set x $ac_config_files; shift; ac_config_files=$*;;
21607esac
21608
21609case $ac_config_headers in *"
21610"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21611esac
21612
21613
21614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21615# Files that config.status was made for.
21616config_files="$ac_config_files"
21617config_headers="$ac_config_headers"
21618config_commands="$ac_config_commands"
21619
21620_ACEOF
21621
21622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21623ac_cs_usage="\
21624\`$as_me' instantiates files and other configuration actions
21625from templates according to the current configuration.  Unless the files
21626and actions are specified as TAGs, all are instantiated by default.
21627
21628Usage: $0 [OPTION]... [TAG]...
21629
21630  -h, --help       print this help, then exit
21631  -V, --version    print version number and configuration settings, then exit
21632      --config     print configuration, then exit
21633  -q, --quiet, --silent
21634                   do not print progress messages
21635  -d, --debug      don't remove temporary files
21636      --recheck    update $as_me by reconfiguring in the same conditions
21637      --file=FILE[:TEMPLATE]
21638                   instantiate the configuration file FILE
21639      --header=FILE[:TEMPLATE]
21640                   instantiate the configuration header FILE
21641
21642Configuration files:
21643$config_files
21644
21645Configuration headers:
21646$config_headers
21647
21648Configuration commands:
21649$config_commands
21650
21651Report bugs to <courier-cone@lists.sourceforge.net>."
21652
21653_ACEOF
21654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21655ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21656ac_cs_version="\\
21657cone config.status 1.1
21658configured by $0, generated by GNU Autoconf 2.69,
21659  with options \\"\$ac_cs_config\\"
21660
21661Copyright (C) 2012 Free Software Foundation, Inc.
21662This config.status script is free software; the Free Software Foundation
21663gives unlimited permission to copy, distribute and modify it."
21664
21665ac_pwd='$ac_pwd'
21666srcdir='$srcdir'
21667INSTALL='$INSTALL'
21668MKDIR_P='$MKDIR_P'
21669AWK='$AWK'
21670test -n "\$AWK" || AWK=awk
21671_ACEOF
21672
21673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21674# The default lists apply if the user does not specify any file.
21675ac_need_defaults=:
21676while test $# != 0
21677do
21678  case $1 in
21679  --*=?*)
21680    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21681    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21682    ac_shift=:
21683    ;;
21684  --*=)
21685    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21686    ac_optarg=
21687    ac_shift=:
21688    ;;
21689  *)
21690    ac_option=$1
21691    ac_optarg=$2
21692    ac_shift=shift
21693    ;;
21694  esac
21695
21696  case $ac_option in
21697  # Handling of the options.
21698  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21699    ac_cs_recheck=: ;;
21700  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21701    $as_echo "$ac_cs_version"; exit ;;
21702  --config | --confi | --conf | --con | --co | --c )
21703    $as_echo "$ac_cs_config"; exit ;;
21704  --debug | --debu | --deb | --de | --d | -d )
21705    debug=: ;;
21706  --file | --fil | --fi | --f )
21707    $ac_shift
21708    case $ac_optarg in
21709    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21710    '') as_fn_error $? "missing file argument" ;;
21711    esac
21712    as_fn_append CONFIG_FILES " '$ac_optarg'"
21713    ac_need_defaults=false;;
21714  --header | --heade | --head | --hea )
21715    $ac_shift
21716    case $ac_optarg in
21717    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21718    esac
21719    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21720    ac_need_defaults=false;;
21721  --he | --h)
21722    # Conflict between --help and --header
21723    as_fn_error $? "ambiguous option: \`$1'
21724Try \`$0 --help' for more information.";;
21725  --help | --hel | -h )
21726    $as_echo "$ac_cs_usage"; exit ;;
21727  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21728  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21729    ac_cs_silent=: ;;
21730
21731  # This is an error.
21732  -*) as_fn_error $? "unrecognized option: \`$1'
21733Try \`$0 --help' for more information." ;;
21734
21735  *) as_fn_append ac_config_targets " $1"
21736     ac_need_defaults=false ;;
21737
21738  esac
21739  shift
21740done
21741
21742ac_configure_extra_args=
21743
21744if $ac_cs_silent; then
21745  exec 6>/dev/null
21746  ac_configure_extra_args="$ac_configure_extra_args --silent"
21747fi
21748
21749_ACEOF
21750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21751if \$ac_cs_recheck; then
21752  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21753  shift
21754  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21755  CONFIG_SHELL='$SHELL'
21756  export CONFIG_SHELL
21757  exec "\$@"
21758fi
21759
21760_ACEOF
21761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21762exec 5>>config.log
21763{
21764  echo
21765  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21766## Running $as_me. ##
21767_ASBOX
21768  $as_echo "$ac_log"
21769} >&5
21770
21771_ACEOF
21772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21773#
21774# INIT-COMMANDS
21775#
21776AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21777
21778
21779# The HP-UX ksh and POSIX shell print the target directory to stdout
21780# if CDPATH is set.
21781(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21782
21783sed_quote_subst='$sed_quote_subst'
21784double_quote_subst='$double_quote_subst'
21785delay_variable_subst='$delay_variable_subst'
21786macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21787macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21788enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21789enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21790pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21791enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21792shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21793SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21794ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21795PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21796host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21797host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21798host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21799build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21800build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21801build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21802SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21803Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21804GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21805EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21806FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21807LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21808NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21809LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21810max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21811ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21812exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21813lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21814lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21815lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21816lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21817lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21818reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21819reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21820OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21821deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21822file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21823file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21824want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21825DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21826sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21827AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21828AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21829archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21830STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21831RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21832old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21833old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21834old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21835lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21836CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21837CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21838compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21839GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21840lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21841lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21842lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21843lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21844lt_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"`'
21845lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21846nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21847lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21848lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21849objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21850MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21851lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21852lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21853lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21854lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21855lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21856need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21857MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21858DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21859NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21860LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21861OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21862OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21863libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21864shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21865extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21866archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21867enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21868export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21869whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21870compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21871old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21872old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21873archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21874archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21875module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21876module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21877with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21878allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21879no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21880hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21881hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21882hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21883hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21884hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21885hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21886hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21887inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21888link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21889always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21890export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21891exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21892include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21893prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21894postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21895file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21896variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21897need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21898need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21899version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21900runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21901shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21902shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21903libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21904library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21905soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21906install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21907postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21908postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21909finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21910finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21911hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21912sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21913configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21914configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21915hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21916enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21917enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21918enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21919old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21920striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21921compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21922predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21923postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21924predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21925postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21926compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21927LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21928reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21929reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21930old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21931compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21932GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21933lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21934lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21935lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21936lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21937lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21938archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21939enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21940export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21941whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21942compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21943old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21944old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21945archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21946archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21947module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21948module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21949with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21950allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21951no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21952hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21953hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21954hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21955hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21956hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21957hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21958hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21959inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21960link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21961always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21962export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21963exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21964include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21965prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21966postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21967file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21968hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21969compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21970predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21971postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21972predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21973postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21974compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21975
21976LTCC='$LTCC'
21977LTCFLAGS='$LTCFLAGS'
21978compiler='$compiler_DEFAULT'
21979
21980# A function that is used when there is no print builtin or printf.
21981func_fallback_echo ()
21982{
21983  eval 'cat <<_LTECHO_EOF
21984\$1
21985_LTECHO_EOF'
21986}
21987
21988# Quote evaled strings.
21989for var in SHELL \
21990ECHO \
21991PATH_SEPARATOR \
21992SED \
21993GREP \
21994EGREP \
21995FGREP \
21996LD \
21997NM \
21998LN_S \
21999lt_SP2NL \
22000lt_NL2SP \
22001reload_flag \
22002OBJDUMP \
22003deplibs_check_method \
22004file_magic_cmd \
22005file_magic_glob \
22006want_nocaseglob \
22007DLLTOOL \
22008sharedlib_from_linklib_cmd \
22009AR \
22010AR_FLAGS \
22011archiver_list_spec \
22012STRIP \
22013RANLIB \
22014CC \
22015CFLAGS \
22016compiler \
22017lt_cv_sys_global_symbol_pipe \
22018lt_cv_sys_global_symbol_to_cdecl \
22019lt_cv_sys_global_symbol_to_import \
22020lt_cv_sys_global_symbol_to_c_name_address \
22021lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22022lt_cv_nm_interface \
22023nm_file_list_spec \
22024lt_cv_truncate_bin \
22025lt_prog_compiler_no_builtin_flag \
22026lt_prog_compiler_pic \
22027lt_prog_compiler_wl \
22028lt_prog_compiler_static \
22029lt_cv_prog_compiler_c_o \
22030need_locks \
22031MANIFEST_TOOL \
22032DSYMUTIL \
22033NMEDIT \
22034LIPO \
22035OTOOL \
22036OTOOL64 \
22037shrext_cmds \
22038export_dynamic_flag_spec \
22039whole_archive_flag_spec \
22040compiler_needs_object \
22041with_gnu_ld \
22042allow_undefined_flag \
22043no_undefined_flag \
22044hardcode_libdir_flag_spec \
22045hardcode_libdir_separator \
22046exclude_expsyms \
22047include_expsyms \
22048file_list_spec \
22049variables_saved_for_relink \
22050libname_spec \
22051library_names_spec \
22052soname_spec \
22053install_override_mode \
22054finish_eval \
22055old_striplib \
22056striplib \
22057compiler_lib_search_dirs \
22058predep_objects \
22059postdep_objects \
22060predeps \
22061postdeps \
22062compiler_lib_search_path \
22063LD_CXX \
22064reload_flag_CXX \
22065compiler_CXX \
22066lt_prog_compiler_no_builtin_flag_CXX \
22067lt_prog_compiler_pic_CXX \
22068lt_prog_compiler_wl_CXX \
22069lt_prog_compiler_static_CXX \
22070lt_cv_prog_compiler_c_o_CXX \
22071export_dynamic_flag_spec_CXX \
22072whole_archive_flag_spec_CXX \
22073compiler_needs_object_CXX \
22074with_gnu_ld_CXX \
22075allow_undefined_flag_CXX \
22076no_undefined_flag_CXX \
22077hardcode_libdir_flag_spec_CXX \
22078hardcode_libdir_separator_CXX \
22079exclude_expsyms_CXX \
22080include_expsyms_CXX \
22081file_list_spec_CXX \
22082compiler_lib_search_dirs_CXX \
22083predep_objects_CXX \
22084postdep_objects_CXX \
22085predeps_CXX \
22086postdeps_CXX \
22087compiler_lib_search_path_CXX; do
22088    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22089    *[\\\\\\\`\\"\\\$]*)
22090      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22091      ;;
22092    *)
22093      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22094      ;;
22095    esac
22096done
22097
22098# Double-quote double-evaled strings.
22099for var in reload_cmds \
22100old_postinstall_cmds \
22101old_postuninstall_cmds \
22102old_archive_cmds \
22103extract_expsyms_cmds \
22104old_archive_from_new_cmds \
22105old_archive_from_expsyms_cmds \
22106archive_cmds \
22107archive_expsym_cmds \
22108module_cmds \
22109module_expsym_cmds \
22110export_symbols_cmds \
22111prelink_cmds \
22112postlink_cmds \
22113postinstall_cmds \
22114postuninstall_cmds \
22115finish_cmds \
22116sys_lib_search_path_spec \
22117configure_time_dlsearch_path \
22118configure_time_lt_sys_library_path \
22119reload_cmds_CXX \
22120old_archive_cmds_CXX \
22121old_archive_from_new_cmds_CXX \
22122old_archive_from_expsyms_cmds_CXX \
22123archive_cmds_CXX \
22124archive_expsym_cmds_CXX \
22125module_cmds_CXX \
22126module_expsym_cmds_CXX \
22127export_symbols_cmds_CXX \
22128prelink_cmds_CXX \
22129postlink_cmds_CXX; do
22130    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22131    *[\\\\\\\`\\"\\\$]*)
22132      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22133      ;;
22134    *)
22135      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22136      ;;
22137    esac
22138done
22139
22140ac_aux_dir='$ac_aux_dir'
22141
22142# See if we are running on zsh, and set the options that allow our
22143# commands through without removal of \ escapes INIT.
22144if test -n "\${ZSH_VERSION+set}"; then
22145   setopt NO_GLOB_SUBST
22146fi
22147
22148
22149    PACKAGE='$PACKAGE'
22150    VERSION='$VERSION'
22151    RM='$RM'
22152    ofile='$ofile'
22153
22154
22155
22156
22157
22158# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22159    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
22160    OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
22161    # Capture the value of LINGUAS because we need it to compute CATALOGS.
22162    LINGUAS="${LINGUAS-%UNSET%}"
22163
22164
22165_ACEOF
22166
22167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22168
22169# Handling of arguments.
22170for ac_config_target in $ac_config_targets
22171do
22172  case $ac_config_target in
22173    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22174    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22175    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22176    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22177    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22178    "cone.dist") CONFIG_FILES="$CONFIG_FILES cone.dist" ;;
22179    "cone.sh") CONFIG_FILES="$CONFIG_FILES cone.sh" ;;
22180    "IMAGE.filter") CONFIG_FILES="$CONFIG_FILES IMAGE.filter" ;;
22181    "APPLICATION.PDF.filter") CONFIG_FILES="$CONFIG_FILES APPLICATION.PDF.filter" ;;
22182    "http.handler") CONFIG_FILES="$CONFIG_FILES http.handler" ;;
22183    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22184
22185  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22186  esac
22187done
22188
22189
22190# If the user did not use the arguments to specify the items to instantiate,
22191# then the envvar interface is used.  Set only those that are not.
22192# We use the long form for the default assignment because of an extremely
22193# bizarre bug on SunOS 4.1.3.
22194if $ac_need_defaults; then
22195  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22196  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22197  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22198fi
22199
22200# Have a temporary directory for convenience.  Make it in the build tree
22201# simply because there is no reason against having it here, and in addition,
22202# creating and moving files from /tmp can sometimes cause problems.
22203# Hook for its removal unless debugging.
22204# Note that there is a small window in which the directory will not be cleaned:
22205# after its creation but before its name has been assigned to `$tmp'.
22206$debug ||
22207{
22208  tmp= ac_tmp=
22209  trap 'exit_status=$?
22210  : "${ac_tmp:=$tmp}"
22211  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22212' 0
22213  trap 'as_fn_exit 1' 1 2 13 15
22214}
22215# Create a (secure) tmp directory for tmp files.
22216
22217{
22218  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22219  test -d "$tmp"
22220}  ||
22221{
22222  tmp=./conf$$-$RANDOM
22223  (umask 077 && mkdir "$tmp")
22224} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22225ac_tmp=$tmp
22226
22227# Set up the scripts for CONFIG_FILES section.
22228# No need to generate them if there are no CONFIG_FILES.
22229# This happens for instance with `./config.status config.h'.
22230if test -n "$CONFIG_FILES"; then
22231
22232
22233ac_cr=`echo X | tr X '\015'`
22234# On cygwin, bash can eat \r inside `` if the user requested igncr.
22235# But we know of no other shell where ac_cr would be empty at this
22236# point, so we can use a bashism as a fallback.
22237if test "x$ac_cr" = x; then
22238  eval ac_cr=\$\'\\r\'
22239fi
22240ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22241if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22242  ac_cs_awk_cr='\\r'
22243else
22244  ac_cs_awk_cr=$ac_cr
22245fi
22246
22247echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22248_ACEOF
22249
22250
22251{
22252  echo "cat >conf$$subs.awk <<_ACEOF" &&
22253  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22254  echo "_ACEOF"
22255} >conf$$subs.sh ||
22256  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22257ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22258ac_delim='%!_!# '
22259for ac_last_try in false false false false false :; do
22260  . ./conf$$subs.sh ||
22261    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22262
22263  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22264  if test $ac_delim_n = $ac_delim_num; then
22265    break
22266  elif $ac_last_try; then
22267    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22268  else
22269    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22270  fi
22271done
22272rm -f conf$$subs.sh
22273
22274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22275cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22276_ACEOF
22277sed -n '
22278h
22279s/^/S["/; s/!.*/"]=/
22280p
22281g
22282s/^[^!]*!//
22283:repl
22284t repl
22285s/'"$ac_delim"'$//
22286t delim
22287:nl
22288h
22289s/\(.\{148\}\)..*/\1/
22290t more1
22291s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22292p
22293n
22294b repl
22295:more1
22296s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22297p
22298g
22299s/.\{148\}//
22300t nl
22301:delim
22302h
22303s/\(.\{148\}\)..*/\1/
22304t more2
22305s/["\\]/\\&/g; s/^/"/; s/$/"/
22306p
22307b
22308:more2
22309s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22310p
22311g
22312s/.\{148\}//
22313t delim
22314' <conf$$subs.awk | sed '
22315/^[^""]/{
22316  N
22317  s/\n//
22318}
22319' >>$CONFIG_STATUS || ac_write_fail=1
22320rm -f conf$$subs.awk
22321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22322_ACAWK
22323cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22324  for (key in S) S_is_set[key] = 1
22325  FS = ""
22326
22327}
22328{
22329  line = $ 0
22330  nfields = split(line, field, "@")
22331  substed = 0
22332  len = length(field[1])
22333  for (i = 2; i < nfields; i++) {
22334    key = field[i]
22335    keylen = length(key)
22336    if (S_is_set[key]) {
22337      value = S[key]
22338      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22339      len += length(value) + length(field[++i])
22340      substed = 1
22341    } else
22342      len += 1 + keylen
22343  }
22344
22345  print line
22346}
22347
22348_ACAWK
22349_ACEOF
22350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22351if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22352  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22353else
22354  cat
22355fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22356  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22357_ACEOF
22358
22359# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22360# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22361# trailing colons and then remove the whole line if VPATH becomes empty
22362# (actually we leave an empty line to preserve line numbers).
22363if test "x$srcdir" = x.; then
22364  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22365h
22366s///
22367s/^/:/
22368s/[	 ]*$/:/
22369s/:\$(srcdir):/:/g
22370s/:\${srcdir}:/:/g
22371s/:@srcdir@:/:/g
22372s/^:*//
22373s/:*$//
22374x
22375s/\(=[	 ]*\).*/\1/
22376G
22377s/\n//
22378s/^[^=]*=[	 ]*$//
22379}'
22380fi
22381
22382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22383fi # test -n "$CONFIG_FILES"
22384
22385# Set up the scripts for CONFIG_HEADERS section.
22386# No need to generate them if there are no CONFIG_HEADERS.
22387# This happens for instance with `./config.status Makefile'.
22388if test -n "$CONFIG_HEADERS"; then
22389cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22390BEGIN {
22391_ACEOF
22392
22393# Transform confdefs.h into an awk script `defines.awk', embedded as
22394# here-document in config.status, that substitutes the proper values into
22395# config.h.in to produce config.h.
22396
22397# Create a delimiter string that does not exist in confdefs.h, to ease
22398# handling of long lines.
22399ac_delim='%!_!# '
22400for ac_last_try in false false :; do
22401  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22402  if test -z "$ac_tt"; then
22403    break
22404  elif $ac_last_try; then
22405    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22406  else
22407    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22408  fi
22409done
22410
22411# For the awk script, D is an array of macro values keyed by name,
22412# likewise P contains macro parameters if any.  Preserve backslash
22413# newline sequences.
22414
22415ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22416sed -n '
22417s/.\{148\}/&'"$ac_delim"'/g
22418t rset
22419:rset
22420s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22421t def
22422d
22423:def
22424s/\\$//
22425t bsnl
22426s/["\\]/\\&/g
22427s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22428D["\1"]=" \3"/p
22429s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22430d
22431:bsnl
22432s/["\\]/\\&/g
22433s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22434D["\1"]=" \3\\\\\\n"\\/p
22435t cont
22436s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22437t cont
22438d
22439:cont
22440n
22441s/.\{148\}/&'"$ac_delim"'/g
22442t clear
22443:clear
22444s/\\$//
22445t bsnlc
22446s/["\\]/\\&/g; s/^/"/; s/$/"/p
22447d
22448:bsnlc
22449s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22450b cont
22451' <confdefs.h | sed '
22452s/'"$ac_delim"'/"\\\
22453"/g' >>$CONFIG_STATUS || ac_write_fail=1
22454
22455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22456  for (key in D) D_is_set[key] = 1
22457  FS = ""
22458}
22459/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22460  line = \$ 0
22461  split(line, arg, " ")
22462  if (arg[1] == "#") {
22463    defundef = arg[2]
22464    mac1 = arg[3]
22465  } else {
22466    defundef = substr(arg[1], 2)
22467    mac1 = arg[2]
22468  }
22469  split(mac1, mac2, "(") #)
22470  macro = mac2[1]
22471  prefix = substr(line, 1, index(line, defundef) - 1)
22472  if (D_is_set[macro]) {
22473    # Preserve the white space surrounding the "#".
22474    print prefix "define", macro P[macro] D[macro]
22475    next
22476  } else {
22477    # Replace #undef with comments.  This is necessary, for example,
22478    # in the case of _POSIX_SOURCE, which is predefined and required
22479    # on some systems where configure will not decide to define it.
22480    if (defundef == "undef") {
22481      print "/*", prefix defundef, macro, "*/"
22482      next
22483    }
22484  }
22485}
22486{ print }
22487_ACAWK
22488_ACEOF
22489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22490  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22491fi # test -n "$CONFIG_HEADERS"
22492
22493
22494eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22495shift
22496for ac_tag
22497do
22498  case $ac_tag in
22499  :[FHLC]) ac_mode=$ac_tag; continue;;
22500  esac
22501  case $ac_mode$ac_tag in
22502  :[FHL]*:*);;
22503  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22504  :[FH]-) ac_tag=-:-;;
22505  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22506  esac
22507  ac_save_IFS=$IFS
22508  IFS=:
22509  set x $ac_tag
22510  IFS=$ac_save_IFS
22511  shift
22512  ac_file=$1
22513  shift
22514
22515  case $ac_mode in
22516  :L) ac_source=$1;;
22517  :[FH])
22518    ac_file_inputs=
22519    for ac_f
22520    do
22521      case $ac_f in
22522      -) ac_f="$ac_tmp/stdin";;
22523      *) # Look for the file first in the build tree, then in the source tree
22524	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22525	 # because $ac_f cannot contain `:'.
22526	 test -f "$ac_f" ||
22527	   case $ac_f in
22528	   [\\/$]*) false;;
22529	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22530	   esac ||
22531	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22532      esac
22533      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22534      as_fn_append ac_file_inputs " '$ac_f'"
22535    done
22536
22537    # Let's still pretend it is `configure' which instantiates (i.e., don't
22538    # use $as_me), people would be surprised to read:
22539    #    /* config.h.  Generated by config.status.  */
22540    configure_input='Generated from '`
22541	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22542	`' by configure.'
22543    if test x"$ac_file" != x-; then
22544      configure_input="$ac_file.  $configure_input"
22545      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22546$as_echo "$as_me: creating $ac_file" >&6;}
22547    fi
22548    # Neutralize special characters interpreted by sed in replacement strings.
22549    case $configure_input in #(
22550    *\&* | *\|* | *\\* )
22551       ac_sed_conf_input=`$as_echo "$configure_input" |
22552       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22553    *) ac_sed_conf_input=$configure_input;;
22554    esac
22555
22556    case $ac_tag in
22557    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22558      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22559    esac
22560    ;;
22561  esac
22562
22563  ac_dir=`$as_dirname -- "$ac_file" ||
22564$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565	 X"$ac_file" : 'X\(//\)[^/]' \| \
22566	 X"$ac_file" : 'X\(//\)$' \| \
22567	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22568$as_echo X"$ac_file" |
22569    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22570	    s//\1/
22571	    q
22572	  }
22573	  /^X\(\/\/\)[^/].*/{
22574	    s//\1/
22575	    q
22576	  }
22577	  /^X\(\/\/\)$/{
22578	    s//\1/
22579	    q
22580	  }
22581	  /^X\(\/\).*/{
22582	    s//\1/
22583	    q
22584	  }
22585	  s/.*/./; q'`
22586  as_dir="$ac_dir"; as_fn_mkdir_p
22587  ac_builddir=.
22588
22589case "$ac_dir" in
22590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22591*)
22592  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22593  # A ".." for each directory in $ac_dir_suffix.
22594  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22595  case $ac_top_builddir_sub in
22596  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22597  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22598  esac ;;
22599esac
22600ac_abs_top_builddir=$ac_pwd
22601ac_abs_builddir=$ac_pwd$ac_dir_suffix
22602# for backward compatibility:
22603ac_top_builddir=$ac_top_build_prefix
22604
22605case $srcdir in
22606  .)  # We are building in place.
22607    ac_srcdir=.
22608    ac_top_srcdir=$ac_top_builddir_sub
22609    ac_abs_top_srcdir=$ac_pwd ;;
22610  [\\/]* | ?:[\\/]* )  # Absolute name.
22611    ac_srcdir=$srcdir$ac_dir_suffix;
22612    ac_top_srcdir=$srcdir
22613    ac_abs_top_srcdir=$srcdir ;;
22614  *) # Relative name.
22615    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22616    ac_top_srcdir=$ac_top_build_prefix$srcdir
22617    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22618esac
22619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22620
22621
22622  case $ac_mode in
22623  :F)
22624  #
22625  # CONFIG_FILE
22626  #
22627
22628  case $INSTALL in
22629  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22630  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22631  esac
22632  ac_MKDIR_P=$MKDIR_P
22633  case $MKDIR_P in
22634  [\\/$]* | ?:[\\/]* ) ;;
22635  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22636  esac
22637_ACEOF
22638
22639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22640# If the template does not know about datarootdir, expand it.
22641# FIXME: This hack should be removed a few years after 2.60.
22642ac_datarootdir_hack=; ac_datarootdir_seen=
22643ac_sed_dataroot='
22644/datarootdir/ {
22645  p
22646  q
22647}
22648/@datadir@/p
22649/@docdir@/p
22650/@infodir@/p
22651/@localedir@/p
22652/@mandir@/p'
22653case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22654*datarootdir*) ac_datarootdir_seen=yes;;
22655*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22656  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22657$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22658_ACEOF
22659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22660  ac_datarootdir_hack='
22661  s&@datadir@&$datadir&g
22662  s&@docdir@&$docdir&g
22663  s&@infodir@&$infodir&g
22664  s&@localedir@&$localedir&g
22665  s&@mandir@&$mandir&g
22666  s&\\\${datarootdir}&$datarootdir&g' ;;
22667esac
22668_ACEOF
22669
22670# Neutralize VPATH when `$srcdir' = `.'.
22671# Shell code in configure.ac might set extrasub.
22672# FIXME: do we really want to maintain this feature?
22673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22674ac_sed_extra="$ac_vpsub
22675$extrasub
22676_ACEOF
22677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22678:t
22679/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22680s|@configure_input@|$ac_sed_conf_input|;t t
22681s&@top_builddir@&$ac_top_builddir_sub&;t t
22682s&@top_build_prefix@&$ac_top_build_prefix&;t t
22683s&@srcdir@&$ac_srcdir&;t t
22684s&@abs_srcdir@&$ac_abs_srcdir&;t t
22685s&@top_srcdir@&$ac_top_srcdir&;t t
22686s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22687s&@builddir@&$ac_builddir&;t t
22688s&@abs_builddir@&$ac_abs_builddir&;t t
22689s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22690s&@INSTALL@&$ac_INSTALL&;t t
22691s&@MKDIR_P@&$ac_MKDIR_P&;t t
22692$ac_datarootdir_hack
22693"
22694eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22695  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22696
22697test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22698  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22699  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22700      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22701  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22702which seems to be undefined.  Please make sure it is defined" >&5
22703$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22704which seems to be undefined.  Please make sure it is defined" >&2;}
22705
22706  rm -f "$ac_tmp/stdin"
22707  case $ac_file in
22708  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22709  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22710  esac \
22711  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22712 ;;
22713  :H)
22714  #
22715  # CONFIG_HEADER
22716  #
22717  if test x"$ac_file" != x-; then
22718    {
22719      $as_echo "/* $configure_input  */" \
22720      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22721    } >"$ac_tmp/config.h" \
22722      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22723    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22724      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22725$as_echo "$as_me: $ac_file is unchanged" >&6;}
22726    else
22727      rm -f "$ac_file"
22728      mv "$ac_tmp/config.h" "$ac_file" \
22729	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22730    fi
22731  else
22732    $as_echo "/* $configure_input  */" \
22733      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22734      || as_fn_error $? "could not create -" "$LINENO" 5
22735  fi
22736# Compute "$ac_file"'s index in $config_headers.
22737_am_arg="$ac_file"
22738_am_stamp_count=1
22739for _am_header in $config_headers :; do
22740  case $_am_header in
22741    $_am_arg | $_am_arg:* )
22742      break ;;
22743    * )
22744      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22745  esac
22746done
22747echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22748$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22749	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22750	 X"$_am_arg" : 'X\(//\)$' \| \
22751	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22752$as_echo X"$_am_arg" |
22753    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22754	    s//\1/
22755	    q
22756	  }
22757	  /^X\(\/\/\)[^/].*/{
22758	    s//\1/
22759	    q
22760	  }
22761	  /^X\(\/\/\)$/{
22762	    s//\1/
22763	    q
22764	  }
22765	  /^X\(\/\).*/{
22766	    s//\1/
22767	    q
22768	  }
22769	  s/.*/./; q'`/stamp-h$_am_stamp_count
22770 ;;
22771
22772  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22773$as_echo "$as_me: executing $ac_file commands" >&6;}
22774 ;;
22775  esac
22776
22777
22778  case $ac_file$ac_mode in
22779    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22780  # Older Autoconf quotes --file arguments for eval, but not when files
22781  # are listed without --file.  Let's play safe and only enable the eval
22782  # if we detect the quoting.
22783  # TODO: see whether this extra hack can be removed once we start
22784  # requiring Autoconf 2.70 or later.
22785  case $CONFIG_FILES in #(
22786  *\'*) :
22787    eval set x "$CONFIG_FILES" ;; #(
22788  *) :
22789    set x $CONFIG_FILES ;; #(
22790  *) :
22791     ;;
22792esac
22793  shift
22794  # Used to flag and report bootstrapping failures.
22795  am_rc=0
22796  for am_mf
22797  do
22798    # Strip MF so we end up with the name of the file.
22799    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22800    # Check whether this is an Automake generated Makefile which includes
22801    # dependency-tracking related rules and includes.
22802    # Grep'ing the whole file directly is not great: AIX grep has a line
22803    # limit of 2048, but all sed's we know have understand at least 4000.
22804    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22805      || continue
22806    am_dirpart=`$as_dirname -- "$am_mf" ||
22807$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22808	 X"$am_mf" : 'X\(//\)[^/]' \| \
22809	 X"$am_mf" : 'X\(//\)$' \| \
22810	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22811$as_echo X"$am_mf" |
22812    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22813	    s//\1/
22814	    q
22815	  }
22816	  /^X\(\/\/\)[^/].*/{
22817	    s//\1/
22818	    q
22819	  }
22820	  /^X\(\/\/\)$/{
22821	    s//\1/
22822	    q
22823	  }
22824	  /^X\(\/\).*/{
22825	    s//\1/
22826	    q
22827	  }
22828	  s/.*/./; q'`
22829    am_filepart=`$as_basename -- "$am_mf" ||
22830$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22831	 X"$am_mf" : 'X\(//\)$' \| \
22832	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22833$as_echo X/"$am_mf" |
22834    sed '/^.*\/\([^/][^/]*\)\/*$/{
22835	    s//\1/
22836	    q
22837	  }
22838	  /^X\/\(\/\/\)$/{
22839	    s//\1/
22840	    q
22841	  }
22842	  /^X\/\(\/\).*/{
22843	    s//\1/
22844	    q
22845	  }
22846	  s/.*/./; q'`
22847    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22848      && sed -e '/# am--include-marker/d' "$am_filepart" \
22849        | $MAKE -f - am--depfiles" >&5
22850   (cd "$am_dirpart" \
22851      && sed -e '/# am--include-marker/d' "$am_filepart" \
22852        | $MAKE -f - am--depfiles) >&5 2>&5
22853   ac_status=$?
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); } || am_rc=$?
22856  done
22857  if test $am_rc -ne 0; then
22858    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22860as_fn_error $? "Something went wrong bootstrapping makefile fragments
22861    for automatic dependency tracking.  Try re-running configure with the
22862    '--disable-dependency-tracking' option to at least be able to build
22863    the package (albeit without support for automatic dependency tracking).
22864See \`config.log' for more details" "$LINENO" 5; }
22865  fi
22866  { am_dirpart=; unset am_dirpart;}
22867  { am_filepart=; unset am_filepart;}
22868  { am_mf=; unset am_mf;}
22869  { am_rc=; unset am_rc;}
22870  rm -f conftest-deps.mk
22871}
22872 ;;
22873    "libtool":C)
22874
22875    # See if we are running on zsh, and set the options that allow our
22876    # commands through without removal of \ escapes.
22877    if test -n "${ZSH_VERSION+set}"; then
22878      setopt NO_GLOB_SUBST
22879    fi
22880
22881    cfgfile=${ofile}T
22882    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22883    $RM "$cfgfile"
22884
22885    cat <<_LT_EOF >> "$cfgfile"
22886#! $SHELL
22887# Generated automatically by $as_me ($PACKAGE) $VERSION
22888# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22889# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22890
22891# Provide generalized library-building support services.
22892# Written by Gordon Matzigkeit, 1996
22893
22894# Copyright (C) 2014 Free Software Foundation, Inc.
22895# This is free software; see the source for copying conditions.  There is NO
22896# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22897
22898# GNU Libtool is free software; you can redistribute it and/or modify
22899# it under the terms of the GNU General Public License as published by
22900# the Free Software Foundation; either version 2 of of the License, or
22901# (at your option) any later version.
22902#
22903# As a special exception to the GNU General Public License, if you
22904# distribute this file as part of a program or library that is built
22905# using GNU Libtool, you may include this file under the  same
22906# distribution terms that you use for the rest of that program.
22907#
22908# GNU Libtool is distributed in the hope that it will be useful, but
22909# WITHOUT ANY WARRANTY; without even the implied warranty of
22910# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22911# GNU General Public License for more details.
22912#
22913# You should have received a copy of the GNU General Public License
22914# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22915
22916
22917# The names of the tagged configurations supported by this script.
22918available_tags='CXX '
22919
22920# Configured defaults for sys_lib_dlsearch_path munging.
22921: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22922
22923# ### BEGIN LIBTOOL CONFIG
22924
22925# Which release of libtool.m4 was used?
22926macro_version=$macro_version
22927macro_revision=$macro_revision
22928
22929# Whether or not to build shared libraries.
22930build_libtool_libs=$enable_shared
22931
22932# Whether or not to build static libraries.
22933build_old_libs=$enable_static
22934
22935# What type of objects to build.
22936pic_mode=$pic_mode
22937
22938# Whether or not to optimize for fast installation.
22939fast_install=$enable_fast_install
22940
22941# Shared archive member basename,for filename based shared library versioning on AIX.
22942shared_archive_member_spec=$shared_archive_member_spec
22943
22944# Shell to use when invoking shell scripts.
22945SHELL=$lt_SHELL
22946
22947# An echo program that protects backslashes.
22948ECHO=$lt_ECHO
22949
22950# The PATH separator for the build system.
22951PATH_SEPARATOR=$lt_PATH_SEPARATOR
22952
22953# The host system.
22954host_alias=$host_alias
22955host=$host
22956host_os=$host_os
22957
22958# The build system.
22959build_alias=$build_alias
22960build=$build
22961build_os=$build_os
22962
22963# A sed program that does not truncate output.
22964SED=$lt_SED
22965
22966# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22967Xsed="\$SED -e 1s/^X//"
22968
22969# A grep program that handles long lines.
22970GREP=$lt_GREP
22971
22972# An ERE matcher.
22973EGREP=$lt_EGREP
22974
22975# A literal string matcher.
22976FGREP=$lt_FGREP
22977
22978# A BSD- or MS-compatible name lister.
22979NM=$lt_NM
22980
22981# Whether we need soft or hard links.
22982LN_S=$lt_LN_S
22983
22984# What is the maximum length of a command?
22985max_cmd_len=$max_cmd_len
22986
22987# Object file suffix (normally "o").
22988objext=$ac_objext
22989
22990# Executable file suffix (normally "").
22991exeext=$exeext
22992
22993# whether the shell understands "unset".
22994lt_unset=$lt_unset
22995
22996# turn spaces into newlines.
22997SP2NL=$lt_lt_SP2NL
22998
22999# turn newlines into spaces.
23000NL2SP=$lt_lt_NL2SP
23001
23002# convert \$build file names to \$host format.
23003to_host_file_cmd=$lt_cv_to_host_file_cmd
23004
23005# convert \$build files to toolchain format.
23006to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23007
23008# An object symbol dumper.
23009OBJDUMP=$lt_OBJDUMP
23010
23011# Method to check whether dependent libraries are shared objects.
23012deplibs_check_method=$lt_deplibs_check_method
23013
23014# Command to use when deplibs_check_method = "file_magic".
23015file_magic_cmd=$lt_file_magic_cmd
23016
23017# How to find potential files when deplibs_check_method = "file_magic".
23018file_magic_glob=$lt_file_magic_glob
23019
23020# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23021want_nocaseglob=$lt_want_nocaseglob
23022
23023# DLL creation program.
23024DLLTOOL=$lt_DLLTOOL
23025
23026# Command to associate shared and link libraries.
23027sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23028
23029# The archiver.
23030AR=$lt_AR
23031
23032# Flags to create an archive.
23033AR_FLAGS=$lt_AR_FLAGS
23034
23035# How to feed a file listing to the archiver.
23036archiver_list_spec=$lt_archiver_list_spec
23037
23038# A symbol stripping program.
23039STRIP=$lt_STRIP
23040
23041# Commands used to install an old-style archive.
23042RANLIB=$lt_RANLIB
23043old_postinstall_cmds=$lt_old_postinstall_cmds
23044old_postuninstall_cmds=$lt_old_postuninstall_cmds
23045
23046# Whether to use a lock for old archive extraction.
23047lock_old_archive_extraction=$lock_old_archive_extraction
23048
23049# A C compiler.
23050LTCC=$lt_CC
23051
23052# LTCC compiler flags.
23053LTCFLAGS=$lt_CFLAGS
23054
23055# Take the output of nm and produce a listing of raw symbols and C names.
23056global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23057
23058# Transform the output of nm in a proper C declaration.
23059global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23060
23061# Transform the output of nm into a list of symbols to manually relocate.
23062global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23063
23064# Transform the output of nm in a C name address pair.
23065global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23066
23067# Transform the output of nm in a C name address pair when lib prefix is needed.
23068global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23069
23070# The name lister interface.
23071nm_interface=$lt_lt_cv_nm_interface
23072
23073# Specify filename containing input files for \$NM.
23074nm_file_list_spec=$lt_nm_file_list_spec
23075
23076# The root where to search for dependent libraries,and where our libraries should be installed.
23077lt_sysroot=$lt_sysroot
23078
23079# Command to truncate a binary pipe.
23080lt_truncate_bin=$lt_lt_cv_truncate_bin
23081
23082# The name of the directory that contains temporary libtool files.
23083objdir=$objdir
23084
23085# Used to examine libraries when file_magic_cmd begins with "file".
23086MAGIC_CMD=$MAGIC_CMD
23087
23088# Must we lock files when doing compilation?
23089need_locks=$lt_need_locks
23090
23091# Manifest tool.
23092MANIFEST_TOOL=$lt_MANIFEST_TOOL
23093
23094# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23095DSYMUTIL=$lt_DSYMUTIL
23096
23097# Tool to change global to local symbols on Mac OS X.
23098NMEDIT=$lt_NMEDIT
23099
23100# Tool to manipulate fat objects and archives on Mac OS X.
23101LIPO=$lt_LIPO
23102
23103# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23104OTOOL=$lt_OTOOL
23105
23106# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23107OTOOL64=$lt_OTOOL64
23108
23109# Old archive suffix (normally "a").
23110libext=$libext
23111
23112# Shared library suffix (normally ".so").
23113shrext_cmds=$lt_shrext_cmds
23114
23115# The commands to extract the exported symbol list from a shared archive.
23116extract_expsyms_cmds=$lt_extract_expsyms_cmds
23117
23118# Variables whose values should be saved in libtool wrapper scripts and
23119# restored at link time.
23120variables_saved_for_relink=$lt_variables_saved_for_relink
23121
23122# Do we need the "lib" prefix for modules?
23123need_lib_prefix=$need_lib_prefix
23124
23125# Do we need a version for libraries?
23126need_version=$need_version
23127
23128# Library versioning type.
23129version_type=$version_type
23130
23131# Shared library runtime path variable.
23132runpath_var=$runpath_var
23133
23134# Shared library path variable.
23135shlibpath_var=$shlibpath_var
23136
23137# Is shlibpath searched before the hard-coded library search path?
23138shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23139
23140# Format of library name prefix.
23141libname_spec=$lt_libname_spec
23142
23143# List of archive names.  First name is the real one, the rest are links.
23144# The last name is the one that the linker finds with -lNAME
23145library_names_spec=$lt_library_names_spec
23146
23147# The coded name of the library, if different from the real name.
23148soname_spec=$lt_soname_spec
23149
23150# Permission mode override for installation of shared libraries.
23151install_override_mode=$lt_install_override_mode
23152
23153# Command to use after installation of a shared archive.
23154postinstall_cmds=$lt_postinstall_cmds
23155
23156# Command to use after uninstallation of a shared archive.
23157postuninstall_cmds=$lt_postuninstall_cmds
23158
23159# Commands used to finish a libtool library installation in a directory.
23160finish_cmds=$lt_finish_cmds
23161
23162# As "finish_cmds", except a single script fragment to be evaled but
23163# not shown.
23164finish_eval=$lt_finish_eval
23165
23166# Whether we should hardcode library paths into libraries.
23167hardcode_into_libs=$hardcode_into_libs
23168
23169# Compile-time system search path for libraries.
23170sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23171
23172# Detected run-time system search path for libraries.
23173sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23174
23175# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23176configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23177
23178# Whether dlopen is supported.
23179dlopen_support=$enable_dlopen
23180
23181# Whether dlopen of programs is supported.
23182dlopen_self=$enable_dlopen_self
23183
23184# Whether dlopen of statically linked programs is supported.
23185dlopen_self_static=$enable_dlopen_self_static
23186
23187# Commands to strip libraries.
23188old_striplib=$lt_old_striplib
23189striplib=$lt_striplib
23190
23191
23192# The linker used to build libraries.
23193LD=$lt_LD
23194
23195# How to create reloadable object files.
23196reload_flag=$lt_reload_flag
23197reload_cmds=$lt_reload_cmds
23198
23199# Commands used to build an old-style archive.
23200old_archive_cmds=$lt_old_archive_cmds
23201
23202# A language specific compiler.
23203CC=$lt_compiler
23204
23205# Is the compiler the GNU compiler?
23206with_gcc=$GCC
23207
23208# Compiler flag to turn off builtin functions.
23209no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23210
23211# Additional compiler flags for building library objects.
23212pic_flag=$lt_lt_prog_compiler_pic
23213
23214# How to pass a linker flag through the compiler.
23215wl=$lt_lt_prog_compiler_wl
23216
23217# Compiler flag to prevent dynamic linking.
23218link_static_flag=$lt_lt_prog_compiler_static
23219
23220# Does compiler simultaneously support -c and -o options?
23221compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23222
23223# Whether or not to add -lc for building shared libraries.
23224build_libtool_need_lc=$archive_cmds_need_lc
23225
23226# Whether or not to disallow shared libs when runtime libs are static.
23227allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23228
23229# Compiler flag to allow reflexive dlopens.
23230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23231
23232# Compiler flag to generate shared objects directly from archives.
23233whole_archive_flag_spec=$lt_whole_archive_flag_spec
23234
23235# Whether the compiler copes with passing no objects directly.
23236compiler_needs_object=$lt_compiler_needs_object
23237
23238# Create an old-style archive from a shared archive.
23239old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23240
23241# Create a temporary old-style archive to link instead of a shared archive.
23242old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23243
23244# Commands used to build a shared archive.
23245archive_cmds=$lt_archive_cmds
23246archive_expsym_cmds=$lt_archive_expsym_cmds
23247
23248# Commands used to build a loadable module if different from building
23249# a shared archive.
23250module_cmds=$lt_module_cmds
23251module_expsym_cmds=$lt_module_expsym_cmds
23252
23253# Whether we are building with GNU ld or not.
23254with_gnu_ld=$lt_with_gnu_ld
23255
23256# Flag that allows shared libraries with undefined symbols to be built.
23257allow_undefined_flag=$lt_allow_undefined_flag
23258
23259# Flag that enforces no undefined symbols.
23260no_undefined_flag=$lt_no_undefined_flag
23261
23262# Flag to hardcode \$libdir into a binary during linking.
23263# This must work even if \$libdir does not exist
23264hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23265
23266# Whether we need a single "-rpath" flag with a separated argument.
23267hardcode_libdir_separator=$lt_hardcode_libdir_separator
23268
23269# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23270# DIR into the resulting binary.
23271hardcode_direct=$hardcode_direct
23272
23273# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23274# DIR into the resulting binary and the resulting library dependency is
23275# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23276# library is relocated.
23277hardcode_direct_absolute=$hardcode_direct_absolute
23278
23279# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23280# into the resulting binary.
23281hardcode_minus_L=$hardcode_minus_L
23282
23283# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23284# into the resulting binary.
23285hardcode_shlibpath_var=$hardcode_shlibpath_var
23286
23287# Set to "yes" if building a shared library automatically hardcodes DIR
23288# into the library and all subsequent libraries and executables linked
23289# against it.
23290hardcode_automatic=$hardcode_automatic
23291
23292# Set to yes if linker adds runtime paths of dependent libraries
23293# to runtime path list.
23294inherit_rpath=$inherit_rpath
23295
23296# Whether libtool must link a program against all its dependency libraries.
23297link_all_deplibs=$link_all_deplibs
23298
23299# Set to "yes" if exported symbols are required.
23300always_export_symbols=$always_export_symbols
23301
23302# The commands to list exported symbols.
23303export_symbols_cmds=$lt_export_symbols_cmds
23304
23305# Symbols that should not be listed in the preloaded symbols.
23306exclude_expsyms=$lt_exclude_expsyms
23307
23308# Symbols that must always be exported.
23309include_expsyms=$lt_include_expsyms
23310
23311# Commands necessary for linking programs (against libraries) with templates.
23312prelink_cmds=$lt_prelink_cmds
23313
23314# Commands necessary for finishing linking programs.
23315postlink_cmds=$lt_postlink_cmds
23316
23317# Specify filename containing input files.
23318file_list_spec=$lt_file_list_spec
23319
23320# How to hardcode a shared library path into an executable.
23321hardcode_action=$hardcode_action
23322
23323# The directories searched by this compiler when creating a shared library.
23324compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23325
23326# Dependencies to place before and after the objects being linked to
23327# create a shared library.
23328predep_objects=$lt_predep_objects
23329postdep_objects=$lt_postdep_objects
23330predeps=$lt_predeps
23331postdeps=$lt_postdeps
23332
23333# The library search path used internally by the compiler when linking
23334# a shared library.
23335compiler_lib_search_path=$lt_compiler_lib_search_path
23336
23337# ### END LIBTOOL CONFIG
23338
23339_LT_EOF
23340
23341    cat <<'_LT_EOF' >> "$cfgfile"
23342
23343# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23344
23345# func_munge_path_list VARIABLE PATH
23346# -----------------------------------
23347# VARIABLE is name of variable containing _space_ separated list of
23348# directories to be munged by the contents of PATH, which is string
23349# having a format:
23350# "DIR[:DIR]:"
23351#       string "DIR[ DIR]" will be prepended to VARIABLE
23352# ":DIR[:DIR]"
23353#       string "DIR[ DIR]" will be appended to VARIABLE
23354# "DIRP[:DIRP]::[DIRA:]DIRA"
23355#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23356#       "DIRA[ DIRA]" will be appended to VARIABLE
23357# "DIR[:DIR]"
23358#       VARIABLE will be replaced by "DIR[ DIR]"
23359func_munge_path_list ()
23360{
23361    case x$2 in
23362    x)
23363        ;;
23364    *:)
23365        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23366        ;;
23367    x:*)
23368        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23369        ;;
23370    *::*)
23371        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23372        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23373        ;;
23374    *)
23375        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23376        ;;
23377    esac
23378}
23379
23380
23381# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23382func_cc_basename ()
23383{
23384    for cc_temp in $*""; do
23385      case $cc_temp in
23386        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23387        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23388        \-*) ;;
23389        *) break;;
23390      esac
23391    done
23392    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23393}
23394
23395
23396# ### END FUNCTIONS SHARED WITH CONFIGURE
23397
23398_LT_EOF
23399
23400  case $host_os in
23401  aix3*)
23402    cat <<\_LT_EOF >> "$cfgfile"
23403# AIX sometimes has problems with the GCC collect2 program.  For some
23404# reason, if we set the COLLECT_NAMES environment variable, the problems
23405# vanish in a puff of smoke.
23406if test set != "${COLLECT_NAMES+set}"; then
23407  COLLECT_NAMES=
23408  export COLLECT_NAMES
23409fi
23410_LT_EOF
23411    ;;
23412  esac
23413
23414
23415ltmain=$ac_aux_dir/ltmain.sh
23416
23417
23418  # We use sed instead of cat because bash on DJGPP gets confused if
23419  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23420  # text mode, it properly converts lines to CR/LF.  This bash problem
23421  # is reportedly fixed, but why not run on old versions too?
23422  sed '$q' "$ltmain" >> "$cfgfile" \
23423     || (rm -f "$cfgfile"; exit 1)
23424
23425   mv -f "$cfgfile" "$ofile" ||
23426    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23427  chmod +x "$ofile"
23428
23429
23430    cat <<_LT_EOF >> "$ofile"
23431
23432# ### BEGIN LIBTOOL TAG CONFIG: CXX
23433
23434# The linker used to build libraries.
23435LD=$lt_LD_CXX
23436
23437# How to create reloadable object files.
23438reload_flag=$lt_reload_flag_CXX
23439reload_cmds=$lt_reload_cmds_CXX
23440
23441# Commands used to build an old-style archive.
23442old_archive_cmds=$lt_old_archive_cmds_CXX
23443
23444# A language specific compiler.
23445CC=$lt_compiler_CXX
23446
23447# Is the compiler the GNU compiler?
23448with_gcc=$GCC_CXX
23449
23450# Compiler flag to turn off builtin functions.
23451no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23452
23453# Additional compiler flags for building library objects.
23454pic_flag=$lt_lt_prog_compiler_pic_CXX
23455
23456# How to pass a linker flag through the compiler.
23457wl=$lt_lt_prog_compiler_wl_CXX
23458
23459# Compiler flag to prevent dynamic linking.
23460link_static_flag=$lt_lt_prog_compiler_static_CXX
23461
23462# Does compiler simultaneously support -c and -o options?
23463compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23464
23465# Whether or not to add -lc for building shared libraries.
23466build_libtool_need_lc=$archive_cmds_need_lc_CXX
23467
23468# Whether or not to disallow shared libs when runtime libs are static.
23469allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23470
23471# Compiler flag to allow reflexive dlopens.
23472export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23473
23474# Compiler flag to generate shared objects directly from archives.
23475whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23476
23477# Whether the compiler copes with passing no objects directly.
23478compiler_needs_object=$lt_compiler_needs_object_CXX
23479
23480# Create an old-style archive from a shared archive.
23481old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23482
23483# Create a temporary old-style archive to link instead of a shared archive.
23484old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23485
23486# Commands used to build a shared archive.
23487archive_cmds=$lt_archive_cmds_CXX
23488archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23489
23490# Commands used to build a loadable module if different from building
23491# a shared archive.
23492module_cmds=$lt_module_cmds_CXX
23493module_expsym_cmds=$lt_module_expsym_cmds_CXX
23494
23495# Whether we are building with GNU ld or not.
23496with_gnu_ld=$lt_with_gnu_ld_CXX
23497
23498# Flag that allows shared libraries with undefined symbols to be built.
23499allow_undefined_flag=$lt_allow_undefined_flag_CXX
23500
23501# Flag that enforces no undefined symbols.
23502no_undefined_flag=$lt_no_undefined_flag_CXX
23503
23504# Flag to hardcode \$libdir into a binary during linking.
23505# This must work even if \$libdir does not exist
23506hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23507
23508# Whether we need a single "-rpath" flag with a separated argument.
23509hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23510
23511# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23512# DIR into the resulting binary.
23513hardcode_direct=$hardcode_direct_CXX
23514
23515# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23516# DIR into the resulting binary and the resulting library dependency is
23517# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23518# library is relocated.
23519hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23520
23521# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23522# into the resulting binary.
23523hardcode_minus_L=$hardcode_minus_L_CXX
23524
23525# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23526# into the resulting binary.
23527hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23528
23529# Set to "yes" if building a shared library automatically hardcodes DIR
23530# into the library and all subsequent libraries and executables linked
23531# against it.
23532hardcode_automatic=$hardcode_automatic_CXX
23533
23534# Set to yes if linker adds runtime paths of dependent libraries
23535# to runtime path list.
23536inherit_rpath=$inherit_rpath_CXX
23537
23538# Whether libtool must link a program against all its dependency libraries.
23539link_all_deplibs=$link_all_deplibs_CXX
23540
23541# Set to "yes" if exported symbols are required.
23542always_export_symbols=$always_export_symbols_CXX
23543
23544# The commands to list exported symbols.
23545export_symbols_cmds=$lt_export_symbols_cmds_CXX
23546
23547# Symbols that should not be listed in the preloaded symbols.
23548exclude_expsyms=$lt_exclude_expsyms_CXX
23549
23550# Symbols that must always be exported.
23551include_expsyms=$lt_include_expsyms_CXX
23552
23553# Commands necessary for linking programs (against libraries) with templates.
23554prelink_cmds=$lt_prelink_cmds_CXX
23555
23556# Commands necessary for finishing linking programs.
23557postlink_cmds=$lt_postlink_cmds_CXX
23558
23559# Specify filename containing input files.
23560file_list_spec=$lt_file_list_spec_CXX
23561
23562# How to hardcode a shared library path into an executable.
23563hardcode_action=$hardcode_action_CXX
23564
23565# The directories searched by this compiler when creating a shared library.
23566compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23567
23568# Dependencies to place before and after the objects being linked to
23569# create a shared library.
23570predep_objects=$lt_predep_objects_CXX
23571postdep_objects=$lt_postdep_objects_CXX
23572predeps=$lt_predeps_CXX
23573postdeps=$lt_postdeps_CXX
23574
23575# The library search path used internally by the compiler when linking
23576# a shared library.
23577compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23578
23579# ### END LIBTOOL TAG CONFIG: CXX
23580_LT_EOF
23581
23582 ;;
23583    "po-directories":C)
23584    for ac_file in $CONFIG_FILES; do
23585      # Support "outfile[:infile[:infile...]]"
23586      case "$ac_file" in
23587        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23588      esac
23589      # PO directories have a Makefile.in generated from Makefile.in.in.
23590      case "$ac_file" in */Makefile.in)
23591        # Adjust a relative srcdir.
23592        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23593        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23594        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23595        # In autoconf-2.13 it is called $ac_given_srcdir.
23596        # In autoconf-2.50 it is called $srcdir.
23597        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23598        case "$ac_given_srcdir" in
23599          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23600          /*) top_srcdir="$ac_given_srcdir" ;;
23601          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
23602        esac
23603        # Treat a directory as a PO directory if and only if it has a
23604        # POTFILES.in file. This allows packages to have multiple PO
23605        # directories under different names or in different locations.
23606        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23607          rm -f "$ac_dir/POTFILES"
23608          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23609          gt_tab=`printf '\t'`
23610          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23611          POMAKEFILEDEPS="POTFILES.in"
23612          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23613          # on $ac_dir but don't depend on user-specified configuration
23614          # parameters.
23615          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23616            # The LINGUAS file contains the set of available languages.
23617            if test -n "$OBSOLETE_ALL_LINGUAS"; then
23618              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23619            fi
23620            ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23621            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23622          else
23623            # The set of available languages was given in configure.in.
23624            ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
23625          fi
23626          # Compute POFILES
23627          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23628          # Compute UPDATEPOFILES
23629          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23630          # Compute DUMMYPOFILES
23631          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23632          # Compute GMOFILES
23633          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23634          case "$ac_given_srcdir" in
23635            .) srcdirpre= ;;
23636            *) srcdirpre='$(srcdir)/' ;;
23637          esac
23638          POFILES=
23639          UPDATEPOFILES=
23640          DUMMYPOFILES=
23641          GMOFILES=
23642          for lang in $ALL_LINGUAS; do
23643            POFILES="$POFILES $srcdirpre$lang.po"
23644            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23645            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23646            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23647          done
23648          # CATALOGS depends on both $ac_dir and the user's LINGUAS
23649          # environment variable.
23650          INST_LINGUAS=
23651          if test -n "$ALL_LINGUAS"; then
23652            for presentlang in $ALL_LINGUAS; do
23653              useit=no
23654              if test "%UNSET%" != "$LINGUAS"; then
23655                desiredlanguages="$LINGUAS"
23656              else
23657                desiredlanguages="$ALL_LINGUAS"
23658              fi
23659              for desiredlang in $desiredlanguages; do
23660                # Use the presentlang catalog if desiredlang is
23661                #   a. equal to presentlang, or
23662                #   b. a variant of presentlang (because in this case,
23663                #      presentlang can be used as a fallback for messages
23664                #      which are not translated in the desiredlang catalog).
23665                case "$desiredlang" in
23666                  "$presentlang"*) useit=yes;;
23667                esac
23668              done
23669              if test $useit = yes; then
23670                INST_LINGUAS="$INST_LINGUAS $presentlang"
23671              fi
23672            done
23673          fi
23674          CATALOGS=
23675          if test -n "$INST_LINGUAS"; then
23676            for lang in $INST_LINGUAS; do
23677              CATALOGS="$CATALOGS $lang.gmo"
23678            done
23679          fi
23680          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23681          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23682          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23683            if test -f "$f"; then
23684              case "$f" in
23685                *.orig | *.bak | *~) ;;
23686                *) cat "$f" >> "$ac_dir/Makefile" ;;
23687              esac
23688            fi
23689          done
23690        fi
23691        ;;
23692      esac
23693    done ;;
23694
23695  esac
23696done # for ac_tag
23697
23698
23699as_fn_exit 0
23700_ACEOF
23701ac_clean_files=$ac_clean_files_save
23702
23703test $ac_write_fail = 0 ||
23704  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23705
23706
23707# configure is writing to config.log, and then calls config.status.
23708# config.status does its own redirection, appending to config.log.
23709# Unfortunately, on DOS this fails, as config.log is still kept open
23710# by configure, so config.status won't be able to write to it; its
23711# output is simply discarded.  So we exec the FD to /dev/null,
23712# effectively closing config.log, so it can be properly (re)opened and
23713# appended to by config.status.  When coming back to configure, we
23714# need to make the FD available again.
23715if test "$no_create" != yes; then
23716  ac_cs_success=:
23717  ac_config_status_args=
23718  test "$silent" = yes &&
23719    ac_config_status_args="$ac_config_status_args --quiet"
23720  exec 5>/dev/null
23721  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23722  exec 5>>config.log
23723  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23724  # would make configure fail if this is the last instruction.
23725  $ac_cs_success || as_fn_exit 1
23726fi
23727if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23728  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23729$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23730fi
23731
23732