1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Dovecot 2.3.17.
4#
5# Report bugs to <dovecot@dovecot.org>.
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: dovecot@dovecot.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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='Dovecot'
592PACKAGE_TARNAME='dovecot'
593PACKAGE_VERSION='2.3.17'
594PACKAGE_STRING='Dovecot 2.3.17'
595PACKAGE_BUGREPORT='dovecot@dovecot.org'
596PACKAGE_URL=''
597
598ac_unique_file="src"
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
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639abs_top_builddir
640RUN_TEST
641VALGRIND
642PANDOC
643NOPLUGIN_LDFLAGS
644BINARY_LDFLAGS
645BINARY_CFLAGS
646SETTING_FILES
647HAVE_APPARMOR_FALSE
648HAVE_APPARMOR_TRUE
649APPARMOR_LIBS
650BUILD_LIBICU_FALSE
651BUILD_LIBICU_TRUE
652LIBICU_LIBS
653LIBICU_CFLAGS
654BUILD_FTS_EXTTEXTCAT_FALSE
655BUILD_FTS_EXTTEXTCAT_TRUE
656BUILD_FTS_TEXTCAT_FALSE
657BUILD_FTS_TEXTCAT_TRUE
658LIBEXTTEXTCAT_LIBS
659LIBEXTTEXTCAT_CFLAGS
660BUILD_FTS_STEMMER_FALSE
661BUILD_FTS_STEMMER_TRUE
662CLUCENE_LIBS
663CLUCENE_CFLAGS
664BUILD_SOLR_FALSE
665BUILD_SOLR_TRUE
666QUOTA_LIBS
667HAVE_RQUOTA_FALSE
668HAVE_RQUOTA_TRUE
669LIBTIRPC_LIBS
670LIBTIRPC_CFLAGS
671RPCGEN
672BUILD_ZLIB_PLUGIN_FALSE
673BUILD_ZLIB_PLUGIN_TRUE
674COMPRESS_LIBS
675BUILD_ZSTD_FALSE
676BUILD_ZSTD_TRUE
677ZSTD_LIBS
678ZSTD_CFLAGS
679SQL_PLUGINS_FALSE
680SQL_PLUGINS_TRUE
681BUILD_CASSANDRA_FALSE
682BUILD_CASSANDRA_TRUE
683BUILD_SQLITE_FALSE
684BUILD_SQLITE_TRUE
685BUILD_MYSQL_FALSE
686BUILD_MYSQL_TRUE
687BUILD_PGSQL_FALSE
688BUILD_PGSQL_TRUE
689sql_drivers
690LIBDOVECOT_LUA_DEPS
691LIBDOVECOT_LUA
692LIBDOVECOT_LIBFTS_DEPS
693LIBDOVECOT_LIBFTS
694LIBDOVECOT_LDAP
695LIBDOVECOT_LDA
696LIBDOVECOT_DSYNC
697LIBDOVECOT_COMPRESS
698LIBDOVECOT_SQL
699LIBDOVECOT_LOGIN
700LIBDOVECOT_STORAGE_DEPS
701LIBDOVECOT_STORAGE
702LIBDOVECOT_DEPS
703LIBDOVECOT_LA_LIBS
704LIBDOVECOT
705LINKED_STORAGE_LDADD
706dict_drivers
707CDB_LIBS
708DICT_LIBS
709CASSANDRA_LIBS
710CASSANDRA_CFLAGS
711SQLITE_LIBS
712SQLITE_CFLAGS
713PGSQL_LIBS
714PGSQL_CFLAGS
715MYSQL_LIBS
716MYSQL_CFLAGS
717SQL_LIBS
718SQL_CFLAGS
719AUTH_LIBS
720AUTH_CFLAGS
721MODULE_SUFFIX
722DLUA_WITH_YIELDS_FALSE
723DLUA_WITH_YIELDS_TRUE
724HAVE_LUA_FALSE
725HAVE_LUA_TRUE
726AUTH_LUA_PLUGIN_FALSE
727AUTH_LUA_PLUGIN_TRUE
728BUILD_LIBSODIUM_FALSE
729BUILD_LIBSODIUM_TRUE
730LIBSODIUM_LIBS
731LIBSODIUM_CFLAGS
732MYSQL_CONFIG
733PG_CONFIG
734HAVE_LDAP_FALSE
735HAVE_LDAP_TRUE
736LDAP_PLUGIN_FALSE
737LDAP_PLUGIN_TRUE
738LDAP_LIBS
739GSSAPI_PLUGIN_FALSE
740GSSAPI_PLUGIN_TRUE
741KRB5_CFLAGS
742KRB5_LIBS
743KRB5CONFIG
744LUA_LIBS
745LUA_CFLAGS
746LIBUNWIND_LIBS
747LIBUNWIND_CFLAGS
748SSL_VERSION_GE_102_FALSE
749SSL_VERSION_GE_102_TRUE
750BUILD_DCRYPT_OPENSSL_FALSE
751BUILD_DCRYPT_OPENSSL_TRUE
752BUILD_OPENSSL_FALSE
753BUILD_OPENSSL_TRUE
754SSL_LIBS
755SSL_CFLAGS
756DLLIB
757MODULE_LIBS
758CRYPT_LIBS
759DOVECOT_PLUGIN_DEPS_FALSE
760DOVECOT_PLUGIN_DEPS_TRUE
761TCPWRAPPERS_FALSE
762TCPWRAPPERS_TRUE
763LIBWRAP_LIBS
764LIBCAP
765USE_FUZZER_FALSE
766USE_FUZZER_TRUE
767FUZZER_LDFLAGS
768FUZZER_CPPFLAGS
769RELRO_LDFLAGS
770PIE_LDFLAGS
771PIE_CFLAGS
772HAVE_WHOLE_ARCHIVE_FALSE
773HAVE_WHOLE_ARCHIVE_TRUE
774LD_NO_WHOLE_ARCHIVE
775LD_WHOLE_ARCHIVE
776LTLIBICONV
777LIBICONV
778CXXCPP
779LT_SYS_LIBRARY_PATH
780OTOOL64
781OTOOL
782LIPO
783NMEDIT
784DSYMUTIL
785MANIFEST_TOOL
786RANLIB
787ac_ct_AR
788AR
789DLLTOOL
790OBJDUMP
791LN_S
792NM
793ac_ct_DUMPBIN
794DUMPBIN
795LD
796FGREP
797SED
798host_os
799host_vendor
800host_cpu
801host
802build_os
803build_vendor
804build_cpu
805build
806LIBTOOL
807EGREP
808GREP
809BISON
810FLEX
811am__fastdepCXX_FALSE
812am__fastdepCXX_TRUE
813CXXDEPMODE
814ac_ct_CXX
815CXXFLAGS
816CXX
817CPP
818am__fastdepCC_FALSE
819am__fastdepCC_TRUE
820CCDEPMODE
821am__nodep
822AMDEPBACKSLASH
823AMDEP_FALSE
824AMDEP_TRUE
825am__include
826DEPDIR
827OBJEXT
828EXEEXT
829ac_ct_CC
830CPPFLAGS
831LDFLAGS
832CFLAGS
833CC
834BUILD_DOCS_FALSE
835BUILD_DOCS_TRUE
836moduledir
837WANT_SYSTEMD_FALSE
838WANT_SYSTEMD_TRUE
839systemdservicetype
840systemdsystemunitdir
841SYSTEMD_LIBS
842SYSTEMD_CFLAGS
843statedir
844rundir
845ssldir
846BUILD_LUCENE_FALSE
847BUILD_LUCENE_TRUE
848BUILD_SHARED_LIBS_FALSE
849BUILD_SHARED_LIBS_TRUE
850ACLOCAL_AMFLAGS
851PKG_CONFIG_LIBDIR
852PKG_CONFIG_PATH
853PKG_CONFIG
854MAINT
855MAINTAINER_MODE_FALSE
856MAINTAINER_MODE_TRUE
857AM_BACKSLASH
858AM_DEFAULT_VERBOSITY
859AM_DEFAULT_V
860AM_V
861am__untar
862am__tar
863AMTAR
864am__leading_dot
865SET_MAKE
866AWK
867mkdir_p
868MKDIR_P
869INSTALL_STRIP_PROGRAM
870STRIP
871install_sh
872MAKEINFO
873AUTOHEADER
874AUTOMAKE
875AUTOCONF
876ACLOCAL
877VERSION
878PACKAGE
879CYGPATH_W
880am__isrc
881INSTALL_DATA
882INSTALL_SCRIPT
883INSTALL_PROGRAM
884target_alias
885host_alias
886build_alias
887LIBS
888ECHO_T
889ECHO_N
890ECHO_C
891DEFS
892mandir
893localedir
894libdir
895psdir
896pdfdir
897dvidir
898htmldir
899infodir
900docdir
901oldincludedir
902includedir
903runstatedir
904localstatedir
905sharedstatedir
906sysconfdir
907datadir
908datarootdir
909libexecdir
910sbindir
911bindir
912program_transform_name
913prefix
914exec_prefix
915PACKAGE_URL
916PACKAGE_BUGREPORT
917PACKAGE_STRING
918PACKAGE_VERSION
919PACKAGE_TARNAME
920PACKAGE_NAME
921PATH_SEPARATOR
922SHELL
923am__quote'
924ac_subst_files=''
925ac_user_opts='
926enable_option_checking
927enable_silent_rules
928enable_maintainer_mode
929enable_devel_checks
930enable_static_checker
931enable_asserts
932with_shared_libs
933with_mem_align
934with_ioloop
935with_notify
936with_nss
937with_shadow
938with_pam
939with_bsdauth
940with_gssapi
941with_ldap
942with_libunwind
943with_cdb
944with_sql
945with_pgsql
946with_mysql
947with_sqlite
948with_cassandra
949with_lucene
950with_stemmer
951with_textcat
952with_icu
953with_solr
954with_sodium
955with_zlib
956with_bzlib
957with_lzma
958with_lz4
959with_zstd
960with_libcap
961with_libwrap
962with_ssl
963with_ssldir
964with_rundir
965with_statedir
966with_systemd
967with_moduledir
968with_docs
969enable_dependency_tracking
970enable_shared
971enable_static
972with_pic
973enable_fast_install
974with_aix_soname
975with_gnu_ld
976with_sysroot
977enable_libtool_lock
978enable_rpath
979with_libiconv_prefix
980enable_hardening
981with_retpoline
982enable_ubsan
983with_fuzzer
984with_libbsd
985enable_largefile
986with_random_source
987with_lua
988with_apparmor
989'
990      ac_precious_vars='build_alias
991host_alias
992target_alias
993PKG_CONFIG
994PKG_CONFIG_PATH
995PKG_CONFIG_LIBDIR
996SYSTEMD_CFLAGS
997SYSTEMD_LIBS
998systemdsystemunitdir
999CC
1000CFLAGS
1001LDFLAGS
1002LIBS
1003CPPFLAGS
1004CPP
1005CXX
1006CXXFLAGS
1007CCC
1008LT_SYS_LIBRARY_PATH
1009CXXCPP
1010SSL_CFLAGS
1011SSL_LIBS
1012LIBUNWIND_CFLAGS
1013LIBUNWIND_LIBS
1014LUA_CFLAGS
1015LUA_LIBS
1016LIBSODIUM_CFLAGS
1017LIBSODIUM_LIBS
1018ZSTD_CFLAGS
1019ZSTD_LIBS
1020LIBTIRPC_CFLAGS
1021LIBTIRPC_LIBS
1022CLUCENE_CFLAGS
1023CLUCENE_LIBS
1024LIBEXTTEXTCAT_CFLAGS
1025LIBEXTTEXTCAT_LIBS
1026LIBICU_CFLAGS
1027LIBICU_LIBS
1028PANDOC
1029VALGRIND'
1030
1031
1032# Initialize some variables set by options.
1033ac_init_help=
1034ac_init_version=false
1035ac_unrecognized_opts=
1036ac_unrecognized_sep=
1037# The variables have the same names as the options, with
1038# dashes changed to underlines.
1039cache_file=/dev/null
1040exec_prefix=NONE
1041no_create=
1042no_recursion=
1043prefix=NONE
1044program_prefix=NONE
1045program_suffix=NONE
1046program_transform_name=s,x,x,
1047silent=
1048site=
1049srcdir=
1050verbose=
1051x_includes=NONE
1052x_libraries=NONE
1053
1054# Installation directory options.
1055# These are left unexpanded so users can "make install exec_prefix=/foo"
1056# and all the variables that are supposed to be based on exec_prefix
1057# by default will actually change.
1058# Use braces instead of parens because sh, perl, etc. also accept them.
1059# (The list follows the same order as the GNU Coding Standards.)
1060bindir='${exec_prefix}/bin'
1061sbindir='${exec_prefix}/sbin'
1062libexecdir='${exec_prefix}/libexec'
1063datarootdir='${prefix}/share'
1064datadir='${datarootdir}'
1065sysconfdir='${prefix}/etc'
1066sharedstatedir='${prefix}/com'
1067localstatedir='${prefix}/var'
1068runstatedir='${localstatedir}/run'
1069includedir='${prefix}/include'
1070oldincludedir='/usr/include'
1071docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1072infodir='${datarootdir}/info'
1073htmldir='${docdir}'
1074dvidir='${docdir}'
1075pdfdir='${docdir}'
1076psdir='${docdir}'
1077libdir='${exec_prefix}/lib'
1078localedir='${datarootdir}/locale'
1079mandir='${datarootdir}/man'
1080
1081ac_prev=
1082ac_dashdash=
1083for ac_option
1084do
1085  # If the previous option needs an argument, assign it.
1086  if test -n "$ac_prev"; then
1087    eval $ac_prev=\$ac_option
1088    ac_prev=
1089    continue
1090  fi
1091
1092  case $ac_option in
1093  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1094  *=)   ac_optarg= ;;
1095  *)    ac_optarg=yes ;;
1096  esac
1097
1098  # Accept the important Cygnus configure options, so we can diagnose typos.
1099
1100  case $ac_dashdash$ac_option in
1101  --)
1102    ac_dashdash=yes ;;
1103
1104  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1105    ac_prev=bindir ;;
1106  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1107    bindir=$ac_optarg ;;
1108
1109  -build | --build | --buil | --bui | --bu)
1110    ac_prev=build_alias ;;
1111  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1112    build_alias=$ac_optarg ;;
1113
1114  -cache-file | --cache-file | --cache-fil | --cache-fi \
1115  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1116    ac_prev=cache_file ;;
1117  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1118  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1119    cache_file=$ac_optarg ;;
1120
1121  --config-cache | -C)
1122    cache_file=config.cache ;;
1123
1124  -datadir | --datadir | --datadi | --datad)
1125    ac_prev=datadir ;;
1126  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1127    datadir=$ac_optarg ;;
1128
1129  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1130  | --dataroo | --dataro | --datar)
1131    ac_prev=datarootdir ;;
1132  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1133  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1134    datarootdir=$ac_optarg ;;
1135
1136  -disable-* | --disable-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid feature name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"enable_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval enable_$ac_useropt=no ;;
1151
1152  -docdir | --docdir | --docdi | --doc | --do)
1153    ac_prev=docdir ;;
1154  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1155    docdir=$ac_optarg ;;
1156
1157  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1158    ac_prev=dvidir ;;
1159  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1160    dvidir=$ac_optarg ;;
1161
1162  -enable-* | --enable-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid feature name: $ac_useropt"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"enable_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval enable_$ac_useropt=\$ac_optarg ;;
1177
1178  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1179  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1180  | --exec | --exe | --ex)
1181    ac_prev=exec_prefix ;;
1182  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1183  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1184  | --exec=* | --exe=* | --ex=*)
1185    exec_prefix=$ac_optarg ;;
1186
1187  -gas | --gas | --ga | --g)
1188    # Obsolete; use --with-gas.
1189    with_gas=yes ;;
1190
1191  -help | --help | --hel | --he | -h)
1192    ac_init_help=long ;;
1193  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1194    ac_init_help=recursive ;;
1195  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1196    ac_init_help=short ;;
1197
1198  -host | --host | --hos | --ho)
1199    ac_prev=host_alias ;;
1200  -host=* | --host=* | --hos=* | --ho=*)
1201    host_alias=$ac_optarg ;;
1202
1203  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1204    ac_prev=htmldir ;;
1205  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1206  | --ht=*)
1207    htmldir=$ac_optarg ;;
1208
1209  -includedir | --includedir | --includedi | --included | --include \
1210  | --includ | --inclu | --incl | --inc)
1211    ac_prev=includedir ;;
1212  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1213  | --includ=* | --inclu=* | --incl=* | --inc=*)
1214    includedir=$ac_optarg ;;
1215
1216  -infodir | --infodir | --infodi | --infod | --info | --inf)
1217    ac_prev=infodir ;;
1218  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1219    infodir=$ac_optarg ;;
1220
1221  -libdir | --libdir | --libdi | --libd)
1222    ac_prev=libdir ;;
1223  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1224    libdir=$ac_optarg ;;
1225
1226  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1227  | --libexe | --libex | --libe)
1228    ac_prev=libexecdir ;;
1229  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1230  | --libexe=* | --libex=* | --libe=*)
1231    libexecdir=$ac_optarg ;;
1232
1233  -localedir | --localedir | --localedi | --localed | --locale)
1234    ac_prev=localedir ;;
1235  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1236    localedir=$ac_optarg ;;
1237
1238  -localstatedir | --localstatedir | --localstatedi | --localstated \
1239  | --localstate | --localstat | --localsta | --localst | --locals)
1240    ac_prev=localstatedir ;;
1241  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1242  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1243    localstatedir=$ac_optarg ;;
1244
1245  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1246    ac_prev=mandir ;;
1247  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1248    mandir=$ac_optarg ;;
1249
1250  -nfp | --nfp | --nf)
1251    # Obsolete; use --without-fp.
1252    with_fp=no ;;
1253
1254  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1255  | --no-cr | --no-c | -n)
1256    no_create=yes ;;
1257
1258  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1259  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1260    no_recursion=yes ;;
1261
1262  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1263  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1264  | --oldin | --oldi | --old | --ol | --o)
1265    ac_prev=oldincludedir ;;
1266  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1267  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1268  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1269    oldincludedir=$ac_optarg ;;
1270
1271  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1272    ac_prev=prefix ;;
1273  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1274    prefix=$ac_optarg ;;
1275
1276  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1277  | --program-pre | --program-pr | --program-p)
1278    ac_prev=program_prefix ;;
1279  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1280  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1281    program_prefix=$ac_optarg ;;
1282
1283  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1284  | --program-suf | --program-su | --program-s)
1285    ac_prev=program_suffix ;;
1286  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1287  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1288    program_suffix=$ac_optarg ;;
1289
1290  -program-transform-name | --program-transform-name \
1291  | --program-transform-nam | --program-transform-na \
1292  | --program-transform-n | --program-transform- \
1293  | --program-transform | --program-transfor \
1294  | --program-transfo | --program-transf \
1295  | --program-trans | --program-tran \
1296  | --progr-tra | --program-tr | --program-t)
1297    ac_prev=program_transform_name ;;
1298  -program-transform-name=* | --program-transform-name=* \
1299  | --program-transform-nam=* | --program-transform-na=* \
1300  | --program-transform-n=* | --program-transform-=* \
1301  | --program-transform=* | --program-transfor=* \
1302  | --program-transfo=* | --program-transf=* \
1303  | --program-trans=* | --program-tran=* \
1304  | --progr-tra=* | --program-tr=* | --program-t=*)
1305    program_transform_name=$ac_optarg ;;
1306
1307  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1308    ac_prev=pdfdir ;;
1309  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1310    pdfdir=$ac_optarg ;;
1311
1312  -psdir | --psdir | --psdi | --psd | --ps)
1313    ac_prev=psdir ;;
1314  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1315    psdir=$ac_optarg ;;
1316
1317  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318  | -silent | --silent | --silen | --sile | --sil)
1319    silent=yes ;;
1320
1321  -runstatedir | --runstatedir | --runstatedi | --runstated \
1322  | --runstate | --runstat | --runsta | --runst | --runs \
1323  | --run | --ru | --r)
1324    ac_prev=runstatedir ;;
1325  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1326  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1327  | --run=* | --ru=* | --r=*)
1328    runstatedir=$ac_optarg ;;
1329
1330  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331    ac_prev=sbindir ;;
1332  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333  | --sbi=* | --sb=*)
1334    sbindir=$ac_optarg ;;
1335
1336  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338  | --sharedst | --shareds | --shared | --share | --shar \
1339  | --sha | --sh)
1340    ac_prev=sharedstatedir ;;
1341  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344  | --sha=* | --sh=*)
1345    sharedstatedir=$ac_optarg ;;
1346
1347  -site | --site | --sit)
1348    ac_prev=site ;;
1349  -site=* | --site=* | --sit=*)
1350    site=$ac_optarg ;;
1351
1352  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353    ac_prev=srcdir ;;
1354  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355    srcdir=$ac_optarg ;;
1356
1357  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358  | --syscon | --sysco | --sysc | --sys | --sy)
1359    ac_prev=sysconfdir ;;
1360  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362    sysconfdir=$ac_optarg ;;
1363
1364  -target | --target | --targe | --targ | --tar | --ta | --t)
1365    ac_prev=target_alias ;;
1366  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367    target_alias=$ac_optarg ;;
1368
1369  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370    verbose=yes ;;
1371
1372  -version | --version | --versio | --versi | --vers | -V)
1373    ac_init_version=: ;;
1374
1375  -with-* | --with-*)
1376    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377    # Reject names that are not valid shell variable names.
1378    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379      as_fn_error $? "invalid package name: $ac_useropt"
1380    ac_useropt_orig=$ac_useropt
1381    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382    case $ac_user_opts in
1383      *"
1384"with_$ac_useropt"
1385"*) ;;
1386      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1387	 ac_unrecognized_sep=', ';;
1388    esac
1389    eval with_$ac_useropt=\$ac_optarg ;;
1390
1391  -without-* | --without-*)
1392    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1393    # Reject names that are not valid shell variable names.
1394    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1395      as_fn_error $? "invalid package name: $ac_useropt"
1396    ac_useropt_orig=$ac_useropt
1397    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1398    case $ac_user_opts in
1399      *"
1400"with_$ac_useropt"
1401"*) ;;
1402      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1403	 ac_unrecognized_sep=', ';;
1404    esac
1405    eval with_$ac_useropt=no ;;
1406
1407  --x)
1408    # Obsolete; use --with-x.
1409    with_x=yes ;;
1410
1411  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1412  | --x-incl | --x-inc | --x-in | --x-i)
1413    ac_prev=x_includes ;;
1414  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1415  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1416    x_includes=$ac_optarg ;;
1417
1418  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1419  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1420    ac_prev=x_libraries ;;
1421  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1422  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1423    x_libraries=$ac_optarg ;;
1424
1425  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1426Try \`$0 --help' for more information"
1427    ;;
1428
1429  *=*)
1430    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1431    # Reject names that are not valid shell variable names.
1432    case $ac_envvar in #(
1433      '' | [0-9]* | *[!_$as_cr_alnum]* )
1434      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1435    esac
1436    eval $ac_envvar=\$ac_optarg
1437    export $ac_envvar ;;
1438
1439  *)
1440    # FIXME: should be removed in autoconf 3.0.
1441    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1442    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1443      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1444    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1445    ;;
1446
1447  esac
1448done
1449
1450if test -n "$ac_prev"; then
1451  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1452  as_fn_error $? "missing argument to $ac_option"
1453fi
1454
1455if test -n "$ac_unrecognized_opts"; then
1456  case $enable_option_checking in
1457    no) ;;
1458    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1459    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1460  esac
1461fi
1462
1463# Check all directory arguments for consistency.
1464for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1465		datadir sysconfdir sharedstatedir localstatedir includedir \
1466		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1467		libdir localedir mandir runstatedir
1468do
1469  eval ac_val=\$$ac_var
1470  # Remove trailing slashes.
1471  case $ac_val in
1472    */ )
1473      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1474      eval $ac_var=\$ac_val;;
1475  esac
1476  # Be sure to have absolute directory names.
1477  case $ac_val in
1478    [\\/$]* | ?:[\\/]* )  continue;;
1479    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1480  esac
1481  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1482done
1483
1484# There might be people who depend on the old broken behavior: `$host'
1485# used to hold the argument of --host etc.
1486# FIXME: To remove some day.
1487build=$build_alias
1488host=$host_alias
1489target=$target_alias
1490
1491# FIXME: To remove some day.
1492if test "x$host_alias" != x; then
1493  if test "x$build_alias" = x; then
1494    cross_compiling=maybe
1495  elif test "x$build_alias" != "x$host_alias"; then
1496    cross_compiling=yes
1497  fi
1498fi
1499
1500ac_tool_prefix=
1501test -n "$host_alias" && ac_tool_prefix=$host_alias-
1502
1503test "$silent" = yes && exec 6>/dev/null
1504
1505
1506ac_pwd=`pwd` && test -n "$ac_pwd" &&
1507ac_ls_di=`ls -di .` &&
1508ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1509  as_fn_error $? "working directory cannot be determined"
1510test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511  as_fn_error $? "pwd does not report name of working directory"
1512
1513
1514# Find the source files, if location was not specified.
1515if test -z "$srcdir"; then
1516  ac_srcdir_defaulted=yes
1517  # Try the directory containing this script, then the parent directory.
1518  ac_confdir=`$as_dirname -- "$as_myself" ||
1519$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520	 X"$as_myself" : 'X\(//\)[^/]' \| \
1521	 X"$as_myself" : 'X\(//\)$' \| \
1522	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523$as_echo X"$as_myself" |
1524    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525	    s//\1/
1526	    q
1527	  }
1528	  /^X\(\/\/\)[^/].*/{
1529	    s//\1/
1530	    q
1531	  }
1532	  /^X\(\/\/\)$/{
1533	    s//\1/
1534	    q
1535	  }
1536	  /^X\(\/\).*/{
1537	    s//\1/
1538	    q
1539	  }
1540	  s/.*/./; q'`
1541  srcdir=$ac_confdir
1542  if test ! -r "$srcdir/$ac_unique_file"; then
1543    srcdir=..
1544  fi
1545else
1546  ac_srcdir_defaulted=no
1547fi
1548if test ! -r "$srcdir/$ac_unique_file"; then
1549  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1551fi
1552ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553ac_abs_confdir=`(
1554	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1555	pwd)`
1556# When building in place, set srcdir=.
1557if test "$ac_abs_confdir" = "$ac_pwd"; then
1558  srcdir=.
1559fi
1560# Remove unnecessary trailing slashes from srcdir.
1561# Double slashes in file names in object file debugging info
1562# mess up M-x gdb in Emacs.
1563case $srcdir in
1564*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565esac
1566for ac_var in $ac_precious_vars; do
1567  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568  eval ac_env_${ac_var}_value=\$${ac_var}
1569  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571done
1572
1573#
1574# Report the --help message.
1575#
1576if test "$ac_init_help" = "long"; then
1577  # Omit some internal or obsolete options to make the list less imposing.
1578  # This message is too long to be a string in the A/UX 3.1 sh.
1579  cat <<_ACEOF
1580\`configure' configures Dovecot 2.3.17 to adapt to many kinds of systems.
1581
1582Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587Defaults for the options are specified in brackets.
1588
1589Configuration:
1590  -h, --help              display this help and exit
1591      --help=short        display options specific to this package
1592      --help=recursive    display the short help of all the included packages
1593  -V, --version           display version information and exit
1594  -q, --quiet, --silent   do not print \`checking ...' messages
1595      --cache-file=FILE   cache test results in FILE [disabled]
1596  -C, --config-cache      alias for \`--cache-file=config.cache'
1597  -n, --no-create         do not create output files
1598      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600Installation directories:
1601  --prefix=PREFIX         install architecture-independent files in PREFIX
1602                          [$ac_default_prefix]
1603  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                          [PREFIX]
1605
1606By default, \`make install' will install all the files in
1607\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609for instance \`--prefix=\$HOME'.
1610
1611For better control, use the options below.
1612
1613Fine tuning of the installation directories:
1614  --bindir=DIR            user executables [EPREFIX/bin]
1615  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1616  --libexecdir=DIR        program executables [EPREFIX/libexec]
1617  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1618  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1619  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1620  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1621  --libdir=DIR            object code libraries [EPREFIX/lib]
1622  --includedir=DIR        C header files [PREFIX/include]
1623  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1624  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1625  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1626  --infodir=DIR           info documentation [DATAROOTDIR/info]
1627  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1628  --mandir=DIR            man documentation [DATAROOTDIR/man]
1629  --docdir=DIR            documentation root [DATAROOTDIR/doc/dovecot]
1630  --htmldir=DIR           html documentation [DOCDIR]
1631  --dvidir=DIR            dvi documentation [DOCDIR]
1632  --pdfdir=DIR            pdf documentation [DOCDIR]
1633  --psdir=DIR             ps documentation [DOCDIR]
1634_ACEOF
1635
1636  cat <<\_ACEOF
1637
1638Program names:
1639  --program-prefix=PREFIX            prepend PREFIX to installed program names
1640  --program-suffix=SUFFIX            append SUFFIX to installed program names
1641  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1642
1643System types:
1644  --build=BUILD     configure for building on BUILD [guessed]
1645  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1646_ACEOF
1647fi
1648
1649if test -n "$ac_init_help"; then
1650  case $ac_init_help in
1651     short | recursive ) echo "Configuration of Dovecot 2.3.17:";;
1652   esac
1653  cat <<\_ACEOF
1654
1655Optional Features:
1656  --disable-option-checking  ignore unrecognized --enable/--with options
1657  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1658  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1659  --enable-silent-rules   less verbose build output (undo: "make V=1")
1660  --disable-silent-rules  verbose build output (undo: "make V=0")
1661  --enable-maintainer-mode
1662                          enable make rules and dependencies not useful (and
1663                          sometimes confusing) to the casual installer
1664  --enable-devel-checks   Enable some extra expensive checks for developers
1665  --enable-static-checker Enable code to be used when building with static
1666                          code analyzer
1667  --enable-asserts        Enable asserts (default)
1668  --enable-dependency-tracking
1669                          do not reject slow dependency extractors
1670  --disable-dependency-tracking
1671                          speeds up one-time build
1672  --enable-shared[=PKGS]  build shared libraries [default=yes]
1673  --enable-static[=PKGS]  build static libraries [default=yes]
1674  --enable-fast-install[=PKGS]
1675                          optimize for fast installation [default=yes]
1676  --disable-libtool-lock  avoid locking (might break parallel builds)
1677  --disable-rpath         do not hardcode runtime library paths
1678  --enable-hardening=yes  Enable various hardenings (default: yes)
1679  --enable-ubsan          Enable undefined behaviour sanitizes (default=no)
1680  --disable-largefile     omit support for large files
1681
1682Optional Packages:
1683  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1684  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1685  --with-shared-libs      Link binaries using shared Dovecot libraries
1686                          (default)
1687  --with-mem-align=BYTES  Set the memory alignment (default: 8)
1688  --with-ioloop=IOLOOP    Specify the I/O loop method to use (epoll, kqueue,
1689                          poll; best for the fastest available; default is
1690                          best)
1691  --with-notify=NOTIFY    Specify the file system notification method to use
1692                          (inotify, kqueue, none; default is detected in the
1693                          above order)
1694  --with-nss              Build with NSS module support (auto)
1695  --with-shadow           Build with shadow password support (auto)
1696  --with-pam              Build with PAM support (auto)
1697  --with-bsdauth          Build with BSD authentication support (auto)
1698  --with-gssapi=yes|plugin Build with GSSAPI authentication support
1699
1700  --with-ldap=yes|plugin  Build with LDAP support
1701  --with-libunwind        Build with libunwind support (auto)
1702  --with-cdb              Build with CDB support
1703  --with-sql=yes|plugin   Build with generic SQL support
1704  --with-pgsql            Build with PostgreSQL driver support
1705  --with-mysql            Build with MySQL driver support
1706  --with-sqlite           Build with SQLite3 driver support
1707  --with-cassandra        Build with Cassandra driver support
1708  --with-lucene           Build with CLucene full text search support
1709  --with-stemmer          Build with libstemmer support (for FTS) (auto)
1710  --with-textcat          Build with libtextcat support (for FTS) (auto)
1711  --with-icu              Build with libicu support (for FTS normalization)
1712                          (auto)
1713  --with-solr             Build with Solr full text search support
1714  --with-sodium           Build with libsodium support (enables argon2,
1715                          default: auto)
1716  --with-zlib             Build with zlib compression support (auto)
1717  --with-bzlib            Build with bzlib compression support (auto)
1718  --with-lzma             Build with LZMA decompression support (auto)
1719  --with-lz4              Build with LZ4 compression support (auto)
1720  --with-zstd             Build with ZSTD compression support (auto)
1721  --with-libcap           Build with libcap support (Dropping capabilities)
1722                          (auto)
1723  --with-libwrap          Build with libwrap, ie. TCP-wrappers
1724  --with-ssl=gnutls|openssl
1725                          Build with GNUTLS or OpenSSL (default)
1726  --with-ssldir=DIR       SSL base directory for certificates (/etc/ssl)
1727  --with-rundir=DIR       Runtime data directory (LOCALSTATEDIR/run/dovecot)
1728  --with-statedir=DIR     Permanent data directory (LOCALSTATEDIR/lib/dovecot)
1729  --with-systemd          Build with systemd support (default=auto)
1730  --with-moduledir=DIR    Base directory for dynamically loadable modules
1731  --with-docs             Install documentation (default)
1732  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1733                          both]
1734  --with-aix-soname=aix|svr4|both
1735                          shared library versioning (aka "SONAME") variant to
1736                          provide on AIX, [default=aix].
1737  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1738  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1739                          compiler's sysroot if not specified).
1740  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1741  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1742  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1743  --with-retpoline=<choice>
1744                          Retpoline mitigation choice (default: keep)
1745  --with-fuzzer=clang     Build with clang fuzzer (default: no)
1746  --with-libbsd           Use libbsd (default is no)
1747  --with-random-source=file
1748                          Device file to use as random source
1749                          (default=/dev/urandom)
1750  --with-lua=yes|plugin   build Lua Bindings
1751  --with-apparmor         enable apparmor plugin (default=auto)
1752
1753Some influential environment variables:
1754  PKG_CONFIG  path to pkg-config utility
1755  PKG_CONFIG_PATH
1756              directories to add to pkg-config's search path
1757  PKG_CONFIG_LIBDIR
1758              path overriding pkg-config's built-in search path
1759  SYSTEMD_CFLAGS
1760              C compiler flags for SYSTEMD, overriding pkg-config
1761  SYSTEMD_LIBS
1762              linker flags for SYSTEMD, overriding pkg-config
1763  systemdsystemunitdir
1764              value of systemdsystemunitdir for systemd, overriding pkg-config
1765  CC          C compiler command
1766  CFLAGS      C compiler flags
1767  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1768              nonstandard directory <lib dir>
1769  LIBS        libraries to pass to the linker, e.g. -l<library>
1770  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1771              you have headers in a nonstandard directory <include dir>
1772  CPP         C preprocessor
1773  CXX         C++ compiler command
1774  CXXFLAGS    C++ compiler flags
1775  LT_SYS_LIBRARY_PATH
1776              User-defined run-time library search path.
1777  CXXCPP      C++ preprocessor
1778  SSL_CFLAGS  C compiler flags for SSL, overriding pkg-config
1779  SSL_LIBS    linker flags for SSL, overriding pkg-config
1780  LIBUNWIND_CFLAGS
1781              C compiler flags for LIBUNWIND, overriding pkg-config
1782  LIBUNWIND_LIBS
1783              linker flags for LIBUNWIND, overriding pkg-config
1784  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1785  LUA_LIBS    linker flags for LUA, overriding pkg-config
1786  LIBSODIUM_CFLAGS
1787              C compiler flags for LIBSODIUM, overriding pkg-config
1788  LIBSODIUM_LIBS
1789              linker flags for LIBSODIUM, overriding pkg-config
1790  ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1791  ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
1792  LIBTIRPC_CFLAGS
1793              C compiler flags for LIBTIRPC, overriding pkg-config
1794  LIBTIRPC_LIBS
1795              linker flags for LIBTIRPC, overriding pkg-config
1796  CLUCENE_CFLAGS
1797              C compiler flags for CLUCENE, overriding pkg-config
1798  CLUCENE_LIBS
1799              linker flags for CLUCENE, overriding pkg-config
1800  LIBEXTTEXTCAT_CFLAGS
1801              C compiler flags for LIBEXTTEXTCAT, overriding pkg-config
1802  LIBEXTTEXTCAT_LIBS
1803              linker flags for LIBEXTTEXTCAT, overriding pkg-config
1804  LIBICU_CFLAGS
1805              C compiler flags for LIBICU, overriding pkg-config
1806  LIBICU_LIBS linker flags for LIBICU, overriding pkg-config
1807  PANDOC      Path to pandoc program
1808  VALGRIND    Path to valgrind
1809
1810Use these variables to override the choices made by `configure' or to help
1811it to find libraries and programs with nonstandard names/locations.
1812
1813Report bugs to <dovecot@dovecot.org>.
1814_ACEOF
1815ac_status=$?
1816fi
1817
1818if test "$ac_init_help" = "recursive"; then
1819  # If there are subdirs, report their specific --help.
1820  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1821    test -d "$ac_dir" ||
1822      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1823      continue
1824    ac_builddir=.
1825
1826case "$ac_dir" in
1827.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1828*)
1829  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1830  # A ".." for each directory in $ac_dir_suffix.
1831  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1832  case $ac_top_builddir_sub in
1833  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1834  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1835  esac ;;
1836esac
1837ac_abs_top_builddir=$ac_pwd
1838ac_abs_builddir=$ac_pwd$ac_dir_suffix
1839# for backward compatibility:
1840ac_top_builddir=$ac_top_build_prefix
1841
1842case $srcdir in
1843  .)  # We are building in place.
1844    ac_srcdir=.
1845    ac_top_srcdir=$ac_top_builddir_sub
1846    ac_abs_top_srcdir=$ac_pwd ;;
1847  [\\/]* | ?:[\\/]* )  # Absolute name.
1848    ac_srcdir=$srcdir$ac_dir_suffix;
1849    ac_top_srcdir=$srcdir
1850    ac_abs_top_srcdir=$srcdir ;;
1851  *) # Relative name.
1852    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1853    ac_top_srcdir=$ac_top_build_prefix$srcdir
1854    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1855esac
1856ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1857
1858    cd "$ac_dir" || { ac_status=$?; continue; }
1859    # Check for guested configure.
1860    if test -f "$ac_srcdir/configure.gnu"; then
1861      echo &&
1862      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1863    elif test -f "$ac_srcdir/configure"; then
1864      echo &&
1865      $SHELL "$ac_srcdir/configure" --help=recursive
1866    else
1867      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1868    fi || ac_status=$?
1869    cd "$ac_pwd" || { ac_status=$?; break; }
1870  done
1871fi
1872
1873test -n "$ac_init_help" && exit $ac_status
1874if $ac_init_version; then
1875  cat <<\_ACEOF
1876Dovecot configure 2.3.17
1877generated by GNU Autoconf 2.69
1878
1879Copyright (C) 2012 Free Software Foundation, Inc.
1880This configure script is free software; the Free Software Foundation
1881gives unlimited permission to copy, distribute and modify it.
1882_ACEOF
1883  exit
1884fi
1885
1886## ------------------------ ##
1887## Autoconf initialization. ##
1888## ------------------------ ##
1889
1890# ac_fn_c_try_compile LINENO
1891# --------------------------
1892# Try to compile conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_c_try_compile ()
1894{
1895  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896  rm -f conftest.$ac_objext
1897  if { { ac_try="$ac_compile"
1898case "(($ac_try" in
1899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900  *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904  (eval "$ac_compile") 2>conftest.err
1905  ac_status=$?
1906  if test -s conftest.err; then
1907    grep -v '^ *+' conftest.err >conftest.er1
1908    cat conftest.er1 >&5
1909    mv -f conftest.er1 conftest.err
1910  fi
1911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912  test $ac_status = 0; } && {
1913	 test -z "$ac_c_werror_flag" ||
1914	 test ! -s conftest.err
1915       } && test -s conftest.$ac_objext; then :
1916  ac_retval=0
1917else
1918  $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921	ac_retval=1
1922fi
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924  as_fn_set_status $ac_retval
1925
1926} # ac_fn_c_try_compile
1927
1928# ac_fn_c_try_link LINENO
1929# -----------------------
1930# Try to link conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_c_try_link ()
1932{
1933  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934  rm -f conftest.$ac_objext conftest$ac_exeext
1935  if { { ac_try="$ac_link"
1936case "(($ac_try" in
1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938  *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942  (eval "$ac_link") 2>conftest.err
1943  ac_status=$?
1944  if test -s conftest.err; then
1945    grep -v '^ *+' conftest.err >conftest.er1
1946    cat conftest.er1 >&5
1947    mv -f conftest.er1 conftest.err
1948  fi
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; } && {
1951	 test -z "$ac_c_werror_flag" ||
1952	 test ! -s conftest.err
1953       } && test -s conftest$ac_exeext && {
1954	 test "$cross_compiling" = yes ||
1955	 test -x conftest$ac_exeext
1956       }; then :
1957  ac_retval=0
1958else
1959  $as_echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
1962	ac_retval=1
1963fi
1964  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966  # interfere with the next link command; also delete a directory that is
1967  # left behind by Apple's compiler.  We do this before executing the actions.
1968  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970  as_fn_set_status $ac_retval
1971
1972} # ac_fn_c_try_link
1973
1974# ac_fn_c_try_cpp LINENO
1975# ----------------------
1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977ac_fn_c_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_c_preproc_warn_flag$ac_c_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_c_try_cpp
2010
2011# ac_fn_cxx_try_compile LINENO
2012# ----------------------------
2013# Try to compile conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_cxx_try_compile ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  rm -f conftest.$ac_objext
2018  if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
2037  ac_retval=0
2038else
2039  $as_echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042	ac_retval=1
2043fi
2044  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045  as_fn_set_status $ac_retval
2046
2047} # ac_fn_cxx_try_compile
2048
2049# ac_fn_c_try_run LINENO
2050# ----------------------
2051# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2052# that executables *can* be run.
2053ac_fn_c_try_run ()
2054{
2055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056  if { { ac_try="$ac_link"
2057case "(($ac_try" in
2058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059  *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063  (eval "$ac_link") 2>&5
2064  ac_status=$?
2065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2067  { { case "(($ac_try" in
2068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069  *) ac_try_echo=$ac_try;;
2070esac
2071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072$as_echo "$ac_try_echo"; } >&5
2073  (eval "$ac_try") 2>&5
2074  ac_status=$?
2075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076  test $ac_status = 0; }; }; then :
2077  ac_retval=0
2078else
2079  $as_echo "$as_me: program exited with status $ac_status" >&5
2080       $as_echo "$as_me: failed program was:" >&5
2081sed 's/^/| /' conftest.$ac_ext >&5
2082
2083       ac_retval=$ac_status
2084fi
2085  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087  as_fn_set_status $ac_retval
2088
2089} # ac_fn_c_try_run
2090
2091# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2092# -------------------------------------------------------
2093# Tests whether HEADER exists and can be compiled using the include files in
2094# INCLUDES, setting the cache variable VAR accordingly.
2095ac_fn_c_check_header_compile ()
2096{
2097  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099$as_echo_n "checking for $2... " >&6; }
2100if eval \${$3+:} false; then :
2101  $as_echo_n "(cached) " >&6
2102else
2103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h.  */
2105$4
2106#include <$2>
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109  eval "$3=yes"
2110else
2111  eval "$3=no"
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114fi
2115eval ac_res=\$$3
2116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119
2120} # ac_fn_c_check_header_compile
2121
2122# ac_fn_c_check_func LINENO FUNC VAR
2123# ----------------------------------
2124# Tests whether FUNC exists, setting the cache variable VAR accordingly
2125ac_fn_c_check_func ()
2126{
2127  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129$as_echo_n "checking for $2... " >&6; }
2130if eval \${$3+:} false; then :
2131  $as_echo_n "(cached) " >&6
2132else
2133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h.  */
2135/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2136   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2137#define $2 innocuous_$2
2138
2139/* System header to define __stub macros and hopefully few prototypes,
2140    which can conflict with char $2 (); below.
2141    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2142    <limits.h> exists even on freestanding compilers.  */
2143
2144#ifdef __STDC__
2145# include <limits.h>
2146#else
2147# include <assert.h>
2148#endif
2149
2150#undef $2
2151
2152/* Override any GCC internal prototype to avoid an error.
2153   Use char because int might match the return type of a GCC
2154   builtin and then its argument prototype would still apply.  */
2155#ifdef __cplusplus
2156extern "C"
2157#endif
2158char $2 ();
2159/* The GNU C library defines this for functions which it implements
2160    to always fail with ENOSYS.  Some functions are actually named
2161    something starting with __ and the normal name is an alias.  */
2162#if defined __stub_$2 || defined __stub___$2
2163choke me
2164#endif
2165
2166int
2167main ()
2168{
2169return $2 ();
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_link "$LINENO"; then :
2175  eval "$3=yes"
2176else
2177  eval "$3=no"
2178fi
2179rm -f core conftest.err conftest.$ac_objext \
2180    conftest$ac_exeext conftest.$ac_ext
2181fi
2182eval ac_res=\$$3
2183	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184$as_echo "$ac_res" >&6; }
2185  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186
2187} # ac_fn_c_check_func
2188
2189# ac_fn_cxx_try_cpp LINENO
2190# ------------------------
2191# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2192ac_fn_cxx_try_cpp ()
2193{
2194  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195  if { { ac_try="$ac_cpp conftest.$ac_ext"
2196case "(($ac_try" in
2197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198  *) ac_try_echo=$ac_try;;
2199esac
2200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201$as_echo "$ac_try_echo"; } >&5
2202  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2203  ac_status=$?
2204  if test -s conftest.err; then
2205    grep -v '^ *+' conftest.err >conftest.er1
2206    cat conftest.er1 >&5
2207    mv -f conftest.er1 conftest.err
2208  fi
2209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210  test $ac_status = 0; } > conftest.i && {
2211	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2212	 test ! -s conftest.err
2213       }; then :
2214  ac_retval=0
2215else
2216  $as_echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
2219    ac_retval=1
2220fi
2221  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222  as_fn_set_status $ac_retval
2223
2224} # ac_fn_cxx_try_cpp
2225
2226# ac_fn_cxx_try_link LINENO
2227# -------------------------
2228# Try to link conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_link ()
2230{
2231  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232  rm -f conftest.$ac_objext conftest$ac_exeext
2233  if { { ac_try="$ac_link"
2234case "(($ac_try" in
2235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236  *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240  (eval "$ac_link") 2>conftest.err
2241  ac_status=$?
2242  if test -s conftest.err; then
2243    grep -v '^ *+' conftest.err >conftest.er1
2244    cat conftest.er1 >&5
2245    mv -f conftest.er1 conftest.err
2246  fi
2247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248  test $ac_status = 0; } && {
2249	 test -z "$ac_cxx_werror_flag" ||
2250	 test ! -s conftest.err
2251       } && test -s conftest$ac_exeext && {
2252	 test "$cross_compiling" = yes ||
2253	 test -x conftest$ac_exeext
2254       }; then :
2255  ac_retval=0
2256else
2257  $as_echo "$as_me: failed program was:" >&5
2258sed 's/^/| /' conftest.$ac_ext >&5
2259
2260	ac_retval=1
2261fi
2262  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2263  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2264  # interfere with the next link command; also delete a directory that is
2265  # left behind by Apple's compiler.  We do this before executing the actions.
2266  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2267  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268  as_fn_set_status $ac_retval
2269
2270} # ac_fn_cxx_try_link
2271
2272# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2273# -------------------------------------------------------
2274# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2275# the include files in INCLUDES and setting the cache variable VAR
2276# accordingly.
2277ac_fn_c_check_header_mongrel ()
2278{
2279  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280  if eval \${$3+:} false; then :
2281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282$as_echo_n "checking for $2... " >&6; }
2283if eval \${$3+:} false; then :
2284  $as_echo_n "(cached) " >&6
2285fi
2286eval ac_res=\$$3
2287	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288$as_echo "$ac_res" >&6; }
2289else
2290  # Is the header compilable?
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2292$as_echo_n "checking $2 usability... " >&6; }
2293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$4
2296#include <$2>
2297_ACEOF
2298if ac_fn_c_try_compile "$LINENO"; then :
2299  ac_header_compiler=yes
2300else
2301  ac_header_compiler=no
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2305$as_echo "$ac_header_compiler" >&6; }
2306
2307# Is the header present?
2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2309$as_echo_n "checking $2 presence... " >&6; }
2310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h.  */
2312#include <$2>
2313_ACEOF
2314if ac_fn_c_try_cpp "$LINENO"; then :
2315  ac_header_preproc=yes
2316else
2317  ac_header_preproc=no
2318fi
2319rm -f conftest.err conftest.i conftest.$ac_ext
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2321$as_echo "$ac_header_preproc" >&6; }
2322
2323# So?  What about this header?
2324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2325  yes:no: )
2326    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2327$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2328    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2329$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2330    ;;
2331  no:yes:* )
2332    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2333$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2334    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2335$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2336    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2337$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2338    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2339$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2340    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2341$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2342( $as_echo "## ---------------------------------- ##
2343## Report this to dovecot@dovecot.org ##
2344## ---------------------------------- ##"
2345     ) | sed "s/^/$as_me: WARNING:     /" >&2
2346    ;;
2347esac
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349$as_echo_n "checking for $2... " >&6; }
2350if eval \${$3+:} false; then :
2351  $as_echo_n "(cached) " >&6
2352else
2353  eval "$3=\$ac_header_compiler"
2354fi
2355eval ac_res=\$$3
2356	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
2358fi
2359  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360
2361} # ac_fn_c_check_header_mongrel
2362
2363# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2364# ---------------------------------------------
2365# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2366# accordingly.
2367ac_fn_c_check_decl ()
2368{
2369  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370  as_decl_name=`echo $2|sed 's/ *(.*//'`
2371  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2373$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2374if eval \${$3+:} false; then :
2375  $as_echo_n "(cached) " >&6
2376else
2377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378/* end confdefs.h.  */
2379$4
2380int
2381main ()
2382{
2383#ifndef $as_decl_name
2384#ifdef __cplusplus
2385  (void) $as_decl_use;
2386#else
2387  (void) $as_decl_name;
2388#endif
2389#endif
2390
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395if ac_fn_c_try_compile "$LINENO"; then :
2396  eval "$3=yes"
2397else
2398  eval "$3=no"
2399fi
2400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401fi
2402eval ac_res=\$$3
2403	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404$as_echo "$ac_res" >&6; }
2405  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406
2407} # ac_fn_c_check_decl
2408
2409# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2410# -------------------------------------------
2411# Tests whether TYPE exists after having included INCLUDES, setting cache
2412# variable VAR accordingly.
2413ac_fn_c_check_type ()
2414{
2415  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417$as_echo_n "checking for $2... " >&6; }
2418if eval \${$3+:} false; then :
2419  $as_echo_n "(cached) " >&6
2420else
2421  eval "$3=no"
2422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423/* end confdefs.h.  */
2424$4
2425int
2426main ()
2427{
2428if (sizeof ($2))
2429	 return 0;
2430  ;
2431  return 0;
2432}
2433_ACEOF
2434if ac_fn_c_try_compile "$LINENO"; then :
2435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436/* end confdefs.h.  */
2437$4
2438int
2439main ()
2440{
2441if (sizeof (($2)))
2442	    return 0;
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447if ac_fn_c_try_compile "$LINENO"; then :
2448
2449else
2450  eval "$3=yes"
2451fi
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453fi
2454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455fi
2456eval ac_res=\$$3
2457	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458$as_echo "$ac_res" >&6; }
2459  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461} # ac_fn_c_check_type
2462
2463# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2464# --------------------------------------------
2465# Tries to find the compile-time value of EXPR in a program that includes
2466# INCLUDES, setting VAR accordingly. Returns whether the value could be
2467# computed
2468ac_fn_c_compute_int ()
2469{
2470  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471  if test "$cross_compiling" = yes; then
2472    # Depending upon the size, compute the lo and hi bounds.
2473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h.  */
2475$4
2476int
2477main ()
2478{
2479static int test_array [1 - 2 * !(($2) >= 0)];
2480test_array [0] = 0;
2481return test_array [0];
2482
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487if ac_fn_c_try_compile "$LINENO"; then :
2488  ac_lo=0 ac_mid=0
2489  while :; do
2490    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491/* end confdefs.h.  */
2492$4
2493int
2494main ()
2495{
2496static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2497test_array [0] = 0;
2498return test_array [0];
2499
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504if ac_fn_c_try_compile "$LINENO"; then :
2505  ac_hi=$ac_mid; break
2506else
2507  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2508			if test $ac_lo -le $ac_mid; then
2509			  ac_lo= ac_hi=
2510			  break
2511			fi
2512			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2513fi
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515  done
2516else
2517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h.  */
2519$4
2520int
2521main ()
2522{
2523static int test_array [1 - 2 * !(($2) < 0)];
2524test_array [0] = 0;
2525return test_array [0];
2526
2527  ;
2528  return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532  ac_hi=-1 ac_mid=-1
2533  while :; do
2534    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535/* end confdefs.h.  */
2536$4
2537int
2538main ()
2539{
2540static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2541test_array [0] = 0;
2542return test_array [0];
2543
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548if ac_fn_c_try_compile "$LINENO"; then :
2549  ac_lo=$ac_mid; break
2550else
2551  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2552			if test $ac_mid -le $ac_hi; then
2553			  ac_lo= ac_hi=
2554			  break
2555			fi
2556			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2557fi
2558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559  done
2560else
2561  ac_lo= ac_hi=
2562fi
2563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564fi
2565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566# Binary search between lo and hi bounds.
2567while test "x$ac_lo" != "x$ac_hi"; do
2568  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570/* end confdefs.h.  */
2571$4
2572int
2573main ()
2574{
2575static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2576test_array [0] = 0;
2577return test_array [0];
2578
2579  ;
2580  return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584  ac_hi=$ac_mid
2585else
2586  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589done
2590case $ac_lo in #((
2591?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2592'') ac_retval=1 ;;
2593esac
2594  else
2595    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596/* end confdefs.h.  */
2597$4
2598static long int longval () { return $2; }
2599static unsigned long int ulongval () { return $2; }
2600#include <stdio.h>
2601#include <stdlib.h>
2602int
2603main ()
2604{
2605
2606  FILE *f = fopen ("conftest.val", "w");
2607  if (! f)
2608    return 1;
2609  if (($2) < 0)
2610    {
2611      long int i = longval ();
2612      if (i != ($2))
2613	return 1;
2614      fprintf (f, "%ld", i);
2615    }
2616  else
2617    {
2618      unsigned long int i = ulongval ();
2619      if (i != ($2))
2620	return 1;
2621      fprintf (f, "%lu", i);
2622    }
2623  /* Do not output a trailing newline, as this causes \r\n confusion
2624     on some platforms.  */
2625  return ferror (f) || fclose (f) != 0;
2626
2627  ;
2628  return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_run "$LINENO"; then :
2632  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2633else
2634  ac_retval=1
2635fi
2636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2637  conftest.$ac_objext conftest.beam conftest.$ac_ext
2638rm -f conftest.val
2639
2640  fi
2641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642  as_fn_set_status $ac_retval
2643
2644} # ac_fn_c_compute_int
2645cat >config.log <<_ACEOF
2646This file contains any messages produced by compilers while
2647running configure, to aid debugging if configure makes a mistake.
2648
2649It was created by Dovecot $as_me 2.3.17, which was
2650generated by GNU Autoconf 2.69.  Invocation command line was
2651
2652  $ $0 $@
2653
2654_ACEOF
2655exec 5>>config.log
2656{
2657cat <<_ASUNAME
2658## --------- ##
2659## Platform. ##
2660## --------- ##
2661
2662hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2663uname -m = `(uname -m) 2>/dev/null || echo unknown`
2664uname -r = `(uname -r) 2>/dev/null || echo unknown`
2665uname -s = `(uname -s) 2>/dev/null || echo unknown`
2666uname -v = `(uname -v) 2>/dev/null || echo unknown`
2667
2668/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2669/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2670
2671/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2672/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2673/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2674/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2675/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2676/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2677/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2678
2679_ASUNAME
2680
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    $as_echo "PATH: $as_dir"
2687  done
2688IFS=$as_save_IFS
2689
2690} >&5
2691
2692cat >&5 <<_ACEOF
2693
2694
2695## ----------- ##
2696## Core tests. ##
2697## ----------- ##
2698
2699_ACEOF
2700
2701
2702# Keep a trace of the command line.
2703# Strip out --no-create and --no-recursion so they do not pile up.
2704# Strip out --silent because we don't want to record it for future runs.
2705# Also quote any args containing shell meta-characters.
2706# Make two passes to allow for proper duplicate-argument suppression.
2707ac_configure_args=
2708ac_configure_args0=
2709ac_configure_args1=
2710ac_must_keep_next=false
2711for ac_pass in 1 2
2712do
2713  for ac_arg
2714  do
2715    case $ac_arg in
2716    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2717    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2718    | -silent | --silent | --silen | --sile | --sil)
2719      continue ;;
2720    *\'*)
2721      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2722    esac
2723    case $ac_pass in
2724    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2725    2)
2726      as_fn_append ac_configure_args1 " '$ac_arg'"
2727      if test $ac_must_keep_next = true; then
2728	ac_must_keep_next=false # Got value, back to normal.
2729      else
2730	case $ac_arg in
2731	  *=* | --config-cache | -C | -disable-* | --disable-* \
2732	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2733	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2734	  | -with-* | --with-* | -without-* | --without-* | --x)
2735	    case "$ac_configure_args0 " in
2736	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2737	    esac
2738	    ;;
2739	  -* ) ac_must_keep_next=true ;;
2740	esac
2741      fi
2742      as_fn_append ac_configure_args " '$ac_arg'"
2743      ;;
2744    esac
2745  done
2746done
2747{ ac_configure_args0=; unset ac_configure_args0;}
2748{ ac_configure_args1=; unset ac_configure_args1;}
2749
2750# When interrupted or exit'd, cleanup temporary files, and complete
2751# config.log.  We remove comments because anyway the quotes in there
2752# would cause problems or look ugly.
2753# WARNING: Use '\'' to represent an apostrophe within the trap.
2754# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2755trap 'exit_status=$?
2756  # Save into config.log some information that might help in debugging.
2757  {
2758    echo
2759
2760    $as_echo "## ---------------- ##
2761## Cache variables. ##
2762## ---------------- ##"
2763    echo
2764    # The following way of writing the cache mishandles newlines in values,
2765(
2766  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2767    eval ac_val=\$$ac_var
2768    case $ac_val in #(
2769    *${as_nl}*)
2770      case $ac_var in #(
2771      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2772$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2773      esac
2774      case $ac_var in #(
2775      _ | IFS | as_nl) ;; #(
2776      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2777      *) { eval $ac_var=; unset $ac_var;} ;;
2778      esac ;;
2779    esac
2780  done
2781  (set) 2>&1 |
2782    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2783    *${as_nl}ac_space=\ *)
2784      sed -n \
2785	"s/'\''/'\''\\\\'\'''\''/g;
2786	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2787      ;; #(
2788    *)
2789      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2790      ;;
2791    esac |
2792    sort
2793)
2794    echo
2795
2796    $as_echo "## ----------------- ##
2797## Output variables. ##
2798## ----------------- ##"
2799    echo
2800    for ac_var in $ac_subst_vars
2801    do
2802      eval ac_val=\$$ac_var
2803      case $ac_val in
2804      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2805      esac
2806      $as_echo "$ac_var='\''$ac_val'\''"
2807    done | sort
2808    echo
2809
2810    if test -n "$ac_subst_files"; then
2811      $as_echo "## ------------------- ##
2812## File substitutions. ##
2813## ------------------- ##"
2814      echo
2815      for ac_var in $ac_subst_files
2816      do
2817	eval ac_val=\$$ac_var
2818	case $ac_val in
2819	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820	esac
2821	$as_echo "$ac_var='\''$ac_val'\''"
2822      done | sort
2823      echo
2824    fi
2825
2826    if test -s confdefs.h; then
2827      $as_echo "## ----------- ##
2828## confdefs.h. ##
2829## ----------- ##"
2830      echo
2831      cat confdefs.h
2832      echo
2833    fi
2834    test "$ac_signal" != 0 &&
2835      $as_echo "$as_me: caught signal $ac_signal"
2836    $as_echo "$as_me: exit $exit_status"
2837  } >&5
2838  rm -f core *.core core.conftest.* &&
2839    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2840    exit $exit_status
2841' 0
2842for ac_signal in 1 2 13 15; do
2843  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2844done
2845ac_signal=0
2846
2847# confdefs.h avoids OS command line length limits that DEFS can exceed.
2848rm -f -r conftest* confdefs.h
2849
2850$as_echo "/* confdefs.h */" > confdefs.h
2851
2852# Predefined preprocessor variables.
2853
2854cat >>confdefs.h <<_ACEOF
2855#define PACKAGE_NAME "$PACKAGE_NAME"
2856_ACEOF
2857
2858cat >>confdefs.h <<_ACEOF
2859#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2860_ACEOF
2861
2862cat >>confdefs.h <<_ACEOF
2863#define PACKAGE_VERSION "$PACKAGE_VERSION"
2864_ACEOF
2865
2866cat >>confdefs.h <<_ACEOF
2867#define PACKAGE_STRING "$PACKAGE_STRING"
2868_ACEOF
2869
2870cat >>confdefs.h <<_ACEOF
2871#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2872_ACEOF
2873
2874cat >>confdefs.h <<_ACEOF
2875#define PACKAGE_URL "$PACKAGE_URL"
2876_ACEOF
2877
2878
2879# Let the site file select an alternate cache file if it wants to.
2880# Prefer an explicitly selected file to automatically selected ones.
2881ac_site_file1=NONE
2882ac_site_file2=NONE
2883if test -n "$CONFIG_SITE"; then
2884  # We do not want a PATH search for config.site.
2885  case $CONFIG_SITE in #((
2886    -*)  ac_site_file1=./$CONFIG_SITE;;
2887    */*) ac_site_file1=$CONFIG_SITE;;
2888    *)   ac_site_file1=./$CONFIG_SITE;;
2889  esac
2890elif test "x$prefix" != xNONE; then
2891  ac_site_file1=$prefix/share/config.site
2892  ac_site_file2=$prefix/etc/config.site
2893else
2894  ac_site_file1=$ac_default_prefix/share/config.site
2895  ac_site_file2=$ac_default_prefix/etc/config.site
2896fi
2897for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2898do
2899  test "x$ac_site_file" = xNONE && continue
2900  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2901    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2902$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2903    sed 's/^/| /' "$ac_site_file" >&5
2904    . "$ac_site_file" \
2905      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907as_fn_error $? "failed to load site script $ac_site_file
2908See \`config.log' for more details" "$LINENO" 5; }
2909  fi
2910done
2911
2912if test -r "$cache_file"; then
2913  # Some versions of bash will fail to source /dev/null (special files
2914  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2915  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2916    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2917$as_echo "$as_me: loading cache $cache_file" >&6;}
2918    case $cache_file in
2919      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2920      *)                      . "./$cache_file";;
2921    esac
2922  fi
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2925$as_echo "$as_me: creating cache $cache_file" >&6;}
2926  >$cache_file
2927fi
2928
2929# Check that the precious variables saved in the cache have kept the same
2930# value.
2931ac_cache_corrupted=false
2932for ac_var in $ac_precious_vars; do
2933  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2934  eval ac_new_set=\$ac_env_${ac_var}_set
2935  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2936  eval ac_new_val=\$ac_env_${ac_var}_value
2937  case $ac_old_set,$ac_new_set in
2938    set,)
2939      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2940$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2941      ac_cache_corrupted=: ;;
2942    ,set)
2943      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2944$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2945      ac_cache_corrupted=: ;;
2946    ,);;
2947    *)
2948      if test "x$ac_old_val" != "x$ac_new_val"; then
2949	# differences in whitespace do not lead to failure.
2950	ac_old_val_w=`echo x $ac_old_val`
2951	ac_new_val_w=`echo x $ac_new_val`
2952	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2953	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2954$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2955	  ac_cache_corrupted=:
2956	else
2957	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2958$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2959	  eval $ac_var=\$ac_old_val
2960	fi
2961	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2962$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2963	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2964$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2965      fi;;
2966  esac
2967  # Pass precious variables to config.status.
2968  if test "$ac_new_set" = set; then
2969    case $ac_new_val in
2970    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2971    *) ac_arg=$ac_var=$ac_new_val ;;
2972    esac
2973    case " $ac_configure_args " in
2974      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2975      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2976    esac
2977  fi
2978done
2979if $ac_cache_corrupted; then
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2983$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2984  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2985fi
2986## -------------------- ##
2987## Main body of script. ##
2988## -------------------- ##
2989
2990ac_ext=c
2991ac_cpp='$CPP $CPPFLAGS'
2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995
2996
2997
2998cat >>confdefs.h <<_ACEOF
2999#define DOVECOT_ABI_VERSION "2.3.ABIv17($PACKAGE_VERSION)"
3000_ACEOF
3001
3002
3003
3004
3005
3006am__api_version='1.16'
3007
3008ac_aux_dir=
3009for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3010  if test -f "$ac_dir/install-sh"; then
3011    ac_aux_dir=$ac_dir
3012    ac_install_sh="$ac_aux_dir/install-sh -c"
3013    break
3014  elif test -f "$ac_dir/install.sh"; then
3015    ac_aux_dir=$ac_dir
3016    ac_install_sh="$ac_aux_dir/install.sh -c"
3017    break
3018  elif test -f "$ac_dir/shtool"; then
3019    ac_aux_dir=$ac_dir
3020    ac_install_sh="$ac_aux_dir/shtool install -c"
3021    break
3022  fi
3023done
3024if test -z "$ac_aux_dir"; then
3025  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3026fi
3027
3028# These three variables are undocumented and unsupported,
3029# and are intended to be withdrawn in a future Autoconf release.
3030# They can cause serious problems if a builder's source tree is in a directory
3031# whose full name contains unusual characters.
3032ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3033ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3034ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3035
3036
3037# Find a good install program.  We prefer a C program (faster),
3038# so one script is as good as another.  But avoid the broken or
3039# incompatible versions:
3040# SysV /etc/install, /usr/sbin/install
3041# SunOS /usr/etc/install
3042# IRIX /sbin/install
3043# AIX /bin/install
3044# AmigaOS /C/install, which installs bootblocks on floppy discs
3045# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3046# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3047# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3048# OS/2's system install, which has a completely different semantic
3049# ./install, which can be erroneously created by make from ./install.sh.
3050# Reject install programs that cannot install multiple files.
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3052$as_echo_n "checking for a BSD-compatible install... " >&6; }
3053if test -z "$INSTALL"; then
3054if ${ac_cv_path_install+:} false; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060  IFS=$as_save_IFS
3061  test -z "$as_dir" && as_dir=.
3062    # Account for people who put trailing slashes in PATH elements.
3063case $as_dir/ in #((
3064  ./ | .// | /[cC]/* | \
3065  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3066  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3067  /usr/ucb/* ) ;;
3068  *)
3069    # OSF1 and SCO ODT 3.0 have their own names for install.
3070    # Don't use installbsd from OSF since it installs stuff as root
3071    # by default.
3072    for ac_prog in ginstall scoinst install; do
3073      for ac_exec_ext in '' $ac_executable_extensions; do
3074	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3075	  if test $ac_prog = install &&
3076	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077	    # AIX install.  It has an incompatible calling convention.
3078	    :
3079	  elif test $ac_prog = install &&
3080	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3081	    # program-specific install script used by HP pwplus--don't use.
3082	    :
3083	  else
3084	    rm -rf conftest.one conftest.two conftest.dir
3085	    echo one > conftest.one
3086	    echo two > conftest.two
3087	    mkdir conftest.dir
3088	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3089	      test -s conftest.one && test -s conftest.two &&
3090	      test -s conftest.dir/conftest.one &&
3091	      test -s conftest.dir/conftest.two
3092	    then
3093	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3094	      break 3
3095	    fi
3096	  fi
3097	fi
3098      done
3099    done
3100    ;;
3101esac
3102
3103  done
3104IFS=$as_save_IFS
3105
3106rm -rf conftest.one conftest.two conftest.dir
3107
3108fi
3109  if test "${ac_cv_path_install+set}" = set; then
3110    INSTALL=$ac_cv_path_install
3111  else
3112    # As a last resort, use the slow shell script.  Don't cache a
3113    # value for INSTALL within a source directory, because that will
3114    # break other packages using the cache if that directory is
3115    # removed, or if the value is a relative name.
3116    INSTALL=$ac_install_sh
3117  fi
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3120$as_echo "$INSTALL" >&6; }
3121
3122# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3123# It thinks the first close brace ends the variable substitution.
3124test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3125
3126test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3127
3128test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3129
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3131$as_echo_n "checking whether build environment is sane... " >&6; }
3132# Reject unsafe characters in $srcdir or the absolute working directory
3133# name.  Accept space and tab only in the latter.
3134am_lf='
3135'
3136case `pwd` in
3137  *[\\\"\#\$\&\'\`$am_lf]*)
3138    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3139esac
3140case $srcdir in
3141  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3142    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3143esac
3144
3145# Do 'set' in a subshell so we don't clobber the current shell's
3146# arguments.  Must try -L first in case configure is actually a
3147# symlink; some systems play weird games with the mod time of symlinks
3148# (eg FreeBSD returns the mod time of the symlink's containing
3149# directory).
3150if (
3151   am_has_slept=no
3152   for am_try in 1 2; do
3153     echo "timestamp, slept: $am_has_slept" > conftest.file
3154     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3155     if test "$*" = "X"; then
3156	# -L didn't work.
3157	set X `ls -t "$srcdir/configure" conftest.file`
3158     fi
3159     if test "$*" != "X $srcdir/configure conftest.file" \
3160	&& test "$*" != "X conftest.file $srcdir/configure"; then
3161
3162	# If neither matched, then we have a broken ls.  This can happen
3163	# if, for instance, CONFIG_SHELL is bash and it inherits a
3164	# broken ls alias from the environment.  This has actually
3165	# happened.  Such a system could not be considered "sane".
3166	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3167  alias in your environment" "$LINENO" 5
3168     fi
3169     if test "$2" = conftest.file || test $am_try -eq 2; then
3170       break
3171     fi
3172     # Just in case.
3173     sleep 1
3174     am_has_slept=yes
3175   done
3176   test "$2" = conftest.file
3177   )
3178then
3179   # Ok.
3180   :
3181else
3182   as_fn_error $? "newly created file is older than distributed files!
3183Check your system clock" "$LINENO" 5
3184fi
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186$as_echo "yes" >&6; }
3187# If we didn't sleep, we still need to ensure time stamps of config.status and
3188# generated files are strictly newer.
3189am_sleep_pid=
3190if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3191  ( sleep 1 ) &
3192  am_sleep_pid=$!
3193fi
3194
3195rm -f conftest.file
3196
3197test "$program_prefix" != NONE &&
3198  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3199# Use a double $ so make ignores it.
3200test "$program_suffix" != NONE &&
3201  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3202# Double any \ or $.
3203# By default was `s,x,x', remove it if useless.
3204ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3205program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3206
3207# Expand $ac_aux_dir to an absolute path.
3208am_aux_dir=`cd "$ac_aux_dir" && pwd`
3209
3210if test x"${MISSING+set}" != xset; then
3211  case $am_aux_dir in
3212  *\ * | *\	*)
3213    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3214  *)
3215    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3216  esac
3217fi
3218# Use eval to expand $SHELL
3219if eval "$MISSING --is-lightweight"; then
3220  am_missing_run="$MISSING "
3221else
3222  am_missing_run=
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3224$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3225fi
3226
3227if test x"${install_sh+set}" != xset; then
3228  case $am_aux_dir in
3229  *\ * | *\	*)
3230    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3231  *)
3232    install_sh="\${SHELL} $am_aux_dir/install-sh"
3233  esac
3234fi
3235
3236# Installed binaries are usually stripped using 'strip' when the user
3237# run "make install-strip".  However 'strip' might not be the right
3238# tool to use in cross-compilation environments, therefore Automake
3239# will honor the 'STRIP' environment variable to overrule this program.
3240if test "$cross_compiling" != no; then
3241  if test -n "$ac_tool_prefix"; then
3242  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3243set dummy ${ac_tool_prefix}strip; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if ${ac_cv_prog_STRIP+:} false; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$STRIP"; then
3250  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257    for ac_exec_ext in '' $ac_executable_extensions; do
3258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264  done
3265IFS=$as_save_IFS
3266
3267fi
3268fi
3269STRIP=$ac_cv_prog_STRIP
3270if test -n "$STRIP"; then
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3272$as_echo "$STRIP" >&6; }
3273else
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276fi
3277
3278
3279fi
3280if test -z "$ac_cv_prog_STRIP"; then
3281  ac_ct_STRIP=$STRIP
3282  # Extract the first word of "strip", so it can be a program name with args.
3283set dummy strip; ac_word=$2
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285$as_echo_n "checking for $ac_word... " >&6; }
3286if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  if test -n "$ac_ct_STRIP"; then
3290  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295  IFS=$as_save_IFS
3296  test -z "$as_dir" && as_dir=.
3297    for ac_exec_ext in '' $ac_executable_extensions; do
3298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299    ac_cv_prog_ac_ct_STRIP="strip"
3300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301    break 2
3302  fi
3303done
3304  done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3310if test -n "$ac_ct_STRIP"; then
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3312$as_echo "$ac_ct_STRIP" >&6; }
3313else
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316fi
3317
3318  if test "x$ac_ct_STRIP" = x; then
3319    STRIP=":"
3320  else
3321    case $cross_compiling:$ac_tool_warned in
3322yes:)
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325ac_tool_warned=yes ;;
3326esac
3327    STRIP=$ac_ct_STRIP
3328  fi
3329else
3330  STRIP="$ac_cv_prog_STRIP"
3331fi
3332
3333fi
3334INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3335
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3337$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3338if test -z "$MKDIR_P"; then
3339  if ${ac_cv_path_mkdir+:} false; then :
3340  $as_echo_n "(cached) " >&6
3341else
3342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3344do
3345  IFS=$as_save_IFS
3346  test -z "$as_dir" && as_dir=.
3347    for ac_prog in mkdir gmkdir; do
3348	 for ac_exec_ext in '' $ac_executable_extensions; do
3349	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3350	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3351	     'mkdir (GNU coreutils) '* | \
3352	     'mkdir (coreutils) '* | \
3353	     'mkdir (fileutils) '4.1*)
3354	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3355	       break 3;;
3356	   esac
3357	 done
3358       done
3359  done
3360IFS=$as_save_IFS
3361
3362fi
3363
3364  test -d ./--version && rmdir ./--version
3365  if test "${ac_cv_path_mkdir+set}" = set; then
3366    MKDIR_P="$ac_cv_path_mkdir -p"
3367  else
3368    # As a last resort, use the slow shell script.  Don't cache a
3369    # value for MKDIR_P within a source directory, because that will
3370    # break other packages using the cache if that directory is
3371    # removed, or if the value is a relative name.
3372    MKDIR_P="$ac_install_sh -d"
3373  fi
3374fi
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3376$as_echo "$MKDIR_P" >&6; }
3377
3378for ac_prog in gawk mawk nawk awk
3379do
3380  # Extract the first word of "$ac_prog", so it can be a program name with args.
3381set dummy $ac_prog; ac_word=$2
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
3384if ${ac_cv_prog_AWK+:} false; then :
3385  $as_echo_n "(cached) " >&6
3386else
3387  if test -n "$AWK"; then
3388  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393  IFS=$as_save_IFS
3394  test -z "$as_dir" && as_dir=.
3395    for ac_exec_ext in '' $ac_executable_extensions; do
3396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397    ac_cv_prog_AWK="$ac_prog"
3398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399    break 2
3400  fi
3401done
3402  done
3403IFS=$as_save_IFS
3404
3405fi
3406fi
3407AWK=$ac_cv_prog_AWK
3408if test -n "$AWK"; then
3409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3410$as_echo "$AWK" >&6; }
3411else
3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
3414fi
3415
3416
3417  test -n "$AWK" && break
3418done
3419
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3421$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3422set x ${MAKE-make}
3423ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3424if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3425  $as_echo_n "(cached) " >&6
3426else
3427  cat >conftest.make <<\_ACEOF
3428SHELL = /bin/sh
3429all:
3430	@echo '@@@%%%=$(MAKE)=@@@%%%'
3431_ACEOF
3432# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3433case `${MAKE-make} -f conftest.make 2>/dev/null` in
3434  *@@@%%%=?*=@@@%%%*)
3435    eval ac_cv_prog_make_${ac_make}_set=yes;;
3436  *)
3437    eval ac_cv_prog_make_${ac_make}_set=no;;
3438esac
3439rm -f conftest.make
3440fi
3441if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3443$as_echo "yes" >&6; }
3444  SET_MAKE=
3445else
3446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448  SET_MAKE="MAKE=${MAKE-make}"
3449fi
3450
3451rm -rf .tst 2>/dev/null
3452mkdir .tst 2>/dev/null
3453if test -d .tst; then
3454  am__leading_dot=.
3455else
3456  am__leading_dot=_
3457fi
3458rmdir .tst 2>/dev/null
3459
3460# Check whether --enable-silent-rules was given.
3461if test "${enable_silent_rules+set}" = set; then :
3462  enableval=$enable_silent_rules;
3463fi
3464
3465case $enable_silent_rules in # (((
3466  yes) AM_DEFAULT_VERBOSITY=0;;
3467   no) AM_DEFAULT_VERBOSITY=1;;
3468    *) AM_DEFAULT_VERBOSITY=1;;
3469esac
3470am_make=${MAKE-make}
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3472$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3473if ${am_cv_make_support_nested_variables+:} false; then :
3474  $as_echo_n "(cached) " >&6
3475else
3476  if $as_echo 'TRUE=$(BAR$(V))
3477BAR0=false
3478BAR1=true
3479V=1
3480am__doit:
3481	@$(TRUE)
3482.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3483  am_cv_make_support_nested_variables=yes
3484else
3485  am_cv_make_support_nested_variables=no
3486fi
3487fi
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3489$as_echo "$am_cv_make_support_nested_variables" >&6; }
3490if test $am_cv_make_support_nested_variables = yes; then
3491    AM_V='$(V)'
3492  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3493else
3494  AM_V=$AM_DEFAULT_VERBOSITY
3495  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3496fi
3497AM_BACKSLASH='\'
3498
3499if test "`cd $srcdir && pwd`" != "`pwd`"; then
3500  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3501  # is not polluted with repeated "-I."
3502  am__isrc=' -I$(srcdir)'
3503  # test to see if srcdir already configured
3504  if test -f $srcdir/config.status; then
3505    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3506  fi
3507fi
3508
3509# test whether we have cygpath
3510if test -z "$CYGPATH_W"; then
3511  if (cygpath --version) >/dev/null 2>/dev/null; then
3512    CYGPATH_W='cygpath -w'
3513  else
3514    CYGPATH_W=echo
3515  fi
3516fi
3517
3518
3519# Define the identity of the package.
3520 PACKAGE='dovecot'
3521 VERSION='2.3.17'
3522
3523
3524cat >>confdefs.h <<_ACEOF
3525#define PACKAGE "$PACKAGE"
3526_ACEOF
3527
3528
3529cat >>confdefs.h <<_ACEOF
3530#define VERSION "$VERSION"
3531_ACEOF
3532
3533# Some tools Automake needs.
3534
3535ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3536
3537
3538AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3539
3540
3541AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3542
3543
3544AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3545
3546
3547MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3548
3549# For better backward compatibility.  To be removed once Automake 1.9.x
3550# dies out for good.  For more background, see:
3551# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3552# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3553mkdir_p='$(MKDIR_P)'
3554
3555# We need awk for the "check" target (and possibly the TAP driver).  The
3556# system "awk" is bad on some platforms.
3557# Always define AMTAR for backward compatibility.  Yes, it's still used
3558# in the wild :-(  We should find a proper way to deprecate it ...
3559AMTAR='$${TAR-tar}'
3560
3561
3562# We'll loop over all known methods to create a tar archive until one works.
3563_am_tools='gnutar  pax cpio none'
3564
3565am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3566
3567
3568
3569
3570
3571
3572# POSIX will say in a future version that running "rm -f" with no argument
3573# is OK; and we want to be able to make that assumption in our Makefile
3574# recipes.  So use an aggressive probe to check that the usage we want is
3575# actually supported "in the wild" to an acceptable degree.
3576# See automake bug#10828.
3577# To make any issue more visible, cause the running configure to be aborted
3578# by default if the 'rm' program in use doesn't match our expectations; the
3579# user can still override this though.
3580if rm -f && rm -fr && rm -rf; then : OK; else
3581  cat >&2 <<'END'
3582Oops!
3583
3584Your 'rm' program seems unable to run without file operands specified
3585on the command line, even when the '-f' option is present.  This is contrary
3586to the behaviour of most rm programs out there, and not conforming with
3587the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3588
3589Please tell bug-automake@gnu.org about your system, including the value
3590of your $PATH and any error possibly output before this message.  This
3591can help us improve future automake versions.
3592
3593END
3594  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3595    echo 'Configuration will proceed anyway, since you have set the' >&2
3596    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3597    echo >&2
3598  else
3599    cat >&2 <<'END'
3600Aborting the configuration process, to ensure you take notice of the issue.
3601
3602You can download and install GNU coreutils to get an 'rm' implementation
3603that behaves properly: <https://www.gnu.org/software/coreutils/>.
3604
3605If you want to complete the configuration process using your problematic
3606'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3607to "yes", and re-run configure.
3608
3609END
3610    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3611  fi
3612fi
3613
3614
3615
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3617$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3618    # Check whether --enable-maintainer-mode was given.
3619if test "${enable_maintainer_mode+set}" = set; then :
3620  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3621else
3622  USE_MAINTAINER_MODE=no
3623fi
3624
3625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3626$as_echo "$USE_MAINTAINER_MODE" >&6; }
3627   if test $USE_MAINTAINER_MODE = yes; then
3628  MAINTAINER_MODE_TRUE=
3629  MAINTAINER_MODE_FALSE='#'
3630else
3631  MAINTAINER_MODE_TRUE='#'
3632  MAINTAINER_MODE_FALSE=
3633fi
3634
3635  MAINT=$MAINTAINER_MODE_TRUE
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3649	if test -n "$ac_tool_prefix"; then
3650  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3651set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653$as_echo_n "checking for $ac_word... " >&6; }
3654if ${ac_cv_path_PKG_CONFIG+:} false; then :
3655  $as_echo_n "(cached) " >&6
3656else
3657  case $PKG_CONFIG in
3658  [\\/]* | ?:[\\/]*)
3659  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3660  ;;
3661  *)
3662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665  IFS=$as_save_IFS
3666  test -z "$as_dir" && as_dir=.
3667    for ac_exec_ext in '' $ac_executable_extensions; do
3668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671    break 2
3672  fi
3673done
3674  done
3675IFS=$as_save_IFS
3676
3677  ;;
3678esac
3679fi
3680PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3681if test -n "$PKG_CONFIG"; then
3682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3683$as_echo "$PKG_CONFIG" >&6; }
3684else
3685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686$as_echo "no" >&6; }
3687fi
3688
3689
3690fi
3691if test -z "$ac_cv_path_PKG_CONFIG"; then
3692  ac_pt_PKG_CONFIG=$PKG_CONFIG
3693  # Extract the first word of "pkg-config", so it can be a program name with args.
3694set dummy pkg-config; ac_word=$2
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696$as_echo_n "checking for $ac_word... " >&6; }
3697if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  case $ac_pt_PKG_CONFIG in
3701  [\\/]* | ?:[\\/]*)
3702  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3703  ;;
3704  *)
3705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  test -z "$as_dir" && as_dir=.
3710    for ac_exec_ext in '' $ac_executable_extensions; do
3711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714    break 2
3715  fi
3716done
3717  done
3718IFS=$as_save_IFS
3719
3720  ;;
3721esac
3722fi
3723ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3724if test -n "$ac_pt_PKG_CONFIG"; then
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3726$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3727else
3728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729$as_echo "no" >&6; }
3730fi
3731
3732  if test "x$ac_pt_PKG_CONFIG" = x; then
3733    PKG_CONFIG=""
3734  else
3735    case $cross_compiling:$ac_tool_warned in
3736yes:)
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739ac_tool_warned=yes ;;
3740esac
3741    PKG_CONFIG=$ac_pt_PKG_CONFIG
3742  fi
3743else
3744  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3745fi
3746
3747fi
3748if test -n "$PKG_CONFIG"; then
3749	_pkg_min_version=0.9.0
3750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3751$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3752	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3754$as_echo "yes" >&6; }
3755	else
3756		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757$as_echo "no" >&6; }
3758		PKG_CONFIG=""
3759	fi
3760fi
3761
3762ACLOCAL_AMFLAGS='-I $(top_srcdir)/m4'
3763
3764
3765# Check whether --enable-devel-checks was given.
3766if test "${enable_devel_checks+set}" = set; then :
3767  enableval=$enable_devel_checks; if test x$enableval = xyes; then
3768
3769$as_echo "#define DEBUG /**/" >>confdefs.h
3770
3771		want_devel_checks=yes
3772	fi
3773fi
3774
3775
3776# Check whether --enable-static-checker was given.
3777if test "${enable_static_checker+set}" = set; then :
3778  enableval=$enable_static_checker; if test x$enableval = xyes; then
3779
3780$as_echo "#define STATIC_CHECKER /**/" >>confdefs.h
3781
3782	fi
3783fi
3784
3785
3786# Check whether --enable-asserts was given.
3787if test "${enable_asserts+set}" = set; then :
3788  enableval=$enable_asserts; if test x$enableval = xno; then
3789
3790$as_echo "#define DISABLE_ASSERTS /**/" >>confdefs.h
3791
3792	fi
3793fi
3794
3795
3796
3797# Check whether --with-shared-libs was given.
3798if test "${with_shared_libs+set}" = set; then :
3799  withval=$with_shared_libs; want_shared_libs=$withval
3800else
3801  want_shared_libs=yes
3802fi
3803
3804 if test "$want_shared_libs" = "yes"; then
3805  BUILD_SHARED_LIBS_TRUE=
3806  BUILD_SHARED_LIBS_FALSE='#'
3807else
3808  BUILD_SHARED_LIBS_TRUE='#'
3809  BUILD_SHARED_LIBS_FALSE=
3810fi
3811
3812
3813
3814# Check whether --with-mem-align was given.
3815if test "${with_mem_align+set}" = set; then :
3816  withval=$with_mem_align; mem_align=$withval
3817else
3818  mem_align=8
3819fi
3820
3821
3822
3823# Check whether --with-ioloop was given.
3824if test "${with_ioloop+set}" = set; then :
3825  withval=$with_ioloop; ioloop=$withval
3826else
3827  ioloop=best
3828fi
3829
3830
3831
3832# Check whether --with-notify was given.
3833if test "${with_notify+set}" = set; then :
3834  withval=$with_notify; notify=$withval
3835else
3836  notify=
3837fi
3838
3839
3840
3841# Check whether --with-nss was given.
3842if test "${with_nss+set}" = set; then :
3843  withval=$with_nss;
3844  want=want_`echo nss|sed s/-/_/g`
3845  if test $withval = yes || test $withval = no || test $withval = auto; then
3846    eval $want=$withval
3847  elif test $withval = plugin; then
3848    if test "" = plugin; then
3849      eval $want=plugin
3850    else
3851      as_fn_error $? "--with-nss=plugin not supported" "$LINENO" 5
3852    fi
3853  elif `echo $withval|grep '^/' >/dev/null`; then
3854    as_fn_error $? "--with-nss=path not supported. You may want to use instead:
3855CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-nss" "$LINENO" 5
3856  else
3857    as_fn_error $? "--with-nss: Unknown value: $withval" "$LINENO" 5
3858  fi
3859
3860else
3861  want_nss=auto
3862fi
3863
3864
3865
3866# Check whether --with-shadow was given.
3867if test "${with_shadow+set}" = set; then :
3868  withval=$with_shadow;
3869  want=want_`echo shadow|sed s/-/_/g`
3870  if test $withval = yes || test $withval = no || test $withval = auto; then
3871    eval $want=$withval
3872  elif test $withval = plugin; then
3873    if test "" = plugin; then
3874      eval $want=plugin
3875    else
3876      as_fn_error $? "--with-shadow=plugin not supported" "$LINENO" 5
3877    fi
3878  elif `echo $withval|grep '^/' >/dev/null`; then
3879    as_fn_error $? "--with-shadow=path not supported. You may want to use instead:
3880CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-shadow" "$LINENO" 5
3881  else
3882    as_fn_error $? "--with-shadow: Unknown value: $withval" "$LINENO" 5
3883  fi
3884
3885else
3886  want_shadow=auto
3887fi
3888
3889
3890
3891# Check whether --with-pam was given.
3892if test "${with_pam+set}" = set; then :
3893  withval=$with_pam;
3894  want=want_`echo pam|sed s/-/_/g`
3895  if test $withval = yes || test $withval = no || test $withval = auto; then
3896    eval $want=$withval
3897  elif test $withval = plugin; then
3898    if test "" = plugin; then
3899      eval $want=plugin
3900    else
3901      as_fn_error $? "--with-pam=plugin not supported" "$LINENO" 5
3902    fi
3903  elif `echo $withval|grep '^/' >/dev/null`; then
3904    as_fn_error $? "--with-pam=path not supported. You may want to use instead:
3905CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-pam" "$LINENO" 5
3906  else
3907    as_fn_error $? "--with-pam: Unknown value: $withval" "$LINENO" 5
3908  fi
3909
3910else
3911  want_pam=auto
3912fi
3913
3914
3915
3916# Check whether --with-bsdauth was given.
3917if test "${with_bsdauth+set}" = set; then :
3918  withval=$with_bsdauth;
3919  want=want_`echo bsdauth|sed s/-/_/g`
3920  if test $withval = yes || test $withval = no || test $withval = auto; then
3921    eval $want=$withval
3922  elif test $withval = plugin; then
3923    if test "" = plugin; then
3924      eval $want=plugin
3925    else
3926      as_fn_error $? "--with-bsdauth=plugin not supported" "$LINENO" 5
3927    fi
3928  elif `echo $withval|grep '^/' >/dev/null`; then
3929    as_fn_error $? "--with-bsdauth=path not supported. You may want to use instead:
3930CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-bsdauth" "$LINENO" 5
3931  else
3932    as_fn_error $? "--with-bsdauth: Unknown value: $withval" "$LINENO" 5
3933  fi
3934
3935else
3936  want_bsdauth=auto
3937fi
3938
3939
3940
3941# Check whether --with-gssapi was given.
3942if test "${with_gssapi+set}" = set; then :
3943  withval=$with_gssapi;
3944  want=want_`echo gssapi|sed s/-/_/g`
3945  if test $withval = yes || test $withval = no || test $withval = auto; then
3946    eval $want=$withval
3947  elif test $withval = plugin; then
3948    if test "plugin" = plugin; then
3949      eval $want=plugin
3950    else
3951      as_fn_error $? "--with-gssapi=plugin not supported" "$LINENO" 5
3952    fi
3953  elif `echo $withval|grep '^/' >/dev/null`; then
3954    as_fn_error $? "--with-gssapi=path not supported. You may want to use instead:
3955CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-gssapi" "$LINENO" 5
3956  else
3957    as_fn_error $? "--with-gssapi: Unknown value: $withval" "$LINENO" 5
3958  fi
3959
3960else
3961  want_gssapi=no
3962fi
3963
3964
3965
3966# Check whether --with-ldap was given.
3967if test "${with_ldap+set}" = set; then :
3968  withval=$with_ldap;
3969  want=want_`echo ldap|sed s/-/_/g`
3970  if test $withval = yes || test $withval = no || test $withval = auto; then
3971    eval $want=$withval
3972  elif test $withval = plugin; then
3973    if test "plugin" = plugin; then
3974      eval $want=plugin
3975    else
3976      as_fn_error $? "--with-ldap=plugin not supported" "$LINENO" 5
3977    fi
3978  elif `echo $withval|grep '^/' >/dev/null`; then
3979    as_fn_error $? "--with-ldap=path not supported. You may want to use instead:
3980CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-ldap" "$LINENO" 5
3981  else
3982    as_fn_error $? "--with-ldap: Unknown value: $withval" "$LINENO" 5
3983  fi
3984
3985else
3986  want_ldap=no
3987fi
3988
3989
3990
3991# Check whether --with-libunwind was given.
3992if test "${with_libunwind+set}" = set; then :
3993  withval=$with_libunwind;
3994  want=want_`echo libunwind|sed s/-/_/g`
3995  if test $withval = yes || test $withval = no || test $withval = auto; then
3996    eval $want=$withval
3997  elif test $withval = plugin; then
3998    if test "" = plugin; then
3999      eval $want=plugin
4000    else
4001      as_fn_error $? "--with-libunwind=plugin not supported" "$LINENO" 5
4002    fi
4003  elif `echo $withval|grep '^/' >/dev/null`; then
4004    as_fn_error $? "--with-libunwind=path not supported. You may want to use instead:
4005CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-libunwind" "$LINENO" 5
4006  else
4007    as_fn_error $? "--with-libunwind: Unknown value: $withval" "$LINENO" 5
4008  fi
4009
4010else
4011  want_libunwind=auto
4012fi
4013
4014
4015# Berkeley DB support is more or less broken. Disabled for now.
4016#AC_ARG_WITH(db,
4017#AS_HELP_STRING([--with-db], [Build with Berkeley DB support]),
4018#  TEST_WITH(db, $withval),
4019#  want_db=no)
4020want_db=no
4021
4022
4023# Check whether --with-cdb was given.
4024if test "${with_cdb+set}" = set; then :
4025  withval=$with_cdb;
4026  want=want_`echo cdb|sed s/-/_/g`
4027  if test $withval = yes || test $withval = no || test $withval = auto; then
4028    eval $want=$withval
4029  elif test $withval = plugin; then
4030    if test "" = plugin; then
4031      eval $want=plugin
4032    else
4033      as_fn_error $? "--with-cdb=plugin not supported" "$LINENO" 5
4034    fi
4035  elif `echo $withval|grep '^/' >/dev/null`; then
4036    as_fn_error $? "--with-cdb=path not supported. You may want to use instead:
4037CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-cdb" "$LINENO" 5
4038  else
4039    as_fn_error $? "--with-cdb: Unknown value: $withval" "$LINENO" 5
4040  fi
4041
4042else
4043  want_cdb=no
4044fi
4045
4046
4047
4048# Check whether --with-sql was given.
4049if test "${with_sql+set}" = set; then :
4050  withval=$with_sql;
4051  want=want_`echo sql|sed s/-/_/g`
4052  if test $withval = yes || test $withval = no || test $withval = auto; then
4053    eval $want=$withval
4054  elif test $withval = plugin; then
4055    if test "plugin" = plugin; then
4056      eval $want=plugin
4057    else
4058      as_fn_error $? "--with-sql=plugin not supported" "$LINENO" 5
4059    fi
4060  elif `echo $withval|grep '^/' >/dev/null`; then
4061    as_fn_error $? "--with-sql=path not supported. You may want to use instead:
4062CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-sql" "$LINENO" 5
4063  else
4064    as_fn_error $? "--with-sql: Unknown value: $withval" "$LINENO" 5
4065  fi
4066
4067else
4068  want_sql=no
4069fi
4070
4071
4072
4073# Check whether --with-pgsql was given.
4074if test "${with_pgsql+set}" = set; then :
4075  withval=$with_pgsql;
4076  want=want_`echo pgsql|sed s/-/_/g`
4077  if test $withval = yes || test $withval = no || test $withval = auto; then
4078    eval $want=$withval
4079  elif test $withval = plugin; then
4080    if test "" = plugin; then
4081      eval $want=plugin
4082    else
4083      as_fn_error $? "--with-pgsql=plugin not supported" "$LINENO" 5
4084    fi
4085  elif `echo $withval|grep '^/' >/dev/null`; then
4086    as_fn_error $? "--with-pgsql=path not supported. You may want to use instead:
4087CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-pgsql" "$LINENO" 5
4088  else
4089    as_fn_error $? "--with-pgsql: Unknown value: $withval" "$LINENO" 5
4090  fi
4091
4092else
4093  want_pgsql=no
4094fi
4095
4096
4097
4098# Check whether --with-mysql was given.
4099if test "${with_mysql+set}" = set; then :
4100  withval=$with_mysql;
4101  want=want_`echo mysql|sed s/-/_/g`
4102  if test $withval = yes || test $withval = no || test $withval = auto; then
4103    eval $want=$withval
4104  elif test $withval = plugin; then
4105    if test "" = plugin; then
4106      eval $want=plugin
4107    else
4108      as_fn_error $? "--with-mysql=plugin not supported" "$LINENO" 5
4109    fi
4110  elif `echo $withval|grep '^/' >/dev/null`; then
4111    as_fn_error $? "--with-mysql=path not supported. You may want to use instead:
4112CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-mysql" "$LINENO" 5
4113  else
4114    as_fn_error $? "--with-mysql: Unknown value: $withval" "$LINENO" 5
4115  fi
4116
4117else
4118  want_mysql=no
4119fi
4120
4121
4122
4123# Check whether --with-sqlite was given.
4124if test "${with_sqlite+set}" = set; then :
4125  withval=$with_sqlite;
4126  want=want_`echo sqlite|sed s/-/_/g`
4127  if test $withval = yes || test $withval = no || test $withval = auto; then
4128    eval $want=$withval
4129  elif test $withval = plugin; then
4130    if test "" = plugin; then
4131      eval $want=plugin
4132    else
4133      as_fn_error $? "--with-sqlite=plugin not supported" "$LINENO" 5
4134    fi
4135  elif `echo $withval|grep '^/' >/dev/null`; then
4136    as_fn_error $? "--with-sqlite=path not supported. You may want to use instead:
4137CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-sqlite" "$LINENO" 5
4138  else
4139    as_fn_error $? "--with-sqlite: Unknown value: $withval" "$LINENO" 5
4140  fi
4141
4142else
4143  want_sqlite=no
4144fi
4145
4146
4147
4148# Check whether --with-cassandra was given.
4149if test "${with_cassandra+set}" = set; then :
4150  withval=$with_cassandra;
4151  want=want_`echo cassandra|sed s/-/_/g`
4152  if test $withval = yes || test $withval = no || test $withval = auto; then
4153    eval $want=$withval
4154  elif test $withval = plugin; then
4155    if test "" = plugin; then
4156      eval $want=plugin
4157    else
4158      as_fn_error $? "--with-cassandra=plugin not supported" "$LINENO" 5
4159    fi
4160  elif `echo $withval|grep '^/' >/dev/null`; then
4161    as_fn_error $? "--with-cassandra=path not supported. You may want to use instead:
4162CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-cassandra" "$LINENO" 5
4163  else
4164    as_fn_error $? "--with-cassandra: Unknown value: $withval" "$LINENO" 5
4165  fi
4166
4167else
4168  want_cassandra=no
4169fi
4170
4171
4172
4173# Check whether --with-lucene was given.
4174if test "${with_lucene+set}" = set; then :
4175  withval=$with_lucene;
4176  want=want_`echo lucene|sed s/-/_/g`
4177  if test $withval = yes || test $withval = no || test $withval = auto; then
4178    eval $want=$withval
4179  elif test $withval = plugin; then
4180    if test "" = plugin; then
4181      eval $want=plugin
4182    else
4183      as_fn_error $? "--with-lucene=plugin not supported" "$LINENO" 5
4184    fi
4185  elif `echo $withval|grep '^/' >/dev/null`; then
4186    as_fn_error $? "--with-lucene=path not supported. You may want to use instead:
4187CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-lucene" "$LINENO" 5
4188  else
4189    as_fn_error $? "--with-lucene: Unknown value: $withval" "$LINENO" 5
4190  fi
4191
4192else
4193  want_lucene=no
4194fi
4195
4196 if test "$want_lucene" = "yes"; then
4197  BUILD_LUCENE_TRUE=
4198  BUILD_LUCENE_FALSE='#'
4199else
4200  BUILD_LUCENE_TRUE='#'
4201  BUILD_LUCENE_FALSE=
4202fi
4203
4204
4205
4206# Check whether --with-stemmer was given.
4207if test "${with_stemmer+set}" = set; then :
4208  withval=$with_stemmer;
4209  want=want_`echo stemmer|sed s/-/_/g`
4210  if test $withval = yes || test $withval = no || test $withval = auto; then
4211    eval $want=$withval
4212  elif test $withval = plugin; then
4213    if test "" = plugin; then
4214      eval $want=plugin
4215    else
4216      as_fn_error $? "--with-stemmer=plugin not supported" "$LINENO" 5
4217    fi
4218  elif `echo $withval|grep '^/' >/dev/null`; then
4219    as_fn_error $? "--with-stemmer=path not supported. You may want to use instead:
4220CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-stemmer" "$LINENO" 5
4221  else
4222    as_fn_error $? "--with-stemmer: Unknown value: $withval" "$LINENO" 5
4223  fi
4224
4225else
4226  want_stemmer=auto
4227fi
4228
4229
4230
4231# Check whether --with-textcat was given.
4232if test "${with_textcat+set}" = set; then :
4233  withval=$with_textcat;
4234  want=want_`echo textcat|sed s/-/_/g`
4235  if test $withval = yes || test $withval = no || test $withval = auto; then
4236    eval $want=$withval
4237  elif test $withval = plugin; then
4238    if test "" = plugin; then
4239      eval $want=plugin
4240    else
4241      as_fn_error $? "--with-textcat=plugin not supported" "$LINENO" 5
4242    fi
4243  elif `echo $withval|grep '^/' >/dev/null`; then
4244    as_fn_error $? "--with-textcat=path not supported. You may want to use instead:
4245CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-textcat" "$LINENO" 5
4246  else
4247    as_fn_error $? "--with-textcat: Unknown value: $withval" "$LINENO" 5
4248  fi
4249
4250else
4251  want_textcat=auto
4252fi
4253
4254
4255
4256# Check whether --with-icu was given.
4257if test "${with_icu+set}" = set; then :
4258  withval=$with_icu; want_icu=$withval
4259else
4260  want_icu=auto
4261fi
4262
4263
4264
4265# Check whether --with-solr was given.
4266if test "${with_solr+set}" = set; then :
4267  withval=$with_solr;
4268  want=want_`echo solr|sed s/-/_/g`
4269  if test $withval = yes || test $withval = no || test $withval = auto; then
4270    eval $want=$withval
4271  elif test $withval = plugin; then
4272    if test "" = plugin; then
4273      eval $want=plugin
4274    else
4275      as_fn_error $? "--with-solr=plugin not supported" "$LINENO" 5
4276    fi
4277  elif `echo $withval|grep '^/' >/dev/null`; then
4278    as_fn_error $? "--with-solr=path not supported. You may want to use instead:
4279CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-solr" "$LINENO" 5
4280  else
4281    as_fn_error $? "--with-solr: Unknown value: $withval" "$LINENO" 5
4282  fi
4283
4284else
4285  want_solr=no
4286fi
4287
4288
4289
4290# Check whether --with-sodium was given.
4291if test "${with_sodium+set}" = set; then :
4292  withval=$with_sodium;
4293  want=want_`echo sodium|sed s/-/_/g`
4294  if test $withval = yes || test $withval = no || test $withval = auto; then
4295    eval $want=$withval
4296  elif test $withval = plugin; then
4297    if test "" = plugin; then
4298      eval $want=plugin
4299    else
4300      as_fn_error $? "--with-sodium=plugin not supported" "$LINENO" 5
4301    fi
4302  elif `echo $withval|grep '^/' >/dev/null`; then
4303    as_fn_error $? "--with-sodium=path not supported. You may want to use instead:
4304CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-sodium" "$LINENO" 5
4305  else
4306    as_fn_error $? "--with-sodium: Unknown value: $withval" "$LINENO" 5
4307  fi
4308
4309else
4310  want_sodium=auto
4311fi
4312
4313
4314
4315# Check whether --with-zlib was given.
4316if test "${with_zlib+set}" = set; then :
4317  withval=$with_zlib;
4318  want=want_`echo zlib|sed s/-/_/g`
4319  if test $withval = yes || test $withval = no || test $withval = auto; then
4320    eval $want=$withval
4321  elif test $withval = plugin; then
4322    if test "" = plugin; then
4323      eval $want=plugin
4324    else
4325      as_fn_error $? "--with-zlib=plugin not supported" "$LINENO" 5
4326    fi
4327  elif `echo $withval|grep '^/' >/dev/null`; then
4328    as_fn_error $? "--with-zlib=path not supported. You may want to use instead:
4329CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-zlib" "$LINENO" 5
4330  else
4331    as_fn_error $? "--with-zlib: Unknown value: $withval" "$LINENO" 5
4332  fi
4333
4334else
4335  want_zlib=auto
4336fi
4337
4338
4339
4340# Check whether --with-bzlib was given.
4341if test "${with_bzlib+set}" = set; then :
4342  withval=$with_bzlib;
4343  want=want_`echo bzlib|sed s/-/_/g`
4344  if test $withval = yes || test $withval = no || test $withval = auto; then
4345    eval $want=$withval
4346  elif test $withval = plugin; then
4347    if test "" = plugin; then
4348      eval $want=plugin
4349    else
4350      as_fn_error $? "--with-bzlib=plugin not supported" "$LINENO" 5
4351    fi
4352  elif `echo $withval|grep '^/' >/dev/null`; then
4353    as_fn_error $? "--with-bzlib=path not supported. You may want to use instead:
4354CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-bzlib" "$LINENO" 5
4355  else
4356    as_fn_error $? "--with-bzlib: Unknown value: $withval" "$LINENO" 5
4357  fi
4358
4359else
4360  want_bzlib=auto
4361fi
4362
4363
4364
4365# Check whether --with-lzma was given.
4366if test "${with_lzma+set}" = set; then :
4367  withval=$with_lzma;
4368  want=want_`echo lzma|sed s/-/_/g`
4369  if test $withval = yes || test $withval = no || test $withval = auto; then
4370    eval $want=$withval
4371  elif test $withval = plugin; then
4372    if test "" = plugin; then
4373      eval $want=plugin
4374    else
4375      as_fn_error $? "--with-lzma=plugin not supported" "$LINENO" 5
4376    fi
4377  elif `echo $withval|grep '^/' >/dev/null`; then
4378    as_fn_error $? "--with-lzma=path not supported. You may want to use instead:
4379CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-lzma" "$LINENO" 5
4380  else
4381    as_fn_error $? "--with-lzma: Unknown value: $withval" "$LINENO" 5
4382  fi
4383
4384else
4385  want_lzma=auto
4386fi
4387
4388
4389
4390# Check whether --with-lz4 was given.
4391if test "${with_lz4+set}" = set; then :
4392  withval=$with_lz4;
4393  want=want_`echo lz4|sed s/-/_/g`
4394  if test $withval = yes || test $withval = no || test $withval = auto; then
4395    eval $want=$withval
4396  elif test $withval = plugin; then
4397    if test "" = plugin; then
4398      eval $want=plugin
4399    else
4400      as_fn_error $? "--with-lz4=plugin not supported" "$LINENO" 5
4401    fi
4402  elif `echo $withval|grep '^/' >/dev/null`; then
4403    as_fn_error $? "--with-lz4=path not supported. You may want to use instead:
4404CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-lz4" "$LINENO" 5
4405  else
4406    as_fn_error $? "--with-lz4: Unknown value: $withval" "$LINENO" 5
4407  fi
4408
4409else
4410  want_lz4=auto
4411fi
4412
4413
4414
4415# Check whether --with-zstd was given.
4416if test "${with_zstd+set}" = set; then :
4417  withval=$with_zstd;
4418  want=want_`echo zstd|sed s/-/_/g`
4419  if test $withval = yes || test $withval = no || test $withval = auto; then
4420    eval $want=$withval
4421  elif test $withval = plugin; then
4422    if test "" = plugin; then
4423      eval $want=plugin
4424    else
4425      as_fn_error $? "--with-zstd=plugin not supported" "$LINENO" 5
4426    fi
4427  elif `echo $withval|grep '^/' >/dev/null`; then
4428    as_fn_error $? "--with-zstd=path not supported. You may want to use instead:
4429CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-zstd" "$LINENO" 5
4430  else
4431    as_fn_error $? "--with-zstd: Unknown value: $withval" "$LINENO" 5
4432  fi
4433
4434else
4435  want_zstd=auto
4436fi
4437
4438
4439
4440# Check whether --with-libcap was given.
4441if test "${with_libcap+set}" = set; then :
4442  withval=$with_libcap;
4443  want=want_`echo libcap|sed s/-/_/g`
4444  if test $withval = yes || test $withval = no || test $withval = auto; then
4445    eval $want=$withval
4446  elif test $withval = plugin; then
4447    if test "" = plugin; then
4448      eval $want=plugin
4449    else
4450      as_fn_error $? "--with-libcap=plugin not supported" "$LINENO" 5
4451    fi
4452  elif `echo $withval|grep '^/' >/dev/null`; then
4453    as_fn_error $? "--with-libcap=path not supported. You may want to use instead:
4454CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-libcap" "$LINENO" 5
4455  else
4456    as_fn_error $? "--with-libcap: Unknown value: $withval" "$LINENO" 5
4457  fi
4458
4459else
4460  want_libcap=auto
4461fi
4462
4463
4464
4465# Check whether --with-libwrap was given.
4466if test "${with_libwrap+set}" = set; then :
4467  withval=$with_libwrap;
4468  want=want_`echo libwrap|sed s/-/_/g`
4469  if test $withval = yes || test $withval = no || test $withval = auto; then
4470    eval $want=$withval
4471  elif test $withval = plugin; then
4472    if test "" = plugin; then
4473      eval $want=plugin
4474    else
4475      as_fn_error $? "--with-libwrap=plugin not supported" "$LINENO" 5
4476    fi
4477  elif `echo $withval|grep '^/' >/dev/null`; then
4478    as_fn_error $? "--with-libwrap=path not supported. You may want to use instead:
4479CPPFLAGS=-I$withval/include LDFLAGS=-L$withval/lib ./configure --with-libwrap" "$LINENO" 5
4480  else
4481    as_fn_error $? "--with-libwrap: Unknown value: $withval" "$LINENO" 5
4482  fi
4483
4484else
4485  want_libwrap=no
4486fi
4487
4488
4489
4490# Check whether --with-ssl was given.
4491if test "${with_ssl+set}" = set; then :
4492  withval=$with_ssl; if test x$withval = xno; then
4493		want_gnutls=no
4494		want_openssl=no
4495	elif test x$withval = xgnutls; then
4496		as_fn_error $? "GNUTLS support is broken currently" "$LINENO" 5
4497		want_gnutls=yes
4498		want_openssl=no
4499	elif test x$withval = xopenssl; then
4500		want_gnutls=no
4501		want_openssl=yes
4502	elif test x$withval = xyes; then
4503		want_gnutls=no
4504		want_openssl=yes
4505	else
4506		as_fn_error $? "--with-ssl: Invalid value: $withval" "$LINENO" 5
4507	fi
4508else
4509
4510		want_gnutls=no
4511		want_openssl=auto
4512
4513fi
4514
4515
4516
4517# Check whether --with-ssldir was given.
4518if test "${with_ssldir+set}" = set; then :
4519  withval=$with_ssldir; ssldir="$withval"
4520else
4521  ssldir=/etc/ssl
4522
4523fi
4524
4525
4526
4527
4528# Check whether --with-rundir was given.
4529if test "${with_rundir+set}" = set; then :
4530  withval=$with_rundir; rundir="$withval"
4531else
4532  rundir=$localstatedir/run/$PACKAGE
4533
4534fi
4535
4536
4537
4538
4539# Check whether --with-statedir was given.
4540if test "${with_statedir+set}" = set; then :
4541  withval=$with_statedir; statedir="$withval"
4542else
4543  statedir=$localstatedir/lib/$PACKAGE
4544
4545fi
4546
4547
4548
4549
4550# Check whether --with-systemd was given.
4551if test "${with_systemd+set}" = set; then :
4552  withval=$with_systemd; want_systemd="$withval"
4553else
4554  want_systemd="auto"
4555
4556fi
4557
4558
4559
4560  systemdservicetype='simple'
4561  have_libsystemd=no
4562
4563  if test "$want_systemd" != "no"; then :
4564
4565
4566pkg_failed=no
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
4568$as_echo_n "checking for SYSTEMD... " >&6; }
4569
4570if test -n "$SYSTEMD_CFLAGS"; then
4571    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
4572 elif test -n "$PKG_CONFIG"; then
4573    if test -n "$PKG_CONFIG" && \
4574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
4575  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
4576  ac_status=$?
4577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578  test $ac_status = 0; }; then
4579  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
4580		      test "x$?" != "x0" && pkg_failed=yes
4581else
4582  pkg_failed=yes
4583fi
4584 else
4585    pkg_failed=untried
4586fi
4587if test -n "$SYSTEMD_LIBS"; then
4588    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
4589 elif test -n "$PKG_CONFIG"; then
4590    if test -n "$PKG_CONFIG" && \
4591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
4592  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
4593  ac_status=$?
4594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595  test $ac_status = 0; }; then
4596  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
4597		      test "x$?" != "x0" && pkg_failed=yes
4598else
4599  pkg_failed=yes
4600fi
4601 else
4602    pkg_failed=untried
4603fi
4604
4605
4606
4607if test $pkg_failed = yes; then
4608   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609$as_echo "no" >&6; }
4610
4611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4612        _pkg_short_errors_supported=yes
4613else
4614        _pkg_short_errors_supported=no
4615fi
4616        if test $_pkg_short_errors_supported = yes; then
4617	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
4618        else
4619	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
4620        fi
4621	# Put the nasty error message in config.log where it belongs
4622	echo "$SYSTEMD_PKG_ERRORS" >&5
4623
4624	if test "$want_systemd" = "yes"; then :
4625
4626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsystemd not found - full integration disabled" >&5
4627$as_echo "$as_me: WARNING: libsystemd not found - full integration disabled" >&2;}
4628
4629fi
4630
4631elif test $pkg_failed = untried; then
4632     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633$as_echo "no" >&6; }
4634	if test "$want_systemd" = "yes"; then :
4635
4636         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsystemd not found - full integration disabled" >&5
4637$as_echo "$as_me: WARNING: libsystemd not found - full integration disabled" >&2;}
4638
4639fi
4640
4641else
4642	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
4643	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
4644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645$as_echo "yes" >&6; }
4646
4647
4648$as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
4649
4650      systemdservicetype='notify'
4651      have_libsystemd=yes
4652
4653fi
4654        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd unit directory" >&5
4655$as_echo_n "checking for systemd unit directory... " >&6; }
4656    if test "$systemdsystemunitdir" = ""; then :
4657
4658
4659if test -n "$systemdsystemunitdir"; then
4660    pkg_cv_systemdsystemunitdir="$systemdsystemunitdir"
4661 elif test -n "$PKG_CONFIG"; then
4662    if test -n "$PKG_CONFIG" && \
4663    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
4664  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
4665  ac_status=$?
4666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667  test $ac_status = 0; }; then
4668  pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
4669		      test "x$?" != "x0" && pkg_failed=yes
4670else
4671  pkg_failed=yes
4672fi
4673 else
4674    pkg_failed=untried
4675fi
4676systemdsystemunitdir=$pkg_cv_systemdsystemunitdir
4677
4678if test "x$systemdsystemunitdir" = x""; then :
4679
4680fi
4681
4682fi
4683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemdsystemunitdir" >&5
4684$as_echo "$systemdsystemunitdir" >&6; }
4685    if test "$systemdsystemunitdir" = ""; then :
4686
4687      if test "$want_systemd" = "yes"; then :
4688
4689        as_fn_error $? "Cannot determine where to put systemd files - Provide systemdsystemunitdir manually" "$LINENO" 5
4690
4691fi
4692            want_systemd=no
4693
4694fi
4695
4696fi
4697
4698
4699   if test "$want_systemd" != "no"; then
4700  WANT_SYSTEMD_TRUE=
4701  WANT_SYSTEMD_FALSE='#'
4702else
4703  WANT_SYSTEMD_TRUE='#'
4704  WANT_SYSTEMD_FALSE=
4705fi
4706
4707
4708
4709dovecot_moduledir="$libdir/dovecot"
4710
4711
4712# Check whether --with-moduledir was given.
4713if test "${with_moduledir+set}" = set; then :
4714  withval=$with_moduledir; moduledir="$withval"
4715else
4716  moduledir="$dovecot_moduledir"
4717
4718fi
4719
4720
4721
4722
4723
4724# Check whether --with-docs was given.
4725if test "${with_docs+set}" = set; then :
4726  withval=$with_docs; if test x$withval = xno; then
4727		want_docs=no
4728	else
4729		want_docs=yes
4730	fi
4731else
4732  want_docs=yes
4733fi
4734
4735 if test "$want_docs" = "yes"; then
4736  BUILD_DOCS_TRUE=
4737  BUILD_DOCS_FALSE='#'
4738else
4739  BUILD_DOCS_TRUE='#'
4740  BUILD_DOCS_FALSE=
4741fi
4742
4743
4744want_passwd=yes
4745want_passwd_file=yes
4746want_checkpassword=yes
4747want_prefetch_userdb=yes
4748
4749DEPDIR="${am__leading_dot}deps"
4750
4751ac_config_commands="$ac_config_commands depfiles"
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4754$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4755cat > confinc.mk << 'END'
4756am__doit:
4757	@echo this is the am__doit target >confinc.out
4758.PHONY: am__doit
4759END
4760am__include="#"
4761am__quote=
4762# BSD make does it like this.
4763echo '.include "confinc.mk" # ignored' > confmf.BSD
4764# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4765echo 'include confinc.mk # ignored' > confmf.GNU
4766_am_result=no
4767for s in GNU BSD; do
4768  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4769   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }
4773  case $?:`cat confinc.out 2>/dev/null` in #(
4774  '0:this is the am__doit target') :
4775    case $s in #(
4776  BSD) :
4777    am__include='.include' am__quote='"' ;; #(
4778  *) :
4779    am__include='include' am__quote='' ;;
4780esac ;; #(
4781  *) :
4782     ;;
4783esac
4784  if test "$am__include" != "#"; then
4785    _am_result="yes ($s style)"
4786    break
4787  fi
4788done
4789rm -f confinc.* confmf.*
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4791$as_echo "${_am_result}" >&6; }
4792
4793# Check whether --enable-dependency-tracking was given.
4794if test "${enable_dependency_tracking+set}" = set; then :
4795  enableval=$enable_dependency_tracking;
4796fi
4797
4798if test "x$enable_dependency_tracking" != xno; then
4799  am_depcomp="$ac_aux_dir/depcomp"
4800  AMDEPBACKSLASH='\'
4801  am__nodep='_no'
4802fi
4803 if test "x$enable_dependency_tracking" != xno; then
4804  AMDEP_TRUE=
4805  AMDEP_FALSE='#'
4806else
4807  AMDEP_TRUE='#'
4808  AMDEP_FALSE=
4809fi
4810
4811
4812ac_ext=c
4813ac_cpp='$CPP $CPPFLAGS'
4814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817if test -n "$ac_tool_prefix"; then
4818  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4819set dummy ${ac_tool_prefix}gcc; ac_word=$2
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if ${ac_cv_prog_CC+:} false; then :
4823  $as_echo_n "(cached) " >&6
4824else
4825  if test -n "$CC"; then
4826  ac_cv_prog_CC="$CC" # Let the user override the test.
4827else
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831  IFS=$as_save_IFS
4832  test -z "$as_dir" && as_dir=.
4833    for ac_exec_ext in '' $ac_executable_extensions; do
4834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837    break 2
4838  fi
4839done
4840  done
4841IFS=$as_save_IFS
4842
4843fi
4844fi
4845CC=$ac_cv_prog_CC
4846if test -n "$CC"; then
4847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4848$as_echo "$CC" >&6; }
4849else
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
4852fi
4853
4854
4855fi
4856if test -z "$ac_cv_prog_CC"; then
4857  ac_ct_CC=$CC
4858  # Extract the first word of "gcc", so it can be a program name with args.
4859set dummy gcc; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if ${ac_cv_prog_ac_ct_CC+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865  if test -n "$ac_ct_CC"; then
4866  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871  IFS=$as_save_IFS
4872  test -z "$as_dir" && as_dir=.
4873    for ac_exec_ext in '' $ac_executable_extensions; do
4874  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875    ac_cv_prog_ac_ct_CC="gcc"
4876    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877    break 2
4878  fi
4879done
4880  done
4881IFS=$as_save_IFS
4882
4883fi
4884fi
4885ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886if test -n "$ac_ct_CC"; then
4887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4888$as_echo "$ac_ct_CC" >&6; }
4889else
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
4892fi
4893
4894  if test "x$ac_ct_CC" = x; then
4895    CC=""
4896  else
4897    case $cross_compiling:$ac_tool_warned in
4898yes:)
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901ac_tool_warned=yes ;;
4902esac
4903    CC=$ac_ct_CC
4904  fi
4905else
4906  CC="$ac_cv_prog_CC"
4907fi
4908
4909if test -z "$CC"; then
4910          if test -n "$ac_tool_prefix"; then
4911    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4912set dummy ${ac_tool_prefix}cc; ac_word=$2
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914$as_echo_n "checking for $ac_word... " >&6; }
4915if ${ac_cv_prog_CC+:} false; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  if test -n "$CC"; then
4919  ac_cv_prog_CC="$CC" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926    for ac_exec_ext in '' $ac_executable_extensions; do
4927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928    ac_cv_prog_CC="${ac_tool_prefix}cc"
4929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930    break 2
4931  fi
4932done
4933  done
4934IFS=$as_save_IFS
4935
4936fi
4937fi
4938CC=$ac_cv_prog_CC
4939if test -n "$CC"; then
4940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4941$as_echo "$CC" >&6; }
4942else
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947
4948  fi
4949fi
4950if test -z "$CC"; then
4951  # Extract the first word of "cc", so it can be a program name with args.
4952set dummy cc; ac_word=$2
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954$as_echo_n "checking for $ac_word... " >&6; }
4955if ${ac_cv_prog_CC+:} false; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  if test -n "$CC"; then
4959  ac_cv_prog_CC="$CC" # Let the user override the test.
4960else
4961  ac_prog_rejected=no
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965  IFS=$as_save_IFS
4966  test -z "$as_dir" && as_dir=.
4967    for ac_exec_ext in '' $ac_executable_extensions; do
4968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4969    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4970       ac_prog_rejected=yes
4971       continue
4972     fi
4973    ac_cv_prog_CC="cc"
4974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975    break 2
4976  fi
4977done
4978  done
4979IFS=$as_save_IFS
4980
4981if test $ac_prog_rejected = yes; then
4982  # We found a bogon in the path, so make sure we never use it.
4983  set dummy $ac_cv_prog_CC
4984  shift
4985  if test $# != 0; then
4986    # We chose a different compiler from the bogus one.
4987    # However, it has the same basename, so the bogon will be chosen
4988    # first if we set CC to just the basename; use the full file name.
4989    shift
4990    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4991  fi
4992fi
4993fi
4994fi
4995CC=$ac_cv_prog_CC
4996if test -n "$CC"; then
4997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4998$as_echo "$CC" >&6; }
4999else
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001$as_echo "no" >&6; }
5002fi
5003
5004
5005fi
5006if test -z "$CC"; then
5007  if test -n "$ac_tool_prefix"; then
5008  for ac_prog in cl.exe
5009  do
5010    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013$as_echo_n "checking for $ac_word... " >&6; }
5014if ${ac_cv_prog_CC+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  if test -n "$CC"; then
5018  ac_cv_prog_CC="$CC" # Let the user override the test.
5019else
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023  IFS=$as_save_IFS
5024  test -z "$as_dir" && as_dir=.
5025    for ac_exec_ext in '' $ac_executable_extensions; do
5026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029    break 2
5030  fi
5031done
5032  done
5033IFS=$as_save_IFS
5034
5035fi
5036fi
5037CC=$ac_cv_prog_CC
5038if test -n "$CC"; then
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5040$as_echo "$CC" >&6; }
5041else
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
5045
5046
5047    test -n "$CC" && break
5048  done
5049fi
5050if test -z "$CC"; then
5051  ac_ct_CC=$CC
5052  for ac_prog in cl.exe
5053do
5054  # Extract the first word of "$ac_prog", so it can be a program name with args.
5055set dummy $ac_prog; ac_word=$2
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if ${ac_cv_prog_ac_ct_CC+:} false; then :
5059  $as_echo_n "(cached) " >&6
5060else
5061  if test -n "$ac_ct_CC"; then
5062  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067  IFS=$as_save_IFS
5068  test -z "$as_dir" && as_dir=.
5069    for ac_exec_ext in '' $ac_executable_extensions; do
5070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071    ac_cv_prog_ac_ct_CC="$ac_prog"
5072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073    break 2
5074  fi
5075done
5076  done
5077IFS=$as_save_IFS
5078
5079fi
5080fi
5081ac_ct_CC=$ac_cv_prog_ac_ct_CC
5082if test -n "$ac_ct_CC"; then
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5084$as_echo "$ac_ct_CC" >&6; }
5085else
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091  test -n "$ac_ct_CC" && break
5092done
5093
5094  if test "x$ac_ct_CC" = x; then
5095    CC=""
5096  else
5097    case $cross_compiling:$ac_tool_warned in
5098yes:)
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5101ac_tool_warned=yes ;;
5102esac
5103    CC=$ac_ct_CC
5104  fi
5105fi
5106
5107fi
5108
5109
5110test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5112as_fn_error $? "no acceptable C compiler found in \$PATH
5113See \`config.log' for more details" "$LINENO" 5; }
5114
5115# Provide some information about the compiler.
5116$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5117set X $ac_compile
5118ac_compiler=$2
5119for ac_option in --version -v -V -qversion; do
5120  { { ac_try="$ac_compiler $ac_option >&5"
5121case "(($ac_try" in
5122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123  *) ac_try_echo=$ac_try;;
5124esac
5125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5126$as_echo "$ac_try_echo"; } >&5
5127  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5128  ac_status=$?
5129  if test -s conftest.err; then
5130    sed '10a\
5131... rest of stderr output deleted ...
5132         10q' conftest.err >conftest.er1
5133    cat conftest.er1 >&5
5134  fi
5135  rm -f conftest.er1 conftest.err
5136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5137  test $ac_status = 0; }
5138done
5139
5140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141/* end confdefs.h.  */
5142
5143int
5144main ()
5145{
5146
5147  ;
5148  return 0;
5149}
5150_ACEOF
5151ac_clean_files_save=$ac_clean_files
5152ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5153# Try to create an executable without -o first, disregard a.out.
5154# It will help us diagnose broken compilers, and finding out an intuition
5155# of exeext.
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5157$as_echo_n "checking whether the C compiler works... " >&6; }
5158ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5159
5160# The possible output files:
5161ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5162
5163ac_rmfiles=
5164for ac_file in $ac_files
5165do
5166  case $ac_file in
5167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5168    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5169  esac
5170done
5171rm -f $ac_rmfiles
5172
5173if { { ac_try="$ac_link_default"
5174case "(($ac_try" in
5175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176  *) ac_try_echo=$ac_try;;
5177esac
5178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179$as_echo "$ac_try_echo"; } >&5
5180  (eval "$ac_link_default") 2>&5
5181  ac_status=$?
5182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183  test $ac_status = 0; }; then :
5184  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5185# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5186# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5187# so that the user can short-circuit this test for compilers unknown to
5188# Autoconf.
5189for ac_file in $ac_files ''
5190do
5191  test -f "$ac_file" || continue
5192  case $ac_file in
5193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5194	;;
5195    [ab].out )
5196	# We found the default executable, but exeext='' is most
5197	# certainly right.
5198	break;;
5199    *.* )
5200	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5201	then :; else
5202	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5203	fi
5204	# We set ac_cv_exeext here because the later test for it is not
5205	# safe: cross compilers may not add the suffix if given an `-o'
5206	# argument, so we may need to know it at that point already.
5207	# Even if this section looks crufty: it has the advantage of
5208	# actually working.
5209	break;;
5210    * )
5211	break;;
5212  esac
5213done
5214test "$ac_cv_exeext" = no && ac_cv_exeext=
5215
5216else
5217  ac_file=''
5218fi
5219if test -z "$ac_file"; then :
5220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221$as_echo "no" >&6; }
5222$as_echo "$as_me: failed program was:" >&5
5223sed 's/^/| /' conftest.$ac_ext >&5
5224
5225{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5227as_fn_error 77 "C compiler cannot create executables
5228See \`config.log' for more details" "$LINENO" 5; }
5229else
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231$as_echo "yes" >&6; }
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5234$as_echo_n "checking for C compiler default output file name... " >&6; }
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5236$as_echo "$ac_file" >&6; }
5237ac_exeext=$ac_cv_exeext
5238
5239rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5240ac_clean_files=$ac_clean_files_save
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5242$as_echo_n "checking for suffix of executables... " >&6; }
5243if { { ac_try="$ac_link"
5244case "(($ac_try" in
5245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246  *) ac_try_echo=$ac_try;;
5247esac
5248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5249$as_echo "$ac_try_echo"; } >&5
5250  (eval "$ac_link") 2>&5
5251  ac_status=$?
5252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253  test $ac_status = 0; }; then :
5254  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5255# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5256# work properly (i.e., refer to `conftest.exe'), while it won't with
5257# `rm'.
5258for ac_file in conftest.exe conftest conftest.*; do
5259  test -f "$ac_file" || continue
5260  case $ac_file in
5261    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5262    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5263	  break;;
5264    * ) break;;
5265  esac
5266done
5267else
5268  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5270as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5271See \`config.log' for more details" "$LINENO" 5; }
5272fi
5273rm -f conftest conftest$ac_cv_exeext
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5275$as_echo "$ac_cv_exeext" >&6; }
5276
5277rm -f conftest.$ac_ext
5278EXEEXT=$ac_cv_exeext
5279ac_exeext=$EXEEXT
5280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282#include <stdio.h>
5283int
5284main ()
5285{
5286FILE *f = fopen ("conftest.out", "w");
5287 return ferror (f) || fclose (f) != 0;
5288
5289  ;
5290  return 0;
5291}
5292_ACEOF
5293ac_clean_files="$ac_clean_files conftest.out"
5294# Check that the compiler produces executables we can run.  If not, either
5295# the compiler is broken, or we cross compile.
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5297$as_echo_n "checking whether we are cross compiling... " >&6; }
5298if test "$cross_compiling" != yes; then
5299  { { ac_try="$ac_link"
5300case "(($ac_try" in
5301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302  *) ac_try_echo=$ac_try;;
5303esac
5304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5305$as_echo "$ac_try_echo"; } >&5
5306  (eval "$ac_link") 2>&5
5307  ac_status=$?
5308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309  test $ac_status = 0; }
5310  if { ac_try='./conftest$ac_cv_exeext'
5311  { { case "(($ac_try" in
5312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313  *) ac_try_echo=$ac_try;;
5314esac
5315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5316$as_echo "$ac_try_echo"; } >&5
5317  (eval "$ac_try") 2>&5
5318  ac_status=$?
5319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5320  test $ac_status = 0; }; }; then
5321    cross_compiling=no
5322  else
5323    if test "$cross_compiling" = maybe; then
5324	cross_compiling=yes
5325    else
5326	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5328as_fn_error $? "cannot run C compiled programs.
5329If you meant to cross compile, use \`--host'.
5330See \`config.log' for more details" "$LINENO" 5; }
5331    fi
5332  fi
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5335$as_echo "$cross_compiling" >&6; }
5336
5337rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5338ac_clean_files=$ac_clean_files_save
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5340$as_echo_n "checking for suffix of object files... " >&6; }
5341if ${ac_cv_objext+:} false; then :
5342  $as_echo_n "(cached) " >&6
5343else
5344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h.  */
5346
5347int
5348main ()
5349{
5350
5351  ;
5352  return 0;
5353}
5354_ACEOF
5355rm -f conftest.o conftest.obj
5356if { { ac_try="$ac_compile"
5357case "(($ac_try" in
5358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359  *) ac_try_echo=$ac_try;;
5360esac
5361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5362$as_echo "$ac_try_echo"; } >&5
5363  (eval "$ac_compile") 2>&5
5364  ac_status=$?
5365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5366  test $ac_status = 0; }; then :
5367  for ac_file in conftest.o conftest.obj conftest.*; do
5368  test -f "$ac_file" || continue;
5369  case $ac_file in
5370    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5371    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5372       break;;
5373  esac
5374done
5375else
5376  $as_echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5381as_fn_error $? "cannot compute suffix of object files: cannot compile
5382See \`config.log' for more details" "$LINENO" 5; }
5383fi
5384rm -f conftest.$ac_cv_objext conftest.$ac_ext
5385fi
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5387$as_echo "$ac_cv_objext" >&6; }
5388OBJEXT=$ac_cv_objext
5389ac_objext=$OBJEXT
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5391$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5392if ${ac_cv_c_compiler_gnu+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h.  */
5397
5398int
5399main ()
5400{
5401#ifndef __GNUC__
5402       choke me
5403#endif
5404
5405  ;
5406  return 0;
5407}
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"; then :
5410  ac_compiler_gnu=yes
5411else
5412  ac_compiler_gnu=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415ac_cv_c_compiler_gnu=$ac_compiler_gnu
5416
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5419$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5420if test $ac_compiler_gnu = yes; then
5421  GCC=yes
5422else
5423  GCC=
5424fi
5425ac_test_CFLAGS=${CFLAGS+set}
5426ac_save_CFLAGS=$CFLAGS
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5428$as_echo_n "checking whether $CC accepts -g... " >&6; }
5429if ${ac_cv_prog_cc_g+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  ac_save_c_werror_flag=$ac_c_werror_flag
5433   ac_c_werror_flag=yes
5434   ac_cv_prog_cc_g=no
5435   CFLAGS="-g"
5436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437/* end confdefs.h.  */
5438
5439int
5440main ()
5441{
5442
5443  ;
5444  return 0;
5445}
5446_ACEOF
5447if ac_fn_c_try_compile "$LINENO"; then :
5448  ac_cv_prog_cc_g=yes
5449else
5450  CFLAGS=""
5451      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453
5454int
5455main ()
5456{
5457
5458  ;
5459  return 0;
5460}
5461_ACEOF
5462if ac_fn_c_try_compile "$LINENO"; then :
5463
5464else
5465  ac_c_werror_flag=$ac_save_c_werror_flag
5466	 CFLAGS="-g"
5467	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469
5470int
5471main ()
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478if ac_fn_c_try_compile "$LINENO"; then :
5479  ac_cv_prog_cc_g=yes
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484fi
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486   ac_c_werror_flag=$ac_save_c_werror_flag
5487fi
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5489$as_echo "$ac_cv_prog_cc_g" >&6; }
5490if test "$ac_test_CFLAGS" = set; then
5491  CFLAGS=$ac_save_CFLAGS
5492elif test $ac_cv_prog_cc_g = yes; then
5493  if test "$GCC" = yes; then
5494    CFLAGS="-g -O2"
5495  else
5496    CFLAGS="-g"
5497  fi
5498else
5499  if test "$GCC" = yes; then
5500    CFLAGS="-O2"
5501  else
5502    CFLAGS=
5503  fi
5504fi
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5506$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5507if ${ac_cv_prog_cc_c89+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  ac_cv_prog_cc_c89=no
5511ac_save_CC=$CC
5512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514#include <stdarg.h>
5515#include <stdio.h>
5516struct stat;
5517/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5518struct buf { int x; };
5519FILE * (*rcsopen) (struct buf *, struct stat *, int);
5520static char *e (p, i)
5521     char **p;
5522     int i;
5523{
5524  return p[i];
5525}
5526static char *f (char * (*g) (char **, int), char **p, ...)
5527{
5528  char *s;
5529  va_list v;
5530  va_start (v,p);
5531  s = g (p, va_arg (v,int));
5532  va_end (v);
5533  return s;
5534}
5535
5536/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5537   function prototypes and stuff, but not '\xHH' hex character constants.
5538   These don't provoke an error unfortunately, instead are silently treated
5539   as 'x'.  The following induces an error, until -std is added to get
5540   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5541   array size at least.  It's necessary to write '\x00'==0 to get something
5542   that's true only with -std.  */
5543int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5544
5545/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5546   inside strings and character constants.  */
5547#define FOO(x) 'x'
5548int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5549
5550int test (int i, double x);
5551struct s1 {int (*f) (int a);};
5552struct s2 {int (*f) (double a);};
5553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5554int argc;
5555char **argv;
5556int
5557main ()
5558{
5559return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5560  ;
5561  return 0;
5562}
5563_ACEOF
5564for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5565	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5566do
5567  CC="$ac_save_CC $ac_arg"
5568  if ac_fn_c_try_compile "$LINENO"; then :
5569  ac_cv_prog_cc_c89=$ac_arg
5570fi
5571rm -f core conftest.err conftest.$ac_objext
5572  test "x$ac_cv_prog_cc_c89" != "xno" && break
5573done
5574rm -f conftest.$ac_ext
5575CC=$ac_save_CC
5576
5577fi
5578# AC_CACHE_VAL
5579case "x$ac_cv_prog_cc_c89" in
5580  x)
5581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5582$as_echo "none needed" >&6; } ;;
5583  xno)
5584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5585$as_echo "unsupported" >&6; } ;;
5586  *)
5587    CC="$CC $ac_cv_prog_cc_c89"
5588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5589$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5590esac
5591if test "x$ac_cv_prog_cc_c89" != xno; then :
5592
5593fi
5594
5595ac_ext=c
5596ac_cpp='$CPP $CPPFLAGS'
5597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600
5601ac_ext=c
5602ac_cpp='$CPP $CPPFLAGS'
5603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5607$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5608if ${am_cv_prog_cc_c_o+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h.  */
5613
5614int
5615main ()
5616{
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622  # Make sure it works both with $CC and with simple cc.
5623  # Following AC_PROG_CC_C_O, we do the test twice because some
5624  # compilers refuse to overwrite an existing .o file with -o,
5625  # though they will create one.
5626  am_cv_prog_cc_c_o=yes
5627  for am_i in 1 2; do
5628    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5629   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } \
5633         && test -f conftest2.$ac_objext; then
5634      : OK
5635    else
5636      am_cv_prog_cc_c_o=no
5637      break
5638    fi
5639  done
5640  rm -f core conftest*
5641  unset am_i
5642fi
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5644$as_echo "$am_cv_prog_cc_c_o" >&6; }
5645if test "$am_cv_prog_cc_c_o" != yes; then
5646   # Losing compiler, so override with the script.
5647   # FIXME: It is wrong to rewrite CC.
5648   # But if we don't then we get into trouble of one sort or another.
5649   # A longer-term fix would be to have automake use am__CC in this case,
5650   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5651   CC="$am_aux_dir/compile $CC"
5652fi
5653ac_ext=c
5654ac_cpp='$CPP $CPPFLAGS'
5655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658
5659
5660depcc="$CC"   am_compiler_list=
5661
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5663$as_echo_n "checking dependency style of $depcc... " >&6; }
5664if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5665  $as_echo_n "(cached) " >&6
5666else
5667  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5668  # We make a subdir and do the tests there.  Otherwise we can end up
5669  # making bogus files that we don't know about and never remove.  For
5670  # instance it was reported that on HP-UX the gcc test will end up
5671  # making a dummy file named 'D' -- because '-MD' means "put the output
5672  # in D".
5673  rm -rf conftest.dir
5674  mkdir conftest.dir
5675  # Copy depcomp to subdir because otherwise we won't find it if we're
5676  # using a relative directory.
5677  cp "$am_depcomp" conftest.dir
5678  cd conftest.dir
5679  # We will build objects and dependencies in a subdirectory because
5680  # it helps to detect inapplicable dependency modes.  For instance
5681  # both Tru64's cc and ICC support -MD to output dependencies as a
5682  # side effect of compilation, but ICC will put the dependencies in
5683  # the current directory while Tru64 will put them in the object
5684  # directory.
5685  mkdir sub
5686
5687  am_cv_CC_dependencies_compiler_type=none
5688  if test "$am_compiler_list" = ""; then
5689     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5690  fi
5691  am__universal=false
5692  case " $depcc " in #(
5693     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5694     esac
5695
5696  for depmode in $am_compiler_list; do
5697    # Setup a source with many dependencies, because some compilers
5698    # like to wrap large dependency lists on column 80 (with \), and
5699    # we should not choose a depcomp mode which is confused by this.
5700    #
5701    # We need to recreate these files for each test, as the compiler may
5702    # overwrite some of them when testing with obscure command lines.
5703    # This happens at least with the AIX C compiler.
5704    : > sub/conftest.c
5705    for i in 1 2 3 4 5 6; do
5706      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5707      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5708      # Solaris 10 /bin/sh.
5709      echo '/* dummy */' > sub/conftst$i.h
5710    done
5711    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5712
5713    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5714    # mode.  It turns out that the SunPro C++ compiler does not properly
5715    # handle '-M -o', and we need to detect this.  Also, some Intel
5716    # versions had trouble with output in subdirs.
5717    am__obj=sub/conftest.${OBJEXT-o}
5718    am__minus_obj="-o $am__obj"
5719    case $depmode in
5720    gcc)
5721      # This depmode causes a compiler race in universal mode.
5722      test "$am__universal" = false || continue
5723      ;;
5724    nosideeffect)
5725      # After this tag, mechanisms are not by side-effect, so they'll
5726      # only be used when explicitly requested.
5727      if test "x$enable_dependency_tracking" = xyes; then
5728	continue
5729      else
5730	break
5731      fi
5732      ;;
5733    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5734      # This compiler won't grok '-c -o', but also, the minuso test has
5735      # not run yet.  These depmodes are late enough in the game, and
5736      # so weak that their functioning should not be impacted.
5737      am__obj=conftest.${OBJEXT-o}
5738      am__minus_obj=
5739      ;;
5740    none) break ;;
5741    esac
5742    if depmode=$depmode \
5743       source=sub/conftest.c object=$am__obj \
5744       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5745       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5746         >/dev/null 2>conftest.err &&
5747       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5748       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5749       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5750       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5751      # icc doesn't choke on unknown options, it will just issue warnings
5752      # or remarks (even with -Werror).  So we grep stderr for any message
5753      # that says an option was ignored or not supported.
5754      # When given -MP, icc 7.0 and 7.1 complain thusly:
5755      #   icc: Command line warning: ignoring option '-M'; no argument required
5756      # The diagnosis changed in icc 8.0:
5757      #   icc: Command line remark: option '-MP' not supported
5758      if (grep 'ignoring option' conftest.err ||
5759          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5760        am_cv_CC_dependencies_compiler_type=$depmode
5761        break
5762      fi
5763    fi
5764  done
5765
5766  cd ..
5767  rm -rf conftest.dir
5768else
5769  am_cv_CC_dependencies_compiler_type=none
5770fi
5771
5772fi
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5774$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5775CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5776
5777 if
5778  test "x$enable_dependency_tracking" != xno \
5779  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5780  am__fastdepCC_TRUE=
5781  am__fastdepCC_FALSE='#'
5782else
5783  am__fastdepCC_TRUE='#'
5784  am__fastdepCC_FALSE=
5785fi
5786
5787
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5790$as_echo_n "checking for library containing strerror... " >&6; }
5791if ${ac_cv_search_strerror+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  ac_func_search_save_LIBS=$LIBS
5795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h.  */
5797
5798/* Override any GCC internal prototype to avoid an error.
5799   Use char because int might match the return type of a GCC
5800   builtin and then its argument prototype would still apply.  */
5801#ifdef __cplusplus
5802extern "C"
5803#endif
5804char strerror ();
5805int
5806main ()
5807{
5808return strerror ();
5809  ;
5810  return 0;
5811}
5812_ACEOF
5813for ac_lib in '' cposix; do
5814  if test -z "$ac_lib"; then
5815    ac_res="none required"
5816  else
5817    ac_res=-l$ac_lib
5818    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5819  fi
5820  if ac_fn_c_try_link "$LINENO"; then :
5821  ac_cv_search_strerror=$ac_res
5822fi
5823rm -f core conftest.err conftest.$ac_objext \
5824    conftest$ac_exeext
5825  if ${ac_cv_search_strerror+:} false; then :
5826  break
5827fi
5828done
5829if ${ac_cv_search_strerror+:} false; then :
5830
5831else
5832  ac_cv_search_strerror=no
5833fi
5834rm conftest.$ac_ext
5835LIBS=$ac_func_search_save_LIBS
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5838$as_echo "$ac_cv_search_strerror" >&6; }
5839ac_res=$ac_cv_search_strerror
5840if test "$ac_res" != no; then :
5841  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5842
5843fi
5844
5845ac_ext=c
5846ac_cpp='$CPP $CPPFLAGS'
5847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849ac_compiler_gnu=$ac_cv_c_compiler_gnu
5850if test -n "$ac_tool_prefix"; then
5851  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5852set dummy ${ac_tool_prefix}gcc; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if ${ac_cv_prog_CC+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  if test -n "$CC"; then
5859  ac_cv_prog_CC="$CC" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864  IFS=$as_save_IFS
5865  test -z "$as_dir" && as_dir=.
5866    for ac_exec_ext in '' $ac_executable_extensions; do
5867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870    break 2
5871  fi
5872done
5873  done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878CC=$ac_cv_prog_CC
5879if test -n "$CC"; then
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5881$as_echo "$CC" >&6; }
5882else
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887
5888fi
5889if test -z "$ac_cv_prog_CC"; then
5890  ac_ct_CC=$CC
5891  # Extract the first word of "gcc", so it can be a program name with args.
5892set dummy gcc; ac_word=$2
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894$as_echo_n "checking for $ac_word... " >&6; }
5895if ${ac_cv_prog_ac_ct_CC+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  if test -n "$ac_ct_CC"; then
5899  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904  IFS=$as_save_IFS
5905  test -z "$as_dir" && as_dir=.
5906    for ac_exec_ext in '' $ac_executable_extensions; do
5907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908    ac_cv_prog_ac_ct_CC="gcc"
5909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910    break 2
5911  fi
5912done
5913  done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918ac_ct_CC=$ac_cv_prog_ac_ct_CC
5919if test -n "$ac_ct_CC"; then
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5921$as_echo "$ac_ct_CC" >&6; }
5922else
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }
5925fi
5926
5927  if test "x$ac_ct_CC" = x; then
5928    CC=""
5929  else
5930    case $cross_compiling:$ac_tool_warned in
5931yes:)
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934ac_tool_warned=yes ;;
5935esac
5936    CC=$ac_ct_CC
5937  fi
5938else
5939  CC="$ac_cv_prog_CC"
5940fi
5941
5942if test -z "$CC"; then
5943          if test -n "$ac_tool_prefix"; then
5944    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5945set dummy ${ac_tool_prefix}cc; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
5948if ${ac_cv_prog_CC+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  if test -n "$CC"; then
5952  ac_cv_prog_CC="$CC" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  test -z "$as_dir" && as_dir=.
5959    for ac_exec_ext in '' $ac_executable_extensions; do
5960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961    ac_cv_prog_CC="${ac_tool_prefix}cc"
5962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963    break 2
5964  fi
5965done
5966  done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971CC=$ac_cv_prog_CC
5972if test -n "$CC"; then
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5974$as_echo "$CC" >&6; }
5975else
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980
5981  fi
5982fi
5983if test -z "$CC"; then
5984  # Extract the first word of "cc", so it can be a program name with args.
5985set dummy cc; ac_word=$2
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987$as_echo_n "checking for $ac_word... " >&6; }
5988if ${ac_cv_prog_CC+:} false; then :
5989  $as_echo_n "(cached) " >&6
5990else
5991  if test -n "$CC"; then
5992  ac_cv_prog_CC="$CC" # Let the user override the test.
5993else
5994  ac_prog_rejected=no
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998  IFS=$as_save_IFS
5999  test -z "$as_dir" && as_dir=.
6000    for ac_exec_ext in '' $ac_executable_extensions; do
6001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6003       ac_prog_rejected=yes
6004       continue
6005     fi
6006    ac_cv_prog_CC="cc"
6007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008    break 2
6009  fi
6010done
6011  done
6012IFS=$as_save_IFS
6013
6014if test $ac_prog_rejected = yes; then
6015  # We found a bogon in the path, so make sure we never use it.
6016  set dummy $ac_cv_prog_CC
6017  shift
6018  if test $# != 0; then
6019    # We chose a different compiler from the bogus one.
6020    # However, it has the same basename, so the bogon will be chosen
6021    # first if we set CC to just the basename; use the full file name.
6022    shift
6023    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6024  fi
6025fi
6026fi
6027fi
6028CC=$ac_cv_prog_CC
6029if test -n "$CC"; then
6030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6031$as_echo "$CC" >&6; }
6032else
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034$as_echo "no" >&6; }
6035fi
6036
6037
6038fi
6039if test -z "$CC"; then
6040  if test -n "$ac_tool_prefix"; then
6041  for ac_prog in cl.exe
6042  do
6043    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046$as_echo_n "checking for $ac_word... " >&6; }
6047if ${ac_cv_prog_CC+:} false; then :
6048  $as_echo_n "(cached) " >&6
6049else
6050  if test -n "$CC"; then
6051  ac_cv_prog_CC="$CC" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056  IFS=$as_save_IFS
6057  test -z "$as_dir" && as_dir=.
6058    for ac_exec_ext in '' $ac_executable_extensions; do
6059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062    break 2
6063  fi
6064done
6065  done
6066IFS=$as_save_IFS
6067
6068fi
6069fi
6070CC=$ac_cv_prog_CC
6071if test -n "$CC"; then
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6073$as_echo "$CC" >&6; }
6074else
6075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076$as_echo "no" >&6; }
6077fi
6078
6079
6080    test -n "$CC" && break
6081  done
6082fi
6083if test -z "$CC"; then
6084  ac_ct_CC=$CC
6085  for ac_prog in cl.exe
6086do
6087  # Extract the first word of "$ac_prog", so it can be a program name with args.
6088set dummy $ac_prog; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
6091if ${ac_cv_prog_ac_ct_CC+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  if test -n "$ac_ct_CC"; then
6095  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102    for ac_exec_ext in '' $ac_executable_extensions; do
6103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104    ac_cv_prog_ac_ct_CC="$ac_prog"
6105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109  done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114ac_ct_CC=$ac_cv_prog_ac_ct_CC
6115if test -n "$ac_ct_CC"; then
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6117$as_echo "$ac_ct_CC" >&6; }
6118else
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123
6124  test -n "$ac_ct_CC" && break
6125done
6126
6127  if test "x$ac_ct_CC" = x; then
6128    CC=""
6129  else
6130    case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134ac_tool_warned=yes ;;
6135esac
6136    CC=$ac_ct_CC
6137  fi
6138fi
6139
6140fi
6141
6142
6143test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6145as_fn_error $? "no acceptable C compiler found in \$PATH
6146See \`config.log' for more details" "$LINENO" 5; }
6147
6148# Provide some information about the compiler.
6149$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6150set X $ac_compile
6151ac_compiler=$2
6152for ac_option in --version -v -V -qversion; do
6153  { { ac_try="$ac_compiler $ac_option >&5"
6154case "(($ac_try" in
6155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156  *) ac_try_echo=$ac_try;;
6157esac
6158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6159$as_echo "$ac_try_echo"; } >&5
6160  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6161  ac_status=$?
6162  if test -s conftest.err; then
6163    sed '10a\
6164... rest of stderr output deleted ...
6165         10q' conftest.err >conftest.er1
6166    cat conftest.er1 >&5
6167  fi
6168  rm -f conftest.er1 conftest.err
6169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170  test $ac_status = 0; }
6171done
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6174$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6175if ${ac_cv_c_compiler_gnu+:} false; then :
6176  $as_echo_n "(cached) " >&6
6177else
6178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h.  */
6180
6181int
6182main ()
6183{
6184#ifndef __GNUC__
6185       choke me
6186#endif
6187
6188  ;
6189  return 0;
6190}
6191_ACEOF
6192if ac_fn_c_try_compile "$LINENO"; then :
6193  ac_compiler_gnu=yes
6194else
6195  ac_compiler_gnu=no
6196fi
6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198ac_cv_c_compiler_gnu=$ac_compiler_gnu
6199
6200fi
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6202$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6203if test $ac_compiler_gnu = yes; then
6204  GCC=yes
6205else
6206  GCC=
6207fi
6208ac_test_CFLAGS=${CFLAGS+set}
6209ac_save_CFLAGS=$CFLAGS
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6211$as_echo_n "checking whether $CC accepts -g... " >&6; }
6212if ${ac_cv_prog_cc_g+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  ac_save_c_werror_flag=$ac_c_werror_flag
6216   ac_c_werror_flag=yes
6217   ac_cv_prog_cc_g=no
6218   CFLAGS="-g"
6219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220/* end confdefs.h.  */
6221
6222int
6223main ()
6224{
6225
6226  ;
6227  return 0;
6228}
6229_ACEOF
6230if ac_fn_c_try_compile "$LINENO"; then :
6231  ac_cv_prog_cc_g=yes
6232else
6233  CFLAGS=""
6234      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236
6237int
6238main ()
6239{
6240
6241  ;
6242  return 0;
6243}
6244_ACEOF
6245if ac_fn_c_try_compile "$LINENO"; then :
6246
6247else
6248  ac_c_werror_flag=$ac_save_c_werror_flag
6249	 CFLAGS="-g"
6250	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h.  */
6252
6253int
6254main ()
6255{
6256
6257  ;
6258  return 0;
6259}
6260_ACEOF
6261if ac_fn_c_try_compile "$LINENO"; then :
6262  ac_cv_prog_cc_g=yes
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265fi
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267fi
6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269   ac_c_werror_flag=$ac_save_c_werror_flag
6270fi
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6272$as_echo "$ac_cv_prog_cc_g" >&6; }
6273if test "$ac_test_CFLAGS" = set; then
6274  CFLAGS=$ac_save_CFLAGS
6275elif test $ac_cv_prog_cc_g = yes; then
6276  if test "$GCC" = yes; then
6277    CFLAGS="-g -O2"
6278  else
6279    CFLAGS="-g"
6280  fi
6281else
6282  if test "$GCC" = yes; then
6283    CFLAGS="-O2"
6284  else
6285    CFLAGS=
6286  fi
6287fi
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6289$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6290if ${ac_cv_prog_cc_c89+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  ac_cv_prog_cc_c89=no
6294ac_save_CC=$CC
6295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h.  */
6297#include <stdarg.h>
6298#include <stdio.h>
6299struct stat;
6300/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6301struct buf { int x; };
6302FILE * (*rcsopen) (struct buf *, struct stat *, int);
6303static char *e (p, i)
6304     char **p;
6305     int i;
6306{
6307  return p[i];
6308}
6309static char *f (char * (*g) (char **, int), char **p, ...)
6310{
6311  char *s;
6312  va_list v;
6313  va_start (v,p);
6314  s = g (p, va_arg (v,int));
6315  va_end (v);
6316  return s;
6317}
6318
6319/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6320   function prototypes and stuff, but not '\xHH' hex character constants.
6321   These don't provoke an error unfortunately, instead are silently treated
6322   as 'x'.  The following induces an error, until -std is added to get
6323   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6324   array size at least.  It's necessary to write '\x00'==0 to get something
6325   that's true only with -std.  */
6326int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6327
6328/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6329   inside strings and character constants.  */
6330#define FOO(x) 'x'
6331int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6332
6333int test (int i, double x);
6334struct s1 {int (*f) (int a);};
6335struct s2 {int (*f) (double a);};
6336int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6337int argc;
6338char **argv;
6339int
6340main ()
6341{
6342return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6343  ;
6344  return 0;
6345}
6346_ACEOF
6347for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6348	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6349do
6350  CC="$ac_save_CC $ac_arg"
6351  if ac_fn_c_try_compile "$LINENO"; then :
6352  ac_cv_prog_cc_c89=$ac_arg
6353fi
6354rm -f core conftest.err conftest.$ac_objext
6355  test "x$ac_cv_prog_cc_c89" != "xno" && break
6356done
6357rm -f conftest.$ac_ext
6358CC=$ac_save_CC
6359
6360fi
6361# AC_CACHE_VAL
6362case "x$ac_cv_prog_cc_c89" in
6363  x)
6364    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6365$as_echo "none needed" >&6; } ;;
6366  xno)
6367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6368$as_echo "unsupported" >&6; } ;;
6369  *)
6370    CC="$CC $ac_cv_prog_cc_c89"
6371    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6372$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6373esac
6374if test "x$ac_cv_prog_cc_c89" != xno; then :
6375
6376fi
6377
6378ac_ext=c
6379ac_cpp='$CPP $CPPFLAGS'
6380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6382ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383
6384ac_ext=c
6385ac_cpp='$CPP $CPPFLAGS'
6386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6390$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6391if ${am_cv_prog_cc_c_o+:} false; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395/* end confdefs.h.  */
6396
6397int
6398main ()
6399{
6400
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405  # Make sure it works both with $CC and with simple cc.
6406  # Following AC_PROG_CC_C_O, we do the test twice because some
6407  # compilers refuse to overwrite an existing .o file with -o,
6408  # though they will create one.
6409  am_cv_prog_cc_c_o=yes
6410  for am_i in 1 2; do
6411    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6412   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); } \
6416         && test -f conftest2.$ac_objext; then
6417      : OK
6418    else
6419      am_cv_prog_cc_c_o=no
6420      break
6421    fi
6422  done
6423  rm -f core conftest*
6424  unset am_i
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6427$as_echo "$am_cv_prog_cc_c_o" >&6; }
6428if test "$am_cv_prog_cc_c_o" != yes; then
6429   # Losing compiler, so override with the script.
6430   # FIXME: It is wrong to rewrite CC.
6431   # But if we don't then we get into trouble of one sort or another.
6432   # A longer-term fix would be to have automake use am__CC in this case,
6433   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6434   CC="$am_aux_dir/compile $CC"
6435fi
6436ac_ext=c
6437ac_cpp='$CPP $CPPFLAGS'
6438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441
6442
6443depcc="$CC"   am_compiler_list=
6444
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6446$as_echo_n "checking dependency style of $depcc... " >&6; }
6447if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6448  $as_echo_n "(cached) " >&6
6449else
6450  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6451  # We make a subdir and do the tests there.  Otherwise we can end up
6452  # making bogus files that we don't know about and never remove.  For
6453  # instance it was reported that on HP-UX the gcc test will end up
6454  # making a dummy file named 'D' -- because '-MD' means "put the output
6455  # in D".
6456  rm -rf conftest.dir
6457  mkdir conftest.dir
6458  # Copy depcomp to subdir because otherwise we won't find it if we're
6459  # using a relative directory.
6460  cp "$am_depcomp" conftest.dir
6461  cd conftest.dir
6462  # We will build objects and dependencies in a subdirectory because
6463  # it helps to detect inapplicable dependency modes.  For instance
6464  # both Tru64's cc and ICC support -MD to output dependencies as a
6465  # side effect of compilation, but ICC will put the dependencies in
6466  # the current directory while Tru64 will put them in the object
6467  # directory.
6468  mkdir sub
6469
6470  am_cv_CC_dependencies_compiler_type=none
6471  if test "$am_compiler_list" = ""; then
6472     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6473  fi
6474  am__universal=false
6475  case " $depcc " in #(
6476     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6477     esac
6478
6479  for depmode in $am_compiler_list; do
6480    # Setup a source with many dependencies, because some compilers
6481    # like to wrap large dependency lists on column 80 (with \), and
6482    # we should not choose a depcomp mode which is confused by this.
6483    #
6484    # We need to recreate these files for each test, as the compiler may
6485    # overwrite some of them when testing with obscure command lines.
6486    # This happens at least with the AIX C compiler.
6487    : > sub/conftest.c
6488    for i in 1 2 3 4 5 6; do
6489      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6490      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6491      # Solaris 10 /bin/sh.
6492      echo '/* dummy */' > sub/conftst$i.h
6493    done
6494    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6495
6496    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6497    # mode.  It turns out that the SunPro C++ compiler does not properly
6498    # handle '-M -o', and we need to detect this.  Also, some Intel
6499    # versions had trouble with output in subdirs.
6500    am__obj=sub/conftest.${OBJEXT-o}
6501    am__minus_obj="-o $am__obj"
6502    case $depmode in
6503    gcc)
6504      # This depmode causes a compiler race in universal mode.
6505      test "$am__universal" = false || continue
6506      ;;
6507    nosideeffect)
6508      # After this tag, mechanisms are not by side-effect, so they'll
6509      # only be used when explicitly requested.
6510      if test "x$enable_dependency_tracking" = xyes; then
6511	continue
6512      else
6513	break
6514      fi
6515      ;;
6516    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6517      # This compiler won't grok '-c -o', but also, the minuso test has
6518      # not run yet.  These depmodes are late enough in the game, and
6519      # so weak that their functioning should not be impacted.
6520      am__obj=conftest.${OBJEXT-o}
6521      am__minus_obj=
6522      ;;
6523    none) break ;;
6524    esac
6525    if depmode=$depmode \
6526       source=sub/conftest.c object=$am__obj \
6527       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6528       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6529         >/dev/null 2>conftest.err &&
6530       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6531       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6532       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6533       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6534      # icc doesn't choke on unknown options, it will just issue warnings
6535      # or remarks (even with -Werror).  So we grep stderr for any message
6536      # that says an option was ignored or not supported.
6537      # When given -MP, icc 7.0 and 7.1 complain thusly:
6538      #   icc: Command line warning: ignoring option '-M'; no argument required
6539      # The diagnosis changed in icc 8.0:
6540      #   icc: Command line remark: option '-MP' not supported
6541      if (grep 'ignoring option' conftest.err ||
6542          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6543        am_cv_CC_dependencies_compiler_type=$depmode
6544        break
6545      fi
6546    fi
6547  done
6548
6549  cd ..
6550  rm -rf conftest.dir
6551else
6552  am_cv_CC_dependencies_compiler_type=none
6553fi
6554
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6557$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6558CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6559
6560 if
6561  test "x$enable_dependency_tracking" != xno \
6562  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6563  am__fastdepCC_TRUE=
6564  am__fastdepCC_FALSE='#'
6565else
6566  am__fastdepCC_TRUE='#'
6567  am__fastdepCC_FALSE=
6568fi
6569
6570
6571ac_ext=c
6572ac_cpp='$CPP $CPPFLAGS'
6573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6577$as_echo_n "checking how to run the C preprocessor... " >&6; }
6578# On Suns, sometimes $CPP names a directory.
6579if test -n "$CPP" && test -d "$CPP"; then
6580  CPP=
6581fi
6582if test -z "$CPP"; then
6583  if ${ac_cv_prog_CPP+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586      # Double quotes because CPP needs to be expanded
6587    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6588    do
6589      ac_preproc_ok=false
6590for ac_c_preproc_warn_flag in '' yes
6591do
6592  # Use a header file that comes with gcc, so configuring glibc
6593  # with a fresh cross-compiler works.
6594  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6595  # <limits.h> exists even on freestanding compilers.
6596  # On the NeXT, cc -E runs the code through the compiler's parser,
6597  # not just through cpp. "Syntax error" is here to catch this case.
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600#ifdef __STDC__
6601# include <limits.h>
6602#else
6603# include <assert.h>
6604#endif
6605		     Syntax error
6606_ACEOF
6607if ac_fn_c_try_cpp "$LINENO"; then :
6608
6609else
6610  # Broken: fails on valid input.
6611continue
6612fi
6613rm -f conftest.err conftest.i conftest.$ac_ext
6614
6615  # OK, works on sane cases.  Now check whether nonexistent headers
6616  # can be detected and how.
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619#include <ac_nonexistent.h>
6620_ACEOF
6621if ac_fn_c_try_cpp "$LINENO"; then :
6622  # Broken: success on invalid input.
6623continue
6624else
6625  # Passes both tests.
6626ac_preproc_ok=:
6627break
6628fi
6629rm -f conftest.err conftest.i conftest.$ac_ext
6630
6631done
6632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6633rm -f conftest.i conftest.err conftest.$ac_ext
6634if $ac_preproc_ok; then :
6635  break
6636fi
6637
6638    done
6639    ac_cv_prog_CPP=$CPP
6640
6641fi
6642  CPP=$ac_cv_prog_CPP
6643else
6644  ac_cv_prog_CPP=$CPP
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6647$as_echo "$CPP" >&6; }
6648ac_preproc_ok=false
6649for ac_c_preproc_warn_flag in '' yes
6650do
6651  # Use a header file that comes with gcc, so configuring glibc
6652  # with a fresh cross-compiler works.
6653  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6654  # <limits.h> exists even on freestanding compilers.
6655  # On the NeXT, cc -E runs the code through the compiler's parser,
6656  # not just through cpp. "Syntax error" is here to catch this case.
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659#ifdef __STDC__
6660# include <limits.h>
6661#else
6662# include <assert.h>
6663#endif
6664		     Syntax error
6665_ACEOF
6666if ac_fn_c_try_cpp "$LINENO"; then :
6667
6668else
6669  # Broken: fails on valid input.
6670continue
6671fi
6672rm -f conftest.err conftest.i conftest.$ac_ext
6673
6674  # OK, works on sane cases.  Now check whether nonexistent headers
6675  # can be detected and how.
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678#include <ac_nonexistent.h>
6679_ACEOF
6680if ac_fn_c_try_cpp "$LINENO"; then :
6681  # Broken: success on invalid input.
6682continue
6683else
6684  # Passes both tests.
6685ac_preproc_ok=:
6686break
6687fi
6688rm -f conftest.err conftest.i conftest.$ac_ext
6689
6690done
6691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6692rm -f conftest.i conftest.err conftest.$ac_ext
6693if $ac_preproc_ok; then :
6694
6695else
6696  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6698as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6699See \`config.log' for more details" "$LINENO" 5; }
6700fi
6701
6702ac_ext=c
6703ac_cpp='$CPP $CPPFLAGS'
6704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706ac_compiler_gnu=$ac_cv_c_compiler_gnu
6707
6708ac_ext=cpp
6709ac_cpp='$CXXCPP $CPPFLAGS'
6710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6713if test -z "$CXX"; then
6714  if test -n "$CCC"; then
6715    CXX=$CCC
6716  else
6717    if test -n "$ac_tool_prefix"; then
6718  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6719  do
6720    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723$as_echo_n "checking for $ac_word... " >&6; }
6724if ${ac_cv_prog_CXX+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  if test -n "$CXX"; then
6728  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733  IFS=$as_save_IFS
6734  test -z "$as_dir" && as_dir=.
6735    for ac_exec_ext in '' $ac_executable_extensions; do
6736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739    break 2
6740  fi
6741done
6742  done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747CXX=$ac_cv_prog_CXX
6748if test -n "$CXX"; then
6749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6750$as_echo "$CXX" >&6; }
6751else
6752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753$as_echo "no" >&6; }
6754fi
6755
6756
6757    test -n "$CXX" && break
6758  done
6759fi
6760if test -z "$CXX"; then
6761  ac_ct_CXX=$CXX
6762  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6763do
6764  # Extract the first word of "$ac_prog", so it can be a program name with args.
6765set dummy $ac_prog; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
6768if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  if test -n "$ac_ct_CXX"; then
6772  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777  IFS=$as_save_IFS
6778  test -z "$as_dir" && as_dir=.
6779    for ac_exec_ext in '' $ac_executable_extensions; do
6780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781    ac_cv_prog_ac_ct_CXX="$ac_prog"
6782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783    break 2
6784  fi
6785done
6786  done
6787IFS=$as_save_IFS
6788
6789fi
6790fi
6791ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6792if test -n "$ac_ct_CXX"; then
6793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6794$as_echo "$ac_ct_CXX" >&6; }
6795else
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
6798fi
6799
6800
6801  test -n "$ac_ct_CXX" && break
6802done
6803
6804  if test "x$ac_ct_CXX" = x; then
6805    CXX="g++"
6806  else
6807    case $cross_compiling:$ac_tool_warned in
6808yes:)
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811ac_tool_warned=yes ;;
6812esac
6813    CXX=$ac_ct_CXX
6814  fi
6815fi
6816
6817  fi
6818fi
6819# Provide some information about the compiler.
6820$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6821set X $ac_compile
6822ac_compiler=$2
6823for ac_option in --version -v -V -qversion; do
6824  { { ac_try="$ac_compiler $ac_option >&5"
6825case "(($ac_try" in
6826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827  *) ac_try_echo=$ac_try;;
6828esac
6829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6830$as_echo "$ac_try_echo"; } >&5
6831  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6832  ac_status=$?
6833  if test -s conftest.err; then
6834    sed '10a\
6835... rest of stderr output deleted ...
6836         10q' conftest.err >conftest.er1
6837    cat conftest.er1 >&5
6838  fi
6839  rm -f conftest.er1 conftest.err
6840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841  test $ac_status = 0; }
6842done
6843
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6845$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6846if ${ac_cv_cxx_compiler_gnu+:} false; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851
6852int
6853main ()
6854{
6855#ifndef __GNUC__
6856       choke me
6857#endif
6858
6859  ;
6860  return 0;
6861}
6862_ACEOF
6863if ac_fn_cxx_try_compile "$LINENO"; then :
6864  ac_compiler_gnu=yes
6865else
6866  ac_compiler_gnu=no
6867fi
6868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6870
6871fi
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6873$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6874if test $ac_compiler_gnu = yes; then
6875  GXX=yes
6876else
6877  GXX=
6878fi
6879ac_test_CXXFLAGS=${CXXFLAGS+set}
6880ac_save_CXXFLAGS=$CXXFLAGS
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6882$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6883if ${ac_cv_prog_cxx_g+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6887   ac_cxx_werror_flag=yes
6888   ac_cv_prog_cxx_g=no
6889   CXXFLAGS="-g"
6890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h.  */
6892
6893int
6894main ()
6895{
6896
6897  ;
6898  return 0;
6899}
6900_ACEOF
6901if ac_fn_cxx_try_compile "$LINENO"; then :
6902  ac_cv_prog_cxx_g=yes
6903else
6904  CXXFLAGS=""
6905      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906/* end confdefs.h.  */
6907
6908int
6909main ()
6910{
6911
6912  ;
6913  return 0;
6914}
6915_ACEOF
6916if ac_fn_cxx_try_compile "$LINENO"; then :
6917
6918else
6919  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6920	 CXXFLAGS="-g"
6921	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923
6924int
6925main ()
6926{
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932if ac_fn_cxx_try_compile "$LINENO"; then :
6933  ac_cv_prog_cxx_g=yes
6934fi
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936fi
6937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6941fi
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6943$as_echo "$ac_cv_prog_cxx_g" >&6; }
6944if test "$ac_test_CXXFLAGS" = set; then
6945  CXXFLAGS=$ac_save_CXXFLAGS
6946elif test $ac_cv_prog_cxx_g = yes; then
6947  if test "$GXX" = yes; then
6948    CXXFLAGS="-g -O2"
6949  else
6950    CXXFLAGS="-g"
6951  fi
6952else
6953  if test "$GXX" = yes; then
6954    CXXFLAGS="-O2"
6955  else
6956    CXXFLAGS=
6957  fi
6958fi
6959ac_ext=c
6960ac_cpp='$CPP $CPPFLAGS'
6961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964
6965depcc="$CXX"  am_compiler_list=
6966
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6968$as_echo_n "checking dependency style of $depcc... " >&6; }
6969if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6973  # We make a subdir and do the tests there.  Otherwise we can end up
6974  # making bogus files that we don't know about and never remove.  For
6975  # instance it was reported that on HP-UX the gcc test will end up
6976  # making a dummy file named 'D' -- because '-MD' means "put the output
6977  # in D".
6978  rm -rf conftest.dir
6979  mkdir conftest.dir
6980  # Copy depcomp to subdir because otherwise we won't find it if we're
6981  # using a relative directory.
6982  cp "$am_depcomp" conftest.dir
6983  cd conftest.dir
6984  # We will build objects and dependencies in a subdirectory because
6985  # it helps to detect inapplicable dependency modes.  For instance
6986  # both Tru64's cc and ICC support -MD to output dependencies as a
6987  # side effect of compilation, but ICC will put the dependencies in
6988  # the current directory while Tru64 will put them in the object
6989  # directory.
6990  mkdir sub
6991
6992  am_cv_CXX_dependencies_compiler_type=none
6993  if test "$am_compiler_list" = ""; then
6994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6995  fi
6996  am__universal=false
6997  case " $depcc " in #(
6998     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6999     esac
7000
7001  for depmode in $am_compiler_list; do
7002    # Setup a source with many dependencies, because some compilers
7003    # like to wrap large dependency lists on column 80 (with \), and
7004    # we should not choose a depcomp mode which is confused by this.
7005    #
7006    # We need to recreate these files for each test, as the compiler may
7007    # overwrite some of them when testing with obscure command lines.
7008    # This happens at least with the AIX C compiler.
7009    : > sub/conftest.c
7010    for i in 1 2 3 4 5 6; do
7011      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7012      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7013      # Solaris 10 /bin/sh.
7014      echo '/* dummy */' > sub/conftst$i.h
7015    done
7016    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7017
7018    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7019    # mode.  It turns out that the SunPro C++ compiler does not properly
7020    # handle '-M -o', and we need to detect this.  Also, some Intel
7021    # versions had trouble with output in subdirs.
7022    am__obj=sub/conftest.${OBJEXT-o}
7023    am__minus_obj="-o $am__obj"
7024    case $depmode in
7025    gcc)
7026      # This depmode causes a compiler race in universal mode.
7027      test "$am__universal" = false || continue
7028      ;;
7029    nosideeffect)
7030      # After this tag, mechanisms are not by side-effect, so they'll
7031      # only be used when explicitly requested.
7032      if test "x$enable_dependency_tracking" = xyes; then
7033	continue
7034      else
7035	break
7036      fi
7037      ;;
7038    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7039      # This compiler won't grok '-c -o', but also, the minuso test has
7040      # not run yet.  These depmodes are late enough in the game, and
7041      # so weak that their functioning should not be impacted.
7042      am__obj=conftest.${OBJEXT-o}
7043      am__minus_obj=
7044      ;;
7045    none) break ;;
7046    esac
7047    if depmode=$depmode \
7048       source=sub/conftest.c object=$am__obj \
7049       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7050       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7051         >/dev/null 2>conftest.err &&
7052       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7053       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7054       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7055       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7056      # icc doesn't choke on unknown options, it will just issue warnings
7057      # or remarks (even with -Werror).  So we grep stderr for any message
7058      # that says an option was ignored or not supported.
7059      # When given -MP, icc 7.0 and 7.1 complain thusly:
7060      #   icc: Command line warning: ignoring option '-M'; no argument required
7061      # The diagnosis changed in icc 8.0:
7062      #   icc: Command line remark: option '-MP' not supported
7063      if (grep 'ignoring option' conftest.err ||
7064          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7065        am_cv_CXX_dependencies_compiler_type=$depmode
7066        break
7067      fi
7068    fi
7069  done
7070
7071  cd ..
7072  rm -rf conftest.dir
7073else
7074  am_cv_CXX_dependencies_compiler_type=none
7075fi
7076
7077fi
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7079$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7080CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7081
7082 if
7083  test "x$enable_dependency_tracking" != xno \
7084  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7085  am__fastdepCXX_TRUE=
7086  am__fastdepCXX_FALSE='#'
7087else
7088  am__fastdepCXX_TRUE='#'
7089  am__fastdepCXX_FALSE=
7090fi
7091
7092 # lucene plugin needs this
7093if test -n "$ac_tool_prefix"; then
7094  # Extract the first word of "${ac_tool_prefix}flex", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}flex; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if ${ac_cv_prog_FLEX+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  if test -n "$FLEX"; then
7102  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107  IFS=$as_save_IFS
7108  test -z "$as_dir" && as_dir=.
7109    for ac_exec_ext in '' $ac_executable_extensions; do
7110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111    ac_cv_prog_FLEX="${ac_tool_prefix}flex"
7112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113    break 2
7114  fi
7115done
7116  done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121FLEX=$ac_cv_prog_FLEX
7122if test -n "$FLEX"; then
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7124$as_echo "$FLEX" >&6; }
7125else
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129
7130
7131fi
7132if test -z "$ac_cv_prog_FLEX"; then
7133  ac_ct_FLEX=$FLEX
7134  # Extract the first word of "flex", so it can be a program name with args.
7135set dummy flex; ac_word=$2
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
7138if ${ac_cv_prog_ac_ct_FLEX+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  if test -n "$ac_ct_FLEX"; then
7142  ac_cv_prog_ac_ct_FLEX="$ac_ct_FLEX" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147  IFS=$as_save_IFS
7148  test -z "$as_dir" && as_dir=.
7149    for ac_exec_ext in '' $ac_executable_extensions; do
7150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151    ac_cv_prog_ac_ct_FLEX="flex"
7152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153    break 2
7154  fi
7155done
7156  done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161ac_ct_FLEX=$ac_cv_prog_ac_ct_FLEX
7162if test -n "$ac_ct_FLEX"; then
7163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FLEX" >&5
7164$as_echo "$ac_ct_FLEX" >&6; }
7165else
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
7168fi
7169
7170  if test "x$ac_ct_FLEX" = x; then
7171    FLEX=":"
7172  else
7173    case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177ac_tool_warned=yes ;;
7178esac
7179    FLEX=$ac_ct_FLEX
7180  fi
7181else
7182  FLEX="$ac_cv_prog_FLEX"
7183fi
7184
7185if test -n "$ac_tool_prefix"; then
7186  # Extract the first word of "${ac_tool_prefix}bison", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}bison; ac_word=$2
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if ${ac_cv_prog_BISON+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  if test -n "$BISON"; then
7194  ac_cv_prog_BISON="$BISON" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201    for ac_exec_ext in '' $ac_executable_extensions; do
7202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203    ac_cv_prog_BISON="${ac_tool_prefix}bison"
7204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208  done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
7213BISON=$ac_cv_prog_BISON
7214if test -n "$BISON"; then
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7216$as_echo "$BISON" >&6; }
7217else
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222
7223fi
7224if test -z "$ac_cv_prog_BISON"; then
7225  ac_ct_BISON=$BISON
7226  # Extract the first word of "bison", so it can be a program name with args.
7227set dummy bison; ac_word=$2
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if ${ac_cv_prog_ac_ct_BISON+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  if test -n "$ac_ct_BISON"; then
7234  ac_cv_prog_ac_ct_BISON="$ac_ct_BISON" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239  IFS=$as_save_IFS
7240  test -z "$as_dir" && as_dir=.
7241    for ac_exec_ext in '' $ac_executable_extensions; do
7242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243    ac_cv_prog_ac_ct_BISON="bison"
7244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245    break 2
7246  fi
7247done
7248  done
7249IFS=$as_save_IFS
7250
7251fi
7252fi
7253ac_ct_BISON=$ac_cv_prog_ac_ct_BISON
7254if test -n "$ac_ct_BISON"; then
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BISON" >&5
7256$as_echo "$ac_ct_BISON" >&6; }
7257else
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
7260fi
7261
7262  if test "x$ac_ct_BISON" = x; then
7263    BISON=":"
7264  else
7265    case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271    BISON=$ac_ct_BISON
7272  fi
7273else
7274  BISON="$ac_cv_prog_BISON"
7275fi
7276
7277if test "$BISON" = ":" && test ! -e src/lib/event-filter-parser.h; then :
7278  as_fn_error $? "Bison is required when building from git" "$LINENO" 5
7279]
7280fi
7281if test "$FLEX" = ":" && test ! -e src/lib/event-filter-lexer.c; then :
7282  as_fn_error $? "flex is required when building from git" "$LINENO" 5
7283]
7284fi
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7287$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7288if ${ac_cv_path_GREP+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  if test -z "$GREP"; then
7292  ac_path_GREP_found=false
7293  # Loop through the user's path and test for each of PROGNAME-LIST
7294  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7296do
7297  IFS=$as_save_IFS
7298  test -z "$as_dir" && as_dir=.
7299    for ac_prog in grep ggrep; do
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7302      as_fn_executable_p "$ac_path_GREP" || continue
7303# Check for GNU ac_path_GREP and select it if it is found.
7304  # Check for GNU $ac_path_GREP
7305case `"$ac_path_GREP" --version 2>&1` in
7306*GNU*)
7307  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7308*)
7309  ac_count=0
7310  $as_echo_n 0123456789 >"conftest.in"
7311  while :
7312  do
7313    cat "conftest.in" "conftest.in" >"conftest.tmp"
7314    mv "conftest.tmp" "conftest.in"
7315    cp "conftest.in" "conftest.nl"
7316    $as_echo 'GREP' >> "conftest.nl"
7317    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7318    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7319    as_fn_arith $ac_count + 1 && ac_count=$as_val
7320    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7321      # Best one so far, save it but keep looking for a better one
7322      ac_cv_path_GREP="$ac_path_GREP"
7323      ac_path_GREP_max=$ac_count
7324    fi
7325    # 10*(2^10) chars as input seems more than enough
7326    test $ac_count -gt 10 && break
7327  done
7328  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7329esac
7330
7331      $ac_path_GREP_found && break 3
7332    done
7333  done
7334  done
7335IFS=$as_save_IFS
7336  if test -z "$ac_cv_path_GREP"; then
7337    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7338  fi
7339else
7340  ac_cv_path_GREP=$GREP
7341fi
7342
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7345$as_echo "$ac_cv_path_GREP" >&6; }
7346 GREP="$ac_cv_path_GREP"
7347
7348
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7350$as_echo_n "checking for egrep... " >&6; }
7351if ${ac_cv_path_EGREP+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7355   then ac_cv_path_EGREP="$GREP -E"
7356   else
7357     if test -z "$EGREP"; then
7358  ac_path_EGREP_found=false
7359  # Loop through the user's path and test for each of PROGNAME-LIST
7360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365    for ac_prog in egrep; do
7366    for ac_exec_ext in '' $ac_executable_extensions; do
7367      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7368      as_fn_executable_p "$ac_path_EGREP" || continue
7369# Check for GNU ac_path_EGREP and select it if it is found.
7370  # Check for GNU $ac_path_EGREP
7371case `"$ac_path_EGREP" --version 2>&1` in
7372*GNU*)
7373  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7374*)
7375  ac_count=0
7376  $as_echo_n 0123456789 >"conftest.in"
7377  while :
7378  do
7379    cat "conftest.in" "conftest.in" >"conftest.tmp"
7380    mv "conftest.tmp" "conftest.in"
7381    cp "conftest.in" "conftest.nl"
7382    $as_echo 'EGREP' >> "conftest.nl"
7383    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7384    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7385    as_fn_arith $ac_count + 1 && ac_count=$as_val
7386    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7387      # Best one so far, save it but keep looking for a better one
7388      ac_cv_path_EGREP="$ac_path_EGREP"
7389      ac_path_EGREP_max=$ac_count
7390    fi
7391    # 10*(2^10) chars as input seems more than enough
7392    test $ac_count -gt 10 && break
7393  done
7394  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7395esac
7396
7397      $ac_path_EGREP_found && break 3
7398    done
7399  done
7400  done
7401IFS=$as_save_IFS
7402  if test -z "$ac_cv_path_EGREP"; then
7403    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7404  fi
7405else
7406  ac_cv_path_EGREP=$EGREP
7407fi
7408
7409   fi
7410fi
7411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7412$as_echo "$ac_cv_path_EGREP" >&6; }
7413 EGREP="$ac_cv_path_EGREP"
7414
7415
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7417$as_echo_n "checking for ANSI C header files... " >&6; }
7418if ${ac_cv_header_stdc+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422/* end confdefs.h.  */
7423#include <stdlib.h>
7424#include <stdarg.h>
7425#include <string.h>
7426#include <float.h>
7427
7428int
7429main ()
7430{
7431
7432  ;
7433  return 0;
7434}
7435_ACEOF
7436if ac_fn_c_try_compile "$LINENO"; then :
7437  ac_cv_header_stdc=yes
7438else
7439  ac_cv_header_stdc=no
7440fi
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442
7443if test $ac_cv_header_stdc = yes; then
7444  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h.  */
7447#include <string.h>
7448
7449_ACEOF
7450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451  $EGREP "memchr" >/dev/null 2>&1; then :
7452
7453else
7454  ac_cv_header_stdc=no
7455fi
7456rm -f conftest*
7457
7458fi
7459
7460if test $ac_cv_header_stdc = yes; then
7461  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h.  */
7464#include <stdlib.h>
7465
7466_ACEOF
7467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7468  $EGREP "free" >/dev/null 2>&1; then :
7469
7470else
7471  ac_cv_header_stdc=no
7472fi
7473rm -f conftest*
7474
7475fi
7476
7477if test $ac_cv_header_stdc = yes; then
7478  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7479  if test "$cross_compiling" = yes; then :
7480  :
7481else
7482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484#include <ctype.h>
7485#include <stdlib.h>
7486#if ((' ' & 0x0FF) == 0x020)
7487# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7488# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7489#else
7490# define ISLOWER(c) \
7491		   (('a' <= (c) && (c) <= 'i') \
7492		     || ('j' <= (c) && (c) <= 'r') \
7493		     || ('s' <= (c) && (c) <= 'z'))
7494# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7495#endif
7496
7497#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7498int
7499main ()
7500{
7501  int i;
7502  for (i = 0; i < 256; i++)
7503    if (XOR (islower (i), ISLOWER (i))
7504	|| toupper (i) != TOUPPER (i))
7505      return 2;
7506  return 0;
7507}
7508_ACEOF
7509if ac_fn_c_try_run "$LINENO"; then :
7510
7511else
7512  ac_cv_header_stdc=no
7513fi
7514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7515  conftest.$ac_objext conftest.beam conftest.$ac_ext
7516fi
7517
7518fi
7519fi
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7521$as_echo "$ac_cv_header_stdc" >&6; }
7522if test $ac_cv_header_stdc = yes; then
7523
7524$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7525
7526fi
7527
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7529$as_echo_n "checking for inline... " >&6; }
7530if ${ac_cv_c_inline+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  ac_cv_c_inline=no
7534for ac_kw in inline __inline__ __inline; do
7535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h.  */
7537#ifndef __cplusplus
7538typedef int foo_t;
7539static $ac_kw foo_t static_foo () {return 0; }
7540$ac_kw foo_t foo () {return 0; }
7541#endif
7542
7543_ACEOF
7544if ac_fn_c_try_compile "$LINENO"; then :
7545  ac_cv_c_inline=$ac_kw
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548  test "$ac_cv_c_inline" != no && break
7549done
7550
7551fi
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7553$as_echo "$ac_cv_c_inline" >&6; }
7554
7555case $ac_cv_c_inline in
7556  inline | yes) ;;
7557  *)
7558    case $ac_cv_c_inline in
7559      no) ac_val=;;
7560      *) ac_val=$ac_cv_c_inline;;
7561    esac
7562    cat >>confdefs.h <<_ACEOF
7563#ifndef __cplusplus
7564#define inline $ac_val
7565#endif
7566_ACEOF
7567    ;;
7568esac
7569
7570case `pwd` in
7571  *\ * | *\	*)
7572    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7573$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7574esac
7575
7576
7577
7578macro_version='2.4.6'
7579macro_revision='2.4.6'
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593ltmain=$ac_aux_dir/ltmain.sh
7594
7595# Make sure we can run config.sub.
7596$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7597  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7598
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7600$as_echo_n "checking build system type... " >&6; }
7601if ${ac_cv_build+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  ac_build_alias=$build_alias
7605test "x$ac_build_alias" = x &&
7606  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7607test "x$ac_build_alias" = x &&
7608  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7609ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7610  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7611
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7614$as_echo "$ac_cv_build" >&6; }
7615case $ac_cv_build in
7616*-*-*) ;;
7617*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7618esac
7619build=$ac_cv_build
7620ac_save_IFS=$IFS; IFS='-'
7621set x $ac_cv_build
7622shift
7623build_cpu=$1
7624build_vendor=$2
7625shift; shift
7626# Remember, the first character of IFS is used to create $*,
7627# except with old shells:
7628build_os=$*
7629IFS=$ac_save_IFS
7630case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7631
7632
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7634$as_echo_n "checking host system type... " >&6; }
7635if ${ac_cv_host+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  if test "x$host_alias" = x; then
7639  ac_cv_host=$ac_cv_build
7640else
7641  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7642    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7643fi
7644
7645fi
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7647$as_echo "$ac_cv_host" >&6; }
7648case $ac_cv_host in
7649*-*-*) ;;
7650*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7651esac
7652host=$ac_cv_host
7653ac_save_IFS=$IFS; IFS='-'
7654set x $ac_cv_host
7655shift
7656host_cpu=$1
7657host_vendor=$2
7658shift; shift
7659# Remember, the first character of IFS is used to create $*,
7660# except with old shells:
7661host_os=$*
7662IFS=$ac_save_IFS
7663case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7664
7665
7666# Backslashify metacharacters that are still active within
7667# double-quoted strings.
7668sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7669
7670# Same as above, but do not quote variable references.
7671double_quote_subst='s/\(["`\\]\)/\\\1/g'
7672
7673# Sed substitution to delay expansion of an escaped shell variable in a
7674# double_quote_subst'ed string.
7675delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7676
7677# Sed substitution to delay expansion of an escaped single quote.
7678delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7679
7680# Sed substitution to avoid accidental globbing in evaled expressions
7681no_glob_subst='s/\*/\\\*/g'
7682
7683ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7684ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7685ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7686
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7688$as_echo_n "checking how to print strings... " >&6; }
7689# Test print first, because it will be a builtin if present.
7690if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7691   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7692  ECHO='print -r --'
7693elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7694  ECHO='printf %s\n'
7695else
7696  # Use this function as a fallback that always works.
7697  func_fallback_echo ()
7698  {
7699    eval 'cat <<_LTECHO_EOF
7700$1
7701_LTECHO_EOF'
7702  }
7703  ECHO='func_fallback_echo'
7704fi
7705
7706# func_echo_all arg...
7707# Invoke $ECHO with all args, space-separated.
7708func_echo_all ()
7709{
7710    $ECHO ""
7711}
7712
7713case $ECHO in
7714  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7715$as_echo "printf" >&6; } ;;
7716  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7717$as_echo "print -r" >&6; } ;;
7718  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7719$as_echo "cat" >&6; } ;;
7720esac
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7736$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7737if ${ac_cv_path_SED+:} false; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7741     for ac_i in 1 2 3 4 5 6 7; do
7742       ac_script="$ac_script$as_nl$ac_script"
7743     done
7744     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7745     { ac_script=; unset ac_script;}
7746     if test -z "$SED"; then
7747  ac_path_SED_found=false
7748  # Loop through the user's path and test for each of PROGNAME-LIST
7749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754    for ac_prog in sed gsed; do
7755    for ac_exec_ext in '' $ac_executable_extensions; do
7756      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7757      as_fn_executable_p "$ac_path_SED" || continue
7758# Check for GNU ac_path_SED and select it if it is found.
7759  # Check for GNU $ac_path_SED
7760case `"$ac_path_SED" --version 2>&1` in
7761*GNU*)
7762  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7763*)
7764  ac_count=0
7765  $as_echo_n 0123456789 >"conftest.in"
7766  while :
7767  do
7768    cat "conftest.in" "conftest.in" >"conftest.tmp"
7769    mv "conftest.tmp" "conftest.in"
7770    cp "conftest.in" "conftest.nl"
7771    $as_echo '' >> "conftest.nl"
7772    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7773    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7774    as_fn_arith $ac_count + 1 && ac_count=$as_val
7775    if test $ac_count -gt ${ac_path_SED_max-0}; then
7776      # Best one so far, save it but keep looking for a better one
7777      ac_cv_path_SED="$ac_path_SED"
7778      ac_path_SED_max=$ac_count
7779    fi
7780    # 10*(2^10) chars as input seems more than enough
7781    test $ac_count -gt 10 && break
7782  done
7783  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7784esac
7785
7786      $ac_path_SED_found && break 3
7787    done
7788  done
7789  done
7790IFS=$as_save_IFS
7791  if test -z "$ac_cv_path_SED"; then
7792    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7793  fi
7794else
7795  ac_cv_path_SED=$SED
7796fi
7797
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7800$as_echo "$ac_cv_path_SED" >&6; }
7801 SED="$ac_cv_path_SED"
7802  rm -f conftest.sed
7803
7804test -z "$SED" && SED=sed
7805Xsed="$SED -e 1s/^X//"
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7818$as_echo_n "checking for fgrep... " >&6; }
7819if ${ac_cv_path_FGREP+:} false; then :
7820  $as_echo_n "(cached) " >&6
7821else
7822  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7823   then ac_cv_path_FGREP="$GREP -F"
7824   else
7825     if test -z "$FGREP"; then
7826  ac_path_FGREP_found=false
7827  # Loop through the user's path and test for each of PROGNAME-LIST
7828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7830do
7831  IFS=$as_save_IFS
7832  test -z "$as_dir" && as_dir=.
7833    for ac_prog in fgrep; do
7834    for ac_exec_ext in '' $ac_executable_extensions; do
7835      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7836      as_fn_executable_p "$ac_path_FGREP" || continue
7837# Check for GNU ac_path_FGREP and select it if it is found.
7838  # Check for GNU $ac_path_FGREP
7839case `"$ac_path_FGREP" --version 2>&1` in
7840*GNU*)
7841  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7842*)
7843  ac_count=0
7844  $as_echo_n 0123456789 >"conftest.in"
7845  while :
7846  do
7847    cat "conftest.in" "conftest.in" >"conftest.tmp"
7848    mv "conftest.tmp" "conftest.in"
7849    cp "conftest.in" "conftest.nl"
7850    $as_echo 'FGREP' >> "conftest.nl"
7851    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7852    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7853    as_fn_arith $ac_count + 1 && ac_count=$as_val
7854    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7855      # Best one so far, save it but keep looking for a better one
7856      ac_cv_path_FGREP="$ac_path_FGREP"
7857      ac_path_FGREP_max=$ac_count
7858    fi
7859    # 10*(2^10) chars as input seems more than enough
7860    test $ac_count -gt 10 && break
7861  done
7862  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7863esac
7864
7865      $ac_path_FGREP_found && break 3
7866    done
7867  done
7868  done
7869IFS=$as_save_IFS
7870  if test -z "$ac_cv_path_FGREP"; then
7871    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7872  fi
7873else
7874  ac_cv_path_FGREP=$FGREP
7875fi
7876
7877   fi
7878fi
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7880$as_echo "$ac_cv_path_FGREP" >&6; }
7881 FGREP="$ac_cv_path_FGREP"
7882
7883
7884test -z "$GREP" && GREP=grep
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904# Check whether --with-gnu-ld was given.
7905if test "${with_gnu_ld+set}" = set; then :
7906  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7907else
7908  with_gnu_ld=no
7909fi
7910
7911ac_prog=ld
7912if test yes = "$GCC"; then
7913  # Check if gcc -print-prog-name=ld gives a path.
7914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7915$as_echo_n "checking for ld used by $CC... " >&6; }
7916  case $host in
7917  *-*-mingw*)
7918    # gcc leaves a trailing carriage return, which upsets mingw
7919    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7920  *)
7921    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7922  esac
7923  case $ac_prog in
7924    # Accept absolute paths.
7925    [\\/]* | ?:[\\/]*)
7926      re_direlt='/[^/][^/]*/\.\./'
7927      # Canonicalize the pathname of ld
7928      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7929      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7930	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7931      done
7932      test -z "$LD" && LD=$ac_prog
7933      ;;
7934  "")
7935    # If it fails, then pretend we aren't using GCC.
7936    ac_prog=ld
7937    ;;
7938  *)
7939    # If it is relative, then search for the first ld in PATH.
7940    with_gnu_ld=unknown
7941    ;;
7942  esac
7943elif test yes = "$with_gnu_ld"; then
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7945$as_echo_n "checking for GNU ld... " >&6; }
7946else
7947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7948$as_echo_n "checking for non-GNU ld... " >&6; }
7949fi
7950if ${lt_cv_path_LD+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  if test -z "$LD"; then
7954  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7955  for ac_dir in $PATH; do
7956    IFS=$lt_save_ifs
7957    test -z "$ac_dir" && ac_dir=.
7958    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7959      lt_cv_path_LD=$ac_dir/$ac_prog
7960      # Check to see if the program is GNU ld.  I'd rather use --version,
7961      # but apparently some variants of GNU ld only accept -v.
7962      # Break only if it was the GNU/non-GNU ld that we prefer.
7963      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7964      *GNU* | *'with BFD'*)
7965	test no != "$with_gnu_ld" && break
7966	;;
7967      *)
7968	test yes != "$with_gnu_ld" && break
7969	;;
7970      esac
7971    fi
7972  done
7973  IFS=$lt_save_ifs
7974else
7975  lt_cv_path_LD=$LD # Let the user override the test with a path.
7976fi
7977fi
7978
7979LD=$lt_cv_path_LD
7980if test -n "$LD"; then
7981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7982$as_echo "$LD" >&6; }
7983else
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7989$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7990if ${lt_cv_prog_gnu_ld+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7994case `$LD -v 2>&1 </dev/null` in
7995*GNU* | *'with BFD'*)
7996  lt_cv_prog_gnu_ld=yes
7997  ;;
7998*)
7999  lt_cv_prog_gnu_ld=no
8000  ;;
8001esac
8002fi
8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8004$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8005with_gnu_ld=$lt_cv_prog_gnu_ld
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8016$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8017if ${lt_cv_path_NM+:} false; then :
8018  $as_echo_n "(cached) " >&6
8019else
8020  if test -n "$NM"; then
8021  # Let the user override the test.
8022  lt_cv_path_NM=$NM
8023else
8024  lt_nm_to_check=${ac_tool_prefix}nm
8025  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8026    lt_nm_to_check="$lt_nm_to_check nm"
8027  fi
8028  for lt_tmp_nm in $lt_nm_to_check; do
8029    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8030    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8031      IFS=$lt_save_ifs
8032      test -z "$ac_dir" && ac_dir=.
8033      tmp_nm=$ac_dir/$lt_tmp_nm
8034      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8035	# Check to see if the nm accepts a BSD-compat flag.
8036	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8037	#   nm: unknown option "B" ignored
8038	# Tru64's nm complains that /dev/null is an invalid object file
8039	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8040	case $build_os in
8041	mingw*) lt_bad_file=conftest.nm/nofile ;;
8042	*) lt_bad_file=/dev/null ;;
8043	esac
8044	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8045	*$lt_bad_file* | *'Invalid file or object type'*)
8046	  lt_cv_path_NM="$tmp_nm -B"
8047	  break 2
8048	  ;;
8049	*)
8050	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8051	  */dev/null*)
8052	    lt_cv_path_NM="$tmp_nm -p"
8053	    break 2
8054	    ;;
8055	  *)
8056	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8057	    continue # so that we can try to find one that supports BSD flags
8058	    ;;
8059	  esac
8060	  ;;
8061	esac
8062      fi
8063    done
8064    IFS=$lt_save_ifs
8065  done
8066  : ${lt_cv_path_NM=no}
8067fi
8068fi
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8070$as_echo "$lt_cv_path_NM" >&6; }
8071if test no != "$lt_cv_path_NM"; then
8072  NM=$lt_cv_path_NM
8073else
8074  # Didn't find any BSD compatible name lister, look for dumpbin.
8075  if test -n "$DUMPBIN"; then :
8076    # Let the user override the test.
8077  else
8078    if test -n "$ac_tool_prefix"; then
8079  for ac_prog in dumpbin "link -dump"
8080  do
8081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084$as_echo_n "checking for $ac_word... " >&6; }
8085if ${ac_cv_prog_DUMPBIN+:} false; then :
8086  $as_echo_n "(cached) " >&6
8087else
8088  if test -n "$DUMPBIN"; then
8089  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8090else
8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092for as_dir in $PATH
8093do
8094  IFS=$as_save_IFS
8095  test -z "$as_dir" && as_dir=.
8096    for ac_exec_ext in '' $ac_executable_extensions; do
8097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100    break 2
8101  fi
8102done
8103  done
8104IFS=$as_save_IFS
8105
8106fi
8107fi
8108DUMPBIN=$ac_cv_prog_DUMPBIN
8109if test -n "$DUMPBIN"; then
8110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8111$as_echo "$DUMPBIN" >&6; }
8112else
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115fi
8116
8117
8118    test -n "$DUMPBIN" && break
8119  done
8120fi
8121if test -z "$DUMPBIN"; then
8122  ac_ct_DUMPBIN=$DUMPBIN
8123  for ac_prog in dumpbin "link -dump"
8124do
8125  # Extract the first word of "$ac_prog", so it can be a program name with args.
8126set dummy $ac_prog; ac_word=$2
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128$as_echo_n "checking for $ac_word... " >&6; }
8129if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8130  $as_echo_n "(cached) " >&6
8131else
8132  if test -n "$ac_ct_DUMPBIN"; then
8133  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8134else
8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138  IFS=$as_save_IFS
8139  test -z "$as_dir" && as_dir=.
8140    for ac_exec_ext in '' $ac_executable_extensions; do
8141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144    break 2
8145  fi
8146done
8147  done
8148IFS=$as_save_IFS
8149
8150fi
8151fi
8152ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8153if test -n "$ac_ct_DUMPBIN"; then
8154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8155$as_echo "$ac_ct_DUMPBIN" >&6; }
8156else
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159fi
8160
8161
8162  test -n "$ac_ct_DUMPBIN" && break
8163done
8164
8165  if test "x$ac_ct_DUMPBIN" = x; then
8166    DUMPBIN=":"
8167  else
8168    case $cross_compiling:$ac_tool_warned in
8169yes:)
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172ac_tool_warned=yes ;;
8173esac
8174    DUMPBIN=$ac_ct_DUMPBIN
8175  fi
8176fi
8177
8178    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8179    *COFF*)
8180      DUMPBIN="$DUMPBIN -symbols -headers"
8181      ;;
8182    *)
8183      DUMPBIN=:
8184      ;;
8185    esac
8186  fi
8187
8188  if test : != "$DUMPBIN"; then
8189    NM=$DUMPBIN
8190  fi
8191fi
8192test -z "$NM" && NM=nm
8193
8194
8195
8196
8197
8198
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8200$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8201if ${lt_cv_nm_interface+:} false; then :
8202  $as_echo_n "(cached) " >&6
8203else
8204  lt_cv_nm_interface="BSD nm"
8205  echo "int some_variable = 0;" > conftest.$ac_ext
8206  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8207  (eval "$ac_compile" 2>conftest.err)
8208  cat conftest.err >&5
8209  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8210  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8211  cat conftest.err >&5
8212  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8213  cat conftest.out >&5
8214  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8215    lt_cv_nm_interface="MS dumpbin"
8216  fi
8217  rm -f conftest*
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8220$as_echo "$lt_cv_nm_interface" >&6; }
8221
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8223$as_echo_n "checking whether ln -s works... " >&6; }
8224LN_S=$as_ln_s
8225if test "$LN_S" = "ln -s"; then
8226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8227$as_echo "yes" >&6; }
8228else
8229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8230$as_echo "no, using $LN_S" >&6; }
8231fi
8232
8233# find the maximum length of command line arguments
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8235$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8236if ${lt_cv_sys_max_cmd_len+:} false; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239    i=0
8240  teststring=ABCD
8241
8242  case $build_os in
8243  msdosdjgpp*)
8244    # On DJGPP, this test can blow up pretty badly due to problems in libc
8245    # (any single argument exceeding 2000 bytes causes a buffer overrun
8246    # during glob expansion).  Even if it were fixed, the result of this
8247    # check would be larger than it should be.
8248    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8249    ;;
8250
8251  gnu*)
8252    # Under GNU Hurd, this test is not required because there is
8253    # no limit to the length of command line arguments.
8254    # Libtool will interpret -1 as no limit whatsoever
8255    lt_cv_sys_max_cmd_len=-1;
8256    ;;
8257
8258  cygwin* | mingw* | cegcc*)
8259    # On Win9x/ME, this test blows up -- it succeeds, but takes
8260    # about 5 minutes as the teststring grows exponentially.
8261    # Worse, since 9x/ME are not pre-emptively multitasking,
8262    # you end up with a "frozen" computer, even though with patience
8263    # the test eventually succeeds (with a max line length of 256k).
8264    # Instead, let's just punt: use the minimum linelength reported by
8265    # all of the supported platforms: 8192 (on NT/2K/XP).
8266    lt_cv_sys_max_cmd_len=8192;
8267    ;;
8268
8269  mint*)
8270    # On MiNT this can take a long time and run out of memory.
8271    lt_cv_sys_max_cmd_len=8192;
8272    ;;
8273
8274  amigaos*)
8275    # On AmigaOS with pdksh, this test takes hours, literally.
8276    # So we just punt and use a minimum line length of 8192.
8277    lt_cv_sys_max_cmd_len=8192;
8278    ;;
8279
8280  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8281    # This has been around since 386BSD, at least.  Likely further.
8282    if test -x /sbin/sysctl; then
8283      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8284    elif test -x /usr/sbin/sysctl; then
8285      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8286    else
8287      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8288    fi
8289    # And add a safety zone
8290    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8291    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8292    ;;
8293
8294  interix*)
8295    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8296    lt_cv_sys_max_cmd_len=196608
8297    ;;
8298
8299  os2*)
8300    # The test takes a long time on OS/2.
8301    lt_cv_sys_max_cmd_len=8192
8302    ;;
8303
8304  osf*)
8305    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8306    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8307    # nice to cause kernel panics so lets avoid the loop below.
8308    # First set a reasonable default.
8309    lt_cv_sys_max_cmd_len=16384
8310    #
8311    if test -x /sbin/sysconfig; then
8312      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8313        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8314      esac
8315    fi
8316    ;;
8317  sco3.2v5*)
8318    lt_cv_sys_max_cmd_len=102400
8319    ;;
8320  sysv5* | sco5v6* | sysv4.2uw2*)
8321    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8322    if test -n "$kargmax"; then
8323      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8324    else
8325      lt_cv_sys_max_cmd_len=32768
8326    fi
8327    ;;
8328  *)
8329    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8330    if test -n "$lt_cv_sys_max_cmd_len" && \
8331       test undefined != "$lt_cv_sys_max_cmd_len"; then
8332      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8333      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8334    else
8335      # Make teststring a little bigger before we do anything with it.
8336      # a 1K string should be a reasonable start.
8337      for i in 1 2 3 4 5 6 7 8; do
8338        teststring=$teststring$teststring
8339      done
8340      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8341      # If test is not a shell built-in, we'll probably end up computing a
8342      # maximum length that is only half of the actual maximum length, but
8343      # we can't tell.
8344      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8345	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8346	      test 17 != "$i" # 1/2 MB should be enough
8347      do
8348        i=`expr $i + 1`
8349        teststring=$teststring$teststring
8350      done
8351      # Only check the string length outside the loop.
8352      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8353      teststring=
8354      # Add a significant safety factor because C++ compilers can tack on
8355      # massive amounts of additional arguments before passing them to the
8356      # linker.  It appears as though 1/2 is a usable value.
8357      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8358    fi
8359    ;;
8360  esac
8361
8362fi
8363
8364if test -n "$lt_cv_sys_max_cmd_len"; then
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8366$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8367else
8368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8369$as_echo "none" >&6; }
8370fi
8371max_cmd_len=$lt_cv_sys_max_cmd_len
8372
8373
8374
8375
8376
8377
8378: ${CP="cp -f"}
8379: ${MV="mv -f"}
8380: ${RM="rm -f"}
8381
8382if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8383  lt_unset=unset
8384else
8385  lt_unset=false
8386fi
8387
8388
8389
8390
8391
8392# test EBCDIC or ASCII
8393case `echo X|tr X '\101'` in
8394 A) # ASCII based system
8395    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8396  lt_SP2NL='tr \040 \012'
8397  lt_NL2SP='tr \015\012 \040\040'
8398  ;;
8399 *) # EBCDIC based system
8400  lt_SP2NL='tr \100 \n'
8401  lt_NL2SP='tr \r\n \100\100'
8402  ;;
8403esac
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8414$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8415if ${lt_cv_to_host_file_cmd+:} false; then :
8416  $as_echo_n "(cached) " >&6
8417else
8418  case $host in
8419  *-*-mingw* )
8420    case $build in
8421      *-*-mingw* ) # actually msys
8422        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8423        ;;
8424      *-*-cygwin* )
8425        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8426        ;;
8427      * ) # otherwise, assume *nix
8428        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8429        ;;
8430    esac
8431    ;;
8432  *-*-cygwin* )
8433    case $build in
8434      *-*-mingw* ) # actually msys
8435        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8436        ;;
8437      *-*-cygwin* )
8438        lt_cv_to_host_file_cmd=func_convert_file_noop
8439        ;;
8440      * ) # otherwise, assume *nix
8441        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8442        ;;
8443    esac
8444    ;;
8445  * ) # unhandled hosts (and "normal" native builds)
8446    lt_cv_to_host_file_cmd=func_convert_file_noop
8447    ;;
8448esac
8449
8450fi
8451
8452to_host_file_cmd=$lt_cv_to_host_file_cmd
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8454$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8455
8456
8457
8458
8459
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8461$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8462if ${lt_cv_to_tool_file_cmd+:} false; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  #assume ordinary cross tools, or native build.
8466lt_cv_to_tool_file_cmd=func_convert_file_noop
8467case $host in
8468  *-*-mingw* )
8469    case $build in
8470      *-*-mingw* ) # actually msys
8471        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8472        ;;
8473    esac
8474    ;;
8475esac
8476
8477fi
8478
8479to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8481$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8482
8483
8484
8485
8486
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8488$as_echo_n "checking for $LD option to reload object files... " >&6; }
8489if ${lt_cv_ld_reload_flag+:} false; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492  lt_cv_ld_reload_flag='-r'
8493fi
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8495$as_echo "$lt_cv_ld_reload_flag" >&6; }
8496reload_flag=$lt_cv_ld_reload_flag
8497case $reload_flag in
8498"" | " "*) ;;
8499*) reload_flag=" $reload_flag" ;;
8500esac
8501reload_cmds='$LD$reload_flag -o $output$reload_objs'
8502case $host_os in
8503  cygwin* | mingw* | pw32* | cegcc*)
8504    if test yes != "$GCC"; then
8505      reload_cmds=false
8506    fi
8507    ;;
8508  darwin*)
8509    if test yes = "$GCC"; then
8510      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8511    else
8512      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8513    fi
8514    ;;
8515esac
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525if test -n "$ac_tool_prefix"; then
8526  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8527set dummy ${ac_tool_prefix}objdump; ac_word=$2
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529$as_echo_n "checking for $ac_word... " >&6; }
8530if ${ac_cv_prog_OBJDUMP+:} false; then :
8531  $as_echo_n "(cached) " >&6
8532else
8533  if test -n "$OBJDUMP"; then
8534  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8535else
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539  IFS=$as_save_IFS
8540  test -z "$as_dir" && as_dir=.
8541    for ac_exec_ext in '' $ac_executable_extensions; do
8542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545    break 2
8546  fi
8547done
8548  done
8549IFS=$as_save_IFS
8550
8551fi
8552fi
8553OBJDUMP=$ac_cv_prog_OBJDUMP
8554if test -n "$OBJDUMP"; then
8555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8556$as_echo "$OBJDUMP" >&6; }
8557else
8558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559$as_echo "no" >&6; }
8560fi
8561
8562
8563fi
8564if test -z "$ac_cv_prog_OBJDUMP"; then
8565  ac_ct_OBJDUMP=$OBJDUMP
8566  # Extract the first word of "objdump", so it can be a program name with args.
8567set dummy objdump; ac_word=$2
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569$as_echo_n "checking for $ac_word... " >&6; }
8570if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  if test -n "$ac_ct_OBJDUMP"; then
8574  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8575else
8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579  IFS=$as_save_IFS
8580  test -z "$as_dir" && as_dir=.
8581    for ac_exec_ext in '' $ac_executable_extensions; do
8582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8583    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585    break 2
8586  fi
8587done
8588  done
8589IFS=$as_save_IFS
8590
8591fi
8592fi
8593ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8594if test -n "$ac_ct_OBJDUMP"; then
8595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8596$as_echo "$ac_ct_OBJDUMP" >&6; }
8597else
8598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
8600fi
8601
8602  if test "x$ac_ct_OBJDUMP" = x; then
8603    OBJDUMP="false"
8604  else
8605    case $cross_compiling:$ac_tool_warned in
8606yes:)
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8609ac_tool_warned=yes ;;
8610esac
8611    OBJDUMP=$ac_ct_OBJDUMP
8612  fi
8613else
8614  OBJDUMP="$ac_cv_prog_OBJDUMP"
8615fi
8616
8617test -z "$OBJDUMP" && OBJDUMP=objdump
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8628$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8629if ${lt_cv_deplibs_check_method+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  lt_cv_file_magic_cmd='$MAGIC_CMD'
8633lt_cv_file_magic_test_file=
8634lt_cv_deplibs_check_method='unknown'
8635# Need to set the preceding variable on all platforms that support
8636# interlibrary dependencies.
8637# 'none' -- dependencies not supported.
8638# 'unknown' -- same as none, but documents that we really don't know.
8639# 'pass_all' -- all dependencies passed with no checks.
8640# 'test_compile' -- check by making test program.
8641# 'file_magic [[regex]]' -- check by looking for files in library path
8642# that responds to the $file_magic_cmd with a given extended regex.
8643# If you have 'file' or equivalent on your system and you're not sure
8644# whether 'pass_all' will *always* work, you probably want this one.
8645
8646case $host_os in
8647aix[4-9]*)
8648  lt_cv_deplibs_check_method=pass_all
8649  ;;
8650
8651beos*)
8652  lt_cv_deplibs_check_method=pass_all
8653  ;;
8654
8655bsdi[45]*)
8656  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8657  lt_cv_file_magic_cmd='/usr/bin/file -L'
8658  lt_cv_file_magic_test_file=/shlib/libc.so
8659  ;;
8660
8661cygwin*)
8662  # func_win32_libid is a shell function defined in ltmain.sh
8663  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8664  lt_cv_file_magic_cmd='func_win32_libid'
8665  ;;
8666
8667mingw* | pw32*)
8668  # Base MSYS/MinGW do not provide the 'file' command needed by
8669  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8670  # unless we find 'file', for example because we are cross-compiling.
8671  if ( file / ) >/dev/null 2>&1; then
8672    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8673    lt_cv_file_magic_cmd='func_win32_libid'
8674  else
8675    # Keep this pattern in sync with the one in func_win32_libid.
8676    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8677    lt_cv_file_magic_cmd='$OBJDUMP -f'
8678  fi
8679  ;;
8680
8681cegcc*)
8682  # use the weaker test based on 'objdump'. See mingw*.
8683  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8684  lt_cv_file_magic_cmd='$OBJDUMP -f'
8685  ;;
8686
8687darwin* | rhapsody*)
8688  lt_cv_deplibs_check_method=pass_all
8689  ;;
8690
8691freebsd* | dragonfly*)
8692  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8693    case $host_cpu in
8694    i*86 )
8695      # Not sure whether the presence of OpenBSD here was a mistake.
8696      # Let's accept both of them until this is cleared up.
8697      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8698      lt_cv_file_magic_cmd=/usr/bin/file
8699      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8700      ;;
8701    esac
8702  else
8703    lt_cv_deplibs_check_method=pass_all
8704  fi
8705  ;;
8706
8707haiku*)
8708  lt_cv_deplibs_check_method=pass_all
8709  ;;
8710
8711hpux10.20* | hpux11*)
8712  lt_cv_file_magic_cmd=/usr/bin/file
8713  case $host_cpu in
8714  ia64*)
8715    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8716    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8717    ;;
8718  hppa*64*)
8719    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]'
8720    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8721    ;;
8722  *)
8723    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8724    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8725    ;;
8726  esac
8727  ;;
8728
8729interix[3-9]*)
8730  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8731  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8732  ;;
8733
8734irix5* | irix6* | nonstopux*)
8735  case $LD in
8736  *-32|*"-32 ") libmagic=32-bit;;
8737  *-n32|*"-n32 ") libmagic=N32;;
8738  *-64|*"-64 ") libmagic=64-bit;;
8739  *) libmagic=never-match;;
8740  esac
8741  lt_cv_deplibs_check_method=pass_all
8742  ;;
8743
8744# This must be glibc/ELF.
8745linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8746  lt_cv_deplibs_check_method=pass_all
8747  ;;
8748
8749netbsd* | netbsdelf*-gnu)
8750  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8751    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8752  else
8753    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8754  fi
8755  ;;
8756
8757newos6*)
8758  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8759  lt_cv_file_magic_cmd=/usr/bin/file
8760  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8761  ;;
8762
8763*nto* | *qnx*)
8764  lt_cv_deplibs_check_method=pass_all
8765  ;;
8766
8767openbsd* | bitrig*)
8768  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8769    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8770  else
8771    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8772  fi
8773  ;;
8774
8775osf3* | osf4* | osf5*)
8776  lt_cv_deplibs_check_method=pass_all
8777  ;;
8778
8779rdos*)
8780  lt_cv_deplibs_check_method=pass_all
8781  ;;
8782
8783solaris*)
8784  lt_cv_deplibs_check_method=pass_all
8785  ;;
8786
8787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8788  lt_cv_deplibs_check_method=pass_all
8789  ;;
8790
8791sysv4 | sysv4.3*)
8792  case $host_vendor in
8793  motorola)
8794    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]'
8795    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8796    ;;
8797  ncr)
8798    lt_cv_deplibs_check_method=pass_all
8799    ;;
8800  sequent)
8801    lt_cv_file_magic_cmd='/bin/file'
8802    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8803    ;;
8804  sni)
8805    lt_cv_file_magic_cmd='/bin/file'
8806    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8807    lt_cv_file_magic_test_file=/lib/libc.so
8808    ;;
8809  siemens)
8810    lt_cv_deplibs_check_method=pass_all
8811    ;;
8812  pc)
8813    lt_cv_deplibs_check_method=pass_all
8814    ;;
8815  esac
8816  ;;
8817
8818tpf*)
8819  lt_cv_deplibs_check_method=pass_all
8820  ;;
8821os2*)
8822  lt_cv_deplibs_check_method=pass_all
8823  ;;
8824esac
8825
8826fi
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8828$as_echo "$lt_cv_deplibs_check_method" >&6; }
8829
8830file_magic_glob=
8831want_nocaseglob=no
8832if test "$build" = "$host"; then
8833  case $host_os in
8834  mingw* | pw32*)
8835    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8836      want_nocaseglob=yes
8837    else
8838      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8839    fi
8840    ;;
8841  esac
8842fi
8843
8844file_magic_cmd=$lt_cv_file_magic_cmd
8845deplibs_check_method=$lt_cv_deplibs_check_method
8846test -z "$deplibs_check_method" && deplibs_check_method=unknown
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869if test -n "$ac_tool_prefix"; then
8870  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8871set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873$as_echo_n "checking for $ac_word... " >&6; }
8874if ${ac_cv_prog_DLLTOOL+:} false; then :
8875  $as_echo_n "(cached) " >&6
8876else
8877  if test -n "$DLLTOOL"; then
8878  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8879else
8880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881for as_dir in $PATH
8882do
8883  IFS=$as_save_IFS
8884  test -z "$as_dir" && as_dir=.
8885    for ac_exec_ext in '' $ac_executable_extensions; do
8886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889    break 2
8890  fi
8891done
8892  done
8893IFS=$as_save_IFS
8894
8895fi
8896fi
8897DLLTOOL=$ac_cv_prog_DLLTOOL
8898if test -n "$DLLTOOL"; then
8899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8900$as_echo "$DLLTOOL" >&6; }
8901else
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903$as_echo "no" >&6; }
8904fi
8905
8906
8907fi
8908if test -z "$ac_cv_prog_DLLTOOL"; then
8909  ac_ct_DLLTOOL=$DLLTOOL
8910  # Extract the first word of "dlltool", so it can be a program name with args.
8911set dummy dlltool; ac_word=$2
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913$as_echo_n "checking for $ac_word... " >&6; }
8914if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8915  $as_echo_n "(cached) " >&6
8916else
8917  if test -n "$ac_ct_DLLTOOL"; then
8918  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8919else
8920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921for as_dir in $PATH
8922do
8923  IFS=$as_save_IFS
8924  test -z "$as_dir" && as_dir=.
8925    for ac_exec_ext in '' $ac_executable_extensions; do
8926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929    break 2
8930  fi
8931done
8932  done
8933IFS=$as_save_IFS
8934
8935fi
8936fi
8937ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8938if test -n "$ac_ct_DLLTOOL"; then
8939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8940$as_echo "$ac_ct_DLLTOOL" >&6; }
8941else
8942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943$as_echo "no" >&6; }
8944fi
8945
8946  if test "x$ac_ct_DLLTOOL" = x; then
8947    DLLTOOL="false"
8948  else
8949    case $cross_compiling:$ac_tool_warned in
8950yes:)
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8953ac_tool_warned=yes ;;
8954esac
8955    DLLTOOL=$ac_ct_DLLTOOL
8956  fi
8957else
8958  DLLTOOL="$ac_cv_prog_DLLTOOL"
8959fi
8960
8961test -z "$DLLTOOL" && DLLTOOL=dlltool
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8973$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8974if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8975  $as_echo_n "(cached) " >&6
8976else
8977  lt_cv_sharedlib_from_linklib_cmd='unknown'
8978
8979case $host_os in
8980cygwin* | mingw* | pw32* | cegcc*)
8981  # two different shell functions defined in ltmain.sh;
8982  # decide which one to use based on capabilities of $DLLTOOL
8983  case `$DLLTOOL --help 2>&1` in
8984  *--identify-strict*)
8985    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8986    ;;
8987  *)
8988    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8989    ;;
8990  esac
8991  ;;
8992*)
8993  # fallback: assume linklib IS sharedlib
8994  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8995  ;;
8996esac
8997
8998fi
8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9000$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9001sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9002test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9003
9004
9005
9006
9007
9008
9009
9010if test -n "$ac_tool_prefix"; then
9011  for ac_prog in ar
9012  do
9013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016$as_echo_n "checking for $ac_word... " >&6; }
9017if ${ac_cv_prog_AR+:} false; then :
9018  $as_echo_n "(cached) " >&6
9019else
9020  if test -n "$AR"; then
9021  ac_cv_prog_AR="$AR" # Let the user override the test.
9022else
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026  IFS=$as_save_IFS
9027  test -z "$as_dir" && as_dir=.
9028    for ac_exec_ext in '' $ac_executable_extensions; do
9029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032    break 2
9033  fi
9034done
9035  done
9036IFS=$as_save_IFS
9037
9038fi
9039fi
9040AR=$ac_cv_prog_AR
9041if test -n "$AR"; then
9042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9043$as_echo "$AR" >&6; }
9044else
9045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046$as_echo "no" >&6; }
9047fi
9048
9049
9050    test -n "$AR" && break
9051  done
9052fi
9053if test -z "$AR"; then
9054  ac_ct_AR=$AR
9055  for ac_prog in ar
9056do
9057  # Extract the first word of "$ac_prog", so it can be a program name with args.
9058set dummy $ac_prog; ac_word=$2
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060$as_echo_n "checking for $ac_word... " >&6; }
9061if ${ac_cv_prog_ac_ct_AR+:} false; then :
9062  $as_echo_n "(cached) " >&6
9063else
9064  if test -n "$ac_ct_AR"; then
9065  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9066else
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070  IFS=$as_save_IFS
9071  test -z "$as_dir" && as_dir=.
9072    for ac_exec_ext in '' $ac_executable_extensions; do
9073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074    ac_cv_prog_ac_ct_AR="$ac_prog"
9075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076    break 2
9077  fi
9078done
9079  done
9080IFS=$as_save_IFS
9081
9082fi
9083fi
9084ac_ct_AR=$ac_cv_prog_ac_ct_AR
9085if test -n "$ac_ct_AR"; then
9086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9087$as_echo "$ac_ct_AR" >&6; }
9088else
9089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090$as_echo "no" >&6; }
9091fi
9092
9093
9094  test -n "$ac_ct_AR" && break
9095done
9096
9097  if test "x$ac_ct_AR" = x; then
9098    AR="false"
9099  else
9100    case $cross_compiling:$ac_tool_warned in
9101yes:)
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9104ac_tool_warned=yes ;;
9105esac
9106    AR=$ac_ct_AR
9107  fi
9108fi
9109
9110: ${AR=ar}
9111: ${AR_FLAGS=cru}
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9124$as_echo_n "checking for archiver @FILE support... " >&6; }
9125if ${lt_cv_ar_at_file+:} false; then :
9126  $as_echo_n "(cached) " >&6
9127else
9128  lt_cv_ar_at_file=no
9129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130/* end confdefs.h.  */
9131
9132int
9133main ()
9134{
9135
9136  ;
9137  return 0;
9138}
9139_ACEOF
9140if ac_fn_c_try_compile "$LINENO"; then :
9141  echo conftest.$ac_objext > conftest.lst
9142      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9143      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9144  (eval $lt_ar_try) 2>&5
9145  ac_status=$?
9146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9147  test $ac_status = 0; }
9148      if test 0 -eq "$ac_status"; then
9149	# Ensure the archiver fails upon bogus file names.
9150	rm -f conftest.$ac_objext libconftest.a
9151	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9152  (eval $lt_ar_try) 2>&5
9153  ac_status=$?
9154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9155  test $ac_status = 0; }
9156	if test 0 -ne "$ac_status"; then
9157          lt_cv_ar_at_file=@
9158        fi
9159      fi
9160      rm -f conftest.* libconftest.a
9161
9162fi
9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164
9165fi
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9167$as_echo "$lt_cv_ar_at_file" >&6; }
9168
9169if test no = "$lt_cv_ar_at_file"; then
9170  archiver_list_spec=
9171else
9172  archiver_list_spec=$lt_cv_ar_at_file
9173fi
9174
9175
9176
9177
9178
9179
9180
9181if test -n "$ac_tool_prefix"; then
9182  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9183set dummy ${ac_tool_prefix}strip; ac_word=$2
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
9186if ${ac_cv_prog_STRIP+:} false; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189  if test -n "$STRIP"; then
9190  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9191else
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195  IFS=$as_save_IFS
9196  test -z "$as_dir" && as_dir=.
9197    for ac_exec_ext in '' $ac_executable_extensions; do
9198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9199    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201    break 2
9202  fi
9203done
9204  done
9205IFS=$as_save_IFS
9206
9207fi
9208fi
9209STRIP=$ac_cv_prog_STRIP
9210if test -n "$STRIP"; then
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9212$as_echo "$STRIP" >&6; }
9213else
9214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
9216fi
9217
9218
9219fi
9220if test -z "$ac_cv_prog_STRIP"; then
9221  ac_ct_STRIP=$STRIP
9222  # Extract the first word of "strip", so it can be a program name with args.
9223set dummy strip; ac_word=$2
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9227  $as_echo_n "(cached) " >&6
9228else
9229  if test -n "$ac_ct_STRIP"; then
9230  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9231else
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235  IFS=$as_save_IFS
9236  test -z "$as_dir" && as_dir=.
9237    for ac_exec_ext in '' $ac_executable_extensions; do
9238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9239    ac_cv_prog_ac_ct_STRIP="strip"
9240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241    break 2
9242  fi
9243done
9244  done
9245IFS=$as_save_IFS
9246
9247fi
9248fi
9249ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9250if test -n "$ac_ct_STRIP"; then
9251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9252$as_echo "$ac_ct_STRIP" >&6; }
9253else
9254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
9256fi
9257
9258  if test "x$ac_ct_STRIP" = x; then
9259    STRIP=":"
9260  else
9261    case $cross_compiling:$ac_tool_warned in
9262yes:)
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9265ac_tool_warned=yes ;;
9266esac
9267    STRIP=$ac_ct_STRIP
9268  fi
9269else
9270  STRIP="$ac_cv_prog_STRIP"
9271fi
9272
9273test -z "$STRIP" && STRIP=:
9274
9275
9276
9277
9278
9279
9280if test -n "$ac_tool_prefix"; then
9281  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9282set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284$as_echo_n "checking for $ac_word... " >&6; }
9285if ${ac_cv_prog_RANLIB+:} false; then :
9286  $as_echo_n "(cached) " >&6
9287else
9288  if test -n "$RANLIB"; then
9289  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9290else
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294  IFS=$as_save_IFS
9295  test -z "$as_dir" && as_dir=.
9296    for ac_exec_ext in '' $ac_executable_extensions; do
9297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300    break 2
9301  fi
9302done
9303  done
9304IFS=$as_save_IFS
9305
9306fi
9307fi
9308RANLIB=$ac_cv_prog_RANLIB
9309if test -n "$RANLIB"; then
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9311$as_echo "$RANLIB" >&6; }
9312else
9313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314$as_echo "no" >&6; }
9315fi
9316
9317
9318fi
9319if test -z "$ac_cv_prog_RANLIB"; then
9320  ac_ct_RANLIB=$RANLIB
9321  # Extract the first word of "ranlib", so it can be a program name with args.
9322set dummy ranlib; ac_word=$2
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324$as_echo_n "checking for $ac_word... " >&6; }
9325if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  if test -n "$ac_ct_RANLIB"; then
9329  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9330else
9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332for as_dir in $PATH
9333do
9334  IFS=$as_save_IFS
9335  test -z "$as_dir" && as_dir=.
9336    for ac_exec_ext in '' $ac_executable_extensions; do
9337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338    ac_cv_prog_ac_ct_RANLIB="ranlib"
9339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340    break 2
9341  fi
9342done
9343  done
9344IFS=$as_save_IFS
9345
9346fi
9347fi
9348ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9349if test -n "$ac_ct_RANLIB"; then
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9351$as_echo "$ac_ct_RANLIB" >&6; }
9352else
9353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354$as_echo "no" >&6; }
9355fi
9356
9357  if test "x$ac_ct_RANLIB" = x; then
9358    RANLIB=":"
9359  else
9360    case $cross_compiling:$ac_tool_warned in
9361yes:)
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9364ac_tool_warned=yes ;;
9365esac
9366    RANLIB=$ac_ct_RANLIB
9367  fi
9368else
9369  RANLIB="$ac_cv_prog_RANLIB"
9370fi
9371
9372test -z "$RANLIB" && RANLIB=:
9373
9374
9375
9376
9377
9378
9379# Determine commands to create old-style static archives.
9380old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9381old_postinstall_cmds='chmod 644 $oldlib'
9382old_postuninstall_cmds=
9383
9384if test -n "$RANLIB"; then
9385  case $host_os in
9386  bitrig* | openbsd*)
9387    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9388    ;;
9389  *)
9390    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9391    ;;
9392  esac
9393  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9394fi
9395
9396case $host_os in
9397  darwin*)
9398    lock_old_archive_extraction=yes ;;
9399  *)
9400    lock_old_archive_extraction=no ;;
9401esac
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441# If no C compiler was specified, use CC.
9442LTCC=${LTCC-"$CC"}
9443
9444# If no C compiler flags were specified, use CFLAGS.
9445LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9446
9447# Allow CC to be a program name with arguments.
9448compiler=$CC
9449
9450
9451# Check for command to grab the raw symbol name followed by C symbol from nm.
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9453$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9454if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9455  $as_echo_n "(cached) " >&6
9456else
9457
9458# These are sane defaults that work on at least a few old systems.
9459# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9460
9461# Character class describing NM global symbol codes.
9462symcode='[BCDEGRST]'
9463
9464# Regexp to match symbols that can be accessed directly from C.
9465sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9466
9467# Define system-specific variables.
9468case $host_os in
9469aix*)
9470  symcode='[BCDT]'
9471  ;;
9472cygwin* | mingw* | pw32* | cegcc*)
9473  symcode='[ABCDGISTW]'
9474  ;;
9475hpux*)
9476  if test ia64 = "$host_cpu"; then
9477    symcode='[ABCDEGRST]'
9478  fi
9479  ;;
9480irix* | nonstopux*)
9481  symcode='[BCDEGRST]'
9482  ;;
9483osf*)
9484  symcode='[BCDEGQRST]'
9485  ;;
9486solaris*)
9487  symcode='[BDRT]'
9488  ;;
9489sco3.2v5*)
9490  symcode='[DT]'
9491  ;;
9492sysv4.2uw2*)
9493  symcode='[DT]'
9494  ;;
9495sysv5* | sco5v6* | unixware* | OpenUNIX*)
9496  symcode='[ABDT]'
9497  ;;
9498sysv4)
9499  symcode='[DFNSTU]'
9500  ;;
9501esac
9502
9503# If we're using GNU nm, then use its standard symbol codes.
9504case `$NM -V 2>&1` in
9505*GNU* | *'with BFD'*)
9506  symcode='[ABCDGIRSTW]' ;;
9507esac
9508
9509if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9510  # Gets list of data symbols to import.
9511  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9512  # Adjust the below global symbol transforms to fixup imported variables.
9513  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9514  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9515  lt_c_name_lib_hook="\
9516  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9517  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9518else
9519  # Disable hooks by default.
9520  lt_cv_sys_global_symbol_to_import=
9521  lt_cdecl_hook=
9522  lt_c_name_hook=
9523  lt_c_name_lib_hook=
9524fi
9525
9526# Transform an extracted symbol line into a proper C declaration.
9527# Some systems (esp. on ia64) link data and code symbols differently,
9528# so use this general approach.
9529lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9530$lt_cdecl_hook\
9531" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9532" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9533
9534# Transform an extracted symbol line into symbol name and symbol address
9535lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9536$lt_c_name_hook\
9537" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9538" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9539
9540# Transform an extracted symbol line into symbol name with lib prefix and
9541# symbol address.
9542lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9543$lt_c_name_lib_hook\
9544" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9545" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9546" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9547
9548# Handle CRLF in mingw tool chain
9549opt_cr=
9550case $build_os in
9551mingw*)
9552  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9553  ;;
9554esac
9555
9556# Try without a prefix underscore, then with it.
9557for ac_symprfx in "" "_"; do
9558
9559  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9560  symxfrm="\\1 $ac_symprfx\\2 \\2"
9561
9562  # Write the raw and C identifiers.
9563  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9564    # Fake it for dumpbin and say T for any non-static function,
9565    # D for any global variable and I for any imported variable.
9566    # Also find C++ and __fastcall symbols from MSVC++,
9567    # which start with @ or ?.
9568    lt_cv_sys_global_symbol_pipe="$AWK '"\
9569"     {last_section=section; section=\$ 3};"\
9570"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9571"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9572"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9573"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9574"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9575"     \$ 0!~/External *\|/{next};"\
9576"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9577"     {if(hide[section]) next};"\
9578"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9579"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9580"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9581"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9582"     ' prfx=^$ac_symprfx"
9583  else
9584    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9585  fi
9586  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9587
9588  # Check to see that the pipe works correctly.
9589  pipe_works=no
9590
9591  rm -f conftest*
9592  cat > conftest.$ac_ext <<_LT_EOF
9593#ifdef __cplusplus
9594extern "C" {
9595#endif
9596char nm_test_var;
9597void nm_test_func(void);
9598void nm_test_func(void){}
9599#ifdef __cplusplus
9600}
9601#endif
9602int main(){nm_test_var='a';nm_test_func();return(0);}
9603_LT_EOF
9604
9605  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9606  (eval $ac_compile) 2>&5
9607  ac_status=$?
9608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9609  test $ac_status = 0; }; then
9610    # Now try to grab the symbols.
9611    nlist=conftest.nm
9612    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9613    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9614      # Try sorting and uniquifying the output.
9615      if sort "$nlist" | uniq > "$nlist"T; then
9616	mv -f "$nlist"T "$nlist"
9617      else
9618	rm -f "$nlist"T
9619      fi
9620
9621      # Make sure that we snagged all the symbols we need.
9622      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9623	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9624	  cat <<_LT_EOF > conftest.$ac_ext
9625/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9626#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9627/* DATA imports from DLLs on WIN32 can't be const, because runtime
9628   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9629# define LT_DLSYM_CONST
9630#elif defined __osf__
9631/* This system does not cope well with relocations in const data.  */
9632# define LT_DLSYM_CONST
9633#else
9634# define LT_DLSYM_CONST const
9635#endif
9636
9637#ifdef __cplusplus
9638extern "C" {
9639#endif
9640
9641_LT_EOF
9642	  # Now generate the symbol file.
9643	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9644
9645	  cat <<_LT_EOF >> conftest.$ac_ext
9646
9647/* The mapping between symbol names and symbols.  */
9648LT_DLSYM_CONST struct {
9649  const char *name;
9650  void       *address;
9651}
9652lt__PROGRAM__LTX_preloaded_symbols[] =
9653{
9654  { "@PROGRAM@", (void *) 0 },
9655_LT_EOF
9656	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9657	  cat <<\_LT_EOF >> conftest.$ac_ext
9658  {0, (void *) 0}
9659};
9660
9661/* This works around a problem in FreeBSD linker */
9662#ifdef FREEBSD_WORKAROUND
9663static const void *lt_preloaded_setup() {
9664  return lt__PROGRAM__LTX_preloaded_symbols;
9665}
9666#endif
9667
9668#ifdef __cplusplus
9669}
9670#endif
9671_LT_EOF
9672	  # Now try linking the two files.
9673	  mv conftest.$ac_objext conftstm.$ac_objext
9674	  lt_globsym_save_LIBS=$LIBS
9675	  lt_globsym_save_CFLAGS=$CFLAGS
9676	  LIBS=conftstm.$ac_objext
9677	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9679  (eval $ac_link) 2>&5
9680  ac_status=$?
9681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9683	    pipe_works=yes
9684	  fi
9685	  LIBS=$lt_globsym_save_LIBS
9686	  CFLAGS=$lt_globsym_save_CFLAGS
9687	else
9688	  echo "cannot find nm_test_func in $nlist" >&5
9689	fi
9690      else
9691	echo "cannot find nm_test_var in $nlist" >&5
9692      fi
9693    else
9694      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9695    fi
9696  else
9697    echo "$progname: failed program was:" >&5
9698    cat conftest.$ac_ext >&5
9699  fi
9700  rm -rf conftest* conftst*
9701
9702  # Do not use the global_symbol_pipe unless it works.
9703  if test yes = "$pipe_works"; then
9704    break
9705  else
9706    lt_cv_sys_global_symbol_pipe=
9707  fi
9708done
9709
9710fi
9711
9712if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713  lt_cv_sys_global_symbol_to_cdecl=
9714fi
9715if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9717$as_echo "failed" >&6; }
9718else
9719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9720$as_echo "ok" >&6; }
9721fi
9722
9723# Response file support.
9724if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9725  nm_file_list_spec='@'
9726elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9727  nm_file_list_spec='@'
9728fi
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9767$as_echo_n "checking for sysroot... " >&6; }
9768
9769# Check whether --with-sysroot was given.
9770if test "${with_sysroot+set}" = set; then :
9771  withval=$with_sysroot;
9772else
9773  with_sysroot=no
9774fi
9775
9776
9777lt_sysroot=
9778case $with_sysroot in #(
9779 yes)
9780   if test yes = "$GCC"; then
9781     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9782   fi
9783   ;; #(
9784 /*)
9785   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9786   ;; #(
9787 no|'')
9788   ;; #(
9789 *)
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9791$as_echo "$with_sysroot" >&6; }
9792   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9793   ;;
9794esac
9795
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9797$as_echo "${lt_sysroot:-no}" >&6; }
9798
9799
9800
9801
9802
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9804$as_echo_n "checking for a working dd... " >&6; }
9805if ${ac_cv_path_lt_DD+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  printf 0123456789abcdef0123456789abcdef >conftest.i
9809cat conftest.i conftest.i >conftest2.i
9810: ${lt_DD:=$DD}
9811if test -z "$lt_DD"; then
9812  ac_path_lt_DD_found=false
9813  # Loop through the user's path and test for each of PROGNAME-LIST
9814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $PATH
9816do
9817  IFS=$as_save_IFS
9818  test -z "$as_dir" && as_dir=.
9819    for ac_prog in dd; do
9820    for ac_exec_ext in '' $ac_executable_extensions; do
9821      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9822      as_fn_executable_p "$ac_path_lt_DD" || continue
9823if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9824  cmp -s conftest.i conftest.out \
9825  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9826fi
9827      $ac_path_lt_DD_found && break 3
9828    done
9829  done
9830  done
9831IFS=$as_save_IFS
9832  if test -z "$ac_cv_path_lt_DD"; then
9833    :
9834  fi
9835else
9836  ac_cv_path_lt_DD=$lt_DD
9837fi
9838
9839rm -f conftest.i conftest2.i conftest.out
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9842$as_echo "$ac_cv_path_lt_DD" >&6; }
9843
9844
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9846$as_echo_n "checking how to truncate binary pipes... " >&6; }
9847if ${lt_cv_truncate_bin+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  printf 0123456789abcdef0123456789abcdef >conftest.i
9851cat conftest.i conftest.i >conftest2.i
9852lt_cv_truncate_bin=
9853if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9854  cmp -s conftest.i conftest.out \
9855  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9856fi
9857rm -f conftest.i conftest2.i conftest.out
9858test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9859fi
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9861$as_echo "$lt_cv_truncate_bin" >&6; }
9862
9863
9864
9865
9866
9867
9868
9869# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9870func_cc_basename ()
9871{
9872    for cc_temp in $*""; do
9873      case $cc_temp in
9874        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9875        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9876        \-*) ;;
9877        *) break;;
9878      esac
9879    done
9880    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9881}
9882
9883# Check whether --enable-libtool-lock was given.
9884if test "${enable_libtool_lock+set}" = set; then :
9885  enableval=$enable_libtool_lock;
9886fi
9887
9888test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9889
9890# Some flags need to be propagated to the compiler or linker for good
9891# libtool support.
9892case $host in
9893ia64-*-hpux*)
9894  # Find out what ABI is being produced by ac_compile, and set mode
9895  # options accordingly.
9896  echo 'int i;' > conftest.$ac_ext
9897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9898  (eval $ac_compile) 2>&5
9899  ac_status=$?
9900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9901  test $ac_status = 0; }; then
9902    case `/usr/bin/file conftest.$ac_objext` in
9903      *ELF-32*)
9904	HPUX_IA64_MODE=32
9905	;;
9906      *ELF-64*)
9907	HPUX_IA64_MODE=64
9908	;;
9909    esac
9910  fi
9911  rm -rf conftest*
9912  ;;
9913*-*-irix6*)
9914  # Find out what ABI is being produced by ac_compile, and set linker
9915  # options accordingly.
9916  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9917  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9918  (eval $ac_compile) 2>&5
9919  ac_status=$?
9920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921  test $ac_status = 0; }; then
9922    if test yes = "$lt_cv_prog_gnu_ld"; then
9923      case `/usr/bin/file conftest.$ac_objext` in
9924	*32-bit*)
9925	  LD="${LD-ld} -melf32bsmip"
9926	  ;;
9927	*N32*)
9928	  LD="${LD-ld} -melf32bmipn32"
9929	  ;;
9930	*64-bit*)
9931	  LD="${LD-ld} -melf64bmip"
9932	;;
9933      esac
9934    else
9935      case `/usr/bin/file conftest.$ac_objext` in
9936	*32-bit*)
9937	  LD="${LD-ld} -32"
9938	  ;;
9939	*N32*)
9940	  LD="${LD-ld} -n32"
9941	  ;;
9942	*64-bit*)
9943	  LD="${LD-ld} -64"
9944	  ;;
9945      esac
9946    fi
9947  fi
9948  rm -rf conftest*
9949  ;;
9950
9951mips64*-*linux*)
9952  # Find out what ABI is being produced by ac_compile, and set linker
9953  # options accordingly.
9954  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9955  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956  (eval $ac_compile) 2>&5
9957  ac_status=$?
9958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959  test $ac_status = 0; }; then
9960    emul=elf
9961    case `/usr/bin/file conftest.$ac_objext` in
9962      *32-bit*)
9963	emul="${emul}32"
9964	;;
9965      *64-bit*)
9966	emul="${emul}64"
9967	;;
9968    esac
9969    case `/usr/bin/file conftest.$ac_objext` in
9970      *MSB*)
9971	emul="${emul}btsmip"
9972	;;
9973      *LSB*)
9974	emul="${emul}ltsmip"
9975	;;
9976    esac
9977    case `/usr/bin/file conftest.$ac_objext` in
9978      *N32*)
9979	emul="${emul}n32"
9980	;;
9981    esac
9982    LD="${LD-ld} -m $emul"
9983  fi
9984  rm -rf conftest*
9985  ;;
9986
9987x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9988s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9989  # Find out what ABI is being produced by ac_compile, and set linker
9990  # options accordingly.  Note that the listed cases only cover the
9991  # situations where additional linker options are needed (such as when
9992  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9993  # vice versa); the common cases where no linker options are needed do
9994  # not appear in the list.
9995  echo 'int i;' > conftest.$ac_ext
9996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9997  (eval $ac_compile) 2>&5
9998  ac_status=$?
9999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10000  test $ac_status = 0; }; then
10001    case `/usr/bin/file conftest.o` in
10002      *32-bit*)
10003	case $host in
10004	  x86_64-*kfreebsd*-gnu)
10005	    LD="${LD-ld} -m elf_i386_fbsd"
10006	    ;;
10007	  x86_64-*linux*)
10008	    case `/usr/bin/file conftest.o` in
10009	      *x86-64*)
10010		LD="${LD-ld} -m elf32_x86_64"
10011		;;
10012	      *)
10013		LD="${LD-ld} -m elf_i386"
10014		;;
10015	    esac
10016	    ;;
10017	  powerpc64le-*linux*)
10018	    LD="${LD-ld} -m elf32lppclinux"
10019	    ;;
10020	  powerpc64-*linux*)
10021	    LD="${LD-ld} -m elf32ppclinux"
10022	    ;;
10023	  s390x-*linux*)
10024	    LD="${LD-ld} -m elf_s390"
10025	    ;;
10026	  sparc64-*linux*)
10027	    LD="${LD-ld} -m elf32_sparc"
10028	    ;;
10029	esac
10030	;;
10031      *64-bit*)
10032	case $host in
10033	  x86_64-*kfreebsd*-gnu)
10034	    LD="${LD-ld} -m elf_x86_64_fbsd"
10035	    ;;
10036	  x86_64-*linux*)
10037	    LD="${LD-ld} -m elf_x86_64"
10038	    ;;
10039	  powerpcle-*linux*)
10040	    LD="${LD-ld} -m elf64lppc"
10041	    ;;
10042	  powerpc-*linux*)
10043	    LD="${LD-ld} -m elf64ppc"
10044	    ;;
10045	  s390*-*linux*|s390*-*tpf*)
10046	    LD="${LD-ld} -m elf64_s390"
10047	    ;;
10048	  sparc*-*linux*)
10049	    LD="${LD-ld} -m elf64_sparc"
10050	    ;;
10051	esac
10052	;;
10053    esac
10054  fi
10055  rm -rf conftest*
10056  ;;
10057
10058*-*-sco3.2v5*)
10059  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10060  SAVE_CFLAGS=$CFLAGS
10061  CFLAGS="$CFLAGS -belf"
10062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10063$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10064if ${lt_cv_cc_needs_belf+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  ac_ext=c
10068ac_cpp='$CPP $CPPFLAGS'
10069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071ac_compiler_gnu=$ac_cv_c_compiler_gnu
10072
10073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074/* end confdefs.h.  */
10075
10076int
10077main ()
10078{
10079
10080  ;
10081  return 0;
10082}
10083_ACEOF
10084if ac_fn_c_try_link "$LINENO"; then :
10085  lt_cv_cc_needs_belf=yes
10086else
10087  lt_cv_cc_needs_belf=no
10088fi
10089rm -f core conftest.err conftest.$ac_objext \
10090    conftest$ac_exeext conftest.$ac_ext
10091     ac_ext=c
10092ac_cpp='$CPP $CPPFLAGS'
10093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10095ac_compiler_gnu=$ac_cv_c_compiler_gnu
10096
10097fi
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10099$as_echo "$lt_cv_cc_needs_belf" >&6; }
10100  if test yes != "$lt_cv_cc_needs_belf"; then
10101    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10102    CFLAGS=$SAVE_CFLAGS
10103  fi
10104  ;;
10105*-*solaris*)
10106  # Find out what ABI is being produced by ac_compile, and set linker
10107  # options accordingly.
10108  echo 'int i;' > conftest.$ac_ext
10109  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10110  (eval $ac_compile) 2>&5
10111  ac_status=$?
10112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10113  test $ac_status = 0; }; then
10114    case `/usr/bin/file conftest.o` in
10115    *64-bit*)
10116      case $lt_cv_prog_gnu_ld in
10117      yes*)
10118        case $host in
10119        i?86-*-solaris*|x86_64-*-solaris*)
10120          LD="${LD-ld} -m elf_x86_64"
10121          ;;
10122        sparc*-*-solaris*)
10123          LD="${LD-ld} -m elf64_sparc"
10124          ;;
10125        esac
10126        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10127        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10128          LD=${LD-ld}_sol2
10129        fi
10130        ;;
10131      *)
10132	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10133	  LD="${LD-ld} -64"
10134	fi
10135	;;
10136      esac
10137      ;;
10138    esac
10139  fi
10140  rm -rf conftest*
10141  ;;
10142esac
10143
10144need_locks=$enable_libtool_lock
10145
10146if test -n "$ac_tool_prefix"; then
10147  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10148set dummy ${ac_tool_prefix}mt; ac_word=$2
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150$as_echo_n "checking for $ac_word... " >&6; }
10151if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10152  $as_echo_n "(cached) " >&6
10153else
10154  if test -n "$MANIFEST_TOOL"; then
10155  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10156else
10157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10158for as_dir in $PATH
10159do
10160  IFS=$as_save_IFS
10161  test -z "$as_dir" && as_dir=.
10162    for ac_exec_ext in '' $ac_executable_extensions; do
10163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10164    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10166    break 2
10167  fi
10168done
10169  done
10170IFS=$as_save_IFS
10171
10172fi
10173fi
10174MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10175if test -n "$MANIFEST_TOOL"; then
10176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10177$as_echo "$MANIFEST_TOOL" >&6; }
10178else
10179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180$as_echo "no" >&6; }
10181fi
10182
10183
10184fi
10185if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10186  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10187  # Extract the first word of "mt", so it can be a program name with args.
10188set dummy mt; ac_word=$2
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190$as_echo_n "checking for $ac_word... " >&6; }
10191if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10192  $as_echo_n "(cached) " >&6
10193else
10194  if test -n "$ac_ct_MANIFEST_TOOL"; then
10195  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10196else
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200  IFS=$as_save_IFS
10201  test -z "$as_dir" && as_dir=.
10202    for ac_exec_ext in '' $ac_executable_extensions; do
10203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206    break 2
10207  fi
10208done
10209  done
10210IFS=$as_save_IFS
10211
10212fi
10213fi
10214ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10215if test -n "$ac_ct_MANIFEST_TOOL"; then
10216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10217$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10218else
10219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
10221fi
10222
10223  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10224    MANIFEST_TOOL=":"
10225  else
10226    case $cross_compiling:$ac_tool_warned in
10227yes:)
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10230ac_tool_warned=yes ;;
10231esac
10232    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10233  fi
10234else
10235  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10236fi
10237
10238test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10240$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10241if ${lt_cv_path_mainfest_tool+:} false; then :
10242  $as_echo_n "(cached) " >&6
10243else
10244  lt_cv_path_mainfest_tool=no
10245  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10246  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10247  cat conftest.err >&5
10248  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10249    lt_cv_path_mainfest_tool=yes
10250  fi
10251  rm -f conftest*
10252fi
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10254$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10255if test yes != "$lt_cv_path_mainfest_tool"; then
10256  MANIFEST_TOOL=:
10257fi
10258
10259
10260
10261
10262
10263
10264  case $host_os in
10265    rhapsody* | darwin*)
10266    if test -n "$ac_tool_prefix"; then
10267  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10268set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270$as_echo_n "checking for $ac_word... " >&6; }
10271if ${ac_cv_prog_DSYMUTIL+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  if test -n "$DSYMUTIL"; then
10275  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10276else
10277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278for as_dir in $PATH
10279do
10280  IFS=$as_save_IFS
10281  test -z "$as_dir" && as_dir=.
10282    for ac_exec_ext in '' $ac_executable_extensions; do
10283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10284    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286    break 2
10287  fi
10288done
10289  done
10290IFS=$as_save_IFS
10291
10292fi
10293fi
10294DSYMUTIL=$ac_cv_prog_DSYMUTIL
10295if test -n "$DSYMUTIL"; then
10296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10297$as_echo "$DSYMUTIL" >&6; }
10298else
10299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300$as_echo "no" >&6; }
10301fi
10302
10303
10304fi
10305if test -z "$ac_cv_prog_DSYMUTIL"; then
10306  ac_ct_DSYMUTIL=$DSYMUTIL
10307  # Extract the first word of "dsymutil", so it can be a program name with args.
10308set dummy dsymutil; ac_word=$2
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310$as_echo_n "checking for $ac_word... " >&6; }
10311if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10312  $as_echo_n "(cached) " >&6
10313else
10314  if test -n "$ac_ct_DSYMUTIL"; then
10315  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10316else
10317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318for as_dir in $PATH
10319do
10320  IFS=$as_save_IFS
10321  test -z "$as_dir" && as_dir=.
10322    for ac_exec_ext in '' $ac_executable_extensions; do
10323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326    break 2
10327  fi
10328done
10329  done
10330IFS=$as_save_IFS
10331
10332fi
10333fi
10334ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10335if test -n "$ac_ct_DSYMUTIL"; then
10336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10337$as_echo "$ac_ct_DSYMUTIL" >&6; }
10338else
10339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
10341fi
10342
10343  if test "x$ac_ct_DSYMUTIL" = x; then
10344    DSYMUTIL=":"
10345  else
10346    case $cross_compiling:$ac_tool_warned in
10347yes:)
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10350ac_tool_warned=yes ;;
10351esac
10352    DSYMUTIL=$ac_ct_DSYMUTIL
10353  fi
10354else
10355  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10356fi
10357
10358    if test -n "$ac_tool_prefix"; then
10359  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10360set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362$as_echo_n "checking for $ac_word... " >&6; }
10363if ${ac_cv_prog_NMEDIT+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  if test -n "$NMEDIT"; then
10367  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10368else
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372  IFS=$as_save_IFS
10373  test -z "$as_dir" && as_dir=.
10374    for ac_exec_ext in '' $ac_executable_extensions; do
10375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378    break 2
10379  fi
10380done
10381  done
10382IFS=$as_save_IFS
10383
10384fi
10385fi
10386NMEDIT=$ac_cv_prog_NMEDIT
10387if test -n "$NMEDIT"; then
10388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10389$as_echo "$NMEDIT" >&6; }
10390else
10391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
10393fi
10394
10395
10396fi
10397if test -z "$ac_cv_prog_NMEDIT"; then
10398  ac_ct_NMEDIT=$NMEDIT
10399  # Extract the first word of "nmedit", so it can be a program name with args.
10400set dummy nmedit; ac_word=$2
10401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402$as_echo_n "checking for $ac_word... " >&6; }
10403if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10404  $as_echo_n "(cached) " >&6
10405else
10406  if test -n "$ac_ct_NMEDIT"; then
10407  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412  IFS=$as_save_IFS
10413  test -z "$as_dir" && as_dir=.
10414    for ac_exec_ext in '' $ac_executable_extensions; do
10415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418    break 2
10419  fi
10420done
10421  done
10422IFS=$as_save_IFS
10423
10424fi
10425fi
10426ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10427if test -n "$ac_ct_NMEDIT"; then
10428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10429$as_echo "$ac_ct_NMEDIT" >&6; }
10430else
10431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432$as_echo "no" >&6; }
10433fi
10434
10435  if test "x$ac_ct_NMEDIT" = x; then
10436    NMEDIT=":"
10437  else
10438    case $cross_compiling:$ac_tool_warned in
10439yes:)
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10442ac_tool_warned=yes ;;
10443esac
10444    NMEDIT=$ac_ct_NMEDIT
10445  fi
10446else
10447  NMEDIT="$ac_cv_prog_NMEDIT"
10448fi
10449
10450    if test -n "$ac_tool_prefix"; then
10451  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10452set dummy ${ac_tool_prefix}lipo; ac_word=$2
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454$as_echo_n "checking for $ac_word... " >&6; }
10455if ${ac_cv_prog_LIPO+:} false; then :
10456  $as_echo_n "(cached) " >&6
10457else
10458  if test -n "$LIPO"; then
10459  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10460else
10461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462for as_dir in $PATH
10463do
10464  IFS=$as_save_IFS
10465  test -z "$as_dir" && as_dir=.
10466    for ac_exec_ext in '' $ac_executable_extensions; do
10467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10468    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470    break 2
10471  fi
10472done
10473  done
10474IFS=$as_save_IFS
10475
10476fi
10477fi
10478LIPO=$ac_cv_prog_LIPO
10479if test -n "$LIPO"; then
10480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10481$as_echo "$LIPO" >&6; }
10482else
10483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484$as_echo "no" >&6; }
10485fi
10486
10487
10488fi
10489if test -z "$ac_cv_prog_LIPO"; then
10490  ac_ct_LIPO=$LIPO
10491  # Extract the first word of "lipo", so it can be a program name with args.
10492set dummy lipo; ac_word=$2
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494$as_echo_n "checking for $ac_word... " >&6; }
10495if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10496  $as_echo_n "(cached) " >&6
10497else
10498  if test -n "$ac_ct_LIPO"; then
10499  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504  IFS=$as_save_IFS
10505  test -z "$as_dir" && as_dir=.
10506    for ac_exec_ext in '' $ac_executable_extensions; do
10507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508    ac_cv_prog_ac_ct_LIPO="lipo"
10509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510    break 2
10511  fi
10512done
10513  done
10514IFS=$as_save_IFS
10515
10516fi
10517fi
10518ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10519if test -n "$ac_ct_LIPO"; then
10520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10521$as_echo "$ac_ct_LIPO" >&6; }
10522else
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524$as_echo "no" >&6; }
10525fi
10526
10527  if test "x$ac_ct_LIPO" = x; then
10528    LIPO=":"
10529  else
10530    case $cross_compiling:$ac_tool_warned in
10531yes:)
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10534ac_tool_warned=yes ;;
10535esac
10536    LIPO=$ac_ct_LIPO
10537  fi
10538else
10539  LIPO="$ac_cv_prog_LIPO"
10540fi
10541
10542    if test -n "$ac_tool_prefix"; then
10543  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10544set dummy ${ac_tool_prefix}otool; ac_word=$2
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546$as_echo_n "checking for $ac_word... " >&6; }
10547if ${ac_cv_prog_OTOOL+:} false; then :
10548  $as_echo_n "(cached) " >&6
10549else
10550  if test -n "$OTOOL"; then
10551  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10552else
10553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554for as_dir in $PATH
10555do
10556  IFS=$as_save_IFS
10557  test -z "$as_dir" && as_dir=.
10558    for ac_exec_ext in '' $ac_executable_extensions; do
10559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10560    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562    break 2
10563  fi
10564done
10565  done
10566IFS=$as_save_IFS
10567
10568fi
10569fi
10570OTOOL=$ac_cv_prog_OTOOL
10571if test -n "$OTOOL"; then
10572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10573$as_echo "$OTOOL" >&6; }
10574else
10575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576$as_echo "no" >&6; }
10577fi
10578
10579
10580fi
10581if test -z "$ac_cv_prog_OTOOL"; then
10582  ac_ct_OTOOL=$OTOOL
10583  # Extract the first word of "otool", so it can be a program name with args.
10584set dummy otool; ac_word=$2
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586$as_echo_n "checking for $ac_word... " >&6; }
10587if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10588  $as_echo_n "(cached) " >&6
10589else
10590  if test -n "$ac_ct_OTOOL"; then
10591  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10592else
10593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594for as_dir in $PATH
10595do
10596  IFS=$as_save_IFS
10597  test -z "$as_dir" && as_dir=.
10598    for ac_exec_ext in '' $ac_executable_extensions; do
10599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600    ac_cv_prog_ac_ct_OTOOL="otool"
10601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10602    break 2
10603  fi
10604done
10605  done
10606IFS=$as_save_IFS
10607
10608fi
10609fi
10610ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10611if test -n "$ac_ct_OTOOL"; then
10612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10613$as_echo "$ac_ct_OTOOL" >&6; }
10614else
10615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616$as_echo "no" >&6; }
10617fi
10618
10619  if test "x$ac_ct_OTOOL" = x; then
10620    OTOOL=":"
10621  else
10622    case $cross_compiling:$ac_tool_warned in
10623yes:)
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10626ac_tool_warned=yes ;;
10627esac
10628    OTOOL=$ac_ct_OTOOL
10629  fi
10630else
10631  OTOOL="$ac_cv_prog_OTOOL"
10632fi
10633
10634    if test -n "$ac_tool_prefix"; then
10635  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10636set dummy ${ac_tool_prefix}otool64; ac_word=$2
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638$as_echo_n "checking for $ac_word... " >&6; }
10639if ${ac_cv_prog_OTOOL64+:} false; then :
10640  $as_echo_n "(cached) " >&6
10641else
10642  if test -n "$OTOOL64"; then
10643  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10644else
10645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646for as_dir in $PATH
10647do
10648  IFS=$as_save_IFS
10649  test -z "$as_dir" && as_dir=.
10650    for ac_exec_ext in '' $ac_executable_extensions; do
10651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10652    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10654    break 2
10655  fi
10656done
10657  done
10658IFS=$as_save_IFS
10659
10660fi
10661fi
10662OTOOL64=$ac_cv_prog_OTOOL64
10663if test -n "$OTOOL64"; then
10664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10665$as_echo "$OTOOL64" >&6; }
10666else
10667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668$as_echo "no" >&6; }
10669fi
10670
10671
10672fi
10673if test -z "$ac_cv_prog_OTOOL64"; then
10674  ac_ct_OTOOL64=$OTOOL64
10675  # Extract the first word of "otool64", so it can be a program name with args.
10676set dummy otool64; ac_word=$2
10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678$as_echo_n "checking for $ac_word... " >&6; }
10679if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10680  $as_echo_n "(cached) " >&6
10681else
10682  if test -n "$ac_ct_OTOOL64"; then
10683  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10684else
10685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686for as_dir in $PATH
10687do
10688  IFS=$as_save_IFS
10689  test -z "$as_dir" && as_dir=.
10690    for ac_exec_ext in '' $ac_executable_extensions; do
10691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692    ac_cv_prog_ac_ct_OTOOL64="otool64"
10693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694    break 2
10695  fi
10696done
10697  done
10698IFS=$as_save_IFS
10699
10700fi
10701fi
10702ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10703if test -n "$ac_ct_OTOOL64"; then
10704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10705$as_echo "$ac_ct_OTOOL64" >&6; }
10706else
10707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708$as_echo "no" >&6; }
10709fi
10710
10711  if test "x$ac_ct_OTOOL64" = x; then
10712    OTOOL64=":"
10713  else
10714    case $cross_compiling:$ac_tool_warned in
10715yes:)
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10718ac_tool_warned=yes ;;
10719esac
10720    OTOOL64=$ac_ct_OTOOL64
10721  fi
10722else
10723  OTOOL64="$ac_cv_prog_OTOOL64"
10724fi
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10753$as_echo_n "checking for -single_module linker flag... " >&6; }
10754if ${lt_cv_apple_cc_single_mod+:} false; then :
10755  $as_echo_n "(cached) " >&6
10756else
10757  lt_cv_apple_cc_single_mod=no
10758      if test -z "$LT_MULTI_MODULE"; then
10759	# By default we will add the -single_module flag. You can override
10760	# by either setting the environment variable LT_MULTI_MODULE
10761	# non-empty at configure time, or by adding -multi_module to the
10762	# link flags.
10763	rm -rf libconftest.dylib*
10764	echo "int foo(void){return 1;}" > conftest.c
10765	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10766-dynamiclib -Wl,-single_module conftest.c" >&5
10767	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10768	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10769        _lt_result=$?
10770	# If there is a non-empty error log, and "single_module"
10771	# appears in it, assume the flag caused a linker warning
10772        if test -s conftest.err && $GREP single_module conftest.err; then
10773	  cat conftest.err >&5
10774	# Otherwise, if the output was created with a 0 exit code from
10775	# the compiler, it worked.
10776	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10777	  lt_cv_apple_cc_single_mod=yes
10778	else
10779	  cat conftest.err >&5
10780	fi
10781	rm -rf libconftest.dylib*
10782	rm -f conftest.*
10783      fi
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10786$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10787
10788    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10789$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10790if ${lt_cv_ld_exported_symbols_list+:} false; then :
10791  $as_echo_n "(cached) " >&6
10792else
10793  lt_cv_ld_exported_symbols_list=no
10794      save_LDFLAGS=$LDFLAGS
10795      echo "_main" > conftest.sym
10796      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10797      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h.  */
10799
10800int
10801main ()
10802{
10803
10804  ;
10805  return 0;
10806}
10807_ACEOF
10808if ac_fn_c_try_link "$LINENO"; then :
10809  lt_cv_ld_exported_symbols_list=yes
10810else
10811  lt_cv_ld_exported_symbols_list=no
10812fi
10813rm -f core conftest.err conftest.$ac_objext \
10814    conftest$ac_exeext conftest.$ac_ext
10815	LDFLAGS=$save_LDFLAGS
10816
10817fi
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10819$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10820
10821    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10822$as_echo_n "checking for -force_load linker flag... " >&6; }
10823if ${lt_cv_ld_force_load+:} false; then :
10824  $as_echo_n "(cached) " >&6
10825else
10826  lt_cv_ld_force_load=no
10827      cat > conftest.c << _LT_EOF
10828int forced_loaded() { return 2;}
10829_LT_EOF
10830      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10831      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10832      echo "$AR cru libconftest.a conftest.o" >&5
10833      $AR cru libconftest.a conftest.o 2>&5
10834      echo "$RANLIB libconftest.a" >&5
10835      $RANLIB libconftest.a 2>&5
10836      cat > conftest.c << _LT_EOF
10837int main() { return 0;}
10838_LT_EOF
10839      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10840      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10841      _lt_result=$?
10842      if test -s conftest.err && $GREP force_load conftest.err; then
10843	cat conftest.err >&5
10844      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10845	lt_cv_ld_force_load=yes
10846      else
10847	cat conftest.err >&5
10848      fi
10849        rm -f conftest.err libconftest.a conftest conftest.c
10850        rm -rf conftest.dSYM
10851
10852fi
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10854$as_echo "$lt_cv_ld_force_load" >&6; }
10855    case $host_os in
10856    rhapsody* | darwin1.[012])
10857      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10858    darwin1.*)
10859      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10860    darwin*) # darwin 5.x on
10861      # if running on 10.5 or later, the deployment target defaults
10862      # to the OS version, if on x86, and 10.4, the deployment
10863      # target defaults to 10.4. Don't you love it?
10864      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10865	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10866	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10867	10.[012][,.]*)
10868	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10869	10.*)
10870	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10871      esac
10872    ;;
10873  esac
10874    if test yes = "$lt_cv_apple_cc_single_mod"; then
10875      _lt_dar_single_mod='$single_module'
10876    fi
10877    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10878      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10879    else
10880      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10881    fi
10882    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10883      _lt_dsymutil='~$DSYMUTIL $lib || :'
10884    else
10885      _lt_dsymutil=
10886    fi
10887    ;;
10888  esac
10889
10890# func_munge_path_list VARIABLE PATH
10891# -----------------------------------
10892# VARIABLE is name of variable containing _space_ separated list of
10893# directories to be munged by the contents of PATH, which is string
10894# having a format:
10895# "DIR[:DIR]:"
10896#       string "DIR[ DIR]" will be prepended to VARIABLE
10897# ":DIR[:DIR]"
10898#       string "DIR[ DIR]" will be appended to VARIABLE
10899# "DIRP[:DIRP]::[DIRA:]DIRA"
10900#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10901#       "DIRA[ DIRA]" will be appended to VARIABLE
10902# "DIR[:DIR]"
10903#       VARIABLE will be replaced by "DIR[ DIR]"
10904func_munge_path_list ()
10905{
10906    case x$2 in
10907    x)
10908        ;;
10909    *:)
10910        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10911        ;;
10912    x:*)
10913        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10914        ;;
10915    *::*)
10916        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10917        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10918        ;;
10919    *)
10920        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10921        ;;
10922    esac
10923}
10924
10925# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10926for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10927		  inttypes.h stdint.h unistd.h
10928do :
10929  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10930ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10931"
10932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10933  cat >>confdefs.h <<_ACEOF
10934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10935_ACEOF
10936
10937fi
10938
10939done
10940
10941
10942for ac_header in dlfcn.h
10943do :
10944  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10945"
10946if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10947  cat >>confdefs.h <<_ACEOF
10948#define HAVE_DLFCN_H 1
10949_ACEOF
10950
10951fi
10952
10953done
10954
10955
10956
10957
10958func_stripname_cnf ()
10959{
10960  case $2 in
10961  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10962  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10963  esac
10964} # func_stripname_cnf
10965
10966
10967
10968
10969
10970# Set options
10971
10972
10973
10974        enable_dlopen=no
10975
10976
10977  enable_win32_dll=no
10978
10979
10980            # Check whether --enable-shared was given.
10981if test "${enable_shared+set}" = set; then :
10982  enableval=$enable_shared; p=${PACKAGE-default}
10983    case $enableval in
10984    yes) enable_shared=yes ;;
10985    no) enable_shared=no ;;
10986    *)
10987      enable_shared=no
10988      # Look at the argument we got.  We use all the common list separators.
10989      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10990      for pkg in $enableval; do
10991	IFS=$lt_save_ifs
10992	if test "X$pkg" = "X$p"; then
10993	  enable_shared=yes
10994	fi
10995      done
10996      IFS=$lt_save_ifs
10997      ;;
10998    esac
10999else
11000  enable_shared=yes
11001fi
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011  # Check whether --enable-static was given.
11012if test "${enable_static+set}" = set; then :
11013  enableval=$enable_static; p=${PACKAGE-default}
11014    case $enableval in
11015    yes) enable_static=yes ;;
11016    no) enable_static=no ;;
11017    *)
11018     enable_static=no
11019      # Look at the argument we got.  We use all the common list separators.
11020      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11021      for pkg in $enableval; do
11022	IFS=$lt_save_ifs
11023	if test "X$pkg" = "X$p"; then
11024	  enable_static=yes
11025	fi
11026      done
11027      IFS=$lt_save_ifs
11028      ;;
11029    esac
11030else
11031  enable_static=yes
11032fi
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043# Check whether --with-pic was given.
11044if test "${with_pic+set}" = set; then :
11045  withval=$with_pic; lt_p=${PACKAGE-default}
11046    case $withval in
11047    yes|no) pic_mode=$withval ;;
11048    *)
11049      pic_mode=default
11050      # Look at the argument we got.  We use all the common list separators.
11051      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11052      for lt_pkg in $withval; do
11053	IFS=$lt_save_ifs
11054	if test "X$lt_pkg" = "X$lt_p"; then
11055	  pic_mode=yes
11056	fi
11057      done
11058      IFS=$lt_save_ifs
11059      ;;
11060    esac
11061else
11062  pic_mode=default
11063fi
11064
11065
11066
11067
11068
11069
11070
11071
11072  # Check whether --enable-fast-install was given.
11073if test "${enable_fast_install+set}" = set; then :
11074  enableval=$enable_fast_install; p=${PACKAGE-default}
11075    case $enableval in
11076    yes) enable_fast_install=yes ;;
11077    no) enable_fast_install=no ;;
11078    *)
11079      enable_fast_install=no
11080      # Look at the argument we got.  We use all the common list separators.
11081      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11082      for pkg in $enableval; do
11083	IFS=$lt_save_ifs
11084	if test "X$pkg" = "X$p"; then
11085	  enable_fast_install=yes
11086	fi
11087      done
11088      IFS=$lt_save_ifs
11089      ;;
11090    esac
11091else
11092  enable_fast_install=yes
11093fi
11094
11095
11096
11097
11098
11099
11100
11101
11102  shared_archive_member_spec=
11103case $host,$enable_shared in
11104power*-*-aix[5-9]*,yes)
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11106$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11107
11108# Check whether --with-aix-soname was given.
11109if test "${with_aix_soname+set}" = set; then :
11110  withval=$with_aix_soname; case $withval in
11111    aix|svr4|both)
11112      ;;
11113    *)
11114      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11115      ;;
11116    esac
11117    lt_cv_with_aix_soname=$with_aix_soname
11118else
11119  if ${lt_cv_with_aix_soname+:} false; then :
11120  $as_echo_n "(cached) " >&6
11121else
11122  lt_cv_with_aix_soname=aix
11123fi
11124
11125    with_aix_soname=$lt_cv_with_aix_soname
11126fi
11127
11128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11129$as_echo "$with_aix_soname" >&6; }
11130  if test aix != "$with_aix_soname"; then
11131    # For the AIX way of multilib, we name the shared archive member
11132    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11133    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11134    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11135    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11136    if test 64 = "${OBJECT_MODE-32}"; then
11137      shared_archive_member_spec=shr_64
11138    else
11139      shared_archive_member_spec=shr
11140    fi
11141  fi
11142  ;;
11143*)
11144  with_aix_soname=aix
11145  ;;
11146esac
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157# This can be used to rebuild libtool when needed
11158LIBTOOL_DEPS=$ltmain
11159
11160# Always use our own libtool.
11161LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192test -z "$LN_S" && LN_S="ln -s"
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207if test -n "${ZSH_VERSION+set}"; then
11208   setopt NO_GLOB_SUBST
11209fi
11210
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11212$as_echo_n "checking for objdir... " >&6; }
11213if ${lt_cv_objdir+:} false; then :
11214  $as_echo_n "(cached) " >&6
11215else
11216  rm -f .libs 2>/dev/null
11217mkdir .libs 2>/dev/null
11218if test -d .libs; then
11219  lt_cv_objdir=.libs
11220else
11221  # MS-DOS does not allow filenames that begin with a dot.
11222  lt_cv_objdir=_libs
11223fi
11224rmdir .libs 2>/dev/null
11225fi
11226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11227$as_echo "$lt_cv_objdir" >&6; }
11228objdir=$lt_cv_objdir
11229
11230
11231
11232
11233
11234cat >>confdefs.h <<_ACEOF
11235#define LT_OBJDIR "$lt_cv_objdir/"
11236_ACEOF
11237
11238
11239
11240
11241case $host_os in
11242aix3*)
11243  # AIX sometimes has problems with the GCC collect2 program.  For some
11244  # reason, if we set the COLLECT_NAMES environment variable, the problems
11245  # vanish in a puff of smoke.
11246  if test set != "${COLLECT_NAMES+set}"; then
11247    COLLECT_NAMES=
11248    export COLLECT_NAMES
11249  fi
11250  ;;
11251esac
11252
11253# Global variables:
11254ofile=libtool
11255can_build_shared=yes
11256
11257# All known linkers require a '.a' archive for static linking (except MSVC,
11258# which needs '.lib').
11259libext=a
11260
11261with_gnu_ld=$lt_cv_prog_gnu_ld
11262
11263old_CC=$CC
11264old_CFLAGS=$CFLAGS
11265
11266# Set sane defaults for various variables
11267test -z "$CC" && CC=cc
11268test -z "$LTCC" && LTCC=$CC
11269test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11270test -z "$LD" && LD=ld
11271test -z "$ac_objext" && ac_objext=o
11272
11273func_cc_basename $compiler
11274cc_basename=$func_cc_basename_result
11275
11276
11277# Only perform the check for file, if the check method requires it
11278test -z "$MAGIC_CMD" && MAGIC_CMD=file
11279case $deplibs_check_method in
11280file_magic*)
11281  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11283$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11284if ${lt_cv_path_MAGIC_CMD+:} false; then :
11285  $as_echo_n "(cached) " >&6
11286else
11287  case $MAGIC_CMD in
11288[\\/*] |  ?:[\\/]*)
11289  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11290  ;;
11291*)
11292  lt_save_MAGIC_CMD=$MAGIC_CMD
11293  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11294  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11295  for ac_dir in $ac_dummy; do
11296    IFS=$lt_save_ifs
11297    test -z "$ac_dir" && ac_dir=.
11298    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11299      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11300      if test -n "$file_magic_test_file"; then
11301	case $deplibs_check_method in
11302	"file_magic "*)
11303	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11304	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11305	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11306	    $EGREP "$file_magic_regex" > /dev/null; then
11307	    :
11308	  else
11309	    cat <<_LT_EOF 1>&2
11310
11311*** Warning: the command libtool uses to detect shared libraries,
11312*** $file_magic_cmd, produces output that libtool cannot recognize.
11313*** The result is that libtool may fail to recognize shared libraries
11314*** as such.  This will affect the creation of libtool libraries that
11315*** depend on shared libraries, but programs linked with such libtool
11316*** libraries will work regardless of this problem.  Nevertheless, you
11317*** may want to report the problem to your system manager and/or to
11318*** bug-libtool@gnu.org
11319
11320_LT_EOF
11321	  fi ;;
11322	esac
11323      fi
11324      break
11325    fi
11326  done
11327  IFS=$lt_save_ifs
11328  MAGIC_CMD=$lt_save_MAGIC_CMD
11329  ;;
11330esac
11331fi
11332
11333MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11334if test -n "$MAGIC_CMD"; then
11335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11336$as_echo "$MAGIC_CMD" >&6; }
11337else
11338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
11340fi
11341
11342
11343
11344
11345
11346if test -z "$lt_cv_path_MAGIC_CMD"; then
11347  if test -n "$ac_tool_prefix"; then
11348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11349$as_echo_n "checking for file... " >&6; }
11350if ${lt_cv_path_MAGIC_CMD+:} false; then :
11351  $as_echo_n "(cached) " >&6
11352else
11353  case $MAGIC_CMD in
11354[\\/*] |  ?:[\\/]*)
11355  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11356  ;;
11357*)
11358  lt_save_MAGIC_CMD=$MAGIC_CMD
11359  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11360  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11361  for ac_dir in $ac_dummy; do
11362    IFS=$lt_save_ifs
11363    test -z "$ac_dir" && ac_dir=.
11364    if test -f "$ac_dir/file"; then
11365      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11366      if test -n "$file_magic_test_file"; then
11367	case $deplibs_check_method in
11368	"file_magic "*)
11369	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11370	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11371	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11372	    $EGREP "$file_magic_regex" > /dev/null; then
11373	    :
11374	  else
11375	    cat <<_LT_EOF 1>&2
11376
11377*** Warning: the command libtool uses to detect shared libraries,
11378*** $file_magic_cmd, produces output that libtool cannot recognize.
11379*** The result is that libtool may fail to recognize shared libraries
11380*** as such.  This will affect the creation of libtool libraries that
11381*** depend on shared libraries, but programs linked with such libtool
11382*** libraries will work regardless of this problem.  Nevertheless, you
11383*** may want to report the problem to your system manager and/or to
11384*** bug-libtool@gnu.org
11385
11386_LT_EOF
11387	  fi ;;
11388	esac
11389      fi
11390      break
11391    fi
11392  done
11393  IFS=$lt_save_ifs
11394  MAGIC_CMD=$lt_save_MAGIC_CMD
11395  ;;
11396esac
11397fi
11398
11399MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11400if test -n "$MAGIC_CMD"; then
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11402$as_echo "$MAGIC_CMD" >&6; }
11403else
11404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405$as_echo "no" >&6; }
11406fi
11407
11408
11409  else
11410    MAGIC_CMD=:
11411  fi
11412fi
11413
11414  fi
11415  ;;
11416esac
11417
11418# Use C for the default configuration in the libtool script
11419
11420lt_save_CC=$CC
11421ac_ext=c
11422ac_cpp='$CPP $CPPFLAGS'
11423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425ac_compiler_gnu=$ac_cv_c_compiler_gnu
11426
11427
11428# Source file extension for C test sources.
11429ac_ext=c
11430
11431# Object file extension for compiled C test sources.
11432objext=o
11433objext=$objext
11434
11435# Code to be used in simple compile tests
11436lt_simple_compile_test_code="int some_variable = 0;"
11437
11438# Code to be used in simple link tests
11439lt_simple_link_test_code='int main(){return(0);}'
11440
11441
11442
11443
11444
11445
11446
11447# If no C compiler was specified, use CC.
11448LTCC=${LTCC-"$CC"}
11449
11450# If no C compiler flags were specified, use CFLAGS.
11451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11452
11453# Allow CC to be a program name with arguments.
11454compiler=$CC
11455
11456# Save the default compiler, since it gets overwritten when the other
11457# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11458compiler_DEFAULT=$CC
11459
11460# save warnings/boilerplate of simple test code
11461ac_outfile=conftest.$ac_objext
11462echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11463eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11464_lt_compiler_boilerplate=`cat conftest.err`
11465$RM conftest*
11466
11467ac_outfile=conftest.$ac_objext
11468echo "$lt_simple_link_test_code" >conftest.$ac_ext
11469eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11470_lt_linker_boilerplate=`cat conftest.err`
11471$RM -r conftest*
11472
11473
11474## CAVEAT EMPTOR:
11475## There is no encapsulation within the following macros, do not change
11476## the running order or otherwise move them around unless you know exactly
11477## what you are doing...
11478if test -n "$compiler"; then
11479
11480lt_prog_compiler_no_builtin_flag=
11481
11482if test yes = "$GCC"; then
11483  case $cc_basename in
11484  nvcc*)
11485    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11486  *)
11487    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11488  esac
11489
11490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11491$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11492if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11493  $as_echo_n "(cached) " >&6
11494else
11495  lt_cv_prog_compiler_rtti_exceptions=no
11496   ac_outfile=conftest.$ac_objext
11497   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11498   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11499   # Insert the option either (1) after the last *FLAGS variable, or
11500   # (2) before a word containing "conftest.", or (3) at the end.
11501   # Note that $ac_compile itself does not contain backslashes and begins
11502   # with a dollar sign (not a hyphen), so the echo should work correctly.
11503   # The option is referenced via a variable to avoid confusing sed.
11504   lt_compile=`echo "$ac_compile" | $SED \
11505   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11506   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11507   -e 's:$: $lt_compiler_flag:'`
11508   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11509   (eval "$lt_compile" 2>conftest.err)
11510   ac_status=$?
11511   cat conftest.err >&5
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   if (exit $ac_status) && test -s "$ac_outfile"; then
11514     # The compiler can only warn and ignore the option if not recognized
11515     # So say no if there are warnings other than the usual output.
11516     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11517     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11518     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11519       lt_cv_prog_compiler_rtti_exceptions=yes
11520     fi
11521   fi
11522   $RM conftest*
11523
11524fi
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11526$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11527
11528if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11529    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11530else
11531    :
11532fi
11533
11534fi
11535
11536
11537
11538
11539
11540
11541  lt_prog_compiler_wl=
11542lt_prog_compiler_pic=
11543lt_prog_compiler_static=
11544
11545
11546  if test yes = "$GCC"; then
11547    lt_prog_compiler_wl='-Wl,'
11548    lt_prog_compiler_static='-static'
11549
11550    case $host_os in
11551      aix*)
11552      # All AIX code is PIC.
11553      if test ia64 = "$host_cpu"; then
11554	# AIX 5 now supports IA64 processor
11555	lt_prog_compiler_static='-Bstatic'
11556      fi
11557      lt_prog_compiler_pic='-fPIC'
11558      ;;
11559
11560    amigaos*)
11561      case $host_cpu in
11562      powerpc)
11563            # see comment about AmigaOS4 .so support
11564            lt_prog_compiler_pic='-fPIC'
11565        ;;
11566      m68k)
11567            # FIXME: we need at least 68020 code to build shared libraries, but
11568            # adding the '-m68020' flag to GCC prevents building anything better,
11569            # like '-m68040'.
11570            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11571        ;;
11572      esac
11573      ;;
11574
11575    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11576      # PIC is the default for these OSes.
11577      ;;
11578
11579    mingw* | cygwin* | pw32* | os2* | cegcc*)
11580      # This hack is so that the source file can tell whether it is being
11581      # built for inclusion in a dll (and should export symbols for example).
11582      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11583      # (--disable-auto-import) libraries
11584      lt_prog_compiler_pic='-DDLL_EXPORT'
11585      case $host_os in
11586      os2*)
11587	lt_prog_compiler_static='$wl-static'
11588	;;
11589      esac
11590      ;;
11591
11592    darwin* | rhapsody*)
11593      # PIC is the default on this platform
11594      # Common symbols not allowed in MH_DYLIB files
11595      lt_prog_compiler_pic='-fno-common'
11596      ;;
11597
11598    haiku*)
11599      # PIC is the default for Haiku.
11600      # The "-static" flag exists, but is broken.
11601      lt_prog_compiler_static=
11602      ;;
11603
11604    hpux*)
11605      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11606      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11607      # sets the default TLS model and affects inlining.
11608      case $host_cpu in
11609      hppa*64*)
11610	# +Z the default
11611	;;
11612      *)
11613	lt_prog_compiler_pic='-fPIC'
11614	;;
11615      esac
11616      ;;
11617
11618    interix[3-9]*)
11619      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11620      # Instead, we relocate shared libraries at runtime.
11621      ;;
11622
11623    msdosdjgpp*)
11624      # Just because we use GCC doesn't mean we suddenly get shared libraries
11625      # on systems that don't support them.
11626      lt_prog_compiler_can_build_shared=no
11627      enable_shared=no
11628      ;;
11629
11630    *nto* | *qnx*)
11631      # QNX uses GNU C++, but need to define -shared option too, otherwise
11632      # it will coredump.
11633      lt_prog_compiler_pic='-fPIC -shared'
11634      ;;
11635
11636    sysv4*MP*)
11637      if test -d /usr/nec; then
11638	lt_prog_compiler_pic=-Kconform_pic
11639      fi
11640      ;;
11641
11642    *)
11643      lt_prog_compiler_pic='-fPIC'
11644      ;;
11645    esac
11646
11647    case $cc_basename in
11648    nvcc*) # Cuda Compiler Driver 2.2
11649      lt_prog_compiler_wl='-Xlinker '
11650      if test -n "$lt_prog_compiler_pic"; then
11651        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11652      fi
11653      ;;
11654    esac
11655  else
11656    # PORTME Check for flag to pass linker flags through the system compiler.
11657    case $host_os in
11658    aix*)
11659      lt_prog_compiler_wl='-Wl,'
11660      if test ia64 = "$host_cpu"; then
11661	# AIX 5 now supports IA64 processor
11662	lt_prog_compiler_static='-Bstatic'
11663      else
11664	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11665      fi
11666      ;;
11667
11668    darwin* | rhapsody*)
11669      # PIC is the default on this platform
11670      # Common symbols not allowed in MH_DYLIB files
11671      lt_prog_compiler_pic='-fno-common'
11672      case $cc_basename in
11673      nagfor*)
11674        # NAG Fortran compiler
11675        lt_prog_compiler_wl='-Wl,-Wl,,'
11676        lt_prog_compiler_pic='-PIC'
11677        lt_prog_compiler_static='-Bstatic'
11678        ;;
11679      esac
11680      ;;
11681
11682    mingw* | cygwin* | pw32* | os2* | cegcc*)
11683      # This hack is so that the source file can tell whether it is being
11684      # built for inclusion in a dll (and should export symbols for example).
11685      lt_prog_compiler_pic='-DDLL_EXPORT'
11686      case $host_os in
11687      os2*)
11688	lt_prog_compiler_static='$wl-static'
11689	;;
11690      esac
11691      ;;
11692
11693    hpux9* | hpux10* | hpux11*)
11694      lt_prog_compiler_wl='-Wl,'
11695      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11696      # not for PA HP-UX.
11697      case $host_cpu in
11698      hppa*64*|ia64*)
11699	# +Z the default
11700	;;
11701      *)
11702	lt_prog_compiler_pic='+Z'
11703	;;
11704      esac
11705      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11706      lt_prog_compiler_static='$wl-a ${wl}archive'
11707      ;;
11708
11709    irix5* | irix6* | nonstopux*)
11710      lt_prog_compiler_wl='-Wl,'
11711      # PIC (with -KPIC) is the default.
11712      lt_prog_compiler_static='-non_shared'
11713      ;;
11714
11715    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11716      case $cc_basename in
11717      # old Intel for x86_64, which still supported -KPIC.
11718      ecc*)
11719	lt_prog_compiler_wl='-Wl,'
11720	lt_prog_compiler_pic='-KPIC'
11721	lt_prog_compiler_static='-static'
11722        ;;
11723      # icc used to be incompatible with GCC.
11724      # ICC 10 doesn't accept -KPIC any more.
11725      icc* | ifort*)
11726	lt_prog_compiler_wl='-Wl,'
11727	lt_prog_compiler_pic='-fPIC'
11728	lt_prog_compiler_static='-static'
11729        ;;
11730      # Lahey Fortran 8.1.
11731      lf95*)
11732	lt_prog_compiler_wl='-Wl,'
11733	lt_prog_compiler_pic='--shared'
11734	lt_prog_compiler_static='--static'
11735	;;
11736      nagfor*)
11737	# NAG Fortran compiler
11738	lt_prog_compiler_wl='-Wl,-Wl,,'
11739	lt_prog_compiler_pic='-PIC'
11740	lt_prog_compiler_static='-Bstatic'
11741	;;
11742      tcc*)
11743	# Fabrice Bellard et al's Tiny C Compiler
11744	lt_prog_compiler_wl='-Wl,'
11745	lt_prog_compiler_pic='-fPIC'
11746	lt_prog_compiler_static='-static'
11747	;;
11748      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11749        # Portland Group compilers (*not* the Pentium gcc compiler,
11750	# which looks to be a dead project)
11751	lt_prog_compiler_wl='-Wl,'
11752	lt_prog_compiler_pic='-fpic'
11753	lt_prog_compiler_static='-Bstatic'
11754        ;;
11755      ccc*)
11756        lt_prog_compiler_wl='-Wl,'
11757        # All Alpha code is PIC.
11758        lt_prog_compiler_static='-non_shared'
11759        ;;
11760      xl* | bgxl* | bgf* | mpixl*)
11761	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11762	lt_prog_compiler_wl='-Wl,'
11763	lt_prog_compiler_pic='-qpic'
11764	lt_prog_compiler_static='-qstaticlink'
11765	;;
11766      *)
11767	case `$CC -V 2>&1 | sed 5q` in
11768	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11769	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11770	  lt_prog_compiler_pic='-KPIC'
11771	  lt_prog_compiler_static='-Bstatic'
11772	  lt_prog_compiler_wl=''
11773	  ;;
11774	*Sun\ F* | *Sun*Fortran*)
11775	  lt_prog_compiler_pic='-KPIC'
11776	  lt_prog_compiler_static='-Bstatic'
11777	  lt_prog_compiler_wl='-Qoption ld '
11778	  ;;
11779	*Sun\ C*)
11780	  # Sun C 5.9
11781	  lt_prog_compiler_pic='-KPIC'
11782	  lt_prog_compiler_static='-Bstatic'
11783	  lt_prog_compiler_wl='-Wl,'
11784	  ;;
11785        *Intel*\ [CF]*Compiler*)
11786	  lt_prog_compiler_wl='-Wl,'
11787	  lt_prog_compiler_pic='-fPIC'
11788	  lt_prog_compiler_static='-static'
11789	  ;;
11790	*Portland\ Group*)
11791	  lt_prog_compiler_wl='-Wl,'
11792	  lt_prog_compiler_pic='-fpic'
11793	  lt_prog_compiler_static='-Bstatic'
11794	  ;;
11795	esac
11796	;;
11797      esac
11798      ;;
11799
11800    newsos6)
11801      lt_prog_compiler_pic='-KPIC'
11802      lt_prog_compiler_static='-Bstatic'
11803      ;;
11804
11805    *nto* | *qnx*)
11806      # QNX uses GNU C++, but need to define -shared option too, otherwise
11807      # it will coredump.
11808      lt_prog_compiler_pic='-fPIC -shared'
11809      ;;
11810
11811    osf3* | osf4* | osf5*)
11812      lt_prog_compiler_wl='-Wl,'
11813      # All OSF/1 code is PIC.
11814      lt_prog_compiler_static='-non_shared'
11815      ;;
11816
11817    rdos*)
11818      lt_prog_compiler_static='-non_shared'
11819      ;;
11820
11821    solaris*)
11822      lt_prog_compiler_pic='-KPIC'
11823      lt_prog_compiler_static='-Bstatic'
11824      case $cc_basename in
11825      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11826	lt_prog_compiler_wl='-Qoption ld ';;
11827      *)
11828	lt_prog_compiler_wl='-Wl,';;
11829      esac
11830      ;;
11831
11832    sunos4*)
11833      lt_prog_compiler_wl='-Qoption ld '
11834      lt_prog_compiler_pic='-PIC'
11835      lt_prog_compiler_static='-Bstatic'
11836      ;;
11837
11838    sysv4 | sysv4.2uw2* | sysv4.3*)
11839      lt_prog_compiler_wl='-Wl,'
11840      lt_prog_compiler_pic='-KPIC'
11841      lt_prog_compiler_static='-Bstatic'
11842      ;;
11843
11844    sysv4*MP*)
11845      if test -d /usr/nec; then
11846	lt_prog_compiler_pic='-Kconform_pic'
11847	lt_prog_compiler_static='-Bstatic'
11848      fi
11849      ;;
11850
11851    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11852      lt_prog_compiler_wl='-Wl,'
11853      lt_prog_compiler_pic='-KPIC'
11854      lt_prog_compiler_static='-Bstatic'
11855      ;;
11856
11857    unicos*)
11858      lt_prog_compiler_wl='-Wl,'
11859      lt_prog_compiler_can_build_shared=no
11860      ;;
11861
11862    uts4*)
11863      lt_prog_compiler_pic='-pic'
11864      lt_prog_compiler_static='-Bstatic'
11865      ;;
11866
11867    *)
11868      lt_prog_compiler_can_build_shared=no
11869      ;;
11870    esac
11871  fi
11872
11873case $host_os in
11874  # For platforms that do not support PIC, -DPIC is meaningless:
11875  *djgpp*)
11876    lt_prog_compiler_pic=
11877    ;;
11878  *)
11879    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11880    ;;
11881esac
11882
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11884$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11885if ${lt_cv_prog_compiler_pic+:} false; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11889fi
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11891$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11892lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11893
11894#
11895# Check to make sure the PIC flag actually works.
11896#
11897if test -n "$lt_prog_compiler_pic"; then
11898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11899$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11900if ${lt_cv_prog_compiler_pic_works+:} false; then :
11901  $as_echo_n "(cached) " >&6
11902else
11903  lt_cv_prog_compiler_pic_works=no
11904   ac_outfile=conftest.$ac_objext
11905   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11906   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11907   # Insert the option either (1) after the last *FLAGS variable, or
11908   # (2) before a word containing "conftest.", or (3) at the end.
11909   # Note that $ac_compile itself does not contain backslashes and begins
11910   # with a dollar sign (not a hyphen), so the echo should work correctly.
11911   # The option is referenced via a variable to avoid confusing sed.
11912   lt_compile=`echo "$ac_compile" | $SED \
11913   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11914   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11915   -e 's:$: $lt_compiler_flag:'`
11916   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11917   (eval "$lt_compile" 2>conftest.err)
11918   ac_status=$?
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   if (exit $ac_status) && test -s "$ac_outfile"; then
11922     # The compiler can only warn and ignore the option if not recognized
11923     # So say no if there are warnings other than the usual output.
11924     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11925     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11926     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11927       lt_cv_prog_compiler_pic_works=yes
11928     fi
11929   fi
11930   $RM conftest*
11931
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11934$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11935
11936if test yes = "$lt_cv_prog_compiler_pic_works"; then
11937    case $lt_prog_compiler_pic in
11938     "" | " "*) ;;
11939     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11940     esac
11941else
11942    lt_prog_compiler_pic=
11943     lt_prog_compiler_can_build_shared=no
11944fi
11945
11946fi
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958#
11959# Check to make sure the static flag actually works.
11960#
11961wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11963$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11964if ${lt_cv_prog_compiler_static_works+:} false; then :
11965  $as_echo_n "(cached) " >&6
11966else
11967  lt_cv_prog_compiler_static_works=no
11968   save_LDFLAGS=$LDFLAGS
11969   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11970   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11971   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11972     # The linker can only warn and ignore the option if not recognized
11973     # So say no if there are warnings
11974     if test -s conftest.err; then
11975       # Append any errors to the config.log.
11976       cat conftest.err 1>&5
11977       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11978       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11979       if diff conftest.exp conftest.er2 >/dev/null; then
11980         lt_cv_prog_compiler_static_works=yes
11981       fi
11982     else
11983       lt_cv_prog_compiler_static_works=yes
11984     fi
11985   fi
11986   $RM -r conftest*
11987   LDFLAGS=$save_LDFLAGS
11988
11989fi
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11991$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11992
11993if test yes = "$lt_cv_prog_compiler_static_works"; then
11994    :
11995else
11996    lt_prog_compiler_static=
11997fi
11998
11999
12000
12001
12002
12003
12004
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12006$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12007if ${lt_cv_prog_compiler_c_o+:} false; then :
12008  $as_echo_n "(cached) " >&6
12009else
12010  lt_cv_prog_compiler_c_o=no
12011   $RM -r conftest 2>/dev/null
12012   mkdir conftest
12013   cd conftest
12014   mkdir out
12015   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12016
12017   lt_compiler_flag="-o out/conftest2.$ac_objext"
12018   # Insert the option either (1) after the last *FLAGS variable, or
12019   # (2) before a word containing "conftest.", or (3) at the end.
12020   # Note that $ac_compile itself does not contain backslashes and begins
12021   # with a dollar sign (not a hyphen), so the echo should work correctly.
12022   lt_compile=`echo "$ac_compile" | $SED \
12023   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12024   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12025   -e 's:$: $lt_compiler_flag:'`
12026   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12027   (eval "$lt_compile" 2>out/conftest.err)
12028   ac_status=$?
12029   cat out/conftest.err >&5
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12032   then
12033     # The compiler can only warn and ignore the option if not recognized
12034     # So say no if there are warnings
12035     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12036     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12037     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12038       lt_cv_prog_compiler_c_o=yes
12039     fi
12040   fi
12041   chmod u+w . 2>&5
12042   $RM conftest*
12043   # SGI C++ compiler will create directory out/ii_files/ for
12044   # template instantiation
12045   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12046   $RM out/* && rmdir out
12047   cd ..
12048   $RM -r conftest
12049   $RM conftest*
12050
12051fi
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12053$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12054
12055
12056
12057
12058
12059
12060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12061$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12062if ${lt_cv_prog_compiler_c_o+:} false; then :
12063  $as_echo_n "(cached) " >&6
12064else
12065  lt_cv_prog_compiler_c_o=no
12066   $RM -r conftest 2>/dev/null
12067   mkdir conftest
12068   cd conftest
12069   mkdir out
12070   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12071
12072   lt_compiler_flag="-o out/conftest2.$ac_objext"
12073   # Insert the option either (1) after the last *FLAGS variable, or
12074   # (2) before a word containing "conftest.", or (3) at the end.
12075   # Note that $ac_compile itself does not contain backslashes and begins
12076   # with a dollar sign (not a hyphen), so the echo should work correctly.
12077   lt_compile=`echo "$ac_compile" | $SED \
12078   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12079   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12080   -e 's:$: $lt_compiler_flag:'`
12081   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12082   (eval "$lt_compile" 2>out/conftest.err)
12083   ac_status=$?
12084   cat out/conftest.err >&5
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12087   then
12088     # The compiler can only warn and ignore the option if not recognized
12089     # So say no if there are warnings
12090     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12091     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12092     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12093       lt_cv_prog_compiler_c_o=yes
12094     fi
12095   fi
12096   chmod u+w . 2>&5
12097   $RM conftest*
12098   # SGI C++ compiler will create directory out/ii_files/ for
12099   # template instantiation
12100   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12101   $RM out/* && rmdir out
12102   cd ..
12103   $RM -r conftest
12104   $RM conftest*
12105
12106fi
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12108$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12109
12110
12111
12112
12113hard_links=nottested
12114if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12115  # do not overwrite the value of need_locks provided by the user
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12117$as_echo_n "checking if we can lock with hard links... " >&6; }
12118  hard_links=yes
12119  $RM conftest*
12120  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12121  touch conftest.a
12122  ln conftest.a conftest.b 2>&5 || hard_links=no
12123  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12125$as_echo "$hard_links" >&6; }
12126  if test no = "$hard_links"; then
12127    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12128$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12129    need_locks=warn
12130  fi
12131else
12132  need_locks=no
12133fi
12134
12135
12136
12137
12138
12139
12140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12141$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12142
12143  runpath_var=
12144  allow_undefined_flag=
12145  always_export_symbols=no
12146  archive_cmds=
12147  archive_expsym_cmds=
12148  compiler_needs_object=no
12149  enable_shared_with_static_runtimes=no
12150  export_dynamic_flag_spec=
12151  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12152  hardcode_automatic=no
12153  hardcode_direct=no
12154  hardcode_direct_absolute=no
12155  hardcode_libdir_flag_spec=
12156  hardcode_libdir_separator=
12157  hardcode_minus_L=no
12158  hardcode_shlibpath_var=unsupported
12159  inherit_rpath=no
12160  link_all_deplibs=unknown
12161  module_cmds=
12162  module_expsym_cmds=
12163  old_archive_from_new_cmds=
12164  old_archive_from_expsyms_cmds=
12165  thread_safe_flag_spec=
12166  whole_archive_flag_spec=
12167  # include_expsyms should be a list of space-separated symbols to be *always*
12168  # included in the symbol list
12169  include_expsyms=
12170  # exclude_expsyms can be an extended regexp of symbols to exclude
12171  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12172  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12173  # as well as any symbol that contains 'd'.
12174  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12175  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12176  # platforms (ab)use it in PIC code, but their linkers get confused if
12177  # the symbol is explicitly referenced.  Since portable code cannot
12178  # rely on this symbol name, it's probably fine to never include it in
12179  # preloaded symbol tables.
12180  # Exclude shared library initialization/finalization symbols.
12181  extract_expsyms_cmds=
12182
12183  case $host_os in
12184  cygwin* | mingw* | pw32* | cegcc*)
12185    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12186    # When not using gcc, we currently assume that we are using
12187    # Microsoft Visual C++.
12188    if test yes != "$GCC"; then
12189      with_gnu_ld=no
12190    fi
12191    ;;
12192  interix*)
12193    # we just hope/assume this is gcc and not c89 (= MSVC++)
12194    with_gnu_ld=yes
12195    ;;
12196  openbsd* | bitrig*)
12197    with_gnu_ld=no
12198    ;;
12199  linux* | k*bsd*-gnu | gnu*)
12200    link_all_deplibs=no
12201    ;;
12202  esac
12203
12204  ld_shlibs=yes
12205
12206  # On some targets, GNU ld is compatible enough with the native linker
12207  # that we're better off using the native interface for both.
12208  lt_use_gnu_ld_interface=no
12209  if test yes = "$with_gnu_ld"; then
12210    case $host_os in
12211      aix*)
12212	# The AIX port of GNU ld has always aspired to compatibility
12213	# with the native linker.  However, as the warning in the GNU ld
12214	# block says, versions before 2.19.5* couldn't really create working
12215	# shared libraries, regardless of the interface used.
12216	case `$LD -v 2>&1` in
12217	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12218	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12219	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12220	  *)
12221	    lt_use_gnu_ld_interface=yes
12222	    ;;
12223	esac
12224	;;
12225      *)
12226	lt_use_gnu_ld_interface=yes
12227	;;
12228    esac
12229  fi
12230
12231  if test yes = "$lt_use_gnu_ld_interface"; then
12232    # If archive_cmds runs LD, not CC, wlarc should be empty
12233    wlarc='$wl'
12234
12235    # Set some defaults for GNU ld with shared library support. These
12236    # are reset later if shared libraries are not supported. Putting them
12237    # here allows them to be overridden if necessary.
12238    runpath_var=LD_RUN_PATH
12239    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12240    export_dynamic_flag_spec='$wl--export-dynamic'
12241    # ancient GNU ld didn't support --whole-archive et. al.
12242    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12243      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12244    else
12245      whole_archive_flag_spec=
12246    fi
12247    supports_anon_versioning=no
12248    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12249      *GNU\ gold*) supports_anon_versioning=yes ;;
12250      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12251      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12252      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12253      *\ 2.11.*) ;; # other 2.11 versions
12254      *) supports_anon_versioning=yes ;;
12255    esac
12256
12257    # See if GNU ld supports shared libraries.
12258    case $host_os in
12259    aix[3-9]*)
12260      # On AIX/PPC, the GNU linker is very broken
12261      if test ia64 != "$host_cpu"; then
12262	ld_shlibs=no
12263	cat <<_LT_EOF 1>&2
12264
12265*** Warning: the GNU linker, at least up to release 2.19, is reported
12266*** to be unable to reliably create shared libraries on AIX.
12267*** Therefore, libtool is disabling shared libraries support.  If you
12268*** really care for shared libraries, you may want to install binutils
12269*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12270*** You will then need to restart the configuration process.
12271
12272_LT_EOF
12273      fi
12274      ;;
12275
12276    amigaos*)
12277      case $host_cpu in
12278      powerpc)
12279            # see comment about AmigaOS4 .so support
12280            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12281            archive_expsym_cmds=''
12282        ;;
12283      m68k)
12284            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)'
12285            hardcode_libdir_flag_spec='-L$libdir'
12286            hardcode_minus_L=yes
12287        ;;
12288      esac
12289      ;;
12290
12291    beos*)
12292      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12293	allow_undefined_flag=unsupported
12294	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12295	# support --undefined.  This deserves some investigation.  FIXME
12296	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12297      else
12298	ld_shlibs=no
12299      fi
12300      ;;
12301
12302    cygwin* | mingw* | pw32* | cegcc*)
12303      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12304      # as there is no search path for DLLs.
12305      hardcode_libdir_flag_spec='-L$libdir'
12306      export_dynamic_flag_spec='$wl--export-all-symbols'
12307      allow_undefined_flag=unsupported
12308      always_export_symbols=no
12309      enable_shared_with_static_runtimes=yes
12310      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'
12311      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12312
12313      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12314        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12315	# If the export-symbols file already is a .def file, use it as
12316	# is; otherwise, prepend EXPORTS...
12317	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12318          cp $export_symbols $output_objdir/$soname.def;
12319        else
12320          echo EXPORTS > $output_objdir/$soname.def;
12321          cat $export_symbols >> $output_objdir/$soname.def;
12322        fi~
12323        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12324      else
12325	ld_shlibs=no
12326      fi
12327      ;;
12328
12329    haiku*)
12330      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12331      link_all_deplibs=yes
12332      ;;
12333
12334    os2*)
12335      hardcode_libdir_flag_spec='-L$libdir'
12336      hardcode_minus_L=yes
12337      allow_undefined_flag=unsupported
12338      shrext_cmds=.dll
12339      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12340	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12341	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12342	$ECHO EXPORTS >> $output_objdir/$libname.def~
12343	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12344	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12345	emximp -o $lib $output_objdir/$libname.def'
12346      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12347	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12348	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12349	$ECHO EXPORTS >> $output_objdir/$libname.def~
12350	prefix_cmds="$SED"~
12351	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12352	  prefix_cmds="$prefix_cmds -e 1d";
12353	fi~
12354	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12355	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12356	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12357	emximp -o $lib $output_objdir/$libname.def'
12358      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12359      enable_shared_with_static_runtimes=yes
12360      ;;
12361
12362    interix[3-9]*)
12363      hardcode_direct=no
12364      hardcode_shlibpath_var=no
12365      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12366      export_dynamic_flag_spec='$wl-E'
12367      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12368      # Instead, shared libraries are loaded at an image base (0x10000000 by
12369      # default) and relocated if they conflict, which is a slow very memory
12370      # consuming and fragmenting process.  To avoid this, we pick a random,
12371      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12372      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12373      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12374      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'
12375      ;;
12376
12377    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12378      tmp_diet=no
12379      if test linux-dietlibc = "$host_os"; then
12380	case $cc_basename in
12381	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12382	esac
12383      fi
12384      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12385	 && test no = "$tmp_diet"
12386      then
12387	tmp_addflag=' $pic_flag'
12388	tmp_sharedflag='-shared'
12389	case $cc_basename,$host_cpu in
12390        pgcc*)				# Portland Group C compiler
12391	  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'
12392	  tmp_addflag=' $pic_flag'
12393	  ;;
12394	pgf77* | pgf90* | pgf95* | pgfortran*)
12395					# Portland Group f77 and f90 compilers
12396	  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'
12397	  tmp_addflag=' $pic_flag -Mnomain' ;;
12398	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12399	  tmp_addflag=' -i_dynamic' ;;
12400	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12401	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12402	ifc* | ifort*)			# Intel Fortran compiler
12403	  tmp_addflag=' -nofor_main' ;;
12404	lf95*)				# Lahey Fortran 8.1
12405	  whole_archive_flag_spec=
12406	  tmp_sharedflag='--shared' ;;
12407        nagfor*)                        # NAGFOR 5.3
12408          tmp_sharedflag='-Wl,-shared' ;;
12409	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12410	  tmp_sharedflag='-qmkshrobj'
12411	  tmp_addflag= ;;
12412	nvcc*)	# Cuda Compiler Driver 2.2
12413	  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'
12414	  compiler_needs_object=yes
12415	  ;;
12416	esac
12417	case `$CC -V 2>&1 | sed 5q` in
12418	*Sun\ C*)			# Sun C 5.9
12419	  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'
12420	  compiler_needs_object=yes
12421	  tmp_sharedflag='-G' ;;
12422	*Sun\ F*)			# Sun Fortran 8.3
12423	  tmp_sharedflag='-G' ;;
12424	esac
12425	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12426
12427        if test yes = "$supports_anon_versioning"; then
12428          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12429            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12430            echo "local: *; };" >> $output_objdir/$libname.ver~
12431            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12432        fi
12433
12434	case $cc_basename in
12435	tcc*)
12436	  export_dynamic_flag_spec='-rdynamic'
12437	  ;;
12438	xlf* | bgf* | bgxlf* | mpixlf*)
12439	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12440	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12441	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12442	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12443	  if test yes = "$supports_anon_versioning"; then
12444	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12445              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12446              echo "local: *; };" >> $output_objdir/$libname.ver~
12447              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12448	  fi
12449	  ;;
12450	esac
12451      else
12452        ld_shlibs=no
12453      fi
12454      ;;
12455
12456    netbsd* | netbsdelf*-gnu)
12457      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12458	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12459	wlarc=
12460      else
12461	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12462	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12463      fi
12464      ;;
12465
12466    solaris*)
12467      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12468	ld_shlibs=no
12469	cat <<_LT_EOF 1>&2
12470
12471*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12472*** create shared libraries on Solaris systems.  Therefore, libtool
12473*** is disabling shared libraries support.  We urge you to upgrade GNU
12474*** binutils to release 2.9.1 or newer.  Another option is to modify
12475*** your PATH or compiler configuration so that the native linker is
12476*** used, and then restart.
12477
12478_LT_EOF
12479      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12480	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12481	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12482      else
12483	ld_shlibs=no
12484      fi
12485      ;;
12486
12487    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12488      case `$LD -v 2>&1` in
12489        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12490	ld_shlibs=no
12491	cat <<_LT_EOF 1>&2
12492
12493*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12494*** reliably create shared libraries on SCO systems.  Therefore, libtool
12495*** is disabling shared libraries support.  We urge you to upgrade GNU
12496*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12497*** your PATH or compiler configuration so that the native linker is
12498*** used, and then restart.
12499
12500_LT_EOF
12501	;;
12502	*)
12503	  # For security reasons, it is highly recommended that you always
12504	  # use absolute paths for naming shared libraries, and exclude the
12505	  # DT_RUNPATH tag from executables and libraries.  But doing so
12506	  # requires that you compile everything twice, which is a pain.
12507	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12508	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12509	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12510	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12511	  else
12512	    ld_shlibs=no
12513	  fi
12514	;;
12515      esac
12516      ;;
12517
12518    sunos4*)
12519      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12520      wlarc=
12521      hardcode_direct=yes
12522      hardcode_shlibpath_var=no
12523      ;;
12524
12525    *)
12526      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12527	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12528	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12529      else
12530	ld_shlibs=no
12531      fi
12532      ;;
12533    esac
12534
12535    if test no = "$ld_shlibs"; then
12536      runpath_var=
12537      hardcode_libdir_flag_spec=
12538      export_dynamic_flag_spec=
12539      whole_archive_flag_spec=
12540    fi
12541  else
12542    # PORTME fill in a description of your system's linker (not GNU ld)
12543    case $host_os in
12544    aix3*)
12545      allow_undefined_flag=unsupported
12546      always_export_symbols=yes
12547      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'
12548      # Note: this linker hardcodes the directories in LIBPATH if there
12549      # are no directories specified by -L.
12550      hardcode_minus_L=yes
12551      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12552	# Neither direct hardcoding nor static linking is supported with a
12553	# broken collect2.
12554	hardcode_direct=unsupported
12555      fi
12556      ;;
12557
12558    aix[4-9]*)
12559      if test ia64 = "$host_cpu"; then
12560	# On IA64, the linker does run time linking by default, so we don't
12561	# have to do anything special.
12562	aix_use_runtimelinking=no
12563	exp_sym_flag='-Bexport'
12564	no_entry_flag=
12565      else
12566	# If we're using GNU nm, then we don't want the "-C" option.
12567	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12568	# Without the "-l" option, or with the "-B" option, AIX nm treats
12569	# weak defined symbols like other global defined symbols, whereas
12570	# GNU nm marks them as "W".
12571	# While the 'weak' keyword is ignored in the Export File, we need
12572	# it in the Import File for the 'aix-soname' feature, so we have
12573	# to replace the "-B" option with "-P" for AIX nm.
12574	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12575	  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'
12576	else
12577	  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'
12578	fi
12579	aix_use_runtimelinking=no
12580
12581	# Test if we are trying to use run time linking or normal
12582	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12583	# have runtime linking enabled, and use it for executables.
12584	# For shared libraries, we enable/disable runtime linking
12585	# depending on the kind of the shared library created -
12586	# when "with_aix_soname,aix_use_runtimelinking" is:
12587	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12588	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12589	#            lib.a           static archive
12590	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12591	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12592	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12593	#            lib.a(lib.so.V) shared, rtl:no
12594	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12595	#            lib.a           static archive
12596	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12597	  for ld_flag in $LDFLAGS; do
12598	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12599	    aix_use_runtimelinking=yes
12600	    break
12601	  fi
12602	  done
12603	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12604	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12605	    # so we don't have lib.a shared libs to link our executables.
12606	    # We have to force runtime linking in this case.
12607	    aix_use_runtimelinking=yes
12608	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12609	  fi
12610	  ;;
12611	esac
12612
12613	exp_sym_flag='-bexport'
12614	no_entry_flag='-bnoentry'
12615      fi
12616
12617      # When large executables or shared objects are built, AIX ld can
12618      # have problems creating the table of contents.  If linking a library
12619      # or program results in "error TOC overflow" add -mminimal-toc to
12620      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12621      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12622
12623      archive_cmds=''
12624      hardcode_direct=yes
12625      hardcode_direct_absolute=yes
12626      hardcode_libdir_separator=':'
12627      link_all_deplibs=yes
12628      file_list_spec='$wl-f,'
12629      case $with_aix_soname,$aix_use_runtimelinking in
12630      aix,*) ;; # traditional, no import file
12631      svr4,* | *,yes) # use import file
12632	# The Import File defines what to hardcode.
12633	hardcode_direct=no
12634	hardcode_direct_absolute=no
12635	;;
12636      esac
12637
12638      if test yes = "$GCC"; then
12639	case $host_os in aix4.[012]|aix4.[012].*)
12640	# We only want to do this on AIX 4.2 and lower, the check
12641	# below for broken collect2 doesn't work under 4.3+
12642	  collect2name=`$CC -print-prog-name=collect2`
12643	  if test -f "$collect2name" &&
12644	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12645	  then
12646	  # We have reworked collect2
12647	  :
12648	  else
12649	  # We have old collect2
12650	  hardcode_direct=unsupported
12651	  # It fails to find uninstalled libraries when the uninstalled
12652	  # path is not listed in the libpath.  Setting hardcode_minus_L
12653	  # to unsupported forces relinking
12654	  hardcode_minus_L=yes
12655	  hardcode_libdir_flag_spec='-L$libdir'
12656	  hardcode_libdir_separator=
12657	  fi
12658	  ;;
12659	esac
12660	shared_flag='-shared'
12661	if test yes = "$aix_use_runtimelinking"; then
12662	  shared_flag="$shared_flag "'$wl-G'
12663	fi
12664	# Need to ensure runtime linking is disabled for the traditional
12665	# shared library, or the linker may eventually find shared libraries
12666	# /with/ Import File - we do not want to mix them.
12667	shared_flag_aix='-shared'
12668	shared_flag_svr4='-shared $wl-G'
12669      else
12670	# not using gcc
12671	if test ia64 = "$host_cpu"; then
12672	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12673	# chokes on -Wl,-G. The following line is correct:
12674	  shared_flag='-G'
12675	else
12676	  if test yes = "$aix_use_runtimelinking"; then
12677	    shared_flag='$wl-G'
12678	  else
12679	    shared_flag='$wl-bM:SRE'
12680	  fi
12681	  shared_flag_aix='$wl-bM:SRE'
12682	  shared_flag_svr4='$wl-G'
12683	fi
12684      fi
12685
12686      export_dynamic_flag_spec='$wl-bexpall'
12687      # It seems that -bexpall does not export symbols beginning with
12688      # underscore (_), so it is better to generate a list of symbols to export.
12689      always_export_symbols=yes
12690      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12691	# Warning - without using the other runtime loading flags (-brtl),
12692	# -berok will link without error, but may produce a broken library.
12693	allow_undefined_flag='-berok'
12694        # Determine the default libpath from the value encoded in an
12695        # empty executable.
12696        if test set = "${lt_cv_aix_libpath+set}"; then
12697  aix_libpath=$lt_cv_aix_libpath
12698else
12699  if ${lt_cv_aix_libpath_+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703/* end confdefs.h.  */
12704
12705int
12706main ()
12707{
12708
12709  ;
12710  return 0;
12711}
12712_ACEOF
12713if ac_fn_c_try_link "$LINENO"; then :
12714
12715  lt_aix_libpath_sed='
12716      /Import File Strings/,/^$/ {
12717	  /^0/ {
12718	      s/^0  *\([^ ]*\) *$/\1/
12719	      p
12720	  }
12721      }'
12722  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12723  # Check for a 64-bit object if we didn't find anything.
12724  if test -z "$lt_cv_aix_libpath_"; then
12725    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12726  fi
12727fi
12728rm -f core conftest.err conftest.$ac_objext \
12729    conftest$ac_exeext conftest.$ac_ext
12730  if test -z "$lt_cv_aix_libpath_"; then
12731    lt_cv_aix_libpath_=/usr/lib:/lib
12732  fi
12733
12734fi
12735
12736  aix_libpath=$lt_cv_aix_libpath_
12737fi
12738
12739        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12740        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
12741      else
12742	if test ia64 = "$host_cpu"; then
12743	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12744	  allow_undefined_flag="-z nodefs"
12745	  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"
12746	else
12747	 # Determine the default libpath from the value encoded in an
12748	 # empty executable.
12749	 if test set = "${lt_cv_aix_libpath+set}"; then
12750  aix_libpath=$lt_cv_aix_libpath
12751else
12752  if ${lt_cv_aix_libpath_+:} false; then :
12753  $as_echo_n "(cached) " >&6
12754else
12755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h.  */
12757
12758int
12759main ()
12760{
12761
12762  ;
12763  return 0;
12764}
12765_ACEOF
12766if ac_fn_c_try_link "$LINENO"; then :
12767
12768  lt_aix_libpath_sed='
12769      /Import File Strings/,/^$/ {
12770	  /^0/ {
12771	      s/^0  *\([^ ]*\) *$/\1/
12772	      p
12773	  }
12774      }'
12775  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12776  # Check for a 64-bit object if we didn't find anything.
12777  if test -z "$lt_cv_aix_libpath_"; then
12778    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12779  fi
12780fi
12781rm -f core conftest.err conftest.$ac_objext \
12782    conftest$ac_exeext conftest.$ac_ext
12783  if test -z "$lt_cv_aix_libpath_"; then
12784    lt_cv_aix_libpath_=/usr/lib:/lib
12785  fi
12786
12787fi
12788
12789  aix_libpath=$lt_cv_aix_libpath_
12790fi
12791
12792	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12793	  # Warning - without using the other run time loading flags,
12794	  # -berok will link without error, but may produce a broken library.
12795	  no_undefined_flag=' $wl-bernotok'
12796	  allow_undefined_flag=' $wl-berok'
12797	  if test yes = "$with_gnu_ld"; then
12798	    # We only use this code for GNU lds that support --whole-archive.
12799	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12800	  else
12801	    # Exported symbols can be pulled into shared objects from archives
12802	    whole_archive_flag_spec='$convenience'
12803	  fi
12804	  archive_cmds_need_lc=yes
12805	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12806	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12807	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12808	  if test svr4 != "$with_aix_soname"; then
12809	    # This is similar to how AIX traditionally builds its shared libraries.
12810	    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'
12811	  fi
12812	  if test aix != "$with_aix_soname"; then
12813	    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'
12814	  else
12815	    # used by -dlpreopen to get the symbols
12816	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12817	  fi
12818	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12819	fi
12820      fi
12821      ;;
12822
12823    amigaos*)
12824      case $host_cpu in
12825      powerpc)
12826            # see comment about AmigaOS4 .so support
12827            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12828            archive_expsym_cmds=''
12829        ;;
12830      m68k)
12831            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)'
12832            hardcode_libdir_flag_spec='-L$libdir'
12833            hardcode_minus_L=yes
12834        ;;
12835      esac
12836      ;;
12837
12838    bsdi[45]*)
12839      export_dynamic_flag_spec=-rdynamic
12840      ;;
12841
12842    cygwin* | mingw* | pw32* | cegcc*)
12843      # When not using gcc, we currently assume that we are using
12844      # Microsoft Visual C++.
12845      # hardcode_libdir_flag_spec is actually meaningless, as there is
12846      # no search path for DLLs.
12847      case $cc_basename in
12848      cl*)
12849	# Native MSVC
12850	hardcode_libdir_flag_spec=' '
12851	allow_undefined_flag=unsupported
12852	always_export_symbols=yes
12853	file_list_spec='@'
12854	# Tell ltmain to make .lib files, not .a files.
12855	libext=lib
12856	# Tell ltmain to make .dll files, not .so files.
12857	shrext_cmds=.dll
12858	# FIXME: Setting linknames here is a bad hack.
12859	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12860	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12861            cp "$export_symbols" "$output_objdir/$soname.def";
12862            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12863          else
12864            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12865          fi~
12866          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12867          linknames='
12868	# The linker will not automatically build a static lib if we build a DLL.
12869	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12870	enable_shared_with_static_runtimes=yes
12871	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12872	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12873	# Don't use ranlib
12874	old_postinstall_cmds='chmod 644 $oldlib'
12875	postlink_cmds='lt_outputfile="@OUTPUT@"~
12876          lt_tool_outputfile="@TOOL_OUTPUT@"~
12877          case $lt_outputfile in
12878            *.exe|*.EXE) ;;
12879            *)
12880              lt_outputfile=$lt_outputfile.exe
12881              lt_tool_outputfile=$lt_tool_outputfile.exe
12882              ;;
12883          esac~
12884          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12885            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12886            $RM "$lt_outputfile.manifest";
12887          fi'
12888	;;
12889      *)
12890	# Assume MSVC wrapper
12891	hardcode_libdir_flag_spec=' '
12892	allow_undefined_flag=unsupported
12893	# Tell ltmain to make .lib files, not .a files.
12894	libext=lib
12895	# Tell ltmain to make .dll files, not .so files.
12896	shrext_cmds=.dll
12897	# FIXME: Setting linknames here is a bad hack.
12898	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12899	# The linker will automatically build a .lib file if we build a DLL.
12900	old_archive_from_new_cmds='true'
12901	# FIXME: Should let the user specify the lib program.
12902	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12903	enable_shared_with_static_runtimes=yes
12904	;;
12905      esac
12906      ;;
12907
12908    darwin* | rhapsody*)
12909
12910
12911  archive_cmds_need_lc=no
12912  hardcode_direct=no
12913  hardcode_automatic=yes
12914  hardcode_shlibpath_var=unsupported
12915  if test yes = "$lt_cv_ld_force_load"; then
12916    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\"`'
12917
12918  else
12919    whole_archive_flag_spec=''
12920  fi
12921  link_all_deplibs=yes
12922  allow_undefined_flag=$_lt_dar_allow_undefined
12923  case $cc_basename in
12924     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12925     *) _lt_dar_can_shared=$GCC ;;
12926  esac
12927  if test yes = "$_lt_dar_can_shared"; then
12928    output_verbose_link_cmd=func_echo_all
12929    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12930    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12931    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"
12932    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"
12933
12934  else
12935  ld_shlibs=no
12936  fi
12937
12938      ;;
12939
12940    dgux*)
12941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12942      hardcode_libdir_flag_spec='-L$libdir'
12943      hardcode_shlibpath_var=no
12944      ;;
12945
12946    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12947    # support.  Future versions do this automatically, but an explicit c++rt0.o
12948    # does not break anything, and helps significantly (at the cost of a little
12949    # extra space).
12950    freebsd2.2*)
12951      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12952      hardcode_libdir_flag_spec='-R$libdir'
12953      hardcode_direct=yes
12954      hardcode_shlibpath_var=no
12955      ;;
12956
12957    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12958    freebsd2.*)
12959      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12960      hardcode_direct=yes
12961      hardcode_minus_L=yes
12962      hardcode_shlibpath_var=no
12963      ;;
12964
12965    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12966    freebsd* | dragonfly*)
12967      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12968      hardcode_libdir_flag_spec='-R$libdir'
12969      hardcode_direct=yes
12970      hardcode_shlibpath_var=no
12971      ;;
12972
12973    hpux9*)
12974      if test yes = "$GCC"; then
12975	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'
12976      else
12977	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'
12978      fi
12979      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12980      hardcode_libdir_separator=:
12981      hardcode_direct=yes
12982
12983      # hardcode_minus_L: Not really in the search PATH,
12984      # but as the default location of the library.
12985      hardcode_minus_L=yes
12986      export_dynamic_flag_spec='$wl-E'
12987      ;;
12988
12989    hpux10*)
12990      if test yes,no = "$GCC,$with_gnu_ld"; then
12991	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12992      else
12993	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12994      fi
12995      if test no = "$with_gnu_ld"; then
12996	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12997	hardcode_libdir_separator=:
12998	hardcode_direct=yes
12999	hardcode_direct_absolute=yes
13000	export_dynamic_flag_spec='$wl-E'
13001	# hardcode_minus_L: Not really in the search PATH,
13002	# but as the default location of the library.
13003	hardcode_minus_L=yes
13004      fi
13005      ;;
13006
13007    hpux11*)
13008      if test yes,no = "$GCC,$with_gnu_ld"; then
13009	case $host_cpu in
13010	hppa*64*)
13011	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13012	  ;;
13013	ia64*)
13014	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13015	  ;;
13016	*)
13017	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13018	  ;;
13019	esac
13020      else
13021	case $host_cpu in
13022	hppa*64*)
13023	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13024	  ;;
13025	ia64*)
13026	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13027	  ;;
13028	*)
13029
13030	  # Older versions of the 11.00 compiler do not understand -b yet
13031	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13032	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13033$as_echo_n "checking if $CC understands -b... " >&6; }
13034if ${lt_cv_prog_compiler__b+:} false; then :
13035  $as_echo_n "(cached) " >&6
13036else
13037  lt_cv_prog_compiler__b=no
13038   save_LDFLAGS=$LDFLAGS
13039   LDFLAGS="$LDFLAGS -b"
13040   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13041   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13042     # The linker can only warn and ignore the option if not recognized
13043     # So say no if there are warnings
13044     if test -s conftest.err; then
13045       # Append any errors to the config.log.
13046       cat conftest.err 1>&5
13047       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13048       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13049       if diff conftest.exp conftest.er2 >/dev/null; then
13050         lt_cv_prog_compiler__b=yes
13051       fi
13052     else
13053       lt_cv_prog_compiler__b=yes
13054     fi
13055   fi
13056   $RM -r conftest*
13057   LDFLAGS=$save_LDFLAGS
13058
13059fi
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13061$as_echo "$lt_cv_prog_compiler__b" >&6; }
13062
13063if test yes = "$lt_cv_prog_compiler__b"; then
13064    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13065else
13066    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13067fi
13068
13069	  ;;
13070	esac
13071      fi
13072      if test no = "$with_gnu_ld"; then
13073	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13074	hardcode_libdir_separator=:
13075
13076	case $host_cpu in
13077	hppa*64*|ia64*)
13078	  hardcode_direct=no
13079	  hardcode_shlibpath_var=no
13080	  ;;
13081	*)
13082	  hardcode_direct=yes
13083	  hardcode_direct_absolute=yes
13084	  export_dynamic_flag_spec='$wl-E'
13085
13086	  # hardcode_minus_L: Not really in the search PATH,
13087	  # but as the default location of the library.
13088	  hardcode_minus_L=yes
13089	  ;;
13090	esac
13091      fi
13092      ;;
13093
13094    irix5* | irix6* | nonstopux*)
13095      if test yes = "$GCC"; then
13096	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'
13097	# Try to use the -exported_symbol ld option, if it does not
13098	# work, assume that -exports_file does not work either and
13099	# implicitly export all symbols.
13100	# This should be the same for all languages, so no per-tag cache variable.
13101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13102$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13103if ${lt_cv_irix_exported_symbol+:} false; then :
13104  $as_echo_n "(cached) " >&6
13105else
13106  save_LDFLAGS=$LDFLAGS
13107	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13108	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109/* end confdefs.h.  */
13110int foo (void) { return 0; }
13111_ACEOF
13112if ac_fn_c_try_link "$LINENO"; then :
13113  lt_cv_irix_exported_symbol=yes
13114else
13115  lt_cv_irix_exported_symbol=no
13116fi
13117rm -f core conftest.err conftest.$ac_objext \
13118    conftest$ac_exeext conftest.$ac_ext
13119           LDFLAGS=$save_LDFLAGS
13120fi
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13122$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13123	if test yes = "$lt_cv_irix_exported_symbol"; then
13124          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'
13125	fi
13126	link_all_deplibs=no
13127      else
13128	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'
13129	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'
13130      fi
13131      archive_cmds_need_lc='no'
13132      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13133      hardcode_libdir_separator=:
13134      inherit_rpath=yes
13135      link_all_deplibs=yes
13136      ;;
13137
13138    linux*)
13139      case $cc_basename in
13140      tcc*)
13141	# Fabrice Bellard et al's Tiny C Compiler
13142	ld_shlibs=yes
13143	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13144	;;
13145      esac
13146      ;;
13147
13148    netbsd* | netbsdelf*-gnu)
13149      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13150	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13151      else
13152	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13153      fi
13154      hardcode_libdir_flag_spec='-R$libdir'
13155      hardcode_direct=yes
13156      hardcode_shlibpath_var=no
13157      ;;
13158
13159    newsos6)
13160      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13161      hardcode_direct=yes
13162      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13163      hardcode_libdir_separator=:
13164      hardcode_shlibpath_var=no
13165      ;;
13166
13167    *nto* | *qnx*)
13168      ;;
13169
13170    openbsd* | bitrig*)
13171      if test -f /usr/libexec/ld.so; then
13172	hardcode_direct=yes
13173	hardcode_shlibpath_var=no
13174	hardcode_direct_absolute=yes
13175	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13176	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13177	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13178	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13179	  export_dynamic_flag_spec='$wl-E'
13180	else
13181	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13182	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13183	fi
13184      else
13185	ld_shlibs=no
13186      fi
13187      ;;
13188
13189    os2*)
13190      hardcode_libdir_flag_spec='-L$libdir'
13191      hardcode_minus_L=yes
13192      allow_undefined_flag=unsupported
13193      shrext_cmds=.dll
13194      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13195	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13196	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13197	$ECHO EXPORTS >> $output_objdir/$libname.def~
13198	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13199	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13200	emximp -o $lib $output_objdir/$libname.def'
13201      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13202	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13203	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13204	$ECHO EXPORTS >> $output_objdir/$libname.def~
13205	prefix_cmds="$SED"~
13206	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13207	  prefix_cmds="$prefix_cmds -e 1d";
13208	fi~
13209	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13210	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13211	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13212	emximp -o $lib $output_objdir/$libname.def'
13213      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13214      enable_shared_with_static_runtimes=yes
13215      ;;
13216
13217    osf3*)
13218      if test yes = "$GCC"; then
13219	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13220	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'
13221      else
13222	allow_undefined_flag=' -expect_unresolved \*'
13223	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'
13224      fi
13225      archive_cmds_need_lc='no'
13226      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13227      hardcode_libdir_separator=:
13228      ;;
13229
13230    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13231      if test yes = "$GCC"; then
13232	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13233	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'
13234	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13235      else
13236	allow_undefined_flag=' -expect_unresolved \*'
13237	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'
13238	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~
13239          $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'
13240
13241	# Both c and cxx compiler support -rpath directly
13242	hardcode_libdir_flag_spec='-rpath $libdir'
13243      fi
13244      archive_cmds_need_lc='no'
13245      hardcode_libdir_separator=:
13246      ;;
13247
13248    solaris*)
13249      no_undefined_flag=' -z defs'
13250      if test yes = "$GCC"; then
13251	wlarc='$wl'
13252	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13253	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254          $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'
13255      else
13256	case `$CC -V 2>&1` in
13257	*"Compilers 5.0"*)
13258	  wlarc=''
13259	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13260	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13261            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13262	  ;;
13263	*)
13264	  wlarc='$wl'
13265	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13266	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13267            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13268	  ;;
13269	esac
13270      fi
13271      hardcode_libdir_flag_spec='-R$libdir'
13272      hardcode_shlibpath_var=no
13273      case $host_os in
13274      solaris2.[0-5] | solaris2.[0-5].*) ;;
13275      *)
13276	# The compiler driver will combine and reorder linker options,
13277	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13278	# but is careful enough not to reorder.
13279	# Supported since Solaris 2.6 (maybe 2.5.1?)
13280	if test yes = "$GCC"; then
13281	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13282	else
13283	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13284	fi
13285	;;
13286      esac
13287      link_all_deplibs=yes
13288      ;;
13289
13290    sunos4*)
13291      if test sequent = "$host_vendor"; then
13292	# Use $CC to link under sequent, because it throws in some extra .o
13293	# files that make .init and .fini sections work.
13294	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13295      else
13296	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13297      fi
13298      hardcode_libdir_flag_spec='-L$libdir'
13299      hardcode_direct=yes
13300      hardcode_minus_L=yes
13301      hardcode_shlibpath_var=no
13302      ;;
13303
13304    sysv4)
13305      case $host_vendor in
13306	sni)
13307	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13308	  hardcode_direct=yes # is this really true???
13309	;;
13310	siemens)
13311	  ## LD is ld it makes a PLAMLIB
13312	  ## CC just makes a GrossModule.
13313	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13314	  reload_cmds='$CC -r -o $output$reload_objs'
13315	  hardcode_direct=no
13316        ;;
13317	motorola)
13318	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13319	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13320	;;
13321      esac
13322      runpath_var='LD_RUN_PATH'
13323      hardcode_shlibpath_var=no
13324      ;;
13325
13326    sysv4.3*)
13327      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13328      hardcode_shlibpath_var=no
13329      export_dynamic_flag_spec='-Bexport'
13330      ;;
13331
13332    sysv4*MP*)
13333      if test -d /usr/nec; then
13334	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13335	hardcode_shlibpath_var=no
13336	runpath_var=LD_RUN_PATH
13337	hardcode_runpath_var=yes
13338	ld_shlibs=yes
13339      fi
13340      ;;
13341
13342    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13343      no_undefined_flag='$wl-z,text'
13344      archive_cmds_need_lc=no
13345      hardcode_shlibpath_var=no
13346      runpath_var='LD_RUN_PATH'
13347
13348      if test yes = "$GCC"; then
13349	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13350	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13351      else
13352	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354      fi
13355      ;;
13356
13357    sysv5* | sco3.2v5* | sco5v6*)
13358      # Note: We CANNOT use -z defs as we might desire, because we do not
13359      # link with -lc, and that would cause any symbols used from libc to
13360      # always be unresolved, which means just about no library would
13361      # ever link correctly.  If we're not using GNU ld we use -z text
13362      # though, which does catch some bad symbols but isn't as heavy-handed
13363      # as -z defs.
13364      no_undefined_flag='$wl-z,text'
13365      allow_undefined_flag='$wl-z,nodefs'
13366      archive_cmds_need_lc=no
13367      hardcode_shlibpath_var=no
13368      hardcode_libdir_flag_spec='$wl-R,$libdir'
13369      hardcode_libdir_separator=':'
13370      link_all_deplibs=yes
13371      export_dynamic_flag_spec='$wl-Bexport'
13372      runpath_var='LD_RUN_PATH'
13373
13374      if test yes = "$GCC"; then
13375	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13376	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13377      else
13378	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380      fi
13381      ;;
13382
13383    uts4*)
13384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13385      hardcode_libdir_flag_spec='-L$libdir'
13386      hardcode_shlibpath_var=no
13387      ;;
13388
13389    *)
13390      ld_shlibs=no
13391      ;;
13392    esac
13393
13394    if test sni = "$host_vendor"; then
13395      case $host in
13396      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13397	export_dynamic_flag_spec='$wl-Blargedynsym'
13398	;;
13399      esac
13400    fi
13401  fi
13402
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13404$as_echo "$ld_shlibs" >&6; }
13405test no = "$ld_shlibs" && can_build_shared=no
13406
13407with_gnu_ld=$with_gnu_ld
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423#
13424# Do we need to explicitly link libc?
13425#
13426case "x$archive_cmds_need_lc" in
13427x|xyes)
13428  # Assume -lc should be added
13429  archive_cmds_need_lc=yes
13430
13431  if test yes,yes = "$GCC,$enable_shared"; then
13432    case $archive_cmds in
13433    *'~'*)
13434      # FIXME: we may have to deal with multi-command sequences.
13435      ;;
13436    '$CC '*)
13437      # Test whether the compiler implicitly links with -lc since on some
13438      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13439      # to ld, don't add -lc before -lgcc.
13440      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13441$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13442if ${lt_cv_archive_cmds_need_lc+:} false; then :
13443  $as_echo_n "(cached) " >&6
13444else
13445  $RM conftest*
13446	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13447
13448	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13449  (eval $ac_compile) 2>&5
13450  ac_status=$?
13451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452  test $ac_status = 0; } 2>conftest.err; then
13453	  soname=conftest
13454	  lib=conftest
13455	  libobjs=conftest.$ac_objext
13456	  deplibs=
13457	  wl=$lt_prog_compiler_wl
13458	  pic_flag=$lt_prog_compiler_pic
13459	  compiler_flags=-v
13460	  linker_flags=-v
13461	  verstring=
13462	  output_objdir=.
13463	  libname=conftest
13464	  lt_save_allow_undefined_flag=$allow_undefined_flag
13465	  allow_undefined_flag=
13466	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13467  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13468  ac_status=$?
13469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13470  test $ac_status = 0; }
13471	  then
13472	    lt_cv_archive_cmds_need_lc=no
13473	  else
13474	    lt_cv_archive_cmds_need_lc=yes
13475	  fi
13476	  allow_undefined_flag=$lt_save_allow_undefined_flag
13477	else
13478	  cat conftest.err 1>&5
13479	fi
13480	$RM conftest*
13481
13482fi
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13484$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13485      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13486      ;;
13487    esac
13488  fi
13489  ;;
13490esac
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13644$as_echo_n "checking dynamic linker characteristics... " >&6; }
13645
13646if test yes = "$GCC"; then
13647  case $host_os in
13648    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13649    *) lt_awk_arg='/^libraries:/' ;;
13650  esac
13651  case $host_os in
13652    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13653    *) lt_sed_strip_eq='s|=/|/|g' ;;
13654  esac
13655  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13656  case $lt_search_path_spec in
13657  *\;*)
13658    # if the path contains ";" then we assume it to be the separator
13659    # otherwise default to the standard path separator (i.e. ":") - it is
13660    # assumed that no part of a normal pathname contains ";" but that should
13661    # okay in the real world where ";" in dirpaths is itself problematic.
13662    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13663    ;;
13664  *)
13665    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13666    ;;
13667  esac
13668  # Ok, now we have the path, separated by spaces, we can step through it
13669  # and add multilib dir if necessary...
13670  lt_tmp_lt_search_path_spec=
13671  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13672  # ...but if some path component already ends with the multilib dir we assume
13673  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13674  case "$lt_multi_os_dir; $lt_search_path_spec " in
13675  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13676    lt_multi_os_dir=
13677    ;;
13678  esac
13679  for lt_sys_path in $lt_search_path_spec; do
13680    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13681      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13682    elif test -n "$lt_multi_os_dir"; then
13683      test -d "$lt_sys_path" && \
13684	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13685    fi
13686  done
13687  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13688BEGIN {RS = " "; FS = "/|\n";} {
13689  lt_foo = "";
13690  lt_count = 0;
13691  for (lt_i = NF; lt_i > 0; lt_i--) {
13692    if ($lt_i != "" && $lt_i != ".") {
13693      if ($lt_i == "..") {
13694        lt_count++;
13695      } else {
13696        if (lt_count == 0) {
13697          lt_foo = "/" $lt_i lt_foo;
13698        } else {
13699          lt_count--;
13700        }
13701      }
13702    }
13703  }
13704  if (lt_foo != "") { lt_freq[lt_foo]++; }
13705  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13706}'`
13707  # AWK program above erroneously prepends '/' to C:/dos/paths
13708  # for these hosts.
13709  case $host_os in
13710    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13711      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13712  esac
13713  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13714else
13715  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13716fi
13717library_names_spec=
13718libname_spec='lib$name'
13719soname_spec=
13720shrext_cmds=.so
13721postinstall_cmds=
13722postuninstall_cmds=
13723finish_cmds=
13724finish_eval=
13725shlibpath_var=
13726shlibpath_overrides_runpath=unknown
13727version_type=none
13728dynamic_linker="$host_os ld.so"
13729sys_lib_dlsearch_path_spec="/lib /usr/lib"
13730need_lib_prefix=unknown
13731hardcode_into_libs=no
13732
13733# when you set need_version to no, make sure it does not cause -set_version
13734# flags to be left without arguments
13735need_version=unknown
13736
13737
13738
13739case $host_os in
13740aix3*)
13741  version_type=linux # correct to gnu/linux during the next big refactor
13742  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13743  shlibpath_var=LIBPATH
13744
13745  # AIX 3 has no versioning support, so we append a major version to the name.
13746  soname_spec='$libname$release$shared_ext$major'
13747  ;;
13748
13749aix[4-9]*)
13750  version_type=linux # correct to gnu/linux during the next big refactor
13751  need_lib_prefix=no
13752  need_version=no
13753  hardcode_into_libs=yes
13754  if test ia64 = "$host_cpu"; then
13755    # AIX 5 supports IA64
13756    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13757    shlibpath_var=LD_LIBRARY_PATH
13758  else
13759    # With GCC up to 2.95.x, collect2 would create an import file
13760    # for dependence libraries.  The import file would start with
13761    # the line '#! .'.  This would cause the generated library to
13762    # depend on '.', always an invalid library.  This was fixed in
13763    # development snapshots of GCC prior to 3.0.
13764    case $host_os in
13765      aix4 | aix4.[01] | aix4.[01].*)
13766      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13767	   echo ' yes '
13768	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13769	:
13770      else
13771	can_build_shared=no
13772      fi
13773      ;;
13774    esac
13775    # Using Import Files as archive members, it is possible to support
13776    # filename-based versioning of shared library archives on AIX. While
13777    # this would work for both with and without runtime linking, it will
13778    # prevent static linking of such archives. So we do filename-based
13779    # shared library versioning with .so extension only, which is used
13780    # when both runtime linking and shared linking is enabled.
13781    # Unfortunately, runtime linking may impact performance, so we do
13782    # not want this to be the default eventually. Also, we use the
13783    # versioned .so libs for executables only if there is the -brtl
13784    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13785    # To allow for filename-based versioning support, we need to create
13786    # libNAME.so.V as an archive file, containing:
13787    # *) an Import File, referring to the versioned filename of the
13788    #    archive as well as the shared archive member, telling the
13789    #    bitwidth (32 or 64) of that shared object, and providing the
13790    #    list of exported symbols of that shared object, eventually
13791    #    decorated with the 'weak' keyword
13792    # *) the shared object with the F_LOADONLY flag set, to really avoid
13793    #    it being seen by the linker.
13794    # At run time we better use the real file rather than another symlink,
13795    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13796
13797    case $with_aix_soname,$aix_use_runtimelinking in
13798    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13799    # soname into executable. Probably we can add versioning support to
13800    # collect2, so additional links can be useful in future.
13801    aix,yes) # traditional libtool
13802      dynamic_linker='AIX unversionable lib.so'
13803      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13804      # instead of lib<name>.a to let people know that these are not
13805      # typical AIX shared libraries.
13806      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13807      ;;
13808    aix,no) # traditional AIX only
13809      dynamic_linker='AIX lib.a(lib.so.V)'
13810      # We preserve .a as extension for shared libraries through AIX4.2
13811      # and later when we are not doing run time linking.
13812      library_names_spec='$libname$release.a $libname.a'
13813      soname_spec='$libname$release$shared_ext$major'
13814      ;;
13815    svr4,*) # full svr4 only
13816      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13817      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13818      # We do not specify a path in Import Files, so LIBPATH fires.
13819      shlibpath_overrides_runpath=yes
13820      ;;
13821    *,yes) # both, prefer svr4
13822      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13823      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13824      # unpreferred sharedlib libNAME.a needs extra handling
13825      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"'
13826      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"'
13827      # We do not specify a path in Import Files, so LIBPATH fires.
13828      shlibpath_overrides_runpath=yes
13829      ;;
13830    *,no) # both, prefer aix
13831      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13832      library_names_spec='$libname$release.a $libname.a'
13833      soname_spec='$libname$release$shared_ext$major'
13834      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13835      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)'
13836      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"'
13837      ;;
13838    esac
13839    shlibpath_var=LIBPATH
13840  fi
13841  ;;
13842
13843amigaos*)
13844  case $host_cpu in
13845  powerpc)
13846    # Since July 2007 AmigaOS4 officially supports .so libraries.
13847    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13848    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13849    ;;
13850  m68k)
13851    library_names_spec='$libname.ixlibrary $libname.a'
13852    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13853    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'
13854    ;;
13855  esac
13856  ;;
13857
13858beos*)
13859  library_names_spec='$libname$shared_ext'
13860  dynamic_linker="$host_os ld.so"
13861  shlibpath_var=LIBRARY_PATH
13862  ;;
13863
13864bsdi[45]*)
13865  version_type=linux # correct to gnu/linux during the next big refactor
13866  need_version=no
13867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13868  soname_spec='$libname$release$shared_ext$major'
13869  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13870  shlibpath_var=LD_LIBRARY_PATH
13871  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13872  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13873  # the default ld.so.conf also contains /usr/contrib/lib and
13874  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13875  # libtool to hard-code these into programs
13876  ;;
13877
13878cygwin* | mingw* | pw32* | cegcc*)
13879  version_type=windows
13880  shrext_cmds=.dll
13881  need_version=no
13882  need_lib_prefix=no
13883
13884  case $GCC,$cc_basename in
13885  yes,*)
13886    # gcc
13887    library_names_spec='$libname.dll.a'
13888    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13889    postinstall_cmds='base_file=`basename \$file`~
13890      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13891      dldir=$destdir/`dirname \$dlpath`~
13892      test -d \$dldir || mkdir -p \$dldir~
13893      $install_prog $dir/$dlname \$dldir/$dlname~
13894      chmod a+x \$dldir/$dlname~
13895      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13896        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13897      fi'
13898    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13899      dlpath=$dir/\$dldll~
13900       $RM \$dlpath'
13901    shlibpath_overrides_runpath=yes
13902
13903    case $host_os in
13904    cygwin*)
13905      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13906      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13907
13908      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13909      ;;
13910    mingw* | cegcc*)
13911      # MinGW DLLs use traditional 'lib' prefix
13912      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13913      ;;
13914    pw32*)
13915      # pw32 DLLs use 'pw' prefix rather than 'lib'
13916      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13917      ;;
13918    esac
13919    dynamic_linker='Win32 ld.exe'
13920    ;;
13921
13922  *,cl*)
13923    # Native MSVC
13924    libname_spec='$name'
13925    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13926    library_names_spec='$libname.dll.lib'
13927
13928    case $build_os in
13929    mingw*)
13930      sys_lib_search_path_spec=
13931      lt_save_ifs=$IFS
13932      IFS=';'
13933      for lt_path in $LIB
13934      do
13935        IFS=$lt_save_ifs
13936        # Let DOS variable expansion print the short 8.3 style file name.
13937        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13938        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13939      done
13940      IFS=$lt_save_ifs
13941      # Convert to MSYS style.
13942      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13943      ;;
13944    cygwin*)
13945      # Convert to unix form, then to dos form, then back to unix form
13946      # but this time dos style (no spaces!) so that the unix form looks
13947      # like /cygdrive/c/PROGRA~1:/cygdr...
13948      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13949      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13950      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13951      ;;
13952    *)
13953      sys_lib_search_path_spec=$LIB
13954      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13955        # It is most probably a Windows format PATH.
13956        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13957      else
13958        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13959      fi
13960      # FIXME: find the short name or the path components, as spaces are
13961      # common. (e.g. "Program Files" -> "PROGRA~1")
13962      ;;
13963    esac
13964
13965    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13966    postinstall_cmds='base_file=`basename \$file`~
13967      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13968      dldir=$destdir/`dirname \$dlpath`~
13969      test -d \$dldir || mkdir -p \$dldir~
13970      $install_prog $dir/$dlname \$dldir/$dlname'
13971    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13972      dlpath=$dir/\$dldll~
13973       $RM \$dlpath'
13974    shlibpath_overrides_runpath=yes
13975    dynamic_linker='Win32 link.exe'
13976    ;;
13977
13978  *)
13979    # Assume MSVC wrapper
13980    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13981    dynamic_linker='Win32 ld.exe'
13982    ;;
13983  esac
13984  # FIXME: first we should search . and the directory the executable is in
13985  shlibpath_var=PATH
13986  ;;
13987
13988darwin* | rhapsody*)
13989  dynamic_linker="$host_os dyld"
13990  version_type=darwin
13991  need_lib_prefix=no
13992  need_version=no
13993  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13994  soname_spec='$libname$release$major$shared_ext'
13995  shlibpath_overrides_runpath=yes
13996  shlibpath_var=DYLD_LIBRARY_PATH
13997  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13998
13999  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14000  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14001  ;;
14002
14003dgux*)
14004  version_type=linux # correct to gnu/linux during the next big refactor
14005  need_lib_prefix=no
14006  need_version=no
14007  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14008  soname_spec='$libname$release$shared_ext$major'
14009  shlibpath_var=LD_LIBRARY_PATH
14010  ;;
14011
14012freebsd* | dragonfly*)
14013  # DragonFly does not have aout.  When/if they implement a new
14014  # versioning mechanism, adjust this.
14015  if test -x /usr/bin/objformat; then
14016    objformat=`/usr/bin/objformat`
14017  else
14018    case $host_os in
14019    freebsd[23].*) objformat=aout ;;
14020    *) objformat=elf ;;
14021    esac
14022  fi
14023  version_type=freebsd-$objformat
14024  case $version_type in
14025    freebsd-elf*)
14026      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14027      soname_spec='$libname$release$shared_ext$major'
14028      need_version=no
14029      need_lib_prefix=no
14030      ;;
14031    freebsd-*)
14032      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14033      need_version=yes
14034      ;;
14035  esac
14036  shlibpath_var=LD_LIBRARY_PATH
14037  case $host_os in
14038  freebsd2.*)
14039    shlibpath_overrides_runpath=yes
14040    ;;
14041  freebsd3.[01]* | freebsdelf3.[01]*)
14042    shlibpath_overrides_runpath=yes
14043    hardcode_into_libs=yes
14044    ;;
14045  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14046  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14047    shlibpath_overrides_runpath=no
14048    hardcode_into_libs=yes
14049    ;;
14050  *) # from 4.6 on, and DragonFly
14051    shlibpath_overrides_runpath=yes
14052    hardcode_into_libs=yes
14053    ;;
14054  esac
14055  ;;
14056
14057haiku*)
14058  version_type=linux # correct to gnu/linux during the next big refactor
14059  need_lib_prefix=no
14060  need_version=no
14061  dynamic_linker="$host_os runtime_loader"
14062  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14063  soname_spec='$libname$release$shared_ext$major'
14064  shlibpath_var=LIBRARY_PATH
14065  shlibpath_overrides_runpath=no
14066  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14067  hardcode_into_libs=yes
14068  ;;
14069
14070hpux9* | hpux10* | hpux11*)
14071  # Give a soname corresponding to the major version so that dld.sl refuses to
14072  # link against other versions.
14073  version_type=sunos
14074  need_lib_prefix=no
14075  need_version=no
14076  case $host_cpu in
14077  ia64*)
14078    shrext_cmds='.so'
14079    hardcode_into_libs=yes
14080    dynamic_linker="$host_os dld.so"
14081    shlibpath_var=LD_LIBRARY_PATH
14082    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14083    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14084    soname_spec='$libname$release$shared_ext$major'
14085    if test 32 = "$HPUX_IA64_MODE"; then
14086      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14087      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14088    else
14089      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14090      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14091    fi
14092    ;;
14093  hppa*64*)
14094    shrext_cmds='.sl'
14095    hardcode_into_libs=yes
14096    dynamic_linker="$host_os dld.sl"
14097    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14098    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14099    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14100    soname_spec='$libname$release$shared_ext$major'
14101    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14102    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14103    ;;
14104  *)
14105    shrext_cmds='.sl'
14106    dynamic_linker="$host_os dld.sl"
14107    shlibpath_var=SHLIB_PATH
14108    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14109    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14110    soname_spec='$libname$release$shared_ext$major'
14111    ;;
14112  esac
14113  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14114  postinstall_cmds='chmod 555 $lib'
14115  # or fails outright, so override atomically:
14116  install_override_mode=555
14117  ;;
14118
14119interix[3-9]*)
14120  version_type=linux # correct to gnu/linux during the next big refactor
14121  need_lib_prefix=no
14122  need_version=no
14123  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14124  soname_spec='$libname$release$shared_ext$major'
14125  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14126  shlibpath_var=LD_LIBRARY_PATH
14127  shlibpath_overrides_runpath=no
14128  hardcode_into_libs=yes
14129  ;;
14130
14131irix5* | irix6* | nonstopux*)
14132  case $host_os in
14133    nonstopux*) version_type=nonstopux ;;
14134    *)
14135	if test yes = "$lt_cv_prog_gnu_ld"; then
14136		version_type=linux # correct to gnu/linux during the next big refactor
14137	else
14138		version_type=irix
14139	fi ;;
14140  esac
14141  need_lib_prefix=no
14142  need_version=no
14143  soname_spec='$libname$release$shared_ext$major'
14144  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14145  case $host_os in
14146  irix5* | nonstopux*)
14147    libsuff= shlibsuff=
14148    ;;
14149  *)
14150    case $LD in # libtool.m4 will add one of these switches to LD
14151    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14152      libsuff= shlibsuff= libmagic=32-bit;;
14153    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14154      libsuff=32 shlibsuff=N32 libmagic=N32;;
14155    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14156      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14157    *) libsuff= shlibsuff= libmagic=never-match;;
14158    esac
14159    ;;
14160  esac
14161  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14162  shlibpath_overrides_runpath=no
14163  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14164  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14165  hardcode_into_libs=yes
14166  ;;
14167
14168# No shared lib support for Linux oldld, aout, or coff.
14169linux*oldld* | linux*aout* | linux*coff*)
14170  dynamic_linker=no
14171  ;;
14172
14173linux*android*)
14174  version_type=none # Android doesn't support versioned libraries.
14175  need_lib_prefix=no
14176  need_version=no
14177  library_names_spec='$libname$release$shared_ext'
14178  soname_spec='$libname$release$shared_ext'
14179  finish_cmds=
14180  shlibpath_var=LD_LIBRARY_PATH
14181  shlibpath_overrides_runpath=yes
14182
14183  # This implies no fast_install, which is unacceptable.
14184  # Some rework will be needed to allow for fast_install
14185  # before this can be enabled.
14186  hardcode_into_libs=yes
14187
14188  dynamic_linker='Android linker'
14189  # Don't embed -rpath directories since the linker doesn't support them.
14190  hardcode_libdir_flag_spec='-L$libdir'
14191  ;;
14192
14193# This must be glibc/ELF.
14194linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14195  version_type=linux # correct to gnu/linux during the next big refactor
14196  need_lib_prefix=no
14197  need_version=no
14198  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14199  soname_spec='$libname$release$shared_ext$major'
14200  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14201  shlibpath_var=LD_LIBRARY_PATH
14202  shlibpath_overrides_runpath=no
14203
14204  # Some binutils ld are patched to set DT_RUNPATH
14205  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14206  $as_echo_n "(cached) " >&6
14207else
14208  lt_cv_shlibpath_overrides_runpath=no
14209    save_LDFLAGS=$LDFLAGS
14210    save_libdir=$libdir
14211    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14212	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h.  */
14215
14216int
14217main ()
14218{
14219
14220  ;
14221  return 0;
14222}
14223_ACEOF
14224if ac_fn_c_try_link "$LINENO"; then :
14225  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14226  lt_cv_shlibpath_overrides_runpath=yes
14227fi
14228fi
14229rm -f core conftest.err conftest.$ac_objext \
14230    conftest$ac_exeext conftest.$ac_ext
14231    LDFLAGS=$save_LDFLAGS
14232    libdir=$save_libdir
14233
14234fi
14235
14236  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14237
14238  # This implies no fast_install, which is unacceptable.
14239  # Some rework will be needed to allow for fast_install
14240  # before this can be enabled.
14241  hardcode_into_libs=yes
14242
14243  # Ideally, we could use ldconfig to report *all* directores which are
14244  # searched for libraries, however this is still not possible.  Aside from not
14245  # being certain /sbin/ldconfig is available, command
14246  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14247  # even though it is searched at run-time.  Try to do the best guess by
14248  # appending ld.so.conf contents (and includes) to the search path.
14249  if test -f /etc/ld.so.conf; then
14250    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' ' '`
14251    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14252  fi
14253
14254  # We used to test for /lib/ld.so.1 and disable shared libraries on
14255  # powerpc, because MkLinux only supported shared libraries with the
14256  # GNU dynamic linker.  Since this was broken with cross compilers,
14257  # most powerpc-linux boxes support dynamic linking these days and
14258  # people can always --disable-shared, the test was removed, and we
14259  # assume the GNU/Linux dynamic linker is in use.
14260  dynamic_linker='GNU/Linux ld.so'
14261  ;;
14262
14263netbsdelf*-gnu)
14264  version_type=linux
14265  need_lib_prefix=no
14266  need_version=no
14267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14268  soname_spec='${libname}${release}${shared_ext}$major'
14269  shlibpath_var=LD_LIBRARY_PATH
14270  shlibpath_overrides_runpath=no
14271  hardcode_into_libs=yes
14272  dynamic_linker='NetBSD ld.elf_so'
14273  ;;
14274
14275netbsd*)
14276  version_type=sunos
14277  need_lib_prefix=no
14278  need_version=no
14279  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14280    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14281    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14282    dynamic_linker='NetBSD (a.out) ld.so'
14283  else
14284    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14285    soname_spec='$libname$release$shared_ext$major'
14286    dynamic_linker='NetBSD ld.elf_so'
14287  fi
14288  shlibpath_var=LD_LIBRARY_PATH
14289  shlibpath_overrides_runpath=yes
14290  hardcode_into_libs=yes
14291  ;;
14292
14293newsos6)
14294  version_type=linux # correct to gnu/linux during the next big refactor
14295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14296  shlibpath_var=LD_LIBRARY_PATH
14297  shlibpath_overrides_runpath=yes
14298  ;;
14299
14300*nto* | *qnx*)
14301  version_type=qnx
14302  need_lib_prefix=no
14303  need_version=no
14304  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14305  soname_spec='$libname$release$shared_ext$major'
14306  shlibpath_var=LD_LIBRARY_PATH
14307  shlibpath_overrides_runpath=no
14308  hardcode_into_libs=yes
14309  dynamic_linker='ldqnx.so'
14310  ;;
14311
14312openbsd* | bitrig*)
14313  version_type=sunos
14314  sys_lib_dlsearch_path_spec=/usr/lib
14315  need_lib_prefix=no
14316  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14317    need_version=no
14318  else
14319    need_version=yes
14320  fi
14321  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14323  shlibpath_var=LD_LIBRARY_PATH
14324  shlibpath_overrides_runpath=yes
14325  ;;
14326
14327os2*)
14328  libname_spec='$name'
14329  version_type=windows
14330  shrext_cmds=.dll
14331  need_version=no
14332  need_lib_prefix=no
14333  # OS/2 can only load a DLL with a base name of 8 characters or less.
14334  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14335    v=$($ECHO $release$versuffix | tr -d .-);
14336    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14337    $ECHO $n$v`$shared_ext'
14338  library_names_spec='${libname}_dll.$libext'
14339  dynamic_linker='OS/2 ld.exe'
14340  shlibpath_var=BEGINLIBPATH
14341  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14342  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14343  postinstall_cmds='base_file=`basename \$file`~
14344    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14345    dldir=$destdir/`dirname \$dlpath`~
14346    test -d \$dldir || mkdir -p \$dldir~
14347    $install_prog $dir/$dlname \$dldir/$dlname~
14348    chmod a+x \$dldir/$dlname~
14349    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14350      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14351    fi'
14352  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14353    dlpath=$dir/\$dldll~
14354    $RM \$dlpath'
14355  ;;
14356
14357osf3* | osf4* | osf5*)
14358  version_type=osf
14359  need_lib_prefix=no
14360  need_version=no
14361  soname_spec='$libname$release$shared_ext$major'
14362  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14363  shlibpath_var=LD_LIBRARY_PATH
14364  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14365  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14366  ;;
14367
14368rdos*)
14369  dynamic_linker=no
14370  ;;
14371
14372solaris*)
14373  version_type=linux # correct to gnu/linux during the next big refactor
14374  need_lib_prefix=no
14375  need_version=no
14376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14377  soname_spec='$libname$release$shared_ext$major'
14378  shlibpath_var=LD_LIBRARY_PATH
14379  shlibpath_overrides_runpath=yes
14380  hardcode_into_libs=yes
14381  # ldd complains unless libraries are executable
14382  postinstall_cmds='chmod +x $lib'
14383  ;;
14384
14385sunos4*)
14386  version_type=sunos
14387  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14388  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14389  shlibpath_var=LD_LIBRARY_PATH
14390  shlibpath_overrides_runpath=yes
14391  if test yes = "$with_gnu_ld"; then
14392    need_lib_prefix=no
14393  fi
14394  need_version=yes
14395  ;;
14396
14397sysv4 | sysv4.3*)
14398  version_type=linux # correct to gnu/linux during the next big refactor
14399  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14400  soname_spec='$libname$release$shared_ext$major'
14401  shlibpath_var=LD_LIBRARY_PATH
14402  case $host_vendor in
14403    sni)
14404      shlibpath_overrides_runpath=no
14405      need_lib_prefix=no
14406      runpath_var=LD_RUN_PATH
14407      ;;
14408    siemens)
14409      need_lib_prefix=no
14410      ;;
14411    motorola)
14412      need_lib_prefix=no
14413      need_version=no
14414      shlibpath_overrides_runpath=no
14415      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14416      ;;
14417  esac
14418  ;;
14419
14420sysv4*MP*)
14421  if test -d /usr/nec; then
14422    version_type=linux # correct to gnu/linux during the next big refactor
14423    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14424    soname_spec='$libname$shared_ext.$major'
14425    shlibpath_var=LD_LIBRARY_PATH
14426  fi
14427  ;;
14428
14429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14430  version_type=sco
14431  need_lib_prefix=no
14432  need_version=no
14433  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14434  soname_spec='$libname$release$shared_ext$major'
14435  shlibpath_var=LD_LIBRARY_PATH
14436  shlibpath_overrides_runpath=yes
14437  hardcode_into_libs=yes
14438  if test yes = "$with_gnu_ld"; then
14439    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14440  else
14441    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14442    case $host_os in
14443      sco3.2v5*)
14444        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14445	;;
14446    esac
14447  fi
14448  sys_lib_dlsearch_path_spec='/usr/lib'
14449  ;;
14450
14451tpf*)
14452  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14453  version_type=linux # correct to gnu/linux during the next big refactor
14454  need_lib_prefix=no
14455  need_version=no
14456  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14457  shlibpath_var=LD_LIBRARY_PATH
14458  shlibpath_overrides_runpath=no
14459  hardcode_into_libs=yes
14460  ;;
14461
14462uts4*)
14463  version_type=linux # correct to gnu/linux during the next big refactor
14464  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14465  soname_spec='$libname$release$shared_ext$major'
14466  shlibpath_var=LD_LIBRARY_PATH
14467  ;;
14468
14469*)
14470  dynamic_linker=no
14471  ;;
14472esac
14473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14474$as_echo "$dynamic_linker" >&6; }
14475test no = "$dynamic_linker" && can_build_shared=no
14476
14477variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14478if test yes = "$GCC"; then
14479  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14480fi
14481
14482if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14483  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14484fi
14485
14486if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14487  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14488fi
14489
14490# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14491configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14492
14493# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14494func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14495
14496# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14497configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14596$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14597hardcode_action=
14598if test -n "$hardcode_libdir_flag_spec" ||
14599   test -n "$runpath_var" ||
14600   test yes = "$hardcode_automatic"; then
14601
14602  # We can hardcode non-existent directories.
14603  if test no != "$hardcode_direct" &&
14604     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14605     # have to relink, otherwise we might link with an installed library
14606     # when we should be linking with a yet-to-be-installed one
14607     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14608     test no != "$hardcode_minus_L"; then
14609    # Linking always hardcodes the temporary library directory.
14610    hardcode_action=relink
14611  else
14612    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14613    hardcode_action=immediate
14614  fi
14615else
14616  # We cannot hardcode anything, or else we can only hardcode existing
14617  # directories.
14618  hardcode_action=unsupported
14619fi
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14621$as_echo "$hardcode_action" >&6; }
14622
14623if test relink = "$hardcode_action" ||
14624   test yes = "$inherit_rpath"; then
14625  # Fast installation is not supported
14626  enable_fast_install=no
14627elif test yes = "$shlibpath_overrides_runpath" ||
14628     test no = "$enable_shared"; then
14629  # Fast installation is not necessary
14630  enable_fast_install=needless
14631fi
14632
14633
14634
14635
14636
14637
14638  if test yes != "$enable_dlopen"; then
14639  enable_dlopen=unknown
14640  enable_dlopen_self=unknown
14641  enable_dlopen_self_static=unknown
14642else
14643  lt_cv_dlopen=no
14644  lt_cv_dlopen_libs=
14645
14646  case $host_os in
14647  beos*)
14648    lt_cv_dlopen=load_add_on
14649    lt_cv_dlopen_libs=
14650    lt_cv_dlopen_self=yes
14651    ;;
14652
14653  mingw* | pw32* | cegcc*)
14654    lt_cv_dlopen=LoadLibrary
14655    lt_cv_dlopen_libs=
14656    ;;
14657
14658  cygwin*)
14659    lt_cv_dlopen=dlopen
14660    lt_cv_dlopen_libs=
14661    ;;
14662
14663  darwin*)
14664    # if libdl is installed we need to link against it
14665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14666$as_echo_n "checking for dlopen in -ldl... " >&6; }
14667if ${ac_cv_lib_dl_dlopen+:} false; then :
14668  $as_echo_n "(cached) " >&6
14669else
14670  ac_check_lib_save_LIBS=$LIBS
14671LIBS="-ldl  $LIBS"
14672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h.  */
14674
14675/* Override any GCC internal prototype to avoid an error.
14676   Use char because int might match the return type of a GCC
14677   builtin and then its argument prototype would still apply.  */
14678#ifdef __cplusplus
14679extern "C"
14680#endif
14681char dlopen ();
14682int
14683main ()
14684{
14685return dlopen ();
14686  ;
14687  return 0;
14688}
14689_ACEOF
14690if ac_fn_c_try_link "$LINENO"; then :
14691  ac_cv_lib_dl_dlopen=yes
14692else
14693  ac_cv_lib_dl_dlopen=no
14694fi
14695rm -f core conftest.err conftest.$ac_objext \
14696    conftest$ac_exeext conftest.$ac_ext
14697LIBS=$ac_check_lib_save_LIBS
14698fi
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14700$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14701if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14702  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14703else
14704
14705    lt_cv_dlopen=dyld
14706    lt_cv_dlopen_libs=
14707    lt_cv_dlopen_self=yes
14708
14709fi
14710
14711    ;;
14712
14713  tpf*)
14714    # Don't try to run any link tests for TPF.  We know it's impossible
14715    # because TPF is a cross-compiler, and we know how we open DSOs.
14716    lt_cv_dlopen=dlopen
14717    lt_cv_dlopen_libs=
14718    lt_cv_dlopen_self=no
14719    ;;
14720
14721  *)
14722    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14723if test "x$ac_cv_func_shl_load" = xyes; then :
14724  lt_cv_dlopen=shl_load
14725else
14726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14727$as_echo_n "checking for shl_load in -ldld... " >&6; }
14728if ${ac_cv_lib_dld_shl_load+:} false; then :
14729  $as_echo_n "(cached) " >&6
14730else
14731  ac_check_lib_save_LIBS=$LIBS
14732LIBS="-ldld  $LIBS"
14733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735
14736/* Override any GCC internal prototype to avoid an error.
14737   Use char because int might match the return type of a GCC
14738   builtin and then its argument prototype would still apply.  */
14739#ifdef __cplusplus
14740extern "C"
14741#endif
14742char shl_load ();
14743int
14744main ()
14745{
14746return shl_load ();
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_link "$LINENO"; then :
14752  ac_cv_lib_dld_shl_load=yes
14753else
14754  ac_cv_lib_dld_shl_load=no
14755fi
14756rm -f core conftest.err conftest.$ac_objext \
14757    conftest$ac_exeext conftest.$ac_ext
14758LIBS=$ac_check_lib_save_LIBS
14759fi
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14761$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14762if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14763  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14764else
14765  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14766if test "x$ac_cv_func_dlopen" = xyes; then :
14767  lt_cv_dlopen=dlopen
14768else
14769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14770$as_echo_n "checking for dlopen in -ldl... " >&6; }
14771if ${ac_cv_lib_dl_dlopen+:} false; then :
14772  $as_echo_n "(cached) " >&6
14773else
14774  ac_check_lib_save_LIBS=$LIBS
14775LIBS="-ldl  $LIBS"
14776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777/* end confdefs.h.  */
14778
14779/* Override any GCC internal prototype to avoid an error.
14780   Use char because int might match the return type of a GCC
14781   builtin and then its argument prototype would still apply.  */
14782#ifdef __cplusplus
14783extern "C"
14784#endif
14785char dlopen ();
14786int
14787main ()
14788{
14789return dlopen ();
14790  ;
14791  return 0;
14792}
14793_ACEOF
14794if ac_fn_c_try_link "$LINENO"; then :
14795  ac_cv_lib_dl_dlopen=yes
14796else
14797  ac_cv_lib_dl_dlopen=no
14798fi
14799rm -f core conftest.err conftest.$ac_objext \
14800    conftest$ac_exeext conftest.$ac_ext
14801LIBS=$ac_check_lib_save_LIBS
14802fi
14803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14804$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14805if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14806  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14807else
14808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14809$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14810if ${ac_cv_lib_svld_dlopen+:} false; then :
14811  $as_echo_n "(cached) " >&6
14812else
14813  ac_check_lib_save_LIBS=$LIBS
14814LIBS="-lsvld  $LIBS"
14815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h.  */
14817
14818/* Override any GCC internal prototype to avoid an error.
14819   Use char because int might match the return type of a GCC
14820   builtin and then its argument prototype would still apply.  */
14821#ifdef __cplusplus
14822extern "C"
14823#endif
14824char dlopen ();
14825int
14826main ()
14827{
14828return dlopen ();
14829  ;
14830  return 0;
14831}
14832_ACEOF
14833if ac_fn_c_try_link "$LINENO"; then :
14834  ac_cv_lib_svld_dlopen=yes
14835else
14836  ac_cv_lib_svld_dlopen=no
14837fi
14838rm -f core conftest.err conftest.$ac_objext \
14839    conftest$ac_exeext conftest.$ac_ext
14840LIBS=$ac_check_lib_save_LIBS
14841fi
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14843$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14844if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14845  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14846else
14847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14848$as_echo_n "checking for dld_link in -ldld... " >&6; }
14849if ${ac_cv_lib_dld_dld_link+:} false; then :
14850  $as_echo_n "(cached) " >&6
14851else
14852  ac_check_lib_save_LIBS=$LIBS
14853LIBS="-ldld  $LIBS"
14854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h.  */
14856
14857/* Override any GCC internal prototype to avoid an error.
14858   Use char because int might match the return type of a GCC
14859   builtin and then its argument prototype would still apply.  */
14860#ifdef __cplusplus
14861extern "C"
14862#endif
14863char dld_link ();
14864int
14865main ()
14866{
14867return dld_link ();
14868  ;
14869  return 0;
14870}
14871_ACEOF
14872if ac_fn_c_try_link "$LINENO"; then :
14873  ac_cv_lib_dld_dld_link=yes
14874else
14875  ac_cv_lib_dld_dld_link=no
14876fi
14877rm -f core conftest.err conftest.$ac_objext \
14878    conftest$ac_exeext conftest.$ac_ext
14879LIBS=$ac_check_lib_save_LIBS
14880fi
14881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14882$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14883if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14884  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14885fi
14886
14887
14888fi
14889
14890
14891fi
14892
14893
14894fi
14895
14896
14897fi
14898
14899
14900fi
14901
14902    ;;
14903  esac
14904
14905  if test no = "$lt_cv_dlopen"; then
14906    enable_dlopen=no
14907  else
14908    enable_dlopen=yes
14909  fi
14910
14911  case $lt_cv_dlopen in
14912  dlopen)
14913    save_CPPFLAGS=$CPPFLAGS
14914    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14915
14916    save_LDFLAGS=$LDFLAGS
14917    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14918
14919    save_LIBS=$LIBS
14920    LIBS="$lt_cv_dlopen_libs $LIBS"
14921
14922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14923$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14924if ${lt_cv_dlopen_self+:} false; then :
14925  $as_echo_n "(cached) " >&6
14926else
14927  	  if test yes = "$cross_compiling"; then :
14928  lt_cv_dlopen_self=cross
14929else
14930  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14931  lt_status=$lt_dlunknown
14932  cat > conftest.$ac_ext <<_LT_EOF
14933#line $LINENO "configure"
14934#include "confdefs.h"
14935
14936#if HAVE_DLFCN_H
14937#include <dlfcn.h>
14938#endif
14939
14940#include <stdio.h>
14941
14942#ifdef RTLD_GLOBAL
14943#  define LT_DLGLOBAL		RTLD_GLOBAL
14944#else
14945#  ifdef DL_GLOBAL
14946#    define LT_DLGLOBAL		DL_GLOBAL
14947#  else
14948#    define LT_DLGLOBAL		0
14949#  endif
14950#endif
14951
14952/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14953   find out it does not work in some platform. */
14954#ifndef LT_DLLAZY_OR_NOW
14955#  ifdef RTLD_LAZY
14956#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14957#  else
14958#    ifdef DL_LAZY
14959#      define LT_DLLAZY_OR_NOW		DL_LAZY
14960#    else
14961#      ifdef RTLD_NOW
14962#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14963#      else
14964#        ifdef DL_NOW
14965#          define LT_DLLAZY_OR_NOW	DL_NOW
14966#        else
14967#          define LT_DLLAZY_OR_NOW	0
14968#        endif
14969#      endif
14970#    endif
14971#  endif
14972#endif
14973
14974/* When -fvisibility=hidden is used, assume the code has been annotated
14975   correspondingly for the symbols needed.  */
14976#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14977int fnord () __attribute__((visibility("default")));
14978#endif
14979
14980int fnord () { return 42; }
14981int main ()
14982{
14983  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14984  int status = $lt_dlunknown;
14985
14986  if (self)
14987    {
14988      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14989      else
14990        {
14991	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14992          else puts (dlerror ());
14993	}
14994      /* dlclose (self); */
14995    }
14996  else
14997    puts (dlerror ());
14998
14999  return status;
15000}
15001_LT_EOF
15002  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15003  (eval $ac_link) 2>&5
15004  ac_status=$?
15005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15006  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15007    (./conftest; exit; ) >&5 2>/dev/null
15008    lt_status=$?
15009    case x$lt_status in
15010      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15011      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15012      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15013    esac
15014  else :
15015    # compilation failed
15016    lt_cv_dlopen_self=no
15017  fi
15018fi
15019rm -fr conftest*
15020
15021
15022fi
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15024$as_echo "$lt_cv_dlopen_self" >&6; }
15025
15026    if test yes = "$lt_cv_dlopen_self"; then
15027      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15028      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15029$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15030if ${lt_cv_dlopen_self_static+:} false; then :
15031  $as_echo_n "(cached) " >&6
15032else
15033  	  if test yes = "$cross_compiling"; then :
15034  lt_cv_dlopen_self_static=cross
15035else
15036  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15037  lt_status=$lt_dlunknown
15038  cat > conftest.$ac_ext <<_LT_EOF
15039#line $LINENO "configure"
15040#include "confdefs.h"
15041
15042#if HAVE_DLFCN_H
15043#include <dlfcn.h>
15044#endif
15045
15046#include <stdio.h>
15047
15048#ifdef RTLD_GLOBAL
15049#  define LT_DLGLOBAL		RTLD_GLOBAL
15050#else
15051#  ifdef DL_GLOBAL
15052#    define LT_DLGLOBAL		DL_GLOBAL
15053#  else
15054#    define LT_DLGLOBAL		0
15055#  endif
15056#endif
15057
15058/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15059   find out it does not work in some platform. */
15060#ifndef LT_DLLAZY_OR_NOW
15061#  ifdef RTLD_LAZY
15062#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15063#  else
15064#    ifdef DL_LAZY
15065#      define LT_DLLAZY_OR_NOW		DL_LAZY
15066#    else
15067#      ifdef RTLD_NOW
15068#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15069#      else
15070#        ifdef DL_NOW
15071#          define LT_DLLAZY_OR_NOW	DL_NOW
15072#        else
15073#          define LT_DLLAZY_OR_NOW	0
15074#        endif
15075#      endif
15076#    endif
15077#  endif
15078#endif
15079
15080/* When -fvisibility=hidden is used, assume the code has been annotated
15081   correspondingly for the symbols needed.  */
15082#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15083int fnord () __attribute__((visibility("default")));
15084#endif
15085
15086int fnord () { return 42; }
15087int main ()
15088{
15089  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15090  int status = $lt_dlunknown;
15091
15092  if (self)
15093    {
15094      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15095      else
15096        {
15097	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15098          else puts (dlerror ());
15099	}
15100      /* dlclose (self); */
15101    }
15102  else
15103    puts (dlerror ());
15104
15105  return status;
15106}
15107_LT_EOF
15108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15109  (eval $ac_link) 2>&5
15110  ac_status=$?
15111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15112  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15113    (./conftest; exit; ) >&5 2>/dev/null
15114    lt_status=$?
15115    case x$lt_status in
15116      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15117      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15118      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15119    esac
15120  else :
15121    # compilation failed
15122    lt_cv_dlopen_self_static=no
15123  fi
15124fi
15125rm -fr conftest*
15126
15127
15128fi
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15130$as_echo "$lt_cv_dlopen_self_static" >&6; }
15131    fi
15132
15133    CPPFLAGS=$save_CPPFLAGS
15134    LDFLAGS=$save_LDFLAGS
15135    LIBS=$save_LIBS
15136    ;;
15137  esac
15138
15139  case $lt_cv_dlopen_self in
15140  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15141  *) enable_dlopen_self=unknown ;;
15142  esac
15143
15144  case $lt_cv_dlopen_self_static in
15145  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15146  *) enable_dlopen_self_static=unknown ;;
15147  esac
15148fi
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166striplib=
15167old_striplib=
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15169$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15170if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15171  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15172  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15174$as_echo "yes" >&6; }
15175else
15176# FIXME - insert some real tests, host_os isn't really good enough
15177  case $host_os in
15178  darwin*)
15179    if test -n "$STRIP"; then
15180      striplib="$STRIP -x"
15181      old_striplib="$STRIP -S"
15182      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183$as_echo "yes" >&6; }
15184    else
15185      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15186$as_echo "no" >&6; }
15187    fi
15188    ;;
15189  *)
15190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191$as_echo "no" >&6; }
15192    ;;
15193  esac
15194fi
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207  # Report what library types will actually be built
15208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15209$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15211$as_echo "$can_build_shared" >&6; }
15212
15213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15214$as_echo_n "checking whether to build shared libraries... " >&6; }
15215  test no = "$can_build_shared" && enable_shared=no
15216
15217  # On AIX, shared libraries and static libraries use the same namespace, and
15218  # are all built from PIC.
15219  case $host_os in
15220  aix3*)
15221    test yes = "$enable_shared" && enable_static=no
15222    if test -n "$RANLIB"; then
15223      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15224      postinstall_cmds='$RANLIB $lib'
15225    fi
15226    ;;
15227
15228  aix[4-9]*)
15229    if test ia64 != "$host_cpu"; then
15230      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15231      yes,aix,yes) ;;			# shared object as lib.so file only
15232      yes,svr4,*) ;;			# shared object as lib.so archive member only
15233      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15234      esac
15235    fi
15236    ;;
15237  esac
15238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15239$as_echo "$enable_shared" >&6; }
15240
15241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15242$as_echo_n "checking whether to build static libraries... " >&6; }
15243  # Make sure either enable_shared or enable_static is yes.
15244  test yes = "$enable_shared" || enable_static=yes
15245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15246$as_echo "$enable_static" >&6; }
15247
15248
15249
15250
15251fi
15252ac_ext=c
15253ac_cpp='$CPP $CPPFLAGS'
15254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15256ac_compiler_gnu=$ac_cv_c_compiler_gnu
15257
15258CC=$lt_save_CC
15259
15260      if test -n "$CXX" && ( test no != "$CXX" &&
15261    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15262    (test g++ != "$CXX"))); then
15263  ac_ext=cpp
15264ac_cpp='$CXXCPP $CPPFLAGS'
15265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15269$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15270if test -z "$CXXCPP"; then
15271  if ${ac_cv_prog_CXXCPP+:} false; then :
15272  $as_echo_n "(cached) " >&6
15273else
15274      # Double quotes because CXXCPP needs to be expanded
15275    for CXXCPP in "$CXX -E" "/lib/cpp"
15276    do
15277      ac_preproc_ok=false
15278for ac_cxx_preproc_warn_flag in '' yes
15279do
15280  # Use a header file that comes with gcc, so configuring glibc
15281  # with a fresh cross-compiler works.
15282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283  # <limits.h> exists even on freestanding compilers.
15284  # On the NeXT, cc -E runs the code through the compiler's parser,
15285  # not just through cpp. "Syntax error" is here to catch this case.
15286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287/* end confdefs.h.  */
15288#ifdef __STDC__
15289# include <limits.h>
15290#else
15291# include <assert.h>
15292#endif
15293		     Syntax error
15294_ACEOF
15295if ac_fn_cxx_try_cpp "$LINENO"; then :
15296
15297else
15298  # Broken: fails on valid input.
15299continue
15300fi
15301rm -f conftest.err conftest.i conftest.$ac_ext
15302
15303  # OK, works on sane cases.  Now check whether nonexistent headers
15304  # can be detected and how.
15305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h.  */
15307#include <ac_nonexistent.h>
15308_ACEOF
15309if ac_fn_cxx_try_cpp "$LINENO"; then :
15310  # Broken: success on invalid input.
15311continue
15312else
15313  # Passes both tests.
15314ac_preproc_ok=:
15315break
15316fi
15317rm -f conftest.err conftest.i conftest.$ac_ext
15318
15319done
15320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15321rm -f conftest.i conftest.err conftest.$ac_ext
15322if $ac_preproc_ok; then :
15323  break
15324fi
15325
15326    done
15327    ac_cv_prog_CXXCPP=$CXXCPP
15328
15329fi
15330  CXXCPP=$ac_cv_prog_CXXCPP
15331else
15332  ac_cv_prog_CXXCPP=$CXXCPP
15333fi
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15335$as_echo "$CXXCPP" >&6; }
15336ac_preproc_ok=false
15337for ac_cxx_preproc_warn_flag in '' yes
15338do
15339  # Use a header file that comes with gcc, so configuring glibc
15340  # with a fresh cross-compiler works.
15341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15342  # <limits.h> exists even on freestanding compilers.
15343  # On the NeXT, cc -E runs the code through the compiler's parser,
15344  # not just through cpp. "Syntax error" is here to catch this case.
15345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346/* end confdefs.h.  */
15347#ifdef __STDC__
15348# include <limits.h>
15349#else
15350# include <assert.h>
15351#endif
15352		     Syntax error
15353_ACEOF
15354if ac_fn_cxx_try_cpp "$LINENO"; then :
15355
15356else
15357  # Broken: fails on valid input.
15358continue
15359fi
15360rm -f conftest.err conftest.i conftest.$ac_ext
15361
15362  # OK, works on sane cases.  Now check whether nonexistent headers
15363  # can be detected and how.
15364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365/* end confdefs.h.  */
15366#include <ac_nonexistent.h>
15367_ACEOF
15368if ac_fn_cxx_try_cpp "$LINENO"; then :
15369  # Broken: success on invalid input.
15370continue
15371else
15372  # Passes both tests.
15373ac_preproc_ok=:
15374break
15375fi
15376rm -f conftest.err conftest.i conftest.$ac_ext
15377
15378done
15379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15380rm -f conftest.i conftest.err conftest.$ac_ext
15381if $ac_preproc_ok; then :
15382
15383else
15384  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15386as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15387See \`config.log' for more details" "$LINENO" 5; }
15388fi
15389
15390ac_ext=c
15391ac_cpp='$CPP $CPPFLAGS'
15392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15394ac_compiler_gnu=$ac_cv_c_compiler_gnu
15395
15396else
15397  _lt_caught_CXX_error=yes
15398fi
15399
15400ac_ext=cpp
15401ac_cpp='$CXXCPP $CPPFLAGS'
15402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15405
15406archive_cmds_need_lc_CXX=no
15407allow_undefined_flag_CXX=
15408always_export_symbols_CXX=no
15409archive_expsym_cmds_CXX=
15410compiler_needs_object_CXX=no
15411export_dynamic_flag_spec_CXX=
15412hardcode_direct_CXX=no
15413hardcode_direct_absolute_CXX=no
15414hardcode_libdir_flag_spec_CXX=
15415hardcode_libdir_separator_CXX=
15416hardcode_minus_L_CXX=no
15417hardcode_shlibpath_var_CXX=unsupported
15418hardcode_automatic_CXX=no
15419inherit_rpath_CXX=no
15420module_cmds_CXX=
15421module_expsym_cmds_CXX=
15422link_all_deplibs_CXX=unknown
15423old_archive_cmds_CXX=$old_archive_cmds
15424reload_flag_CXX=$reload_flag
15425reload_cmds_CXX=$reload_cmds
15426no_undefined_flag_CXX=
15427whole_archive_flag_spec_CXX=
15428enable_shared_with_static_runtimes_CXX=no
15429
15430# Source file extension for C++ test sources.
15431ac_ext=cpp
15432
15433# Object file extension for compiled C++ test sources.
15434objext=o
15435objext_CXX=$objext
15436
15437# No sense in running all these tests if we already determined that
15438# the CXX compiler isn't working.  Some variables (like enable_shared)
15439# are currently assumed to apply to all compilers on this platform,
15440# and will be corrupted by setting them based on a non-working compiler.
15441if test yes != "$_lt_caught_CXX_error"; then
15442  # Code to be used in simple compile tests
15443  lt_simple_compile_test_code="int some_variable = 0;"
15444
15445  # Code to be used in simple link tests
15446  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15447
15448  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15449
15450
15451
15452
15453
15454
15455# If no C compiler was specified, use CC.
15456LTCC=${LTCC-"$CC"}
15457
15458# If no C compiler flags were specified, use CFLAGS.
15459LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15460
15461# Allow CC to be a program name with arguments.
15462compiler=$CC
15463
15464
15465  # save warnings/boilerplate of simple test code
15466  ac_outfile=conftest.$ac_objext
15467echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15468eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15469_lt_compiler_boilerplate=`cat conftest.err`
15470$RM conftest*
15471
15472  ac_outfile=conftest.$ac_objext
15473echo "$lt_simple_link_test_code" >conftest.$ac_ext
15474eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15475_lt_linker_boilerplate=`cat conftest.err`
15476$RM -r conftest*
15477
15478
15479  # Allow CC to be a program name with arguments.
15480  lt_save_CC=$CC
15481  lt_save_CFLAGS=$CFLAGS
15482  lt_save_LD=$LD
15483  lt_save_GCC=$GCC
15484  GCC=$GXX
15485  lt_save_with_gnu_ld=$with_gnu_ld
15486  lt_save_path_LD=$lt_cv_path_LD
15487  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15488    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15489  else
15490    $as_unset lt_cv_prog_gnu_ld
15491  fi
15492  if test -n "${lt_cv_path_LDCXX+set}"; then
15493    lt_cv_path_LD=$lt_cv_path_LDCXX
15494  else
15495    $as_unset lt_cv_path_LD
15496  fi
15497  test -z "${LDCXX+set}" || LD=$LDCXX
15498  CC=${CXX-"c++"}
15499  CFLAGS=$CXXFLAGS
15500  compiler=$CC
15501  compiler_CXX=$CC
15502  func_cc_basename $compiler
15503cc_basename=$func_cc_basename_result
15504
15505
15506  if test -n "$compiler"; then
15507    # We don't want -fno-exception when compiling C++ code, so set the
15508    # no_builtin_flag separately
15509    if test yes = "$GXX"; then
15510      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15511    else
15512      lt_prog_compiler_no_builtin_flag_CXX=
15513    fi
15514
15515    if test yes = "$GXX"; then
15516      # Set up default GNU C++ configuration
15517
15518
15519
15520# Check whether --with-gnu-ld was given.
15521if test "${with_gnu_ld+set}" = set; then :
15522  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15523else
15524  with_gnu_ld=no
15525fi
15526
15527ac_prog=ld
15528if test yes = "$GCC"; then
15529  # Check if gcc -print-prog-name=ld gives a path.
15530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15531$as_echo_n "checking for ld used by $CC... " >&6; }
15532  case $host in
15533  *-*-mingw*)
15534    # gcc leaves a trailing carriage return, which upsets mingw
15535    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15536  *)
15537    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15538  esac
15539  case $ac_prog in
15540    # Accept absolute paths.
15541    [\\/]* | ?:[\\/]*)
15542      re_direlt='/[^/][^/]*/\.\./'
15543      # Canonicalize the pathname of ld
15544      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15545      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15546	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15547      done
15548      test -z "$LD" && LD=$ac_prog
15549      ;;
15550  "")
15551    # If it fails, then pretend we aren't using GCC.
15552    ac_prog=ld
15553    ;;
15554  *)
15555    # If it is relative, then search for the first ld in PATH.
15556    with_gnu_ld=unknown
15557    ;;
15558  esac
15559elif test yes = "$with_gnu_ld"; then
15560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15561$as_echo_n "checking for GNU ld... " >&6; }
15562else
15563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15564$as_echo_n "checking for non-GNU ld... " >&6; }
15565fi
15566if ${lt_cv_path_LD+:} false; then :
15567  $as_echo_n "(cached) " >&6
15568else
15569  if test -z "$LD"; then
15570  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15571  for ac_dir in $PATH; do
15572    IFS=$lt_save_ifs
15573    test -z "$ac_dir" && ac_dir=.
15574    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15575      lt_cv_path_LD=$ac_dir/$ac_prog
15576      # Check to see if the program is GNU ld.  I'd rather use --version,
15577      # but apparently some variants of GNU ld only accept -v.
15578      # Break only if it was the GNU/non-GNU ld that we prefer.
15579      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15580      *GNU* | *'with BFD'*)
15581	test no != "$with_gnu_ld" && break
15582	;;
15583      *)
15584	test yes != "$with_gnu_ld" && break
15585	;;
15586      esac
15587    fi
15588  done
15589  IFS=$lt_save_ifs
15590else
15591  lt_cv_path_LD=$LD # Let the user override the test with a path.
15592fi
15593fi
15594
15595LD=$lt_cv_path_LD
15596if test -n "$LD"; then
15597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15598$as_echo "$LD" >&6; }
15599else
15600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15601$as_echo "no" >&6; }
15602fi
15603test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15605$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15606if ${lt_cv_prog_gnu_ld+:} false; then :
15607  $as_echo_n "(cached) " >&6
15608else
15609  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15610case `$LD -v 2>&1 </dev/null` in
15611*GNU* | *'with BFD'*)
15612  lt_cv_prog_gnu_ld=yes
15613  ;;
15614*)
15615  lt_cv_prog_gnu_ld=no
15616  ;;
15617esac
15618fi
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15620$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15621with_gnu_ld=$lt_cv_prog_gnu_ld
15622
15623
15624
15625
15626
15627
15628
15629      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15630      # archiving commands below assume that GNU ld is being used.
15631      if test yes = "$with_gnu_ld"; then
15632        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15633        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'
15634
15635        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15636        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15637
15638        # If archive_cmds runs LD, not CC, wlarc should be empty
15639        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15640        #     investigate it a little bit more. (MM)
15641        wlarc='$wl'
15642
15643        # ancient GNU ld didn't support --whole-archive et. al.
15644        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15645	  $GREP 'no-whole-archive' > /dev/null; then
15646          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15647        else
15648          whole_archive_flag_spec_CXX=
15649        fi
15650      else
15651        with_gnu_ld=no
15652        wlarc=
15653
15654        # A generic and very simple default shared library creation
15655        # command for GNU C++ for the case where it uses the native
15656        # linker, instead of GNU ld.  If possible, this setting should
15657        # overridden to take advantage of the native linker features on
15658        # the platform it is being used on.
15659        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15660      fi
15661
15662      # Commands to make compiler produce verbose output that lists
15663      # what "hidden" libraries, object files and flags are used when
15664      # linking a shared library.
15665      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15666
15667    else
15668      GXX=no
15669      with_gnu_ld=no
15670      wlarc=
15671    fi
15672
15673    # PORTME: fill in a description of your system's C++ link characteristics
15674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15675$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15676    ld_shlibs_CXX=yes
15677    case $host_os in
15678      aix3*)
15679        # FIXME: insert proper C++ library support
15680        ld_shlibs_CXX=no
15681        ;;
15682      aix[4-9]*)
15683        if test ia64 = "$host_cpu"; then
15684          # On IA64, the linker does run time linking by default, so we don't
15685          # have to do anything special.
15686          aix_use_runtimelinking=no
15687          exp_sym_flag='-Bexport'
15688          no_entry_flag=
15689        else
15690          aix_use_runtimelinking=no
15691
15692          # Test if we are trying to use run time linking or normal
15693          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15694          # have runtime linking enabled, and use it for executables.
15695          # For shared libraries, we enable/disable runtime linking
15696          # depending on the kind of the shared library created -
15697          # when "with_aix_soname,aix_use_runtimelinking" is:
15698          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15699          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15700          #            lib.a           static archive
15701          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15702          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15703          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15704          #            lib.a(lib.so.V) shared, rtl:no
15705          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15706          #            lib.a           static archive
15707          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15708	    for ld_flag in $LDFLAGS; do
15709	      case $ld_flag in
15710	      *-brtl*)
15711	        aix_use_runtimelinking=yes
15712	        break
15713	        ;;
15714	      esac
15715	    done
15716	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15717	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15718	      # so we don't have lib.a shared libs to link our executables.
15719	      # We have to force runtime linking in this case.
15720	      aix_use_runtimelinking=yes
15721	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15722	    fi
15723	    ;;
15724          esac
15725
15726          exp_sym_flag='-bexport'
15727          no_entry_flag='-bnoentry'
15728        fi
15729
15730        # When large executables or shared objects are built, AIX ld can
15731        # have problems creating the table of contents.  If linking a library
15732        # or program results in "error TOC overflow" add -mminimal-toc to
15733        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15734        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15735
15736        archive_cmds_CXX=''
15737        hardcode_direct_CXX=yes
15738        hardcode_direct_absolute_CXX=yes
15739        hardcode_libdir_separator_CXX=':'
15740        link_all_deplibs_CXX=yes
15741        file_list_spec_CXX='$wl-f,'
15742        case $with_aix_soname,$aix_use_runtimelinking in
15743        aix,*) ;;	# no import file
15744        svr4,* | *,yes) # use import file
15745          # The Import File defines what to hardcode.
15746          hardcode_direct_CXX=no
15747          hardcode_direct_absolute_CXX=no
15748          ;;
15749        esac
15750
15751        if test yes = "$GXX"; then
15752          case $host_os in aix4.[012]|aix4.[012].*)
15753          # We only want to do this on AIX 4.2 and lower, the check
15754          # below for broken collect2 doesn't work under 4.3+
15755	  collect2name=`$CC -print-prog-name=collect2`
15756	  if test -f "$collect2name" &&
15757	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15758	  then
15759	    # We have reworked collect2
15760	    :
15761	  else
15762	    # We have old collect2
15763	    hardcode_direct_CXX=unsupported
15764	    # It fails to find uninstalled libraries when the uninstalled
15765	    # path is not listed in the libpath.  Setting hardcode_minus_L
15766	    # to unsupported forces relinking
15767	    hardcode_minus_L_CXX=yes
15768	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15769	    hardcode_libdir_separator_CXX=
15770	  fi
15771          esac
15772          shared_flag='-shared'
15773	  if test yes = "$aix_use_runtimelinking"; then
15774	    shared_flag=$shared_flag' $wl-G'
15775	  fi
15776	  # Need to ensure runtime linking is disabled for the traditional
15777	  # shared library, or the linker may eventually find shared libraries
15778	  # /with/ Import File - we do not want to mix them.
15779	  shared_flag_aix='-shared'
15780	  shared_flag_svr4='-shared $wl-G'
15781        else
15782          # not using gcc
15783          if test ia64 = "$host_cpu"; then
15784	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15785	  # chokes on -Wl,-G. The following line is correct:
15786	  shared_flag='-G'
15787          else
15788	    if test yes = "$aix_use_runtimelinking"; then
15789	      shared_flag='$wl-G'
15790	    else
15791	      shared_flag='$wl-bM:SRE'
15792	    fi
15793	    shared_flag_aix='$wl-bM:SRE'
15794	    shared_flag_svr4='$wl-G'
15795          fi
15796        fi
15797
15798        export_dynamic_flag_spec_CXX='$wl-bexpall'
15799        # It seems that -bexpall does not export symbols beginning with
15800        # underscore (_), so it is better to generate a list of symbols to
15801	# export.
15802        always_export_symbols_CXX=yes
15803	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15804          # Warning - without using the other runtime loading flags (-brtl),
15805          # -berok will link without error, but may produce a broken library.
15806          # The "-G" linker flag allows undefined symbols.
15807          no_undefined_flag_CXX='-bernotok'
15808          # Determine the default libpath from the value encoded in an empty
15809          # executable.
15810          if test set = "${lt_cv_aix_libpath+set}"; then
15811  aix_libpath=$lt_cv_aix_libpath
15812else
15813  if ${lt_cv_aix_libpath__CXX+:} false; then :
15814  $as_echo_n "(cached) " >&6
15815else
15816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817/* end confdefs.h.  */
15818
15819int
15820main ()
15821{
15822
15823  ;
15824  return 0;
15825}
15826_ACEOF
15827if ac_fn_cxx_try_link "$LINENO"; then :
15828
15829  lt_aix_libpath_sed='
15830      /Import File Strings/,/^$/ {
15831	  /^0/ {
15832	      s/^0  *\([^ ]*\) *$/\1/
15833	      p
15834	  }
15835      }'
15836  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15837  # Check for a 64-bit object if we didn't find anything.
15838  if test -z "$lt_cv_aix_libpath__CXX"; then
15839    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15840  fi
15841fi
15842rm -f core conftest.err conftest.$ac_objext \
15843    conftest$ac_exeext conftest.$ac_ext
15844  if test -z "$lt_cv_aix_libpath__CXX"; then
15845    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15846  fi
15847
15848fi
15849
15850  aix_libpath=$lt_cv_aix_libpath__CXX
15851fi
15852
15853          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15854
15855          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
15856        else
15857          if test ia64 = "$host_cpu"; then
15858	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15859	    allow_undefined_flag_CXX="-z nodefs"
15860	    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"
15861          else
15862	    # Determine the default libpath from the value encoded in an
15863	    # empty executable.
15864	    if test set = "${lt_cv_aix_libpath+set}"; then
15865  aix_libpath=$lt_cv_aix_libpath
15866else
15867  if ${lt_cv_aix_libpath__CXX+:} false; then :
15868  $as_echo_n "(cached) " >&6
15869else
15870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871/* end confdefs.h.  */
15872
15873int
15874main ()
15875{
15876
15877  ;
15878  return 0;
15879}
15880_ACEOF
15881if ac_fn_cxx_try_link "$LINENO"; then :
15882
15883  lt_aix_libpath_sed='
15884      /Import File Strings/,/^$/ {
15885	  /^0/ {
15886	      s/^0  *\([^ ]*\) *$/\1/
15887	      p
15888	  }
15889      }'
15890  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15891  # Check for a 64-bit object if we didn't find anything.
15892  if test -z "$lt_cv_aix_libpath__CXX"; then
15893    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15894  fi
15895fi
15896rm -f core conftest.err conftest.$ac_objext \
15897    conftest$ac_exeext conftest.$ac_ext
15898  if test -z "$lt_cv_aix_libpath__CXX"; then
15899    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15900  fi
15901
15902fi
15903
15904  aix_libpath=$lt_cv_aix_libpath__CXX
15905fi
15906
15907	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15908	    # Warning - without using the other run time loading flags,
15909	    # -berok will link without error, but may produce a broken library.
15910	    no_undefined_flag_CXX=' $wl-bernotok'
15911	    allow_undefined_flag_CXX=' $wl-berok'
15912	    if test yes = "$with_gnu_ld"; then
15913	      # We only use this code for GNU lds that support --whole-archive.
15914	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15915	    else
15916	      # Exported symbols can be pulled into shared objects from archives
15917	      whole_archive_flag_spec_CXX='$convenience'
15918	    fi
15919	    archive_cmds_need_lc_CXX=yes
15920	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15921	    # -brtl affects multiple linker settings, -berok does not and is overridden later
15922	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15923	    if test svr4 != "$with_aix_soname"; then
15924	      # This is similar to how AIX traditionally builds its shared
15925	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15926	      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'
15927	    fi
15928	    if test aix != "$with_aix_soname"; then
15929	      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'
15930	    else
15931	      # used by -dlpreopen to get the symbols
15932	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15933	    fi
15934	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15935          fi
15936        fi
15937        ;;
15938
15939      beos*)
15940	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15941	  allow_undefined_flag_CXX=unsupported
15942	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15943	  # support --undefined.  This deserves some investigation.  FIXME
15944	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15945	else
15946	  ld_shlibs_CXX=no
15947	fi
15948	;;
15949
15950      chorus*)
15951        case $cc_basename in
15952          *)
15953	  # FIXME: insert proper C++ library support
15954	  ld_shlibs_CXX=no
15955	  ;;
15956        esac
15957        ;;
15958
15959      cygwin* | mingw* | pw32* | cegcc*)
15960	case $GXX,$cc_basename in
15961	,cl* | no,cl*)
15962	  # Native MSVC
15963	  # hardcode_libdir_flag_spec is actually meaningless, as there is
15964	  # no search path for DLLs.
15965	  hardcode_libdir_flag_spec_CXX=' '
15966	  allow_undefined_flag_CXX=unsupported
15967	  always_export_symbols_CXX=yes
15968	  file_list_spec_CXX='@'
15969	  # Tell ltmain to make .lib files, not .a files.
15970	  libext=lib
15971	  # Tell ltmain to make .dll files, not .so files.
15972	  shrext_cmds=.dll
15973	  # FIXME: Setting linknames here is a bad hack.
15974	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15975	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15976              cp "$export_symbols" "$output_objdir/$soname.def";
15977              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15978            else
15979              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15980            fi~
15981            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15982            linknames='
15983	  # The linker will not automatically build a static lib if we build a DLL.
15984	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15985	  enable_shared_with_static_runtimes_CXX=yes
15986	  # Don't use ranlib
15987	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
15988	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15989            lt_tool_outputfile="@TOOL_OUTPUT@"~
15990            case $lt_outputfile in
15991              *.exe|*.EXE) ;;
15992              *)
15993                lt_outputfile=$lt_outputfile.exe
15994                lt_tool_outputfile=$lt_tool_outputfile.exe
15995                ;;
15996            esac~
15997            func_to_tool_file "$lt_outputfile"~
15998            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15999              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16000              $RM "$lt_outputfile.manifest";
16001            fi'
16002	  ;;
16003	*)
16004	  # g++
16005	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16006	  # as there is no search path for DLLs.
16007	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16008	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16009	  allow_undefined_flag_CXX=unsupported
16010	  always_export_symbols_CXX=no
16011	  enable_shared_with_static_runtimes_CXX=yes
16012
16013	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16014	    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'
16015	    # If the export-symbols file already is a .def file, use it as
16016	    # is; otherwise, prepend EXPORTS...
16017	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16018              cp $export_symbols $output_objdir/$soname.def;
16019            else
16020              echo EXPORTS > $output_objdir/$soname.def;
16021              cat $export_symbols >> $output_objdir/$soname.def;
16022            fi~
16023            $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'
16024	  else
16025	    ld_shlibs_CXX=no
16026	  fi
16027	  ;;
16028	esac
16029	;;
16030      darwin* | rhapsody*)
16031
16032
16033  archive_cmds_need_lc_CXX=no
16034  hardcode_direct_CXX=no
16035  hardcode_automatic_CXX=yes
16036  hardcode_shlibpath_var_CXX=unsupported
16037  if test yes = "$lt_cv_ld_force_load"; then
16038    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\"`'
16039
16040  else
16041    whole_archive_flag_spec_CXX=''
16042  fi
16043  link_all_deplibs_CXX=yes
16044  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16045  case $cc_basename in
16046     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16047     *) _lt_dar_can_shared=$GCC ;;
16048  esac
16049  if test yes = "$_lt_dar_can_shared"; then
16050    output_verbose_link_cmd=func_echo_all
16051    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"
16052    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16053    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"
16054    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"
16055       if test yes != "$lt_cv_apple_cc_single_mod"; then
16056      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"
16057      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"
16058    fi
16059
16060  else
16061  ld_shlibs_CXX=no
16062  fi
16063
16064	;;
16065
16066      os2*)
16067	hardcode_libdir_flag_spec_CXX='-L$libdir'
16068	hardcode_minus_L_CXX=yes
16069	allow_undefined_flag_CXX=unsupported
16070	shrext_cmds=.dll
16071	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16072	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16073	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16074	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16075	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16076	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16077	  emximp -o $lib $output_objdir/$libname.def'
16078	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16079	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16080	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16081	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16082	  prefix_cmds="$SED"~
16083	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16084	    prefix_cmds="$prefix_cmds -e 1d";
16085	  fi~
16086	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16087	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16088	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16089	  emximp -o $lib $output_objdir/$libname.def'
16090	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16091	enable_shared_with_static_runtimes_CXX=yes
16092	;;
16093
16094      dgux*)
16095        case $cc_basename in
16096          ec++*)
16097	    # FIXME: insert proper C++ library support
16098	    ld_shlibs_CXX=no
16099	    ;;
16100          ghcx*)
16101	    # Green Hills C++ Compiler
16102	    # FIXME: insert proper C++ library support
16103	    ld_shlibs_CXX=no
16104	    ;;
16105          *)
16106	    # FIXME: insert proper C++ library support
16107	    ld_shlibs_CXX=no
16108	    ;;
16109        esac
16110        ;;
16111
16112      freebsd2.*)
16113        # C++ shared libraries reported to be fairly broken before
16114	# switch to ELF
16115        ld_shlibs_CXX=no
16116        ;;
16117
16118      freebsd-elf*)
16119        archive_cmds_need_lc_CXX=no
16120        ;;
16121
16122      freebsd* | dragonfly*)
16123        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16124        # conventions
16125        ld_shlibs_CXX=yes
16126        ;;
16127
16128      haiku*)
16129        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16130        link_all_deplibs_CXX=yes
16131        ;;
16132
16133      hpux9*)
16134        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16135        hardcode_libdir_separator_CXX=:
16136        export_dynamic_flag_spec_CXX='$wl-E'
16137        hardcode_direct_CXX=yes
16138        hardcode_minus_L_CXX=yes # Not in the search PATH,
16139				             # but as the default
16140				             # location of the library.
16141
16142        case $cc_basename in
16143          CC*)
16144            # FIXME: insert proper C++ library support
16145            ld_shlibs_CXX=no
16146            ;;
16147          aCC*)
16148            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'
16149            # Commands to make compiler produce verbose output that lists
16150            # what "hidden" libraries, object files and flags are used when
16151            # linking a shared library.
16152            #
16153            # There doesn't appear to be a way to prevent this compiler from
16154            # explicitly linking system object files so we need to strip them
16155            # from the output so that they don't get included in the library
16156            # dependencies.
16157            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"'
16158            ;;
16159          *)
16160            if test yes = "$GXX"; then
16161              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'
16162            else
16163              # FIXME: insert proper C++ library support
16164              ld_shlibs_CXX=no
16165            fi
16166            ;;
16167        esac
16168        ;;
16169
16170      hpux10*|hpux11*)
16171        if test no = "$with_gnu_ld"; then
16172	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16173	  hardcode_libdir_separator_CXX=:
16174
16175          case $host_cpu in
16176            hppa*64*|ia64*)
16177              ;;
16178            *)
16179	      export_dynamic_flag_spec_CXX='$wl-E'
16180              ;;
16181          esac
16182        fi
16183        case $host_cpu in
16184          hppa*64*|ia64*)
16185            hardcode_direct_CXX=no
16186            hardcode_shlibpath_var_CXX=no
16187            ;;
16188          *)
16189            hardcode_direct_CXX=yes
16190            hardcode_direct_absolute_CXX=yes
16191            hardcode_minus_L_CXX=yes # Not in the search PATH,
16192					         # but as the default
16193					         # location of the library.
16194            ;;
16195        esac
16196
16197        case $cc_basename in
16198          CC*)
16199	    # FIXME: insert proper C++ library support
16200	    ld_shlibs_CXX=no
16201	    ;;
16202          aCC*)
16203	    case $host_cpu in
16204	      hppa*64*)
16205	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16206	        ;;
16207	      ia64*)
16208	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16209	        ;;
16210	      *)
16211	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16212	        ;;
16213	    esac
16214	    # Commands to make compiler produce verbose output that lists
16215	    # what "hidden" libraries, object files and flags are used when
16216	    # linking a shared library.
16217	    #
16218	    # There doesn't appear to be a way to prevent this compiler from
16219	    # explicitly linking system object files so we need to strip them
16220	    # from the output so that they don't get included in the library
16221	    # dependencies.
16222	    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"'
16223	    ;;
16224          *)
16225	    if test yes = "$GXX"; then
16226	      if test no = "$with_gnu_ld"; then
16227	        case $host_cpu in
16228	          hppa*64*)
16229	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16230	            ;;
16231	          ia64*)
16232	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16233	            ;;
16234	          *)
16235	            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'
16236	            ;;
16237	        esac
16238	      fi
16239	    else
16240	      # FIXME: insert proper C++ library support
16241	      ld_shlibs_CXX=no
16242	    fi
16243	    ;;
16244        esac
16245        ;;
16246
16247      interix[3-9]*)
16248	hardcode_direct_CXX=no
16249	hardcode_shlibpath_var_CXX=no
16250	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16251	export_dynamic_flag_spec_CXX='$wl-E'
16252	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16253	# Instead, shared libraries are loaded at an image base (0x10000000 by
16254	# default) and relocated if they conflict, which is a slow very memory
16255	# consuming and fragmenting process.  To avoid this, we pick a random,
16256	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16257	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16258	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'
16259	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'
16260	;;
16261      irix5* | irix6*)
16262        case $cc_basename in
16263          CC*)
16264	    # SGI C++
16265	    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'
16266
16267	    # Archives containing C++ object files must be created using
16268	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16269	    # necessary to make sure instantiated templates are included
16270	    # in the archive.
16271	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16272	    ;;
16273          *)
16274	    if test yes = "$GXX"; then
16275	      if test no = "$with_gnu_ld"; then
16276	        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'
16277	      else
16278	        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'
16279	      fi
16280	    fi
16281	    link_all_deplibs_CXX=yes
16282	    ;;
16283        esac
16284        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16285        hardcode_libdir_separator_CXX=:
16286        inherit_rpath_CXX=yes
16287        ;;
16288
16289      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16290        case $cc_basename in
16291          KCC*)
16292	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16293
16294	    # KCC will only create a shared library if the output file
16295	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16296	    # to its proper name (with version) after linking.
16297	    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'
16298	    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'
16299	    # Commands to make compiler produce verbose output that lists
16300	    # what "hidden" libraries, object files and flags are used when
16301	    # linking a shared library.
16302	    #
16303	    # There doesn't appear to be a way to prevent this compiler from
16304	    # explicitly linking system object files so we need to strip them
16305	    # from the output so that they don't get included in the library
16306	    # dependencies.
16307	    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"'
16308
16309	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16310	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16311
16312	    # Archives containing C++ object files must be created using
16313	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16314	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16315	    ;;
16316	  icpc* | ecpc* )
16317	    # Intel C++
16318	    with_gnu_ld=yes
16319	    # version 8.0 and above of icpc choke on multiply defined symbols
16320	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16321	    # earlier do not add the objects themselves.
16322	    case `$CC -V 2>&1` in
16323	      *"Version 7."*)
16324	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16325		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'
16326		;;
16327	      *)  # Version 8.0 or newer
16328	        tmp_idyn=
16329	        case $host_cpu in
16330		  ia64*) tmp_idyn=' -i_dynamic';;
16331		esac
16332	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16333		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'
16334		;;
16335	    esac
16336	    archive_cmds_need_lc_CXX=no
16337	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16338	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16339	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16340	    ;;
16341          pgCC* | pgcpp*)
16342            # Portland Group C++ compiler
16343	    case `$CC -V` in
16344	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16345	      prelink_cmds_CXX='tpldir=Template.dir~
16346               rm -rf $tpldir~
16347               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16348               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16349	      old_archive_cmds_CXX='tpldir=Template.dir~
16350                rm -rf $tpldir~
16351                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16352                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16353                $RANLIB $oldlib'
16354	      archive_cmds_CXX='tpldir=Template.dir~
16355                rm -rf $tpldir~
16356                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16357                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16358	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16359                rm -rf $tpldir~
16360                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16361                $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'
16362	      ;;
16363	    *) # Version 6 and above use weak symbols
16364	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16365	      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'
16366	      ;;
16367	    esac
16368
16369	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16370	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16371	    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'
16372            ;;
16373	  cxx*)
16374	    # Compaq C++
16375	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16376	    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'
16377
16378	    runpath_var=LD_RUN_PATH
16379	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16380	    hardcode_libdir_separator_CXX=:
16381
16382	    # Commands to make compiler produce verbose output that lists
16383	    # what "hidden" libraries, object files and flags are used when
16384	    # linking a shared library.
16385	    #
16386	    # There doesn't appear to be a way to prevent this compiler from
16387	    # explicitly linking system object files so we need to strip them
16388	    # from the output so that they don't get included in the library
16389	    # dependencies.
16390	    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'
16391	    ;;
16392	  xl* | mpixl* | bgxl*)
16393	    # IBM XL 8.0 on PPC, with GNU ld
16394	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16395	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16396	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16397	    if test yes = "$supports_anon_versioning"; then
16398	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16399                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16400                echo "local: *; };" >> $output_objdir/$libname.ver~
16401                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16402	    fi
16403	    ;;
16404	  *)
16405	    case `$CC -V 2>&1 | sed 5q` in
16406	    *Sun\ C*)
16407	      # Sun C++ 5.9
16408	      no_undefined_flag_CXX=' -zdefs'
16409	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16410	      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'
16411	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16412	      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'
16413	      compiler_needs_object_CXX=yes
16414
16415	      # Not sure whether something based on
16416	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16417	      # would be better.
16418	      output_verbose_link_cmd='func_echo_all'
16419
16420	      # Archives containing C++ object files must be created using
16421	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16422	      # necessary to make sure instantiated templates are included
16423	      # in the archive.
16424	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16425	      ;;
16426	    esac
16427	    ;;
16428	esac
16429	;;
16430
16431      lynxos*)
16432        # FIXME: insert proper C++ library support
16433	ld_shlibs_CXX=no
16434	;;
16435
16436      m88k*)
16437        # FIXME: insert proper C++ library support
16438        ld_shlibs_CXX=no
16439	;;
16440
16441      mvs*)
16442        case $cc_basename in
16443          cxx*)
16444	    # FIXME: insert proper C++ library support
16445	    ld_shlibs_CXX=no
16446	    ;;
16447	  *)
16448	    # FIXME: insert proper C++ library support
16449	    ld_shlibs_CXX=no
16450	    ;;
16451	esac
16452	;;
16453
16454      netbsd*)
16455        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16456	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16457	  wlarc=
16458	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16459	  hardcode_direct_CXX=yes
16460	  hardcode_shlibpath_var_CXX=no
16461	fi
16462	# Workaround some broken pre-1.5 toolchains
16463	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16464	;;
16465
16466      *nto* | *qnx*)
16467        ld_shlibs_CXX=yes
16468	;;
16469
16470      openbsd* | bitrig*)
16471	if test -f /usr/libexec/ld.so; then
16472	  hardcode_direct_CXX=yes
16473	  hardcode_shlibpath_var_CXX=no
16474	  hardcode_direct_absolute_CXX=yes
16475	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16476	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16477	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16478	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16479	    export_dynamic_flag_spec_CXX='$wl-E'
16480	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16481	  fi
16482	  output_verbose_link_cmd=func_echo_all
16483	else
16484	  ld_shlibs_CXX=no
16485	fi
16486	;;
16487
16488      osf3* | osf4* | osf5*)
16489        case $cc_basename in
16490          KCC*)
16491	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16492
16493	    # KCC will only create a shared library if the output file
16494	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16495	    # to its proper name (with version) after linking.
16496	    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'
16497
16498	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16499	    hardcode_libdir_separator_CXX=:
16500
16501	    # Archives containing C++ object files must be created using
16502	    # the KAI C++ compiler.
16503	    case $host in
16504	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16505	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16506	    esac
16507	    ;;
16508          RCC*)
16509	    # Rational C++ 2.4.1
16510	    # FIXME: insert proper C++ library support
16511	    ld_shlibs_CXX=no
16512	    ;;
16513          cxx*)
16514	    case $host in
16515	      osf3*)
16516	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16517	        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'
16518	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16519		;;
16520	      *)
16521	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16522	        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'
16523	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16524                  echo "-hidden">> $lib.exp~
16525                  $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~
16526                  $RM $lib.exp'
16527	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16528		;;
16529	    esac
16530
16531	    hardcode_libdir_separator_CXX=:
16532
16533	    # Commands to make compiler produce verbose output that lists
16534	    # what "hidden" libraries, object files and flags are used when
16535	    # linking a shared library.
16536	    #
16537	    # There doesn't appear to be a way to prevent this compiler from
16538	    # explicitly linking system object files so we need to strip them
16539	    # from the output so that they don't get included in the library
16540	    # dependencies.
16541	    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"'
16542	    ;;
16543	  *)
16544	    if test yes,no = "$GXX,$with_gnu_ld"; then
16545	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16546	      case $host in
16547	        osf3*)
16548	          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'
16549		  ;;
16550	        *)
16551	          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'
16552		  ;;
16553	      esac
16554
16555	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16556	      hardcode_libdir_separator_CXX=:
16557
16558	      # Commands to make compiler produce verbose output that lists
16559	      # what "hidden" libraries, object files and flags are used when
16560	      # linking a shared library.
16561	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16562
16563	    else
16564	      # FIXME: insert proper C++ library support
16565	      ld_shlibs_CXX=no
16566	    fi
16567	    ;;
16568        esac
16569        ;;
16570
16571      psos*)
16572        # FIXME: insert proper C++ library support
16573        ld_shlibs_CXX=no
16574        ;;
16575
16576      sunos4*)
16577        case $cc_basename in
16578          CC*)
16579	    # Sun C++ 4.x
16580	    # FIXME: insert proper C++ library support
16581	    ld_shlibs_CXX=no
16582	    ;;
16583          lcc*)
16584	    # Lucid
16585	    # FIXME: insert proper C++ library support
16586	    ld_shlibs_CXX=no
16587	    ;;
16588          *)
16589	    # FIXME: insert proper C++ library support
16590	    ld_shlibs_CXX=no
16591	    ;;
16592        esac
16593        ;;
16594
16595      solaris*)
16596        case $cc_basename in
16597          CC* | sunCC*)
16598	    # Sun C++ 4.2, 5.x and Centerline C++
16599            archive_cmds_need_lc_CXX=yes
16600	    no_undefined_flag_CXX=' -zdefs'
16601	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16602	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16603              $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'
16604
16605	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16606	    hardcode_shlibpath_var_CXX=no
16607	    case $host_os in
16608	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16609	      *)
16610		# The compiler driver will combine and reorder linker options,
16611		# but understands '-z linker_flag'.
16612	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16613		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16614	        ;;
16615	    esac
16616	    link_all_deplibs_CXX=yes
16617
16618	    output_verbose_link_cmd='func_echo_all'
16619
16620	    # Archives containing C++ object files must be created using
16621	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16622	    # necessary to make sure instantiated templates are included
16623	    # in the archive.
16624	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16625	    ;;
16626          gcx*)
16627	    # Green Hills C++ Compiler
16628	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16629
16630	    # The C++ compiler must be used to create the archive.
16631	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16632	    ;;
16633          *)
16634	    # GNU C++ compiler with Solaris linker
16635	    if test yes,no = "$GXX,$with_gnu_ld"; then
16636	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16637	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16638	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16639	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16640                  $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'
16641
16642	        # Commands to make compiler produce verbose output that lists
16643	        # what "hidden" libraries, object files and flags are used when
16644	        # linking a shared library.
16645	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16646	      else
16647	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16648	        # platform.
16649	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16650	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16651                  $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'
16652
16653	        # Commands to make compiler produce verbose output that lists
16654	        # what "hidden" libraries, object files and flags are used when
16655	        # linking a shared library.
16656	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16657	      fi
16658
16659	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16660	      case $host_os in
16661		solaris2.[0-5] | solaris2.[0-5].*) ;;
16662		*)
16663		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16664		  ;;
16665	      esac
16666	    fi
16667	    ;;
16668        esac
16669        ;;
16670
16671    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16672      no_undefined_flag_CXX='$wl-z,text'
16673      archive_cmds_need_lc_CXX=no
16674      hardcode_shlibpath_var_CXX=no
16675      runpath_var='LD_RUN_PATH'
16676
16677      case $cc_basename in
16678        CC*)
16679	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16680	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16681	  ;;
16682	*)
16683	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16684	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16685	  ;;
16686      esac
16687      ;;
16688
16689      sysv5* | sco3.2v5* | sco5v6*)
16690	# Note: We CANNOT use -z defs as we might desire, because we do not
16691	# link with -lc, and that would cause any symbols used from libc to
16692	# always be unresolved, which means just about no library would
16693	# ever link correctly.  If we're not using GNU ld we use -z text
16694	# though, which does catch some bad symbols but isn't as heavy-handed
16695	# as -z defs.
16696	no_undefined_flag_CXX='$wl-z,text'
16697	allow_undefined_flag_CXX='$wl-z,nodefs'
16698	archive_cmds_need_lc_CXX=no
16699	hardcode_shlibpath_var_CXX=no
16700	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16701	hardcode_libdir_separator_CXX=':'
16702	link_all_deplibs_CXX=yes
16703	export_dynamic_flag_spec_CXX='$wl-Bexport'
16704	runpath_var='LD_RUN_PATH'
16705
16706	case $cc_basename in
16707          CC*)
16708	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16709	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16710	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16711              '"$old_archive_cmds_CXX"
16712	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16713              '"$reload_cmds_CXX"
16714	    ;;
16715	  *)
16716	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16717	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16718	    ;;
16719	esac
16720      ;;
16721
16722      tandem*)
16723        case $cc_basename in
16724          NCC*)
16725	    # NonStop-UX NCC 3.20
16726	    # FIXME: insert proper C++ library support
16727	    ld_shlibs_CXX=no
16728	    ;;
16729          *)
16730	    # FIXME: insert proper C++ library support
16731	    ld_shlibs_CXX=no
16732	    ;;
16733        esac
16734        ;;
16735
16736      vxworks*)
16737        # FIXME: insert proper C++ library support
16738        ld_shlibs_CXX=no
16739        ;;
16740
16741      *)
16742        # FIXME: insert proper C++ library support
16743        ld_shlibs_CXX=no
16744        ;;
16745    esac
16746
16747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16748$as_echo "$ld_shlibs_CXX" >&6; }
16749    test no = "$ld_shlibs_CXX" && can_build_shared=no
16750
16751    GCC_CXX=$GXX
16752    LD_CXX=$LD
16753
16754    ## CAVEAT EMPTOR:
16755    ## There is no encapsulation within the following macros, do not change
16756    ## the running order or otherwise move them around unless you know exactly
16757    ## what you are doing...
16758    # Dependencies to place before and after the object being linked:
16759predep_objects_CXX=
16760postdep_objects_CXX=
16761predeps_CXX=
16762postdeps_CXX=
16763compiler_lib_search_path_CXX=
16764
16765cat > conftest.$ac_ext <<_LT_EOF
16766class Foo
16767{
16768public:
16769  Foo (void) { a = 0; }
16770private:
16771  int a;
16772};
16773_LT_EOF
16774
16775
16776_lt_libdeps_save_CFLAGS=$CFLAGS
16777case "$CC $CFLAGS " in #(
16778*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16779*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16780*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16781esac
16782
16783if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16784  (eval $ac_compile) 2>&5
16785  ac_status=$?
16786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16787  test $ac_status = 0; }; then
16788  # Parse the compiler output and extract the necessary
16789  # objects, libraries and library flags.
16790
16791  # Sentinel used to keep track of whether or not we are before
16792  # the conftest object file.
16793  pre_test_object_deps_done=no
16794
16795  for p in `eval "$output_verbose_link_cmd"`; do
16796    case $prev$p in
16797
16798    -L* | -R* | -l*)
16799       # Some compilers place space between "-{L,R}" and the path.
16800       # Remove the space.
16801       if test x-L = "$p" ||
16802          test x-R = "$p"; then
16803	 prev=$p
16804	 continue
16805       fi
16806
16807       # Expand the sysroot to ease extracting the directories later.
16808       if test -z "$prev"; then
16809         case $p in
16810         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16811         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16812         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16813         esac
16814       fi
16815       case $p in
16816       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16817       esac
16818       if test no = "$pre_test_object_deps_done"; then
16819	 case $prev in
16820	 -L | -R)
16821	   # Internal compiler library paths should come after those
16822	   # provided the user.  The postdeps already come after the
16823	   # user supplied libs so there is no need to process them.
16824	   if test -z "$compiler_lib_search_path_CXX"; then
16825	     compiler_lib_search_path_CXX=$prev$p
16826	   else
16827	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16828	   fi
16829	   ;;
16830	 # The "-l" case would never come before the object being
16831	 # linked, so don't bother handling this case.
16832	 esac
16833       else
16834	 if test -z "$postdeps_CXX"; then
16835	   postdeps_CXX=$prev$p
16836	 else
16837	   postdeps_CXX="${postdeps_CXX} $prev$p"
16838	 fi
16839       fi
16840       prev=
16841       ;;
16842
16843    *.lto.$objext) ;; # Ignore GCC LTO objects
16844    *.$objext)
16845       # This assumes that the test object file only shows up
16846       # once in the compiler output.
16847       if test "$p" = "conftest.$objext"; then
16848	 pre_test_object_deps_done=yes
16849	 continue
16850       fi
16851
16852       if test no = "$pre_test_object_deps_done"; then
16853	 if test -z "$predep_objects_CXX"; then
16854	   predep_objects_CXX=$p
16855	 else
16856	   predep_objects_CXX="$predep_objects_CXX $p"
16857	 fi
16858       else
16859	 if test -z "$postdep_objects_CXX"; then
16860	   postdep_objects_CXX=$p
16861	 else
16862	   postdep_objects_CXX="$postdep_objects_CXX $p"
16863	 fi
16864       fi
16865       ;;
16866
16867    *) ;; # Ignore the rest.
16868
16869    esac
16870  done
16871
16872  # Clean up.
16873  rm -f a.out a.exe
16874else
16875  echo "libtool.m4: error: problem compiling CXX test program"
16876fi
16877
16878$RM -f confest.$objext
16879CFLAGS=$_lt_libdeps_save_CFLAGS
16880
16881# PORTME: override above test on systems where it is broken
16882case $host_os in
16883interix[3-9]*)
16884  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16885  # hack all around it, let's just trust "g++" to DTRT.
16886  predep_objects_CXX=
16887  postdep_objects_CXX=
16888  postdeps_CXX=
16889  ;;
16890esac
16891
16892
16893case " $postdeps_CXX " in
16894*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16895esac
16896 compiler_lib_search_dirs_CXX=
16897if test -n "${compiler_lib_search_path_CXX}"; then
16898 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16899fi
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931    lt_prog_compiler_wl_CXX=
16932lt_prog_compiler_pic_CXX=
16933lt_prog_compiler_static_CXX=
16934
16935
16936  # C++ specific cases for pic, static, wl, etc.
16937  if test yes = "$GXX"; then
16938    lt_prog_compiler_wl_CXX='-Wl,'
16939    lt_prog_compiler_static_CXX='-static'
16940
16941    case $host_os in
16942    aix*)
16943      # All AIX code is PIC.
16944      if test ia64 = "$host_cpu"; then
16945	# AIX 5 now supports IA64 processor
16946	lt_prog_compiler_static_CXX='-Bstatic'
16947      fi
16948      lt_prog_compiler_pic_CXX='-fPIC'
16949      ;;
16950
16951    amigaos*)
16952      case $host_cpu in
16953      powerpc)
16954            # see comment about AmigaOS4 .so support
16955            lt_prog_compiler_pic_CXX='-fPIC'
16956        ;;
16957      m68k)
16958            # FIXME: we need at least 68020 code to build shared libraries, but
16959            # adding the '-m68020' flag to GCC prevents building anything better,
16960            # like '-m68040'.
16961            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16962        ;;
16963      esac
16964      ;;
16965
16966    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16967      # PIC is the default for these OSes.
16968      ;;
16969    mingw* | cygwin* | os2* | pw32* | cegcc*)
16970      # This hack is so that the source file can tell whether it is being
16971      # built for inclusion in a dll (and should export symbols for example).
16972      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16973      # (--disable-auto-import) libraries
16974      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16975      case $host_os in
16976      os2*)
16977	lt_prog_compiler_static_CXX='$wl-static'
16978	;;
16979      esac
16980      ;;
16981    darwin* | rhapsody*)
16982      # PIC is the default on this platform
16983      # Common symbols not allowed in MH_DYLIB files
16984      lt_prog_compiler_pic_CXX='-fno-common'
16985      ;;
16986    *djgpp*)
16987      # DJGPP does not support shared libraries at all
16988      lt_prog_compiler_pic_CXX=
16989      ;;
16990    haiku*)
16991      # PIC is the default for Haiku.
16992      # The "-static" flag exists, but is broken.
16993      lt_prog_compiler_static_CXX=
16994      ;;
16995    interix[3-9]*)
16996      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16997      # Instead, we relocate shared libraries at runtime.
16998      ;;
16999    sysv4*MP*)
17000      if test -d /usr/nec; then
17001	lt_prog_compiler_pic_CXX=-Kconform_pic
17002      fi
17003      ;;
17004    hpux*)
17005      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17006      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17007      # sets the default TLS model and affects inlining.
17008      case $host_cpu in
17009      hppa*64*)
17010	;;
17011      *)
17012	lt_prog_compiler_pic_CXX='-fPIC'
17013	;;
17014      esac
17015      ;;
17016    *qnx* | *nto*)
17017      # QNX uses GNU C++, but need to define -shared option too, otherwise
17018      # it will coredump.
17019      lt_prog_compiler_pic_CXX='-fPIC -shared'
17020      ;;
17021    *)
17022      lt_prog_compiler_pic_CXX='-fPIC'
17023      ;;
17024    esac
17025  else
17026    case $host_os in
17027      aix[4-9]*)
17028	# All AIX code is PIC.
17029	if test ia64 = "$host_cpu"; then
17030	  # AIX 5 now supports IA64 processor
17031	  lt_prog_compiler_static_CXX='-Bstatic'
17032	else
17033	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17034	fi
17035	;;
17036      chorus*)
17037	case $cc_basename in
17038	cxch68*)
17039	  # Green Hills C++ Compiler
17040	  # _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"
17041	  ;;
17042	esac
17043	;;
17044      mingw* | cygwin* | os2* | pw32* | cegcc*)
17045	# This hack is so that the source file can tell whether it is being
17046	# built for inclusion in a dll (and should export symbols for example).
17047	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17048	;;
17049      dgux*)
17050	case $cc_basename in
17051	  ec++*)
17052	    lt_prog_compiler_pic_CXX='-KPIC'
17053	    ;;
17054	  ghcx*)
17055	    # Green Hills C++ Compiler
17056	    lt_prog_compiler_pic_CXX='-pic'
17057	    ;;
17058	  *)
17059	    ;;
17060	esac
17061	;;
17062      freebsd* | dragonfly*)
17063	# FreeBSD uses GNU C++
17064	;;
17065      hpux9* | hpux10* | hpux11*)
17066	case $cc_basename in
17067	  CC*)
17068	    lt_prog_compiler_wl_CXX='-Wl,'
17069	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17070	    if test ia64 != "$host_cpu"; then
17071	      lt_prog_compiler_pic_CXX='+Z'
17072	    fi
17073	    ;;
17074	  aCC*)
17075	    lt_prog_compiler_wl_CXX='-Wl,'
17076	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17077	    case $host_cpu in
17078	    hppa*64*|ia64*)
17079	      # +Z the default
17080	      ;;
17081	    *)
17082	      lt_prog_compiler_pic_CXX='+Z'
17083	      ;;
17084	    esac
17085	    ;;
17086	  *)
17087	    ;;
17088	esac
17089	;;
17090      interix*)
17091	# This is c89, which is MS Visual C++ (no shared libs)
17092	# Anyone wants to do a port?
17093	;;
17094      irix5* | irix6* | nonstopux*)
17095	case $cc_basename in
17096	  CC*)
17097	    lt_prog_compiler_wl_CXX='-Wl,'
17098	    lt_prog_compiler_static_CXX='-non_shared'
17099	    # CC pic flag -KPIC is the default.
17100	    ;;
17101	  *)
17102	    ;;
17103	esac
17104	;;
17105      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17106	case $cc_basename in
17107	  KCC*)
17108	    # KAI C++ Compiler
17109	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17110	    lt_prog_compiler_pic_CXX='-fPIC'
17111	    ;;
17112	  ecpc* )
17113	    # old Intel C++ for x86_64, which still supported -KPIC.
17114	    lt_prog_compiler_wl_CXX='-Wl,'
17115	    lt_prog_compiler_pic_CXX='-KPIC'
17116	    lt_prog_compiler_static_CXX='-static'
17117	    ;;
17118	  icpc* )
17119	    # Intel C++, used to be incompatible with GCC.
17120	    # ICC 10 doesn't accept -KPIC any more.
17121	    lt_prog_compiler_wl_CXX='-Wl,'
17122	    lt_prog_compiler_pic_CXX='-fPIC'
17123	    lt_prog_compiler_static_CXX='-static'
17124	    ;;
17125	  pgCC* | pgcpp*)
17126	    # Portland Group C++ compiler
17127	    lt_prog_compiler_wl_CXX='-Wl,'
17128	    lt_prog_compiler_pic_CXX='-fpic'
17129	    lt_prog_compiler_static_CXX='-Bstatic'
17130	    ;;
17131	  cxx*)
17132	    # Compaq C++
17133	    # Make sure the PIC flag is empty.  It appears that all Alpha
17134	    # Linux and Compaq Tru64 Unix objects are PIC.
17135	    lt_prog_compiler_pic_CXX=
17136	    lt_prog_compiler_static_CXX='-non_shared'
17137	    ;;
17138	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17139	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17140	    lt_prog_compiler_wl_CXX='-Wl,'
17141	    lt_prog_compiler_pic_CXX='-qpic'
17142	    lt_prog_compiler_static_CXX='-qstaticlink'
17143	    ;;
17144	  *)
17145	    case `$CC -V 2>&1 | sed 5q` in
17146	    *Sun\ C*)
17147	      # Sun C++ 5.9
17148	      lt_prog_compiler_pic_CXX='-KPIC'
17149	      lt_prog_compiler_static_CXX='-Bstatic'
17150	      lt_prog_compiler_wl_CXX='-Qoption ld '
17151	      ;;
17152	    esac
17153	    ;;
17154	esac
17155	;;
17156      lynxos*)
17157	;;
17158      m88k*)
17159	;;
17160      mvs*)
17161	case $cc_basename in
17162	  cxx*)
17163	    lt_prog_compiler_pic_CXX='-W c,exportall'
17164	    ;;
17165	  *)
17166	    ;;
17167	esac
17168	;;
17169      netbsd* | netbsdelf*-gnu)
17170	;;
17171      *qnx* | *nto*)
17172        # QNX uses GNU C++, but need to define -shared option too, otherwise
17173        # it will coredump.
17174        lt_prog_compiler_pic_CXX='-fPIC -shared'
17175        ;;
17176      osf3* | osf4* | osf5*)
17177	case $cc_basename in
17178	  KCC*)
17179	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17180	    ;;
17181	  RCC*)
17182	    # Rational C++ 2.4.1
17183	    lt_prog_compiler_pic_CXX='-pic'
17184	    ;;
17185	  cxx*)
17186	    # Digital/Compaq C++
17187	    lt_prog_compiler_wl_CXX='-Wl,'
17188	    # Make sure the PIC flag is empty.  It appears that all Alpha
17189	    # Linux and Compaq Tru64 Unix objects are PIC.
17190	    lt_prog_compiler_pic_CXX=
17191	    lt_prog_compiler_static_CXX='-non_shared'
17192	    ;;
17193	  *)
17194	    ;;
17195	esac
17196	;;
17197      psos*)
17198	;;
17199      solaris*)
17200	case $cc_basename in
17201	  CC* | sunCC*)
17202	    # Sun C++ 4.2, 5.x and Centerline C++
17203	    lt_prog_compiler_pic_CXX='-KPIC'
17204	    lt_prog_compiler_static_CXX='-Bstatic'
17205	    lt_prog_compiler_wl_CXX='-Qoption ld '
17206	    ;;
17207	  gcx*)
17208	    # Green Hills C++ Compiler
17209	    lt_prog_compiler_pic_CXX='-PIC'
17210	    ;;
17211	  *)
17212	    ;;
17213	esac
17214	;;
17215      sunos4*)
17216	case $cc_basename in
17217	  CC*)
17218	    # Sun C++ 4.x
17219	    lt_prog_compiler_pic_CXX='-pic'
17220	    lt_prog_compiler_static_CXX='-Bstatic'
17221	    ;;
17222	  lcc*)
17223	    # Lucid
17224	    lt_prog_compiler_pic_CXX='-pic'
17225	    ;;
17226	  *)
17227	    ;;
17228	esac
17229	;;
17230      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17231	case $cc_basename in
17232	  CC*)
17233	    lt_prog_compiler_wl_CXX='-Wl,'
17234	    lt_prog_compiler_pic_CXX='-KPIC'
17235	    lt_prog_compiler_static_CXX='-Bstatic'
17236	    ;;
17237	esac
17238	;;
17239      tandem*)
17240	case $cc_basename in
17241	  NCC*)
17242	    # NonStop-UX NCC 3.20
17243	    lt_prog_compiler_pic_CXX='-KPIC'
17244	    ;;
17245	  *)
17246	    ;;
17247	esac
17248	;;
17249      vxworks*)
17250	;;
17251      *)
17252	lt_prog_compiler_can_build_shared_CXX=no
17253	;;
17254    esac
17255  fi
17256
17257case $host_os in
17258  # For platforms that do not support PIC, -DPIC is meaningless:
17259  *djgpp*)
17260    lt_prog_compiler_pic_CXX=
17261    ;;
17262  *)
17263    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17264    ;;
17265esac
17266
17267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17268$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17269if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17270  $as_echo_n "(cached) " >&6
17271else
17272  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17273fi
17274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17275$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17276lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17277
17278#
17279# Check to make sure the PIC flag actually works.
17280#
17281if test -n "$lt_prog_compiler_pic_CXX"; then
17282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17283$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17284if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17285  $as_echo_n "(cached) " >&6
17286else
17287  lt_cv_prog_compiler_pic_works_CXX=no
17288   ac_outfile=conftest.$ac_objext
17289   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17290   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17291   # Insert the option either (1) after the last *FLAGS variable, or
17292   # (2) before a word containing "conftest.", or (3) at the end.
17293   # Note that $ac_compile itself does not contain backslashes and begins
17294   # with a dollar sign (not a hyphen), so the echo should work correctly.
17295   # The option is referenced via a variable to avoid confusing sed.
17296   lt_compile=`echo "$ac_compile" | $SED \
17297   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17298   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17299   -e 's:$: $lt_compiler_flag:'`
17300   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17301   (eval "$lt_compile" 2>conftest.err)
17302   ac_status=$?
17303   cat conftest.err >&5
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   if (exit $ac_status) && test -s "$ac_outfile"; then
17306     # The compiler can only warn and ignore the option if not recognized
17307     # So say no if there are warnings other than the usual output.
17308     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17309     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17310     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17311       lt_cv_prog_compiler_pic_works_CXX=yes
17312     fi
17313   fi
17314   $RM conftest*
17315
17316fi
17317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17318$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17319
17320if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17321    case $lt_prog_compiler_pic_CXX in
17322     "" | " "*) ;;
17323     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17324     esac
17325else
17326    lt_prog_compiler_pic_CXX=
17327     lt_prog_compiler_can_build_shared_CXX=no
17328fi
17329
17330fi
17331
17332
17333
17334
17335
17336#
17337# Check to make sure the static flag actually works.
17338#
17339wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17341$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17342if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345  lt_cv_prog_compiler_static_works_CXX=no
17346   save_LDFLAGS=$LDFLAGS
17347   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17348   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17349   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17350     # The linker can only warn and ignore the option if not recognized
17351     # So say no if there are warnings
17352     if test -s conftest.err; then
17353       # Append any errors to the config.log.
17354       cat conftest.err 1>&5
17355       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17356       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17357       if diff conftest.exp conftest.er2 >/dev/null; then
17358         lt_cv_prog_compiler_static_works_CXX=yes
17359       fi
17360     else
17361       lt_cv_prog_compiler_static_works_CXX=yes
17362     fi
17363   fi
17364   $RM -r conftest*
17365   LDFLAGS=$save_LDFLAGS
17366
17367fi
17368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17369$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17370
17371if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17372    :
17373else
17374    lt_prog_compiler_static_CXX=
17375fi
17376
17377
17378
17379
17380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17381$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17382if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17383  $as_echo_n "(cached) " >&6
17384else
17385  lt_cv_prog_compiler_c_o_CXX=no
17386   $RM -r conftest 2>/dev/null
17387   mkdir conftest
17388   cd conftest
17389   mkdir out
17390   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17391
17392   lt_compiler_flag="-o out/conftest2.$ac_objext"
17393   # Insert the option either (1) after the last *FLAGS variable, or
17394   # (2) before a word containing "conftest.", or (3) at the end.
17395   # Note that $ac_compile itself does not contain backslashes and begins
17396   # with a dollar sign (not a hyphen), so the echo should work correctly.
17397   lt_compile=`echo "$ac_compile" | $SED \
17398   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17399   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17400   -e 's:$: $lt_compiler_flag:'`
17401   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17402   (eval "$lt_compile" 2>out/conftest.err)
17403   ac_status=$?
17404   cat out/conftest.err >&5
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17407   then
17408     # The compiler can only warn and ignore the option if not recognized
17409     # So say no if there are warnings
17410     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17411     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17412     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17413       lt_cv_prog_compiler_c_o_CXX=yes
17414     fi
17415   fi
17416   chmod u+w . 2>&5
17417   $RM conftest*
17418   # SGI C++ compiler will create directory out/ii_files/ for
17419   # template instantiation
17420   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17421   $RM out/* && rmdir out
17422   cd ..
17423   $RM -r conftest
17424   $RM conftest*
17425
17426fi
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17428$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17429
17430
17431
17432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17433$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17434if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17435  $as_echo_n "(cached) " >&6
17436else
17437  lt_cv_prog_compiler_c_o_CXX=no
17438   $RM -r conftest 2>/dev/null
17439   mkdir conftest
17440   cd conftest
17441   mkdir out
17442   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17443
17444   lt_compiler_flag="-o out/conftest2.$ac_objext"
17445   # Insert the option either (1) after the last *FLAGS variable, or
17446   # (2) before a word containing "conftest.", or (3) at the end.
17447   # Note that $ac_compile itself does not contain backslashes and begins
17448   # with a dollar sign (not a hyphen), so the echo should work correctly.
17449   lt_compile=`echo "$ac_compile" | $SED \
17450   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17451   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17452   -e 's:$: $lt_compiler_flag:'`
17453   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17454   (eval "$lt_compile" 2>out/conftest.err)
17455   ac_status=$?
17456   cat out/conftest.err >&5
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17459   then
17460     # The compiler can only warn and ignore the option if not recognized
17461     # So say no if there are warnings
17462     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17463     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17464     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17465       lt_cv_prog_compiler_c_o_CXX=yes
17466     fi
17467   fi
17468   chmod u+w . 2>&5
17469   $RM conftest*
17470   # SGI C++ compiler will create directory out/ii_files/ for
17471   # template instantiation
17472   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17473   $RM out/* && rmdir out
17474   cd ..
17475   $RM -r conftest
17476   $RM conftest*
17477
17478fi
17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17480$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17481
17482
17483
17484
17485hard_links=nottested
17486if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17487  # do not overwrite the value of need_locks provided by the user
17488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17489$as_echo_n "checking if we can lock with hard links... " >&6; }
17490  hard_links=yes
17491  $RM conftest*
17492  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17493  touch conftest.a
17494  ln conftest.a conftest.b 2>&5 || hard_links=no
17495  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17497$as_echo "$hard_links" >&6; }
17498  if test no = "$hard_links"; then
17499    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17500$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17501    need_locks=warn
17502  fi
17503else
17504  need_locks=no
17505fi
17506
17507
17508
17509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17510$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17511
17512  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17513  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17514  case $host_os in
17515  aix[4-9]*)
17516    # If we're using GNU nm, then we don't want the "-C" option.
17517    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17518    # Without the "-l" option, or with the "-B" option, AIX nm treats
17519    # weak defined symbols like other global defined symbols, whereas
17520    # GNU nm marks them as "W".
17521    # While the 'weak' keyword is ignored in the Export File, we need
17522    # it in the Import File for the 'aix-soname' feature, so we have
17523    # to replace the "-B" option with "-P" for AIX nm.
17524    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17525      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'
17526    else
17527      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'
17528    fi
17529    ;;
17530  pw32*)
17531    export_symbols_cmds_CXX=$ltdll_cmds
17532    ;;
17533  cygwin* | mingw* | cegcc*)
17534    case $cc_basename in
17535    cl*)
17536      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17537      ;;
17538    *)
17539      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'
17540      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17541      ;;
17542    esac
17543    ;;
17544  linux* | k*bsd*-gnu | gnu*)
17545    link_all_deplibs_CXX=no
17546    ;;
17547  *)
17548    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17549    ;;
17550  esac
17551
17552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17553$as_echo "$ld_shlibs_CXX" >&6; }
17554test no = "$ld_shlibs_CXX" && can_build_shared=no
17555
17556with_gnu_ld_CXX=$with_gnu_ld
17557
17558
17559
17560
17561
17562
17563#
17564# Do we need to explicitly link libc?
17565#
17566case "x$archive_cmds_need_lc_CXX" in
17567x|xyes)
17568  # Assume -lc should be added
17569  archive_cmds_need_lc_CXX=yes
17570
17571  if test yes,yes = "$GCC,$enable_shared"; then
17572    case $archive_cmds_CXX in
17573    *'~'*)
17574      # FIXME: we may have to deal with multi-command sequences.
17575      ;;
17576    '$CC '*)
17577      # Test whether the compiler implicitly links with -lc since on some
17578      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17579      # to ld, don't add -lc before -lgcc.
17580      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17581$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17582if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17583  $as_echo_n "(cached) " >&6
17584else
17585  $RM conftest*
17586	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17587
17588	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17589  (eval $ac_compile) 2>&5
17590  ac_status=$?
17591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17592  test $ac_status = 0; } 2>conftest.err; then
17593	  soname=conftest
17594	  lib=conftest
17595	  libobjs=conftest.$ac_objext
17596	  deplibs=
17597	  wl=$lt_prog_compiler_wl_CXX
17598	  pic_flag=$lt_prog_compiler_pic_CXX
17599	  compiler_flags=-v
17600	  linker_flags=-v
17601	  verstring=
17602	  output_objdir=.
17603	  libname=conftest
17604	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17605	  allow_undefined_flag_CXX=
17606	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17607  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17608  ac_status=$?
17609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17610  test $ac_status = 0; }
17611	  then
17612	    lt_cv_archive_cmds_need_lc_CXX=no
17613	  else
17614	    lt_cv_archive_cmds_need_lc_CXX=yes
17615	  fi
17616	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17617	else
17618	  cat conftest.err 1>&5
17619	fi
17620	$RM conftest*
17621
17622fi
17623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17624$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17625      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17626      ;;
17627    esac
17628  fi
17629  ;;
17630esac
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17694$as_echo_n "checking dynamic linker characteristics... " >&6; }
17695
17696library_names_spec=
17697libname_spec='lib$name'
17698soname_spec=
17699shrext_cmds=.so
17700postinstall_cmds=
17701postuninstall_cmds=
17702finish_cmds=
17703finish_eval=
17704shlibpath_var=
17705shlibpath_overrides_runpath=unknown
17706version_type=none
17707dynamic_linker="$host_os ld.so"
17708sys_lib_dlsearch_path_spec="/lib /usr/lib"
17709need_lib_prefix=unknown
17710hardcode_into_libs=no
17711
17712# when you set need_version to no, make sure it does not cause -set_version
17713# flags to be left without arguments
17714need_version=unknown
17715
17716
17717
17718case $host_os in
17719aix3*)
17720  version_type=linux # correct to gnu/linux during the next big refactor
17721  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17722  shlibpath_var=LIBPATH
17723
17724  # AIX 3 has no versioning support, so we append a major version to the name.
17725  soname_spec='$libname$release$shared_ext$major'
17726  ;;
17727
17728aix[4-9]*)
17729  version_type=linux # correct to gnu/linux during the next big refactor
17730  need_lib_prefix=no
17731  need_version=no
17732  hardcode_into_libs=yes
17733  if test ia64 = "$host_cpu"; then
17734    # AIX 5 supports IA64
17735    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17736    shlibpath_var=LD_LIBRARY_PATH
17737  else
17738    # With GCC up to 2.95.x, collect2 would create an import file
17739    # for dependence libraries.  The import file would start with
17740    # the line '#! .'.  This would cause the generated library to
17741    # depend on '.', always an invalid library.  This was fixed in
17742    # development snapshots of GCC prior to 3.0.
17743    case $host_os in
17744      aix4 | aix4.[01] | aix4.[01].*)
17745      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17746	   echo ' yes '
17747	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17748	:
17749      else
17750	can_build_shared=no
17751      fi
17752      ;;
17753    esac
17754    # Using Import Files as archive members, it is possible to support
17755    # filename-based versioning of shared library archives on AIX. While
17756    # this would work for both with and without runtime linking, it will
17757    # prevent static linking of such archives. So we do filename-based
17758    # shared library versioning with .so extension only, which is used
17759    # when both runtime linking and shared linking is enabled.
17760    # Unfortunately, runtime linking may impact performance, so we do
17761    # not want this to be the default eventually. Also, we use the
17762    # versioned .so libs for executables only if there is the -brtl
17763    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17764    # To allow for filename-based versioning support, we need to create
17765    # libNAME.so.V as an archive file, containing:
17766    # *) an Import File, referring to the versioned filename of the
17767    #    archive as well as the shared archive member, telling the
17768    #    bitwidth (32 or 64) of that shared object, and providing the
17769    #    list of exported symbols of that shared object, eventually
17770    #    decorated with the 'weak' keyword
17771    # *) the shared object with the F_LOADONLY flag set, to really avoid
17772    #    it being seen by the linker.
17773    # At run time we better use the real file rather than another symlink,
17774    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17775
17776    case $with_aix_soname,$aix_use_runtimelinking in
17777    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17778    # soname into executable. Probably we can add versioning support to
17779    # collect2, so additional links can be useful in future.
17780    aix,yes) # traditional libtool
17781      dynamic_linker='AIX unversionable lib.so'
17782      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17783      # instead of lib<name>.a to let people know that these are not
17784      # typical AIX shared libraries.
17785      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17786      ;;
17787    aix,no) # traditional AIX only
17788      dynamic_linker='AIX lib.a(lib.so.V)'
17789      # We preserve .a as extension for shared libraries through AIX4.2
17790      # and later when we are not doing run time linking.
17791      library_names_spec='$libname$release.a $libname.a'
17792      soname_spec='$libname$release$shared_ext$major'
17793      ;;
17794    svr4,*) # full svr4 only
17795      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17796      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17797      # We do not specify a path in Import Files, so LIBPATH fires.
17798      shlibpath_overrides_runpath=yes
17799      ;;
17800    *,yes) # both, prefer svr4
17801      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17802      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17803      # unpreferred sharedlib libNAME.a needs extra handling
17804      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"'
17805      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"'
17806      # We do not specify a path in Import Files, so LIBPATH fires.
17807      shlibpath_overrides_runpath=yes
17808      ;;
17809    *,no) # both, prefer aix
17810      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17811      library_names_spec='$libname$release.a $libname.a'
17812      soname_spec='$libname$release$shared_ext$major'
17813      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17814      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)'
17815      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"'
17816      ;;
17817    esac
17818    shlibpath_var=LIBPATH
17819  fi
17820  ;;
17821
17822amigaos*)
17823  case $host_cpu in
17824  powerpc)
17825    # Since July 2007 AmigaOS4 officially supports .so libraries.
17826    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17827    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17828    ;;
17829  m68k)
17830    library_names_spec='$libname.ixlibrary $libname.a'
17831    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17832    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'
17833    ;;
17834  esac
17835  ;;
17836
17837beos*)
17838  library_names_spec='$libname$shared_ext'
17839  dynamic_linker="$host_os ld.so"
17840  shlibpath_var=LIBRARY_PATH
17841  ;;
17842
17843bsdi[45]*)
17844  version_type=linux # correct to gnu/linux during the next big refactor
17845  need_version=no
17846  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17847  soname_spec='$libname$release$shared_ext$major'
17848  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17849  shlibpath_var=LD_LIBRARY_PATH
17850  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17851  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17852  # the default ld.so.conf also contains /usr/contrib/lib and
17853  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17854  # libtool to hard-code these into programs
17855  ;;
17856
17857cygwin* | mingw* | pw32* | cegcc*)
17858  version_type=windows
17859  shrext_cmds=.dll
17860  need_version=no
17861  need_lib_prefix=no
17862
17863  case $GCC,$cc_basename in
17864  yes,*)
17865    # gcc
17866    library_names_spec='$libname.dll.a'
17867    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17868    postinstall_cmds='base_file=`basename \$file`~
17869      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17870      dldir=$destdir/`dirname \$dlpath`~
17871      test -d \$dldir || mkdir -p \$dldir~
17872      $install_prog $dir/$dlname \$dldir/$dlname~
17873      chmod a+x \$dldir/$dlname~
17874      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17875        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17876      fi'
17877    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17878      dlpath=$dir/\$dldll~
17879       $RM \$dlpath'
17880    shlibpath_overrides_runpath=yes
17881
17882    case $host_os in
17883    cygwin*)
17884      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17885      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17886
17887      ;;
17888    mingw* | cegcc*)
17889      # MinGW DLLs use traditional 'lib' prefix
17890      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17891      ;;
17892    pw32*)
17893      # pw32 DLLs use 'pw' prefix rather than 'lib'
17894      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17895      ;;
17896    esac
17897    dynamic_linker='Win32 ld.exe'
17898    ;;
17899
17900  *,cl*)
17901    # Native MSVC
17902    libname_spec='$name'
17903    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17904    library_names_spec='$libname.dll.lib'
17905
17906    case $build_os in
17907    mingw*)
17908      sys_lib_search_path_spec=
17909      lt_save_ifs=$IFS
17910      IFS=';'
17911      for lt_path in $LIB
17912      do
17913        IFS=$lt_save_ifs
17914        # Let DOS variable expansion print the short 8.3 style file name.
17915        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17916        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17917      done
17918      IFS=$lt_save_ifs
17919      # Convert to MSYS style.
17920      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17921      ;;
17922    cygwin*)
17923      # Convert to unix form, then to dos form, then back to unix form
17924      # but this time dos style (no spaces!) so that the unix form looks
17925      # like /cygdrive/c/PROGRA~1:/cygdr...
17926      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17927      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17928      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17929      ;;
17930    *)
17931      sys_lib_search_path_spec=$LIB
17932      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17933        # It is most probably a Windows format PATH.
17934        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17935      else
17936        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17937      fi
17938      # FIXME: find the short name or the path components, as spaces are
17939      # common. (e.g. "Program Files" -> "PROGRA~1")
17940      ;;
17941    esac
17942
17943    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17944    postinstall_cmds='base_file=`basename \$file`~
17945      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17946      dldir=$destdir/`dirname \$dlpath`~
17947      test -d \$dldir || mkdir -p \$dldir~
17948      $install_prog $dir/$dlname \$dldir/$dlname'
17949    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17950      dlpath=$dir/\$dldll~
17951       $RM \$dlpath'
17952    shlibpath_overrides_runpath=yes
17953    dynamic_linker='Win32 link.exe'
17954    ;;
17955
17956  *)
17957    # Assume MSVC wrapper
17958    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17959    dynamic_linker='Win32 ld.exe'
17960    ;;
17961  esac
17962  # FIXME: first we should search . and the directory the executable is in
17963  shlibpath_var=PATH
17964  ;;
17965
17966darwin* | rhapsody*)
17967  dynamic_linker="$host_os dyld"
17968  version_type=darwin
17969  need_lib_prefix=no
17970  need_version=no
17971  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17972  soname_spec='$libname$release$major$shared_ext'
17973  shlibpath_overrides_runpath=yes
17974  shlibpath_var=DYLD_LIBRARY_PATH
17975  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17976
17977  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17978  ;;
17979
17980dgux*)
17981  version_type=linux # correct to gnu/linux during the next big refactor
17982  need_lib_prefix=no
17983  need_version=no
17984  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17985  soname_spec='$libname$release$shared_ext$major'
17986  shlibpath_var=LD_LIBRARY_PATH
17987  ;;
17988
17989freebsd* | dragonfly*)
17990  # DragonFly does not have aout.  When/if they implement a new
17991  # versioning mechanism, adjust this.
17992  if test -x /usr/bin/objformat; then
17993    objformat=`/usr/bin/objformat`
17994  else
17995    case $host_os in
17996    freebsd[23].*) objformat=aout ;;
17997    *) objformat=elf ;;
17998    esac
17999  fi
18000  version_type=freebsd-$objformat
18001  case $version_type in
18002    freebsd-elf*)
18003      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18004      soname_spec='$libname$release$shared_ext$major'
18005      need_version=no
18006      need_lib_prefix=no
18007      ;;
18008    freebsd-*)
18009      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18010      need_version=yes
18011      ;;
18012  esac
18013  shlibpath_var=LD_LIBRARY_PATH
18014  case $host_os in
18015  freebsd2.*)
18016    shlibpath_overrides_runpath=yes
18017    ;;
18018  freebsd3.[01]* | freebsdelf3.[01]*)
18019    shlibpath_overrides_runpath=yes
18020    hardcode_into_libs=yes
18021    ;;
18022  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18023  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18024    shlibpath_overrides_runpath=no
18025    hardcode_into_libs=yes
18026    ;;
18027  *) # from 4.6 on, and DragonFly
18028    shlibpath_overrides_runpath=yes
18029    hardcode_into_libs=yes
18030    ;;
18031  esac
18032  ;;
18033
18034haiku*)
18035  version_type=linux # correct to gnu/linux during the next big refactor
18036  need_lib_prefix=no
18037  need_version=no
18038  dynamic_linker="$host_os runtime_loader"
18039  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18040  soname_spec='$libname$release$shared_ext$major'
18041  shlibpath_var=LIBRARY_PATH
18042  shlibpath_overrides_runpath=no
18043  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18044  hardcode_into_libs=yes
18045  ;;
18046
18047hpux9* | hpux10* | hpux11*)
18048  # Give a soname corresponding to the major version so that dld.sl refuses to
18049  # link against other versions.
18050  version_type=sunos
18051  need_lib_prefix=no
18052  need_version=no
18053  case $host_cpu in
18054  ia64*)
18055    shrext_cmds='.so'
18056    hardcode_into_libs=yes
18057    dynamic_linker="$host_os dld.so"
18058    shlibpath_var=LD_LIBRARY_PATH
18059    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18060    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18061    soname_spec='$libname$release$shared_ext$major'
18062    if test 32 = "$HPUX_IA64_MODE"; then
18063      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18064      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18065    else
18066      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18067      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18068    fi
18069    ;;
18070  hppa*64*)
18071    shrext_cmds='.sl'
18072    hardcode_into_libs=yes
18073    dynamic_linker="$host_os dld.sl"
18074    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18075    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18076    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18077    soname_spec='$libname$release$shared_ext$major'
18078    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18079    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18080    ;;
18081  *)
18082    shrext_cmds='.sl'
18083    dynamic_linker="$host_os dld.sl"
18084    shlibpath_var=SHLIB_PATH
18085    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18086    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18087    soname_spec='$libname$release$shared_ext$major'
18088    ;;
18089  esac
18090  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18091  postinstall_cmds='chmod 555 $lib'
18092  # or fails outright, so override atomically:
18093  install_override_mode=555
18094  ;;
18095
18096interix[3-9]*)
18097  version_type=linux # correct to gnu/linux during the next big refactor
18098  need_lib_prefix=no
18099  need_version=no
18100  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18101  soname_spec='$libname$release$shared_ext$major'
18102  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18103  shlibpath_var=LD_LIBRARY_PATH
18104  shlibpath_overrides_runpath=no
18105  hardcode_into_libs=yes
18106  ;;
18107
18108irix5* | irix6* | nonstopux*)
18109  case $host_os in
18110    nonstopux*) version_type=nonstopux ;;
18111    *)
18112	if test yes = "$lt_cv_prog_gnu_ld"; then
18113		version_type=linux # correct to gnu/linux during the next big refactor
18114	else
18115		version_type=irix
18116	fi ;;
18117  esac
18118  need_lib_prefix=no
18119  need_version=no
18120  soname_spec='$libname$release$shared_ext$major'
18121  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18122  case $host_os in
18123  irix5* | nonstopux*)
18124    libsuff= shlibsuff=
18125    ;;
18126  *)
18127    case $LD in # libtool.m4 will add one of these switches to LD
18128    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18129      libsuff= shlibsuff= libmagic=32-bit;;
18130    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18131      libsuff=32 shlibsuff=N32 libmagic=N32;;
18132    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18133      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18134    *) libsuff= shlibsuff= libmagic=never-match;;
18135    esac
18136    ;;
18137  esac
18138  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18139  shlibpath_overrides_runpath=no
18140  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18141  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18142  hardcode_into_libs=yes
18143  ;;
18144
18145# No shared lib support for Linux oldld, aout, or coff.
18146linux*oldld* | linux*aout* | linux*coff*)
18147  dynamic_linker=no
18148  ;;
18149
18150linux*android*)
18151  version_type=none # Android doesn't support versioned libraries.
18152  need_lib_prefix=no
18153  need_version=no
18154  library_names_spec='$libname$release$shared_ext'
18155  soname_spec='$libname$release$shared_ext'
18156  finish_cmds=
18157  shlibpath_var=LD_LIBRARY_PATH
18158  shlibpath_overrides_runpath=yes
18159
18160  # This implies no fast_install, which is unacceptable.
18161  # Some rework will be needed to allow for fast_install
18162  # before this can be enabled.
18163  hardcode_into_libs=yes
18164
18165  dynamic_linker='Android linker'
18166  # Don't embed -rpath directories since the linker doesn't support them.
18167  hardcode_libdir_flag_spec_CXX='-L$libdir'
18168  ;;
18169
18170# This must be glibc/ELF.
18171linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18172  version_type=linux # correct to gnu/linux during the next big refactor
18173  need_lib_prefix=no
18174  need_version=no
18175  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18176  soname_spec='$libname$release$shared_ext$major'
18177  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18178  shlibpath_var=LD_LIBRARY_PATH
18179  shlibpath_overrides_runpath=no
18180
18181  # Some binutils ld are patched to set DT_RUNPATH
18182  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18183  $as_echo_n "(cached) " >&6
18184else
18185  lt_cv_shlibpath_overrides_runpath=no
18186    save_LDFLAGS=$LDFLAGS
18187    save_libdir=$libdir
18188    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18189	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191/* end confdefs.h.  */
18192
18193int
18194main ()
18195{
18196
18197  ;
18198  return 0;
18199}
18200_ACEOF
18201if ac_fn_cxx_try_link "$LINENO"; then :
18202  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18203  lt_cv_shlibpath_overrides_runpath=yes
18204fi
18205fi
18206rm -f core conftest.err conftest.$ac_objext \
18207    conftest$ac_exeext conftest.$ac_ext
18208    LDFLAGS=$save_LDFLAGS
18209    libdir=$save_libdir
18210
18211fi
18212
18213  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18214
18215  # This implies no fast_install, which is unacceptable.
18216  # Some rework will be needed to allow for fast_install
18217  # before this can be enabled.
18218  hardcode_into_libs=yes
18219
18220  # Ideally, we could use ldconfig to report *all* directores which are
18221  # searched for libraries, however this is still not possible.  Aside from not
18222  # being certain /sbin/ldconfig is available, command
18223  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18224  # even though it is searched at run-time.  Try to do the best guess by
18225  # appending ld.so.conf contents (and includes) to the search path.
18226  if test -f /etc/ld.so.conf; then
18227    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' ' '`
18228    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18229  fi
18230
18231  # We used to test for /lib/ld.so.1 and disable shared libraries on
18232  # powerpc, because MkLinux only supported shared libraries with the
18233  # GNU dynamic linker.  Since this was broken with cross compilers,
18234  # most powerpc-linux boxes support dynamic linking these days and
18235  # people can always --disable-shared, the test was removed, and we
18236  # assume the GNU/Linux dynamic linker is in use.
18237  dynamic_linker='GNU/Linux ld.so'
18238  ;;
18239
18240netbsdelf*-gnu)
18241  version_type=linux
18242  need_lib_prefix=no
18243  need_version=no
18244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18245  soname_spec='${libname}${release}${shared_ext}$major'
18246  shlibpath_var=LD_LIBRARY_PATH
18247  shlibpath_overrides_runpath=no
18248  hardcode_into_libs=yes
18249  dynamic_linker='NetBSD ld.elf_so'
18250  ;;
18251
18252netbsd*)
18253  version_type=sunos
18254  need_lib_prefix=no
18255  need_version=no
18256  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18257    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18258    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18259    dynamic_linker='NetBSD (a.out) ld.so'
18260  else
18261    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18262    soname_spec='$libname$release$shared_ext$major'
18263    dynamic_linker='NetBSD ld.elf_so'
18264  fi
18265  shlibpath_var=LD_LIBRARY_PATH
18266  shlibpath_overrides_runpath=yes
18267  hardcode_into_libs=yes
18268  ;;
18269
18270newsos6)
18271  version_type=linux # correct to gnu/linux during the next big refactor
18272  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18273  shlibpath_var=LD_LIBRARY_PATH
18274  shlibpath_overrides_runpath=yes
18275  ;;
18276
18277*nto* | *qnx*)
18278  version_type=qnx
18279  need_lib_prefix=no
18280  need_version=no
18281  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18282  soname_spec='$libname$release$shared_ext$major'
18283  shlibpath_var=LD_LIBRARY_PATH
18284  shlibpath_overrides_runpath=no
18285  hardcode_into_libs=yes
18286  dynamic_linker='ldqnx.so'
18287  ;;
18288
18289openbsd* | bitrig*)
18290  version_type=sunos
18291  sys_lib_dlsearch_path_spec=/usr/lib
18292  need_lib_prefix=no
18293  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18294    need_version=no
18295  else
18296    need_version=yes
18297  fi
18298  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18299  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18300  shlibpath_var=LD_LIBRARY_PATH
18301  shlibpath_overrides_runpath=yes
18302  ;;
18303
18304os2*)
18305  libname_spec='$name'
18306  version_type=windows
18307  shrext_cmds=.dll
18308  need_version=no
18309  need_lib_prefix=no
18310  # OS/2 can only load a DLL with a base name of 8 characters or less.
18311  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18312    v=$($ECHO $release$versuffix | tr -d .-);
18313    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18314    $ECHO $n$v`$shared_ext'
18315  library_names_spec='${libname}_dll.$libext'
18316  dynamic_linker='OS/2 ld.exe'
18317  shlibpath_var=BEGINLIBPATH
18318  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18319  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18320  postinstall_cmds='base_file=`basename \$file`~
18321    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18322    dldir=$destdir/`dirname \$dlpath`~
18323    test -d \$dldir || mkdir -p \$dldir~
18324    $install_prog $dir/$dlname \$dldir/$dlname~
18325    chmod a+x \$dldir/$dlname~
18326    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18327      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18328    fi'
18329  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18330    dlpath=$dir/\$dldll~
18331    $RM \$dlpath'
18332  ;;
18333
18334osf3* | osf4* | osf5*)
18335  version_type=osf
18336  need_lib_prefix=no
18337  need_version=no
18338  soname_spec='$libname$release$shared_ext$major'
18339  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18340  shlibpath_var=LD_LIBRARY_PATH
18341  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18342  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18343  ;;
18344
18345rdos*)
18346  dynamic_linker=no
18347  ;;
18348
18349solaris*)
18350  version_type=linux # correct to gnu/linux during the next big refactor
18351  need_lib_prefix=no
18352  need_version=no
18353  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18354  soname_spec='$libname$release$shared_ext$major'
18355  shlibpath_var=LD_LIBRARY_PATH
18356  shlibpath_overrides_runpath=yes
18357  hardcode_into_libs=yes
18358  # ldd complains unless libraries are executable
18359  postinstall_cmds='chmod +x $lib'
18360  ;;
18361
18362sunos4*)
18363  version_type=sunos
18364  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18365  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18366  shlibpath_var=LD_LIBRARY_PATH
18367  shlibpath_overrides_runpath=yes
18368  if test yes = "$with_gnu_ld"; then
18369    need_lib_prefix=no
18370  fi
18371  need_version=yes
18372  ;;
18373
18374sysv4 | sysv4.3*)
18375  version_type=linux # correct to gnu/linux during the next big refactor
18376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18377  soname_spec='$libname$release$shared_ext$major'
18378  shlibpath_var=LD_LIBRARY_PATH
18379  case $host_vendor in
18380    sni)
18381      shlibpath_overrides_runpath=no
18382      need_lib_prefix=no
18383      runpath_var=LD_RUN_PATH
18384      ;;
18385    siemens)
18386      need_lib_prefix=no
18387      ;;
18388    motorola)
18389      need_lib_prefix=no
18390      need_version=no
18391      shlibpath_overrides_runpath=no
18392      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18393      ;;
18394  esac
18395  ;;
18396
18397sysv4*MP*)
18398  if test -d /usr/nec; then
18399    version_type=linux # correct to gnu/linux during the next big refactor
18400    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18401    soname_spec='$libname$shared_ext.$major'
18402    shlibpath_var=LD_LIBRARY_PATH
18403  fi
18404  ;;
18405
18406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18407  version_type=sco
18408  need_lib_prefix=no
18409  need_version=no
18410  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18411  soname_spec='$libname$release$shared_ext$major'
18412  shlibpath_var=LD_LIBRARY_PATH
18413  shlibpath_overrides_runpath=yes
18414  hardcode_into_libs=yes
18415  if test yes = "$with_gnu_ld"; then
18416    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18417  else
18418    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18419    case $host_os in
18420      sco3.2v5*)
18421        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18422	;;
18423    esac
18424  fi
18425  sys_lib_dlsearch_path_spec='/usr/lib'
18426  ;;
18427
18428tpf*)
18429  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18430  version_type=linux # correct to gnu/linux during the next big refactor
18431  need_lib_prefix=no
18432  need_version=no
18433  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18434  shlibpath_var=LD_LIBRARY_PATH
18435  shlibpath_overrides_runpath=no
18436  hardcode_into_libs=yes
18437  ;;
18438
18439uts4*)
18440  version_type=linux # correct to gnu/linux during the next big refactor
18441  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18442  soname_spec='$libname$release$shared_ext$major'
18443  shlibpath_var=LD_LIBRARY_PATH
18444  ;;
18445
18446*)
18447  dynamic_linker=no
18448  ;;
18449esac
18450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18451$as_echo "$dynamic_linker" >&6; }
18452test no = "$dynamic_linker" && can_build_shared=no
18453
18454variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18455if test yes = "$GCC"; then
18456  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18457fi
18458
18459if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18460  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18461fi
18462
18463if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18464  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18465fi
18466
18467# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18468configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18469
18470# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18471func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18472
18473# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18474configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18516$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18517hardcode_action_CXX=
18518if test -n "$hardcode_libdir_flag_spec_CXX" ||
18519   test -n "$runpath_var_CXX" ||
18520   test yes = "$hardcode_automatic_CXX"; then
18521
18522  # We can hardcode non-existent directories.
18523  if test no != "$hardcode_direct_CXX" &&
18524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18525     # have to relink, otherwise we might link with an installed library
18526     # when we should be linking with a yet-to-be-installed one
18527     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18528     test no != "$hardcode_minus_L_CXX"; then
18529    # Linking always hardcodes the temporary library directory.
18530    hardcode_action_CXX=relink
18531  else
18532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18533    hardcode_action_CXX=immediate
18534  fi
18535else
18536  # We cannot hardcode anything, or else we can only hardcode existing
18537  # directories.
18538  hardcode_action_CXX=unsupported
18539fi
18540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18541$as_echo "$hardcode_action_CXX" >&6; }
18542
18543if test relink = "$hardcode_action_CXX" ||
18544   test yes = "$inherit_rpath_CXX"; then
18545  # Fast installation is not supported
18546  enable_fast_install=no
18547elif test yes = "$shlibpath_overrides_runpath" ||
18548     test no = "$enable_shared"; then
18549  # Fast installation is not necessary
18550  enable_fast_install=needless
18551fi
18552
18553
18554
18555
18556
18557
18558
18559  fi # test -n "$compiler"
18560
18561  CC=$lt_save_CC
18562  CFLAGS=$lt_save_CFLAGS
18563  LDCXX=$LD
18564  LD=$lt_save_LD
18565  GCC=$lt_save_GCC
18566  with_gnu_ld=$lt_save_with_gnu_ld
18567  lt_cv_path_LDCXX=$lt_cv_path_LD
18568  lt_cv_path_LD=$lt_save_path_LD
18569  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18570  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18571fi # test yes != "$_lt_caught_CXX_error"
18572
18573ac_ext=c
18574ac_cpp='$CPP $CPPFLAGS'
18575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18577ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593        ac_config_commands="$ac_config_commands libtool"
18594
18595
18596
18597
18598# Only expand once:
18599
18600
18601
18602      if test "X$prefix" = "XNONE"; then
18603    acl_final_prefix="$ac_default_prefix"
18604  else
18605    acl_final_prefix="$prefix"
18606  fi
18607  if test "X$exec_prefix" = "XNONE"; then
18608    acl_final_exec_prefix='${prefix}'
18609  else
18610    acl_final_exec_prefix="$exec_prefix"
18611  fi
18612  acl_save_prefix="$prefix"
18613  prefix="$acl_final_prefix"
18614  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18615  prefix="$acl_save_prefix"
18616
18617
18618
18619# Check whether --with-gnu-ld was given.
18620if test "${with_gnu_ld+set}" = set; then :
18621  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18622else
18623  with_gnu_ld=no
18624fi
18625
18626# Prepare PATH_SEPARATOR.
18627# The user is always right.
18628if test "${PATH_SEPARATOR+set}" != set; then
18629  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18630  # contains only /bin. Note that ksh looks also at the FPATH variable,
18631  # so we have to set that as well for the test.
18632  PATH_SEPARATOR=:
18633  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18634    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18635           || PATH_SEPARATOR=';'
18636       }
18637fi
18638
18639ac_prog=ld
18640if test "$GCC" = yes; then
18641  # Check if gcc -print-prog-name=ld gives a path.
18642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18643$as_echo_n "checking for ld used by $CC... " >&6; }
18644  case $host in
18645  *-*-mingw*)
18646    # gcc leaves a trailing carriage return which upsets mingw
18647    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18648  *)
18649    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18650  esac
18651  case $ac_prog in
18652    # Accept absolute paths.
18653    [\\/]* | ?:[\\/]*)
18654      re_direlt='/[^/][^/]*/\.\./'
18655      # Canonicalize the pathname of ld
18656      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
18657      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
18658        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18659      done
18660      test -z "$LD" && LD="$ac_prog"
18661      ;;
18662  "")
18663    # If it fails, then pretend we aren't using GCC.
18664    ac_prog=ld
18665    ;;
18666  *)
18667    # If it is relative, then search for the first ld in PATH.
18668    with_gnu_ld=unknown
18669    ;;
18670  esac
18671elif test "$with_gnu_ld" = yes; then
18672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18673$as_echo_n "checking for GNU ld... " >&6; }
18674else
18675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18676$as_echo_n "checking for non-GNU ld... " >&6; }
18677fi
18678if ${acl_cv_path_LD+:} false; then :
18679  $as_echo_n "(cached) " >&6
18680else
18681  if test -z "$LD"; then
18682  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18683  for ac_dir in $PATH; do
18684    IFS="$acl_save_ifs"
18685    test -z "$ac_dir" && ac_dir=.
18686    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18687      acl_cv_path_LD="$ac_dir/$ac_prog"
18688      # Check to see if the program is GNU ld.  I'd rather use --version,
18689      # but apparently some variants of GNU ld only accept -v.
18690      # Break only if it was the GNU/non-GNU ld that we prefer.
18691      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18692      *GNU* | *'with BFD'*)
18693        test "$with_gnu_ld" != no && break
18694        ;;
18695      *)
18696        test "$with_gnu_ld" != yes && break
18697        ;;
18698      esac
18699    fi
18700  done
18701  IFS="$acl_save_ifs"
18702else
18703  acl_cv_path_LD="$LD" # Let the user override the test with a path.
18704fi
18705fi
18706
18707LD="$acl_cv_path_LD"
18708if test -n "$LD"; then
18709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18710$as_echo "$LD" >&6; }
18711else
18712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18713$as_echo "no" >&6; }
18714fi
18715test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18717$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18718if ${acl_cv_prog_gnu_ld+:} false; then :
18719  $as_echo_n "(cached) " >&6
18720else
18721  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18722case `$LD -v 2>&1 </dev/null` in
18723*GNU* | *'with BFD'*)
18724  acl_cv_prog_gnu_ld=yes
18725  ;;
18726*)
18727  acl_cv_prog_gnu_ld=no
18728  ;;
18729esac
18730fi
18731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18732$as_echo "$acl_cv_prog_gnu_ld" >&6; }
18733with_gnu_ld=$acl_cv_prog_gnu_ld
18734
18735
18736
18737
18738                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18739$as_echo_n "checking for shared library run path origin... " >&6; }
18740if ${acl_cv_rpath+:} false; then :
18741  $as_echo_n "(cached) " >&6
18742else
18743
18744    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18745    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18746    . ./conftest.sh
18747    rm -f ./conftest.sh
18748    acl_cv_rpath=done
18749
18750fi
18751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18752$as_echo "$acl_cv_rpath" >&6; }
18753  wl="$acl_cv_wl"
18754  acl_libext="$acl_cv_libext"
18755  acl_shlibext="$acl_cv_shlibext"
18756  acl_libname_spec="$acl_cv_libname_spec"
18757  acl_library_names_spec="$acl_cv_library_names_spec"
18758  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18759  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18760  acl_hardcode_direct="$acl_cv_hardcode_direct"
18761  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18762    # Check whether --enable-rpath was given.
18763if test "${enable_rpath+set}" = set; then :
18764  enableval=$enable_rpath; :
18765else
18766  enable_rpath=yes
18767fi
18768
18769
18770
18771
18772  acl_libdirstem=lib
18773  acl_libdirstem2=
18774  case "$host_os" in
18775    solaris*)
18776                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18777$as_echo_n "checking for 64-bit host... " >&6; }
18778if ${gl_cv_solaris_64bit+:} false; then :
18779  $as_echo_n "(cached) " >&6
18780else
18781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782/* end confdefs.h.  */
18783
18784#ifdef _LP64
18785sixtyfour bits
18786#endif
18787
18788_ACEOF
18789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18790  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18791  gl_cv_solaris_64bit=yes
18792else
18793  gl_cv_solaris_64bit=no
18794fi
18795rm -f conftest*
18796
18797
18798fi
18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18800$as_echo "$gl_cv_solaris_64bit" >&6; }
18801      if test $gl_cv_solaris_64bit = yes; then
18802        acl_libdirstem=lib/64
18803        case "$host_cpu" in
18804          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
18805          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18806        esac
18807      fi
18808      ;;
18809    *)
18810      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18811      if test -n "$searchpath"; then
18812        acl_save_IFS="${IFS= 	}"; IFS=":"
18813        for searchdir in $searchpath; do
18814          if test -d "$searchdir"; then
18815            case "$searchdir" in
18816              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18817              */../ | */.. )
18818                # Better ignore directories of this form. They are misleading.
18819                ;;
18820              *) searchdir=`cd "$searchdir" && pwd`
18821                 case "$searchdir" in
18822                   */lib64 ) acl_libdirstem=lib64 ;;
18823                 esac ;;
18824            esac
18825          fi
18826        done
18827        IFS="$acl_save_IFS"
18828      fi
18829      ;;
18830  esac
18831  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844    use_additional=yes
18845
18846  acl_save_prefix="$prefix"
18847  prefix="$acl_final_prefix"
18848  acl_save_exec_prefix="$exec_prefix"
18849  exec_prefix="$acl_final_exec_prefix"
18850
18851    eval additional_includedir=\"$includedir\"
18852    eval additional_libdir=\"$libdir\"
18853
18854  exec_prefix="$acl_save_exec_prefix"
18855  prefix="$acl_save_prefix"
18856
18857
18858# Check whether --with-libiconv-prefix was given.
18859if test "${with_libiconv_prefix+set}" = set; then :
18860  withval=$with_libiconv_prefix;
18861    if test "X$withval" = "Xno"; then
18862      use_additional=no
18863    else
18864      if test "X$withval" = "X"; then
18865
18866  acl_save_prefix="$prefix"
18867  prefix="$acl_final_prefix"
18868  acl_save_exec_prefix="$exec_prefix"
18869  exec_prefix="$acl_final_exec_prefix"
18870
18871          eval additional_includedir=\"$includedir\"
18872          eval additional_libdir=\"$libdir\"
18873
18874  exec_prefix="$acl_save_exec_prefix"
18875  prefix="$acl_save_prefix"
18876
18877      else
18878        additional_includedir="$withval/include"
18879        additional_libdir="$withval/$acl_libdirstem"
18880        if test "$acl_libdirstem2" != "$acl_libdirstem" \
18881           && ! test -d "$withval/$acl_libdirstem"; then
18882          additional_libdir="$withval/$acl_libdirstem2"
18883        fi
18884      fi
18885    fi
18886
18887fi
18888
18889      LIBICONV=
18890  LTLIBICONV=
18891  INCICONV=
18892  LIBICONV_PREFIX=
18893      HAVE_LIBICONV=
18894  rpathdirs=
18895  ltrpathdirs=
18896  names_already_handled=
18897  names_next_round='iconv '
18898  while test -n "$names_next_round"; do
18899    names_this_round="$names_next_round"
18900    names_next_round=
18901    for name in $names_this_round; do
18902      already_handled=
18903      for n in $names_already_handled; do
18904        if test "$n" = "$name"; then
18905          already_handled=yes
18906          break
18907        fi
18908      done
18909      if test -z "$already_handled"; then
18910        names_already_handled="$names_already_handled $name"
18911                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18912        eval value=\"\$HAVE_LIB$uppername\"
18913        if test -n "$value"; then
18914          if test "$value" = yes; then
18915            eval value=\"\$LIB$uppername\"
18916            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18917            eval value=\"\$LTLIB$uppername\"
18918            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18919          else
18920                                    :
18921          fi
18922        else
18923                              found_dir=
18924          found_la=
18925          found_so=
18926          found_a=
18927          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18928          if test -n "$acl_shlibext"; then
18929            shrext=".$acl_shlibext"             # typically: shrext=.so
18930          else
18931            shrext=
18932          fi
18933          if test $use_additional = yes; then
18934            dir="$additional_libdir"
18935                                    if test -n "$acl_shlibext"; then
18936              if test -f "$dir/$libname$shrext"; then
18937                found_dir="$dir"
18938                found_so="$dir/$libname$shrext"
18939              else
18940                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18941                  ver=`(cd "$dir" && \
18942                        for f in "$libname$shrext".*; do echo "$f"; done \
18943                        | sed -e "s,^$libname$shrext\\\\.,," \
18944                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18945                        | sed 1q ) 2>/dev/null`
18946                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18947                    found_dir="$dir"
18948                    found_so="$dir/$libname$shrext.$ver"
18949                  fi
18950                else
18951                  eval library_names=\"$acl_library_names_spec\"
18952                  for f in $library_names; do
18953                    if test -f "$dir/$f"; then
18954                      found_dir="$dir"
18955                      found_so="$dir/$f"
18956                      break
18957                    fi
18958                  done
18959                fi
18960              fi
18961            fi
18962                        if test "X$found_dir" = "X"; then
18963              if test -f "$dir/$libname.$acl_libext"; then
18964                found_dir="$dir"
18965                found_a="$dir/$libname.$acl_libext"
18966              fi
18967            fi
18968            if test "X$found_dir" != "X"; then
18969              if test -f "$dir/$libname.la"; then
18970                found_la="$dir/$libname.la"
18971              fi
18972            fi
18973          fi
18974          if test "X$found_dir" = "X"; then
18975            for x in $LDFLAGS $LTLIBICONV; do
18976
18977  acl_save_prefix="$prefix"
18978  prefix="$acl_final_prefix"
18979  acl_save_exec_prefix="$exec_prefix"
18980  exec_prefix="$acl_final_exec_prefix"
18981  eval x=\"$x\"
18982  exec_prefix="$acl_save_exec_prefix"
18983  prefix="$acl_save_prefix"
18984
18985              case "$x" in
18986                -L*)
18987                  dir=`echo "X$x" | sed -e 's/^X-L//'`
18988                                    if test -n "$acl_shlibext"; then
18989                    if test -f "$dir/$libname$shrext"; then
18990                      found_dir="$dir"
18991                      found_so="$dir/$libname$shrext"
18992                    else
18993                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18994                        ver=`(cd "$dir" && \
18995                              for f in "$libname$shrext".*; do echo "$f"; done \
18996                              | sed -e "s,^$libname$shrext\\\\.,," \
18997                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18998                              | sed 1q ) 2>/dev/null`
18999                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19000                          found_dir="$dir"
19001                          found_so="$dir/$libname$shrext.$ver"
19002                        fi
19003                      else
19004                        eval library_names=\"$acl_library_names_spec\"
19005                        for f in $library_names; do
19006                          if test -f "$dir/$f"; then
19007                            found_dir="$dir"
19008                            found_so="$dir/$f"
19009                            break
19010                          fi
19011                        done
19012                      fi
19013                    fi
19014                  fi
19015                                    if test "X$found_dir" = "X"; then
19016                    if test -f "$dir/$libname.$acl_libext"; then
19017                      found_dir="$dir"
19018                      found_a="$dir/$libname.$acl_libext"
19019                    fi
19020                  fi
19021                  if test "X$found_dir" != "X"; then
19022                    if test -f "$dir/$libname.la"; then
19023                      found_la="$dir/$libname.la"
19024                    fi
19025                  fi
19026                  ;;
19027              esac
19028              if test "X$found_dir" != "X"; then
19029                break
19030              fi
19031            done
19032          fi
19033          if test "X$found_dir" != "X"; then
19034                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19035            if test "X$found_so" != "X"; then
19036                                                        if test "$enable_rpath" = no \
19037                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19038                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19039                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19040              else
19041                                                                                haveit=
19042                for x in $ltrpathdirs; do
19043                  if test "X$x" = "X$found_dir"; then
19044                    haveit=yes
19045                    break
19046                  fi
19047                done
19048                if test -z "$haveit"; then
19049                  ltrpathdirs="$ltrpathdirs $found_dir"
19050                fi
19051                                if test "$acl_hardcode_direct" = yes; then
19052                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19053                else
19054                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19055                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19056                                                            haveit=
19057                    for x in $rpathdirs; do
19058                      if test "X$x" = "X$found_dir"; then
19059                        haveit=yes
19060                        break
19061                      fi
19062                    done
19063                    if test -z "$haveit"; then
19064                      rpathdirs="$rpathdirs $found_dir"
19065                    fi
19066                  else
19067                                                                                haveit=
19068                    for x in $LDFLAGS $LIBICONV; do
19069
19070  acl_save_prefix="$prefix"
19071  prefix="$acl_final_prefix"
19072  acl_save_exec_prefix="$exec_prefix"
19073  exec_prefix="$acl_final_exec_prefix"
19074  eval x=\"$x\"
19075  exec_prefix="$acl_save_exec_prefix"
19076  prefix="$acl_save_prefix"
19077
19078                      if test "X$x" = "X-L$found_dir"; then
19079                        haveit=yes
19080                        break
19081                      fi
19082                    done
19083                    if test -z "$haveit"; then
19084                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19085                    fi
19086                    if test "$acl_hardcode_minus_L" != no; then
19087                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19088                    else
19089                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19090                    fi
19091                  fi
19092                fi
19093              fi
19094            else
19095              if test "X$found_a" != "X"; then
19096                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19097              else
19098                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19099              fi
19100            fi
19101                        additional_includedir=
19102            case "$found_dir" in
19103              */$acl_libdirstem | */$acl_libdirstem/)
19104                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19105                if test "$name" = 'iconv'; then
19106                  LIBICONV_PREFIX="$basedir"
19107                fi
19108                additional_includedir="$basedir/include"
19109                ;;
19110              */$acl_libdirstem2 | */$acl_libdirstem2/)
19111                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19112                if test "$name" = 'iconv'; then
19113                  LIBICONV_PREFIX="$basedir"
19114                fi
19115                additional_includedir="$basedir/include"
19116                ;;
19117            esac
19118            if test "X$additional_includedir" != "X"; then
19119                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
19120                haveit=
19121                if test "X$additional_includedir" = "X/usr/local/include"; then
19122                  if test -n "$GCC"; then
19123                    case $host_os in
19124                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19125                    esac
19126                  fi
19127                fi
19128                if test -z "$haveit"; then
19129                  for x in $CPPFLAGS $INCICONV; do
19130
19131  acl_save_prefix="$prefix"
19132  prefix="$acl_final_prefix"
19133  acl_save_exec_prefix="$exec_prefix"
19134  exec_prefix="$acl_final_exec_prefix"
19135  eval x=\"$x\"
19136  exec_prefix="$acl_save_exec_prefix"
19137  prefix="$acl_save_prefix"
19138
19139                    if test "X$x" = "X-I$additional_includedir"; then
19140                      haveit=yes
19141                      break
19142                    fi
19143                  done
19144                  if test -z "$haveit"; then
19145                    if test -d "$additional_includedir"; then
19146                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19147                    fi
19148                  fi
19149                fi
19150              fi
19151            fi
19152                        if test -n "$found_la"; then
19153                                                        save_libdir="$libdir"
19154              case "$found_la" in
19155                */* | *\\*) . "$found_la" ;;
19156                *) . "./$found_la" ;;
19157              esac
19158              libdir="$save_libdir"
19159                            for dep in $dependency_libs; do
19160                case "$dep" in
19161                  -L*)
19162                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19163                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19164                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19165                      haveit=
19166                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19167                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19168                        if test -n "$GCC"; then
19169                          case $host_os in
19170                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19171                          esac
19172                        fi
19173                      fi
19174                      if test -z "$haveit"; then
19175                        haveit=
19176                        for x in $LDFLAGS $LIBICONV; do
19177
19178  acl_save_prefix="$prefix"
19179  prefix="$acl_final_prefix"
19180  acl_save_exec_prefix="$exec_prefix"
19181  exec_prefix="$acl_final_exec_prefix"
19182  eval x=\"$x\"
19183  exec_prefix="$acl_save_exec_prefix"
19184  prefix="$acl_save_prefix"
19185
19186                          if test "X$x" = "X-L$additional_libdir"; then
19187                            haveit=yes
19188                            break
19189                          fi
19190                        done
19191                        if test -z "$haveit"; then
19192                          if test -d "$additional_libdir"; then
19193                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19194                          fi
19195                        fi
19196                        haveit=
19197                        for x in $LDFLAGS $LTLIBICONV; do
19198
19199  acl_save_prefix="$prefix"
19200  prefix="$acl_final_prefix"
19201  acl_save_exec_prefix="$exec_prefix"
19202  exec_prefix="$acl_final_exec_prefix"
19203  eval x=\"$x\"
19204  exec_prefix="$acl_save_exec_prefix"
19205  prefix="$acl_save_prefix"
19206
19207                          if test "X$x" = "X-L$additional_libdir"; then
19208                            haveit=yes
19209                            break
19210                          fi
19211                        done
19212                        if test -z "$haveit"; then
19213                          if test -d "$additional_libdir"; then
19214                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19215                          fi
19216                        fi
19217                      fi
19218                    fi
19219                    ;;
19220                  -R*)
19221                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
19222                    if test "$enable_rpath" != no; then
19223                                                                  haveit=
19224                      for x in $rpathdirs; do
19225                        if test "X$x" = "X$dir"; then
19226                          haveit=yes
19227                          break
19228                        fi
19229                      done
19230                      if test -z "$haveit"; then
19231                        rpathdirs="$rpathdirs $dir"
19232                      fi
19233                                                                  haveit=
19234                      for x in $ltrpathdirs; do
19235                        if test "X$x" = "X$dir"; then
19236                          haveit=yes
19237                          break
19238                        fi
19239                      done
19240                      if test -z "$haveit"; then
19241                        ltrpathdirs="$ltrpathdirs $dir"
19242                      fi
19243                    fi
19244                    ;;
19245                  -l*)
19246                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19247                    ;;
19248                  *.la)
19249                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19250                    ;;
19251                  *)
19252                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19253                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19254                    ;;
19255                esac
19256              done
19257            fi
19258          else
19259                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19260            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19261          fi
19262        fi
19263      fi
19264    done
19265  done
19266  if test "X$rpathdirs" != "X"; then
19267    if test -n "$acl_hardcode_libdir_separator"; then
19268                        alldirs=
19269      for found_dir in $rpathdirs; do
19270        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19271      done
19272            acl_save_libdir="$libdir"
19273      libdir="$alldirs"
19274      eval flag=\"$acl_hardcode_libdir_flag_spec\"
19275      libdir="$acl_save_libdir"
19276      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19277    else
19278            for found_dir in $rpathdirs; do
19279        acl_save_libdir="$libdir"
19280        libdir="$found_dir"
19281        eval flag=\"$acl_hardcode_libdir_flag_spec\"
19282        libdir="$acl_save_libdir"
19283        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19284      done
19285    fi
19286  fi
19287  if test "X$ltrpathdirs" != "X"; then
19288            for found_dir in $ltrpathdirs; do
19289      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19290    done
19291  fi
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304          am_save_CPPFLAGS="$CPPFLAGS"
19305
19306  for element in $INCICONV; do
19307    haveit=
19308    for x in $CPPFLAGS; do
19309
19310  acl_save_prefix="$prefix"
19311  prefix="$acl_final_prefix"
19312  acl_save_exec_prefix="$exec_prefix"
19313  exec_prefix="$acl_final_exec_prefix"
19314  eval x=\"$x\"
19315  exec_prefix="$acl_save_exec_prefix"
19316  prefix="$acl_save_prefix"
19317
19318      if test "X$x" = "X$element"; then
19319        haveit=yes
19320        break
19321      fi
19322    done
19323    if test -z "$haveit"; then
19324      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19325    fi
19326  done
19327
19328
19329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19330$as_echo_n "checking for iconv... " >&6; }
19331if ${am_cv_func_iconv+:} false; then :
19332  $as_echo_n "(cached) " >&6
19333else
19334
19335    am_cv_func_iconv="no, consider installing GNU libiconv"
19336    am_cv_lib_iconv=no
19337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338/* end confdefs.h.  */
19339
19340#include <stdlib.h>
19341#include <iconv.h>
19342
19343int
19344main ()
19345{
19346iconv_t cd = iconv_open("","");
19347           iconv(cd,NULL,NULL,NULL,NULL);
19348           iconv_close(cd);
19349  ;
19350  return 0;
19351}
19352_ACEOF
19353if ac_fn_c_try_link "$LINENO"; then :
19354  am_cv_func_iconv=yes
19355fi
19356rm -f core conftest.err conftest.$ac_objext \
19357    conftest$ac_exeext conftest.$ac_ext
19358    if test "$am_cv_func_iconv" != yes; then
19359      am_save_LIBS="$LIBS"
19360      LIBS="$LIBS $LIBICONV"
19361      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362/* end confdefs.h.  */
19363
19364#include <stdlib.h>
19365#include <iconv.h>
19366
19367int
19368main ()
19369{
19370iconv_t cd = iconv_open("","");
19371             iconv(cd,NULL,NULL,NULL,NULL);
19372             iconv_close(cd);
19373  ;
19374  return 0;
19375}
19376_ACEOF
19377if ac_fn_c_try_link "$LINENO"; then :
19378  am_cv_lib_iconv=yes
19379        am_cv_func_iconv=yes
19380fi
19381rm -f core conftest.err conftest.$ac_objext \
19382    conftest$ac_exeext conftest.$ac_ext
19383      LIBS="$am_save_LIBS"
19384    fi
19385
19386fi
19387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19388$as_echo "$am_cv_func_iconv" >&6; }
19389  if test "$am_cv_func_iconv" = yes; then
19390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19391$as_echo_n "checking for working iconv... " >&6; }
19392if ${am_cv_func_iconv_works+:} false; then :
19393  $as_echo_n "(cached) " >&6
19394else
19395
19396                  am_save_LIBS="$LIBS"
19397      if test $am_cv_lib_iconv = yes; then
19398        LIBS="$LIBS $LIBICONV"
19399      fi
19400      am_cv_func_iconv_works=no
19401      for ac_iconv_const in '' 'const'; do
19402        if test "$cross_compiling" = yes; then :
19403  case "$host_os" in
19404             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19405             *)            am_cv_func_iconv_works="guessing yes" ;;
19406           esac
19407else
19408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409/* end confdefs.h.  */
19410
19411#include <iconv.h>
19412#include <string.h>
19413
19414#ifndef ICONV_CONST
19415# define ICONV_CONST $ac_iconv_const
19416#endif
19417
19418int
19419main ()
19420{
19421int result = 0;
19422  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19423     returns.  */
19424  {
19425    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19426    if (cd_utf8_to_88591 != (iconv_t)(-1))
19427      {
19428        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
19429        char buf[10];
19430        ICONV_CONST char *inptr = input;
19431        size_t inbytesleft = strlen (input);
19432        char *outptr = buf;
19433        size_t outbytesleft = sizeof (buf);
19434        size_t res = iconv (cd_utf8_to_88591,
19435                            &inptr, &inbytesleft,
19436                            &outptr, &outbytesleft);
19437        if (res == 0)
19438          result |= 1;
19439        iconv_close (cd_utf8_to_88591);
19440      }
19441  }
19442  /* Test against Solaris 10 bug: Failures are not distinguishable from
19443     successful returns.  */
19444  {
19445    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19446    if (cd_ascii_to_88591 != (iconv_t)(-1))
19447      {
19448        static ICONV_CONST char input[] = "\263";
19449        char buf[10];
19450        ICONV_CONST char *inptr = input;
19451        size_t inbytesleft = strlen (input);
19452        char *outptr = buf;
19453        size_t outbytesleft = sizeof (buf);
19454        size_t res = iconv (cd_ascii_to_88591,
19455                            &inptr, &inbytesleft,
19456                            &outptr, &outbytesleft);
19457        if (res == 0)
19458          result |= 2;
19459        iconv_close (cd_ascii_to_88591);
19460      }
19461  }
19462  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
19463  {
19464    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19465    if (cd_88591_to_utf8 != (iconv_t)(-1))
19466      {
19467        static ICONV_CONST char input[] = "\304";
19468        static char buf[2] = { (char)0xDE, (char)0xAD };
19469        ICONV_CONST char *inptr = input;
19470        size_t inbytesleft = 1;
19471        char *outptr = buf;
19472        size_t outbytesleft = 1;
19473        size_t res = iconv (cd_88591_to_utf8,
19474                            &inptr, &inbytesleft,
19475                            &outptr, &outbytesleft);
19476        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19477          result |= 4;
19478        iconv_close (cd_88591_to_utf8);
19479      }
19480  }
19481#if 0 /* This bug could be worked around by the caller.  */
19482  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
19483  {
19484    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19485    if (cd_88591_to_utf8 != (iconv_t)(-1))
19486      {
19487        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19488        char buf[50];
19489        ICONV_CONST char *inptr = input;
19490        size_t inbytesleft = strlen (input);
19491        char *outptr = buf;
19492        size_t outbytesleft = sizeof (buf);
19493        size_t res = iconv (cd_88591_to_utf8,
19494                            &inptr, &inbytesleft,
19495                            &outptr, &outbytesleft);
19496        if ((int)res > 0)
19497          result |= 8;
19498        iconv_close (cd_88591_to_utf8);
19499      }
19500  }
19501#endif
19502  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19503     provided.  */
19504  if (/* Try standardized names.  */
19505      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19506      /* Try IRIX, OSF/1 names.  */
19507      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19508      /* Try AIX names.  */
19509      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19510      /* Try HP-UX names.  */
19511      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19512    result |= 16;
19513  return result;
19514
19515  ;
19516  return 0;
19517}
19518_ACEOF
19519if ac_fn_c_try_run "$LINENO"; then :
19520  am_cv_func_iconv_works=yes
19521fi
19522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19523  conftest.$ac_objext conftest.beam conftest.$ac_ext
19524fi
19525
19526        test "$am_cv_func_iconv_works" = no || break
19527      done
19528      LIBS="$am_save_LIBS"
19529
19530fi
19531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19532$as_echo "$am_cv_func_iconv_works" >&6; }
19533    case "$am_cv_func_iconv_works" in
19534      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19535      *)   am_func_iconv=yes ;;
19536    esac
19537  else
19538    am_func_iconv=no am_cv_lib_iconv=no
19539  fi
19540  if test "$am_func_iconv" = yes; then
19541
19542$as_echo "#define HAVE_ICONV 1" >>confdefs.h
19543
19544  fi
19545  if test "$am_cv_lib_iconv" = yes; then
19546    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19547$as_echo_n "checking how to link with libiconv... " >&6; }
19548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19549$as_echo "$LIBICONV" >&6; }
19550  else
19551            CPPFLAGS="$am_save_CPPFLAGS"
19552    LIBICONV=
19553    LTLIBICONV=
19554  fi
19555
19556
19557
19558  if test "$am_cv_func_iconv" = yes; then
19559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19560$as_echo_n "checking for iconv declaration... " >&6; }
19561    if ${am_cv_proto_iconv+:} false; then :
19562  $as_echo_n "(cached) " >&6
19563else
19564
19565      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566/* end confdefs.h.  */
19567
19568#include <stdlib.h>
19569#include <iconv.h>
19570extern
19571#ifdef __cplusplus
19572"C"
19573#endif
19574#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
19575size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19576#else
19577size_t iconv();
19578#endif
19579
19580int
19581main ()
19582{
19583
19584  ;
19585  return 0;
19586}
19587_ACEOF
19588if ac_fn_c_try_compile "$LINENO"; then :
19589  am_cv_proto_iconv_arg1=""
19590else
19591  am_cv_proto_iconv_arg1="const"
19592fi
19593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
19595fi
19596
19597    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19598    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19599         $am_cv_proto_iconv" >&5
19600$as_echo "
19601         $am_cv_proto_iconv" >&6; }
19602
19603cat >>confdefs.h <<_ACEOF
19604#define ICONV_CONST $am_cv_proto_iconv_arg1
19605_ACEOF
19606
19607
19608  fi
19609
19610
19611# SIZE_MAX is missing without this
19612CXXFLAGS="$CXXFLAGS -D__STDC_LIMIT_MACROS"
19613
19614
19615cat >>confdefs.h <<_ACEOF
19616#define DOVECOT_NAME "$PACKAGE_NAME"
19617_ACEOF
19618
19619
19620cat >>confdefs.h <<_ACEOF
19621#define DOVECOT_STRING "$PACKAGE_STRING"
19622_ACEOF
19623
19624
19625cat >>confdefs.h <<_ACEOF
19626#define DOVECOT_VERSION "$PACKAGE_VERSION"
19627_ACEOF
19628
19629
19630
19631$as_echo "#define DOVECOT_VERSION_MAJOR 2" >>confdefs.h
19632
19633
19634$as_echo "#define DOVECOT_VERSION_MINOR 3" >>confdefs.h
19635
19636
19637for ac_header in strings.h stdint.h unistd.h dirent.h malloc.h \
19638  sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \
19639  sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h jfs/quota.h \
19640  quota.h sys/fs/quota_common.h \
19641  mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \
19642  xfs/xqm.h execinfo.h ucontext.h malloc_np.h sys/utsname.h sys/vmount.h \
19643  sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h crypt.h
19644do :
19645  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19646ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19647if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19648  cat >>confdefs.h <<_ACEOF
19649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19650_ACEOF
19651
19652fi
19653
19654done
19655
19656
19657
19658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is clang 3.3+" >&5
19659$as_echo_n "checking whether $CC is clang 3.3+... " >&6; }
19660  if $CC -dM -E -x c /dev/null | grep __clang__ > /dev/null 2>&1; then :
19661
19662      have_clang=yes
19663
19664else
19665
19666      have_clang=no
19667
19668fi
19669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_clang" >&5
19670$as_echo "$have_clang" >&6; }
19671
19672
19673    LD_WHOLE_ARCHIVE=
19674    LD_NO_WHOLE_ARCHIVE=
19675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option to include whole archive" >&5
19676$as_echo_n "checking for linker option to include whole archive... " >&6; }
19677    ld_help="`$CC -Wl,-help 2>&1`"
19678    case "$ld_help" in
19679        *"--whole-archive"*)
19680            LD_WHOLE_ARCHIVE="--whole-archive"
19681            LD_NO_WHOLE_ARCHIVE="--no-whole-archive"
19682        ;;
19683    esac
19684    if test "x$LD_WHOLE_ARCHIVE" != "x"; then :
19685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wl,$LD_WHOLE_ARCHIVE" >&5
19686$as_echo "-Wl,$LD_WHOLE_ARCHIVE" >&6; }
19687else
19688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19689$as_echo "not supported" >&6; }
19690
19691fi
19692
19693
19694     if test "x$LD_WHOLE_ARCHIVE" != "x"; then
19695  HAVE_WHOLE_ARCHIVE_TRUE=
19696  HAVE_WHOLE_ARCHIVE_FALSE='#'
19697else
19698  HAVE_WHOLE_ARCHIVE_TRUE='#'
19699  HAVE_WHOLE_ARCHIVE_FALSE=
19700fi
19701
19702
19703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
19704$as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
19705if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
19706  $as_echo_n "(cached) " >&6
19707else
19708
19709  gl_save_compiler_FLAGS="$CFLAGS"
19710  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
19711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712/* end confdefs.h.  */
19713
19714int
19715main ()
19716{
19717
19718  ;
19719  return 0;
19720}
19721_ACEOF
19722if ac_fn_c_try_link "$LINENO"; then :
19723  gl_cv_warn_c__Werror__Wunknown_warning_option=yes
19724else
19725  gl_cv_warn_c__Werror__Wunknown_warning_option=no
19726fi
19727rm -f core conftest.err conftest.$ac_objext \
19728    conftest$ac_exeext conftest.$ac_ext
19729  CFLAGS="$gl_save_compiler_FLAGS"
19730
19731fi
19732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
19733$as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
19734if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
19735  gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
19736else
19737  gl_unknown_warnings_are_errors=
19738fi
19739
19740
19741        # Check whether --enable-hardening was given.
19742if test "${enable_hardening+set}" = set; then :
19743  enableval=$enable_hardening; enable_hardening=$enableval
19744else
19745  enable_hardening=yes
19746fi
19747
19748
19749        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to enable hardening" >&5
19750$as_echo_n "checking Whether to enable hardening... " >&6; }
19751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hardening" >&5
19752$as_echo "$enable_hardening" >&6; }
19753
19754
19755
19756    PIE_CFLAGS=
19757    PIE_LDFLAGS=
19758
19759    if test "$enable_hardening" = yes; then :
19760
19761      OLD_CFLAGS=$CFLAGS
19762      case "$host" in
19763        *-*-mingw* | *-*-msvc* | *-*-cygwin* )
19764           ;;         *)
19765          CFLAGS="-fPIE -DPIE"
19766          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -pie" >&5
19767$as_echo_n "checking whether C compiler handles -pie... " >&6; }
19768if ${gl_cv_warn_c__pie+:} false; then :
19769  $as_echo_n "(cached) " >&6
19770else
19771
19772  gl_save_compiler_FLAGS="$CFLAGS"
19773  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -pie"
19774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775/* end confdefs.h.  */
19776
19777int
19778main ()
19779{
19780
19781  ;
19782  return 0;
19783}
19784
19785_ACEOF
19786if ac_fn_c_try_link "$LINENO"; then :
19787  gl_cv_warn_c__pie=yes
19788else
19789  gl_cv_warn_c__pie=no
19790fi
19791rm -f core conftest.err conftest.$ac_objext \
19792    conftest$ac_exeext conftest.$ac_ext
19793  CFLAGS="$gl_save_compiler_FLAGS"
19794
19795fi
19796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__pie" >&5
19797$as_echo "$gl_cv_warn_c__pie" >&6; }
19798if test "x$gl_cv_warn_c__pie" = xyes; then :
19799
19800            PIE_CFLAGS="-fPIE -DPIE"
19801            PIE_LDFLAGS="-pie"
19802
19803else
19804
19805                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wl,-pie" >&5
19806$as_echo_n "checking whether C compiler handles -Wl,-pie... " >&6; }
19807if ${gl_cv_warn_c__Wl__pie+:} false; then :
19808  $as_echo_n "(cached) " >&6
19809else
19810
19811  gl_save_compiler_FLAGS="$CFLAGS"
19812  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wl,-pie"
19813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19814/* end confdefs.h.  */
19815
19816int
19817main ()
19818{
19819
19820  ;
19821  return 0;
19822}
19823
19824_ACEOF
19825if ac_fn_c_try_link "$LINENO"; then :
19826  gl_cv_warn_c__Wl__pie=yes
19827else
19828  gl_cv_warn_c__Wl__pie=no
19829fi
19830rm -f core conftest.err conftest.$ac_objext \
19831    conftest$ac_exeext conftest.$ac_ext
19832  CFLAGS="$gl_save_compiler_FLAGS"
19833
19834fi
19835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wl__pie" >&5
19836$as_echo "$gl_cv_warn_c__Wl__pie" >&6; }
19837if test "x$gl_cv_warn_c__Wl__pie" = xyes; then :
19838
19839                PIE_CFLAGS="-fPIE -DPIE"
19840                PIE_LDFLAGS="-Wl,-pie"
19841
19842else
19843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
19844$as_echo "not supported" >&6; }
19845fi
19846
19847
19848fi
19849
19850      esac
19851      CFLAGS=$OLD_CFLAGS
19852
19853fi
19854
19855
19856
19857
19858
19859    if test "$enable_hardening" = yes; then :
19860
19861      case "$host" in
19862        *)
19863          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fstack-protector-strong" >&5
19864$as_echo_n "checking whether C compiler handles -fstack-protector-strong... " >&6; }
19865if ${gl_cv_warn_c__fstack_protector_strong+:} false; then :
19866  $as_echo_n "(cached) " >&6
19867else
19868
19869  gl_save_compiler_FLAGS="$CFLAGS"
19870  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fstack-protector-strong"
19871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872/* end confdefs.h.  */
19873
19874int
19875main ()
19876{
19877
19878  ;
19879  return 0;
19880}
19881
19882_ACEOF
19883if ac_fn_c_try_link "$LINENO"; then :
19884  gl_cv_warn_c__fstack_protector_strong=yes
19885else
19886  gl_cv_warn_c__fstack_protector_strong=no
19887fi
19888rm -f core conftest.err conftest.$ac_objext \
19889    conftest$ac_exeext conftest.$ac_ext
19890  CFLAGS="$gl_save_compiler_FLAGS"
19891
19892fi
19893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fstack_protector_strong" >&5
19894$as_echo "$gl_cv_warn_c__fstack_protector_strong" >&6; }
19895if test "x$gl_cv_warn_c__fstack_protector_strong" = xyes; then :
19896
19897            CFLAGS="$CFLAGS -fstack-protector-strong"
19898
19899else
19900
19901               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fstack-protector" >&5
19902$as_echo_n "checking whether C compiler handles -fstack-protector... " >&6; }
19903if ${gl_cv_warn_c__fstack_protector+:} false; then :
19904  $as_echo_n "(cached) " >&6
19905else
19906
19907  gl_save_compiler_FLAGS="$CFLAGS"
19908  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fstack-protector"
19909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19910/* end confdefs.h.  */
19911
19912int
19913main ()
19914{
19915
19916  ;
19917  return 0;
19918}
19919_ACEOF
19920if ac_fn_c_try_link "$LINENO"; then :
19921  gl_cv_warn_c__fstack_protector=yes
19922else
19923  gl_cv_warn_c__fstack_protector=no
19924fi
19925rm -f core conftest.err conftest.$ac_objext \
19926    conftest$ac_exeext conftest.$ac_ext
19927  CFLAGS="$gl_save_compiler_FLAGS"
19928
19929fi
19930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fstack_protector" >&5
19931$as_echo "$gl_cv_warn_c__fstack_protector" >&6; }
19932if test "x$gl_cv_warn_c__fstack_protector" = xyes; then :
19933
19934                 CFLAGS="$CFLAGS -fstack-protector"
19935
19936fi
19937
19938
19939fi
19940
19941      esac
19942
19943fi
19944
19945
19946
19947    if test "$enable_hardening" = yes; then :
19948
19949      case "$host" in
19950        *)
19951          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" >&5
19952$as_echo_n "checking whether C compiler handles -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2... " >&6; }
19953if ${gl_cv_warn_c__O2__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_2+:} false; then :
19954  $as_echo_n "(cached) " >&6
19955else
19956
19957  gl_save_compiler_FLAGS="$CFLAGS"
19958  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
19959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960/* end confdefs.h.  */
19961
19962int
19963main ()
19964{
19965
19966  ;
19967  return 0;
19968}
19969
19970_ACEOF
19971if ac_fn_c_try_link "$LINENO"; then :
19972  gl_cv_warn_c__O2__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_2=yes
19973else
19974  gl_cv_warn_c__O2__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_2=no
19975fi
19976rm -f core conftest.err conftest.$ac_objext \
19977    conftest$ac_exeext conftest.$ac_ext
19978  CFLAGS="$gl_save_compiler_FLAGS"
19979
19980fi
19981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__O2__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_2" >&5
19982$as_echo "$gl_cv_warn_c__O2__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_2" >&6; }
19983if test "x$gl_cv_warn_c__O2__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_2" = xyes; then :
19984
19985            CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
19986
19987fi
19988
19989      esac
19990
19991fi
19992
19993
19994
19995# Check whether --with-retpoline was given.
19996if test "${with_retpoline+set}" = set; then :
19997  withval=$with_retpoline; with_retpoline=$withval
19998else
19999  with_retpoline=keep
20000fi
20001
20002
20003
20004    if test "$enable_hardening" = yes; then :
20005
20006      case "$host" in
20007        *)
20008          as_gl_Warn=`$as_echo "gl_cv_warn_c_-mfunction-return=$with_retpoline" | $as_tr_sh`
20009gl_positive="-mfunction-return=$with_retpoline"
20010case $gl_positive in
20011  -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
20012esac
20013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -mfunction-return=$with_retpoline" >&5
20014$as_echo_n "checking whether C compiler handles -mfunction-return=$with_retpoline... " >&6; }
20015if eval \${$as_gl_Warn+:} false; then :
20016  $as_echo_n "(cached) " >&6
20017else
20018
20019  gl_save_compiler_FLAGS="$CFLAGS"
20020  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
20021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022/* end confdefs.h.  */
20023
20024int
20025main ()
20026{
20027
20028  ;
20029  return 0;
20030}
20031
20032_ACEOF
20033if ac_fn_c_try_link "$LINENO"; then :
20034  eval "$as_gl_Warn=yes"
20035else
20036  eval "$as_gl_Warn=no"
20037fi
20038rm -f core conftest.err conftest.$ac_objext \
20039    conftest$ac_exeext conftest.$ac_ext
20040  CFLAGS="$gl_save_compiler_FLAGS"
20041
20042fi
20043eval ac_res=\$$as_gl_Warn
20044	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20045$as_echo "$ac_res" >&6; }
20046if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
20047  CFLAGS="$CFLAGS -mfunction-return=$with_retpoline"
20048fi
20049
20050          as_gl_Warn=`$as_echo "gl_cv_warn_c_-mindirect-branch=$with_retpoline" | $as_tr_sh`
20051gl_positive="-mindirect-branch=$with_retpoline"
20052case $gl_positive in
20053  -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
20054esac
20055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -mindirect-branch=$with_retpoline" >&5
20056$as_echo_n "checking whether C compiler handles -mindirect-branch=$with_retpoline... " >&6; }
20057if eval \${$as_gl_Warn+:} false; then :
20058  $as_echo_n "(cached) " >&6
20059else
20060
20061  gl_save_compiler_FLAGS="$CFLAGS"
20062  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
20063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064/* end confdefs.h.  */
20065
20066int
20067main ()
20068{
20069
20070  ;
20071  return 0;
20072}
20073
20074_ACEOF
20075if ac_fn_c_try_link "$LINENO"; then :
20076  eval "$as_gl_Warn=yes"
20077else
20078  eval "$as_gl_Warn=no"
20079fi
20080rm -f core conftest.err conftest.$ac_objext \
20081    conftest$ac_exeext conftest.$ac_ext
20082  CFLAGS="$gl_save_compiler_FLAGS"
20083
20084fi
20085eval ac_res=\$$as_gl_Warn
20086	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20087$as_echo "$ac_res" >&6; }
20088if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
20089
20090            CFLAGS="$CFLAGS -mindirect-branch=$with_retpoline"
20091
20092fi
20093
20094      esac
20095
20096fi
20097
20098
20099    RELRO_LDFLAGS=
20100    if test "$enable_hardening" = yes; then :
20101
20102      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for how to force completely read-only GOT table" >&5
20103$as_echo_n "checking for how to force completely read-only GOT table... " >&6; }
20104      ld_help=`$CC -Wl,-help 2>&1`
20105      case $ld_help in
20106          *"-z relro"*) RELRO_LDFLAGS="-Wl,-z -Wl,relro" ;;
20107      esac
20108      case $ld_help in
20109          *"-z now"*) RELRO_LDFLAGS="$RELRO_LDFLAGS -Wl,-z -Wl,now" ;;
20110      esac
20111      if test "x$RELRO_LDFLAGS" != "x"; then :
20112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELRO_LDFLAGS" >&5
20113$as_echo "$RELRO_LDFLAGS" >&6; }
20114else
20115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20116$as_echo "unknown" >&6; }
20117
20118fi
20119
20120fi
20121
20122
20123
20124  # Check whether --enable-ubsan was given.
20125if test "${enable_ubsan+set}" = set; then :
20126  enableval=$enable_ubsan; want_ubsan=yes
20127else
20128  want_ubsan=no
20129fi
20130
20131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we want undefined behaviour sanitizer" >&5
20132$as_echo_n "checking whether we want undefined behaviour sanitizer... " >&6; }
20133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ubsan" >&5
20134$as_echo "$want_ubsan" >&6; }
20135  if test x$want_ubsan = xyes; then :
20136
20137     san_flags=""
20138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fsanitize=undefined" >&5
20139$as_echo_n "checking whether C compiler handles -fsanitize=undefined... " >&6; }
20140if ${gl_cv_warn_c__fsanitize_undefined+:} false; then :
20141  $as_echo_n "(cached) " >&6
20142else
20143
20144  gl_save_compiler_FLAGS="$CFLAGS"
20145  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fsanitize=undefined"
20146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147/* end confdefs.h.  */
20148
20149int
20150main ()
20151{
20152
20153  ;
20154  return 0;
20155}
20156_ACEOF
20157if ac_fn_c_try_link "$LINENO"; then :
20158  gl_cv_warn_c__fsanitize_undefined=yes
20159else
20160  gl_cv_warn_c__fsanitize_undefined=no
20161fi
20162rm -f core conftest.err conftest.$ac_objext \
20163    conftest$ac_exeext conftest.$ac_ext
20164  CFLAGS="$gl_save_compiler_FLAGS"
20165
20166fi
20167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fsanitize_undefined" >&5
20168$as_echo "$gl_cv_warn_c__fsanitize_undefined" >&6; }
20169if test "x$gl_cv_warn_c__fsanitize_undefined" = xyes; then :
20170
20171             san_flags="$san_flags -fsanitize=undefined"
20172
20173$as_echo "#define HAVE_FSANITIZE_UNDEFINED 1" >>confdefs.h
20174
20175
20176fi
20177
20178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fno-sanitize=nonnull-attribute" >&5
20179$as_echo_n "checking whether C compiler handles -fno-sanitize=nonnull-attribute... " >&6; }
20180if ${gl_cv_warn_c__fno_sanitize_nonnull_attribute+:} false; then :
20181  $as_echo_n "(cached) " >&6
20182else
20183
20184  gl_save_compiler_FLAGS="$CFLAGS"
20185  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fno-sanitize=nonnull-attribute"
20186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20187/* end confdefs.h.  */
20188
20189int
20190main ()
20191{
20192
20193  ;
20194  return 0;
20195}
20196_ACEOF
20197if ac_fn_c_try_link "$LINENO"; then :
20198  gl_cv_warn_c__fno_sanitize_nonnull_attribute=yes
20199else
20200  gl_cv_warn_c__fno_sanitize_nonnull_attribute=no
20201fi
20202rm -f core conftest.err conftest.$ac_objext \
20203    conftest$ac_exeext conftest.$ac_ext
20204  CFLAGS="$gl_save_compiler_FLAGS"
20205
20206fi
20207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fno_sanitize_nonnull_attribute" >&5
20208$as_echo "$gl_cv_warn_c__fno_sanitize_nonnull_attribute" >&6; }
20209if test "x$gl_cv_warn_c__fno_sanitize_nonnull_attribute" = xyes; then :
20210
20211             san_flags="$san_flags -fno-sanitize=nonnull-attribute"
20212
20213$as_echo "#define HAVE_FNO_SANITIZE_NONNULL_ATTRIBUTE 1" >>confdefs.h
20214
20215
20216fi
20217
20218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fsanitize=implicit-integer-truncation" >&5
20219$as_echo_n "checking whether C compiler handles -fsanitize=implicit-integer-truncation... " >&6; }
20220if ${gl_cv_warn_c__fsanitize_implicit_integer_truncation+:} false; then :
20221  $as_echo_n "(cached) " >&6
20222else
20223
20224  gl_save_compiler_FLAGS="$CFLAGS"
20225  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fsanitize=implicit-integer-truncation"
20226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227/* end confdefs.h.  */
20228
20229int
20230main ()
20231{
20232
20233  ;
20234  return 0;
20235}
20236_ACEOF
20237if ac_fn_c_try_link "$LINENO"; then :
20238  gl_cv_warn_c__fsanitize_implicit_integer_truncation=yes
20239else
20240  gl_cv_warn_c__fsanitize_implicit_integer_truncation=no
20241fi
20242rm -f core conftest.err conftest.$ac_objext \
20243    conftest$ac_exeext conftest.$ac_ext
20244  CFLAGS="$gl_save_compiler_FLAGS"
20245
20246fi
20247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fsanitize_implicit_integer_truncation" >&5
20248$as_echo "$gl_cv_warn_c__fsanitize_implicit_integer_truncation" >&6; }
20249if test "x$gl_cv_warn_c__fsanitize_implicit_integer_truncation" = xyes; then :
20250
20251             san_flags="$san_flags -fsanitize=implicit-integer-truncation"
20252
20253$as_echo "#define HAVE_FSANITIZE_IMPLICIT_INTEGER_TRUNCATION 1" >>confdefs.h
20254
20255
20256fi
20257
20258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fsanitize=local-bounds" >&5
20259$as_echo_n "checking whether C compiler handles -fsanitize=local-bounds... " >&6; }
20260if ${gl_cv_warn_c__fsanitize_local_bounds+:} false; then :
20261  $as_echo_n "(cached) " >&6
20262else
20263
20264  gl_save_compiler_FLAGS="$CFLAGS"
20265  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fsanitize=local-bounds"
20266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267/* end confdefs.h.  */
20268
20269int
20270main ()
20271{
20272
20273  ;
20274  return 0;
20275}
20276_ACEOF
20277if ac_fn_c_try_link "$LINENO"; then :
20278  gl_cv_warn_c__fsanitize_local_bounds=yes
20279else
20280  gl_cv_warn_c__fsanitize_local_bounds=no
20281fi
20282rm -f core conftest.err conftest.$ac_objext \
20283    conftest$ac_exeext conftest.$ac_ext
20284  CFLAGS="$gl_save_compiler_FLAGS"
20285
20286fi
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fsanitize_local_bounds" >&5
20288$as_echo "$gl_cv_warn_c__fsanitize_local_bounds" >&6; }
20289if test "x$gl_cv_warn_c__fsanitize_local_bounds" = xyes; then :
20290
20291             san_flags="$san_flags -fsanitize=local-bounds"
20292
20293$as_echo "#define HAVE_FSANITIZE_LOCAL_BOUNDS 1" >>confdefs.h
20294
20295
20296fi
20297
20298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fsanitize=integer" >&5
20299$as_echo_n "checking whether C compiler handles -fsanitize=integer... " >&6; }
20300if ${gl_cv_warn_c__fsanitize_integer+:} false; then :
20301  $as_echo_n "(cached) " >&6
20302else
20303
20304  gl_save_compiler_FLAGS="$CFLAGS"
20305  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fsanitize=integer"
20306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307/* end confdefs.h.  */
20308
20309int
20310main ()
20311{
20312
20313  ;
20314  return 0;
20315}
20316_ACEOF
20317if ac_fn_c_try_link "$LINENO"; then :
20318  gl_cv_warn_c__fsanitize_integer=yes
20319else
20320  gl_cv_warn_c__fsanitize_integer=no
20321fi
20322rm -f core conftest.err conftest.$ac_objext \
20323    conftest$ac_exeext conftest.$ac_ext
20324  CFLAGS="$gl_save_compiler_FLAGS"
20325
20326fi
20327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fsanitize_integer" >&5
20328$as_echo "$gl_cv_warn_c__fsanitize_integer" >&6; }
20329if test "x$gl_cv_warn_c__fsanitize_integer" = xyes; then :
20330
20331             san_flags="$san_flags -fsanitize=integer"
20332
20333$as_echo "#define HAVE_FSANITIZE_INTEGER 1" >>confdefs.h
20334
20335
20336fi
20337
20338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fsanitize=nullability" >&5
20339$as_echo_n "checking whether C compiler handles -fsanitize=nullability... " >&6; }
20340if ${gl_cv_warn_c__fsanitize_nullability+:} false; then :
20341  $as_echo_n "(cached) " >&6
20342else
20343
20344  gl_save_compiler_FLAGS="$CFLAGS"
20345  as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fsanitize=nullability"
20346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347/* end confdefs.h.  */
20348
20349int
20350main ()
20351{
20352
20353  ;
20354  return 0;
20355}
20356_ACEOF
20357if ac_fn_c_try_link "$LINENO"; then :
20358  gl_cv_warn_c__fsanitize_nullability=yes
20359else
20360  gl_cv_warn_c__fsanitize_nullability=no
20361fi
20362rm -f core conftest.err conftest.$ac_objext \
20363    conftest$ac_exeext conftest.$ac_ext
20364  CFLAGS="$gl_save_compiler_FLAGS"
20365
20366fi
20367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fsanitize_nullability" >&5
20368$as_echo "$gl_cv_warn_c__fsanitize_nullability" >&6; }
20369if test "x$gl_cv_warn_c__fsanitize_nullability" = xyes; then :
20370
20371             san_flags="$san_flags -fsanitize=nullability"
20372
20373$as_echo "#define HAVE_FSANITIZE_NULLABILITY 1" >>confdefs.h
20374
20375
20376fi
20377
20378     if test "$san_flags" != "" ; then :
20379
20380       EXTRA_CFLAGS="$EXTRA_CFLAGS $san_flags -U_FORTIFY_SOURCE -g -ggdb3 -O0 -fno-omit-frame-pointer"
20381
20382$as_echo "#define HAVE_UNDEFINED_SANITIZER 1" >>confdefs.h
20383
20384
20385else
20386
20387       as_fn_error $? "No undefined sanitizer support in your compiler" "$LINENO" 5
20388
20389fi
20390     san_flags=""
20391
20392fi
20393
20394
20395
20396
20397# Check whether --with-fuzzer was given.
20398if test "${with_fuzzer+set}" = set; then :
20399  withval=$with_fuzzer; with_fuzzer=$withval
20400else
20401  with_fuzzer=no
20402fi
20403
20404	if test x$with_fuzzer = xclang; then :
20405
20406		CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link"
20407		# use $LIB_FUZZING_ENGINE for linking if it exists
20408		FUZZER_LDFLAGS=${LIB_FUZZING_ENGINE--fsanitize=fuzzer}
20409		# May need to use CXXLINK for linking, which wants sources to
20410		# be compiled with -fPIE
20411		FUZZER_CPPFLAGS='$(AM_CPPFLAGS) -fPIE -DPIE'
20412
20413elif test x$with_fuzzer != xno; then :
20414
20415		as_fn_error $? "Unknown fuzzer $with_fuzzer" "$LINENO" 5
20416
20417fi
20418
20419
20420	 if test "x$with_fuzzer" != "xno"; then
20421  USE_FUZZER_TRUE=
20422  USE_FUZZER_FALSE='#'
20423else
20424  USE_FUZZER_TRUE='#'
20425  USE_FUZZER_FALSE=
20426fi
20427
20428
20429
20430
20431  if test "x$ac_cv_c_compiler_gnu" = "xyes"; then :
20432
20433                                CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast"
20434
20435        if test "$have_clang" = "yes"; then :
20436
20437          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438/* end confdefs.h.  */
20439
20440          #if __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 3)
20441          #  error new clang
20442          #endif
20443
20444int
20445main ()
20446{
20447
20448  ;
20449  return 0;
20450}
20451_ACEOF
20452if ac_fn_c_try_compile "$LINENO"; then :
20453
20454else
20455
20456                        CFLAGS="$CFLAGS -Wno-duplicate-decl-specifier"
20457
20458fi
20459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460
20461else
20462
20463                    CFLAGS="$CFLAGS -fno-builtin-strftime"
20464
20465fi
20466
20467        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20468/* end confdefs.h.  */
20469
20470        #if __GNUC__ < 4
20471        #  error old gcc
20472        #endif
20473
20474int
20475main ()
20476{
20477
20478  ;
20479  return 0;
20480}
20481_ACEOF
20482if ac_fn_c_try_compile "$LINENO"; then :
20483
20484                    CFLAGS="$CFLAGS -Wstrict-aliasing=2"
20485
20486fi
20487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20488
20489                old_cflags=$CFLAGS
20490        CFLAGS="-std=gnu99"
20491        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492/* end confdefs.h.  */
20493
20494
20495int
20496main ()
20497{
20498
20499  ;
20500  return 0;
20501}
20502_ACEOF
20503if ac_fn_c_try_compile "$LINENO"; then :
20504
20505          CFLAGS="$CFLAGS $old_cflags"
20506
20507else
20508
20509          CFLAGS="$old_cflags"
20510
20511fi
20512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513
20514
20515fi
20516
20517
20518
20519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
20520$as_echo_n "checking for library containing inet_aton... " >&6; }
20521if ${ac_cv_search_inet_aton+:} false; then :
20522  $as_echo_n "(cached) " >&6
20523else
20524  ac_func_search_save_LIBS=$LIBS
20525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20526/* end confdefs.h.  */
20527
20528/* Override any GCC internal prototype to avoid an error.
20529   Use char because int might match the return type of a GCC
20530   builtin and then its argument prototype would still apply.  */
20531#ifdef __cplusplus
20532extern "C"
20533#endif
20534char inet_aton ();
20535int
20536main ()
20537{
20538return inet_aton ();
20539  ;
20540  return 0;
20541}
20542_ACEOF
20543for ac_lib in '' resolv; do
20544  if test -z "$ac_lib"; then
20545    ac_res="none required"
20546  else
20547    ac_res=-l$ac_lib
20548    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20549  fi
20550  if ac_fn_c_try_link "$LINENO"; then :
20551  ac_cv_search_inet_aton=$ac_res
20552fi
20553rm -f core conftest.err conftest.$ac_objext \
20554    conftest$ac_exeext
20555  if ${ac_cv_search_inet_aton+:} false; then :
20556  break
20557fi
20558done
20559if ${ac_cv_search_inet_aton+:} false; then :
20560
20561else
20562  ac_cv_search_inet_aton=no
20563fi
20564rm conftest.$ac_ext
20565LIBS=$ac_func_search_save_LIBS
20566fi
20567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
20568$as_echo "$ac_cv_search_inet_aton" >&6; }
20569ac_res=$ac_cv_search_inet_aton
20570if test "$ac_res" != no; then :
20571  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20572
20573fi
20574
20575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20576$as_echo_n "checking for library containing gethostbyname... " >&6; }
20577if ${ac_cv_search_gethostbyname+:} false; then :
20578  $as_echo_n "(cached) " >&6
20579else
20580  ac_func_search_save_LIBS=$LIBS
20581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582/* end confdefs.h.  */
20583
20584/* Override any GCC internal prototype to avoid an error.
20585   Use char because int might match the return type of a GCC
20586   builtin and then its argument prototype would still apply.  */
20587#ifdef __cplusplus
20588extern "C"
20589#endif
20590char gethostbyname ();
20591int
20592main ()
20593{
20594return gethostbyname ();
20595  ;
20596  return 0;
20597}
20598_ACEOF
20599for ac_lib in '' nsl; do
20600  if test -z "$ac_lib"; then
20601    ac_res="none required"
20602  else
20603    ac_res=-l$ac_lib
20604    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20605  fi
20606  if ac_fn_c_try_link "$LINENO"; then :
20607  ac_cv_search_gethostbyname=$ac_res
20608fi
20609rm -f core conftest.err conftest.$ac_objext \
20610    conftest$ac_exeext
20611  if ${ac_cv_search_gethostbyname+:} false; then :
20612  break
20613fi
20614done
20615if ${ac_cv_search_gethostbyname+:} false; then :
20616
20617else
20618  ac_cv_search_gethostbyname=no
20619fi
20620rm conftest.$ac_ext
20621LIBS=$ac_func_search_save_LIBS
20622fi
20623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20624$as_echo "$ac_cv_search_gethostbyname" >&6; }
20625ac_res=$ac_cv_search_gethostbyname
20626if test "$ac_res" != no; then :
20627  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20628
20629fi
20630
20631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20632$as_echo_n "checking for library containing socket... " >&6; }
20633if ${ac_cv_search_socket+:} false; then :
20634  $as_echo_n "(cached) " >&6
20635else
20636  ac_func_search_save_LIBS=$LIBS
20637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20638/* end confdefs.h.  */
20639
20640/* Override any GCC internal prototype to avoid an error.
20641   Use char because int might match the return type of a GCC
20642   builtin and then its argument prototype would still apply.  */
20643#ifdef __cplusplus
20644extern "C"
20645#endif
20646char socket ();
20647int
20648main ()
20649{
20650return socket ();
20651  ;
20652  return 0;
20653}
20654_ACEOF
20655for ac_lib in '' socket; do
20656  if test -z "$ac_lib"; then
20657    ac_res="none required"
20658  else
20659    ac_res=-l$ac_lib
20660    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20661  fi
20662  if ac_fn_c_try_link "$LINENO"; then :
20663  ac_cv_search_socket=$ac_res
20664fi
20665rm -f core conftest.err conftest.$ac_objext \
20666    conftest$ac_exeext
20667  if ${ac_cv_search_socket+:} false; then :
20668  break
20669fi
20670done
20671if ${ac_cv_search_socket+:} false; then :
20672
20673else
20674  ac_cv_search_socket=no
20675fi
20676rm conftest.$ac_ext
20677LIBS=$ac_func_search_save_LIBS
20678fi
20679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20680$as_echo "$ac_cv_search_socket" >&6; }
20681ac_res=$ac_cv_search_socket
20682if test "$ac_res" != no; then :
20683  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20684
20685fi
20686
20687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
20688$as_echo_n "checking for library containing gethostent... " >&6; }
20689if ${ac_cv_search_gethostent+:} false; then :
20690  $as_echo_n "(cached) " >&6
20691else
20692  ac_func_search_save_LIBS=$LIBS
20693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694/* end confdefs.h.  */
20695
20696/* Override any GCC internal prototype to avoid an error.
20697   Use char because int might match the return type of a GCC
20698   builtin and then its argument prototype would still apply.  */
20699#ifdef __cplusplus
20700extern "C"
20701#endif
20702char gethostent ();
20703int
20704main ()
20705{
20706return gethostent ();
20707  ;
20708  return 0;
20709}
20710_ACEOF
20711for ac_lib in '' nsl; do
20712  if test -z "$ac_lib"; then
20713    ac_res="none required"
20714  else
20715    ac_res=-l$ac_lib
20716    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20717  fi
20718  if ac_fn_c_try_link "$LINENO"; then :
20719  ac_cv_search_gethostent=$ac_res
20720fi
20721rm -f core conftest.err conftest.$ac_objext \
20722    conftest$ac_exeext
20723  if ${ac_cv_search_gethostent+:} false; then :
20724  break
20725fi
20726done
20727if ${ac_cv_search_gethostent+:} false; then :
20728
20729else
20730  ac_cv_search_gethostent=no
20731fi
20732rm conftest.$ac_ext
20733LIBS=$ac_func_search_save_LIBS
20734fi
20735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
20736$as_echo "$ac_cv_search_gethostent" >&6; }
20737ac_res=$ac_cv_search_gethostent
20738if test "$ac_res" != no; then :
20739  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20740
20741fi
20742
20743
20744
20745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
20746$as_echo_n "checking for library containing fdatasync... " >&6; }
20747if ${ac_cv_search_fdatasync+:} false; then :
20748  $as_echo_n "(cached) " >&6
20749else
20750  ac_func_search_save_LIBS=$LIBS
20751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752/* end confdefs.h.  */
20753
20754/* Override any GCC internal prototype to avoid an error.
20755   Use char because int might match the return type of a GCC
20756   builtin and then its argument prototype would still apply.  */
20757#ifdef __cplusplus
20758extern "C"
20759#endif
20760char fdatasync ();
20761int
20762main ()
20763{
20764return fdatasync ();
20765  ;
20766  return 0;
20767}
20768_ACEOF
20769for ac_lib in '' rt; do
20770  if test -z "$ac_lib"; then
20771    ac_res="none required"
20772  else
20773    ac_res=-l$ac_lib
20774    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20775  fi
20776  if ac_fn_c_try_link "$LINENO"; then :
20777  ac_cv_search_fdatasync=$ac_res
20778fi
20779rm -f core conftest.err conftest.$ac_objext \
20780    conftest$ac_exeext
20781  if ${ac_cv_search_fdatasync+:} false; then :
20782  break
20783fi
20784done
20785if ${ac_cv_search_fdatasync+:} false; then :
20786
20787else
20788  ac_cv_search_fdatasync=no
20789fi
20790rm conftest.$ac_ext
20791LIBS=$ac_func_search_save_LIBS
20792fi
20793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
20794$as_echo "$ac_cv_search_fdatasync" >&6; }
20795ac_res=$ac_cv_search_fdatasync
20796if test "$ac_res" != no; then :
20797  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20798
20799
20800$as_echo "#define HAVE_FDATASYNC /**/" >>confdefs.h
20801
20802
20803fi
20804
20805
20806
20807 if test $want_libcap != no; then
20808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
20809$as_echo_n "checking for cap_init in -lcap... " >&6; }
20810if ${ac_cv_lib_cap_cap_init+:} false; then :
20811  $as_echo_n "(cached) " >&6
20812else
20813  ac_check_lib_save_LIBS=$LIBS
20814LIBS="-lcap  $LIBS"
20815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20816/* end confdefs.h.  */
20817
20818/* Override any GCC internal prototype to avoid an error.
20819   Use char because int might match the return type of a GCC
20820   builtin and then its argument prototype would still apply.  */
20821#ifdef __cplusplus
20822extern "C"
20823#endif
20824char cap_init ();
20825int
20826main ()
20827{
20828return cap_init ();
20829  ;
20830  return 0;
20831}
20832_ACEOF
20833if ac_fn_c_try_link "$LINENO"; then :
20834  ac_cv_lib_cap_cap_init=yes
20835else
20836  ac_cv_lib_cap_cap_init=no
20837fi
20838rm -f core conftest.err conftest.$ac_objext \
20839    conftest$ac_exeext conftest.$ac_ext
20840LIBS=$ac_check_lib_save_LIBS
20841fi
20842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
20843$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
20844if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
20845
20846
20847$as_echo "#define HAVE_LIBCAP /**/" >>confdefs.h
20848
20849     LIBCAP="-lcap"
20850
20851
20852else
20853
20854     if test "$want_libcap" = "yes"; then
20855       as_fn_error $? "Can't build with libcap support: libcap not found" "$LINENO" 5
20856     fi
20857
20858fi
20859
20860 fi
20861
20862
20863  have_libwrap=no
20864  if test $want_libwrap != no; then
20865    ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
20866if test "x$ac_cv_header_tcpd_h" = xyes; then :
20867
20868      old_LIBS=$LIBS
20869
20870      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have libwrap" >&5
20871$as_echo_n "checking whether we have libwrap... " >&6; }
20872if ${i_cv_have_libwrap+:} false; then :
20873  $as_echo_n "(cached) " >&6
20874else
20875
20876        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877/* end confdefs.h.  */
20878
20879          #include <tcpd.h>
20880          int allow_severity = 0;
20881          int deny_severity = 0;
20882
20883int
20884main ()
20885{
20886
20887          request_init((void *)0);
20888
20889  ;
20890  return 0;
20891}
20892_ACEOF
20893if ac_fn_c_try_compile "$LINENO"; then :
20894
20895          i_cv_have_libwrap=yes
20896
20897else
20898
20899          i_cv_have_libwrap=no
20900
20901fi
20902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20903
20904fi
20905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_libwrap" >&5
20906$as_echo "$i_cv_have_libwrap" >&6; }
20907      if test $i_cv_have_libwrap = yes; then
20908
20909$as_echo "#define HAVE_LIBWRAP /**/" >>confdefs.h
20910
20911        LIBWRAP_LIBS=-lwrap
20912
20913        have_libwrap=yes
20914      else
20915        if test "$want_libwrap" = "yes"; then
20916          as_fn_error $? "Can't build with libwrap support: libwrap not found" "$LINENO" 5
20917        fi
20918      fi
20919      LIBS=$old_LIBS
20920
20921else
20922
20923      if test "$want_libwrap" = "yes"; then
20924        as_fn_error $? "Can't build with libwrap support: tcpd.h not found" "$LINENO" 5
20925      fi
20926
20927fi
20928
20929
20930  fi
20931   if test "$have_libwrap" = "yes"; then
20932  TCPWRAPPERS_TRUE=
20933  TCPWRAPPERS_FALSE='#'
20934else
20935  TCPWRAPPERS_TRUE='#'
20936  TCPWRAPPERS_FALSE=
20937fi
20938
20939
20940
20941
20942	ac_fn_c_check_header_mongrel "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
20943if test "x$ac_cv_header_sys_random_h" = xyes; then :
20944
20945          for ac_func in getrandom
20946do :
20947  ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
20948if test "x$ac_cv_func_getrandom" = xyes; then :
20949  cat >>confdefs.h <<_ACEOF
20950#define HAVE_GETRANDOM 1
20951_ACEOF
20952
20953fi
20954done
20955
20956          ac_fn_c_check_decl "$LINENO" "getrandom" "ac_cv_have_decl_getrandom" "#include <sys/random.h>
20957"
20958if test "x$ac_cv_have_decl_getrandom" = xyes; then :
20959  ac_have_decl=1
20960else
20961  ac_have_decl=0
20962fi
20963
20964cat >>confdefs.h <<_ACEOF
20965#define HAVE_DECL_GETRANDOM $ac_have_decl
20966_ACEOF
20967
20968
20969fi
20970
20971
20972
20973
20974
20975# Check whether --with-libbsd was given.
20976if test "${with_libbsd+set}" = set; then :
20977  withval=$with_libbsd; want_libbsd=$withval
20978else
20979  want_libbsd=no
20980fi
20981
20982  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
20983if test "x$ac_cv_func_arc4random_buf" = xyes; then :
20984
20985$as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20986
20987else
20988
20989      if test "$want_libbsd" = yes; then
20990        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
20991$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
20992if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
20993  $as_echo_n "(cached) " >&6
20994else
20995  ac_check_lib_save_LIBS=$LIBS
20996LIBS="-lbsd  $LIBS"
20997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20998/* end confdefs.h.  */
20999
21000/* Override any GCC internal prototype to avoid an error.
21001   Use char because int might match the return type of a GCC
21002   builtin and then its argument prototype would still apply.  */
21003#ifdef __cplusplus
21004extern "C"
21005#endif
21006char arc4random_buf ();
21007int
21008main ()
21009{
21010return arc4random_buf ();
21011  ;
21012  return 0;
21013}
21014_ACEOF
21015if ac_fn_c_try_link "$LINENO"; then :
21016  ac_cv_lib_bsd_arc4random_buf=yes
21017else
21018  ac_cv_lib_bsd_arc4random_buf=no
21019fi
21020rm -f core conftest.err conftest.$ac_objext \
21021    conftest$ac_exeext conftest.$ac_ext
21022LIBS=$ac_check_lib_save_LIBS
21023fi
21024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
21025$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
21026if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
21027
21028          LIBS="$LIBS -lbsd"
21029
21030$as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21031
21032
21033$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
21034
21035
21036fi
21037
21038      fi
21039
21040fi
21041
21042
21043
21044
21045$as_echo "#define PACKAGE_WEBPAGE \"http://www.dovecot.org/\"" >>confdefs.h
21046
21047
21048for ac_func in fcntl flock lockf inet_aton sigaction getpagesize madvise \
21049               strcasecmp stricmp vsyslog writev pread uname \
21050	       setrlimit setproctitle seteuid setreuid setegid setresgid \
21051	       getmntinfo setpriority quotactl getmntent kqueue kevent \
21052	       backtrace_symbols walkcontext dirfd clearenv \
21053	       malloc_usable_size glob fallocate posix_fadvise \
21054	       getpeereid getpeerucred inotify_init timegm
21055do :
21056  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21057ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21058if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21059  cat >>confdefs.h <<_ACEOF
21060#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21061_ACEOF
21062
21063fi
21064done
21065
21066
21067
21068  ac_fn_c_check_type "$LINENO" "struct sockpeercred" "ac_cv_type_struct_sockpeercred" "
21069  #include <sys/types.h>
21070  #include <sys/socket.h>
21071
21072"
21073if test "x$ac_cv_type_struct_sockpeercred" = xyes; then :
21074
21075cat >>confdefs.h <<_ACEOF
21076#define HAVE_STRUCT_SOCKPEERCRED 1
21077_ACEOF
21078
21079
21080fi
21081
21082
21083
21084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21085$as_echo_n "checking for library containing clock_gettime... " >&6; }
21086if ${ac_cv_search_clock_gettime+:} false; then :
21087  $as_echo_n "(cached) " >&6
21088else
21089  ac_func_search_save_LIBS=$LIBS
21090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091/* end confdefs.h.  */
21092
21093/* Override any GCC internal prototype to avoid an error.
21094   Use char because int might match the return type of a GCC
21095   builtin and then its argument prototype would still apply.  */
21096#ifdef __cplusplus
21097extern "C"
21098#endif
21099char clock_gettime ();
21100int
21101main ()
21102{
21103return clock_gettime ();
21104  ;
21105  return 0;
21106}
21107_ACEOF
21108for ac_lib in '' rt; do
21109  if test -z "$ac_lib"; then
21110    ac_res="none required"
21111  else
21112    ac_res=-l$ac_lib
21113    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21114  fi
21115  if ac_fn_c_try_link "$LINENO"; then :
21116  ac_cv_search_clock_gettime=$ac_res
21117fi
21118rm -f core conftest.err conftest.$ac_objext \
21119    conftest$ac_exeext
21120  if ${ac_cv_search_clock_gettime+:} false; then :
21121  break
21122fi
21123done
21124if ${ac_cv_search_clock_gettime+:} false; then :
21125
21126else
21127  ac_cv_search_clock_gettime=no
21128fi
21129rm conftest.$ac_ext
21130LIBS=$ac_func_search_save_LIBS
21131fi
21132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21133$as_echo "$ac_cv_search_clock_gettime" >&6; }
21134ac_res=$ac_cv_search_clock_gettime
21135if test "$ac_res" != no; then :
21136  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21137
21138
21139$as_echo "#define HAVE_CLOCK_GETTIME /**/" >>confdefs.h
21140
21141
21142fi
21143
21144
21145
21146
21147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
21148$as_echo_n "checking for typeof... " >&6; }
21149if ${i_cv_have_typeof+:} false; then :
21150  $as_echo_n "(cached) " >&6
21151else
21152
21153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21154/* end confdefs.h.  */
21155
21156
21157int
21158main ()
21159{
21160
21161      int foo;
21162      typeof(foo) bar;
21163
21164  ;
21165  return 0;
21166}
21167_ACEOF
21168if ac_fn_c_try_compile "$LINENO"; then :
21169
21170      i_cv_have_typeof=yes
21171
21172else
21173
21174      i_cv_have_typeof=no
21175
21176fi
21177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21178
21179fi
21180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_typeof" >&5
21181$as_echo "$i_cv_have_typeof" >&6; }
21182  if test $i_cv_have_typeof = yes; then
21183
21184$as_echo "#define HAVE_TYPEOF /**/" >>confdefs.h
21185
21186  fi
21187
21188
21189  have_ioloop=no
21190
21191  if test "$ioloop" = "best" || test "$ioloop" = "epoll"; then
21192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use epoll" >&5
21193$as_echo_n "checking whether we can use epoll... " >&6; }
21194if ${i_cv_epoll_works+:} false; then :
21195  $as_echo_n "(cached) " >&6
21196else
21197
21198      if test "$cross_compiling" = yes; then :
21199  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21201as_fn_error $? "cannot run test program while cross compiling
21202See \`config.log' for more details" "$LINENO" 5; }
21203else
21204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205/* end confdefs.h.  */
21206
21207        #include <sys/epoll.h>
21208
21209        int main()
21210        {
21211  	return epoll_create(5) < 1;
21212        }
21213
21214_ACEOF
21215if ac_fn_c_try_run "$LINENO"; then :
21216
21217        i_cv_epoll_works=yes
21218
21219else
21220
21221        i_cv_epoll_works=no
21222
21223fi
21224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21225  conftest.$ac_objext conftest.beam conftest.$ac_ext
21226fi
21227
21228
21229fi
21230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_epoll_works" >&5
21231$as_echo "$i_cv_epoll_works" >&6; }
21232    if test $i_cv_epoll_works = yes; then
21233
21234$as_echo "#define IOLOOP_EPOLL /**/" >>confdefs.h
21235
21236      have_ioloop=yes
21237      ioloop=epoll
21238    else
21239      if test "$ioloop" = "epoll" ; then
21240        as_fn_error $? "epoll ioloop requested but epoll_create() is not available" "$LINENO" 5
21241      fi
21242    fi
21243  fi
21244
21245  if test "$ioloop" = "best" || test "$ioloop" = "kqueue"; then
21246      if test "$ac_cv_func_kqueue" = yes && test "$ac_cv_func_kevent" = yes; then
21247
21248$as_echo "#define IOLOOP_KQUEUE /**/" >>confdefs.h
21249
21250        ioloop=kqueue
21251        have_ioloop=yes
21252      elif test "$ioloop" = "kqueue"; then
21253        as_fn_error $? "kqueue ioloop requested but kqueue() is not available" "$LINENO" 5
21254      fi
21255  fi
21256
21257  if test "$ioloop" = "best" || test "$ioloop" = "poll"; then
21258    ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
21259if test "x$ac_cv_func_poll" = xyes; then :
21260
21261
21262$as_echo "#define IOLOOP_POLL /**/" >>confdefs.h
21263
21264      ioloop=poll
21265      have_ioloop=yes
21266
21267fi
21268
21269  fi
21270
21271  if test "$have_ioloop" = "no"; then
21272
21273$as_echo "#define IOLOOP_SELECT /**/" >>confdefs.h
21274
21275    ioloop="select"
21276  fi
21277
21278
21279  have_notify=none
21280
21281  if test "$notify" = "" || test "$notify" = "inotify" ; then
21282        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use inotify" >&5
21283$as_echo_n "checking whether we can use inotify... " >&6; }
21284    if test "$ac_cv_func_inotify_init" = yes; then
21285      have_notify=inotify
21286      notify=inotify
21287      { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
21288$as_echo "\"yes\"" >&6; }
21289
21290$as_echo "#define IOLOOP_NOTIFY_INOTIFY /**/" >>confdefs.h
21291
21292    else
21293      { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
21294$as_echo "\"no\"" >&6; }
21295      if test "$notify" = "inotify"; then
21296        as_fn_error $? "inotify requested but not available" "$LINENO" 5
21297        notify=""
21298      fi
21299    fi
21300  fi
21301
21302  if (test "$notify" = "" && test "$ioloop" = kqueue) || test "$notify" = "kqueue"; then
21303        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use BSD kqueue() notify" >&5
21304$as_echo_n "checking whether we can use BSD kqueue() notify... " >&6; }
21305    if test "$ac_cv_func_kqueue" = yes && test "$ac_cv_func_kevent" = yes ; then
21306      have_notify=kqueue
21307      notify=kqueue
21308      { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
21309$as_echo "\"yes\"" >&6; }
21310
21311$as_echo "#define IOLOOP_NOTIFY_KQUEUE /**/" >>confdefs.h
21312
21313    else
21314      { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
21315$as_echo "\"no\"" >&6; }
21316      if test "$notify" = "kqueue" ; then
21317        as_fn_error $? "kqueue notify requested but kqueue() is not available" "$LINENO" 5
21318        notify=""
21319      fi
21320    fi
21321  fi
21322
21323  if test "$have_notify" = "none"; then
21324
21325$as_echo "#define IOLOOP_NOTIFY_NONE /**/" >>confdefs.h
21326
21327  fi
21328
21329
21330
21331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have glibc" >&5
21332$as_echo_n "checking whether we have glibc... " >&6; }
21333if ${i_cv_have_glibc+:} false; then :
21334  $as_echo_n "(cached) " >&6
21335else
21336
21337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338/* end confdefs.h.  */
21339
21340      #include <stdlib.h>
21341      #ifdef __GLIBC__
21342        we have glibc
21343      #endif
21344
21345int
21346main ()
21347{
21348
21349  ;
21350  return 0;
21351}
21352_ACEOF
21353if ac_fn_c_try_compile "$LINENO"; then :
21354
21355      i_cv_have_glibc=no
21356
21357else
21358
21359      i_cv_have_glibc=yes
21360
21361fi
21362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363
21364fi
21365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_glibc" >&5
21366$as_echo "$i_cv_have_glibc" >&6; }
21367  if test "$i_cv_have_glibc" = "yes"; then
21368
21369$as_echo "#define PREAD_WRAPPERS /**/" >>confdefs.h
21370
21371  fi
21372      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_fallocate() works" >&5
21373$as_echo_n "checking whether posix_fallocate() works... " >&6; }
21374if ${i_cv_posix_fallocate_works+:} false; then :
21375  $as_echo_n "(cached) " >&6
21376else
21377
21378    if test "$cross_compiling" = yes; then :
21379  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21381as_fn_error $? "cannot run test program while cross compiling
21382See \`config.log' for more details" "$LINENO" 5; }
21383else
21384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385/* end confdefs.h.  */
21386
21387      #define _XOPEN_SOURCE 600
21388      #include <stdio.h>
21389      #include <stdlib.h>
21390      #include <fcntl.h>
21391      #include <unistd.h>
21392      #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
21393        possibly broken posix_fallocate
21394      #endif
21395      int main() {
21396        int fd = creat("conftest.temp", 0600);
21397        int ret;
21398        if (fd == -1) {
21399          perror("creat()");
21400          return 2;
21401        }
21402        ret = posix_fallocate(fd, 1024, 1024) < 0 ? 1 : 0;
21403        unlink("conftest.temp");
21404        return ret;
21405      }
21406
21407_ACEOF
21408if ac_fn_c_try_run "$LINENO"; then :
21409
21410      i_cv_posix_fallocate_works=yes
21411
21412else
21413
21414      i_cv_posix_fallocate_works=no
21415
21416fi
21417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21418  conftest.$ac_objext conftest.beam conftest.$ac_ext
21419fi
21420
21421
21422fi
21423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_posix_fallocate_works" >&5
21424$as_echo "$i_cv_posix_fallocate_works" >&6; }
21425  if test $i_cv_posix_fallocate_works = yes; then
21426
21427$as_echo "#define HAVE_POSIX_FALLOCATE /**/" >>confdefs.h
21428
21429  fi
21430
21431
21432
21433	_plugin_deps=yes
21434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS supports plugin dependencies" >&5
21435$as_echo_n "checking whether OS supports plugin dependencies... " >&6; }
21436	case "$host_os" in
21437	  darwin*)
21438	    	    _plugin_deps=no
21439	    ;;
21440	esac
21441	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_plugin_deps" >&5
21442$as_echo "$_plugin_deps" >&6; }
21443	 if test "x$_plugin_deps" = "xyes"; then
21444  DOVECOT_PLUGIN_DEPS_TRUE=
21445  DOVECOT_PLUGIN_DEPS_FALSE='#'
21446else
21447  DOVECOT_PLUGIN_DEPS_TRUE='#'
21448  DOVECOT_PLUGIN_DEPS_FALSE=
21449fi
21450
21451	unset _plugin_deps
21452
21453case "$host_os" in
21454	hpux*)
21455		CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED"
21456		# for getting fd_send/fd_recv working:
21457		LDFLAGS="$LDFLAGS -Wl,+b,:"
21458		LIBS="-lxnet $LIBS"
21459
21460$as_echo "#define PREAD_BROKEN /**/" >>confdefs.h
21461
21462		;;
21463	linux*|darwin*)
21464
21465$as_echo "#define PROCTITLE_HACK /**/" >>confdefs.h
21466
21467		;;
21468	*)
21469		;;
21470esac
21471
21472# The cast to long int works around a bug in the HP C Compiler
21473# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21474# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21475# This bug is HP SR number 8606223364.
21476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21477$as_echo_n "checking size of int... " >&6; }
21478if ${ac_cv_sizeof_int+:} false; then :
21479  $as_echo_n "(cached) " >&6
21480else
21481  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
21482
21483else
21484  if test "$ac_cv_type_int" = yes; then
21485     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21487as_fn_error 77 "cannot compute sizeof (int)
21488See \`config.log' for more details" "$LINENO" 5; }
21489   else
21490     ac_cv_sizeof_int=0
21491   fi
21492fi
21493
21494fi
21495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21496$as_echo "$ac_cv_sizeof_int" >&6; }
21497
21498
21499
21500cat >>confdefs.h <<_ACEOF
21501#define SIZEOF_INT $ac_cv_sizeof_int
21502_ACEOF
21503
21504
21505# The cast to long int works around a bug in the HP C Compiler
21506# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21507# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21508# This bug is HP SR number 8606223364.
21509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21510$as_echo_n "checking size of long... " >&6; }
21511if ${ac_cv_sizeof_long+:} false; then :
21512  $as_echo_n "(cached) " >&6
21513else
21514  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
21515
21516else
21517  if test "$ac_cv_type_long" = yes; then
21518     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21520as_fn_error 77 "cannot compute sizeof (long)
21521See \`config.log' for more details" "$LINENO" 5; }
21522   else
21523     ac_cv_sizeof_long=0
21524   fi
21525fi
21526
21527fi
21528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21529$as_echo "$ac_cv_sizeof_long" >&6; }
21530
21531
21532
21533cat >>confdefs.h <<_ACEOF
21534#define SIZEOF_LONG $ac_cv_sizeof_long
21535_ACEOF
21536
21537
21538# The cast to long int works around a bug in the HP C Compiler
21539# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21540# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21541# This bug is HP SR number 8606223364.
21542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
21543$as_echo_n "checking size of void *... " >&6; }
21544if ${ac_cv_sizeof_void_p+:} false; then :
21545  $as_echo_n "(cached) " >&6
21546else
21547  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
21548
21549else
21550  if test "$ac_cv_type_void_p" = yes; then
21551     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21553as_fn_error 77 "cannot compute sizeof (void *)
21554See \`config.log' for more details" "$LINENO" 5; }
21555   else
21556     ac_cv_sizeof_void_p=0
21557   fi
21558fi
21559
21560fi
21561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
21562$as_echo "$ac_cv_sizeof_void_p" >&6; }
21563
21564
21565
21566cat >>confdefs.h <<_ACEOF
21567#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21568_ACEOF
21569
21570
21571# The cast to long int works around a bug in the HP C Compiler
21572# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21573# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21574# This bug is HP SR number 8606223364.
21575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21576$as_echo_n "checking size of long long... " >&6; }
21577if ${ac_cv_sizeof_long_long+:} false; then :
21578  $as_echo_n "(cached) " >&6
21579else
21580  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
21581
21582else
21583  if test "$ac_cv_type_long_long" = yes; then
21584     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21586as_fn_error 77 "cannot compute sizeof (long long)
21587See \`config.log' for more details" "$LINENO" 5; }
21588   else
21589     ac_cv_sizeof_long_long=0
21590   fi
21591fi
21592
21593fi
21594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21595$as_echo "$ac_cv_sizeof_long_long" >&6; }
21596
21597
21598
21599cat >>confdefs.h <<_ACEOF
21600#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21601_ACEOF
21602
21603
21604
21605# Check whether --enable-largefile was given.
21606if test "${enable_largefile+set}" = set; then :
21607  enableval=$enable_largefile;
21608fi
21609
21610if test "$enable_largefile" != no; then
21611
21612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21613$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
21614if ${ac_cv_sys_largefile_CC+:} false; then :
21615  $as_echo_n "(cached) " >&6
21616else
21617  ac_cv_sys_largefile_CC=no
21618     if test "$GCC" != yes; then
21619       ac_save_CC=$CC
21620       while :; do
21621	 # IRIX 6.2 and later do not support large files by default,
21622	 # so use the C compiler's -n32 option if that helps.
21623	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21624/* end confdefs.h.  */
21625#include <sys/types.h>
21626 /* Check that off_t can represent 2**63 - 1 correctly.
21627    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21628    since some C++ compilers masquerading as C compilers
21629    incorrectly reject 9223372036854775807.  */
21630#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21631  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21632		       && LARGE_OFF_T % 2147483647 == 1)
21633		      ? 1 : -1];
21634int
21635main ()
21636{
21637
21638  ;
21639  return 0;
21640}
21641_ACEOF
21642	 if ac_fn_c_try_compile "$LINENO"; then :
21643  break
21644fi
21645rm -f core conftest.err conftest.$ac_objext
21646	 CC="$CC -n32"
21647	 if ac_fn_c_try_compile "$LINENO"; then :
21648  ac_cv_sys_largefile_CC=' -n32'; break
21649fi
21650rm -f core conftest.err conftest.$ac_objext
21651	 break
21652       done
21653       CC=$ac_save_CC
21654       rm -f conftest.$ac_ext
21655    fi
21656fi
21657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21658$as_echo "$ac_cv_sys_largefile_CC" >&6; }
21659  if test "$ac_cv_sys_largefile_CC" != no; then
21660    CC=$CC$ac_cv_sys_largefile_CC
21661  fi
21662
21663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21664$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21665if ${ac_cv_sys_file_offset_bits+:} false; then :
21666  $as_echo_n "(cached) " >&6
21667else
21668  while :; do
21669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670/* end confdefs.h.  */
21671#include <sys/types.h>
21672 /* Check that off_t can represent 2**63 - 1 correctly.
21673    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21674    since some C++ compilers masquerading as C compilers
21675    incorrectly reject 9223372036854775807.  */
21676#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21677  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21678		       && LARGE_OFF_T % 2147483647 == 1)
21679		      ? 1 : -1];
21680int
21681main ()
21682{
21683
21684  ;
21685  return 0;
21686}
21687_ACEOF
21688if ac_fn_c_try_compile "$LINENO"; then :
21689  ac_cv_sys_file_offset_bits=no; break
21690fi
21691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21693/* end confdefs.h.  */
21694#define _FILE_OFFSET_BITS 64
21695#include <sys/types.h>
21696 /* Check that off_t can represent 2**63 - 1 correctly.
21697    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21698    since some C++ compilers masquerading as C compilers
21699    incorrectly reject 9223372036854775807.  */
21700#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21701  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21702		       && LARGE_OFF_T % 2147483647 == 1)
21703		      ? 1 : -1];
21704int
21705main ()
21706{
21707
21708  ;
21709  return 0;
21710}
21711_ACEOF
21712if ac_fn_c_try_compile "$LINENO"; then :
21713  ac_cv_sys_file_offset_bits=64; break
21714fi
21715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716  ac_cv_sys_file_offset_bits=unknown
21717  break
21718done
21719fi
21720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21721$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
21722case $ac_cv_sys_file_offset_bits in #(
21723  no | unknown) ;;
21724  *)
21725cat >>confdefs.h <<_ACEOF
21726#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21727_ACEOF
21728;;
21729esac
21730rm -rf conftest*
21731  if test $ac_cv_sys_file_offset_bits = unknown; then
21732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21733$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
21734if ${ac_cv_sys_large_files+:} false; then :
21735  $as_echo_n "(cached) " >&6
21736else
21737  while :; do
21738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739/* end confdefs.h.  */
21740#include <sys/types.h>
21741 /* Check that off_t can represent 2**63 - 1 correctly.
21742    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21743    since some C++ compilers masquerading as C compilers
21744    incorrectly reject 9223372036854775807.  */
21745#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21746  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21747		       && LARGE_OFF_T % 2147483647 == 1)
21748		      ? 1 : -1];
21749int
21750main ()
21751{
21752
21753  ;
21754  return 0;
21755}
21756_ACEOF
21757if ac_fn_c_try_compile "$LINENO"; then :
21758  ac_cv_sys_large_files=no; break
21759fi
21760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762/* end confdefs.h.  */
21763#define _LARGE_FILES 1
21764#include <sys/types.h>
21765 /* Check that off_t can represent 2**63 - 1 correctly.
21766    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21767    since some C++ compilers masquerading as C compilers
21768    incorrectly reject 9223372036854775807.  */
21769#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21770  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21771		       && LARGE_OFF_T % 2147483647 == 1)
21772		      ? 1 : -1];
21773int
21774main ()
21775{
21776
21777  ;
21778  return 0;
21779}
21780_ACEOF
21781if ac_fn_c_try_compile "$LINENO"; then :
21782  ac_cv_sys_large_files=1; break
21783fi
21784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785  ac_cv_sys_large_files=unknown
21786  break
21787done
21788fi
21789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21790$as_echo "$ac_cv_sys_large_files" >&6; }
21791case $ac_cv_sys_large_files in #(
21792  no | unknown) ;;
21793  *)
21794cat >>confdefs.h <<_ACEOF
21795#define _LARGE_FILES $ac_cv_sys_large_files
21796_ACEOF
21797;;
21798esac
21799rm -rf conftest*
21800  fi
21801
21802
21803fi
21804
21805ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21806if test "x$ac_cv_type__Bool" = xyes; then :
21807
21808cat >>confdefs.h <<_ACEOF
21809#define HAVE__BOOL 1
21810_ACEOF
21811
21812
21813fi
21814
21815
21816ac_fn_c_check_type "$LINENO" "uoff_t" "ac_cv_type_uoff_t" "$ac_includes_default"
21817if test "x$ac_cv_type_uoff_t" = xyes; then :
21818
21819  have_uoff_t=yes
21820
21821$as_echo "#define HAVE_UOFF_T /**/" >>confdefs.h
21822
21823
21824else
21825
21826  have_uoff_t=no
21827
21828fi
21829
21830
21831
21832
21833  order="long int long-long"
21834  if test "long int long-long" = ""; then
21835    order="int long long-long"
21836  fi
21837
21838  result=""
21839  visible="unknown"
21840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of off_t" >&5
21841$as_echo_n "checking type of off_t... " >&6; }
21842  if ${i_cv_typeof_off_t+:} false; then :
21843  $as_echo_n "(cached) " >&6
21844else
21845
21846  if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
21847        old_CFLAGS="$CFLAGS"
21848    CFLAGS="$CFLAGS -Werror"
21849
21850    for type in $order; do
21851      case "$type" in
21852        int)
21853	  fmt="%d"
21854	  ;;
21855        unsigned-int)
21856	  fmt="%u"
21857	  ;;
21858        long)
21859	  fmt="%ld"
21860	  ;;
21861        unsigned-long)
21862	  fmt="%lu"
21863	  ;;
21864        long-long)
21865	  fmt="%lld"
21866	  ;;
21867        unsigned-long-long)
21868	  fmt="%llu"
21869	  ;;
21870	*)
21871	  fmt=""
21872	  ;;
21873      esac
21874
21875      if test "$fmt" != ""; then
21876	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877/* end confdefs.h.  */
21878
21879	  #include <sys/types.h>
21880	  #include <stdio.h>
21881
21882int
21883main ()
21884{
21885
21886	  printf("$fmt", (off_t)0);
21887
21888  ;
21889  return 0;
21890}
21891_ACEOF
21892if ac_fn_c_try_compile "$LINENO"; then :
21893
21894	  if test "$result" != ""; then
21895	    	    result=""
21896	    visible="unknown"
21897	    break
21898	  fi
21899	  result="`echo $type|sed 's/-/ /g'`"
21900	  visible="$result"
21901
21902fi
21903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904      fi
21905    done
21906    CFLAGS="$old_CFLAGS"
21907  fi
21908
21909  if test "$result" = ""; then
21910    for type in $order; do
21911      type="`echo $type|sed 's/-/ /g'`"
21912      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913/* end confdefs.h.  */
21914
21915	#include <sys/types.h>
21916	typedef $type off_t;
21917
21918int
21919main ()
21920{
21921
21922  ;
21923  return 0;
21924}
21925_ACEOF
21926if ac_fn_c_try_compile "$LINENO"; then :
21927
21928	if test "$result" != ""; then
21929	  	  result=""
21930	  visible="unknown"
21931	  break
21932	fi
21933	result="$type"
21934	visible="$type"
21935
21936fi
21937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938    done
21939  fi
21940
21941  if test "$result" = ""; then
21942
21943        if test "$cross_compiling" = yes; then :
21944  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21946as_fn_error $? "cannot run test program while cross compiling
21947See \`config.log' for more details" "$LINENO" 5; }
21948else
21949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21950/* end confdefs.h.  */
21951
21952      #include <stdio.h>
21953      #include <sys/types.h>
21954      int main() {
21955	FILE *f=fopen("conftestval", "w");
21956	if (!f) exit(1);
21957	fprintf(f, "%d\n", sizeof(off_t));
21958	exit(0);
21959      }
21960
21961_ACEOF
21962if ac_fn_c_try_run "$LINENO"; then :
21963
21964      size=`cat conftestval`
21965      rm -f conftestval
21966
21967      for type in $order; do
21968        actype="ac_cv_sizeof_`echo $type|sed 's/-/_/g'`"
21969        if test "$size" = "`eval echo \\$$actype`"; then
21970	  result="`echo $type|sed 's/-/ /g'`"
21971	  visible="`expr $size \* 8`bit (using $result)"
21972	  break
21973	fi
21974      done
21975      if test "$result" = ""; then
21976        result=unknown
21977	visible="`expr $size \* 8`bit (unknown type)"
21978      fi
21979
21980fi
21981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21982  conftest.$ac_objext conftest.beam conftest.$ac_ext
21983fi
21984
21985  fi
21986  i_cv_typeof_off_t=$result/$visible
21987
21988fi
21989
21990
21991  typeof_off_t=`echo $i_cv_typeof_off_t | sed s,/.*$,,`
21992  visible=`echo $i_cv_typeof_off_t | sed s,^.*/,,`
21993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $visible" >&5
21994$as_echo "$visible" >&6; }
21995
21996case "$typeof_off_t" in
21997  int)
21998    offt_max=INT_MAX
21999    uofft_max=UINT_MAX
22000    uofft_fmt="u"
22001    if test "$have_uoff_t" != "yes"; then
22002
22003$as_echo "#define UOFF_T_INT /**/" >>confdefs.h
22004
22005    fi
22006    offt_bits=`expr 8 \* $ac_cv_sizeof_int`
22007    ;;
22008  long)
22009    offt_max=LONG_MAX
22010    uofft_max=ULONG_MAX
22011    uofft_fmt="lu"
22012    if test "$have_uoff_t" != "yes"; then
22013
22014$as_echo "#define UOFF_T_LONG /**/" >>confdefs.h
22015
22016    fi
22017    offt_bits=`expr 8 \* $ac_cv_sizeof_long`
22018    ;;
22019  "long long")
22020    offt_max=LLONG_MAX
22021    uofft_max=ULLONG_MAX
22022    uofft_fmt="llu"
22023    if test "$have_uoff_t" != "yes"; then
22024
22025$as_echo "#define UOFF_T_LONG_LONG /**/" >>confdefs.h
22026
22027    fi
22028    offt_bits=`expr 8 \* $ac_cv_sizeof_long_long`
22029    ;;
22030  *)
22031    as_fn_error $? "Unsupported off_t type" "$LINENO" 5
22032    ;;
22033esac
22034
22035
22036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22037/* end confdefs.h.  */
22038
22039    #include <dirent.h>
22040
22041int
22042main ()
22043{
22044
22045    struct dirent d;
22046    d.d_type = DT_DIR;
22047
22048  ;
22049  return 0;
22050}
22051_ACEOF
22052if ac_fn_c_try_compile "$LINENO"; then :
22053
22054
22055$as_echo "#define HAVE_DIRENT_D_TYPE /**/" >>confdefs.h
22056
22057
22058fi
22059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060
22061
22062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22063/* end confdefs.h.  */
22064
22065    #include <limits.h>
22066    #include <sys/types.h>
22067
22068int
22069main ()
22070{
22071
22072    off_t i = OFF_T_MAX;
22073
22074  ;
22075  return 0;
22076}
22077_ACEOF
22078if ac_fn_c_try_compile "$LINENO"; then :
22079
22080    :
22081
22082else
22083
22084
22085cat >>confdefs.h <<_ACEOF
22086#define OFF_T_MAX $offt_max
22087_ACEOF
22088
22089
22090fi
22091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092
22093
22094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095/* end confdefs.h.  */
22096
22097    #include <limits.h>
22098    #include <sys/types.h>
22099
22100int
22101main ()
22102{
22103
22104    uoff_t i = UOFF_T_MAX;
22105
22106  ;
22107  return 0;
22108}
22109_ACEOF
22110if ac_fn_c_try_compile "$LINENO"; then :
22111
22112    :
22113
22114else
22115
22116
22117cat >>confdefs.h <<_ACEOF
22118#define UOFF_T_MAX $uofft_max
22119_ACEOF
22120
22121
22122fi
22123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124
22125
22126
22127cat >>confdefs.h <<_ACEOF
22128#define PRIuUOFF_T "$uofft_fmt"
22129_ACEOF
22130
22131
22132
22133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t is signed" >&5
22134$as_echo_n "checking whether size_t is signed... " >&6; }
22135if ${i_cv_signed_size_t+:} false; then :
22136  $as_echo_n "(cached) " >&6
22137else
22138
22139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140/* end confdefs.h.  */
22141
22142      #include <sys/types.h>
22143      #include <stdlib.h>
22144      int arr[(size_t)-1 > 0 ? 1 : -1];
22145
22146_ACEOF
22147if ac_fn_c_try_compile "$LINENO"; then :
22148
22149      i_cv_signed_size_t=no
22150
22151else
22152
22153      i_cv_signed_size_t=yes
22154
22155      echo
22156      echo "Your system's size_t is a signed integer, Dovecot isn't designed to"
22157      echo "support it. It probably works just fine, but it's less resistant to"
22158      echo "buffer overflows. If you're not worried about this and still want to"
22159      echo "compile Dovecot, set ignore_signed_size=1 environment."
22160
22161      if test "$ignore_signed_size" = ""; then
22162        as_fn_error $? "aborting" "$LINENO" 5
22163      fi
22164      echo "..ignoring as requested.."
22165
22166fi
22167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22168
22169fi
22170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_signed_size_t" >&5
22171$as_echo "$i_cv_signed_size_t" >&6; }
22172
22173
22174  order="unsigned-int unsigned-long unsigned-long-long"
22175  if test "unsigned-int unsigned-long unsigned-long-long" = ""; then
22176    order="int long long-long"
22177  fi
22178
22179  result=""
22180  visible="unknown"
22181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of size_t" >&5
22182$as_echo_n "checking type of size_t... " >&6; }
22183  if ${i_cv_typeof_size_t+:} false; then :
22184  $as_echo_n "(cached) " >&6
22185else
22186
22187  if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
22188        old_CFLAGS="$CFLAGS"
22189    CFLAGS="$CFLAGS -Werror"
22190
22191    for type in $order; do
22192      case "$type" in
22193        int)
22194	  fmt="%d"
22195	  ;;
22196        unsigned-int)
22197	  fmt="%u"
22198	  ;;
22199        long)
22200	  fmt="%ld"
22201	  ;;
22202        unsigned-long)
22203	  fmt="%lu"
22204	  ;;
22205        long-long)
22206	  fmt="%lld"
22207	  ;;
22208        unsigned-long-long)
22209	  fmt="%llu"
22210	  ;;
22211	*)
22212	  fmt=""
22213	  ;;
22214      esac
22215
22216      if test "$fmt" != ""; then
22217	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218/* end confdefs.h.  */
22219
22220	  #include <sys/types.h>
22221	  #include <stdio.h>
22222
22223int
22224main ()
22225{
22226
22227	  printf("$fmt", (size_t)0);
22228
22229  ;
22230  return 0;
22231}
22232_ACEOF
22233if ac_fn_c_try_compile "$LINENO"; then :
22234
22235	  if test "$result" != ""; then
22236	    	    result=""
22237	    visible="unknown"
22238	    break
22239	  fi
22240	  result="`echo $type|sed 's/-/ /g'`"
22241	  visible="$result"
22242
22243fi
22244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245      fi
22246    done
22247    CFLAGS="$old_CFLAGS"
22248  fi
22249
22250  if test "$result" = ""; then
22251    for type in $order; do
22252      type="`echo $type|sed 's/-/ /g'`"
22253      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254/* end confdefs.h.  */
22255
22256	#include <sys/types.h>
22257	typedef $type size_t;
22258
22259int
22260main ()
22261{
22262
22263  ;
22264  return 0;
22265}
22266_ACEOF
22267if ac_fn_c_try_compile "$LINENO"; then :
22268
22269	if test "$result" != ""; then
22270	  	  result=""
22271	  visible="unknown"
22272	  break
22273	fi
22274	result="$type"
22275	visible="$type"
22276
22277fi
22278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22279    done
22280  fi
22281
22282  if test "$result" = ""; then
22283
22284        if test "$cross_compiling" = yes; then :
22285  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22287as_fn_error $? "cannot run test program while cross compiling
22288See \`config.log' for more details" "$LINENO" 5; }
22289else
22290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22291/* end confdefs.h.  */
22292
22293      #include <stdio.h>
22294      #include <sys/types.h>
22295      int main() {
22296	FILE *f=fopen("conftestval", "w");
22297	if (!f) exit(1);
22298	fprintf(f, "%d\n", sizeof(size_t));
22299	exit(0);
22300      }
22301
22302_ACEOF
22303if ac_fn_c_try_run "$LINENO"; then :
22304
22305      size=`cat conftestval`
22306      rm -f conftestval
22307
22308      for type in $order; do
22309        actype="ac_cv_sizeof_`echo $type|sed 's/-/_/g'`"
22310        if test "$size" = "`eval echo \\$$actype`"; then
22311	  result="`echo $type|sed 's/-/ /g'`"
22312	  visible="`expr $size \* 8`bit (using $result)"
22313	  break
22314	fi
22315      done
22316      if test "$result" = ""; then
22317        result=unknown
22318	visible="`expr $size \* 8`bit (unknown type)"
22319      fi
22320
22321fi
22322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22323  conftest.$ac_objext conftest.beam conftest.$ac_ext
22324fi
22325
22326  fi
22327  i_cv_typeof_size_t=$result/$visible
22328
22329fi
22330
22331
22332  typeof_size_t=`echo $i_cv_typeof_size_t | sed s,/.*$,,`
22333  visible=`echo $i_cv_typeof_size_t | sed s,^.*/,,`
22334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $visible" >&5
22335$as_echo "$visible" >&6; }
22336
22337  case "$typeof_size_t" in
22338    "unsigned long")
22339      ssizet_max=LONG_MAX
22340      sizet_fmt="lu"
22341      ;;
22342    "unsigned long long")
22343      ssizet_max=LLONG_MAX
22344      sizet_fmt="llu"
22345      ;;
22346    *)
22347            ssizet_max=INT_MAX
22348      sizet_fmt="u"
22349
22350      if test "$typeof_size_t" = ""; then
22351
22352$as_echo "#define size_t unsigned int" >>confdefs.h
22353
22354
22355$as_echo "#define ssize_t int" >>confdefs.h
22356
22357      fi
22358      ;;
22359  esac
22360
22361
22362
22363cat >>confdefs.h <<_ACEOF
22364#define SSIZE_T_MAX $ssizet_max
22365_ACEOF
22366
22367
22368ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
22369if test "x$ac_cv_header_inttypes_h" = xyes; then :
22370
22371else
22372  as_fn_error $? "inttypes.h missing but required" "$LINENO" 5
22373fi
22374
22375
22376
22377ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22378if test "x$ac_cv_header_stdint_h" = xyes; then :
22379
22380  stdint_include="#include <stdint.h>"
22381
22382fi
22383
22384
22385
22386
22387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintmax_t" >&5
22388$as_echo_n "checking for uintmax_t... " >&6; }
22389  if ${i_cv_type_uintmax_t+:} false; then :
22390  $as_echo_n "(cached) " >&6
22391else
22392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22393/* end confdefs.h.  */
22394
22395  #include <sys/types.h>
22396  $stdint_include
22397int
22398main ()
22399{
22400uintmax_t t;
22401  ;
22402  return 0;
22403}
22404_ACEOF
22405if ac_fn_c_try_compile "$LINENO"; then :
22406  i_cv_type_uintmax_t=yes
22407else
22408  i_cv_type_uintmax_t=no
22409fi
22410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411fi
22412
22413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_type_uintmax_t" >&5
22414$as_echo "$i_cv_type_uintmax_t" >&6; }
22415
22416if test $i_cv_type_uintmax_t = yes; then
22417
22418$as_echo "#define HAVE_UINTMAX_T /**/" >>confdefs.h
22419
22420fi
22421
22422
22423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint_fast32_t" >&5
22424$as_echo_n "checking for uint_fast32_t... " >&6; }
22425  if ${i_cv_type_uint_fast32_t+:} false; then :
22426  $as_echo_n "(cached) " >&6
22427else
22428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429/* end confdefs.h.  */
22430
22431  #include <sys/types.h>
22432  $stdint_include
22433int
22434main ()
22435{
22436uint_fast32_t t;
22437  ;
22438  return 0;
22439}
22440_ACEOF
22441if ac_fn_c_try_compile "$LINENO"; then :
22442  i_cv_type_uint_fast32_t=yes
22443else
22444  i_cv_type_uint_fast32_t=no
22445fi
22446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447fi
22448
22449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_type_uint_fast32_t" >&5
22450$as_echo "$i_cv_type_uint_fast32_t" >&6; }
22451
22452if test $i_cv_type_uint_fast32_t = yes; then
22453
22454$as_echo "#define HAVE_UINT_FAST32_T /**/" >>confdefs.h
22455
22456fi
22457
22458
22459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
22460$as_echo_n "checking for socklen_t... " >&6; }
22461  if ${i_cv_type_socklen_t+:} false; then :
22462  $as_echo_n "(cached) " >&6
22463else
22464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465/* end confdefs.h.  */
22466
22467  #include <sys/types.h>
22468  #include <sys/socket.h>
22469int
22470main ()
22471{
22472socklen_t t;
22473  ;
22474  return 0;
22475}
22476_ACEOF
22477if ac_fn_c_try_compile "$LINENO"; then :
22478  i_cv_type_socklen_t=yes
22479else
22480  i_cv_type_socklen_t=no
22481fi
22482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22483fi
22484
22485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_type_socklen_t" >&5
22486$as_echo "$i_cv_type_socklen_t" >&6; }
22487
22488if test $i_cv_type_socklen_t = yes; then
22489
22490$as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
22491
22492fi
22493
22494
22495cat >>confdefs.h <<_ACEOF
22496#define MEM_ALIGN_SIZE $mem_align
22497_ACEOF
22498
22499
22500
22501
22502# Check whether --with-random-source was given.
22503if test "${with_random_source+set}" = set; then :
22504  withval=$with_random_source; random_source=$withval
22505else
22506  random_source=/dev/urandom
22507fi
22508
22509
22510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $random_source" >&5
22511$as_echo_n "checking for $random_source... " >&6; }
22512if test -c $random_source || test -s $random_source; then
22513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22514$as_echo "yes" >&6; }
22515
22516cat >>confdefs.h <<_ACEOF
22517#define DEV_URANDOM_PATH "$random_source"
22518_ACEOF
22519
22520  have_random_source=yes
22521else
22522  as_fn_error $? "$random_source not found or is not character device - please provide path for random source device" "$LINENO" 5
22523fi
22524
22525if test "$have_random_source" != "yes"; then
22526  ac_fn_c_check_header_mongrel "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default"
22527if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
22528
22529
22530$as_echo "#define HAVE_OPENSSL_RAND_H /**/" >>confdefs.h
22531
22532    LIBS="$LIBS -lcrypto"
22533
22534fi
22535
22536
22537fi
22538
22539
22540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff" >&5
22541$as_echo_n "checking for tm_gmtoff... " >&6; }
22542  if ${i_cv_field_tm_gmtoff+:} false; then :
22543  $as_echo_n "(cached) " >&6
22544else
22545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546/* end confdefs.h.  */
22547
22548  #include <time.h>
22549int
22550main ()
22551{
22552struct tm *tm; return tm->tm_gmtoff;
22553  ;
22554  return 0;
22555}
22556_ACEOF
22557if ac_fn_c_try_compile "$LINENO"; then :
22558  i_cv_field_tm_gmtoff=yes
22559else
22560  i_cv_field_tm_gmtoff=no
22561fi
22562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563fi
22564
22565  if test $i_cv_field_tm_gmtoff = yes; then
22566
22567$as_echo "#define HAVE_TM_GMTOFF /**/" >>confdefs.h
22568
22569  fi
22570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_field_tm_gmtoff" >&5
22571$as_echo "$i_cv_field_tm_gmtoff" >&6; }
22572
22573
22574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how large time_t values gmtime() accepts" >&5
22575$as_echo_n "checking how large time_t values gmtime() accepts... " >&6; }
22576if ${i_cv_gmtime_max_time_t+:} false; then :
22577  $as_echo_n "(cached) " >&6
22578else
22579
22580    if test "$cross_compiling" = yes; then :
22581  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22583as_fn_error $? "cannot run test program while cross compiling
22584See \`config.log' for more details" "$LINENO" 5; }
22585else
22586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587/* end confdefs.h.  */
22588
22589      #include <stdio.h>
22590      #include <time.h>
22591      int main() {
22592        FILE *f;
22593        int bits;
22594
22595        for (bits = 1; bits < sizeof(time_t)*8; bits++) {
22596  	time_t t = ((time_t)1 << bits) - 1;
22597  	if (gmtime(&t) == NULL) {
22598  	  bits--;
22599  	  break;
22600  	}
22601        }
22602        if (bits > 40) {
22603  	/* Solaris 9 breaks after 55 bits. Perhaps other systems break earlier.
22604  	   Let's just do the same as Cyrus folks and limit it to 40 bits. */
22605  	bits = 40;
22606        }
22607
22608        f = fopen("conftest.temp", "w");
22609        if (f == NULL) {
22610  	perror("fopen()");
22611  	return 1;
22612        }
22613        fprintf(f, "%d", bits);
22614        fclose(f);
22615        return 0;
22616      }
22617
22618_ACEOF
22619if ac_fn_c_try_run "$LINENO"; then :
22620
22621      i_cv_gmtime_max_time_t=`cat conftest.temp`
22622      rm -f conftest.temp
22623
22624else
22625
22626      printf "check failed, assuming "
22627      i_cv_gmtime_max_time_t=31
22628
22629fi
22630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22631  conftest.$ac_objext conftest.beam conftest.$ac_ext
22632fi
22633
22634
22635fi
22636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_gmtime_max_time_t" >&5
22637$as_echo "$i_cv_gmtime_max_time_t" >&6; }
22638
22639cat >>confdefs.h <<_ACEOF
22640#define TIME_T_MAX_BITS $i_cv_gmtime_max_time_t
22641_ACEOF
22642
22643
22644
22645
22646
22647  order="long int long-long unsigned-int unsigned-long unsigned-long-long"
22648  if test "long int long-long unsigned-int unsigned-long unsigned-long-long" = ""; then
22649    order="int long long-long"
22650  fi
22651
22652  result=""
22653  visible="unknown"
22654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of time_t" >&5
22655$as_echo_n "checking type of time_t... " >&6; }
22656  if ${i_cv_typeof_time_t+:} false; then :
22657  $as_echo_n "(cached) " >&6
22658else
22659
22660  if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
22661        old_CFLAGS="$CFLAGS"
22662    CFLAGS="$CFLAGS -Werror"
22663
22664    for type in $order; do
22665      case "$type" in
22666        int)
22667	  fmt="%d"
22668	  ;;
22669        unsigned-int)
22670	  fmt="%u"
22671	  ;;
22672        long)
22673	  fmt="%ld"
22674	  ;;
22675        unsigned-long)
22676	  fmt="%lu"
22677	  ;;
22678        long-long)
22679	  fmt="%lld"
22680	  ;;
22681        unsigned-long-long)
22682	  fmt="%llu"
22683	  ;;
22684	*)
22685	  fmt=""
22686	  ;;
22687      esac
22688
22689      if test "$fmt" != ""; then
22690	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691/* end confdefs.h.  */
22692
22693	  #include <sys/types.h>
22694	  #include <stdio.h>
22695
22696int
22697main ()
22698{
22699
22700	  printf("$fmt", (time_t)0);
22701
22702  ;
22703  return 0;
22704}
22705_ACEOF
22706if ac_fn_c_try_compile "$LINENO"; then :
22707
22708	  if test "$result" != ""; then
22709	    	    result=""
22710	    visible="unknown"
22711	    break
22712	  fi
22713	  result="`echo $type|sed 's/-/ /g'`"
22714	  visible="$result"
22715
22716fi
22717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22718      fi
22719    done
22720    CFLAGS="$old_CFLAGS"
22721  fi
22722
22723  if test "$result" = ""; then
22724    for type in $order; do
22725      type="`echo $type|sed 's/-/ /g'`"
22726      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727/* end confdefs.h.  */
22728
22729	#include <sys/types.h>
22730	typedef $type time_t;
22731
22732int
22733main ()
22734{
22735
22736  ;
22737  return 0;
22738}
22739_ACEOF
22740if ac_fn_c_try_compile "$LINENO"; then :
22741
22742	if test "$result" != ""; then
22743	  	  result=""
22744	  visible="unknown"
22745	  break
22746	fi
22747	result="$type"
22748	visible="$type"
22749
22750fi
22751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752    done
22753  fi
22754
22755  if test "$result" = ""; then
22756
22757        if test "$cross_compiling" = yes; then :
22758  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22760as_fn_error $? "cannot run test program while cross compiling
22761See \`config.log' for more details" "$LINENO" 5; }
22762else
22763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22764/* end confdefs.h.  */
22765
22766      #include <stdio.h>
22767      #include <sys/types.h>
22768      int main() {
22769	FILE *f=fopen("conftestval", "w");
22770	if (!f) exit(1);
22771	fprintf(f, "%d\n", sizeof(time_t));
22772	exit(0);
22773      }
22774
22775_ACEOF
22776if ac_fn_c_try_run "$LINENO"; then :
22777
22778      size=`cat conftestval`
22779      rm -f conftestval
22780
22781      for type in $order; do
22782        actype="ac_cv_sizeof_`echo $type|sed 's/-/_/g'`"
22783        if test "$size" = "`eval echo \\$$actype`"; then
22784	  result="`echo $type|sed 's/-/ /g'`"
22785	  visible="`expr $size \* 8`bit (using $result)"
22786	  break
22787	fi
22788      done
22789      if test "$result" = ""; then
22790        result=unknown
22791	visible="`expr $size \* 8`bit (unknown type)"
22792      fi
22793
22794fi
22795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22796  conftest.$ac_objext conftest.beam conftest.$ac_ext
22797fi
22798
22799  fi
22800  i_cv_typeof_time_t=$result/$visible
22801
22802fi
22803
22804
22805  typeof_time_t=`echo $i_cv_typeof_time_t | sed s,/.*$,,`
22806  visible=`echo $i_cv_typeof_time_t | sed s,^.*/,,`
22807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $visible" >&5
22808$as_echo "$visible" >&6; }
22809
22810  case "$typeof_time_t" in
22811    long)
22812      timet_len="l"
22813      i_cv_signed_time_t=yes
22814      ;;
22815    int)
22816      timet_len=""
22817      i_cv_signed_time_t=yes
22818      ;;
22819    "long long")
22820      timet_len="ll"
22821      i_cv_signed_time_t=yes
22822      ;;
22823    "unsigned int")
22824      timet_len=""
22825      i_cv_signed_time_t=no
22826      ;;
22827    "unsigned long")
22828      timet_len="l"
22829      i_cv_signed_time_t=no
22830      ;;
22831    "unsigned long long")
22832      timet_len="ll"
22833      i_cv_signed_time_t=no
22834      ;;
22835    *)
22836      as_fn_error $? "Unsupported time_t type" "$LINENO" 5
22837      ;;
22838  esac
22839  if test $i_cv_signed_time_t = yes; then
22840
22841$as_echo "#define TIME_T_SIGNED /**/" >>confdefs.h
22842
22843    timet_d_fmt="$timet_len"d
22844  else
22845    timet_d_fmt="$timet_len"u
22846  fi
22847  timet_x_fmt="$timet_len"x
22848
22849
22850cat >>confdefs.h <<_ACEOF
22851#define PRIdTIME_T "$timet_d_fmt"
22852_ACEOF
22853
22854
22855cat >>confdefs.h <<_ACEOF
22856#define PRIxTIME_T "$timet_x_fmt"
22857_ACEOF
22858
22859
22860
22861
22862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use C99 static in array sizes" >&5
22863$as_echo_n "checking if we can use C99 static in array sizes... " >&6; }
22864if ${i_cv_c99_static_arrays+:} false; then :
22865  $as_echo_n "(cached) " >&6
22866else
22867
22868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22869/* end confdefs.h.  */
22870
22871      void foo(unsigned char arr[static 20]);
22872
22873int
22874main ()
22875{
22876
22877
22878  ;
22879  return 0;
22880}
22881_ACEOF
22882if ac_fn_c_try_compile "$LINENO"; then :
22883
22884      i_cv_c99_static_arrays=yes
22885
22886else
22887
22888      i_cv_c99_static_arrays=no
22889
22890fi
22891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892
22893fi
22894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_c99_static_arrays" >&5
22895$as_echo "$i_cv_c99_static_arrays" >&6; }
22896
22897  if test $i_cv_c99_static_arrays = yes; then
22898    static_value=static
22899  else
22900    static_value=
22901  fi
22902
22903cat >>confdefs.h <<_ACEOF
22904#define STATIC_ARRAY $static_value
22905_ACEOF
22906
22907
22908
22909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use C99-like flexible array members" >&5
22910$as_echo_n "checking if we can use C99-like flexible array members... " >&6; }
22911if ${i_cv_c99_flex_arrays+:} false; then :
22912  $as_echo_n "(cached) " >&6
22913else
22914
22915    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916/* end confdefs.h.  */
22917
22918      struct foo {
22919        int x;
22920        char y[];
22921      };
22922
22923int
22924main ()
22925{
22926
22927      struct foo foo;
22928
22929  ;
22930  return 0;
22931}
22932_ACEOF
22933if ac_fn_c_try_compile "$LINENO"; then :
22934
22935      i_cv_c99_flex_arrays=yes
22936
22937else
22938
22939      i_cv_c99_flex_arrays=no
22940
22941fi
22942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22943
22944fi
22945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_c99_flex_arrays" >&5
22946$as_echo "$i_cv_c99_flex_arrays" >&6; }
22947
22948  if test $i_cv_c99_flex_arrays = yes; then
22949    flexible_value=
22950  else
22951    flexible_value=1
22952  fi
22953
22954cat >>confdefs.h <<_ACEOF
22955#define FLEXIBLE_ARRAY_MEMBER $flexible_value
22956_ACEOF
22957
22958
22959
22960
22961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct iovec" >&5
22962$as_echo_n "checking for struct iovec... " >&6; }
22963  if ${i_cv_struct_iovec+:} false; then :
22964  $as_echo_n "(cached) " >&6
22965else
22966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22967/* end confdefs.h.  */
22968
22969  #include <sys/types.h>
22970  #include <sys/uio.h>
22971  #include <unistd.h>
22972int
22973main ()
22974{
22975struct iovec *iovec;
22976  ;
22977  return 0;
22978}
22979_ACEOF
22980if ac_fn_c_try_compile "$LINENO"; then :
22981  i_cv_struct_iovec=yes
22982else
22983  i_cv_struct_iovec=no
22984fi
22985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986fi
22987
22988
22989  if test $i_cv_struct_iovec = yes; then
22990
22991$as_echo "#define HAVE_STRUCT_IOVEC /**/" >>confdefs.h
22992
22993  fi
22994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_struct_iovec" >&5
22995$as_echo "$i_cv_struct_iovec" >&6; }
22996
22997
22998
22999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dev_t is struct" >&5
23000$as_echo_n "checking whether dev_t is struct... " >&6; }
23001if ${i_cv_dev_t_struct+:} false; then :
23002  $as_echo_n "(cached) " >&6
23003else
23004
23005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006/* end confdefs.h.  */
23007
23008      #include <sys/types.h>
23009      struct test { dev_t a; };
23010      static struct test t = { 0 };
23011
23012int
23013main ()
23014{
23015
23016  ;
23017  return 0;
23018}
23019_ACEOF
23020if ac_fn_c_try_compile "$LINENO"; then :
23021
23022      i_cv_dev_t_struct=no
23023
23024else
23025
23026      i_cv_dev_t_struct=yes
23027
23028fi
23029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030
23031fi
23032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_dev_t_struct" >&5
23033$as_echo "$i_cv_dev_t_struct" >&6; }
23034  if test $i_cv_dev_t_struct = yes; then
23035
23036$as_echo "#define DEV_T_STRUCT /**/" >>confdefs.h
23037
23038  fi
23039
23040
23041
23042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether RLIMIT_AS exists" >&5
23043$as_echo_n "checking whether RLIMIT_AS exists... " >&6; }
23044if ${i_cv_have_rlimit_as+:} false; then :
23045  $as_echo_n "(cached) " >&6
23046else
23047
23048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049/* end confdefs.h.  */
23050
23051      #include <sys/types.h>
23052      #include <sys/time.h>
23053      #include <sys/resource.h>
23054
23055int
23056main ()
23057{
23058
23059      struct rlimit r;
23060      getrlimit(RLIMIT_AS, &r);
23061
23062  ;
23063  return 0;
23064}
23065_ACEOF
23066if ac_fn_c_try_compile "$LINENO"; then :
23067
23068      i_cv_have_rlimit_as=yes
23069
23070else
23071
23072      i_cv_have_rlimit_as=no
23073
23074fi
23075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23076
23077fi
23078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_rlimit_as" >&5
23079$as_echo "$i_cv_have_rlimit_as" >&6; }
23080
23081  if test $i_cv_have_rlimit_as = yes; then
23082
23083$as_echo "#define HAVE_RLIMIT_AS /**/" >>confdefs.h
23084
23085  fi
23086
23087
23088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether RLIMIT_NPROC exists" >&5
23089$as_echo_n "checking whether RLIMIT_NPROC exists... " >&6; }
23090if ${i_cv_have_rlimit_nproc+:} false; then :
23091  $as_echo_n "(cached) " >&6
23092else
23093
23094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095/* end confdefs.h.  */
23096
23097      #include <sys/types.h>
23098      #include <sys/time.h>
23099      #include <sys/resource.h>
23100
23101int
23102main ()
23103{
23104
23105      struct rlimit r;
23106      getrlimit(RLIMIT_NPROC, &r);
23107
23108  ;
23109  return 0;
23110}
23111_ACEOF
23112if ac_fn_c_try_compile "$LINENO"; then :
23113
23114      i_cv_have_rlimit_nproc=yes
23115
23116else
23117
23118      i_cv_have_rlimit_nproc=no
23119
23120fi
23121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122
23123fi
23124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_rlimit_nproc" >&5
23125$as_echo "$i_cv_have_rlimit_nproc" >&6; }
23126
23127  if test $i_cv_have_rlimit_nproc = yes; then
23128
23129$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
23130
23131  fi
23132
23133
23134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether RLIMIT_CORE exists" >&5
23135$as_echo_n "checking whether RLIMIT_CORE exists... " >&6; }
23136if ${i_cv_have_rlimit_core+:} false; then :
23137  $as_echo_n "(cached) " >&6
23138else
23139
23140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141/* end confdefs.h.  */
23142
23143      #include <sys/types.h>
23144      #include <sys/time.h>
23145      #include <sys/resource.h>
23146
23147int
23148main ()
23149{
23150
23151      struct rlimit r;
23152      getrlimit(RLIMIT_CORE, &r);
23153
23154  ;
23155  return 0;
23156}
23157_ACEOF
23158if ac_fn_c_try_compile "$LINENO"; then :
23159
23160      i_cv_have_rlimit_core=yes
23161
23162else
23163
23164      i_cv_have_rlimit_core=no
23165
23166fi
23167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168
23169fi
23170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_rlimit_core" >&5
23171$as_echo "$i_cv_have_rlimit_core" >&6; }
23172
23173  if test $i_cv_have_rlimit_core = yes; then
23174
23175$as_echo "#define HAVE_RLIMIT_CORE /**/" >>confdefs.h
23176
23177  fi
23178
23179
23180
23181  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PR_SET_DUMPABLE exists" >&5
23182$as_echo_n "checking whether PR_SET_DUMPABLE exists... " >&6; }
23183if ${i_cv_have_pr_set_dumpable+:} false; then :
23184  $as_echo_n "(cached) " >&6
23185else
23186
23187    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188/* end confdefs.h.  */
23189
23190      #include <sys/prctl.h>
23191
23192int
23193main ()
23194{
23195
23196      prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
23197
23198  ;
23199  return 0;
23200}
23201_ACEOF
23202if ac_fn_c_try_link "$LINENO"; then :
23203
23204      i_cv_have_pr_set_dumpable=yes
23205
23206else
23207
23208      i_cv_have_pr_set_dumpable=no
23209
23210fi
23211rm -f core conftest.err conftest.$ac_objext \
23212    conftest$ac_exeext conftest.$ac_ext
23213
23214fi
23215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_pr_set_dumpable" >&5
23216$as_echo "$i_cv_have_pr_set_dumpable" >&6; }
23217  if test $i_cv_have_pr_set_dumpable = yes; then
23218
23219$as_echo "#define HAVE_PR_SET_DUMPABLE /**/" >>confdefs.h
23220
23221  fi
23222
23223
23224
23225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux compatible mremap()" >&5
23226$as_echo_n "checking Linux compatible mremap()... " >&6; }
23227if ${i_cv_have_linux_mremap+:} false; then :
23228  $as_echo_n "(cached) " >&6
23229else
23230
23231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23232/* end confdefs.h.  */
23233
23234      #include <unistd.h>
23235      #define __USE_GNU
23236      #include <sys/mman.h>
23237
23238int
23239main ()
23240{
23241
23242      mremap(0, 0, 0, MREMAP_MAYMOVE);
23243
23244  ;
23245  return 0;
23246}
23247_ACEOF
23248if ac_fn_c_try_link "$LINENO"; then :
23249
23250      i_cv_have_linux_mremap=yes
23251
23252else
23253
23254      i_cv_have_linux_mremap=no
23255
23256fi
23257rm -f core conftest.err conftest.$ac_objext \
23258    conftest$ac_exeext conftest.$ac_ext
23259
23260fi
23261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_linux_mremap" >&5
23262$as_echo "$i_cv_have_linux_mremap" >&6; }
23263  if test $i_cv_have_linux_mremap = yes; then
23264
23265$as_echo "#define HAVE_LINUX_MREMAP /**/" >>confdefs.h
23266
23267  fi
23268
23269
23270
23271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shared mmaps get updated by write()s" >&5
23272$as_echo_n "checking whether shared mmaps get updated by write()s... " >&6; }
23273if ${i_cv_mmap_plays_with_write+:} false; then :
23274  $as_echo_n "(cached) " >&6
23275else
23276
23277    if test "$cross_compiling" = yes; then :
23278  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23280as_fn_error $? "cannot run test program while cross compiling
23281See \`config.log' for more details" "$LINENO" 5; }
23282else
23283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23284/* end confdefs.h.  */
23285
23286      #include <stdio.h>
23287      #include <sys/types.h>
23288      #include <sys/stat.h>
23289      #include <unistd.h>
23290      #include <fcntl.h>
23291      #include <sys/mman.h>
23292      #include <string.h>
23293      int main() {
23294        /* return 0 if we're signed */
23295        int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC, 0600);
23296        void *mem;
23297        if (f == -1) {
23298          perror("open()");
23299          return 1;
23300        }
23301        unlink("conftest.mmap");
23302
23303        write(f, "1", 2);
23304        mem = mmap(NULL, 2, PROT_READ|PROT_WRITE, MAP_SHARED, f, 0);
23305        if (mem == MAP_FAILED) {
23306          perror("mmap()");
23307          return 1;
23308        }
23309        strcpy(mem, "2");
23310        msync(mem, 2, MS_SYNC);
23311        lseek(f, 0, SEEK_SET);
23312        write(f, "3", 2);
23313
23314        return strcmp(mem, "3") == 0 ? 0 : 1;
23315      }
23316
23317_ACEOF
23318if ac_fn_c_try_run "$LINENO"; then :
23319
23320      i_cv_mmap_plays_with_write=yes
23321
23322else
23323
23324      i_cv_mmap_plays_with_write=no
23325
23326fi
23327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23328  conftest.$ac_objext conftest.beam conftest.$ac_ext
23329fi
23330
23331
23332fi
23333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_mmap_plays_with_write" >&5
23334$as_echo "$i_cv_mmap_plays_with_write" >&6; }
23335  if test $i_cv_mmap_plays_with_write = no; then
23336
23337$as_echo "#define MMAP_CONFLICTS_WRITE /**/" >>confdefs.h
23338
23339  fi
23340
23341
23342
23343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fd passing works" >&5
23344$as_echo_n "checking whether fd passing works... " >&6; }
23345if ${i_cv_fd_passing+:} false; then :
23346  $as_echo_n "(cached) " >&6
23347else
23348
23349    for i in 1 2; do
23350      old_cflags="$CFLAGS"
23351      CFLAGS="$CFLAGS -I$srcdir/src/lib $srcdir/src/lib/fdpass.c"
23352      if test $i = 2; then
23353        CFLAGS="$CFLAGS -DBUGGY_CMSG_MACROS"
23354      fi
23355
23356      if test "$cross_compiling" = yes; then :
23357  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23359as_fn_error $? "cannot run test program while cross compiling
23360See \`config.log' for more details" "$LINENO" 5; }
23361else
23362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363/* end confdefs.h.  */
23364
23365        #include <sys/types.h>
23366        #include <sys/socket.h>
23367        #include <sys/wait.h>
23368        #include <sys/stat.h>
23369        #include <unistd.h>
23370        #include <fcntl.h>
23371        #include "fdpass.h"
23372
23373	static
23374        int nopen(void)
23375        {
23376  	      int i, n;
23377  	      struct stat sb;
23378  	      for (i = n = 0; i < 256; i++)
23379  		  if (fstat(i, &sb) == 0) n++;
23380              return n;
23381        }
23382        int main(void)
23383        {
23384  	      int fd[2], send_fd, recv_fd, status, n1, n2;
23385  	      struct stat st, st2;
23386  	      char data;
23387
23388  	      send_fd = creat("conftest.fdpass", 0600);
23389  	      if (send_fd == -1) return 2;
23390  	      unlink("conftest.fdpass");
23391  	      if (fstat(send_fd, &st) < 0) return 2;
23392  	      if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) return 2;
23393  	      n1 = nopen();
23394
23395  	      switch (fork()) {
23396  	      case -1:
23397  		      return 2;
23398  	      case 0:
23399  		      alarm(1);
23400  		      if (fd_send(fd[0], send_fd, &data, 1) != 1) return 2;
23401  		      return 0;
23402  	      default:
23403  		      alarm(2);
23404  		      if (wait(&status) == -1)
23405  			return 2;
23406  		      if (status != 0)
23407  			return status;
23408  		      if (fd_read(fd[1], &data, 1, &recv_fd) != 1) return 1;
23409  		      if (fstat(recv_fd, &st2) < 0) return 2;
23410  		      /* nopen check is for making sure that only a single fd
23411  		         was received */
23412  		      n2 = nopen();
23413  		      return st.st_ino == st2.st_ino && n2 == n1 + 1 ? 0 : 1;
23414  	      }
23415        }
23416
23417_ACEOF
23418if ac_fn_c_try_run "$LINENO"; then :
23419
23420        CFLAGS=$old_cflags
23421        if test $i = 2; then
23422  	i_cv_fd_passing=buggy_cmsg_macros
23423        else
23424          i_cv_fd_passing=yes
23425        fi
23426        break
23427
23428else
23429
23430                CFLAGS=$old_cflags
23431        i_cv_fd_passing=no
23432
23433fi
23434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23435  conftest.$ac_objext conftest.beam conftest.$ac_ext
23436fi
23437
23438    done
23439
23440fi
23441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_fd_passing" >&5
23442$as_echo "$i_cv_fd_passing" >&6; };
23443
23444  case "$host_os" in
23445  darwin[1-9].*)
23446  	if test "$i_cv_fd_passing" = "yes"; then
23447  		i_cv_fd_passing=buggy_cmsg_macros
23448  	fi
23449  	;;
23450  esac
23451
23452  if test $i_cv_fd_passing = buggy_cmsg_macros; then
23453
23454$as_echo "#define BUGGY_CMSG_MACROS /**/" >>confdefs.h
23455
23456  fi
23457  if test $i_cv_fd_passing = no; then
23458    as_fn_error $? "fd passing is required for Dovecot to work" "$LINENO" 5
23459  fi
23460
23461
23462
23463  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
23464$as_echo_n "checking for sendfile in -lsendfile... " >&6; }
23465if ${ac_cv_lib_sendfile_sendfile+:} false; then :
23466  $as_echo_n "(cached) " >&6
23467else
23468  ac_check_lib_save_LIBS=$LIBS
23469LIBS="-lsendfile  $LIBS"
23470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471/* end confdefs.h.  */
23472
23473/* Override any GCC internal prototype to avoid an error.
23474   Use char because int might match the return type of a GCC
23475   builtin and then its argument prototype would still apply.  */
23476#ifdef __cplusplus
23477extern "C"
23478#endif
23479char sendfile ();
23480int
23481main ()
23482{
23483return sendfile ();
23484  ;
23485  return 0;
23486}
23487_ACEOF
23488if ac_fn_c_try_link "$LINENO"; then :
23489  ac_cv_lib_sendfile_sendfile=yes
23490else
23491  ac_cv_lib_sendfile_sendfile=no
23492fi
23493rm -f core conftest.err conftest.$ac_objext \
23494    conftest$ac_exeext conftest.$ac_ext
23495LIBS=$ac_check_lib_save_LIBS
23496fi
23497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
23498$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; }
23499if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then :
23500
23501    LIBS="$LIBS -lsendfile"
23502
23503$as_echo "#define HAVE_SOLARIS_SENDFILE /**/" >>confdefs.h
23504
23505
23506else
23507
23508            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux compatible sendfile()" >&5
23509$as_echo_n "checking Linux compatible sendfile()... " >&6; }
23510if ${i_cv_have_linux_sendfile+:} false; then :
23511  $as_echo_n "(cached) " >&6
23512else
23513
23514      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515/* end confdefs.h.  */
23516
23517        #undef _FILE_OFFSET_BITS
23518        #include <sys/types.h>
23519        #include <sys/socket.h>
23520        #include <sys/sendfile.h>
23521
23522int
23523main ()
23524{
23525
23526        sendfile(0, 0, (void *) 0, 0);
23527
23528  ;
23529  return 0;
23530}
23531_ACEOF
23532if ac_fn_c_try_link "$LINENO"; then :
23533
23534        i_cv_have_linux_sendfile=yes
23535
23536else
23537
23538        i_cv_have_linux_sendfile=no
23539
23540fi
23541rm -f core conftest.err conftest.$ac_objext \
23542    conftest$ac_exeext conftest.$ac_ext
23543
23544fi
23545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_linux_sendfile" >&5
23546$as_echo "$i_cv_have_linux_sendfile" >&6; }
23547    if test $i_cv_have_linux_sendfile = yes; then
23548
23549$as_echo "#define HAVE_LINUX_SENDFILE /**/" >>confdefs.h
23550
23551    fi
23552
23553        { $as_echo "$as_me:${as_lineno-$LINENO}: checking FreeBSD compatible sendfile()" >&5
23554$as_echo_n "checking FreeBSD compatible sendfile()... " >&6; }
23555if ${i_cv_have_freebsd_sendfile+:} false; then :
23556  $as_echo_n "(cached) " >&6
23557else
23558
23559      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560/* end confdefs.h.  */
23561
23562        #include <sys/types.h>
23563        #include <sys/socket.h>
23564        #include <sys/uio.h>
23565
23566int
23567main ()
23568{
23569
23570        struct sf_hdtr hdtr;
23571        sendfile(0, 0, 0, 0, &hdtr, (void *) 0, 0);
23572
23573  ;
23574  return 0;
23575}
23576_ACEOF
23577if ac_fn_c_try_link "$LINENO"; then :
23578
23579        i_cv_have_freebsd_sendfile=yes
23580
23581else
23582
23583        i_cv_have_freebsd_sendfile=no
23584
23585fi
23586rm -f core conftest.err conftest.$ac_objext \
23587    conftest$ac_exeext conftest.$ac_ext
23588
23589fi
23590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_freebsd_sendfile" >&5
23591$as_echo "$i_cv_have_freebsd_sendfile" >&6; }
23592    if test $i_cv_have_freebsd_sendfile = yes; then
23593
23594$as_echo "#define HAVE_FREEBSD_SENDFILE /**/" >>confdefs.h
23595
23596    fi
23597
23598fi
23599
23600
23601
23602
23603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use _XPG6 macro for crypt()" >&5
23604$as_echo_n "checking if we should use _XPG6 macro for crypt()... " >&6; }
23605if ${i_cv_use_xpg6_crypt+:} false; then :
23606  $as_echo_n "(cached) " >&6
23607else
23608
23609    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23610/* end confdefs.h.  */
23611
23612      #define _XOPEN_SOURCE 4
23613      #define _XOPEN_SOURCE_EXTENDED 1
23614      #define _XOPEN_VERSION 4
23615      #define _XPG4_2
23616      #define _XPG6
23617      #include <unistd.h>
23618
23619int
23620main ()
23621{
23622
23623      crypt("a", "b");
23624
23625  ;
23626  return 0;
23627}
23628_ACEOF
23629if ac_fn_c_try_compile "$LINENO"; then :
23630
23631      i_cv_use_xpg6_crypt=yes
23632
23633else
23634
23635      i_cv_use_xpg6_crypt=no
23636
23637fi
23638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23639
23640fi
23641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_use_xpg6_crypt" >&5
23642$as_echo "$i_cv_use_xpg6_crypt" >&6; }
23643  if test $i_cv_use_xpg6_crypt = yes; then
23644
23645$as_echo "#define CRYPT_USE_XPG6 /**/" >>confdefs.h
23646
23647  fi
23648
23649
23650  ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23651if test "x$ac_cv_func_crypt" = xyes; then :
23652
23653else
23654
23655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23656$as_echo_n "checking for crypt in -lcrypt... " >&6; }
23657if ${ac_cv_lib_crypt_crypt+:} false; then :
23658  $as_echo_n "(cached) " >&6
23659else
23660  ac_check_lib_save_LIBS=$LIBS
23661LIBS="-lcrypt  $LIBS"
23662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663/* end confdefs.h.  */
23664
23665/* Override any GCC internal prototype to avoid an error.
23666   Use char because int might match the return type of a GCC
23667   builtin and then its argument prototype would still apply.  */
23668#ifdef __cplusplus
23669extern "C"
23670#endif
23671char crypt ();
23672int
23673main ()
23674{
23675return crypt ();
23676  ;
23677  return 0;
23678}
23679_ACEOF
23680if ac_fn_c_try_link "$LINENO"; then :
23681  ac_cv_lib_crypt_crypt=yes
23682else
23683  ac_cv_lib_crypt_crypt=no
23684fi
23685rm -f core conftest.err conftest.$ac_objext \
23686    conftest$ac_exeext conftest.$ac_ext
23687LIBS=$ac_check_lib_save_LIBS
23688fi
23689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23690$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23691if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23692
23693      AUTH_LIBS="-lcrypt $AUTH_LIBS"
23694      CRYPT_LIBS="-lcrypt"
23695
23696else
23697
23698      as_fn_error $? "crypt() wasn't found" "$LINENO" 5
23699
23700fi
23701
23702
23703fi
23704
23705
23706
23707
23708
23709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct stat has st_?tim timespec fields" >&5
23710$as_echo_n "checking if struct stat has st_?tim timespec fields... " >&6; }
23711if ${i_cv_have_st_tim_timespec+:} false; then :
23712  $as_echo_n "(cached) " >&6
23713else
23714
23715    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23716/* end confdefs.h.  */
23717
23718      #include <sys/types.h>
23719      #include <sys/stat.h>
23720      #include <unistd.h>
23721
23722int
23723main ()
23724{
23725
23726      struct stat st;
23727      unsigned long x = st.st_mtim.tv_nsec;
23728
23729      return 0;
23730
23731  ;
23732  return 0;
23733}
23734_ACEOF
23735if ac_fn_c_try_compile "$LINENO"; then :
23736
23737      i_cv_have_st_tim_timespec=yes
23738
23739else
23740
23741      i_cv_have_st_tim_timespec=no
23742
23743fi
23744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745
23746fi
23747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_st_tim_timespec" >&5
23748$as_echo "$i_cv_have_st_tim_timespec" >&6; }
23749  if test $i_cv_have_st_tim_timespec = yes; then
23750
23751$as_echo "#define HAVE_STAT_XTIM /**/" >>confdefs.h
23752
23753  fi
23754
23755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct stat has st_?timespec fields" >&5
23756$as_echo_n "checking if struct stat has st_?timespec fields... " >&6; }
23757if ${i_cv_have_st_timespec+:} false; then :
23758  $as_echo_n "(cached) " >&6
23759else
23760
23761    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762/* end confdefs.h.  */
23763
23764      #include <sys/types.h>
23765      #include <sys/stat.h>
23766      #include <unistd.h>
23767
23768int
23769main ()
23770{
23771
23772      struct stat st;
23773      unsigned long x = st.st_mtimespec.tv_nsec;
23774
23775      return 0;
23776
23777  ;
23778  return 0;
23779}
23780_ACEOF
23781if ac_fn_c_try_compile "$LINENO"; then :
23782
23783      i_cv_have_st_timespec=yes
23784
23785else
23786
23787      i_cv_have_st_timespec=no
23788
23789fi
23790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791
23792fi
23793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_st_timespec" >&5
23794$as_echo "$i_cv_have_st_timespec" >&6; }
23795  if test $i_cv_have_st_timespec = yes; then
23796
23797$as_echo "#define HAVE_STAT_XTIMESPEC /**/" >>confdefs.h
23798
23799  fi
23800
23801
23802
23803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statvfs.f_mntfromname exists" >&5
23804$as_echo_n "checking if statvfs.f_mntfromname exists... " >&6; }
23805if ${i_cv_have_statvfs_f_mntfromname+:} false; then :
23806  $as_echo_n "(cached) " >&6
23807else
23808
23809    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23810/* end confdefs.h.  */
23811
23812      #include <sys/types.h>
23813      #include <sys/statvfs.h>
23814
23815int
23816main ()
23817{
23818
23819      struct statvfs buf;
23820      char *p = buf.f_mntfromname;
23821
23822      statvfs(".", &buf);
23823
23824  ;
23825  return 0;
23826}
23827_ACEOF
23828if ac_fn_c_try_compile "$LINENO"; then :
23829
23830      i_cv_have_statvfs_f_mntfromname=yes
23831
23832else
23833
23834      i_cv_have_statvfs_f_mntfromname=no
23835
23836fi
23837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23838
23839fi
23840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_statvfs_f_mntfromname" >&5
23841$as_echo "$i_cv_have_statvfs_f_mntfromname" >&6; }
23842  if test $i_cv_have_statvfs_f_mntfromname = yes; then
23843
23844$as_echo "#define HAVE_STATVFS_MNTFROMNAME /**/" >>confdefs.h
23845
23846  fi
23847
23848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statfs.f_mntfromname exists" >&5
23849$as_echo_n "checking if statfs.f_mntfromname exists... " >&6; }
23850if ${i_cv_have_statfs_f_mntfromname+:} false; then :
23851  $as_echo_n "(cached) " >&6
23852else
23853
23854    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23855/* end confdefs.h.  */
23856
23857      #include <sys/param.h>
23858      #include <sys/mount.h>
23859
23860int
23861main ()
23862{
23863
23864      struct statfs buf;
23865      char *p = buf.f_mntfromname;
23866
23867      statfs(".", &buf);
23868
23869  ;
23870  return 0;
23871}
23872_ACEOF
23873if ac_fn_c_try_compile "$LINENO"; then :
23874
23875      i_cv_have_statfs_f_mntfromname=yes
23876
23877else
23878
23879      i_cv_have_statfs_f_mntfromname=no
23880
23881fi
23882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883
23884fi
23885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_statfs_f_mntfromname" >&5
23886$as_echo "$i_cv_have_statfs_f_mntfromname" >&6; }
23887  if test $i_cv_have_statfs_f_mntfromname = yes; then
23888
23889$as_echo "#define HAVE_STATFS_MNTFROMNAME /**/" >>confdefs.h
23890
23891  fi
23892
23893
23894
23895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct dqblk.dqb_curblocks exists" >&5
23896$as_echo_n "checking if struct dqblk.dqb_curblocks exists... " >&6; }
23897if ${i_cv_have_dqblk_dqb_curblocks+:} false; then :
23898  $as_echo_n "(cached) " >&6
23899else
23900
23901    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23902/* end confdefs.h.  */
23903
23904      #include <sys/types.h>
23905      #include "$srcdir/src/plugins/quota/quota-fs.h"
23906
23907int
23908main ()
23909{
23910
23911      struct dqblk dqblk;
23912      unsigned int x = dqblk.dqb_curblocks;
23913
23914  ;
23915  return 0;
23916}
23917_ACEOF
23918if ac_fn_c_try_compile "$LINENO"; then :
23919
23920      i_cv_have_dqblk_dqb_curblocks=yes
23921
23922else
23923
23924      i_cv_have_dqblk_dqb_curblocks=no
23925
23926fi
23927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928
23929fi
23930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_dqblk_dqb_curblocks" >&5
23931$as_echo "$i_cv_have_dqblk_dqb_curblocks" >&6; }
23932  if test $i_cv_have_dqblk_dqb_curblocks = yes; then
23933
23934$as_echo "#define HAVE_STRUCT_DQBLK_CURBLOCKS /**/" >>confdefs.h
23935
23936  fi
23937
23938
23939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct dqblk.dqb_curspace exists" >&5
23940$as_echo_n "checking if struct dqblk.dqb_curspace exists... " >&6; }
23941if ${i_cv_have_dqblk_dqb_curspace+:} false; then :
23942  $as_echo_n "(cached) " >&6
23943else
23944
23945    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23946/* end confdefs.h.  */
23947
23948      #include <sys/types.h>
23949      #include "$srcdir/src/plugins/quota/quota-fs.h"
23950
23951int
23952main ()
23953{
23954
23955      struct dqblk dqblk;
23956      unsigned int x = dqblk.dqb_curspace;
23957
23958  ;
23959  return 0;
23960}
23961_ACEOF
23962if ac_fn_c_try_compile "$LINENO"; then :
23963
23964      i_cv_have_dqblk_dqb_curspace=yes
23965
23966else
23967
23968      i_cv_have_dqblk_dqb_curspace=no
23969
23970fi
23971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23972
23973fi
23974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_dqblk_dqb_curspace" >&5
23975$as_echo "$i_cv_have_dqblk_dqb_curspace" >&6; }
23976  if test $i_cv_have_dqblk_dqb_curspace = yes; then
23977
23978$as_echo "#define HAVE_STRUCT_DQBLK_CURSPACE /**/" >>confdefs.h
23979
23980  fi
23981
23982
23983
23984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Q_QUOTACTL ioctl exists" >&5
23985$as_echo_n "checking if Q_QUOTACTL ioctl exists... " >&6; }
23986if ${i_cv_have_ioctl_q_quotactl+:} false; then :
23987  $as_echo_n "(cached) " >&6
23988else
23989
23990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23991/* end confdefs.h.  */
23992
23993      #include <sys/types.h>
23994      #include <sys/fs/ufs_quota.h>
23995
23996int
23997main ()
23998{
23999
24000      struct quotctl ctl;
24001      ioctl(0, Q_QUOTACTL, &ctl);
24002
24003  ;
24004  return 0;
24005}
24006_ACEOF
24007if ac_fn_c_try_compile "$LINENO"; then :
24008
24009      i_cv_have_ioctl_q_quotactl=yes
24010
24011else
24012
24013      i_cv_have_ioctl_q_quotactl=no
24014
24015fi
24016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24017
24018fi
24019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_ioctl_q_quotactl" >&5
24020$as_echo "$i_cv_have_ioctl_q_quotactl" >&6; }
24021
24022  if test $i_cv_have_ioctl_q_quotactl = yes; then
24023
24024$as_echo "#define HAVE_Q_QUOTACTL /**/" >>confdefs.h
24025
24026  fi
24027
24028
24029
24030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf()" >&5
24031$as_echo_n "checking for C99 vsnprintf()... " >&6; }
24032if ${i_cv_c99_vsnprintf+:} false; then :
24033  $as_echo_n "(cached) " >&6
24034else
24035
24036    if test "$cross_compiling" = yes; then :
24037  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24039as_fn_error $? "cannot run test program while cross compiling
24040See \`config.log' for more details" "$LINENO" 5; }
24041else
24042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043/* end confdefs.h.  */
24044
24045    #include <stdio.h>
24046    #include <stdarg.h>
24047    static int f(const char *fmt, ...) {
24048      va_list args;
24049      char buf[13];
24050      int ret;
24051
24052      va_start(args, fmt);
24053      ret = vsnprintf(buf, 11, fmt, args) != 12 || buf[11-1] != '\0';
24054      va_end(args);
24055      return ret;
24056    }
24057    int main() {
24058      return f("hello %s%d", "world", 1);
24059    }
24060_ACEOF
24061if ac_fn_c_try_run "$LINENO"; then :
24062  i_cv_c99_vsnprintf=yes
24063else
24064  i_cv_c99_vsnprintf=no
24065fi
24066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24067  conftest.$ac_objext conftest.beam conftest.$ac_ext
24068fi
24069
24070
24071fi
24072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_c99_vsnprintf" >&5
24073$as_echo "$i_cv_c99_vsnprintf" >&6; }
24074  if test $i_cv_c99_vsnprintf = no; then
24075
24076$as_echo "#define HAVE_OLD_VSNPRINTF /**/" >>confdefs.h
24077
24078  fi
24079
24080
24081
24082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
24083$as_echo_n "checking for an implementation of va_copy()... " >&6; }
24084if ${lib_cv_va_copy+:} false; then :
24085  $as_echo_n "(cached) " >&6
24086else
24087
24088          if test "$cross_compiling" = yes; then :
24089  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24091as_fn_error $? "cannot run test program while cross compiling
24092See \`config.log' for more details" "$LINENO" 5; }
24093else
24094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24095/* end confdefs.h.  */
24096
24097          #include <stdarg.h>
24098          #include <stdlib.h>
24099          void f (int i, ...) {
24100          va_list args1, args2;
24101          va_start (args1, i);
24102          va_copy (args2, args1);
24103          if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24104            exit (1);
24105          va_end (args1); va_end (args2);
24106          }
24107          int main() {
24108            f (0, 42);
24109            return 0;
24110          }
24111_ACEOF
24112if ac_fn_c_try_run "$LINENO"; then :
24113  lib_cv_va_copy=yes
24114else
24115  lib_cv_va_copy=no
24116fi
24117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24118  conftest.$ac_objext conftest.beam conftest.$ac_ext
24119fi
24120
24121
24122fi
24123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lib_cv_va_copy" >&5
24124$as_echo "$lib_cv_va_copy" >&6; }
24125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
24126$as_echo_n "checking for an implementation of __va_copy()... " >&6; }
24127if ${lib_cv___va_copy+:} false; then :
24128  $as_echo_n "(cached) " >&6
24129else
24130
24131          if test "$cross_compiling" = yes; then :
24132  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24134as_fn_error $? "cannot run test program while cross compiling
24135See \`config.log' for more details" "$LINENO" 5; }
24136else
24137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24138/* end confdefs.h.  */
24139
24140          #include <stdarg.h>
24141          #include <stdlib.h>
24142          void f (int i, ...) {
24143          va_list args1, args2;
24144          va_start (args1, i);
24145          __va_copy (args2, args1);
24146          if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24147            exit (1);
24148          va_end (args1); va_end (args2);
24149          }
24150          int main() {
24151            f (0, 42);
24152            return 0;
24153          }
24154_ACEOF
24155if ac_fn_c_try_run "$LINENO"; then :
24156  lib_cv___va_copy=yes
24157else
24158  lib_cv___va_copy=no
24159fi
24160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24161  conftest.$ac_objext conftest.beam conftest.$ac_ext
24162fi
24163
24164
24165fi
24166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lib_cv___va_copy" >&5
24167$as_echo "$lib_cv___va_copy" >&6; }
24168
24169  if test "x$lib_cv_va_copy" = "xyes"; then
24170    va_copy_func=va_copy
24171  else if test "x$lib_cv___va_copy" = "xyes"; then
24172    va_copy_func=__va_copy
24173  fi
24174  fi
24175
24176  if test -n "$va_copy_func"; then
24177
24178cat >>confdefs.h <<_ACEOF
24179#define VA_COPY $va_copy_func
24180_ACEOF
24181
24182  fi
24183
24184
24185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
24186$as_echo_n "checking whether va_lists can be copied by value... " >&6; }
24187if ${lib_cv_va_val_copy+:} false; then :
24188  $as_echo_n "(cached) " >&6
24189else
24190
24191          if test "$cross_compiling" = yes; then :
24192  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24194as_fn_error $? "cannot run test program while cross compiling
24195See \`config.log' for more details" "$LINENO" 5; }
24196else
24197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198/* end confdefs.h.  */
24199
24200          #include <stdarg.h>
24201          #include <stdlib.h>
24202          void f (int i, ...) {
24203          va_list args1, args2;
24204          va_start (args1, i);
24205          args2 = args1;
24206          if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24207            exit (1);
24208          va_end (args1); va_end (args2);
24209          }
24210          int main() {
24211            f (0, 42);
24212            return 0;
24213          }
24214_ACEOF
24215if ac_fn_c_try_run "$LINENO"; then :
24216  lib_cv_va_val_copy=yes
24217else
24218  lib_cv_va_val_copy=no
24219fi
24220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24221  conftest.$ac_objext conftest.beam conftest.$ac_ext
24222fi
24223
24224
24225fi
24226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lib_cv_va_val_copy" >&5
24227$as_echo "$lib_cv_va_val_copy" >&6; }
24228
24229  if test "x$lib_cv_va_val_copy" = "xno"; then
24230
24231$as_echo "#define VA_COPY_AS_ARRAY 1" >>confdefs.h
24232
24233  fi
24234
24235
24236
24237  have_modules=no
24238  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24239if test "x$ac_cv_func_dlopen" = xyes; then :
24240
24241    have_modules=yes
24242    MODULE_LIBS="-export-dynamic"
24243
24244else
24245
24246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24247$as_echo_n "checking for dlopen in -ldl... " >&6; }
24248if ${ac_cv_lib_dl_dlopen+:} false; then :
24249  $as_echo_n "(cached) " >&6
24250else
24251  ac_check_lib_save_LIBS=$LIBS
24252LIBS="-ldl  $LIBS"
24253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24254/* end confdefs.h.  */
24255
24256/* Override any GCC internal prototype to avoid an error.
24257   Use char because int might match the return type of a GCC
24258   builtin and then its argument prototype would still apply.  */
24259#ifdef __cplusplus
24260extern "C"
24261#endif
24262char dlopen ();
24263int
24264main ()
24265{
24266return dlopen ();
24267  ;
24268  return 0;
24269}
24270_ACEOF
24271if ac_fn_c_try_link "$LINENO"; then :
24272  ac_cv_lib_dl_dlopen=yes
24273else
24274  ac_cv_lib_dl_dlopen=no
24275fi
24276rm -f core conftest.err conftest.$ac_objext \
24277    conftest$ac_exeext conftest.$ac_ext
24278LIBS=$ac_check_lib_save_LIBS
24279fi
24280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24281$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24282if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24283
24284      have_modules=yes
24285      MODULE_LIBS="-export-dynamic -ldl"
24286      DLLIB=-ldl
24287
24288fi
24289
24290
24291fi
24292
24293
24294
24295
24296
24297
24298  if test $ac_cv_header_sys_vmount_h = yes; then
24299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reasonable mntctl buffer size" >&5
24300$as_echo_n "checking for reasonable mntctl buffer size... " >&6; }
24301    if test "$cross_compiling" = yes; then :
24302  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24304as_fn_error $? "cannot run test program while cross compiling
24305See \`config.log' for more details" "$LINENO" 5; }
24306else
24307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308/* end confdefs.h.  */
24309
24310      #include <stdio.h>
24311      #include <stdlib.h>
24312      #include <sys/vmount.h>
24313      int main() {
24314        int size,count; char *m;
24315        FILE *f=fopen("conftestval", "w");
24316        if (!f) exit(1);
24317        if ((count=mntctl(MCTL_QUERY,sizeof(size),&size))!=0 || !(m=malloc(size)) ||
24318            (count=mntctl(MCTL_QUERY,size,m))<=0) exit(1);
24319          fprintf(f, "%d\n",(size * (count + 5))/count & ~1); /* 5 mounts more */
24320          exit(0);
24321      }
24322
24323_ACEOF
24324if ac_fn_c_try_run "$LINENO"; then :
24325
24326      size=`cat conftestval`
24327      rm -f conftestval
24328
24329cat >>confdefs.h <<_ACEOF
24330#define STATIC_MTAB_SIZE $size
24331_ACEOF
24332
24333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $size" >&5
24334$as_echo "$size" >&6; }
24335
24336else
24337
24338      { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
24339$as_echo "default" >&6; }
24340
24341fi
24342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24343  conftest.$ac_objext conftest.beam conftest.$ac_ext
24344fi
24345
24346  fi
24347
24348
24349
24350  have_ssl=no
24351  build_dcrypt_openssl=no
24352
24353  if test $want_openssl != no && test $have_ssl = no; then
24354    if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists openssl 2>/dev/null; then
24355
24356pkg_failed=no
24357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
24358$as_echo_n "checking for SSL... " >&6; }
24359
24360if test -n "$SSL_CFLAGS"; then
24361    pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
24362 elif test -n "$PKG_CONFIG"; then
24363    if test -n "$PKG_CONFIG" && \
24364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
24365  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
24366  ac_status=$?
24367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24368  test $ac_status = 0; }; then
24369  pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
24370		      test "x$?" != "x0" && pkg_failed=yes
24371else
24372  pkg_failed=yes
24373fi
24374 else
24375    pkg_failed=untried
24376fi
24377if test -n "$SSL_LIBS"; then
24378    pkg_cv_SSL_LIBS="$SSL_LIBS"
24379 elif test -n "$PKG_CONFIG"; then
24380    if test -n "$PKG_CONFIG" && \
24381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
24382  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
24383  ac_status=$?
24384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24385  test $ac_status = 0; }; then
24386  pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
24387		      test "x$?" != "x0" && pkg_failed=yes
24388else
24389  pkg_failed=yes
24390fi
24391 else
24392    pkg_failed=untried
24393fi
24394
24395
24396
24397if test $pkg_failed = yes; then
24398   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399$as_echo "no" >&6; }
24400
24401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24402        _pkg_short_errors_supported=yes
24403else
24404        _pkg_short_errors_supported=no
24405fi
24406        if test $_pkg_short_errors_supported = yes; then
24407	        SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
24408        else
24409	        SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
24410        fi
24411	# Put the nasty error message in config.log where it belongs
24412	echo "$SSL_PKG_ERRORS" >&5
24413
24414	as_fn_error $? "Package requirements (openssl) were not met:
24415
24416$SSL_PKG_ERRORS
24417
24418Consider adjusting the PKG_CONFIG_PATH environment variable if you
24419installed software in a non-standard prefix.
24420
24421Alternatively, you may set the environment variables SSL_CFLAGS
24422and SSL_LIBS to avoid the need to call pkg-config.
24423See the pkg-config man page for more details." "$LINENO" 5
24424elif test $pkg_failed = untried; then
24425     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24426$as_echo "no" >&6; }
24427	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24429as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24430is in your PATH or set the PKG_CONFIG environment variable to the full
24431path to pkg-config.
24432
24433Alternatively, you may set the environment variables SSL_CFLAGS
24434and SSL_LIBS to avoid the need to call pkg-config.
24435See the pkg-config man page for more details.
24436
24437To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24438See \`config.log' for more details" "$LINENO" 5; }
24439else
24440	SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
24441	SSL_LIBS=$pkg_cv_SSL_LIBS
24442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24443$as_echo "yes" >&6; }
24444
24445fi
24446      CFLAGS="$CFLAGS $SSL_CFLAGS"
24447      have_openssl=yes
24448    else
24449      # openssl 0.9.8 wants -ldl and it's required if there's only .a lib
24450      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
24451$as_echo_n "checking for SSL_read in -lssl... " >&6; }
24452if ${ac_cv_lib_ssl_SSL_read+:} false; then :
24453  $as_echo_n "(cached) " >&6
24454else
24455  ac_check_lib_save_LIBS=$LIBS
24456LIBS="-lssl -lcrypto $DLLIB $LIBS"
24457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24458/* end confdefs.h.  */
24459
24460/* Override any GCC internal prototype to avoid an error.
24461   Use char because int might match the return type of a GCC
24462   builtin and then its argument prototype would still apply.  */
24463#ifdef __cplusplus
24464extern "C"
24465#endif
24466char SSL_read ();
24467int
24468main ()
24469{
24470return SSL_read ();
24471  ;
24472  return 0;
24473}
24474_ACEOF
24475if ac_fn_c_try_link "$LINENO"; then :
24476  ac_cv_lib_ssl_SSL_read=yes
24477else
24478  ac_cv_lib_ssl_SSL_read=no
24479fi
24480rm -f core conftest.err conftest.$ac_objext \
24481    conftest$ac_exeext conftest.$ac_ext
24482LIBS=$ac_check_lib_save_LIBS
24483fi
24484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
24485$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
24486if test "x$ac_cv_lib_ssl_SSL_read" = xyes; then :
24487
24488        for ac_header in openssl/ssl.h openssl/err.h
24489do :
24490  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24491ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24492if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24493  cat >>confdefs.h <<_ACEOF
24494#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24495_ACEOF
24496
24497          SSL_LIBS="-lssl -lcrypto $DLLIB"
24498
24499  	have_openssl=yes
24500
24501else
24502
24503  	if test $want_openssl = yes; then
24504  	  as_fn_error $? "Can't build with OpenSSL: openssl/ssl.h or openssl/err.h not found" "$LINENO" 5
24505  	fi
24506
24507fi
24508
24509done
24510
24511
24512else
24513
24514        if test $want_openssl = yes; then
24515          as_fn_error $? "Can't build with OpenSSL: libssl not found" "$LINENO" 5
24516        fi
24517
24518fi
24519
24520    fi
24521    if test "$have_openssl" = "yes"; then
24522
24523$as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
24524
24525      have_ssl="yes (OpenSSL)"
24526
24527      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL version is 1.0.1 or newer" >&5
24528$as_echo_n "checking if OpenSSL version is 1.0.1 or newer... " >&6; }
24529      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24530/* end confdefs.h.  */
24531
24532	#include <openssl/opensslv.h>
24533	#if OPENSSL_VERSION_NUMBER < 0x10001000L
24534	#error "fail-compile"
24535	#endif
24536int
24537main ()
24538{
24539 return 0;
24540  ;
24541  return 0;
24542}
24543_ACEOF
24544if ac_fn_c_try_compile "$LINENO"; then :
24545  ssl_version_ge_101=true
24546else
24547  ssl_version_ge_101=false
24548fi
24549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24550      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_version_ge_101" >&5
24551$as_echo "$ssl_version_ge_101" >&6; }
24552      if test $ssl_version_ge_101 = false; then
24553        as_fn_error $? "Found deprecated OpenSSL version, use 1.0.1 or newer" "$LINENO" 5
24554      fi
24555
24556      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL version is 1.0.2 or better" >&5
24557$as_echo_n "checking if OpenSSL version is 1.0.2 or better... " >&6; }
24558
24559      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560/* end confdefs.h.  */
24561
24562	#include <openssl/opensslv.h>
24563	#if OPENSSL_VERSION_NUMBER < 0x10002000L
24564	#error "fail-compile"
24565	#endif
24566int
24567main ()
24568{
24569 return 0;
24570  ;
24571  return 0;
24572}
24573_ACEOF
24574if ac_fn_c_try_compile "$LINENO"; then :
24575  ssl_version_ge_102=true
24576else
24577  ssl_version_ge_102=false
24578fi
24579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24580      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_version_ge_102" >&5
24581$as_echo "$ssl_version_ge_102" >&6; }
24582
24583      # SSL_clear_options introduced in openssl 0.9.8m but may be backported to
24584      # older versions in "enterprise" OS releases; originally implemented as a
24585      # macro but as a function in more recent openssl versions
24586      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSL_clear_options exists" >&5
24587$as_echo_n "checking whether SSL_clear_options exists... " >&6; }
24588if ${i_cv_have_ssl_clear_options+:} false; then :
24589  $as_echo_n "(cached) " >&6
24590else
24591
24592        old_LIBS=$LIBS
24593        LIBS="$LIBS -lssl"
24594        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595/* end confdefs.h.  */
24596
24597          #include <openssl/ssl.h>
24598
24599int
24600main ()
24601{
24602
24603          SSL *ssl;
24604          long options;
24605          SSL_clear_options(ssl, options);
24606
24607  ;
24608  return 0;
24609}
24610_ACEOF
24611if ac_fn_c_try_link "$LINENO"; then :
24612
24613          i_cv_have_ssl_clear_options=yes
24614
24615else
24616
24617          i_cv_have_ssl_clear_options=no
24618
24619fi
24620rm -f core conftest.err conftest.$ac_objext \
24621    conftest$ac_exeext conftest.$ac_ext
24622        LIBS=$old_LIBS
24623
24624fi
24625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_ssl_clear_options" >&5
24626$as_echo "$i_cv_have_ssl_clear_options" >&6; }
24627      if test $i_cv_have_ssl_clear_options = yes; then
24628
24629$as_echo "#define HAVE_SSL_CLEAR_OPTIONS /**/" >>confdefs.h
24630
24631      fi
24632
24633      # New style mem functions? Should be in v1.1+
24634      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CRYPTO_set_mem_functions has new style parameters" >&5
24635$as_echo_n "checking whether CRYPTO_set_mem_functions has new style parameters... " >&6; }
24636if ${i_cv_have_ssl_new_mem_funcs+:} false; then :
24637  $as_echo_n "(cached) " >&6
24638else
24639
24640        old_LIBS=$LIBS
24641        LIBS="$LIBS -lssl"
24642        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643/* end confdefs.h.  */
24644
24645          #include <openssl/ssl.h>
24646	  int CRYPTO_set_mem_functions(
24647		  void *(*m) (size_t, const char *, int),
24648		  void *(*r) (void *, size_t, const char *, int),
24649		  void (*f) (void *, const char *, int));
24650
24651int
24652main ()
24653{
24654
24655
24656  ;
24657  return 0;
24658}
24659_ACEOF
24660if ac_fn_c_try_link "$LINENO"; then :
24661
24662          i_cv_have_ssl_new_mem_funcs=yes
24663
24664else
24665
24666          i_cv_have_ssl_new_mem_funcs=no
24667
24668fi
24669rm -f core conftest.err conftest.$ac_objext \
24670    conftest$ac_exeext conftest.$ac_ext
24671        LIBS=$old_LIBS
24672
24673fi
24674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_ssl_new_mem_funcs" >&5
24675$as_echo "$i_cv_have_ssl_new_mem_funcs" >&6; }
24676      if test $i_cv_have_ssl_new_mem_funcs = yes; then
24677
24678$as_echo "#define HAVE_SSL_NEW_MEM_FUNCS /**/" >>confdefs.h
24679
24680      fi
24681
24682      # SSL_CTX_set1_curves_list is a macro so plain AC_CHECK_LIB fails here.
24683      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSL_CTX_set1_curves_list exists" >&5
24684$as_echo_n "checking whether SSL_CTX_set1_curves_list exists... " >&6; }
24685if ${i_cv_have_ssl_ctx_set1_curves_list+:} false; then :
24686  $as_echo_n "(cached) " >&6
24687else
24688
24689        old_LIBS=$LIBS
24690        LIBS="$LIBS -lssl"
24691        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24692/* end confdefs.h.  */
24693
24694          #include <openssl/ssl.h>
24695
24696int
24697main ()
24698{
24699
24700          SSL_CTX_set1_curves_list((void*)0, "");
24701
24702  ;
24703  return 0;
24704}
24705_ACEOF
24706if ac_fn_c_try_link "$LINENO"; then :
24707
24708          i_cv_have_ssl_ctx_set1_curves_list=yes
24709
24710else
24711
24712          i_cv_have_ssl_ctx_set1_curves_list=no
24713
24714fi
24715rm -f core conftest.err conftest.$ac_objext \
24716    conftest$ac_exeext conftest.$ac_ext
24717        LIBS=$old_LIBS
24718
24719fi
24720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_ssl_ctx_set1_curves_list" >&5
24721$as_echo "$i_cv_have_ssl_ctx_set1_curves_list" >&6; }
24722      if test $i_cv_have_ssl_ctx_set1_curves_list = yes; then
24723
24724$as_echo "#define HAVE_SSL_CTX_SET1_CURVES_LIST /**/" >>confdefs.h
24725
24726      fi
24727
24728      # SSL_CTX_set_min_proto_version is also a macro so AC_CHECK_LIB fails here.
24729      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSL_CTX_set_min_proto_version exists" >&5
24730$as_echo_n "checking whether SSL_CTX_set_min_proto_version exists... " >&6; }
24731if ${i_cv_have_ssl_ctx_set_min_proto_version+:} false; then :
24732  $as_echo_n "(cached) " >&6
24733else
24734
24735        old_LIBS=$LIBS
24736        LIBS="$LIBS -lssl"
24737        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738/* end confdefs.h.  */
24739
24740          #include <openssl/ssl.h>
24741
24742int
24743main ()
24744{
24745
24746          SSL_CTX_set_min_proto_version((void*)0, 0);
24747
24748  ;
24749  return 0;
24750}
24751_ACEOF
24752if ac_fn_c_try_link "$LINENO"; then :
24753
24754          i_cv_have_ssl_ctx_set_min_proto_version=yes
24755
24756else
24757
24758          i_cv_have_ssl_ctx_set_min_proto_version=no
24759
24760fi
24761rm -f core conftest.err conftest.$ac_objext \
24762    conftest$ac_exeext conftest.$ac_ext
24763        LIBS=$old_LIBS
24764
24765fi
24766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_ssl_ctx_set_min_proto_version" >&5
24767$as_echo "$i_cv_have_ssl_ctx_set_min_proto_version" >&6; }
24768      if test $i_cv_have_ssl_ctx_set_min_proto_version = yes; then
24769
24770$as_echo "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION /**/" >>confdefs.h
24771
24772      fi
24773
24774      # SSL_CTX_add0_chain_cert is also a macro so AC_CHECK_LIB fails here.
24775      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSL_CTX_add0_chain_cert exists" >&5
24776$as_echo_n "checking whether SSL_CTX_add0_chain_cert exists... " >&6; }
24777if ${i_cv_have_ssl_ctx_add0_chain_cert+:} false; then :
24778  $as_echo_n "(cached) " >&6
24779else
24780
24781        old_LIBS=$LIBS
24782        LIBS="$LIBS -lssl"
24783        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24784/* end confdefs.h.  */
24785
24786          #include <openssl/ssl.h>
24787
24788int
24789main ()
24790{
24791
24792          SSL_CTX_add0_chain_cert((void*)0, 0);
24793
24794  ;
24795  return 0;
24796}
24797_ACEOF
24798if ac_fn_c_try_link "$LINENO"; then :
24799
24800          i_cv_have_ssl_ctx_add0_chain_cert=yes
24801
24802else
24803
24804          i_cv_have_ssl_ctx_add0_chain_cert=no
24805
24806fi
24807rm -f core conftest.err conftest.$ac_objext \
24808    conftest$ac_exeext conftest.$ac_ext
24809        LIBS=$old_LIBS
24810
24811fi
24812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_ssl_ctx_add0_chain_cert" >&5
24813$as_echo "$i_cv_have_ssl_ctx_add0_chain_cert" >&6; }
24814      if test $i_cv_have_ssl_ctx_add0_chain_cert = yes; then
24815
24816$as_echo "#define HAVE_SSL_CTX_ADD0_CHAIN_CERT /**/" >>confdefs.h
24817
24818      fi
24819
24820      # SSL_CTX_set_current_cert is also a macro so AC_CHECK_LIB fails here.
24821      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSL_CTX_set_current_cert exists" >&5
24822$as_echo_n "checking whether SSL_CTX_set_current_cert exists... " >&6; }
24823if ${i_cv_have_ssl_ctx_set_current_cert+:} false; then :
24824  $as_echo_n "(cached) " >&6
24825else
24826
24827        old_LIBS=$LIBS
24828        LIBS="$LIBS -lssl"
24829        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24830/* end confdefs.h.  */
24831
24832          #include <openssl/ssl.h>
24833
24834int
24835main ()
24836{
24837
24838          SSL_CTX_set_current_cert((void*)0, 0);
24839
24840  ;
24841  return 0;
24842}
24843_ACEOF
24844if ac_fn_c_try_link "$LINENO"; then :
24845
24846          i_cv_have_ssl_ctx_set_current_cert=yes
24847
24848else
24849
24850          i_cv_have_ssl_ctx_set_current_cert=no
24851
24852fi
24853rm -f core conftest.err conftest.$ac_objext \
24854    conftest$ac_exeext conftest.$ac_ext
24855        LIBS=$old_LIBS
24856
24857fi
24858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_ssl_ctx_set_current_cert" >&5
24859$as_echo "$i_cv_have_ssl_ctx_set_current_cert" >&6; }
24860      if test $i_cv_have_ssl_ctx_set_current_cert = yes; then
24861
24862$as_echo "#define HAVE_SSL_CTX_SET_CURRENT_CERT /**/" >>confdefs.h
24863
24864      fi
24865
24866
24867      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CIPHER_get_kx_nid in -lssl" >&5
24868$as_echo_n "checking for SSL_CIPHER_get_kx_nid in -lssl... " >&6; }
24869if ${ac_cv_lib_ssl_SSL_CIPHER_get_kx_nid+:} false; then :
24870  $as_echo_n "(cached) " >&6
24871else
24872  ac_check_lib_save_LIBS=$LIBS
24873LIBS="-lssl $SSL_LIBS $LIBS"
24874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875/* end confdefs.h.  */
24876
24877/* Override any GCC internal prototype to avoid an error.
24878   Use char because int might match the return type of a GCC
24879   builtin and then its argument prototype would still apply.  */
24880#ifdef __cplusplus
24881extern "C"
24882#endif
24883char SSL_CIPHER_get_kx_nid ();
24884int
24885main ()
24886{
24887return SSL_CIPHER_get_kx_nid ();
24888  ;
24889  return 0;
24890}
24891_ACEOF
24892if ac_fn_c_try_link "$LINENO"; then :
24893  ac_cv_lib_ssl_SSL_CIPHER_get_kx_nid=yes
24894else
24895  ac_cv_lib_ssl_SSL_CIPHER_get_kx_nid=no
24896fi
24897rm -f core conftest.err conftest.$ac_objext \
24898    conftest$ac_exeext conftest.$ac_ext
24899LIBS=$ac_check_lib_save_LIBS
24900fi
24901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CIPHER_get_kx_nid" >&5
24902$as_echo "$ac_cv_lib_ssl_SSL_CIPHER_get_kx_nid" >&6; }
24903if test "x$ac_cv_lib_ssl_SSL_CIPHER_get_kx_nid" = xyes; then :
24904
24905
24906$as_echo "#define HAVE_SSL_CIPHER_get_kx_nid /**/" >>confdefs.h
24907
24908
24909fi
24910
24911
24912      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_remove_thread_state in -lssl" >&5
24913$as_echo_n "checking for ERR_remove_thread_state in -lssl... " >&6; }
24914if ${ac_cv_lib_ssl_ERR_remove_thread_state+:} false; then :
24915  $as_echo_n "(cached) " >&6
24916else
24917  ac_check_lib_save_LIBS=$LIBS
24918LIBS="-lssl $SSL_LIBS $LIBS"
24919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24920/* end confdefs.h.  */
24921
24922/* Override any GCC internal prototype to avoid an error.
24923   Use char because int might match the return type of a GCC
24924   builtin and then its argument prototype would still apply.  */
24925#ifdef __cplusplus
24926extern "C"
24927#endif
24928char ERR_remove_thread_state ();
24929int
24930main ()
24931{
24932return ERR_remove_thread_state ();
24933  ;
24934  return 0;
24935}
24936_ACEOF
24937if ac_fn_c_try_link "$LINENO"; then :
24938  ac_cv_lib_ssl_ERR_remove_thread_state=yes
24939else
24940  ac_cv_lib_ssl_ERR_remove_thread_state=no
24941fi
24942rm -f core conftest.err conftest.$ac_objext \
24943    conftest$ac_exeext conftest.$ac_ext
24944LIBS=$ac_check_lib_save_LIBS
24945fi
24946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ERR_remove_thread_state" >&5
24947$as_echo "$ac_cv_lib_ssl_ERR_remove_thread_state" >&6; }
24948if test "x$ac_cv_lib_ssl_ERR_remove_thread_state" = xyes; then :
24949
24950
24951$as_echo "#define HAVE_OPENSSL_ERR_REMOVE_THREAD_STATE /**/" >>confdefs.h
24952
24953
24954fi
24955
24956      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_thread_stop in -lssl" >&5
24957$as_echo_n "checking for OPENSSL_thread_stop in -lssl... " >&6; }
24958if ${ac_cv_lib_ssl_OPENSSL_thread_stop+:} false; then :
24959  $as_echo_n "(cached) " >&6
24960else
24961  ac_check_lib_save_LIBS=$LIBS
24962LIBS="-lssl $SSL_LIBS $LIBS"
24963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24964/* end confdefs.h.  */
24965
24966/* Override any GCC internal prototype to avoid an error.
24967   Use char because int might match the return type of a GCC
24968   builtin and then its argument prototype would still apply.  */
24969#ifdef __cplusplus
24970extern "C"
24971#endif
24972char OPENSSL_thread_stop ();
24973int
24974main ()
24975{
24976return OPENSSL_thread_stop ();
24977  ;
24978  return 0;
24979}
24980_ACEOF
24981if ac_fn_c_try_link "$LINENO"; then :
24982  ac_cv_lib_ssl_OPENSSL_thread_stop=yes
24983else
24984  ac_cv_lib_ssl_OPENSSL_thread_stop=no
24985fi
24986rm -f core conftest.err conftest.$ac_objext \
24987    conftest$ac_exeext conftest.$ac_ext
24988LIBS=$ac_check_lib_save_LIBS
24989fi
24990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_OPENSSL_thread_stop" >&5
24991$as_echo "$ac_cv_lib_ssl_OPENSSL_thread_stop" >&6; }
24992if test "x$ac_cv_lib_ssl_OPENSSL_thread_stop" = xyes; then :
24993
24994
24995$as_echo "#define HAVE_OPENSSL_AUTO_THREAD_DEINIT /**/" >>confdefs.h
24996
24997
24998fi
24999
25000      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_cleanup in -lssl" >&5
25001$as_echo_n "checking for OPENSSL_cleanup in -lssl... " >&6; }
25002if ${ac_cv_lib_ssl_OPENSSL_cleanup+:} false; then :
25003  $as_echo_n "(cached) " >&6
25004else
25005  ac_check_lib_save_LIBS=$LIBS
25006LIBS="-lssl $SSL_LIBS $LIBS"
25007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25008/* end confdefs.h.  */
25009
25010/* Override any GCC internal prototype to avoid an error.
25011   Use char because int might match the return type of a GCC
25012   builtin and then its argument prototype would still apply.  */
25013#ifdef __cplusplus
25014extern "C"
25015#endif
25016char OPENSSL_cleanup ();
25017int
25018main ()
25019{
25020return OPENSSL_cleanup ();
25021  ;
25022  return 0;
25023}
25024_ACEOF
25025if ac_fn_c_try_link "$LINENO"; then :
25026  ac_cv_lib_ssl_OPENSSL_cleanup=yes
25027else
25028  ac_cv_lib_ssl_OPENSSL_cleanup=no
25029fi
25030rm -f core conftest.err conftest.$ac_objext \
25031    conftest$ac_exeext conftest.$ac_ext
25032LIBS=$ac_check_lib_save_LIBS
25033fi
25034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_OPENSSL_cleanup" >&5
25035$as_echo "$ac_cv_lib_ssl_OPENSSL_cleanup" >&6; }
25036if test "x$ac_cv_lib_ssl_OPENSSL_cleanup" = xyes; then :
25037
25038
25039$as_echo "#define HAVE_OPENSSL_CLEANUP /**/" >>confdefs.h
25040
25041
25042fi
25043
25044      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_get_current_compression in -lssl" >&5
25045$as_echo_n "checking for SSL_get_current_compression in -lssl... " >&6; }
25046if ${ac_cv_lib_ssl_SSL_get_current_compression+:} false; then :
25047  $as_echo_n "(cached) " >&6
25048else
25049  ac_check_lib_save_LIBS=$LIBS
25050LIBS="-lssl $SSL_LIBS $LIBS"
25051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052/* end confdefs.h.  */
25053
25054/* Override any GCC internal prototype to avoid an error.
25055   Use char because int might match the return type of a GCC
25056   builtin and then its argument prototype would still apply.  */
25057#ifdef __cplusplus
25058extern "C"
25059#endif
25060char SSL_get_current_compression ();
25061int
25062main ()
25063{
25064return SSL_get_current_compression ();
25065  ;
25066  return 0;
25067}
25068_ACEOF
25069if ac_fn_c_try_link "$LINENO"; then :
25070  ac_cv_lib_ssl_SSL_get_current_compression=yes
25071else
25072  ac_cv_lib_ssl_SSL_get_current_compression=no
25073fi
25074rm -f core conftest.err conftest.$ac_objext \
25075    conftest$ac_exeext conftest.$ac_ext
25076LIBS=$ac_check_lib_save_LIBS
25077fi
25078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_get_current_compression" >&5
25079$as_echo "$ac_cv_lib_ssl_SSL_get_current_compression" >&6; }
25080if test "x$ac_cv_lib_ssl_SSL_get_current_compression" = xyes; then :
25081
25082
25083$as_echo "#define HAVE_SSL_COMPRESSION /**/" >>confdefs.h
25084
25085
25086fi
25087
25088      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_get_servername in -lssl" >&5
25089$as_echo_n "checking for SSL_get_servername in -lssl... " >&6; }
25090if ${ac_cv_lib_ssl_SSL_get_servername+:} false; then :
25091  $as_echo_n "(cached) " >&6
25092else
25093  ac_check_lib_save_LIBS=$LIBS
25094LIBS="-lssl $SSL_LIBS $LIBS"
25095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25096/* end confdefs.h.  */
25097
25098/* Override any GCC internal prototype to avoid an error.
25099   Use char because int might match the return type of a GCC
25100   builtin and then its argument prototype would still apply.  */
25101#ifdef __cplusplus
25102extern "C"
25103#endif
25104char SSL_get_servername ();
25105int
25106main ()
25107{
25108return SSL_get_servername ();
25109  ;
25110  return 0;
25111}
25112_ACEOF
25113if ac_fn_c_try_link "$LINENO"; then :
25114  ac_cv_lib_ssl_SSL_get_servername=yes
25115else
25116  ac_cv_lib_ssl_SSL_get_servername=no
25117fi
25118rm -f core conftest.err conftest.$ac_objext \
25119    conftest$ac_exeext conftest.$ac_ext
25120LIBS=$ac_check_lib_save_LIBS
25121fi
25122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_get_servername" >&5
25123$as_echo "$ac_cv_lib_ssl_SSL_get_servername" >&6; }
25124if test "x$ac_cv_lib_ssl_SSL_get_servername" = xyes; then :
25125
25126
25127$as_echo "#define HAVE_SSL_GET_SERVERNAME /**/" >>confdefs.h
25128
25129
25130fi
25131
25132      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_COMP_free_compression_methods in -lssl" >&5
25133$as_echo_n "checking for SSL_COMP_free_compression_methods in -lssl... " >&6; }
25134if ${ac_cv_lib_ssl_SSL_COMP_free_compression_methods+:} false; then :
25135  $as_echo_n "(cached) " >&6
25136else
25137  ac_check_lib_save_LIBS=$LIBS
25138LIBS="-lssl $SSL_LIBS $LIBS"
25139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25140/* end confdefs.h.  */
25141
25142/* Override any GCC internal prototype to avoid an error.
25143   Use char because int might match the return type of a GCC
25144   builtin and then its argument prototype would still apply.  */
25145#ifdef __cplusplus
25146extern "C"
25147#endif
25148char SSL_COMP_free_compression_methods ();
25149int
25150main ()
25151{
25152return SSL_COMP_free_compression_methods ();
25153  ;
25154  return 0;
25155}
25156_ACEOF
25157if ac_fn_c_try_link "$LINENO"; then :
25158  ac_cv_lib_ssl_SSL_COMP_free_compression_methods=yes
25159else
25160  ac_cv_lib_ssl_SSL_COMP_free_compression_methods=no
25161fi
25162rm -f core conftest.err conftest.$ac_objext \
25163    conftest$ac_exeext conftest.$ac_ext
25164LIBS=$ac_check_lib_save_LIBS
25165fi
25166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_COMP_free_compression_methods" >&5
25167$as_echo "$ac_cv_lib_ssl_SSL_COMP_free_compression_methods" >&6; }
25168if test "x$ac_cv_lib_ssl_SSL_COMP_free_compression_methods" = xyes; then :
25169
25170
25171$as_echo "#define HAVE_SSL_COMP_FREE_COMPRESSION_METHODS /**/" >>confdefs.h
25172
25173
25174fi
25175
25176      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_generate_key_ex in -lssl" >&5
25177$as_echo_n "checking for RSA_generate_key_ex in -lssl... " >&6; }
25178if ${ac_cv_lib_ssl_RSA_generate_key_ex+:} false; then :
25179  $as_echo_n "(cached) " >&6
25180else
25181  ac_check_lib_save_LIBS=$LIBS
25182LIBS="-lssl $SSL_LIBS $LIBS"
25183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184/* end confdefs.h.  */
25185
25186/* Override any GCC internal prototype to avoid an error.
25187   Use char because int might match the return type of a GCC
25188   builtin and then its argument prototype would still apply.  */
25189#ifdef __cplusplus
25190extern "C"
25191#endif
25192char RSA_generate_key_ex ();
25193int
25194main ()
25195{
25196return RSA_generate_key_ex ();
25197  ;
25198  return 0;
25199}
25200_ACEOF
25201if ac_fn_c_try_link "$LINENO"; then :
25202  ac_cv_lib_ssl_RSA_generate_key_ex=yes
25203else
25204  ac_cv_lib_ssl_RSA_generate_key_ex=no
25205fi
25206rm -f core conftest.err conftest.$ac_objext \
25207    conftest$ac_exeext conftest.$ac_ext
25208LIBS=$ac_check_lib_save_LIBS
25209fi
25210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_RSA_generate_key_ex" >&5
25211$as_echo "$ac_cv_lib_ssl_RSA_generate_key_ex" >&6; }
25212if test "x$ac_cv_lib_ssl_RSA_generate_key_ex" = xyes; then :
25213
25214
25215$as_echo "#define HAVE_RSA_GENERATE_KEY_EX /**/" >>confdefs.h
25216
25217
25218fi
25219
25220      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ASN1_STRING_get0_data in -lssl" >&5
25221$as_echo_n "checking for ASN1_STRING_get0_data in -lssl... " >&6; }
25222if ${ac_cv_lib_ssl_ASN1_STRING_get0_data+:} false; then :
25223  $as_echo_n "(cached) " >&6
25224else
25225  ac_check_lib_save_LIBS=$LIBS
25226LIBS="-lssl $SSL_LIBS $LIBS"
25227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25228/* end confdefs.h.  */
25229
25230/* Override any GCC internal prototype to avoid an error.
25231   Use char because int might match the return type of a GCC
25232   builtin and then its argument prototype would still apply.  */
25233#ifdef __cplusplus
25234extern "C"
25235#endif
25236char ASN1_STRING_get0_data ();
25237int
25238main ()
25239{
25240return ASN1_STRING_get0_data ();
25241  ;
25242  return 0;
25243}
25244_ACEOF
25245if ac_fn_c_try_link "$LINENO"; then :
25246  ac_cv_lib_ssl_ASN1_STRING_get0_data=yes
25247else
25248  ac_cv_lib_ssl_ASN1_STRING_get0_data=no
25249fi
25250rm -f core conftest.err conftest.$ac_objext \
25251    conftest$ac_exeext conftest.$ac_ext
25252LIBS=$ac_check_lib_save_LIBS
25253fi
25254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ASN1_STRING_get0_data" >&5
25255$as_echo "$ac_cv_lib_ssl_ASN1_STRING_get0_data" >&6; }
25256if test "x$ac_cv_lib_ssl_ASN1_STRING_get0_data" = xyes; then :
25257
25258
25259$as_echo "#define HAVE_ASN1_STRING_GET0_DATA /**/" >>confdefs.h
25260
25261
25262fi
25263
25264      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_new in -lssl" >&5
25265$as_echo_n "checking for HMAC_CTX_new in -lssl... " >&6; }
25266if ${ac_cv_lib_ssl_HMAC_CTX_new+:} false; then :
25267  $as_echo_n "(cached) " >&6
25268else
25269  ac_check_lib_save_LIBS=$LIBS
25270LIBS="-lssl $SSL_LIBS $LIBS"
25271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272/* end confdefs.h.  */
25273
25274/* Override any GCC internal prototype to avoid an error.
25275   Use char because int might match the return type of a GCC
25276   builtin and then its argument prototype would still apply.  */
25277#ifdef __cplusplus
25278extern "C"
25279#endif
25280char HMAC_CTX_new ();
25281int
25282main ()
25283{
25284return HMAC_CTX_new ();
25285  ;
25286  return 0;
25287}
25288_ACEOF
25289if ac_fn_c_try_link "$LINENO"; then :
25290  ac_cv_lib_ssl_HMAC_CTX_new=yes
25291else
25292  ac_cv_lib_ssl_HMAC_CTX_new=no
25293fi
25294rm -f core conftest.err conftest.$ac_objext \
25295    conftest$ac_exeext conftest.$ac_ext
25296LIBS=$ac_check_lib_save_LIBS
25297fi
25298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_HMAC_CTX_new" >&5
25299$as_echo "$ac_cv_lib_ssl_HMAC_CTX_new" >&6; }
25300if test "x$ac_cv_lib_ssl_HMAC_CTX_new" = xyes; then :
25301
25302
25303$as_echo "#define HAVE_HMAC_CTX_NEW /**/" >>confdefs.h
25304
25305
25306fi
25307
25308      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MD_CTX_new in -lssl" >&5
25309$as_echo_n "checking for EVP_MD_CTX_new in -lssl... " >&6; }
25310if ${ac_cv_lib_ssl_EVP_MD_CTX_new+:} false; then :
25311  $as_echo_n "(cached) " >&6
25312else
25313  ac_check_lib_save_LIBS=$LIBS
25314LIBS="-lssl $SSL_LIBS $LIBS"
25315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316/* end confdefs.h.  */
25317
25318/* Override any GCC internal prototype to avoid an error.
25319   Use char because int might match the return type of a GCC
25320   builtin and then its argument prototype would still apply.  */
25321#ifdef __cplusplus
25322extern "C"
25323#endif
25324char EVP_MD_CTX_new ();
25325int
25326main ()
25327{
25328return EVP_MD_CTX_new ();
25329  ;
25330  return 0;
25331}
25332_ACEOF
25333if ac_fn_c_try_link "$LINENO"; then :
25334  ac_cv_lib_ssl_EVP_MD_CTX_new=yes
25335else
25336  ac_cv_lib_ssl_EVP_MD_CTX_new=no
25337fi
25338rm -f core conftest.err conftest.$ac_objext \
25339    conftest$ac_exeext conftest.$ac_ext
25340LIBS=$ac_check_lib_save_LIBS
25341fi
25342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_MD_CTX_new" >&5
25343$as_echo "$ac_cv_lib_ssl_EVP_MD_CTX_new" >&6; }
25344if test "x$ac_cv_lib_ssl_EVP_MD_CTX_new" = xyes; then :
25345
25346
25347$as_echo "#define HAVE_EVP_MD_CTX_NEW /**/" >>confdefs.h
25348
25349
25350fi
25351
25352      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJ_length in -lssl" >&5
25353$as_echo_n "checking for OBJ_length in -lssl... " >&6; }
25354if ${ac_cv_lib_ssl_OBJ_length+:} false; then :
25355  $as_echo_n "(cached) " >&6
25356else
25357  ac_check_lib_save_LIBS=$LIBS
25358LIBS="-lssl $SSL_LIBS $LIBS"
25359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25360/* end confdefs.h.  */
25361
25362/* Override any GCC internal prototype to avoid an error.
25363   Use char because int might match the return type of a GCC
25364   builtin and then its argument prototype would still apply.  */
25365#ifdef __cplusplus
25366extern "C"
25367#endif
25368char OBJ_length ();
25369int
25370main ()
25371{
25372return OBJ_length ();
25373  ;
25374  return 0;
25375}
25376_ACEOF
25377if ac_fn_c_try_link "$LINENO"; then :
25378  ac_cv_lib_ssl_OBJ_length=yes
25379else
25380  ac_cv_lib_ssl_OBJ_length=no
25381fi
25382rm -f core conftest.err conftest.$ac_objext \
25383    conftest$ac_exeext conftest.$ac_ext
25384LIBS=$ac_check_lib_save_LIBS
25385fi
25386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_OBJ_length" >&5
25387$as_echo "$ac_cv_lib_ssl_OBJ_length" >&6; }
25388if test "x$ac_cv_lib_ssl_OBJ_length" = xyes; then :
25389
25390
25391$as_echo "#define HAVE_OBJ_LENGTH /**/" >>confdefs.h
25392
25393
25394fi
25395
25396      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_get0_RSA in -lssl" >&5
25397$as_echo_n "checking for EVP_PKEY_get0_RSA in -lssl... " >&6; }
25398if ${ac_cv_lib_ssl_EVP_PKEY_get0_RSA+:} false; then :
25399  $as_echo_n "(cached) " >&6
25400else
25401  ac_check_lib_save_LIBS=$LIBS
25402LIBS="-lssl $SSL_LIBS $LIBS"
25403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25404/* end confdefs.h.  */
25405
25406/* Override any GCC internal prototype to avoid an error.
25407   Use char because int might match the return type of a GCC
25408   builtin and then its argument prototype would still apply.  */
25409#ifdef __cplusplus
25410extern "C"
25411#endif
25412char EVP_PKEY_get0_RSA ();
25413int
25414main ()
25415{
25416return EVP_PKEY_get0_RSA ();
25417  ;
25418  return 0;
25419}
25420_ACEOF
25421if ac_fn_c_try_link "$LINENO"; then :
25422  ac_cv_lib_ssl_EVP_PKEY_get0_RSA=yes
25423else
25424  ac_cv_lib_ssl_EVP_PKEY_get0_RSA=no
25425fi
25426rm -f core conftest.err conftest.$ac_objext \
25427    conftest$ac_exeext conftest.$ac_ext
25428LIBS=$ac_check_lib_save_LIBS
25429fi
25430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_get0_RSA" >&5
25431$as_echo "$ac_cv_lib_ssl_EVP_PKEY_get0_RSA" >&6; }
25432if test "x$ac_cv_lib_ssl_EVP_PKEY_get0_RSA" = xyes; then :
25433
25434
25435$as_echo "#define HAVE_EVP_PKEY_get0 /**/" >>confdefs.h
25436
25437
25438fi
25439
25440      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ciphersuites in -lssl" >&5
25441$as_echo_n "checking for SSL_CTX_set_ciphersuites in -lssl... " >&6; }
25442if ${ac_cv_lib_ssl_SSL_CTX_set_ciphersuites+:} false; then :
25443  $as_echo_n "(cached) " >&6
25444else
25445  ac_check_lib_save_LIBS=$LIBS
25446LIBS="-lssl $SSL_LIBS $LIBS"
25447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25448/* end confdefs.h.  */
25449
25450/* Override any GCC internal prototype to avoid an error.
25451   Use char because int might match the return type of a GCC
25452   builtin and then its argument prototype would still apply.  */
25453#ifdef __cplusplus
25454extern "C"
25455#endif
25456char SSL_CTX_set_ciphersuites ();
25457int
25458main ()
25459{
25460return SSL_CTX_set_ciphersuites ();
25461  ;
25462  return 0;
25463}
25464_ACEOF
25465if ac_fn_c_try_link "$LINENO"; then :
25466  ac_cv_lib_ssl_SSL_CTX_set_ciphersuites=yes
25467else
25468  ac_cv_lib_ssl_SSL_CTX_set_ciphersuites=no
25469fi
25470rm -f core conftest.err conftest.$ac_objext \
25471    conftest$ac_exeext conftest.$ac_ext
25472LIBS=$ac_check_lib_save_LIBS
25473fi
25474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" >&5
25475$as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" >&6; }
25476if test "x$ac_cv_lib_ssl_SSL_CTX_set_ciphersuites" = xyes; then :
25477
25478
25479$as_echo "#define HAVE_SSL_CTX_SET_CIPHERSUITES /**/" >>confdefs.h
25480
25481
25482fi
25483
25484      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_secure_new in -lssl" >&5
25485$as_echo_n "checking for BN_secure_new in -lssl... " >&6; }
25486if ${ac_cv_lib_ssl_BN_secure_new+:} false; then :
25487  $as_echo_n "(cached) " >&6
25488else
25489  ac_check_lib_save_LIBS=$LIBS
25490LIBS="-lssl $SSL_LIBS $LIBS"
25491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25492/* end confdefs.h.  */
25493
25494/* Override any GCC internal prototype to avoid an error.
25495   Use char because int might match the return type of a GCC
25496   builtin and then its argument prototype would still apply.  */
25497#ifdef __cplusplus
25498extern "C"
25499#endif
25500char BN_secure_new ();
25501int
25502main ()
25503{
25504return BN_secure_new ();
25505  ;
25506  return 0;
25507}
25508_ACEOF
25509if ac_fn_c_try_link "$LINENO"; then :
25510  ac_cv_lib_ssl_BN_secure_new=yes
25511else
25512  ac_cv_lib_ssl_BN_secure_new=no
25513fi
25514rm -f core conftest.err conftest.$ac_objext \
25515    conftest$ac_exeext conftest.$ac_ext
25516LIBS=$ac_check_lib_save_LIBS
25517fi
25518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_BN_secure_new" >&5
25519$as_echo "$ac_cv_lib_ssl_BN_secure_new" >&6; }
25520if test "x$ac_cv_lib_ssl_BN_secure_new" = xyes; then :
25521
25522
25523$as_echo "#define HAVE_BN_SECURE_NEW /**/" >>confdefs.h
25524
25525
25526fi
25527
25528      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_set0_key in -lssl" >&5
25529$as_echo_n "checking for RSA_set0_key in -lssl... " >&6; }
25530if ${ac_cv_lib_ssl_RSA_set0_key+:} false; then :
25531  $as_echo_n "(cached) " >&6
25532else
25533  ac_check_lib_save_LIBS=$LIBS
25534LIBS="-lssl $SSL_LIBS $LIBS"
25535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25536/* end confdefs.h.  */
25537
25538/* Override any GCC internal prototype to avoid an error.
25539   Use char because int might match the return type of a GCC
25540   builtin and then its argument prototype would still apply.  */
25541#ifdef __cplusplus
25542extern "C"
25543#endif
25544char RSA_set0_key ();
25545int
25546main ()
25547{
25548return RSA_set0_key ();
25549  ;
25550  return 0;
25551}
25552_ACEOF
25553if ac_fn_c_try_link "$LINENO"; then :
25554  ac_cv_lib_ssl_RSA_set0_key=yes
25555else
25556  ac_cv_lib_ssl_RSA_set0_key=no
25557fi
25558rm -f core conftest.err conftest.$ac_objext \
25559    conftest$ac_exeext conftest.$ac_ext
25560LIBS=$ac_check_lib_save_LIBS
25561fi
25562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_RSA_set0_key" >&5
25563$as_echo "$ac_cv_lib_ssl_RSA_set0_key" >&6; }
25564if test "x$ac_cv_lib_ssl_RSA_set0_key" = xyes; then :
25565
25566
25567$as_echo "#define HAVE_RSA_SET0_KEY /**/" >>confdefs.h
25568
25569
25570fi
25571
25572      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_set0_factors in -lssl" >&5
25573$as_echo_n "checking for RSA_set0_factors in -lssl... " >&6; }
25574if ${ac_cv_lib_ssl_RSA_set0_factors+:} false; then :
25575  $as_echo_n "(cached) " >&6
25576else
25577  ac_check_lib_save_LIBS=$LIBS
25578LIBS="-lssl $SSL_LIBS $LIBS"
25579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25580/* end confdefs.h.  */
25581
25582/* Override any GCC internal prototype to avoid an error.
25583   Use char because int might match the return type of a GCC
25584   builtin and then its argument prototype would still apply.  */
25585#ifdef __cplusplus
25586extern "C"
25587#endif
25588char RSA_set0_factors ();
25589int
25590main ()
25591{
25592return RSA_set0_factors ();
25593  ;
25594  return 0;
25595}
25596_ACEOF
25597if ac_fn_c_try_link "$LINENO"; then :
25598  ac_cv_lib_ssl_RSA_set0_factors=yes
25599else
25600  ac_cv_lib_ssl_RSA_set0_factors=no
25601fi
25602rm -f core conftest.err conftest.$ac_objext \
25603    conftest$ac_exeext conftest.$ac_ext
25604LIBS=$ac_check_lib_save_LIBS
25605fi
25606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_RSA_set0_factors" >&5
25607$as_echo "$ac_cv_lib_ssl_RSA_set0_factors" >&6; }
25608if test "x$ac_cv_lib_ssl_RSA_set0_factors" = xyes; then :
25609
25610
25611$as_echo "#define HAVE_RSA_SET0_FACTORS /**/" >>confdefs.h
25612
25613
25614fi
25615
25616      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_set0_crt_params in -lssl" >&5
25617$as_echo_n "checking for RSA_set0_crt_params in -lssl... " >&6; }
25618if ${ac_cv_lib_ssl_RSA_set0_crt_params+:} false; then :
25619  $as_echo_n "(cached) " >&6
25620else
25621  ac_check_lib_save_LIBS=$LIBS
25622LIBS="-lssl $SSL_LIBS $LIBS"
25623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624/* end confdefs.h.  */
25625
25626/* Override any GCC internal prototype to avoid an error.
25627   Use char because int might match the return type of a GCC
25628   builtin and then its argument prototype would still apply.  */
25629#ifdef __cplusplus
25630extern "C"
25631#endif
25632char RSA_set0_crt_params ();
25633int
25634main ()
25635{
25636return RSA_set0_crt_params ();
25637  ;
25638  return 0;
25639}
25640_ACEOF
25641if ac_fn_c_try_link "$LINENO"; then :
25642  ac_cv_lib_ssl_RSA_set0_crt_params=yes
25643else
25644  ac_cv_lib_ssl_RSA_set0_crt_params=no
25645fi
25646rm -f core conftest.err conftest.$ac_objext \
25647    conftest$ac_exeext conftest.$ac_ext
25648LIBS=$ac_check_lib_save_LIBS
25649fi
25650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_RSA_set0_crt_params" >&5
25651$as_echo "$ac_cv_lib_ssl_RSA_set0_crt_params" >&6; }
25652if test "x$ac_cv_lib_ssl_RSA_set0_crt_params" = xyes; then :
25653
25654
25655$as_echo "#define HAVE_RSA_SET0_CRT_PARAMS /**/" >>confdefs.h
25656
25657
25658fi
25659
25660      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA_SIG_get0 in -lssl" >&5
25661$as_echo_n "checking for ECDSA_SIG_get0 in -lssl... " >&6; }
25662if ${ac_cv_lib_ssl_ECDSA_SIG_get0+:} false; then :
25663  $as_echo_n "(cached) " >&6
25664else
25665  ac_check_lib_save_LIBS=$LIBS
25666LIBS="-lssl $SSL_LIBS $LIBS"
25667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25668/* end confdefs.h.  */
25669
25670/* Override any GCC internal prototype to avoid an error.
25671   Use char because int might match the return type of a GCC
25672   builtin and then its argument prototype would still apply.  */
25673#ifdef __cplusplus
25674extern "C"
25675#endif
25676char ECDSA_SIG_get0 ();
25677int
25678main ()
25679{
25680return ECDSA_SIG_get0 ();
25681  ;
25682  return 0;
25683}
25684_ACEOF
25685if ac_fn_c_try_link "$LINENO"; then :
25686  ac_cv_lib_ssl_ECDSA_SIG_get0=yes
25687else
25688  ac_cv_lib_ssl_ECDSA_SIG_get0=no
25689fi
25690rm -f core conftest.err conftest.$ac_objext \
25691    conftest$ac_exeext conftest.$ac_ext
25692LIBS=$ac_check_lib_save_LIBS
25693fi
25694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ECDSA_SIG_get0" >&5
25695$as_echo "$ac_cv_lib_ssl_ECDSA_SIG_get0" >&6; }
25696if test "x$ac_cv_lib_ssl_ECDSA_SIG_get0" = xyes; then :
25697
25698
25699$as_echo "#define HAVE_ECDSA_SIG_GET0 /**/" >>confdefs.h
25700
25701
25702fi
25703
25704      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA_SIG_set0 in -lssl" >&5
25705$as_echo_n "checking for ECDSA_SIG_set0 in -lssl... " >&6; }
25706if ${ac_cv_lib_ssl_ECDSA_SIG_set0+:} false; then :
25707  $as_echo_n "(cached) " >&6
25708else
25709  ac_check_lib_save_LIBS=$LIBS
25710LIBS="-lssl $SSL_LIBS $LIBS"
25711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712/* end confdefs.h.  */
25713
25714/* Override any GCC internal prototype to avoid an error.
25715   Use char because int might match the return type of a GCC
25716   builtin and then its argument prototype would still apply.  */
25717#ifdef __cplusplus
25718extern "C"
25719#endif
25720char ECDSA_SIG_set0 ();
25721int
25722main ()
25723{
25724return ECDSA_SIG_set0 ();
25725  ;
25726  return 0;
25727}
25728_ACEOF
25729if ac_fn_c_try_link "$LINENO"; then :
25730  ac_cv_lib_ssl_ECDSA_SIG_set0=yes
25731else
25732  ac_cv_lib_ssl_ECDSA_SIG_set0=no
25733fi
25734rm -f core conftest.err conftest.$ac_objext \
25735    conftest$ac_exeext conftest.$ac_ext
25736LIBS=$ac_check_lib_save_LIBS
25737fi
25738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ECDSA_SIG_set0" >&5
25739$as_echo "$ac_cv_lib_ssl_ECDSA_SIG_set0" >&6; }
25740if test "x$ac_cv_lib_ssl_ECDSA_SIG_set0" = xyes; then :
25741
25742
25743$as_echo "#define HAVE_ECDSA_SIG_SET0 /**/" >>confdefs.h
25744
25745
25746fi
25747
25748      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EC_GROUP_order_bits in -lssl" >&5
25749$as_echo_n "checking for EC_GROUP_order_bits in -lssl... " >&6; }
25750if ${ac_cv_lib_ssl_EC_GROUP_order_bits+:} false; then :
25751  $as_echo_n "(cached) " >&6
25752else
25753  ac_check_lib_save_LIBS=$LIBS
25754LIBS="-lssl $SSL_LIBS $LIBS"
25755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25756/* end confdefs.h.  */
25757
25758/* Override any GCC internal prototype to avoid an error.
25759   Use char because int might match the return type of a GCC
25760   builtin and then its argument prototype would still apply.  */
25761#ifdef __cplusplus
25762extern "C"
25763#endif
25764char EC_GROUP_order_bits ();
25765int
25766main ()
25767{
25768return EC_GROUP_order_bits ();
25769  ;
25770  return 0;
25771}
25772_ACEOF
25773if ac_fn_c_try_link "$LINENO"; then :
25774  ac_cv_lib_ssl_EC_GROUP_order_bits=yes
25775else
25776  ac_cv_lib_ssl_EC_GROUP_order_bits=no
25777fi
25778rm -f core conftest.err conftest.$ac_objext \
25779    conftest$ac_exeext conftest.$ac_ext
25780LIBS=$ac_check_lib_save_LIBS
25781fi
25782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EC_GROUP_order_bits" >&5
25783$as_echo "$ac_cv_lib_ssl_EC_GROUP_order_bits" >&6; }
25784if test "x$ac_cv_lib_ssl_EC_GROUP_order_bits" = xyes; then :
25785
25786
25787$as_echo "#define HAVE_EC_GROUP_order_bits /**/" >>confdefs.h
25788
25789
25790fi
25791
25792      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_check_host in -lssl" >&5
25793$as_echo_n "checking for X509_check_host in -lssl... " >&6; }
25794if ${ac_cv_lib_ssl_X509_check_host+:} false; then :
25795  $as_echo_n "(cached) " >&6
25796else
25797  ac_check_lib_save_LIBS=$LIBS
25798LIBS="-lssl $SSL_LIBS $LIBS"
25799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800/* end confdefs.h.  */
25801
25802/* Override any GCC internal prototype to avoid an error.
25803   Use char because int might match the return type of a GCC
25804   builtin and then its argument prototype would still apply.  */
25805#ifdef __cplusplus
25806extern "C"
25807#endif
25808char X509_check_host ();
25809int
25810main ()
25811{
25812return X509_check_host ();
25813  ;
25814  return 0;
25815}
25816_ACEOF
25817if ac_fn_c_try_link "$LINENO"; then :
25818  ac_cv_lib_ssl_X509_check_host=yes
25819else
25820  ac_cv_lib_ssl_X509_check_host=no
25821fi
25822rm -f core conftest.err conftest.$ac_objext \
25823    conftest$ac_exeext conftest.$ac_ext
25824LIBS=$ac_check_lib_save_LIBS
25825fi
25826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_X509_check_host" >&5
25827$as_echo "$ac_cv_lib_ssl_X509_check_host" >&6; }
25828if test "x$ac_cv_lib_ssl_X509_check_host" = xyes; then :
25829
25830
25831$as_echo "#define HAVE_X509_CHECK_HOST /**/" >>confdefs.h
25832
25833
25834fi
25835
25836      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_check_ip in -lssl" >&5
25837$as_echo_n "checking for X509_check_ip in -lssl... " >&6; }
25838if ${ac_cv_lib_ssl_X509_check_ip+:} false; then :
25839  $as_echo_n "(cached) " >&6
25840else
25841  ac_check_lib_save_LIBS=$LIBS
25842LIBS="-lssl $SSL_LIBS $LIBS"
25843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25844/* end confdefs.h.  */
25845
25846/* Override any GCC internal prototype to avoid an error.
25847   Use char because int might match the return type of a GCC
25848   builtin and then its argument prototype would still apply.  */
25849#ifdef __cplusplus
25850extern "C"
25851#endif
25852char X509_check_ip ();
25853int
25854main ()
25855{
25856return X509_check_ip ();
25857  ;
25858  return 0;
25859}
25860_ACEOF
25861if ac_fn_c_try_link "$LINENO"; then :
25862  ac_cv_lib_ssl_X509_check_ip=yes
25863else
25864  ac_cv_lib_ssl_X509_check_ip=no
25865fi
25866rm -f core conftest.err conftest.$ac_objext \
25867    conftest$ac_exeext conftest.$ac_ext
25868LIBS=$ac_check_lib_save_LIBS
25869fi
25870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_X509_check_ip" >&5
25871$as_echo "$ac_cv_lib_ssl_X509_check_ip" >&6; }
25872if test "x$ac_cv_lib_ssl_X509_check_ip" = xyes; then :
25873
25874
25875$as_echo "#define HAVE_X509_CHECK_IP /**/" >>confdefs.h
25876
25877
25878fi
25879
25880      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_check_ip_asc in -lssl" >&5
25881$as_echo_n "checking for X509_check_ip_asc in -lssl... " >&6; }
25882if ${ac_cv_lib_ssl_X509_check_ip_asc+:} false; then :
25883  $as_echo_n "(cached) " >&6
25884else
25885  ac_check_lib_save_LIBS=$LIBS
25886LIBS="-lssl $SSL_LIBS $LIBS"
25887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25888/* end confdefs.h.  */
25889
25890/* Override any GCC internal prototype to avoid an error.
25891   Use char because int might match the return type of a GCC
25892   builtin and then its argument prototype would still apply.  */
25893#ifdef __cplusplus
25894extern "C"
25895#endif
25896char X509_check_ip_asc ();
25897int
25898main ()
25899{
25900return X509_check_ip_asc ();
25901  ;
25902  return 0;
25903}
25904_ACEOF
25905if ac_fn_c_try_link "$LINENO"; then :
25906  ac_cv_lib_ssl_X509_check_ip_asc=yes
25907else
25908  ac_cv_lib_ssl_X509_check_ip_asc=no
25909fi
25910rm -f core conftest.err conftest.$ac_objext \
25911    conftest$ac_exeext conftest.$ac_ext
25912LIBS=$ac_check_lib_save_LIBS
25913fi
25914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_X509_check_ip_asc" >&5
25915$as_echo "$ac_cv_lib_ssl_X509_check_ip_asc" >&6; }
25916if test "x$ac_cv_lib_ssl_X509_check_ip_asc" = xyes; then :
25917
25918
25919$as_echo "#define HAVE_X509_CHECK_IP_ASC /**/" >>confdefs.h
25920
25921
25922fi
25923
25924      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_CTX_new_id in -lssl" >&5
25925$as_echo_n "checking for EVP_PKEY_CTX_new_id in -lssl... " >&6; }
25926if ${ac_cv_lib_ssl_EVP_PKEY_CTX_new_id+:} false; then :
25927  $as_echo_n "(cached) " >&6
25928else
25929  ac_check_lib_save_LIBS=$LIBS
25930LIBS="-lssl $SSL_LIBS $LIBS"
25931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25932/* end confdefs.h.  */
25933
25934/* Override any GCC internal prototype to avoid an error.
25935   Use char because int might match the return type of a GCC
25936   builtin and then its argument prototype would still apply.  */
25937#ifdef __cplusplus
25938extern "C"
25939#endif
25940char EVP_PKEY_CTX_new_id ();
25941int
25942main ()
25943{
25944return EVP_PKEY_CTX_new_id ();
25945  ;
25946  return 0;
25947}
25948_ACEOF
25949if ac_fn_c_try_link "$LINENO"; then :
25950  ac_cv_lib_ssl_EVP_PKEY_CTX_new_id=yes
25951else
25952  ac_cv_lib_ssl_EVP_PKEY_CTX_new_id=no
25953fi
25954rm -f core conftest.err conftest.$ac_objext \
25955    conftest$ac_exeext conftest.$ac_ext
25956LIBS=$ac_check_lib_save_LIBS
25957fi
25958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_CTX_new_id" >&5
25959$as_echo "$ac_cv_lib_ssl_EVP_PKEY_CTX_new_id" >&6; }
25960if test "x$ac_cv_lib_ssl_EVP_PKEY_CTX_new_id" = xyes; then :
25961  have_evp_pkey_ctx_new_id="yes"
25962fi
25963
25964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EC_KEY_new in -lssl" >&5
25965$as_echo_n "checking for EC_KEY_new in -lssl... " >&6; }
25966if ${ac_cv_lib_ssl_EC_KEY_new+:} false; then :
25967  $as_echo_n "(cached) " >&6
25968else
25969  ac_check_lib_save_LIBS=$LIBS
25970LIBS="-lssl $SSL_LIBS $LIBS"
25971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25972/* end confdefs.h.  */
25973
25974/* Override any GCC internal prototype to avoid an error.
25975   Use char because int might match the return type of a GCC
25976   builtin and then its argument prototype would still apply.  */
25977#ifdef __cplusplus
25978extern "C"
25979#endif
25980char EC_KEY_new ();
25981int
25982main ()
25983{
25984return EC_KEY_new ();
25985  ;
25986  return 0;
25987}
25988_ACEOF
25989if ac_fn_c_try_link "$LINENO"; then :
25990  ac_cv_lib_ssl_EC_KEY_new=yes
25991else
25992  ac_cv_lib_ssl_EC_KEY_new=no
25993fi
25994rm -f core conftest.err conftest.$ac_objext \
25995    conftest$ac_exeext conftest.$ac_ext
25996LIBS=$ac_check_lib_save_LIBS
25997fi
25998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EC_KEY_new" >&5
25999$as_echo "$ac_cv_lib_ssl_EC_KEY_new" >&6; }
26000if test "x$ac_cv_lib_ssl_EC_KEY_new" = xyes; then :
26001  have_ec_key_new="yes"
26002fi
26003
26004      if test "$have_evp_pkey_ctx_new_id" = "yes" && test "$have_ec_key_new" = "yes"; then
26005        build_dcrypt_openssl="yes"
26006      else
26007        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ECC support in OpenSSL - not enabling dcrypt" >&5
26008$as_echo "$as_me: WARNING: No ECC support in OpenSSL - not enabling dcrypt" >&2;}
26009      fi
26010    fi
26011  fi
26012   if test "$have_openssl" = "yes"; then
26013  BUILD_OPENSSL_TRUE=
26014  BUILD_OPENSSL_FALSE='#'
26015else
26016  BUILD_OPENSSL_TRUE='#'
26017  BUILD_OPENSSL_FALSE=
26018fi
26019
26020   if test "$build_dcrypt_openssl" = "yes"; then
26021  BUILD_DCRYPT_OPENSSL_TRUE=
26022  BUILD_DCRYPT_OPENSSL_FALSE='#'
26023else
26024  BUILD_DCRYPT_OPENSSL_TRUE='#'
26025  BUILD_DCRYPT_OPENSSL_FALSE=
26026fi
26027
26028   if test x$ssl_version_ge_102 = xtrue; then
26029  SSL_VERSION_GE_102_TRUE=
26030  SSL_VERSION_GE_102_FALSE='#'
26031else
26032  SSL_VERSION_GE_102_TRUE='#'
26033  SSL_VERSION_GE_102_FALSE=
26034fi
26035
26036
26037  if test $want_gnutls != no && test $have_ssl = no; then
26038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5
26039$as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
26040if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then :
26041  $as_echo_n "(cached) " >&6
26042else
26043  ac_check_lib_save_LIBS=$LIBS
26044LIBS="-lgnutls -lgcrypt $LIBS"
26045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26046/* end confdefs.h.  */
26047
26048/* Override any GCC internal prototype to avoid an error.
26049   Use char because int might match the return type of a GCC
26050   builtin and then its argument prototype would still apply.  */
26051#ifdef __cplusplus
26052extern "C"
26053#endif
26054char gnutls_global_init ();
26055int
26056main ()
26057{
26058return gnutls_global_init ();
26059  ;
26060  return 0;
26061}
26062_ACEOF
26063if ac_fn_c_try_link "$LINENO"; then :
26064  ac_cv_lib_gnutls_gnutls_global_init=yes
26065else
26066  ac_cv_lib_gnutls_gnutls_global_init=no
26067fi
26068rm -f core conftest.err conftest.$ac_objext \
26069    conftest$ac_exeext conftest.$ac_ext
26070LIBS=$ac_check_lib_save_LIBS
26071fi
26072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5
26073$as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; }
26074if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then :
26075
26076      ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
26077if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
26078
26079
26080$as_echo "#define HAVE_GNUTLS /**/" >>confdefs.h
26081
26082        SSL_LIBS="-lgnutls -lgcrypt"
26083
26084        have_ssl="yes (GNUTLS)"
26085        have_gnutls=yes
26086
26087else
26088
26089        if test $want_gnutls = yes; then
26090  	as_fn_error $? "Can't build with GNUTLS: gnutls/gnutls.h not found" "$LINENO" 5
26091        fi
26092
26093fi
26094
26095
26096
26097else
26098
26099      if test $want_gnutls = yes; then
26100        as_fn_error $? "Can't build with GNUTLS: libgnutls not found" "$LINENO" 5
26101      fi
26102
26103fi
26104
26105  fi
26106
26107  if test "$have_ssl" != "no"; then
26108
26109$as_echo "#define HAVE_SSL /**/" >>confdefs.h
26110
26111  fi
26112
26113
26114
26115  have_libunwind=no
26116  if test "$want_libunwind" != "no"; then :
26117
26118    if test -n "$PKG_CONFIG" && \
26119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
26120  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
26121  ac_status=$?
26122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26123  test $ac_status = 0; }; then
26124
26125
26126pkg_failed=no
26127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
26128$as_echo_n "checking for LIBUNWIND... " >&6; }
26129
26130if test -n "$LIBUNWIND_CFLAGS"; then
26131    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
26132 elif test -n "$PKG_CONFIG"; then
26133    if test -n "$PKG_CONFIG" && \
26134    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind-generic\""; } >&5
26135  ($PKG_CONFIG --exists --print-errors "libunwind-generic") 2>&5
26136  ac_status=$?
26137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138  test $ac_status = 0; }; then
26139  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind-generic" 2>/dev/null`
26140		      test "x$?" != "x0" && pkg_failed=yes
26141else
26142  pkg_failed=yes
26143fi
26144 else
26145    pkg_failed=untried
26146fi
26147if test -n "$LIBUNWIND_LIBS"; then
26148    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
26149 elif test -n "$PKG_CONFIG"; then
26150    if test -n "$PKG_CONFIG" && \
26151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind-generic\""; } >&5
26152  ($PKG_CONFIG --exists --print-errors "libunwind-generic") 2>&5
26153  ac_status=$?
26154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155  test $ac_status = 0; }; then
26156  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind-generic" 2>/dev/null`
26157		      test "x$?" != "x0" && pkg_failed=yes
26158else
26159  pkg_failed=yes
26160fi
26161 else
26162    pkg_failed=untried
26163fi
26164
26165
26166
26167if test $pkg_failed = yes; then
26168   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26169$as_echo "no" >&6; }
26170
26171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26172        _pkg_short_errors_supported=yes
26173else
26174        _pkg_short_errors_supported=no
26175fi
26176        if test $_pkg_short_errors_supported = yes; then
26177	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind-generic" 2>&1`
26178        else
26179	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind-generic" 2>&1`
26180        fi
26181	# Put the nasty error message in config.log where it belongs
26182	echo "$LIBUNWIND_PKG_ERRORS" >&5
26183
26184	as_fn_error $? "Package requirements (libunwind-generic) were not met:
26185
26186$LIBUNWIND_PKG_ERRORS
26187
26188Consider adjusting the PKG_CONFIG_PATH environment variable if you
26189installed software in a non-standard prefix.
26190
26191Alternatively, you may set the environment variables LIBUNWIND_CFLAGS
26192and LIBUNWIND_LIBS to avoid the need to call pkg-config.
26193See the pkg-config man page for more details." "$LINENO" 5
26194elif test $pkg_failed = untried; then
26195     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26196$as_echo "no" >&6; }
26197	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26199as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26200is in your PATH or set the PKG_CONFIG environment variable to the full
26201path to pkg-config.
26202
26203Alternatively, you may set the environment variables LIBUNWIND_CFLAGS
26204and LIBUNWIND_LIBS to avoid the need to call pkg-config.
26205See the pkg-config man page for more details.
26206
26207To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26208See \`config.log' for more details" "$LINENO" 5; }
26209else
26210	LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
26211	LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
26212        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26213$as_echo "yes" >&6; }
26214
26215        have_libunwind=yes
26216
26217$as_echo "#define HAVE_LIBUNWIND /**/" >>confdefs.h
26218
26219
26220fi
26221
26222fi
26223
26224fi
26225
26226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we will be linking with libunwind" >&5
26227$as_echo_n "checking whether we will be linking with libunwind... " >&6; };
26228  if test "$want_libunwind" = yes; then :
26229
26230     if test "$have_libunwind" != yes; then :
26231
26232       as_fn_error $? "Cannot find libunwind" "$LINENO" 5
26233
26234fi
26235
26236fi
26237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libunwind" >&5
26238$as_echo "$have_libunwind" >&6; }
26239
26240
26241
26242userdb=""
26243passdb=""
26244not_userdb=""
26245not_passdb=""
26246
26247passdb="$passdb static"
26248userdb="$userdb static"
26249dict_drivers=""
26250
26251
26252
26253# Check whether --with-lua was given.
26254if test "${with_lua+set}" = set; then :
26255  withval=$with_lua; with_lua=$withval
26256else
26257  with_lua=no
26258
26259fi
26260
26261
26262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we will be linking in Lua" >&5
26263$as_echo_n "checking whether we will be linking in Lua... " >&6; }
26264  if test "x$with_lua" = "xplugin"; then :
26265
26266     with_lua_plugin=yes
26267     with_lua=yes
26268
26269fi
26270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua" >&5
26271$as_echo "$with_lua" >&6; }
26272
26273  if test "x$with_lua" != "xno"; then :
26274
26275    if test -n "$LUA_CFLAGS" -o -n "$LUA_LIBS"; then :
26276
26277      with_lua=yes
26278
26279else
26280
26281      for LUAPC in lua5.3 lua-5.3 lua53 lua5.1 lua-5.1 lua51 lua; do
26282
26283pkg_failed=no
26284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
26285$as_echo_n "checking for LUA... " >&6; }
26286
26287if test -n "$LUA_CFLAGS"; then
26288    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
26289 elif test -n "$PKG_CONFIG"; then
26290    if test -n "$PKG_CONFIG" && \
26291    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LUAPC >= 5.1 \$LUAPC != 5.2 \""; } >&5
26292  ($PKG_CONFIG --exists --print-errors "$LUAPC >= 5.1 $LUAPC != 5.2 ") 2>&5
26293  ac_status=$?
26294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26295  test $ac_status = 0; }; then
26296  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$LUAPC >= 5.1 $LUAPC != 5.2 " 2>/dev/null`
26297		      test "x$?" != "x0" && pkg_failed=yes
26298else
26299  pkg_failed=yes
26300fi
26301 else
26302    pkg_failed=untried
26303fi
26304if test -n "$LUA_LIBS"; then
26305    pkg_cv_LUA_LIBS="$LUA_LIBS"
26306 elif test -n "$PKG_CONFIG"; then
26307    if test -n "$PKG_CONFIG" && \
26308    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LUAPC >= 5.1 \$LUAPC != 5.2 \""; } >&5
26309  ($PKG_CONFIG --exists --print-errors "$LUAPC >= 5.1 $LUAPC != 5.2 ") 2>&5
26310  ac_status=$?
26311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312  test $ac_status = 0; }; then
26313  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$LUAPC >= 5.1 $LUAPC != 5.2 " 2>/dev/null`
26314		      test "x$?" != "x0" && pkg_failed=yes
26315else
26316  pkg_failed=yes
26317fi
26318 else
26319    pkg_failed=untried
26320fi
26321
26322
26323
26324if test $pkg_failed = yes; then
26325   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26326$as_echo "no" >&6; }
26327
26328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26329        _pkg_short_errors_supported=yes
26330else
26331        _pkg_short_errors_supported=no
26332fi
26333        if test $_pkg_short_errors_supported = yes; then
26334	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LUAPC >= 5.1 $LUAPC != 5.2 " 2>&1`
26335        else
26336	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LUAPC >= 5.1 $LUAPC != 5.2 " 2>&1`
26337        fi
26338	# Put the nasty error message in config.log where it belongs
26339	echo "$LUA_PKG_ERRORS" >&5
26340
26341	LUAPC=""
26342elif test $pkg_failed = untried; then
26343     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26344$as_echo "no" >&6; }
26345	LUAPC=""
26346else
26347	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
26348	LUA_LIBS=$pkg_cv_LUA_LIBS
26349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26350$as_echo "yes" >&6; }
26351
26352           with_lua=yes
26353
26354fi # otherwise pkg_check will fail
26355         if test "x$LUA_LIBS" != "x"; then break; fi
26356       done
26357
26358fi
26359
26360fi
26361
26362  if test "x$with_lua" = "xyes"; then :
26363
26364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen LUA" >&5
26365$as_echo_n "checking for chosen LUA... " >&6; }
26366
26367$as_echo "#define HAVE_LUA 1" >>confdefs.h
26368
26369    if test "x$LUAPC" != "x"; then :
26370
26371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUAPC" >&5
26372$as_echo "$LUAPC" >&6; }
26373
26374else
26375
26376      { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified via LUA_CFLAGS and LUA_LIBS" >&5
26377$as_echo "specified via LUA_CFLAGS and LUA_LIBS" >&6; }
26378
26379fi
26380
26381fi
26382
26383  if test "x$with_lua" = "xyes"; then :
26384  if test "x$with_lua_plugin" != "xyes"; then :
26385
26386$as_echo "#define BUILTIN_LUA /**/" >>confdefs.h
26387
26388
26389fi
26390      old_CFLAGS="$CFLAGS"
26391   CFLAGS="$CFLAGS $LUA_CFLAGS"
26392   old_LIBS="$LIBS"
26393   LIBS="$LIBS $LUA_LIBS"
26394
26395   for ac_func in luaL_setfuncs
26396do :
26397  ac_fn_c_check_func "$LINENO" "luaL_setfuncs" "ac_cv_func_luaL_setfuncs"
26398if test "x$ac_cv_func_luaL_setfuncs" = xyes; then :
26399  cat >>confdefs.h <<_ACEOF
26400#define HAVE_LUAL_SETFUNCS 1
26401_ACEOF
26402
26403fi
26404done
26405
26406   for ac_func in luaL_setmetatable
26407do :
26408  ac_fn_c_check_func "$LINENO" "luaL_setmetatable" "ac_cv_func_luaL_setmetatable"
26409if test "x$ac_cv_func_luaL_setmetatable" = xyes; then :
26410  cat >>confdefs.h <<_ACEOF
26411#define HAVE_LUAL_SETMETATABLE 1
26412_ACEOF
26413
26414fi
26415done
26416
26417   for ac_func in lua_isinteger
26418do :
26419  ac_fn_c_check_func "$LINENO" "lua_isinteger" "ac_cv_func_lua_isinteger"
26420if test "x$ac_cv_func_lua_isinteger" = xyes; then :
26421  cat >>confdefs.h <<_ACEOF
26422#define HAVE_LUA_ISINTEGER 1
26423_ACEOF
26424
26425fi
26426done
26427
26428   for ac_func in lua_resume
26429do :
26430  ac_fn_c_check_func "$LINENO" "lua_resume" "ac_cv_func_lua_resume"
26431if test "x$ac_cv_func_lua_resume" = xyes; then :
26432  cat >>confdefs.h <<_ACEOF
26433#define HAVE_LUA_RESUME 1
26434_ACEOF
26435
26436fi
26437done
26438
26439   for ac_func in lua_seti
26440do :
26441  ac_fn_c_check_func "$LINENO" "lua_seti" "ac_cv_func_lua_seti"
26442if test "x$ac_cv_func_lua_seti" = xyes; then :
26443  cat >>confdefs.h <<_ACEOF
26444#define HAVE_LUA_SETI 1
26445_ACEOF
26446
26447fi
26448done
26449
26450   for ac_func in lua_tointegerx
26451do :
26452  ac_fn_c_check_func "$LINENO" "lua_tointegerx" "ac_cv_func_lua_tointegerx"
26453if test "x$ac_cv_func_lua_tointegerx" = xyes; then :
26454  cat >>confdefs.h <<_ACEOF
26455#define HAVE_LUA_TOINTEGERX 1
26456_ACEOF
26457
26458fi
26459done
26460
26461   for ac_func in lua_yieldk
26462do :
26463  ac_fn_c_check_func "$LINENO" "lua_yieldk" "ac_cv_func_lua_yieldk"
26464if test "x$ac_cv_func_lua_yieldk" = xyes; then :
26465  cat >>confdefs.h <<_ACEOF
26466#define HAVE_LUA_YIELDK 1
26467_ACEOF
26468
26469fi
26470done
26471
26472
26473   if test "$ac_cv_func_lua_resume" = "yes" -a \
26474               "$ac_cv_func_lua_yieldk" = "yes"; then :
26475
26476$as_echo "#define DLUA_WITH_YIELDS /**/" >>confdefs.h
26477
26478     dlua_with_yields=yes
26479
26480fi
26481
26482   CFLAGS="$old_CFLAGS"
26483   LIBS="$old_LIBS"
26484
26485fi
26486
26487
26488  if test $want_prefetch_userdb != no; then
26489
26490$as_echo "#define USERDB_PREFETCH /**/" >>confdefs.h
26491
26492          userdb="$userdb prefetch"
26493  else
26494          not_userdb="$not_userdb prefetch"
26495  fi
26496
26497
26498  if test $want_passwd != no; then
26499
26500$as_echo "#define USERDB_PASSWD /**/" >>confdefs.h
26501
26502
26503$as_echo "#define PASSDB_PASSWD /**/" >>confdefs.h
26504
26505          userdb="$userdb passwd"
26506          passdb="$passdb passwd"
26507  else
26508          not_passdb="$not_passdb passwd"
26509          not_userdb="$not_userdb passwd"
26510  fi
26511
26512  if test $want_passwd_file != no; then
26513
26514$as_echo "#define USERDB_PASSWD_FILE /**/" >>confdefs.h
26515
26516
26517$as_echo "#define PASSDB_PASSWD_FILE /**/" >>confdefs.h
26518
26519          userdb="$userdb passwd-file"
26520          passdb="$passdb passwd-file"
26521  else
26522          not_passdb="$not_passdb passwd-file"
26523          not_userdb="$not_userdb passwd-file"
26524  fi
26525
26526
26527  have_shadow=no
26528  if test $want_shadow != no; then
26529    ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
26530if test "x$ac_cv_func_getspnam" = xyes; then :
26531
26532      ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
26533if test "x$ac_cv_header_shadow_h" = xyes; then :
26534
26535
26536$as_echo "#define PASSDB_SHADOW /**/" >>confdefs.h
26537
26538        have_shadow=yes
26539
26540else
26541
26542        if test $want_shadow = yes; then
26543          as_fn_error $? "Can't build with shadow support: shadow.h not found" "$LINENO" 5
26544        fi
26545
26546fi
26547
26548
26549
26550else
26551
26552      if test $want_shadow = yes; then
26553        as_fn_error $? "Can't build with shadow support: getspnam() not found" "$LINENO" 5
26554      fi
26555
26556fi
26557
26558  fi
26559  if test $have_shadow = no; then
26560    not_passdb="$not_passdb shadow"
26561  else
26562    passdb="$passdb shadow"
26563  fi
26564
26565
26566  if test $want_pam != no; then
26567          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
26568$as_echo_n "checking for pam_start in -lpam... " >&6; }
26569if ${ac_cv_lib_pam_pam_start+:} false; then :
26570  $as_echo_n "(cached) " >&6
26571else
26572  ac_check_lib_save_LIBS=$LIBS
26573LIBS="-lpam  $LIBS"
26574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575/* end confdefs.h.  */
26576
26577/* Override any GCC internal prototype to avoid an error.
26578   Use char because int might match the return type of a GCC
26579   builtin and then its argument prototype would still apply.  */
26580#ifdef __cplusplus
26581extern "C"
26582#endif
26583char pam_start ();
26584int
26585main ()
26586{
26587return pam_start ();
26588  ;
26589  return 0;
26590}
26591_ACEOF
26592if ac_fn_c_try_link "$LINENO"; then :
26593  ac_cv_lib_pam_pam_start=yes
26594else
26595  ac_cv_lib_pam_pam_start=no
26596fi
26597rm -f core conftest.err conftest.$ac_objext \
26598    conftest$ac_exeext conftest.$ac_ext
26599LIBS=$ac_check_lib_save_LIBS
26600fi
26601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
26602$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
26603if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
26604
26605                  have_pam=no
26606                  ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
26607if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
26608
26609
26610$as_echo "#define HAVE_SECURITY_PAM_APPL_H /**/" >>confdefs.h
26611
26612                          have_pam=yes
26613
26614fi
26615
26616
26617
26618                  ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
26619if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
26620
26621
26622$as_echo "#define HAVE_PAM_PAM_APPL_H /**/" >>confdefs.h
26623
26624                          have_pam=yes
26625
26626fi
26627
26628
26629
26630else
26631
26632            if test $want_pam = yes; then
26633              as_fn_error $? "Can't build with PAM support: libpam not found" "$LINENO" 5
26634            fi
26635
26636fi
26637
26638  fi
26639
26640  if test "$have_pam" = "yes"; then
26641    AUTH_LIBS="$AUTH_LIBS -lpam"
26642
26643$as_echo "#define PASSDB_PAM /**/" >>confdefs.h
26644
26645    passdb="$passdb pam"
26646
26647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
26648$as_echo_n "checking for pam_setcred in -lpam... " >&6; }
26649if ${ac_cv_lib_pam_pam_setcred+:} false; then :
26650  $as_echo_n "(cached) " >&6
26651else
26652  ac_check_lib_save_LIBS=$LIBS
26653LIBS="-lpam  $LIBS"
26654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26655/* end confdefs.h.  */
26656
26657/* Override any GCC internal prototype to avoid an error.
26658   Use char because int might match the return type of a GCC
26659   builtin and then its argument prototype would still apply.  */
26660#ifdef __cplusplus
26661extern "C"
26662#endif
26663char pam_setcred ();
26664int
26665main ()
26666{
26667return pam_setcred ();
26668  ;
26669  return 0;
26670}
26671_ACEOF
26672if ac_fn_c_try_link "$LINENO"; then :
26673  ac_cv_lib_pam_pam_setcred=yes
26674else
26675  ac_cv_lib_pam_pam_setcred=no
26676fi
26677rm -f core conftest.err conftest.$ac_objext \
26678    conftest$ac_exeext conftest.$ac_ext
26679LIBS=$ac_check_lib_save_LIBS
26680fi
26681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
26682$as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
26683if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
26684
26685
26686$as_echo "#define HAVE_PAM_SETCRED /**/" >>confdefs.h
26687
26688
26689fi
26690
26691  elif test $want_pam = yes; then
26692    as_fn_error $? "Can't build with PAM support: pam_appl.h not found" "$LINENO" 5
26693  else
26694    not_passdb="$not_passdb pam"
26695  fi
26696
26697
26698  if test $want_checkpassword != no; then
26699
26700$as_echo "#define PASSDB_CHECKPASSWORD /**/" >>confdefs.h
26701
26702
26703$as_echo "#define USERDB_CHECKPASSWORD /**/" >>confdefs.h
26704
26705          passdb="$passdb checkpassword"
26706          userdb="$userdb checkpassword"
26707  else
26708          not_passdb="$not_passdb checkpassword"
26709          not_userdb="$not_userdb checkpassword"
26710  fi
26711
26712
26713  have_bsdauth=no
26714  if test $want_bsdauth != no; then
26715          ac_fn_c_check_func "$LINENO" "auth_userokay" "ac_cv_func_auth_userokay"
26716if test "x$ac_cv_func_auth_userokay" = xyes; then :
26717
26718
26719$as_echo "#define PASSDB_BSDAUTH /**/" >>confdefs.h
26720
26721                  have_bsdauth=yes
26722
26723else
26724
26725            if test $want_bsdauth = yes; then
26726              as_fn_error $? "Can't build with BSD authentication support: auth_userokay() not found" "$LINENO" 5
26727            fi
26728
26729fi
26730
26731  fi
26732  if test $have_bsdauth = no; then
26733    not_passdb="$not_passdb bsdauth"
26734  else
26735    passdb="$passdb bsdauth"
26736  fi
26737
26738
26739  have_gssapi=no
26740  if test $want_gssapi != no; then
26741  	# Extract the first word of "krb5-config", so it can be a program name with args.
26742set dummy krb5-config; ac_word=$2
26743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26744$as_echo_n "checking for $ac_word... " >&6; }
26745if ${ac_cv_prog_KRB5CONFIG+:} false; then :
26746  $as_echo_n "(cached) " >&6
26747else
26748  if test -n "$KRB5CONFIG"; then
26749  ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
26750else
26751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26752for as_dir in $PATH
26753do
26754  IFS=$as_save_IFS
26755  test -z "$as_dir" && as_dir=.
26756    for ac_exec_ext in '' $ac_executable_extensions; do
26757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26758    ac_cv_prog_KRB5CONFIG="krb5-config"
26759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26760    break 2
26761  fi
26762done
26763  done
26764IFS=$as_save_IFS
26765
26766  test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG="NO"
26767fi
26768fi
26769KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
26770if test -n "$KRB5CONFIG"; then
26771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
26772$as_echo "$KRB5CONFIG" >&6; }
26773else
26774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26775$as_echo "no" >&6; }
26776fi
26777
26778
26779  	if test $KRB5CONFIG != NO; then
26780  		KRB5_LIBS="`$KRB5CONFIG --libs`"
26781  		KRB5_CFLAGS=`$KRB5CONFIG --cflags`
26782  		if ! $KRB5CONFIG --version gssapi 2>/dev/null > /dev/null; then
26783  		  # krb5-config doesn't support gssapi.
26784  		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_acquire_cred in -lgss" >&5
26785$as_echo_n "checking for gss_acquire_cred in -lgss... " >&6; }
26786if ${ac_cv_lib_gss_gss_acquire_cred+:} false; then :
26787  $as_echo_n "(cached) " >&6
26788else
26789  ac_check_lib_save_LIBS=$LIBS
26790LIBS="-lgss $KRB5_LIBS $LIBS"
26791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26792/* end confdefs.h.  */
26793
26794/* Override any GCC internal prototype to avoid an error.
26795   Use char because int might match the return type of a GCC
26796   builtin and then its argument prototype would still apply.  */
26797#ifdef __cplusplus
26798extern "C"
26799#endif
26800char gss_acquire_cred ();
26801int
26802main ()
26803{
26804return gss_acquire_cred ();
26805  ;
26806  return 0;
26807}
26808_ACEOF
26809if ac_fn_c_try_link "$LINENO"; then :
26810  ac_cv_lib_gss_gss_acquire_cred=yes
26811else
26812  ac_cv_lib_gss_gss_acquire_cred=no
26813fi
26814rm -f core conftest.err conftest.$ac_objext \
26815    conftest$ac_exeext conftest.$ac_ext
26816LIBS=$ac_check_lib_save_LIBS
26817fi
26818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_acquire_cred" >&5
26819$as_echo "$ac_cv_lib_gss_gss_acquire_cred" >&6; }
26820if test "x$ac_cv_lib_gss_gss_acquire_cred" = xyes; then :
26821
26822  		    # Solaris
26823  		    KRB5_LIBS="$KRB5_LIBS -lgss"
26824
26825else
26826
26827  		    # failed
26828  		    KRB5_LIBS=
26829
26830fi
26831
26832  		else
26833  		  KRB5_LIBS="$KRB5_LIBS `$KRB5CONFIG --libs gssapi`"
26834  		  KRB5_CFLAGS="$KRB5_CFLAGS `$KRB5CONFIG --cflags gssapi`"
26835  		fi
26836  		if test "$KRB5_LIBS" != ""; then
26837
26838
26839
26840  			# Although krb5-config exists, all systems still don't
26841  			# have gssapi.h
26842  			old_CFLAGS=$CFLAGS
26843  			CFLAGS="$CFLAGS $KRB5_CFLAGS"
26844  			ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
26845if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
26846
26847
26848$as_echo "#define HAVE_GSSAPI_GSSAPI_H /**/" >>confdefs.h
26849
26850  				have_gssapi=yes
26851
26852fi
26853
26854
26855  			ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
26856if test "x$ac_cv_header_gssapi_h" = xyes; then :
26857
26858
26859$as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
26860
26861  				have_gssapi=yes
26862
26863fi
26864
26865
26866  			if test $have_gssapi != no; then
26867  				if test $want_gssapi = plugin; then
26868  					have_gssapi=plugin
26869  				fi
26870
26871$as_echo "#define HAVE_GSSAPI /**/" >>confdefs.h
26872
26873  				for ac_header in gssapi/gssapi_ext.h gssapi_krb5.h gssapi/gssapi_krb5.h
26874do :
26875  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26876ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26878  cat >>confdefs.h <<_ACEOF
26879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26880_ACEOF
26881
26882fi
26883
26884done
26885
26886  				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gss_userok in -lgss" >&5
26887$as_echo_n "checking for __gss_userok in -lgss... " >&6; }
26888if ${ac_cv_lib_gss___gss_userok+:} false; then :
26889  $as_echo_n "(cached) " >&6
26890else
26891  ac_check_lib_save_LIBS=$LIBS
26892LIBS="-lgss $KRB5_LIBS $LIBS"
26893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26894/* end confdefs.h.  */
26895
26896/* Override any GCC internal prototype to avoid an error.
26897   Use char because int might match the return type of a GCC
26898   builtin and then its argument prototype would still apply.  */
26899#ifdef __cplusplus
26900extern "C"
26901#endif
26902char __gss_userok ();
26903int
26904main ()
26905{
26906return __gss_userok ();
26907  ;
26908  return 0;
26909}
26910_ACEOF
26911if ac_fn_c_try_link "$LINENO"; then :
26912  ac_cv_lib_gss___gss_userok=yes
26913else
26914  ac_cv_lib_gss___gss_userok=no
26915fi
26916rm -f core conftest.err conftest.$ac_objext \
26917    conftest$ac_exeext conftest.$ac_ext
26918LIBS=$ac_check_lib_save_LIBS
26919fi
26920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss___gss_userok" >&5
26921$as_echo "$ac_cv_lib_gss___gss_userok" >&6; }
26922if test "x$ac_cv_lib_gss___gss_userok" = xyes; then :
26923
26924
26925$as_echo "#define HAVE___GSS_USEROK /**/" >>confdefs.h
26926
26927  					KRB5_LIBS="$KRB5_LIBS -lgss"
26928
26929fi
26930
26931
26932  				# MIT has a #define for Heimdal acceptor_identity, but it's way too
26933  				# difficult to test for it..
26934  				old_LIBS=$LIBS
26935  				LIBS="$LIBS $KRB5_LIBS"
26936  				for ac_func in gsskrb5_register_acceptor_identity krb5_gss_register_acceptor_identity
26937do :
26938  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26939ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26940if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26941  cat >>confdefs.h <<_ACEOF
26942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26943_ACEOF
26944
26945fi
26946done
26947
26948  				for ac_func in krb5_free_context
26949do :
26950  ac_fn_c_check_func "$LINENO" "krb5_free_context" "ac_cv_func_krb5_free_context"
26951if test "x$ac_cv_func_krb5_free_context" = xyes; then :
26952  cat >>confdefs.h <<_ACEOF
26953#define HAVE_KRB5_FREE_CONTEXT 1
26954_ACEOF
26955
26956fi
26957done
26958
26959
26960  				# does the kerberos library support SPNEGO?
26961  				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GSSAPI supports SPNEGO" >&5
26962$as_echo_n "checking whether GSSAPI supports SPNEGO... " >&6; }
26963if ${i_cv_gssapi_spnego+:} false; then :
26964  $as_echo_n "(cached) " >&6
26965else
26966
26967  				  if test "$cross_compiling" = yes; then :
26968  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26970as_fn_error $? "cannot run test program while cross compiling
26971See \`config.log' for more details" "$LINENO" 5; }
26972else
26973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26974/* end confdefs.h.  */
26975
26976  				    #ifdef HAVE_GSSAPI_H
26977  				    #  include <gssapi.h>
26978  				    #else
26979  				    #  include <gssapi/gssapi.h>
26980  				    #endif
26981  				    #include <krb5.h>
26982  				    #include <string.h>
26983  				    int main(void) {
26984  				      OM_uint32 minor_status;
26985  				      gss_OID_set mech_set;
26986  				      unsigned char spnego_oid[] = { 0x2b, 0x06, 0x01, 0x05, 0x05, 0x02 };
26987  				      unsigned int i;
26988
26989  				      gss_indicate_mechs(&minor_status, &mech_set);
26990  				      for (i = 0; i < mech_set->count; i++) {
26991  					if (mech_set->elements[i].length == 6 &&
26992  					    memcmp(mech_set->elements[i].elements,
26993  						   spnego_oid, 6) == 0)
26994  					      return 0;
26995  				      }
26996  				      return 1;
26997  				    }
26998
26999_ACEOF
27000if ac_fn_c_try_run "$LINENO"; then :
27001
27002  				    i_cv_gssapi_spnego=yes
27003
27004else
27005
27006  				    i_cv_gssapi_spnego=no
27007
27008fi
27009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27010  conftest.$ac_objext conftest.beam conftest.$ac_ext
27011fi
27012
27013
27014fi
27015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_gssapi_spnego" >&5
27016$as_echo "$i_cv_gssapi_spnego" >&6; }
27017  				if test "$i_cv_gssapi_spnego" = "yes"; then
27018
27019$as_echo "#define HAVE_GSSAPI_SPNEGO /**/" >>confdefs.h
27020
27021  				fi
27022  				LIBS=$old_LIBS
27023
27024  				if test $want_gssapi != plugin; then
27025  				  AUTH_LIBS="$AUTH_LIBS $KRB5_LIBS"
27026  				  AUTH_CFLAGS="$AUTH_CFLAGS $KRB5_CFLAGS"
27027
27028$as_echo "#define BUILTIN_GSSAPI /**/" >>confdefs.h
27029
27030  				else
27031  				  have_gssapi_plugin=yes
27032  				fi
27033  			else
27034  			  if test $want_gssapi != auto; then
27035  			    as_fn_error $? "Can't build with GSSAPI support: gssapi.h not found" "$LINENO" 5
27036  			  fi
27037  			fi
27038  			CFLAGS=$old_CFLAGS
27039  		fi
27040  	else
27041  	  if test $want_gssapi != auto; then
27042  	    as_fn_error $? "Can't build with GSSAPI support: krb5-config not found" "$LINENO" 5
27043  	  fi
27044  	fi
27045  fi
27046   if test "$have_gssapi_plugin" = "yes"; then
27047  GSSAPI_PLUGIN_TRUE=
27048  GSSAPI_PLUGIN_FALSE='#'
27049else
27050  GSSAPI_PLUGIN_TRUE='#'
27051  GSSAPI_PLUGIN_FALSE=
27052fi
27053
27054
27055
27056  have_ldap=no
27057  if test $want_ldap != no; then
27058          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
27059$as_echo_n "checking for ldap_init in -lldap... " >&6; }
27060if ${ac_cv_lib_ldap_ldap_init+:} false; then :
27061  $as_echo_n "(cached) " >&6
27062else
27063  ac_check_lib_save_LIBS=$LIBS
27064LIBS="-lldap  $LIBS"
27065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27066/* end confdefs.h.  */
27067
27068/* Override any GCC internal prototype to avoid an error.
27069   Use char because int might match the return type of a GCC
27070   builtin and then its argument prototype would still apply.  */
27071#ifdef __cplusplus
27072extern "C"
27073#endif
27074char ldap_init ();
27075int
27076main ()
27077{
27078return ldap_init ();
27079  ;
27080  return 0;
27081}
27082_ACEOF
27083if ac_fn_c_try_link "$LINENO"; then :
27084  ac_cv_lib_ldap_ldap_init=yes
27085else
27086  ac_cv_lib_ldap_ldap_init=no
27087fi
27088rm -f core conftest.err conftest.$ac_objext \
27089    conftest$ac_exeext conftest.$ac_ext
27090LIBS=$ac_check_lib_save_LIBS
27091fi
27092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
27093$as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
27094if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
27095
27096                  ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
27097if test "x$ac_cv_header_ldap_h" = xyes; then :
27098
27099                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
27100$as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
27101if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
27102  $as_echo_n "(cached) " >&6
27103else
27104  ac_check_lib_save_LIBS=$LIBS
27105LIBS="-lldap  $LIBS"
27106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27107/* end confdefs.h.  */
27108
27109/* Override any GCC internal prototype to avoid an error.
27110   Use char because int might match the return type of a GCC
27111   builtin and then its argument prototype would still apply.  */
27112#ifdef __cplusplus
27113extern "C"
27114#endif
27115char ldap_initialize ();
27116int
27117main ()
27118{
27119return ldap_initialize ();
27120  ;
27121  return 0;
27122}
27123_ACEOF
27124if ac_fn_c_try_link "$LINENO"; then :
27125  ac_cv_lib_ldap_ldap_initialize=yes
27126else
27127  ac_cv_lib_ldap_ldap_initialize=no
27128fi
27129rm -f core conftest.err conftest.$ac_objext \
27130    conftest$ac_exeext conftest.$ac_ext
27131LIBS=$ac_check_lib_save_LIBS
27132fi
27133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
27134$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
27135if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
27136
27137
27138$as_echo "#define LDAP_HAVE_INITIALIZE /**/" >>confdefs.h
27139
27140
27141fi
27142
27143                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -lldap" >&5
27144$as_echo_n "checking for ldap_start_tls_s in -lldap... " >&6; }
27145if ${ac_cv_lib_ldap_ldap_start_tls_s+:} false; then :
27146  $as_echo_n "(cached) " >&6
27147else
27148  ac_check_lib_save_LIBS=$LIBS
27149LIBS="-lldap  $LIBS"
27150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27151/* end confdefs.h.  */
27152
27153/* Override any GCC internal prototype to avoid an error.
27154   Use char because int might match the return type of a GCC
27155   builtin and then its argument prototype would still apply.  */
27156#ifdef __cplusplus
27157extern "C"
27158#endif
27159char ldap_start_tls_s ();
27160int
27161main ()
27162{
27163return ldap_start_tls_s ();
27164  ;
27165  return 0;
27166}
27167_ACEOF
27168if ac_fn_c_try_link "$LINENO"; then :
27169  ac_cv_lib_ldap_ldap_start_tls_s=yes
27170else
27171  ac_cv_lib_ldap_ldap_start_tls_s=no
27172fi
27173rm -f core conftest.err conftest.$ac_objext \
27174    conftest$ac_exeext conftest.$ac_ext
27175LIBS=$ac_check_lib_save_LIBS
27176fi
27177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_start_tls_s" >&5
27178$as_echo "$ac_cv_lib_ldap_ldap_start_tls_s" >&6; }
27179if test "x$ac_cv_lib_ldap_ldap_start_tls_s" = xyes; then :
27180
27181
27182$as_echo "#define LDAP_HAVE_START_TLS_S /**/" >>confdefs.h
27183
27184
27185fi
27186
27187                          LDAP_LIBS="-lldap"
27188                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -lldap" >&5
27189$as_echo_n "checking for ber_free in -lldap... " >&6; }
27190if ${ac_cv_lib_ldap_ber_free+:} false; then :
27191  $as_echo_n "(cached) " >&6
27192else
27193  ac_check_lib_save_LIBS=$LIBS
27194LIBS="-lldap  $LIBS"
27195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27196/* end confdefs.h.  */
27197
27198/* Override any GCC internal prototype to avoid an error.
27199   Use char because int might match the return type of a GCC
27200   builtin and then its argument prototype would still apply.  */
27201#ifdef __cplusplus
27202extern "C"
27203#endif
27204char ber_free ();
27205int
27206main ()
27207{
27208return ber_free ();
27209  ;
27210  return 0;
27211}
27212_ACEOF
27213if ac_fn_c_try_link "$LINENO"; then :
27214  ac_cv_lib_ldap_ber_free=yes
27215else
27216  ac_cv_lib_ldap_ber_free=no
27217fi
27218rm -f core conftest.err conftest.$ac_objext \
27219    conftest$ac_exeext conftest.$ac_ext
27220LIBS=$ac_check_lib_save_LIBS
27221fi
27222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ber_free" >&5
27223$as_echo "$ac_cv_lib_ldap_ber_free" >&6; }
27224if test "x$ac_cv_lib_ldap_ber_free" = xyes; then :
27225
27226                            # do nothing, default is to add -lldap to LIBS
27227                            :
27228
27229else
27230
27231                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
27232$as_echo_n "checking for ber_free in -llber... " >&6; }
27233if ${ac_cv_lib_lber_ber_free+:} false; then :
27234  $as_echo_n "(cached) " >&6
27235else
27236  ac_check_lib_save_LIBS=$LIBS
27237LIBS="-llber  $LIBS"
27238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27239/* end confdefs.h.  */
27240
27241/* Override any GCC internal prototype to avoid an error.
27242   Use char because int might match the return type of a GCC
27243   builtin and then its argument prototype would still apply.  */
27244#ifdef __cplusplus
27245extern "C"
27246#endif
27247char ber_free ();
27248int
27249main ()
27250{
27251return ber_free ();
27252  ;
27253  return 0;
27254}
27255_ACEOF
27256if ac_fn_c_try_link "$LINENO"; then :
27257  ac_cv_lib_lber_ber_free=yes
27258else
27259  ac_cv_lib_lber_ber_free=no
27260fi
27261rm -f core conftest.err conftest.$ac_objext \
27262    conftest$ac_exeext conftest.$ac_ext
27263LIBS=$ac_check_lib_save_LIBS
27264fi
27265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
27266$as_echo "$ac_cv_lib_lber_ber_free" >&6; }
27267if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
27268
27269                              LDAP_LIBS="$LDAP_LIBS -llber"
27270
27271fi
27272
27273
27274fi
27275
27276
27277                          if test $want_ldap != plugin; then
27278                                  AUTH_LIBS="$AUTH_LIBS $LDAP_LIBS"
27279                                  DICT_LIBS="$DICT_LIBS $LDAP_LIBS"
27280
27281$as_echo "#define BUILTIN_LDAP /**/" >>confdefs.h
27282
27283                          fi
27284
27285
27286$as_echo "#define USERDB_LDAP /**/" >>confdefs.h
27287
27288
27289$as_echo "#define PASSDB_LDAP /**/" >>confdefs.h
27290
27291                          for ac_header in sasl.h sasl/sasl.h
27292do :
27293  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27294ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27296  cat >>confdefs.h <<_ACEOF
27297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27298_ACEOF
27299
27300fi
27301
27302done
27303
27304                          have_ldap=yes
27305
27306else
27307
27308                    if test $want_ldap != auto; then
27309                      as_fn_error $? "Can't build with LDAP support: ldap.h not found" "$LINENO" 5
27310                    fi
27311
27312fi
27313
27314
27315
27316else
27317
27318            if test $want_ldap != auto; then
27319              as_fn_error $? "Can't build with LDAP support: libldap not found" "$LINENO" 5
27320            fi
27321
27322fi
27323
27324  fi
27325
27326  if test $have_ldap = no; then
27327    not_passdb="$not_passdb ldap"
27328    not_userdb="$not_userdb ldap"
27329  else
27330    userdb="$userdb ldap"
27331    passdb="$passdb ldap"
27332    if test $want_ldap = plugin; then
27333      have_ldap_plugin=yes
27334      userdb="$userdb (plugin)"
27335      passdb="$passdb (plugin)"
27336    fi
27337  fi
27338   if test "$have_ldap_plugin" = "yes"; then
27339  LDAP_PLUGIN_TRUE=
27340  LDAP_PLUGIN_FALSE='#'
27341else
27342  LDAP_PLUGIN_TRUE='#'
27343  LDAP_PLUGIN_FALSE=
27344fi
27345
27346   if test "$want_ldap" != "no"; then
27347  HAVE_LDAP_TRUE=
27348  HAVE_LDAP_FALSE='#'
27349else
27350  HAVE_LDAP_TRUE='#'
27351  HAVE_LDAP_FALSE=
27352fi
27353
27354
27355
27356  if test $want_db != no; then
27357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking db_env_create in -ldb" >&5
27358$as_echo_n "checking db_env_create in -ldb... " >&6; }
27359if ${i_cv_have_db_env_create+:} false; then :
27360  $as_echo_n "(cached) " >&6
27361else
27362
27363      old_LIBS=$LIBS
27364      LIBS="$LIBS -ldb"
27365      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366/* end confdefs.h.  */
27367
27368        #include <db.h>
27369
27370int
27371main ()
27372{
27373
27374        db_env_create(0, 0);
27375
27376  ;
27377  return 0;
27378}
27379_ACEOF
27380if ac_fn_c_try_link "$LINENO"; then :
27381
27382        i_cv_have_db_env_create=yes
27383
27384else
27385
27386        i_cv_have_db_env_create=no
27387
27388fi
27389rm -f core conftest.err conftest.$ac_objext \
27390    conftest$ac_exeext conftest.$ac_ext
27391      LIBS=$old_LIBS
27392
27393fi
27394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_have_db_env_create" >&5
27395$as_echo "$i_cv_have_db_env_create" >&6; }
27396    if test $i_cv_have_db_env_create = yes; then
27397      ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
27398if test "x$ac_cv_header_db_h" = xyes; then :
27399
27400        DICT_LIBS="$DICT_LIBS -ldb"
27401        dict_drivers="$dict_drivers db"
27402
27403$as_echo "#define BUILD_DB /**/" >>confdefs.h
27404
27405
27406else
27407
27408        if test $want_db = yes; then
27409          as_fn_error $? "Can't build with db support: db.h not found" "$LINENO" 5
27410        fi
27411
27412fi
27413
27414
27415    else
27416      if test $want_db = yes; then
27417        as_fn_error $? "Can't build with db support: libdb not found" "$LINENO" 5
27418      fi
27419    fi
27420  fi
27421
27422
27423  if test $want_cdb != no; then
27424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
27425$as_echo_n "checking for cdb_init in -lcdb... " >&6; }
27426if ${ac_cv_lib_cdb_cdb_init+:} false; then :
27427  $as_echo_n "(cached) " >&6
27428else
27429  ac_check_lib_save_LIBS=$LIBS
27430LIBS="-lcdb  $LIBS"
27431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27432/* end confdefs.h.  */
27433
27434/* Override any GCC internal prototype to avoid an error.
27435   Use char because int might match the return type of a GCC
27436   builtin and then its argument prototype would still apply.  */
27437#ifdef __cplusplus
27438extern "C"
27439#endif
27440char cdb_init ();
27441int
27442main ()
27443{
27444return cdb_init ();
27445  ;
27446  return 0;
27447}
27448_ACEOF
27449if ac_fn_c_try_link "$LINENO"; then :
27450  ac_cv_lib_cdb_cdb_init=yes
27451else
27452  ac_cv_lib_cdb_cdb_init=no
27453fi
27454rm -f core conftest.err conftest.$ac_objext \
27455    conftest$ac_exeext conftest.$ac_ext
27456LIBS=$ac_check_lib_save_LIBS
27457fi
27458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
27459$as_echo "$ac_cv_lib_cdb_cdb_init" >&6; }
27460if test "x$ac_cv_lib_cdb_cdb_init" = xyes; then :
27461
27462      ac_fn_c_check_header_mongrel "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
27463if test "x$ac_cv_header_cdb_h" = xyes; then :
27464
27465        DICT_LIBS="$DICT_LIBS -lcdb"
27466        dict_drivers="$dict_drivers cdb"
27467
27468$as_echo "#define BUILD_CDB /**/" >>confdefs.h
27469
27470
27471else
27472
27473        if test $want_cdb = yes; then
27474          as_fn_error $? "Can't build with CDB support: cdb.h not found" "$LINENO" 5
27475        fi
27476
27477fi
27478
27479
27480
27481else
27482
27483      if test $want_cdb = yes; then
27484        as_fn_error $? "Can't build with CDB support: libcdb not found" "$LINENO" 5
27485      fi
27486
27487fi
27488
27489  fi
27490
27491
27492  if test $want_pgsql != no; then
27493    # Extract the first word of "pg_config", so it can be a program name with args.
27494set dummy pg_config; ac_word=$2
27495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27496$as_echo_n "checking for $ac_word... " >&6; }
27497if ${ac_cv_prog_PG_CONFIG+:} false; then :
27498  $as_echo_n "(cached) " >&6
27499else
27500  if test -n "$PG_CONFIG"; then
27501  ac_cv_prog_PG_CONFIG="$PG_CONFIG" # Let the user override the test.
27502else
27503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27504for as_dir in $PATH
27505do
27506  IFS=$as_save_IFS
27507  test -z "$as_dir" && as_dir=.
27508    for ac_exec_ext in '' $ac_executable_extensions; do
27509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27510    ac_cv_prog_PG_CONFIG="pg_config"
27511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27512    break 2
27513  fi
27514done
27515  done
27516IFS=$as_save_IFS
27517
27518  test -z "$ac_cv_prog_PG_CONFIG" && ac_cv_prog_PG_CONFIG="NO"
27519fi
27520fi
27521PG_CONFIG=$ac_cv_prog_PG_CONFIG
27522if test -n "$PG_CONFIG"; then
27523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
27524$as_echo "$PG_CONFIG" >&6; }
27525else
27526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27527$as_echo "no" >&6; }
27528fi
27529
27530
27531    if test $PG_CONFIG = NO; then
27532      # based on code from PHP
27533      for i in /usr /usr/local /usr/local/pgsql; do
27534        for j in include include/pgsql include/postgres include/postgresql ""; do
27535  	if test -r "$i/$j/libpq-fe.h"; then
27536  	  PGSQL_INCLUDE=$i/$j
27537  	fi
27538        done
27539        for lib in lib lib64; do
27540  	for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do
27541  	  if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
27542  	    PGSQL_LIBDIR=$i/$j
27543  	  fi
27544  	done
27545        done
27546      done
27547    else
27548      PGSQL_INCLUDE="`$PG_CONFIG --includedir`"
27549      PGSQL_LIBDIR="`$PG_CONFIG --libdir`"
27550    fi
27551
27552    old_LIBS=$LIBS
27553    if test "$PGSQL_LIBDIR" != ""; then
27554      LIBS="$LIBS -L$PGSQL_LIBDIR"
27555    fi
27556
27557    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
27558$as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
27559if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
27560  $as_echo_n "(cached) " >&6
27561else
27562  ac_check_lib_save_LIBS=$LIBS
27563LIBS="-lpq  $LIBS"
27564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27565/* end confdefs.h.  */
27566
27567/* Override any GCC internal prototype to avoid an error.
27568   Use char because int might match the return type of a GCC
27569   builtin and then its argument prototype would still apply.  */
27570#ifdef __cplusplus
27571extern "C"
27572#endif
27573char PQconnectdb ();
27574int
27575main ()
27576{
27577return PQconnectdb ();
27578  ;
27579  return 0;
27580}
27581_ACEOF
27582if ac_fn_c_try_link "$LINENO"; then :
27583  ac_cv_lib_pq_PQconnectdb=yes
27584else
27585  ac_cv_lib_pq_PQconnectdb=no
27586fi
27587rm -f core conftest.err conftest.$ac_objext \
27588    conftest$ac_exeext conftest.$ac_ext
27589LIBS=$ac_check_lib_save_LIBS
27590fi
27591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
27592$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
27593if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
27594
27595  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
27596$as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
27597if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
27598  $as_echo_n "(cached) " >&6
27599else
27600  ac_check_lib_save_LIBS=$LIBS
27601LIBS="-lpq  $LIBS"
27602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27603/* end confdefs.h.  */
27604
27605/* Override any GCC internal prototype to avoid an error.
27606   Use char because int might match the return type of a GCC
27607   builtin and then its argument prototype would still apply.  */
27608#ifdef __cplusplus
27609extern "C"
27610#endif
27611char PQescapeStringConn ();
27612int
27613main ()
27614{
27615return PQescapeStringConn ();
27616  ;
27617  return 0;
27618}
27619_ACEOF
27620if ac_fn_c_try_link "$LINENO"; then :
27621  ac_cv_lib_pq_PQescapeStringConn=yes
27622else
27623  ac_cv_lib_pq_PQescapeStringConn=no
27624fi
27625rm -f core conftest.err conftest.$ac_objext \
27626    conftest$ac_exeext conftest.$ac_ext
27627LIBS=$ac_check_lib_save_LIBS
27628fi
27629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
27630$as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
27631if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
27632
27633
27634$as_echo "#define HAVE_PQESCAPE_STRING_CONN /**/" >>confdefs.h
27635
27636
27637fi
27638
27639  	  old_CPPFLAGS=$CPPFLAGS
27640  	  if test "$PGSQL_INCLUDE" != ""; then
27641  		  CPPFLAGS="$CPPFLAGS -I$PGSQL_INCLUDE"
27642  	  fi
27643  	  ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
27644if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
27645
27646  		  if test "$PGSQL_INCLUDE" != ""; then
27647  			  PGSQL_CFLAGS="$PGSQL_CFLAGS -I$PGSQL_INCLUDE"
27648  		  fi
27649  		  if test "$PGSQL_LIBDIR" != ""; then
27650  			  PGSQL_LIBS="$PGSQL_LIBS -L$PGSQL_LIBDIR"
27651  		  fi
27652  		  PGSQL_LIBS="$PGSQL_LIBS -lpq"
27653
27654$as_echo "#define HAVE_PGSQL /**/" >>confdefs.h
27655
27656  		  found_sql_drivers="$found_sql_drivers pgsql"
27657
27658else
27659
27660  	    if test $want_pgsql = yes; then
27661  	      as_fn_error $? "Can't build with PostgreSQL support: libpq-fe.h not found" "$LINENO" 5
27662  	    fi
27663
27664fi
27665
27666
27667  	  CPPFLAGS=$old_CPPFLAGS
27668
27669else
27670
27671      if test $want_pgsql = yes; then
27672        as_fn_error $? "Can't build with PostgreSQL support: libpq not found" "$LINENO" 5
27673      fi
27674
27675fi
27676
27677    LIBS=$old_LIBS
27678  fi
27679
27680
27681  have_mysql=no
27682  if test $want_mysql != no; then
27683    # Extract the first word of "mysql_config", so it can be a program name with args.
27684set dummy mysql_config; ac_word=$2
27685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27686$as_echo_n "checking for $ac_word... " >&6; }
27687if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
27688  $as_echo_n "(cached) " >&6
27689else
27690  if test -n "$MYSQL_CONFIG"; then
27691  ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
27692else
27693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27694for as_dir in $PATH
27695do
27696  IFS=$as_save_IFS
27697  test -z "$as_dir" && as_dir=.
27698    for ac_exec_ext in '' $ac_executable_extensions; do
27699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27700    ac_cv_prog_MYSQL_CONFIG="mysql_config"
27701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27702    break 2
27703  fi
27704done
27705  done
27706IFS=$as_save_IFS
27707
27708  test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="NO"
27709fi
27710fi
27711MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
27712if test -n "$MYSQL_CONFIG"; then
27713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
27714$as_echo "$MYSQL_CONFIG" >&6; }
27715else
27716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27717$as_echo "no" >&6; }
27718fi
27719
27720
27721    if test $MYSQL_CONFIG = NO; then
27722  	# based on code from PHP
27723  	MYSQL_LIBS="-lmysqlclient -lz -lm"
27724  	for i in /usr /usr/local /usr/local/mysql; do
27725  		for j in include include/mysql ""; do
27726  			if test -r "$i/$j/mysql.h"; then
27727  				MYSQL_INCLUDE="-I$i/$j"
27728  			fi
27729  		done
27730  		for j in lib lib/mysql lib64 lib64/mysql ""; do
27731  			if test -f "$i/$j/libmysqlclient.so" || test -f "$i/$j/libmysqlclient.a"; then
27732  				MYSQL_LIBS="-L$i/$j -lmysqlclient -lz -lm"
27733  			fi
27734  		done
27735  	done
27736    else
27737      MYSQL_INCLUDE="`$MYSQL_CONFIG --include`"
27738      MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
27739    fi
27740
27741    old_LIBS=$LIBS
27742    if test "$MYSQL_LIBS" != ""; then
27743      LIBS="$LIBS $MYSQL_LIBS"
27744    fi
27745
27746    mysql_lib=""
27747    LIBS="$LIBS -lz -lm"
27748    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
27749$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
27750if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
27751  $as_echo_n "(cached) " >&6
27752else
27753  ac_check_lib_save_LIBS=$LIBS
27754LIBS="-lmysqlclient  $LIBS"
27755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756/* end confdefs.h.  */
27757
27758/* Override any GCC internal prototype to avoid an error.
27759   Use char because int might match the return type of a GCC
27760   builtin and then its argument prototype would still apply.  */
27761#ifdef __cplusplus
27762extern "C"
27763#endif
27764char mysql_init ();
27765int
27766main ()
27767{
27768return mysql_init ();
27769  ;
27770  return 0;
27771}
27772_ACEOF
27773if ac_fn_c_try_link "$LINENO"; then :
27774  ac_cv_lib_mysqlclient_mysql_init=yes
27775else
27776  ac_cv_lib_mysqlclient_mysql_init=no
27777fi
27778rm -f core conftest.err conftest.$ac_objext \
27779    conftest$ac_exeext conftest.$ac_ext
27780LIBS=$ac_check_lib_save_LIBS
27781fi
27782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
27783$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
27784if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
27785
27786  		old_CPPFLAGS=$CPPFLAGS
27787  		if test "$MYSQL_INCLUDE" != ""; then
27788  			CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
27789  		fi
27790  		ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
27791if test "x$ac_cv_header_mysql_h" = xyes; then :
27792
27793  			if test "$MYSQL_INCLUDE" != ""; then
27794  				MYSQL_CFLAGS="$MYSQL_CFLAGS $MYSQL_INCLUDE"
27795  			fi
27796
27797  			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_ssl_set in -lmysqlclient" >&5
27798$as_echo_n "checking for mysql_ssl_set in -lmysqlclient... " >&6; }
27799if ${ac_cv_lib_mysqlclient_mysql_ssl_set+:} false; then :
27800  $as_echo_n "(cached) " >&6
27801else
27802  ac_check_lib_save_LIBS=$LIBS
27803LIBS="-lmysqlclient  $LIBS"
27804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27805/* end confdefs.h.  */
27806
27807/* Override any GCC internal prototype to avoid an error.
27808   Use char because int might match the return type of a GCC
27809   builtin and then its argument prototype would still apply.  */
27810#ifdef __cplusplus
27811extern "C"
27812#endif
27813char mysql_ssl_set ();
27814int
27815main ()
27816{
27817return mysql_ssl_set ();
27818  ;
27819  return 0;
27820}
27821_ACEOF
27822if ac_fn_c_try_link "$LINENO"; then :
27823  ac_cv_lib_mysqlclient_mysql_ssl_set=yes
27824else
27825  ac_cv_lib_mysqlclient_mysql_ssl_set=no
27826fi
27827rm -f core conftest.err conftest.$ac_objext \
27828    conftest$ac_exeext conftest.$ac_ext
27829LIBS=$ac_check_lib_save_LIBS
27830fi
27831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_ssl_set" >&5
27832$as_echo "$ac_cv_lib_mysqlclient_mysql_ssl_set" >&6; }
27833if test "x$ac_cv_lib_mysqlclient_mysql_ssl_set" = xyes; then :
27834
27835
27836$as_echo "#define HAVE_MYSQL_SSL /**/" >>confdefs.h
27837
27838  				if test "x$have_openssl" = "yes"; then
27839  				  ssl_define="#define HAVE_OPENSSL"
27840  				else
27841  				  ssl_define=""
27842  				fi
27843  				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27844/* end confdefs.h.  */
27845
27846  				  $ssl_define
27847  				  #include <mysql.h>
27848
27849int
27850main ()
27851{
27852
27853				  mysql_ssl_set(0, 0, 0, 0, 0, 0);
27854
27855  ;
27856  return 0;
27857}
27858_ACEOF
27859if ac_fn_c_try_compile "$LINENO"; then :
27860
27861
27862$as_echo "#define HAVE_MYSQL_SSL_CIPHER /**/" >>confdefs.h
27863
27864
27865  					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27866/* end confdefs.h.  */
27867
27868  					  $ssl_define
27869  					  #include <mysql.h>
27870
27871int
27872main ()
27873{
27874
27875  					  int i = MYSQL_OPT_SSL_VERIFY_SERVER_CERT;
27876
27877  ;
27878  return 0;
27879}
27880_ACEOF
27881if ac_fn_c_try_compile "$LINENO"; then :
27882
27883
27884$as_echo "#define HAVE_MYSQL_SSL_VERIFY_SERVER_CERT /**/" >>confdefs.h
27885
27886
27887fi
27888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889
27890fi
27891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27892
27893fi
27894
27895
27896  			have_mysql=yes
27897
27898$as_echo "#define HAVE_MYSQL /**/" >>confdefs.h
27899
27900  			found_sql_drivers="$found_sql_drivers mysql"
27901
27902else
27903
27904  		  if test $want_mysql = yes; then
27905  		    as_fn_error $? "Can't build with MySQL support: mysql.h not found" "$LINENO" 5
27906  		  fi
27907
27908fi
27909
27910
27911  		CPPFLAGS=$old_CPPFLAGS
27912
27913else
27914
27915      if test $want_mysql = yes; then
27916        as_fn_error $? "Can't build with MySQL support: libmysqlclient not found" "$LINENO" 5
27917      fi
27918
27919fi
27920
27921
27922    if test $have_mysql != yes; then
27923      MYSQL_LIBS=
27924      MYSQL_CFLAGS=
27925    fi
27926    LIBS=$old_LIBS
27927  fi
27928
27929
27930  if test "$want_sodium" != "no"; then :
27931
27932
27933pkg_failed=no
27934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSODIUM" >&5
27935$as_echo_n "checking for LIBSODIUM... " >&6; }
27936
27937if test -n "$LIBSODIUM_CFLAGS"; then
27938    pkg_cv_LIBSODIUM_CFLAGS="$LIBSODIUM_CFLAGS"
27939 elif test -n "$PKG_CONFIG"; then
27940    if test -n "$PKG_CONFIG" && \
27941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium\""; } >&5
27942  ($PKG_CONFIG --exists --print-errors "libsodium") 2>&5
27943  ac_status=$?
27944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27945  test $ac_status = 0; }; then
27946  pkg_cv_LIBSODIUM_CFLAGS=`$PKG_CONFIG --cflags "libsodium" 2>/dev/null`
27947		      test "x$?" != "x0" && pkg_failed=yes
27948else
27949  pkg_failed=yes
27950fi
27951 else
27952    pkg_failed=untried
27953fi
27954if test -n "$LIBSODIUM_LIBS"; then
27955    pkg_cv_LIBSODIUM_LIBS="$LIBSODIUM_LIBS"
27956 elif test -n "$PKG_CONFIG"; then
27957    if test -n "$PKG_CONFIG" && \
27958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium\""; } >&5
27959  ($PKG_CONFIG --exists --print-errors "libsodium") 2>&5
27960  ac_status=$?
27961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27962  test $ac_status = 0; }; then
27963  pkg_cv_LIBSODIUM_LIBS=`$PKG_CONFIG --libs "libsodium" 2>/dev/null`
27964		      test "x$?" != "x0" && pkg_failed=yes
27965else
27966  pkg_failed=yes
27967fi
27968 else
27969    pkg_failed=untried
27970fi
27971
27972
27973
27974if test $pkg_failed = yes; then
27975   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27976$as_echo "no" >&6; }
27977
27978if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27979        _pkg_short_errors_supported=yes
27980else
27981        _pkg_short_errors_supported=no
27982fi
27983        if test $_pkg_short_errors_supported = yes; then
27984	        LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsodium" 2>&1`
27985        else
27986	        LIBSODIUM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsodium" 2>&1`
27987        fi
27988	# Put the nasty error message in config.log where it belongs
27989	echo "$LIBSODIUM_PKG_ERRORS" >&5
27990
27991	have_sodium=no
27992elif test $pkg_failed = untried; then
27993     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27994$as_echo "no" >&6; }
27995	have_sodium=no
27996else
27997	LIBSODIUM_CFLAGS=$pkg_cv_LIBSODIUM_CFLAGS
27998	LIBSODIUM_LIBS=$pkg_cv_LIBSODIUM_LIBS
27999        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28000$as_echo "yes" >&6; }
28001
28002      OLD_LIBS="$LIBS"
28003      LIBS="$LIBS $LIBSODIUM_LIBS"
28004      ac_fn_c_check_func "$LINENO" "crypto_pwhash_str_verify" "ac_cv_func_crypto_pwhash_str_verify"
28005if test "x$ac_cv_func_crypto_pwhash_str_verify" = xyes; then :
28006
28007        have_sodium=yes
28008        AUTH_LIBS="$AUTH_LIBS $LIBSODIUM_LIBS"
28009
28010$as_echo "#define HAVE_LIBSODIUM 1" >>confdefs.h
28011
28012
28013fi
28014
28015      LIBS="$OLD_LIBS"
28016
28017fi
28018    if test "$want_sodium" = "yes" && test "$have_sodium" != "yes" ; then :
28019
28020      as_fn_error $? "Can't build with libsodium: not found" "$LINENO" 5
28021
28022fi
28023
28024fi
28025   if test "$have_sodium" = "yes"; then
28026  BUILD_LIBSODIUM_TRUE=
28027  BUILD_LIBSODIUM_FALSE='#'
28028else
28029  BUILD_LIBSODIUM_TRUE='#'
28030  BUILD_LIBSODIUM_FALSE=
28031fi
28032
28033
28034
28035  if test $want_sqlite != no; then
28036          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
28037$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
28038if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
28039  $as_echo_n "(cached) " >&6
28040else
28041  ac_check_lib_save_LIBS=$LIBS
28042LIBS="-lsqlite3  $LIBS"
28043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28044/* end confdefs.h.  */
28045
28046/* Override any GCC internal prototype to avoid an error.
28047   Use char because int might match the return type of a GCC
28048   builtin and then its argument prototype would still apply.  */
28049#ifdef __cplusplus
28050extern "C"
28051#endif
28052char sqlite3_open ();
28053int
28054main ()
28055{
28056return sqlite3_open ();
28057  ;
28058  return 0;
28059}
28060_ACEOF
28061if ac_fn_c_try_link "$LINENO"; then :
28062  ac_cv_lib_sqlite3_sqlite3_open=yes
28063else
28064  ac_cv_lib_sqlite3_sqlite3_open=no
28065fi
28066rm -f core conftest.err conftest.$ac_objext \
28067    conftest$ac_exeext conftest.$ac_ext
28068LIBS=$ac_check_lib_save_LIBS
28069fi
28070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
28071$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
28072if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
28073
28074                  ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
28075if test "x$ac_cv_header_sqlite3_h" = xyes; then :
28076
28077                          SQLITE_LIBS="$SQLITE_LIBS -lsqlite3"
28078
28079
28080$as_echo "#define HAVE_SQLITE /**/" >>confdefs.h
28081
28082                          found_sql_drivers="$found_sql_drivers sqlite"
28083
28084else
28085
28086                    if test $want_sqlite = yes; then
28087                      as_fn_error $? "Can't build with SQLite support: sqlite3.h not found" "$LINENO" 5
28088                    fi
28089
28090fi
28091
28092
28093
28094else
28095
28096            if test $want_sqlite = yes; then
28097              as_fn_error $? "Can't build with SQLite support: libsqlite3 not found" "$LINENO" 5
28098            fi
28099
28100fi
28101
28102  fi
28103
28104
28105     if test "$want_cassandra" != no; then :
28106
28107          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cass_session_new in -lcassandra" >&5
28108$as_echo_n "checking for cass_session_new in -lcassandra... " >&6; }
28109if ${ac_cv_lib_cassandra_cass_session_new+:} false; then :
28110  $as_echo_n "(cached) " >&6
28111else
28112  ac_check_lib_save_LIBS=$LIBS
28113LIBS="-lcassandra  $LIBS"
28114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28115/* end confdefs.h.  */
28116
28117/* Override any GCC internal prototype to avoid an error.
28118   Use char because int might match the return type of a GCC
28119   builtin and then its argument prototype would still apply.  */
28120#ifdef __cplusplus
28121extern "C"
28122#endif
28123char cass_session_new ();
28124int
28125main ()
28126{
28127return cass_session_new ();
28128  ;
28129  return 0;
28130}
28131_ACEOF
28132if ac_fn_c_try_link "$LINENO"; then :
28133  ac_cv_lib_cassandra_cass_session_new=yes
28134else
28135  ac_cv_lib_cassandra_cass_session_new=no
28136fi
28137rm -f core conftest.err conftest.$ac_objext \
28138    conftest$ac_exeext conftest.$ac_ext
28139LIBS=$ac_check_lib_save_LIBS
28140fi
28141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cassandra_cass_session_new" >&5
28142$as_echo "$ac_cv_lib_cassandra_cass_session_new" >&6; }
28143if test "x$ac_cv_lib_cassandra_cass_session_new" = xyes; then :
28144
28145                  ac_fn_c_check_header_mongrel "$LINENO" "cassandra.h" "ac_cv_header_cassandra_h" "$ac_includes_default"
28146if test "x$ac_cv_header_cassandra_h" = xyes; then :
28147
28148                          CASSANDRA_LIBS="$CASSANDRA_LIBS -lcassandra"
28149
28150$as_echo "#define HAVE_CASSANDRA /**/" >>confdefs.h
28151
28152                          found_sql_drivers="$found_sql_drivers cassandra"
28153                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cass_cluster_set_constant_speculative_execution_policy in -lcassandra" >&5
28154$as_echo_n "checking for cass_cluster_set_constant_speculative_execution_policy in -lcassandra... " >&6; }
28155if ${ac_cv_lib_cassandra_cass_cluster_set_constant_speculative_execution_policy+:} false; then :
28156  $as_echo_n "(cached) " >&6
28157else
28158  ac_check_lib_save_LIBS=$LIBS
28159LIBS="-lcassandra $CASSANDRA_LIBS $LIBS"
28160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28161/* end confdefs.h.  */
28162
28163/* Override any GCC internal prototype to avoid an error.
28164   Use char because int might match the return type of a GCC
28165   builtin and then its argument prototype would still apply.  */
28166#ifdef __cplusplus
28167extern "C"
28168#endif
28169char cass_cluster_set_constant_speculative_execution_policy ();
28170int
28171main ()
28172{
28173return cass_cluster_set_constant_speculative_execution_policy ();
28174  ;
28175  return 0;
28176}
28177_ACEOF
28178if ac_fn_c_try_link "$LINENO"; then :
28179  ac_cv_lib_cassandra_cass_cluster_set_constant_speculative_execution_policy=yes
28180else
28181  ac_cv_lib_cassandra_cass_cluster_set_constant_speculative_execution_policy=no
28182fi
28183rm -f core conftest.err conftest.$ac_objext \
28184    conftest$ac_exeext conftest.$ac_ext
28185LIBS=$ac_check_lib_save_LIBS
28186fi
28187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cassandra_cass_cluster_set_constant_speculative_execution_policy" >&5
28188$as_echo "$ac_cv_lib_cassandra_cass_cluster_set_constant_speculative_execution_policy" >&6; }
28189if test "x$ac_cv_lib_cassandra_cass_cluster_set_constant_speculative_execution_policy" = xyes; then :
28190
28191
28192$as_echo "#define HAVE_CASSANDRA_SPECULATIVE_POLICY 1" >>confdefs.h
28193
28194
28195fi
28196
28197                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cass_cluster_set_use_hostname_resolution in -lcassandra" >&5
28198$as_echo_n "checking for cass_cluster_set_use_hostname_resolution in -lcassandra... " >&6; }
28199if ${ac_cv_lib_cassandra_cass_cluster_set_use_hostname_resolution+:} false; then :
28200  $as_echo_n "(cached) " >&6
28201else
28202  ac_check_lib_save_LIBS=$LIBS
28203LIBS="-lcassandra $CASSANDRA_LIBS $LIBS"
28204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28205/* end confdefs.h.  */
28206
28207/* Override any GCC internal prototype to avoid an error.
28208   Use char because int might match the return type of a GCC
28209   builtin and then its argument prototype would still apply.  */
28210#ifdef __cplusplus
28211extern "C"
28212#endif
28213char cass_cluster_set_use_hostname_resolution ();
28214int
28215main ()
28216{
28217return cass_cluster_set_use_hostname_resolution ();
28218  ;
28219  return 0;
28220}
28221_ACEOF
28222if ac_fn_c_try_link "$LINENO"; then :
28223  ac_cv_lib_cassandra_cass_cluster_set_use_hostname_resolution=yes
28224else
28225  ac_cv_lib_cassandra_cass_cluster_set_use_hostname_resolution=no
28226fi
28227rm -f core conftest.err conftest.$ac_objext \
28228    conftest$ac_exeext conftest.$ac_ext
28229LIBS=$ac_check_lib_save_LIBS
28230fi
28231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cassandra_cass_cluster_set_use_hostname_resolution" >&5
28232$as_echo "$ac_cv_lib_cassandra_cass_cluster_set_use_hostname_resolution" >&6; }
28233if test "x$ac_cv_lib_cassandra_cass_cluster_set_use_hostname_resolution" = xyes; then :
28234
28235
28236$as_echo "#define HAVE_CASS_CLUSTER_SET_USE_HOSTNAME_RESOLUTION /**/" >>confdefs.h
28237
28238
28239fi
28240
28241                          ac_fn_c_check_decl "$LINENO" "CASS_SSL_VERIFY_PEER_IDENTITY_DNS" "ac_cv_have_decl_CASS_SSL_VERIFY_PEER_IDENTITY_DNS" "#include <cassandra.h>
28242"
28243if test "x$ac_cv_have_decl_CASS_SSL_VERIFY_PEER_IDENTITY_DNS" = xyes; then :
28244  ac_have_decl=1
28245else
28246  ac_have_decl=0
28247fi
28248
28249cat >>confdefs.h <<_ACEOF
28250#define HAVE_DECL_CASS_SSL_VERIFY_PEER_IDENTITY_DNS $ac_have_decl
28251_ACEOF
28252
28253
28254else
28255
28256                    if test "$want_cassandra" = yes; then :
28257
28258                      as_fn_error $? "Can't build with Cassandra support: cassandra.h not found" "$LINENO" 5
28259
28260fi
28261
28262fi
28263
28264
28265
28266else
28267  if test "$want_cassandra" = yes; then :
28268
28269              as_fn_error $? "Can't build with Cassandra support: libcassandra not found" "$LINENO" 5
28270
28271fi
28272
28273fi
28274
28275
28276fi
28277
28278
28279
28280  SQL_CFLAGS="$MYSQL_CFLAGS $PGSQL_CFLAGS $SQLITE_CFLAGS $CASSANDRA_CFLAGS"
28281  if test "$want_sql" != "plugin"; then
28282          SQL_LIBS="$MYSQL_LIBS $PGSQL_LIBS $SQLITE_LIBS $CASSANDRA_LIBS"
28283  else
28284
28285$as_echo "#define SQL_DRIVER_PLUGINS /**/" >>confdefs.h
28286
28287  fi
28288  sql_drivers=
28289  not_sql_drivers=
28290
28291  if test "$found_sql_drivers" != "" || test "$want_sql" != "no"; then
28292          sql_drivers="$found_sql_drivers"
28293
28294
28295$as_echo "#define PASSDB_SQL /**/" >>confdefs.h
28296
28297
28298$as_echo "#define USERDB_SQL /**/" >>confdefs.h
28299
28300          AUTH_LIBS="$AUTH_LIBS $SQL_LIBS"
28301          passdb="$passdb sql"
28302          userdb="$userdb sql"
28303  else
28304          not_passdb="$not_passdb sql"
28305          not_userdb="$not_userdb sql"
28306  fi
28307
28308
28309 if test "x$with_lua_plugin" = "xyes"; then
28310  AUTH_LUA_PLUGIN_TRUE=
28311  AUTH_LUA_PLUGIN_FALSE='#'
28312else
28313  AUTH_LUA_PLUGIN_TRUE='#'
28314  AUTH_LUA_PLUGIN_FALSE=
28315fi
28316
28317 if test "x$with_lua" = "xyes"; then
28318  HAVE_LUA_TRUE=
28319  HAVE_LUA_FALSE='#'
28320else
28321  HAVE_LUA_TRUE='#'
28322  HAVE_LUA_FALSE=
28323fi
28324
28325if test "x$with_lua" = "xyes"; then :
28326  if test "x$with_lua_plugin" = "xyes"; then :
28327  userdb="$userdb lua (plugin)"; passdb="$passdb lua (plugin)"
28328elif userdb="$userdb lua"; passdb="$passdb lua"; then :
28329
28330fi
28331fi
28332 if test "$dlua_with_yields" = "yes"; then
28333  DLUA_WITH_YIELDS_TRUE=
28334  DLUA_WITH_YIELDS_FALSE='#'
28335else
28336  DLUA_WITH_YIELDS_TRUE='#'
28337  DLUA_WITH_YIELDS_FALSE=
28338fi
28339
28340
28341if test $have_modules = yes; then
28342
28343$as_echo "#define HAVE_MODULES /**/" >>confdefs.h
28344
28345
28346
28347  # shrext_cmds comes from libtool.m4
28348  module=yes eval MODULE_SUFFIX=$shrext_cmds
28349  if test "$MODULE_SUFFIX" = ""; then
28350    # too old libtool?
28351    MODULE_SUFFIX=.so
28352  fi
28353
28354cat >>confdefs.h <<_ACEOF
28355#define MODULE_SUFFIX "$MODULE_SUFFIX"
28356_ACEOF
28357
28358
28359fi
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28379$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28380if ${ac_cv_c_bigendian+:} false; then :
28381  $as_echo_n "(cached) " >&6
28382else
28383  ac_cv_c_bigendian=unknown
28384    # See if we're dealing with a universal compiler.
28385    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28386/* end confdefs.h.  */
28387#ifndef __APPLE_CC__
28388	       not a universal capable compiler
28389	     #endif
28390	     typedef int dummy;
28391
28392_ACEOF
28393if ac_fn_c_try_compile "$LINENO"; then :
28394
28395	# Check for potential -arch flags.  It is not universal unless
28396	# there are at least two -arch flags with different values.
28397	ac_arch=
28398	ac_prev=
28399	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28400	 if test -n "$ac_prev"; then
28401	   case $ac_word in
28402	     i?86 | x86_64 | ppc | ppc64)
28403	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28404		 ac_arch=$ac_word
28405	       else
28406		 ac_cv_c_bigendian=universal
28407		 break
28408	       fi
28409	       ;;
28410	   esac
28411	   ac_prev=
28412	 elif test "x$ac_word" = "x-arch"; then
28413	   ac_prev=arch
28414	 fi
28415       done
28416fi
28417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28418    if test $ac_cv_c_bigendian = unknown; then
28419      # See if sys/param.h defines the BYTE_ORDER macro.
28420      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28421/* end confdefs.h.  */
28422#include <sys/types.h>
28423	     #include <sys/param.h>
28424
28425int
28426main ()
28427{
28428#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28429		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28430		     && LITTLE_ENDIAN)
28431	      bogus endian macros
28432	     #endif
28433
28434  ;
28435  return 0;
28436}
28437_ACEOF
28438if ac_fn_c_try_compile "$LINENO"; then :
28439  # It does; now see whether it defined to BIG_ENDIAN or not.
28440	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28441/* end confdefs.h.  */
28442#include <sys/types.h>
28443		#include <sys/param.h>
28444
28445int
28446main ()
28447{
28448#if BYTE_ORDER != BIG_ENDIAN
28449		 not big endian
28450		#endif
28451
28452  ;
28453  return 0;
28454}
28455_ACEOF
28456if ac_fn_c_try_compile "$LINENO"; then :
28457  ac_cv_c_bigendian=yes
28458else
28459  ac_cv_c_bigendian=no
28460fi
28461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28462fi
28463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28464    fi
28465    if test $ac_cv_c_bigendian = unknown; then
28466      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28468/* end confdefs.h.  */
28469#include <limits.h>
28470
28471int
28472main ()
28473{
28474#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28475	      bogus endian macros
28476	     #endif
28477
28478  ;
28479  return 0;
28480}
28481_ACEOF
28482if ac_fn_c_try_compile "$LINENO"; then :
28483  # It does; now see whether it defined to _BIG_ENDIAN or not.
28484	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28485/* end confdefs.h.  */
28486#include <limits.h>
28487
28488int
28489main ()
28490{
28491#ifndef _BIG_ENDIAN
28492		 not big endian
28493		#endif
28494
28495  ;
28496  return 0;
28497}
28498_ACEOF
28499if ac_fn_c_try_compile "$LINENO"; then :
28500  ac_cv_c_bigendian=yes
28501else
28502  ac_cv_c_bigendian=no
28503fi
28504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28505fi
28506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507    fi
28508    if test $ac_cv_c_bigendian = unknown; then
28509      # Compile a test program.
28510      if test "$cross_compiling" = yes; then :
28511  # Try to guess by grepping values from an object file.
28512	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28513/* end confdefs.h.  */
28514short int ascii_mm[] =
28515		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28516		short int ascii_ii[] =
28517		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28518		int use_ascii (int i) {
28519		  return ascii_mm[i] + ascii_ii[i];
28520		}
28521		short int ebcdic_ii[] =
28522		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28523		short int ebcdic_mm[] =
28524		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28525		int use_ebcdic (int i) {
28526		  return ebcdic_mm[i] + ebcdic_ii[i];
28527		}
28528		extern int foo;
28529
28530int
28531main ()
28532{
28533return use_ascii (foo) == use_ebcdic (foo);
28534  ;
28535  return 0;
28536}
28537_ACEOF
28538if ac_fn_c_try_compile "$LINENO"; then :
28539  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28540	      ac_cv_c_bigendian=yes
28541	    fi
28542	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28543	      if test "$ac_cv_c_bigendian" = unknown; then
28544		ac_cv_c_bigendian=no
28545	      else
28546		# finding both strings is unlikely to happen, but who knows?
28547		ac_cv_c_bigendian=unknown
28548	      fi
28549	    fi
28550fi
28551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28552else
28553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28554/* end confdefs.h.  */
28555$ac_includes_default
28556int
28557main ()
28558{
28559
28560	     /* Are we little or big endian?  From Harbison&Steele.  */
28561	     union
28562	     {
28563	       long int l;
28564	       char c[sizeof (long int)];
28565	     } u;
28566	     u.l = 1;
28567	     return u.c[sizeof (long int) - 1] == 1;
28568
28569  ;
28570  return 0;
28571}
28572_ACEOF
28573if ac_fn_c_try_run "$LINENO"; then :
28574  ac_cv_c_bigendian=no
28575else
28576  ac_cv_c_bigendian=yes
28577fi
28578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28579  conftest.$ac_objext conftest.beam conftest.$ac_ext
28580fi
28581
28582    fi
28583fi
28584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28585$as_echo "$ac_cv_c_bigendian" >&6; }
28586 case $ac_cv_c_bigendian in #(
28587   yes)
28588     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28589;; #(
28590   no)
28591      ;; #(
28592   universal)
28593
28594$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28595
28596     ;; #(
28597   *)
28598     as_fn_error $? "unknown endianness
28599 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28600 esac
28601
28602
28603
28604  have_ipv6=no
28605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
28606$as_echo_n "checking for IPv6... " >&6; }
28607  if ${i_cv_type_in6_addr+:} false; then :
28608  $as_echo_n "(cached) " >&6
28609else
28610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28611/* end confdefs.h.  */
28612
28613  #include <sys/types.h>
28614  #include <sys/socket.h>
28615  #include <netinet/in.h>
28616  #include <netdb.h>
28617  #include <arpa/inet.h>
28618int
28619main ()
28620{
28621struct in6_addr i; (void)i;
28622  ;
28623  return 0;
28624}
28625_ACEOF
28626if ac_fn_c_try_compile "$LINENO"; then :
28627  i_cv_type_in6_addr=yes
28628else
28629  i_cv_type_in6_addr=no
28630fi
28631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28632fi
28633
28634  if test $i_cv_type_in6_addr = yes; then
28635
28636$as_echo "#define HAVE_IPV6 /**/" >>confdefs.h
28637
28638          have_ipv6=yes
28639  else
28640          as_fn_error $? "Can't build without IPv6 support." "$LINENO" 5
28641  fi
28642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i_cv_type_in6_addr" >&5
28643$as_echo "$i_cv_type_in6_addr" >&6; }
28644
28645
28646
28647CORE_LIBS='$(top_builddir)/src/lib-dovecot/libdovecot.la'
28648STORAGE_LIB='$(top_builddir)/src/lib-storage/libdovecot-storage.la'
28649
28650LINKED_STORAGE_LDADD=
28651
28652
28653
28654LIBDOVECOT_LA_LIBS='\
28655	$(top_builddir)/src/lib-dict-extra/libdict_extra.la \
28656	$(top_builddir)/src/lib-oauth2/liboauth2.la \
28657	$(top_builddir)/src/lib-smtp/libsmtp.la \
28658	$(top_builddir)/src/lib-program-client/libprogram_client.la \
28659	$(top_builddir)/src/lib-master/libmaster.la \
28660	$(top_builddir)/src/lib-settings/libsettings.la \
28661	$(top_builddir)/src/lib-old-stats/libold_stats.la \
28662	$(top_builddir)/src/lib-http/libhttp.la \
28663	$(top_builddir)/src/lib-fs/libfs.la \
28664	$(top_builddir)/src/lib-dict/libdict.la \
28665	$(top_builddir)/src/lib-dns/libdns.la \
28666	$(top_builddir)/src/lib-imap/libimap.la \
28667	$(top_builddir)/src/lib-mail/libmail.la \
28668	$(top_builddir)/src/lib-sasl/libsasl.la \
28669	$(top_builddir)/src/lib-auth/libauth.la \
28670	$(top_builddir)/src/lib-charset/libcharset.la \
28671	$(top_builddir)/src/lib-ssl-iostream/libssl_iostream.la \
28672	$(top_builddir)/src/lib-dcrypt/libdcrypt.la \
28673	$(top_builddir)/src/lib-test/libtest.la \
28674	$(top_builddir)/src/lib/liblib.la'
28675# This is used in dovecot-config, which is grepped in dovecot.m4,
28676# so it needs to be in a single line.
28677LIBDOVECOT_LA_LIBS=`echo "$LIBDOVECOT_LA_LIBS" | tr -d '\t\n\\\\'`
28678
28679if test "$want_shared_libs" = "yes"; then
28680  LIBDOVECOT_DEPS='$(top_builddir)/src/lib-dovecot/libdovecot.la'
28681  LIBDOVECOT="$LIBDOVECOT_DEPS \$(MODULE_LIBS)"
28682  LIBDOVECOT_STORAGE_DEPS='$(top_builddir)/src/lib-storage/libdovecot-storage.la $(top_builddir)/src/lib-imap-storage/libimap-storage.la'
28683  LIBDOVECOT_LOGIN='$(top_builddir)/src/login-common/libdovecot-login.la'
28684  LIBDOVECOT_LDA='$(top_builddir)/src/lib-lda/libdovecot-lda.la'
28685else
28686  LIBDOVECOT_DEPS="$LIBDOVECOT_LA_LIBS"
28687  LIBDOVECOT="$LIBDOVECOT_DEPS \$(LIBICONV) \$(MODULE_LIBS)"
28688  LIBDOVECOT_STORAGE_DEPS='$(top_builddir)/src/lib-storage/libstorage.la'
28689  LIBDOVECOT_LOGIN='$(top_builddir)/src/login-common/liblogin.la'
28690  LIBDOVECOT_LDA='$(top_builddir)/src/lib-lda/liblda.la'
28691fi
28692if test $want_ldap != no; then
28693  LIBDOVECOT_LDAP='$(top_builddir)/src/lib-ldap/libdovecot-ldap.la'
28694else
28695  LIBDOVECOT_LDAP=''
28696fi
28697LIBDOVECOT_STORAGE="$LIBDOVECOT_STORAGE_DEPS"
28698LIBDOVECOT_DSYNC='$(top_builddir)/src/doveadm/dsync/libdovecot-dsync.la'
28699LIBDOVECOT_SQL='$(top_builddir)/src/lib-sql/libsql.la'
28700LIBDOVECOT_COMPRESS='$(top_builddir)/src/lib-compression/libcompression.la'
28701LIBDOVECOT_LIBFTS='$(top_builddir)/src/lib-fts/libfts.la'
28702
28703if test $with_lua != no; then
28704  LIBDOVECOT_LUA='$(top_builddir)/src/lib-lua/libdovecot-lua.la'
28705else
28706  LIBDOVECOT_LUA=''
28707fi
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726build_pgsql=no
28727build_mysql=no
28728build_sqlite=no
28729build_cassandra=no
28730for driver in $sql_drivers; do
28731  if test "$driver" = "pgsql"; then
28732
28733$as_echo "#define BUILD_PGSQL /**/" >>confdefs.h
28734
28735    build_pgsql=yes
28736  elif test "$driver" = "mysql"; then
28737
28738$as_echo "#define BUILD_MYSQL /**/" >>confdefs.h
28739
28740    build_mysql=yes
28741  elif test "$driver" = "sqlite"; then
28742
28743$as_echo "#define BUILD_SQLITE /**/" >>confdefs.h
28744
28745    build_sqlite=yes
28746  elif test "$driver" = "cassandra"; then
28747
28748$as_echo "#define BUILD_CASSANDRA /**/" >>confdefs.h
28749
28750    build_cassandra=yes
28751  fi
28752done
28753if test $build_pgsql = no; then
28754  not_sql_drivers="$not_sql_drivers pgsql"
28755fi
28756if test $build_mysql = no; then
28757  not_sql_drivers="$not_sql_drivers mysql"
28758fi
28759if test $build_sqlite = no; then
28760  not_sql_drivers="$not_sql_drivers sqlite"
28761fi
28762if test $build_cassandra = no; then
28763  not_sql_drivers="$not_sql_drivers cassandra"
28764fi
28765
28766
28767 if test "$build_pgsql" = "yes"; then
28768  BUILD_PGSQL_TRUE=
28769  BUILD_PGSQL_FALSE='#'
28770else
28771  BUILD_PGSQL_TRUE='#'
28772  BUILD_PGSQL_FALSE=
28773fi
28774
28775 if test "$build_mysql" = "yes"; then
28776  BUILD_MYSQL_TRUE=
28777  BUILD_MYSQL_FALSE='#'
28778else
28779  BUILD_MYSQL_TRUE='#'
28780  BUILD_MYSQL_FALSE=
28781fi
28782
28783 if test "$build_sqlite" = "yes"; then
28784  BUILD_SQLITE_TRUE=
28785  BUILD_SQLITE_FALSE='#'
28786else
28787  BUILD_SQLITE_TRUE='#'
28788  BUILD_SQLITE_FALSE=
28789fi
28790
28791 if test "$build_cassandra" = "yes"; then
28792  BUILD_CASSANDRA_TRUE=
28793  BUILD_CASSANDRA_FALSE='#'
28794else
28795  BUILD_CASSANDRA_TRUE='#'
28796  BUILD_CASSANDRA_FALSE=
28797fi
28798
28799 if test "$want_sql" = "plugin"; then
28800  SQL_PLUGINS_TRUE=
28801  SQL_PLUGINS_FALSE='#'
28802else
28803  SQL_PLUGINS_TRUE='#'
28804  SQL_PLUGINS_FALSE=
28805fi
28806
28807
28808
28809COMPRESS_LIBS=
28810
28811
28812  if test "$want_zlib" != "no"; then
28813    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28814if test "x$ac_cv_header_zlib_h" = xyes; then :
28815
28816      have_zlib=yes
28817      have_compress_lib=yes
28818
28819$as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
28820
28821      COMPRESS_LIBS="$COMPRESS_LIBS -lz"
28822
28823else
28824
28825      if test "$want_zlib" = "yes"; then
28826        as_fn_error $? "Can't build with zlib support: zlib.h not found" "$LINENO" 5
28827      fi
28828
28829fi
28830
28831
28832  fi
28833
28834
28835  if test "$want_bzlib" != "no"; then :
28836
28837    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
28838if test "x$ac_cv_header_bzlib_h" = xyes; then :
28839
28840      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzdopen in -lbz2" >&5
28841$as_echo_n "checking for BZ2_bzdopen in -lbz2... " >&6; }
28842if ${ac_cv_lib_bz2_BZ2_bzdopen+:} false; then :
28843  $as_echo_n "(cached) " >&6
28844else
28845  ac_check_lib_save_LIBS=$LIBS
28846LIBS="-lbz2  $LIBS"
28847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28848/* end confdefs.h.  */
28849
28850/* Override any GCC internal prototype to avoid an error.
28851   Use char because int might match the return type of a GCC
28852   builtin and then its argument prototype would still apply.  */
28853#ifdef __cplusplus
28854extern "C"
28855#endif
28856char BZ2_bzdopen ();
28857int
28858main ()
28859{
28860return BZ2_bzdopen ();
28861  ;
28862  return 0;
28863}
28864_ACEOF
28865if ac_fn_c_try_link "$LINENO"; then :
28866  ac_cv_lib_bz2_BZ2_bzdopen=yes
28867else
28868  ac_cv_lib_bz2_BZ2_bzdopen=no
28869fi
28870rm -f core conftest.err conftest.$ac_objext \
28871    conftest$ac_exeext conftest.$ac_ext
28872LIBS=$ac_check_lib_save_LIBS
28873fi
28874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzdopen" >&5
28875$as_echo "$ac_cv_lib_bz2_BZ2_bzdopen" >&6; }
28876if test "x$ac_cv_lib_bz2_BZ2_bzdopen" = xyes; then :
28877
28878        have_bzlib=yes
28879        have_compress_lib=yes
28880
28881$as_echo "#define HAVE_BZLIB /**/" >>confdefs.h
28882
28883        COMPRESS_LIBS="$COMPRESS_LIBS -lbz2"
28884
28885else
28886
28887        if test "$want_bzlib" = "yes"; then :
28888
28889          as_fn_error $? "Can't build with bzlib support: libbz2 not found" "$LINENO" 5
28890
28891fi
28892
28893fi
28894
28895
28896else
28897
28898      if test "$want_bzlib" = "yes"; then :
28899
28900        as_fn_error $? "Can't build with bzlib support: bzlib.h not found" "$LINENO" 5
28901
28902fi
28903
28904fi
28905
28906
28907
28908fi
28909
28910
28911  if test "$want_lzma" != "no"; then :
28912
28913    ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
28914if test "x$ac_cv_header_lzma_h" = xyes; then :
28915
28916      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
28917$as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
28918if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
28919  $as_echo_n "(cached) " >&6
28920else
28921  ac_check_lib_save_LIBS=$LIBS
28922LIBS="-llzma  $LIBS"
28923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28924/* end confdefs.h.  */
28925
28926/* Override any GCC internal prototype to avoid an error.
28927   Use char because int might match the return type of a GCC
28928   builtin and then its argument prototype would still apply.  */
28929#ifdef __cplusplus
28930extern "C"
28931#endif
28932char lzma_stream_decoder ();
28933int
28934main ()
28935{
28936return lzma_stream_decoder ();
28937  ;
28938  return 0;
28939}
28940_ACEOF
28941if ac_fn_c_try_link "$LINENO"; then :
28942  ac_cv_lib_lzma_lzma_stream_decoder=yes
28943else
28944  ac_cv_lib_lzma_lzma_stream_decoder=no
28945fi
28946rm -f core conftest.err conftest.$ac_objext \
28947    conftest$ac_exeext conftest.$ac_ext
28948LIBS=$ac_check_lib_save_LIBS
28949fi
28950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
28951$as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
28952if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
28953
28954        have_lzma=yes
28955        have_compress_lib=yes
28956
28957$as_echo "#define HAVE_LZMA /**/" >>confdefs.h
28958
28959        COMPRESS_LIBS="$COMPRESS_LIBS -llzma"
28960
28961else
28962
28963        if test "$want_lzma" = "yes"; then :
28964
28965          as_fn_error $? "Can't build with lzma support: liblzma not found" "$LINENO" 5
28966
28967fi
28968
28969fi
28970
28971
28972else
28973
28974      if test "$want_lzma" = "yes"; then :
28975
28976        as_fn_error $? "Can't build with lzma support: lzma.h not found" "$LINENO" 5
28977
28978fi
28979
28980fi
28981
28982
28983
28984fi
28985
28986
28987  if test "$want_lz4" != "no"; then :
28988
28989    ac_fn_c_check_header_mongrel "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
28990if test "x$ac_cv_header_lz4_h" = xyes; then :
28991
28992      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress in -llz4" >&5
28993$as_echo_n "checking for LZ4_compress in -llz4... " >&6; }
28994if ${ac_cv_lib_lz4_LZ4_compress+:} false; then :
28995  $as_echo_n "(cached) " >&6
28996else
28997  ac_check_lib_save_LIBS=$LIBS
28998LIBS="-llz4  $LIBS"
28999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29000/* end confdefs.h.  */
29001
29002/* Override any GCC internal prototype to avoid an error.
29003   Use char because int might match the return type of a GCC
29004   builtin and then its argument prototype would still apply.  */
29005#ifdef __cplusplus
29006extern "C"
29007#endif
29008char LZ4_compress ();
29009int
29010main ()
29011{
29012return LZ4_compress ();
29013  ;
29014  return 0;
29015}
29016_ACEOF
29017if ac_fn_c_try_link "$LINENO"; then :
29018  ac_cv_lib_lz4_LZ4_compress=yes
29019else
29020  ac_cv_lib_lz4_LZ4_compress=no
29021fi
29022rm -f core conftest.err conftest.$ac_objext \
29023    conftest$ac_exeext conftest.$ac_ext
29024LIBS=$ac_check_lib_save_LIBS
29025fi
29026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress" >&5
29027$as_echo "$ac_cv_lib_lz4_LZ4_compress" >&6; }
29028if test "x$ac_cv_lib_lz4_LZ4_compress" = xyes; then :
29029
29030        have_lz4=yes
29031        have_compress_lib=yes
29032
29033$as_echo "#define HAVE_LZ4 /**/" >>confdefs.h
29034
29035        COMPRESS_LIBS="$COMPRESS_LIBS -llz4"
29036
29037else
29038
29039        if test "$want_lz4" = "yes"; then :
29040
29041          as_fn_error $? "Can't build with lz4 support: liblz4 not found" "$LINENO" 5
29042
29043fi
29044
29045fi
29046
29047      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
29048$as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
29049if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then :
29050  $as_echo_n "(cached) " >&6
29051else
29052  ac_check_lib_save_LIBS=$LIBS
29053LIBS="-llz4  $LIBS"
29054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29055/* end confdefs.h.  */
29056
29057/* Override any GCC internal prototype to avoid an error.
29058   Use char because int might match the return type of a GCC
29059   builtin and then its argument prototype would still apply.  */
29060#ifdef __cplusplus
29061extern "C"
29062#endif
29063char LZ4_compress_default ();
29064int
29065main ()
29066{
29067return LZ4_compress_default ();
29068  ;
29069  return 0;
29070}
29071_ACEOF
29072if ac_fn_c_try_link "$LINENO"; then :
29073  ac_cv_lib_lz4_LZ4_compress_default=yes
29074else
29075  ac_cv_lib_lz4_LZ4_compress_default=no
29076fi
29077rm -f core conftest.err conftest.$ac_objext \
29078    conftest$ac_exeext conftest.$ac_ext
29079LIBS=$ac_check_lib_save_LIBS
29080fi
29081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
29082$as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
29083if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then :
29084
29085
29086$as_echo "#define HAVE_LZ4_COMPRESS_DEFAULT /**/" >>confdefs.h
29087
29088
29089fi
29090
29091
29092else
29093
29094      if test "$want_lz4" = "yes"; then :
29095
29096        as_fn_error $? "Can't build with lz4 support: lz4.h not found" "$LINENO" 5
29097
29098fi
29099
29100fi
29101
29102
29103
29104fi
29105
29106
29107  have_zstd=no
29108
29109  if test $want_zstd = yes; then :
29110
29111
29112pkg_failed=no
29113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
29114$as_echo_n "checking for ZSTD... " >&6; }
29115
29116if test -n "$ZSTD_CFLAGS"; then
29117    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
29118 elif test -n "$PKG_CONFIG"; then
29119    if test -n "$PKG_CONFIG" && \
29120    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
29121  ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
29122  ac_status=$?
29123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29124  test $ac_status = 0; }; then
29125  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
29126		      test "x$?" != "x0" && pkg_failed=yes
29127else
29128  pkg_failed=yes
29129fi
29130 else
29131    pkg_failed=untried
29132fi
29133if test -n "$ZSTD_LIBS"; then
29134    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
29135 elif test -n "$PKG_CONFIG"; then
29136    if test -n "$PKG_CONFIG" && \
29137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
29138  ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
29139  ac_status=$?
29140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29141  test $ac_status = 0; }; then
29142  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
29143		      test "x$?" != "x0" && pkg_failed=yes
29144else
29145  pkg_failed=yes
29146fi
29147 else
29148    pkg_failed=untried
29149fi
29150
29151
29152
29153if test $pkg_failed = yes; then
29154   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29155$as_echo "no" >&6; }
29156
29157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29158        _pkg_short_errors_supported=yes
29159else
29160        _pkg_short_errors_supported=no
29161fi
29162        if test $_pkg_short_errors_supported = yes; then
29163	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
29164        else
29165	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
29166        fi
29167	# Put the nasty error message in config.log where it belongs
29168	echo "$ZSTD_PKG_ERRORS" >&5
29169
29170	as_fn_error $? "libzstd not found" "$LINENO" 5
29171elif test $pkg_failed = untried; then
29172     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29173$as_echo "no" >&6; }
29174	as_fn_error $? "libzstd not found" "$LINENO" 5
29175else
29176	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
29177	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
29178        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29179$as_echo "yes" >&6; }
29180	have_zstd=yes
29181fi
29182
29183else
29184  if test $want_zstd != no; then :
29185
29186
29187pkg_failed=no
29188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
29189$as_echo_n "checking for ZSTD... " >&6; }
29190
29191if test -n "$ZSTD_CFLAGS"; then
29192    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
29193 elif test -n "$PKG_CONFIG"; then
29194    if test -n "$PKG_CONFIG" && \
29195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
29196  ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
29197  ac_status=$?
29198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29199  test $ac_status = 0; }; then
29200  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
29201		      test "x$?" != "x0" && pkg_failed=yes
29202else
29203  pkg_failed=yes
29204fi
29205 else
29206    pkg_failed=untried
29207fi
29208if test -n "$ZSTD_LIBS"; then
29209    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
29210 elif test -n "$PKG_CONFIG"; then
29211    if test -n "$PKG_CONFIG" && \
29212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
29213  ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
29214  ac_status=$?
29215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29216  test $ac_status = 0; }; then
29217  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
29218		      test "x$?" != "x0" && pkg_failed=yes
29219else
29220  pkg_failed=yes
29221fi
29222 else
29223    pkg_failed=untried
29224fi
29225
29226
29227
29228if test $pkg_failed = yes; then
29229   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29230$as_echo "no" >&6; }
29231
29232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29233        _pkg_short_errors_supported=yes
29234else
29235        _pkg_short_errors_supported=no
29236fi
29237        if test $_pkg_short_errors_supported = yes; then
29238	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
29239        else
29240	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
29241        fi
29242	# Put the nasty error message in config.log where it belongs
29243	echo "$ZSTD_PKG_ERRORS" >&5
29244
29245	have_zstd=no
29246elif test $pkg_failed = untried; then
29247     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29248$as_echo "no" >&6; }
29249	have_zstd=no
29250else
29251	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
29252	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
29253        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254$as_echo "yes" >&6; }
29255	have_zstd=yes
29256fi
29257
29258fi
29259
29260fi
29261
29262  if test $have_zstd = yes; then :
29263
29264    have_compress_lib=yes
29265    COMPRESS_LIBS="$COMPRESS_LIBS $ZSTD_LIBS"
29266
29267$as_echo "#define HAVE_ZSTD /**/" >>confdefs.h
29268
29269    ac_fn_c_check_decl "$LINENO" "ZSTD_error_parameter_unsupported" "ac_cv_have_decl_ZSTD_error_parameter_unsupported" "#include <zstd_errors.h>
29270"
29271if test "x$ac_cv_have_decl_ZSTD_error_parameter_unsupported" = xyes; then :
29272  ac_have_decl=1
29273else
29274  ac_have_decl=0
29275fi
29276
29277cat >>confdefs.h <<_ACEOF
29278#define HAVE_DECL_ZSTD_ERROR_PARAMETER_UNSUPPORTED $ac_have_decl
29279_ACEOF
29280ac_fn_c_check_decl "$LINENO" "ZSTD_minCLevel" "ac_cv_have_decl_ZSTD_minCLevel" "#include <zstd_errors.h>
29281"
29282if test "x$ac_cv_have_decl_ZSTD_minCLevel" = xyes; then :
29283  ac_have_decl=1
29284else
29285  ac_have_decl=0
29286fi
29287
29288cat >>confdefs.h <<_ACEOF
29289#define HAVE_DECL_ZSTD_MINCLEVEL $ac_have_decl
29290_ACEOF
29291
29292    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_getErrorCode in -lzstd" >&5
29293$as_echo_n "checking for ZSTD_getErrorCode in -lzstd... " >&6; }
29294if ${ac_cv_lib_zstd_ZSTD_getErrorCode+:} false; then :
29295  $as_echo_n "(cached) " >&6
29296else
29297  ac_check_lib_save_LIBS=$LIBS
29298LIBS="-lzstd  $LIBS"
29299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29300/* end confdefs.h.  */
29301
29302/* Override any GCC internal prototype to avoid an error.
29303   Use char because int might match the return type of a GCC
29304   builtin and then its argument prototype would still apply.  */
29305#ifdef __cplusplus
29306extern "C"
29307#endif
29308char ZSTD_getErrorCode ();
29309int
29310main ()
29311{
29312return ZSTD_getErrorCode ();
29313  ;
29314  return 0;
29315}
29316_ACEOF
29317if ac_fn_c_try_link "$LINENO"; then :
29318  ac_cv_lib_zstd_ZSTD_getErrorCode=yes
29319else
29320  ac_cv_lib_zstd_ZSTD_getErrorCode=no
29321fi
29322rm -f core conftest.err conftest.$ac_objext \
29323    conftest$ac_exeext conftest.$ac_ext
29324LIBS=$ac_check_lib_save_LIBS
29325fi
29326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_getErrorCode" >&5
29327$as_echo "$ac_cv_lib_zstd_ZSTD_getErrorCode" >&6; }
29328if test "x$ac_cv_lib_zstd_ZSTD_getErrorCode" = xyes; then :
29329
29330
29331$as_echo "#define HAVE_ZSTD_GETERRORCODE 1" >>confdefs.h
29332
29333
29334fi
29335
29336
29337fi
29338
29339   if test "$have_zstd" = "yes"; then
29340  BUILD_ZSTD_TRUE=
29341  BUILD_ZSTD_FALSE='#'
29342else
29343  BUILD_ZSTD_TRUE='#'
29344  BUILD_ZSTD_FALSE=
29345fi
29346
29347
29348
29349
29350
29351 if test "$have_compress_lib" = "yes"; then
29352  BUILD_ZLIB_PLUGIN_TRUE=
29353  BUILD_ZLIB_PLUGIN_FALSE='#'
29354else
29355  BUILD_ZLIB_PLUGIN_TRUE='#'
29356  BUILD_ZLIB_PLUGIN_FALSE=
29357fi
29358
29359
29360
29361  RPCGEN=${RPCGEN-rpcgen}
29362  if ! $RPCGEN -c /dev/null > /dev/null; then
29363    RPCGEN=
29364  fi
29365
29366
29367  have_rquota=no
29368  if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then
29369
29370pkg_failed=no
29371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTIRPC" >&5
29372$as_echo_n "checking for LIBTIRPC... " >&6; }
29373
29374if test -n "$LIBTIRPC_CFLAGS"; then
29375    pkg_cv_LIBTIRPC_CFLAGS="$LIBTIRPC_CFLAGS"
29376 elif test -n "$PKG_CONFIG"; then
29377    if test -n "$PKG_CONFIG" && \
29378    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
29379  ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
29380  ac_status=$?
29381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29382  test $ac_status = 0; }; then
29383  pkg_cv_LIBTIRPC_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
29384		      test "x$?" != "x0" && pkg_failed=yes
29385else
29386  pkg_failed=yes
29387fi
29388 else
29389    pkg_failed=untried
29390fi
29391if test -n "$LIBTIRPC_LIBS"; then
29392    pkg_cv_LIBTIRPC_LIBS="$LIBTIRPC_LIBS"
29393 elif test -n "$PKG_CONFIG"; then
29394    if test -n "$PKG_CONFIG" && \
29395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
29396  ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
29397  ac_status=$?
29398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29399  test $ac_status = 0; }; then
29400  pkg_cv_LIBTIRPC_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
29401		      test "x$?" != "x0" && pkg_failed=yes
29402else
29403  pkg_failed=yes
29404fi
29405 else
29406    pkg_failed=untried
29407fi
29408
29409
29410
29411if test $pkg_failed = yes; then
29412   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29413$as_echo "no" >&6; }
29414
29415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29416        _pkg_short_errors_supported=yes
29417else
29418        _pkg_short_errors_supported=no
29419fi
29420        if test $_pkg_short_errors_supported = yes; then
29421	        LIBTIRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtirpc" 2>&1`
29422        else
29423	        LIBTIRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtirpc" 2>&1`
29424        fi
29425	# Put the nasty error message in config.log where it belongs
29426	echo "$LIBTIRPC_PKG_ERRORS" >&5
29427
29428
29429      ac_fn_c_check_header_mongrel "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default"
29430if test "x$ac_cv_header_rpc_rpc_h" = xyes; then :
29431
29432	have_rquota=yes
29433
29434fi
29435
29436
29437
29438elif test $pkg_failed = untried; then
29439     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29440$as_echo "no" >&6; }
29441
29442      ac_fn_c_check_header_mongrel "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default"
29443if test "x$ac_cv_header_rpc_rpc_h" = xyes; then :
29444
29445	have_rquota=yes
29446
29447fi
29448
29449
29450
29451else
29452	LIBTIRPC_CFLAGS=$pkg_cv_LIBTIRPC_CFLAGS
29453	LIBTIRPC_LIBS=$pkg_cv_LIBTIRPC_LIBS
29454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29455$as_echo "yes" >&6; }
29456
29457      have_rquota=yes
29458      QUOTA_LIBS="$QUOTA_LIBS \$(LIBTIRPC_LIBS)"
29459
29460fi
29461  fi
29462  if test "$have_rquota" = yes; then
29463
29464$as_echo "#define HAVE_RQUOTA /**/" >>confdefs.h
29465
29466  fi
29467   if test "$have_rquota" = "yes"; then
29468  HAVE_RQUOTA_TRUE=
29469  HAVE_RQUOTA_FALSE='#'
29470else
29471  HAVE_RQUOTA_TRUE='#'
29472  HAVE_RQUOTA_FALSE=
29473fi
29474
29475
29476
29477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing quota_open" >&5
29478$as_echo_n "checking for library containing quota_open... " >&6; }
29479if ${ac_cv_search_quota_open+:} false; then :
29480  $as_echo_n "(cached) " >&6
29481else
29482  ac_func_search_save_LIBS=$LIBS
29483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29484/* end confdefs.h.  */
29485
29486/* Override any GCC internal prototype to avoid an error.
29487   Use char because int might match the return type of a GCC
29488   builtin and then its argument prototype would still apply.  */
29489#ifdef __cplusplus
29490extern "C"
29491#endif
29492char quota_open ();
29493int
29494main ()
29495{
29496return quota_open ();
29497  ;
29498  return 0;
29499}
29500_ACEOF
29501for ac_lib in '' quota; do
29502  if test -z "$ac_lib"; then
29503    ac_res="none required"
29504  else
29505    ac_res=-l$ac_lib
29506    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29507  fi
29508  if ac_fn_c_try_link "$LINENO"; then :
29509  ac_cv_search_quota_open=$ac_res
29510fi
29511rm -f core conftest.err conftest.$ac_objext \
29512    conftest$ac_exeext
29513  if ${ac_cv_search_quota_open+:} false; then :
29514  break
29515fi
29516done
29517if ${ac_cv_search_quota_open+:} false; then :
29518
29519else
29520  ac_cv_search_quota_open=no
29521fi
29522rm conftest.$ac_ext
29523LIBS=$ac_func_search_save_LIBS
29524fi
29525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_quota_open" >&5
29526$as_echo "$ac_cv_search_quota_open" >&6; }
29527ac_res=$ac_cv_search_quota_open
29528if test "$ac_res" != no; then :
29529  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29530
29531
29532$as_echo "#define HAVE_QUOTA_OPEN /**/" >>confdefs.h
29533
29534    QUOTA_LIBS="$QUOTA_LIBS -lquota"
29535
29536fi
29537
29538
29539
29540
29541
29542fts=" squat"
29543not_fts=""
29544
29545
29546  have_solr=no
29547  if test "$want_solr" != "no"; then
29548        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_Parse in -lexpat" >&5
29549$as_echo_n "checking for XML_Parse in -lexpat... " >&6; }
29550if ${ac_cv_lib_expat_XML_Parse+:} false; then :
29551  $as_echo_n "(cached) " >&6
29552else
29553  ac_check_lib_save_LIBS=$LIBS
29554LIBS="-lexpat  $LIBS"
29555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29556/* end confdefs.h.  */
29557
29558/* Override any GCC internal prototype to avoid an error.
29559   Use char because int might match the return type of a GCC
29560   builtin and then its argument prototype would still apply.  */
29561#ifdef __cplusplus
29562extern "C"
29563#endif
29564char XML_Parse ();
29565int
29566main ()
29567{
29568return XML_Parse ();
29569  ;
29570  return 0;
29571}
29572_ACEOF
29573if ac_fn_c_try_link "$LINENO"; then :
29574  ac_cv_lib_expat_XML_Parse=yes
29575else
29576  ac_cv_lib_expat_XML_Parse=no
29577fi
29578rm -f core conftest.err conftest.$ac_objext \
29579    conftest$ac_exeext conftest.$ac_ext
29580LIBS=$ac_check_lib_save_LIBS
29581fi
29582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_Parse" >&5
29583$as_echo "$ac_cv_lib_expat_XML_Parse" >&6; }
29584if test "x$ac_cv_lib_expat_XML_Parse" = xyes; then :
29585
29586      ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
29587if test "x$ac_cv_header_expat_h" = xyes; then :
29588
29589        have_solr=yes
29590        fts="$fts solr"
29591
29592else
29593
29594        if test $want_solr = yes; then
29595          as_fn_error $? "Can't build with Solr support: expat.h not found" "$LINENO" 5
29596        fi
29597
29598fi
29599
29600
29601
29602else
29603
29604      if test $want_solr = yes; then
29605        as_fn_error $? "Can't build with Solr support: libexpat not found" "$LINENO" 5
29606      fi
29607
29608fi
29609
29610  fi
29611   if test "$have_solr" = "yes"; then
29612  BUILD_SOLR_TRUE=
29613  BUILD_SOLR_FALSE='#'
29614else
29615  BUILD_SOLR_TRUE='#'
29616  BUILD_SOLR_FALSE=
29617fi
29618
29619
29620
29621  have_lucene=no
29622  if test "$want_lucene" = "yes"; then
29623
29624pkg_failed=no
29625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLUCENE" >&5
29626$as_echo_n "checking for CLUCENE... " >&6; }
29627
29628if test -n "$CLUCENE_CFLAGS"; then
29629    pkg_cv_CLUCENE_CFLAGS="$CLUCENE_CFLAGS"
29630 elif test -n "$PKG_CONFIG"; then
29631    if test -n "$PKG_CONFIG" && \
29632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
29633  ($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
29634  ac_status=$?
29635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29636  test $ac_status = 0; }; then
29637  pkg_cv_CLUCENE_CFLAGS=`$PKG_CONFIG --cflags "libclucene-core" 2>/dev/null`
29638		      test "x$?" != "x0" && pkg_failed=yes
29639else
29640  pkg_failed=yes
29641fi
29642 else
29643    pkg_failed=untried
29644fi
29645if test -n "$CLUCENE_LIBS"; then
29646    pkg_cv_CLUCENE_LIBS="$CLUCENE_LIBS"
29647 elif test -n "$PKG_CONFIG"; then
29648    if test -n "$PKG_CONFIG" && \
29649    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
29650  ($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
29651  ac_status=$?
29652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29653  test $ac_status = 0; }; then
29654  pkg_cv_CLUCENE_LIBS=`$PKG_CONFIG --libs "libclucene-core" 2>/dev/null`
29655		      test "x$?" != "x0" && pkg_failed=yes
29656else
29657  pkg_failed=yes
29658fi
29659 else
29660    pkg_failed=untried
29661fi
29662
29663
29664
29665if test $pkg_failed = yes; then
29666   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29667$as_echo "no" >&6; }
29668
29669if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29670        _pkg_short_errors_supported=yes
29671else
29672        _pkg_short_errors_supported=no
29673fi
29674        if test $_pkg_short_errors_supported = yes; then
29675	        CLUCENE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclucene-core" 2>&1`
29676        else
29677	        CLUCENE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclucene-core" 2>&1`
29678        fi
29679	# Put the nasty error message in config.log where it belongs
29680	echo "$CLUCENE_PKG_ERRORS" >&5
29681
29682
29683      # no pkg-config file for clucene. fallback to defaults.
29684      # FIXME: we should verify here that this actually works..
29685      CLUCENE_LIBS="-lclucene-shared -lclucene-core"
29686
29687elif test $pkg_failed = untried; then
29688     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29689$as_echo "no" >&6; }
29690
29691      # no pkg-config file for clucene. fallback to defaults.
29692      # FIXME: we should verify here that this actually works..
29693      CLUCENE_LIBS="-lclucene-shared -lclucene-core"
29694
29695else
29696	CLUCENE_CFLAGS=$pkg_cv_CLUCENE_CFLAGS
29697	CLUCENE_LIBS=$pkg_cv_CLUCENE_LIBS
29698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29699$as_echo "yes" >&6; }
29700
29701fi
29702    have_lucene=yes
29703    fts="$fts lucene"
29704  fi
29705
29706
29707  if test $want_stemmer != no; then
29708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sb_stemmer_new in -lclucene-contribs-lib" >&5
29709$as_echo_n "checking for sb_stemmer_new in -lclucene-contribs-lib... " >&6; }
29710if ${ac_cv_lib_stemmer_sb_stemmer_new+:} false; then :
29711  $as_echo_n "(cached) " >&6
29712else
29713  ac_check_lib_save_LIBS=$LIBS
29714LIBS="-lclucene-contribs-lib  $LIBS"
29715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29716/* end confdefs.h.  */
29717
29718/* Override any GCC internal prototype to avoid an error.
29719   Use char because int might match the return type of a GCC
29720   builtin and then its argument prototype would still apply.  */
29721#ifdef __cplusplus
29722extern "C"
29723#endif
29724char sb_stemmer_new ();
29725int
29726main ()
29727{
29728return sb_stemmer_new ();
29729  ;
29730  return 0;
29731}
29732_ACEOF
29733if ac_fn_c_try_link "$LINENO"; then :
29734  ac_cv_lib_stemmer_sb_stemmer_new=yes
29735else
29736  ac_cv_lib_stemmer_sb_stemmer_new=no
29737fi
29738rm -f core conftest.err conftest.$ac_objext \
29739    conftest$ac_exeext conftest.$ac_ext
29740LIBS=$ac_check_lib_save_LIBS
29741fi
29742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stemmer_sb_stemmer_new" >&5
29743$as_echo "$ac_cv_lib_stemmer_sb_stemmer_new" >&6; }
29744if test "x$ac_cv_lib_stemmer_sb_stemmer_new" = xyes; then :
29745
29746      have_fts_stemmer=yes
29747
29748$as_echo "#define HAVE_FTS_STEMMER /**/" >>confdefs.h
29749
29750
29751else
29752
29753      if test $want_stemmer = yes; then
29754        as_fn_error $? "Can't build with stemmer support: libstemmer not found" "$LINENO" 5
29755      fi
29756
29757fi
29758
29759  fi
29760
29761   if test "$have_fts_stemmer" = "yes"; then
29762  BUILD_FTS_STEMMER_TRUE=
29763  BUILD_FTS_STEMMER_FALSE='#'
29764else
29765  BUILD_FTS_STEMMER_TRUE='#'
29766  BUILD_FTS_STEMMER_FALSE=
29767fi
29768
29769
29770
29771  if test $want_textcat != no; then
29772    if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists libexttextcat 2>/dev/null; then
29773
29774pkg_failed=no
29775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXTTEXTCAT" >&5
29776$as_echo_n "checking for LIBEXTTEXTCAT... " >&6; }
29777
29778if test -n "$LIBEXTTEXTCAT_CFLAGS"; then
29779    pkg_cv_LIBEXTTEXTCAT_CFLAGS="$LIBEXTTEXTCAT_CFLAGS"
29780 elif test -n "$PKG_CONFIG"; then
29781    if test -n "$PKG_CONFIG" && \
29782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexttextcat\""; } >&5
29783  ($PKG_CONFIG --exists --print-errors "libexttextcat") 2>&5
29784  ac_status=$?
29785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29786  test $ac_status = 0; }; then
29787  pkg_cv_LIBEXTTEXTCAT_CFLAGS=`$PKG_CONFIG --cflags "libexttextcat" 2>/dev/null`
29788		      test "x$?" != "x0" && pkg_failed=yes
29789else
29790  pkg_failed=yes
29791fi
29792 else
29793    pkg_failed=untried
29794fi
29795if test -n "$LIBEXTTEXTCAT_LIBS"; then
29796    pkg_cv_LIBEXTTEXTCAT_LIBS="$LIBEXTTEXTCAT_LIBS"
29797 elif test -n "$PKG_CONFIG"; then
29798    if test -n "$PKG_CONFIG" && \
29799    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexttextcat\""; } >&5
29800  ($PKG_CONFIG --exists --print-errors "libexttextcat") 2>&5
29801  ac_status=$?
29802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29803  test $ac_status = 0; }; then
29804  pkg_cv_LIBEXTTEXTCAT_LIBS=`$PKG_CONFIG --libs "libexttextcat" 2>/dev/null`
29805		      test "x$?" != "x0" && pkg_failed=yes
29806else
29807  pkg_failed=yes
29808fi
29809 else
29810    pkg_failed=untried
29811fi
29812
29813
29814
29815if test $pkg_failed = yes; then
29816   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29817$as_echo "no" >&6; }
29818
29819if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29820        _pkg_short_errors_supported=yes
29821else
29822        _pkg_short_errors_supported=no
29823fi
29824        if test $_pkg_short_errors_supported = yes; then
29825	        LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libexttextcat" 2>&1`
29826        else
29827	        LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libexttextcat" 2>&1`
29828        fi
29829	# Put the nasty error message in config.log where it belongs
29830	echo "$LIBEXTTEXTCAT_PKG_ERRORS" >&5
29831
29832	as_fn_error $? "Package requirements (libexttextcat) were not met:
29833
29834$LIBEXTTEXTCAT_PKG_ERRORS
29835
29836Consider adjusting the PKG_CONFIG_PATH environment variable if you
29837installed software in a non-standard prefix.
29838
29839Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
29840and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
29841See the pkg-config man page for more details." "$LINENO" 5
29842elif test $pkg_failed = untried; then
29843     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29844$as_echo "no" >&6; }
29845	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29847as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29848is in your PATH or set the PKG_CONFIG environment variable to the full
29849path to pkg-config.
29850
29851Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
29852and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
29853See the pkg-config man page for more details.
29854
29855To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29856See \`config.log' for more details" "$LINENO" 5; }
29857else
29858	LIBEXTTEXTCAT_CFLAGS=$pkg_cv_LIBEXTTEXTCAT_CFLAGS
29859	LIBEXTTEXTCAT_LIBS=$pkg_cv_LIBEXTTEXTCAT_LIBS
29860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29861$as_echo "yes" >&6; }
29862
29863fi
29864      TEXTCAT_DATADIR=`$PKG_CONFIG --variable=pkgdatadir libexttextcat`
29865
29866$as_echo "#define HAVE_FTS_EXTTEXTCAT /**/" >>confdefs.h
29867
29868      have_fts_exttextcat=yes
29869      # Debian Wheezy workaround - LIBEXTTEXTCAT_CFLAGS include path is wrong:
29870      for ac_header in libexttextcat/textcat.h
29871do :
29872  ac_fn_c_check_header_mongrel "$LINENO" "libexttextcat/textcat.h" "ac_cv_header_libexttextcat_textcat_h" "$ac_includes_default"
29873if test "x$ac_cv_header_libexttextcat_textcat_h" = xyes; then :
29874  cat >>confdefs.h <<_ACEOF
29875#define HAVE_LIBEXTTEXTCAT_TEXTCAT_H 1
29876_ACEOF
29877
29878fi
29879
29880done
29881
29882    else
29883      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special_textcat_Init in -lexttextcat" >&5
29884$as_echo_n "checking for special_textcat_Init in -lexttextcat... " >&6; }
29885if ${ac_cv_lib_exttextcat_special_textcat_Init+:} false; then :
29886  $as_echo_n "(cached) " >&6
29887else
29888  ac_check_lib_save_LIBS=$LIBS
29889LIBS="-lexttextcat  $LIBS"
29890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29891/* end confdefs.h.  */
29892
29893/* Override any GCC internal prototype to avoid an error.
29894   Use char because int might match the return type of a GCC
29895   builtin and then its argument prototype would still apply.  */
29896#ifdef __cplusplus
29897extern "C"
29898#endif
29899char special_textcat_Init ();
29900int
29901main ()
29902{
29903return special_textcat_Init ();
29904  ;
29905  return 0;
29906}
29907_ACEOF
29908if ac_fn_c_try_link "$LINENO"; then :
29909  ac_cv_lib_exttextcat_special_textcat_Init=yes
29910else
29911  ac_cv_lib_exttextcat_special_textcat_Init=no
29912fi
29913rm -f core conftest.err conftest.$ac_objext \
29914    conftest$ac_exeext conftest.$ac_ext
29915LIBS=$ac_check_lib_save_LIBS
29916fi
29917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exttextcat_special_textcat_Init" >&5
29918$as_echo "$ac_cv_lib_exttextcat_special_textcat_Init" >&6; }
29919if test "x$ac_cv_lib_exttextcat_special_textcat_Init" = xyes; then :
29920
29921        have_fts_exttextcat=yes
29922        for ac_header in libexttextcat/textcat.h
29923do :
29924  ac_fn_c_check_header_mongrel "$LINENO" "libexttextcat/textcat.h" "ac_cv_header_libexttextcat_textcat_h" "$ac_includes_default"
29925if test "x$ac_cv_header_libexttextcat_textcat_h" = xyes; then :
29926  cat >>confdefs.h <<_ACEOF
29927#define HAVE_LIBEXTTEXTCAT_TEXTCAT_H 1
29928_ACEOF
29929
29930fi
29931
29932done
29933
29934        LIBEXTTEXTCAT_LIBS=-lexttextcat
29935
29936$as_echo "#define HAVE_FTS_EXTTEXTCAT /**/" >>confdefs.h
29937
29938        TEXTCAT_DATADIR="/usr/share/libexttextcat"
29939
29940
29941else
29942
29943        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special_textcat_Init in -ltextcat" >&5
29944$as_echo_n "checking for special_textcat_Init in -ltextcat... " >&6; }
29945if ${ac_cv_lib_textcat_special_textcat_Init+:} false; then :
29946  $as_echo_n "(cached) " >&6
29947else
29948  ac_check_lib_save_LIBS=$LIBS
29949LIBS="-ltextcat  $LIBS"
29950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29951/* end confdefs.h.  */
29952
29953/* Override any GCC internal prototype to avoid an error.
29954   Use char because int might match the return type of a GCC
29955   builtin and then its argument prototype would still apply.  */
29956#ifdef __cplusplus
29957extern "C"
29958#endif
29959char special_textcat_Init ();
29960int
29961main ()
29962{
29963return special_textcat_Init ();
29964  ;
29965  return 0;
29966}
29967_ACEOF
29968if ac_fn_c_try_link "$LINENO"; then :
29969  ac_cv_lib_textcat_special_textcat_Init=yes
29970else
29971  ac_cv_lib_textcat_special_textcat_Init=no
29972fi
29973rm -f core conftest.err conftest.$ac_objext \
29974    conftest$ac_exeext conftest.$ac_ext
29975LIBS=$ac_check_lib_save_LIBS
29976fi
29977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_textcat_special_textcat_Init" >&5
29978$as_echo "$ac_cv_lib_textcat_special_textcat_Init" >&6; }
29979if test "x$ac_cv_lib_textcat_special_textcat_Init" = xyes; then :
29980
29981          have_fts_textcat=yes
29982          TEXTCAT_DATADIR="/usr/share/libtextcat"
29983          for ac_header in libtextcat/textcat.h
29984do :
29985  ac_fn_c_check_header_mongrel "$LINENO" "libtextcat/textcat.h" "ac_cv_header_libtextcat_textcat_h" "$ac_includes_default"
29986if test "x$ac_cv_header_libtextcat_textcat_h" = xyes; then :
29987  cat >>confdefs.h <<_ACEOF
29988#define HAVE_LIBTEXTCAT_TEXTCAT_H 1
29989_ACEOF
29990
29991fi
29992
29993done
29994
29995
29996fi
29997
29998
29999fi
30000
30001      if test $want_textcat = yes && test "$have_fts_exttextcat" != yes && test "$have_fts_textcat" != yes; then
30002        as_fn_error $? "Can't build with textcat support: libtextcat or libexttextcat not found" "$LINENO" 5
30003      fi
30004    fi
30005    if test "$have_fts_exttextcat" = yes || test "$have_fts_textcat" = yes; then
30006
30007$as_echo "#define HAVE_FTS_TEXTCAT /**/" >>confdefs.h
30008
30009
30010cat >>confdefs.h <<_ACEOF
30011#define TEXTCAT_DATADIR "$TEXTCAT_DATADIR"
30012_ACEOF
30013
30014    fi
30015  fi
30016   if test "$have_fts_textcat" = "yes"; then
30017  BUILD_FTS_TEXTCAT_TRUE=
30018  BUILD_FTS_TEXTCAT_FALSE='#'
30019else
30020  BUILD_FTS_TEXTCAT_TRUE='#'
30021  BUILD_FTS_TEXTCAT_FALSE=
30022fi
30023
30024   if test "$have_fts_exttextcat" = "yes"; then
30025  BUILD_FTS_EXTTEXTCAT_TRUE=
30026  BUILD_FTS_EXTTEXTCAT_FALSE='#'
30027else
30028  BUILD_FTS_EXTTEXTCAT_TRUE='#'
30029  BUILD_FTS_EXTTEXTCAT_FALSE=
30030fi
30031
30032
30033
30034
30035  if test "$want_icu" != "no"; then
30036    if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists icu-i18n 2>/dev/null; then
30037
30038pkg_failed=no
30039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU" >&5
30040$as_echo_n "checking for LIBICU... " >&6; }
30041
30042if test -n "$LIBICU_CFLAGS"; then
30043    pkg_cv_LIBICU_CFLAGS="$LIBICU_CFLAGS"
30044 elif test -n "$PKG_CONFIG"; then
30045    if test -n "$PKG_CONFIG" && \
30046    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
30047  ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
30048  ac_status=$?
30049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30050  test $ac_status = 0; }; then
30051  pkg_cv_LIBICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n" 2>/dev/null`
30052		      test "x$?" != "x0" && pkg_failed=yes
30053else
30054  pkg_failed=yes
30055fi
30056 else
30057    pkg_failed=untried
30058fi
30059if test -n "$LIBICU_LIBS"; then
30060    pkg_cv_LIBICU_LIBS="$LIBICU_LIBS"
30061 elif test -n "$PKG_CONFIG"; then
30062    if test -n "$PKG_CONFIG" && \
30063    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
30064  ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
30065  ac_status=$?
30066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30067  test $ac_status = 0; }; then
30068  pkg_cv_LIBICU_LIBS=`$PKG_CONFIG --libs "icu-i18n" 2>/dev/null`
30069		      test "x$?" != "x0" && pkg_failed=yes
30070else
30071  pkg_failed=yes
30072fi
30073 else
30074    pkg_failed=untried
30075fi
30076
30077
30078
30079if test $pkg_failed = yes; then
30080   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30081$as_echo "no" >&6; }
30082
30083if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30084        _pkg_short_errors_supported=yes
30085else
30086        _pkg_short_errors_supported=no
30087fi
30088        if test $_pkg_short_errors_supported = yes; then
30089	        LIBICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n" 2>&1`
30090        else
30091	        LIBICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n" 2>&1`
30092        fi
30093	# Put the nasty error message in config.log where it belongs
30094	echo "$LIBICU_PKG_ERRORS" >&5
30095
30096	as_fn_error $? "Package requirements (icu-i18n) were not met:
30097
30098$LIBICU_PKG_ERRORS
30099
30100Consider adjusting the PKG_CONFIG_PATH environment variable if you
30101installed software in a non-standard prefix.
30102
30103Alternatively, you may set the environment variables LIBICU_CFLAGS
30104and LIBICU_LIBS to avoid the need to call pkg-config.
30105See the pkg-config man page for more details." "$LINENO" 5
30106elif test $pkg_failed = untried; then
30107     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30108$as_echo "no" >&6; }
30109	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30111as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30112is in your PATH or set the PKG_CONFIG environment variable to the full
30113path to pkg-config.
30114
30115Alternatively, you may set the environment variables LIBICU_CFLAGS
30116and LIBICU_LIBS to avoid the need to call pkg-config.
30117See the pkg-config man page for more details.
30118
30119To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30120See \`config.log' for more details" "$LINENO" 5; }
30121else
30122	LIBICU_CFLAGS=$pkg_cv_LIBICU_CFLAGS
30123	LIBICU_LIBS=$pkg_cv_LIBICU_LIBS
30124        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125$as_echo "yes" >&6; }
30126
30127fi
30128      have_icu=yes
30129
30130$as_echo "#define HAVE_LIBICU /**/" >>confdefs.h
30131
30132    elif test "$want_icu" = "yes"; then
30133      as_fn_error $? "Can't build with libicu support: libicu-i18n not found" "$LINENO" 5
30134    fi
30135  fi
30136   if test "$have_icu" = "yes"; then
30137  BUILD_LIBICU_TRUE=
30138  BUILD_LIBICU_FALSE='#'
30139else
30140  BUILD_LIBICU_TRUE='#'
30141  BUILD_LIBICU_FALSE=
30142fi
30143
30144
30145
30146
30147  want_apparmor=auto
30148
30149# Check whether --with-apparmor was given.
30150if test "${with_apparmor+set}" = set; then :
30151  withval=$with_apparmor; want_apparmor=$withval
30152fi
30153
30154
30155  have_apparmor=no
30156  if test $want_apparmor != no; then
30157    ac_fn_c_check_header_mongrel "$LINENO" "sys/apparmor.h" "ac_cv_header_sys_apparmor_h" "$ac_includes_default"
30158if test "x$ac_cv_header_sys_apparmor_h" = xyes; then :
30159
30160      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aa_change_hat in -lapparmor" >&5
30161$as_echo_n "checking for aa_change_hat in -lapparmor... " >&6; }
30162if ${ac_cv_lib_apparmor_aa_change_hat+:} false; then :
30163  $as_echo_n "(cached) " >&6
30164else
30165  ac_check_lib_save_LIBS=$LIBS
30166LIBS="-lapparmor  $LIBS"
30167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30168/* end confdefs.h.  */
30169
30170/* Override any GCC internal prototype to avoid an error.
30171   Use char because int might match the return type of a GCC
30172   builtin and then its argument prototype would still apply.  */
30173#ifdef __cplusplus
30174extern "C"
30175#endif
30176char aa_change_hat ();
30177int
30178main ()
30179{
30180return aa_change_hat ();
30181  ;
30182  return 0;
30183}
30184_ACEOF
30185if ac_fn_c_try_link "$LINENO"; then :
30186  ac_cv_lib_apparmor_aa_change_hat=yes
30187else
30188  ac_cv_lib_apparmor_aa_change_hat=no
30189fi
30190rm -f core conftest.err conftest.$ac_objext \
30191    conftest$ac_exeext conftest.$ac_ext
30192LIBS=$ac_check_lib_save_LIBS
30193fi
30194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apparmor_aa_change_hat" >&5
30195$as_echo "$ac_cv_lib_apparmor_aa_change_hat" >&6; }
30196if test "x$ac_cv_lib_apparmor_aa_change_hat" = xyes; then :
30197
30198        have_apparmor=yes
30199        APPARMOR_LIBS=-lapparmor
30200
30201
30202fi
30203
30204
30205fi
30206
30207
30208  fi
30209
30210  if test $want_apparmor = yes; then
30211    if test $have_apparmor = no; then
30212      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30214as_fn_error $? "apparmor was not found
30215See \`config.log' for more details" "$LINENO" 5; }
30216    fi
30217  fi
30218
30219   if test "$have_apparmor" = "yes"; then
30220  HAVE_APPARMOR_TRUE=
30221  HAVE_APPARMOR_FALSE='#'
30222else
30223  HAVE_APPARMOR_TRUE='#'
30224  HAVE_APPARMOR_FALSE=
30225fi
30226
30227
30228
30229if test $have_lucene = no; then
30230  not_fts="$not_fts lucene"
30231fi
30232if test $have_solr = no; then
30233  not_fts="$not_fts solr"
30234fi
30235
30236
30237FILES1=`find $srcdir/src -name '*settings.[ch]'|grep "$srcdir/src/lib-" | sed 's/^\(.*\)\(.\)$/\2 \1\2/' | grep -E -v 'lib-(master|smtp|settings).*c$' | sort -r | sed s/^..//`
30238FILES2=`find $srcdir/src -name '*settings.[ch]'|grep -v "$srcdir/src/lib-" | sed 's/^\(.*\)\(.\)$/\2 \1\2/' | grep -v all-settings | sort -r | sed s/^..//`
30239SETTING_FILES=`echo $FILES1 $FILES2 | sed -e s,$srcdir/src,./src,g -e 's,./src,$(top_srcdir)/src,g'`
30240
30241
30242
30243capability_banner="IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE"
30244capability="$capability_banner SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE"
30245
30246cat >>confdefs.h <<_ACEOF
30247#define CAPABILITY_STRING "$capability"
30248_ACEOF
30249
30250
30251cat >>confdefs.h <<_ACEOF
30252#define CAPABILITY_BANNER_STRING "$capability_banner"
30253_ACEOF
30254
30255
30256CFLAGS="$CFLAGS $EXTRA_CFLAGS"
30257BINARY_LDFLAGS="$PIE_LDFLAGS $RELRO_LDFLAGS"
30258BINARY_CFLAGS="$PIE_CFLAGS"
30259
30260
30261
30262
30263NOPLUGIN_LDFLAGS="-no-undefined"
30264if test "$with_gnu_ld" = yes; then
30265  NOPLUGIN_LDFLAGS="$NOPLUGIN_LDFLAGS -Wl,--as-needed"
30266fi
30267LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS $EXTRA_LDFLAGS"
30268
30269
30270
30271  if test "$want_shared_libs" != "yes"; then :
30272
30273        if test "$want_shared_libs" = "no" || echo "$LIBDOVECOT" | grep "/liblib.la" > /dev/null; then :
30274
30275      if test "$with_gnu_ld" = yes; then :
30276
30277				cat > cc-wrapper.sh <<_DC_EOF
30278#!/bin/sh
30279
30280if echo "\$*" | grep -- -ldl > /dev/null; then
30281  # the binary uses plugins. make sure we include everything from .a libs
30282  exec $CC -Wl,--whole-archive \$* -Wl,--no-whole-archive
30283else
30284  exec $CC \$*
30285fi
30286_DC_EOF
30287	chmod +x cc-wrapper.sh
30288	CC=`pwd`/cc-wrapper.sh
30289
30290fi
30291
30292fi
30293
30294fi
30295
30296
30297
30298
30299    for ac_prog in pandoc
30300do
30301  # Extract the first word of "$ac_prog", so it can be a program name with args.
30302set dummy $ac_prog; ac_word=$2
30303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30304$as_echo_n "checking for $ac_word... " >&6; }
30305if ${ac_cv_prog_PANDOC+:} false; then :
30306  $as_echo_n "(cached) " >&6
30307else
30308  if test -n "$PANDOC"; then
30309  ac_cv_prog_PANDOC="$PANDOC" # Let the user override the test.
30310else
30311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30312for as_dir in $PATH
30313do
30314  IFS=$as_save_IFS
30315  test -z "$as_dir" && as_dir=.
30316    for ac_exec_ext in '' $ac_executable_extensions; do
30317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30318    ac_cv_prog_PANDOC="$ac_prog"
30319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30320    break 2
30321  fi
30322done
30323  done
30324IFS=$as_save_IFS
30325
30326fi
30327fi
30328PANDOC=$ac_cv_prog_PANDOC
30329if test -n "$PANDOC"; then
30330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
30331$as_echo "$PANDOC" >&6; }
30332else
30333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30334$as_echo "no" >&6; }
30335fi
30336
30337
30338  test -n "$PANDOC" && break
30339done
30340test -n "$PANDOC" || PANDOC="true"
30341
30342
30343  if test "$PANDOC" = "true"; then :
30344
30345   if test ! -e README; then :
30346
30347     as_fn_error $? "Cannot produce documentation without pandoc - disable with PANDOC=false ./configure" "$LINENO" 5
30348
30349fi
30350
30351fi
30352
30353
30354if test "$docdir" = ""; then
30355    docdir='${datadir}/doc/${PACKAGE_TARNAME}'
30356fi
30357
30358
30359
30360
30361  # Extract the first word of "valgrind", so it can be a program name with args.
30362set dummy valgrind; ac_word=$2
30363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30364$as_echo_n "checking for $ac_word... " >&6; }
30365if ${ac_cv_path_VALGRIND+:} false; then :
30366  $as_echo_n "(cached) " >&6
30367else
30368  case $VALGRIND in
30369  [\\/]* | ?:[\\/]*)
30370  ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
30371  ;;
30372  *)
30373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30374for as_dir in $PATH
30375do
30376  IFS=$as_save_IFS
30377  test -z "$as_dir" && as_dir=.
30378    for ac_exec_ext in '' $ac_executable_extensions; do
30379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30380    ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
30381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30382    break 2
30383  fi
30384done
30385  done
30386IFS=$as_save_IFS
30387
30388  test -z "$ac_cv_path_VALGRIND" && ac_cv_path_VALGRIND="reject"
30389  ;;
30390esac
30391fi
30392VALGRIND=$ac_cv_path_VALGRIND
30393if test -n "$VALGRIND"; then
30394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
30395$as_echo "$VALGRIND" >&6; }
30396else
30397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30398$as_echo "no" >&6; }
30399fi
30400
30401
30402  if test "$VALGRIND" != reject; then :
30403
30404    cat > run-test.sh <<_DC_EOF
30405#!/bin/sh
30406top_srcdir=\$1
30407shift
30408
30409if test "\$NOUNDEF" != ""; then
30410  noundef="--undef-value-errors=no"
30411else
30412  noundef=""
30413fi
30414
30415if test "\$NOCHILDREN" != ""; then
30416  trace_children="--trace-children=no"
30417else
30418  trace_children="--trace-children=yes"
30419fi
30420
30421skip_path="\$top_srcdir/run-test-valgrind.exclude"
30422if test -r "\$skip_path" && grep -w -q "\$(basename \$1)" "\$skip_path"; then
30423  NOVALGRIND=true
30424fi
30425
30426if test "\$NOVALGRIND" != ""; then
30427  \$*
30428  ret=\$?
30429else
30430  test_out="test.out~\$\$"
30431  trap "rm -f \$test_out" 0 1 2 3 15
30432  supp_path="\$top_srcdir/run-test-valgrind.supp"
30433  if test -r "\$supp_path"; then
30434    $VALGRIND -q \$trace_children --error-exitcode=213 --leak-check=full --gen-suppressions=all --suppressions="\$supp_path" --log-file=\$test_out \$noundef \$*
30435  else
30436    $VALGRIND -q \$trace_children --error-exitcode=213 --leak-check=full --gen-suppressions=all --log-file=\$test_out \$noundef \$*
30437  fi
30438  ret=\$?
30439  if test -s \$test_out; then
30440    cat \$test_out
30441    ret=1
30442  fi
30443fi
30444if test \$ret != 0; then
30445  echo "Failed to run: \$*" >&2
30446fi
30447exit \$ret
30448_DC_EOF
30449    RUN_TEST='$(LIBTOOL) execute $(SHELL) $(top_builddir)/run-test.sh $(top_srcdir)'
30450
30451else
30452
30453    RUN_TEST=''
30454
30455fi
30456
30457
30458
30459
30460ac_config_headers="$ac_config_headers config.h"
30461
30462ac_config_files="$ac_config_files Makefile doc/Makefile doc/man/Makefile doc/wiki/Makefile doc/example-config/Makefile doc/example-config/conf.d/Makefile src/Makefile src/lib/Makefile src/lib-sql/Makefile src/lib-auth/Makefile src/lib-charset/Makefile src/lib-compression/Makefile src/lib-dcrypt/Makefile src/lib-dict/Makefile src/lib-dict-backend/Makefile src/lib-dict-extra/Makefile src/lib-dns/Makefile src/lib-fs/Makefile src/lib-fts/Makefile src/lib-http/Makefile src/lib-oauth2/Makefile src/lib-imap/Makefile src/lib-imap-storage/Makefile src/lib-imap-client/Makefile src/lib-imap-urlauth/Makefile src/lib-index/Makefile src/lib-lda/Makefile src/lib-ldap/Makefile src/lib-lua/Makefile src/lib-mail/Makefile src/lib-master/Makefile src/lib-program-client/Makefile src/lib-otp/Makefile src/lib-dovecot/Makefile src/lib-sasl/Makefile src/lib-settings/Makefile src/lib-smtp/Makefile src/lib-ssl-iostream/Makefile src/lib-old-stats/Makefile src/lib-test/Makefile src/lib-storage/Makefile src/lib-storage/list/Makefile src/lib-storage/index/Makefile src/lib-storage/index/imapc/Makefile src/lib-storage/index/pop3c/Makefile src/lib-storage/index/maildir/Makefile src/lib-storage/index/mbox/Makefile src/lib-storage/index/dbox-common/Makefile src/lib-storage/index/dbox-multi/Makefile src/lib-storage/index/dbox-single/Makefile src/lib-storage/index/raw/Makefile src/lib-storage/index/shared/Makefile src/anvil/Makefile src/auth/Makefile src/config/Makefile src/doveadm/Makefile src/doveadm/dsync/Makefile src/lda/Makefile src/log/Makefile src/lmtp/Makefile src/dict/Makefile src/director/Makefile src/dns/Makefile src/indexer/Makefile src/ipc/Makefile src/imap/Makefile src/imap-hibernate/Makefile src/imap-login/Makefile src/imap-urlauth/Makefile src/login-common/Makefile src/master/Makefile src/pop3/Makefile src/pop3-login/Makefile src/submission/Makefile src/submission-login/Makefile src/replication/Makefile src/replication/aggregator/Makefile src/replication/replicator/Makefile src/stats/Makefile src/old-stats/Makefile src/util/Makefile src/plugins/Makefile src/plugins/acl/Makefile src/plugins/imap-acl/Makefile src/plugins/fs-compress/Makefile src/plugins/fts/Makefile src/plugins/fts-lucene/Makefile src/plugins/fts-solr/Makefile src/plugins/fts-squat/Makefile src/plugins/last-login/Makefile src/plugins/lazy-expunge/Makefile src/plugins/listescape/Makefile src/plugins/mail-log/Makefile src/plugins/mail-lua/Makefile src/plugins/mailbox-alias/Makefile src/plugins/notify/Makefile src/plugins/notify-status/Makefile src/plugins/push-notification/Makefile src/plugins/pop3-migration/Makefile src/plugins/quota/Makefile src/plugins/quota-clone/Makefile src/plugins/imap-quota/Makefile src/plugins/replication/Makefile src/plugins/old-stats/Makefile src/plugins/imap-old-stats/Makefile src/plugins/trash/Makefile src/plugins/virtual/Makefile src/plugins/welcome/Makefile src/plugins/zlib/Makefile src/plugins/imap-zlib/Makefile src/plugins/mail-crypt/Makefile src/plugins/var-expand-crypt/Makefile src/plugins/apparmor/Makefile src/plugins/charset-alias/Makefile stamp.h dovecot-config.in"
30463
30464
30465cat >confcache <<\_ACEOF
30466# This file is a shell script that caches the results of configure
30467# tests run on this system so they can be shared between configure
30468# scripts and configure runs, see configure's option --config-cache.
30469# It is not useful on other systems.  If it contains results you don't
30470# want to keep, you may remove or edit it.
30471#
30472# config.status only pays attention to the cache file if you give it
30473# the --recheck option to rerun configure.
30474#
30475# `ac_cv_env_foo' variables (set or unset) will be overridden when
30476# loading this file, other *unset* `ac_cv_foo' will be assigned the
30477# following values.
30478
30479_ACEOF
30480
30481# The following way of writing the cache mishandles newlines in values,
30482# but we know of no workaround that is simple, portable, and efficient.
30483# So, we kill variables containing newlines.
30484# Ultrix sh set writes to stderr and can't be redirected directly,
30485# and sets the high bit in the cache file unless we assign to the vars.
30486(
30487  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30488    eval ac_val=\$$ac_var
30489    case $ac_val in #(
30490    *${as_nl}*)
30491      case $ac_var in #(
30492      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30494      esac
30495      case $ac_var in #(
30496      _ | IFS | as_nl) ;; #(
30497      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30498      *) { eval $ac_var=; unset $ac_var;} ;;
30499      esac ;;
30500    esac
30501  done
30502
30503  (set) 2>&1 |
30504    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30505    *${as_nl}ac_space=\ *)
30506      # `set' does not quote correctly, so add quotes: double-quote
30507      # substitution turns \\\\ into \\, and sed turns \\ into \.
30508      sed -n \
30509	"s/'/'\\\\''/g;
30510	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30511      ;; #(
30512    *)
30513      # `set' quotes correctly as required by POSIX, so do not add quotes.
30514      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30515      ;;
30516    esac |
30517    sort
30518) |
30519  sed '
30520     /^ac_cv_env_/b end
30521     t clear
30522     :clear
30523     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30524     t end
30525     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30526     :end' >>confcache
30527if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30528  if test -w "$cache_file"; then
30529    if test "x$cache_file" != "x/dev/null"; then
30530      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30531$as_echo "$as_me: updating cache $cache_file" >&6;}
30532      if test ! -f "$cache_file" || test -h "$cache_file"; then
30533	cat confcache >"$cache_file"
30534      else
30535        case $cache_file in #(
30536        */* | ?:*)
30537	  mv -f confcache "$cache_file"$$ &&
30538	  mv -f "$cache_file"$$ "$cache_file" ;; #(
30539        *)
30540	  mv -f confcache "$cache_file" ;;
30541	esac
30542      fi
30543    fi
30544  else
30545    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30546$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30547  fi
30548fi
30549rm -f confcache
30550
30551test "x$prefix" = xNONE && prefix=$ac_default_prefix
30552# Let make expand exec_prefix.
30553test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30554
30555DEFS=-DHAVE_CONFIG_H
30556
30557ac_libobjs=
30558ac_ltlibobjs=
30559U=
30560for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30561  # 1. Remove the extension, and $U if already installed.
30562  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30563  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30564  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30565  #    will be set to the directory where LIBOBJS objects are built.
30566  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30567  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30568done
30569LIBOBJS=$ac_libobjs
30570
30571LTLIBOBJS=$ac_ltlibobjs
30572
30573
30574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30575$as_echo_n "checking that generated files are newer than configure... " >&6; }
30576   if test -n "$am_sleep_pid"; then
30577     # Hide warnings about reused PIDs.
30578     wait $am_sleep_pid 2>/dev/null
30579   fi
30580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30581$as_echo "done" >&6; }
30582 if test -n "$EXEEXT"; then
30583  am__EXEEXT_TRUE=
30584  am__EXEEXT_FALSE='#'
30585else
30586  am__EXEEXT_TRUE='#'
30587  am__EXEEXT_FALSE=
30588fi
30589
30590if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30591  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
30592Usually this means the macro was only invoked conditionally." "$LINENO" 5
30593fi
30594if test -z "${BUILD_SHARED_LIBS_TRUE}" && test -z "${BUILD_SHARED_LIBS_FALSE}"; then
30595  as_fn_error $? "conditional \"BUILD_SHARED_LIBS\" was never defined.
30596Usually this means the macro was only invoked conditionally." "$LINENO" 5
30597fi
30598if test -z "${BUILD_LUCENE_TRUE}" && test -z "${BUILD_LUCENE_FALSE}"; then
30599  as_fn_error $? "conditional \"BUILD_LUCENE\" was never defined.
30600Usually this means the macro was only invoked conditionally." "$LINENO" 5
30601fi
30602if test -z "${WANT_SYSTEMD_TRUE}" && test -z "${WANT_SYSTEMD_FALSE}"; then
30603  as_fn_error $? "conditional \"WANT_SYSTEMD\" was never defined.
30604Usually this means the macro was only invoked conditionally." "$LINENO" 5
30605fi
30606if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
30607  as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
30608Usually this means the macro was only invoked conditionally." "$LINENO" 5
30609fi
30610if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30611  as_fn_error $? "conditional \"AMDEP\" was never defined.
30612Usually this means the macro was only invoked conditionally." "$LINENO" 5
30613fi
30614if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30615  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30616Usually this means the macro was only invoked conditionally." "$LINENO" 5
30617fi
30618if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30619  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30620Usually this means the macro was only invoked conditionally." "$LINENO" 5
30621fi
30622if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30623  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30624Usually this means the macro was only invoked conditionally." "$LINENO" 5
30625fi
30626if test -z "${HAVE_WHOLE_ARCHIVE_TRUE}" && test -z "${HAVE_WHOLE_ARCHIVE_FALSE}"; then
30627  as_fn_error $? "conditional \"HAVE_WHOLE_ARCHIVE\" was never defined.
30628Usually this means the macro was only invoked conditionally." "$LINENO" 5
30629fi
30630if test -z "${USE_FUZZER_TRUE}" && test -z "${USE_FUZZER_FALSE}"; then
30631  as_fn_error $? "conditional \"USE_FUZZER\" was never defined.
30632Usually this means the macro was only invoked conditionally." "$LINENO" 5
30633fi
30634if test -z "${TCPWRAPPERS_TRUE}" && test -z "${TCPWRAPPERS_FALSE}"; then
30635  as_fn_error $? "conditional \"TCPWRAPPERS\" was never defined.
30636Usually this means the macro was only invoked conditionally." "$LINENO" 5
30637fi
30638if test -z "${DOVECOT_PLUGIN_DEPS_TRUE}" && test -z "${DOVECOT_PLUGIN_DEPS_FALSE}"; then
30639  as_fn_error $? "conditional \"DOVECOT_PLUGIN_DEPS\" was never defined.
30640Usually this means the macro was only invoked conditionally." "$LINENO" 5
30641fi
30642if test -z "${BUILD_OPENSSL_TRUE}" && test -z "${BUILD_OPENSSL_FALSE}"; then
30643  as_fn_error $? "conditional \"BUILD_OPENSSL\" was never defined.
30644Usually this means the macro was only invoked conditionally." "$LINENO" 5
30645fi
30646if test -z "${BUILD_DCRYPT_OPENSSL_TRUE}" && test -z "${BUILD_DCRYPT_OPENSSL_FALSE}"; then
30647  as_fn_error $? "conditional \"BUILD_DCRYPT_OPENSSL\" was never defined.
30648Usually this means the macro was only invoked conditionally." "$LINENO" 5
30649fi
30650if test -z "${SSL_VERSION_GE_102_TRUE}" && test -z "${SSL_VERSION_GE_102_FALSE}"; then
30651  as_fn_error $? "conditional \"SSL_VERSION_GE_102\" was never defined.
30652Usually this means the macro was only invoked conditionally." "$LINENO" 5
30653fi
30654if test -z "${GSSAPI_PLUGIN_TRUE}" && test -z "${GSSAPI_PLUGIN_FALSE}"; then
30655  as_fn_error $? "conditional \"GSSAPI_PLUGIN\" was never defined.
30656Usually this means the macro was only invoked conditionally." "$LINENO" 5
30657fi
30658if test -z "${LDAP_PLUGIN_TRUE}" && test -z "${LDAP_PLUGIN_FALSE}"; then
30659  as_fn_error $? "conditional \"LDAP_PLUGIN\" was never defined.
30660Usually this means the macro was only invoked conditionally." "$LINENO" 5
30661fi
30662if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
30663  as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
30664Usually this means the macro was only invoked conditionally." "$LINENO" 5
30665fi
30666if test -z "${BUILD_LIBSODIUM_TRUE}" && test -z "${BUILD_LIBSODIUM_FALSE}"; then
30667  as_fn_error $? "conditional \"BUILD_LIBSODIUM\" was never defined.
30668Usually this means the macro was only invoked conditionally." "$LINENO" 5
30669fi
30670if test -z "${AUTH_LUA_PLUGIN_TRUE}" && test -z "${AUTH_LUA_PLUGIN_FALSE}"; then
30671  as_fn_error $? "conditional \"AUTH_LUA_PLUGIN\" was never defined.
30672Usually this means the macro was only invoked conditionally." "$LINENO" 5
30673fi
30674if test -z "${HAVE_LUA_TRUE}" && test -z "${HAVE_LUA_FALSE}"; then
30675  as_fn_error $? "conditional \"HAVE_LUA\" was never defined.
30676Usually this means the macro was only invoked conditionally." "$LINENO" 5
30677fi
30678if test -z "${DLUA_WITH_YIELDS_TRUE}" && test -z "${DLUA_WITH_YIELDS_FALSE}"; then
30679  as_fn_error $? "conditional \"DLUA_WITH_YIELDS\" was never defined.
30680Usually this means the macro was only invoked conditionally." "$LINENO" 5
30681fi
30682
30683if test -z "${BUILD_PGSQL_TRUE}" && test -z "${BUILD_PGSQL_FALSE}"; then
30684  as_fn_error $? "conditional \"BUILD_PGSQL\" was never defined.
30685Usually this means the macro was only invoked conditionally." "$LINENO" 5
30686fi
30687if test -z "${BUILD_MYSQL_TRUE}" && test -z "${BUILD_MYSQL_FALSE}"; then
30688  as_fn_error $? "conditional \"BUILD_MYSQL\" was never defined.
30689Usually this means the macro was only invoked conditionally." "$LINENO" 5
30690fi
30691if test -z "${BUILD_SQLITE_TRUE}" && test -z "${BUILD_SQLITE_FALSE}"; then
30692  as_fn_error $? "conditional \"BUILD_SQLITE\" was never defined.
30693Usually this means the macro was only invoked conditionally." "$LINENO" 5
30694fi
30695if test -z "${BUILD_CASSANDRA_TRUE}" && test -z "${BUILD_CASSANDRA_FALSE}"; then
30696  as_fn_error $? "conditional \"BUILD_CASSANDRA\" was never defined.
30697Usually this means the macro was only invoked conditionally." "$LINENO" 5
30698fi
30699if test -z "${SQL_PLUGINS_TRUE}" && test -z "${SQL_PLUGINS_FALSE}"; then
30700  as_fn_error $? "conditional \"SQL_PLUGINS\" was never defined.
30701Usually this means the macro was only invoked conditionally." "$LINENO" 5
30702fi
30703if test -z "${BUILD_ZSTD_TRUE}" && test -z "${BUILD_ZSTD_FALSE}"; then
30704  as_fn_error $? "conditional \"BUILD_ZSTD\" was never defined.
30705Usually this means the macro was only invoked conditionally." "$LINENO" 5
30706fi
30707if test -z "${BUILD_ZLIB_PLUGIN_TRUE}" && test -z "${BUILD_ZLIB_PLUGIN_FALSE}"; then
30708  as_fn_error $? "conditional \"BUILD_ZLIB_PLUGIN\" was never defined.
30709Usually this means the macro was only invoked conditionally." "$LINENO" 5
30710fi
30711if test -z "${HAVE_RQUOTA_TRUE}" && test -z "${HAVE_RQUOTA_FALSE}"; then
30712  as_fn_error $? "conditional \"HAVE_RQUOTA\" was never defined.
30713Usually this means the macro was only invoked conditionally." "$LINENO" 5
30714fi
30715if test -z "${BUILD_SOLR_TRUE}" && test -z "${BUILD_SOLR_FALSE}"; then
30716  as_fn_error $? "conditional \"BUILD_SOLR\" was never defined.
30717Usually this means the macro was only invoked conditionally." "$LINENO" 5
30718fi
30719if test -z "${BUILD_FTS_STEMMER_TRUE}" && test -z "${BUILD_FTS_STEMMER_FALSE}"; then
30720  as_fn_error $? "conditional \"BUILD_FTS_STEMMER\" was never defined.
30721Usually this means the macro was only invoked conditionally." "$LINENO" 5
30722fi
30723if test -z "${BUILD_FTS_TEXTCAT_TRUE}" && test -z "${BUILD_FTS_TEXTCAT_FALSE}"; then
30724  as_fn_error $? "conditional \"BUILD_FTS_TEXTCAT\" was never defined.
30725Usually this means the macro was only invoked conditionally." "$LINENO" 5
30726fi
30727if test -z "${BUILD_FTS_EXTTEXTCAT_TRUE}" && test -z "${BUILD_FTS_EXTTEXTCAT_FALSE}"; then
30728  as_fn_error $? "conditional \"BUILD_FTS_EXTTEXTCAT\" was never defined.
30729Usually this means the macro was only invoked conditionally." "$LINENO" 5
30730fi
30731if test -z "${BUILD_LIBICU_TRUE}" && test -z "${BUILD_LIBICU_FALSE}"; then
30732  as_fn_error $? "conditional \"BUILD_LIBICU\" was never defined.
30733Usually this means the macro was only invoked conditionally." "$LINENO" 5
30734fi
30735if test -z "${HAVE_APPARMOR_TRUE}" && test -z "${HAVE_APPARMOR_FALSE}"; then
30736  as_fn_error $? "conditional \"HAVE_APPARMOR\" was never defined.
30737Usually this means the macro was only invoked conditionally." "$LINENO" 5
30738fi
30739
30740: "${CONFIG_STATUS=./config.status}"
30741ac_write_fail=0
30742ac_clean_files_save=$ac_clean_files
30743ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30744{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30745$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30746as_write_fail=0
30747cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30748#! $SHELL
30749# Generated by $as_me.
30750# Run this file to recreate the current configuration.
30751# Compiler output produced by configure, useful for debugging
30752# configure, is in config.log if it exists.
30753
30754debug=false
30755ac_cs_recheck=false
30756ac_cs_silent=false
30757
30758SHELL=\${CONFIG_SHELL-$SHELL}
30759export SHELL
30760_ASEOF
30761cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30762## -------------------- ##
30763## M4sh Initialization. ##
30764## -------------------- ##
30765
30766# Be more Bourne compatible
30767DUALCASE=1; export DUALCASE # for MKS sh
30768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30769  emulate sh
30770  NULLCMD=:
30771  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30772  # is contrary to our usage.  Disable this feature.
30773  alias -g '${1+"$@"}'='"$@"'
30774  setopt NO_GLOB_SUBST
30775else
30776  case `(set -o) 2>/dev/null` in #(
30777  *posix*) :
30778    set -o posix ;; #(
30779  *) :
30780     ;;
30781esac
30782fi
30783
30784
30785as_nl='
30786'
30787export as_nl
30788# Printing a long string crashes Solaris 7 /usr/bin/printf.
30789as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30790as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30792# Prefer a ksh shell builtin over an external printf program on Solaris,
30793# but without wasting forks for bash or zsh.
30794if test -z "$BASH_VERSION$ZSH_VERSION" \
30795    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30796  as_echo='print -r --'
30797  as_echo_n='print -rn --'
30798elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30799  as_echo='printf %s\n'
30800  as_echo_n='printf %s'
30801else
30802  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30803    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30804    as_echo_n='/usr/ucb/echo -n'
30805  else
30806    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30807    as_echo_n_body='eval
30808      arg=$1;
30809      case $arg in #(
30810      *"$as_nl"*)
30811	expr "X$arg" : "X\\(.*\\)$as_nl";
30812	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30813      esac;
30814      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30815    '
30816    export as_echo_n_body
30817    as_echo_n='sh -c $as_echo_n_body as_echo'
30818  fi
30819  export as_echo_body
30820  as_echo='sh -c $as_echo_body as_echo'
30821fi
30822
30823# The user is always right.
30824if test "${PATH_SEPARATOR+set}" != set; then
30825  PATH_SEPARATOR=:
30826  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30827    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30828      PATH_SEPARATOR=';'
30829  }
30830fi
30831
30832
30833# IFS
30834# We need space, tab and new line, in precisely that order.  Quoting is
30835# there to prevent editors from complaining about space-tab.
30836# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30837# splitting by setting IFS to empty value.)
30838IFS=" ""	$as_nl"
30839
30840# Find who we are.  Look in the path if we contain no directory separator.
30841as_myself=
30842case $0 in #((
30843  *[\\/]* ) as_myself=$0 ;;
30844  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30845for as_dir in $PATH
30846do
30847  IFS=$as_save_IFS
30848  test -z "$as_dir" && as_dir=.
30849    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30850  done
30851IFS=$as_save_IFS
30852
30853     ;;
30854esac
30855# We did not find ourselves, most probably we were run as `sh COMMAND'
30856# in which case we are not to be found in the path.
30857if test "x$as_myself" = x; then
30858  as_myself=$0
30859fi
30860if test ! -f "$as_myself"; then
30861  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30862  exit 1
30863fi
30864
30865# Unset variables that we do not need and which cause bugs (e.g. in
30866# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30867# suppresses any "Segmentation fault" message there.  '((' could
30868# trigger a bug in pdksh 5.2.14.
30869for as_var in BASH_ENV ENV MAIL MAILPATH
30870do eval test x\${$as_var+set} = xset \
30871  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30872done
30873PS1='$ '
30874PS2='> '
30875PS4='+ '
30876
30877# NLS nuisances.
30878LC_ALL=C
30879export LC_ALL
30880LANGUAGE=C
30881export LANGUAGE
30882
30883# CDPATH.
30884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30885
30886
30887# as_fn_error STATUS ERROR [LINENO LOG_FD]
30888# ----------------------------------------
30889# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30890# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30891# script with STATUS, using 1 if that was 0.
30892as_fn_error ()
30893{
30894  as_status=$1; test $as_status -eq 0 && as_status=1
30895  if test "$4"; then
30896    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30897    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30898  fi
30899  $as_echo "$as_me: error: $2" >&2
30900  as_fn_exit $as_status
30901} # as_fn_error
30902
30903
30904# as_fn_set_status STATUS
30905# -----------------------
30906# Set $? to STATUS, without forking.
30907as_fn_set_status ()
30908{
30909  return $1
30910} # as_fn_set_status
30911
30912# as_fn_exit STATUS
30913# -----------------
30914# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30915as_fn_exit ()
30916{
30917  set +e
30918  as_fn_set_status $1
30919  exit $1
30920} # as_fn_exit
30921
30922# as_fn_unset VAR
30923# ---------------
30924# Portably unset VAR.
30925as_fn_unset ()
30926{
30927  { eval $1=; unset $1;}
30928}
30929as_unset=as_fn_unset
30930# as_fn_append VAR VALUE
30931# ----------------------
30932# Append the text in VALUE to the end of the definition contained in VAR. Take
30933# advantage of any shell optimizations that allow amortized linear growth over
30934# repeated appends, instead of the typical quadratic growth present in naive
30935# implementations.
30936if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30937  eval 'as_fn_append ()
30938  {
30939    eval $1+=\$2
30940  }'
30941else
30942  as_fn_append ()
30943  {
30944    eval $1=\$$1\$2
30945  }
30946fi # as_fn_append
30947
30948# as_fn_arith ARG...
30949# ------------------
30950# Perform arithmetic evaluation on the ARGs, and store the result in the
30951# global $as_val. Take advantage of shells that can avoid forks. The arguments
30952# must be portable across $(()) and expr.
30953if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30954  eval 'as_fn_arith ()
30955  {
30956    as_val=$(( $* ))
30957  }'
30958else
30959  as_fn_arith ()
30960  {
30961    as_val=`expr "$@" || test $? -eq 1`
30962  }
30963fi # as_fn_arith
30964
30965
30966if expr a : '\(a\)' >/dev/null 2>&1 &&
30967   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30968  as_expr=expr
30969else
30970  as_expr=false
30971fi
30972
30973if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30974  as_basename=basename
30975else
30976  as_basename=false
30977fi
30978
30979if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30980  as_dirname=dirname
30981else
30982  as_dirname=false
30983fi
30984
30985as_me=`$as_basename -- "$0" ||
30986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30987	 X"$0" : 'X\(//\)$' \| \
30988	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30989$as_echo X/"$0" |
30990    sed '/^.*\/\([^/][^/]*\)\/*$/{
30991	    s//\1/
30992	    q
30993	  }
30994	  /^X\/\(\/\/\)$/{
30995	    s//\1/
30996	    q
30997	  }
30998	  /^X\/\(\/\).*/{
30999	    s//\1/
31000	    q
31001	  }
31002	  s/.*/./; q'`
31003
31004# Avoid depending upon Character Ranges.
31005as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31007as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31008as_cr_digits='0123456789'
31009as_cr_alnum=$as_cr_Letters$as_cr_digits
31010
31011ECHO_C= ECHO_N= ECHO_T=
31012case `echo -n x` in #(((((
31013-n*)
31014  case `echo 'xy\c'` in
31015  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
31016  xy)  ECHO_C='\c';;
31017  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31018       ECHO_T='	';;
31019  esac;;
31020*)
31021  ECHO_N='-n';;
31022esac
31023
31024rm -f conf$$ conf$$.exe conf$$.file
31025if test -d conf$$.dir; then
31026  rm -f conf$$.dir/conf$$.file
31027else
31028  rm -f conf$$.dir
31029  mkdir conf$$.dir 2>/dev/null
31030fi
31031if (echo >conf$$.file) 2>/dev/null; then
31032  if ln -s conf$$.file conf$$ 2>/dev/null; then
31033    as_ln_s='ln -s'
31034    # ... but there are two gotchas:
31035    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31036    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31037    # In both cases, we have to default to `cp -pR'.
31038    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31039      as_ln_s='cp -pR'
31040  elif ln conf$$.file conf$$ 2>/dev/null; then
31041    as_ln_s=ln
31042  else
31043    as_ln_s='cp -pR'
31044  fi
31045else
31046  as_ln_s='cp -pR'
31047fi
31048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31049rmdir conf$$.dir 2>/dev/null
31050
31051
31052# as_fn_mkdir_p
31053# -------------
31054# Create "$as_dir" as a directory, including parents if necessary.
31055as_fn_mkdir_p ()
31056{
31057
31058  case $as_dir in #(
31059  -*) as_dir=./$as_dir;;
31060  esac
31061  test -d "$as_dir" || eval $as_mkdir_p || {
31062    as_dirs=
31063    while :; do
31064      case $as_dir in #(
31065      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31066      *) as_qdir=$as_dir;;
31067      esac
31068      as_dirs="'$as_qdir' $as_dirs"
31069      as_dir=`$as_dirname -- "$as_dir" ||
31070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31071	 X"$as_dir" : 'X\(//\)[^/]' \| \
31072	 X"$as_dir" : 'X\(//\)$' \| \
31073	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31074$as_echo X"$as_dir" |
31075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31076	    s//\1/
31077	    q
31078	  }
31079	  /^X\(\/\/\)[^/].*/{
31080	    s//\1/
31081	    q
31082	  }
31083	  /^X\(\/\/\)$/{
31084	    s//\1/
31085	    q
31086	  }
31087	  /^X\(\/\).*/{
31088	    s//\1/
31089	    q
31090	  }
31091	  s/.*/./; q'`
31092      test -d "$as_dir" && break
31093    done
31094    test -z "$as_dirs" || eval "mkdir $as_dirs"
31095  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31096
31097
31098} # as_fn_mkdir_p
31099if mkdir -p . 2>/dev/null; then
31100  as_mkdir_p='mkdir -p "$as_dir"'
31101else
31102  test -d ./-p && rmdir ./-p
31103  as_mkdir_p=false
31104fi
31105
31106
31107# as_fn_executable_p FILE
31108# -----------------------
31109# Test if FILE is an executable regular file.
31110as_fn_executable_p ()
31111{
31112  test -f "$1" && test -x "$1"
31113} # as_fn_executable_p
31114as_test_x='test -x'
31115as_executable_p=as_fn_executable_p
31116
31117# Sed expression to map a string onto a valid CPP name.
31118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31119
31120# Sed expression to map a string onto a valid variable name.
31121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31122
31123
31124exec 6>&1
31125## ----------------------------------- ##
31126## Main body of $CONFIG_STATUS script. ##
31127## ----------------------------------- ##
31128_ASEOF
31129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31130
31131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31132# Save the log message, to keep $0 and so on meaningful, and to
31133# report actual input values of CONFIG_FILES etc. instead of their
31134# values after options handling.
31135ac_log="
31136This file was extended by Dovecot $as_me 2.3.17, which was
31137generated by GNU Autoconf 2.69.  Invocation command line was
31138
31139  CONFIG_FILES    = $CONFIG_FILES
31140  CONFIG_HEADERS  = $CONFIG_HEADERS
31141  CONFIG_LINKS    = $CONFIG_LINKS
31142  CONFIG_COMMANDS = $CONFIG_COMMANDS
31143  $ $0 $@
31144
31145on `(hostname || uname -n) 2>/dev/null | sed 1q`
31146"
31147
31148_ACEOF
31149
31150case $ac_config_files in *"
31151"*) set x $ac_config_files; shift; ac_config_files=$*;;
31152esac
31153
31154case $ac_config_headers in *"
31155"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31156esac
31157
31158
31159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31160# Files that config.status was made for.
31161config_files="$ac_config_files"
31162config_headers="$ac_config_headers"
31163config_commands="$ac_config_commands"
31164
31165_ACEOF
31166
31167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31168ac_cs_usage="\
31169\`$as_me' instantiates files and other configuration actions
31170from templates according to the current configuration.  Unless the files
31171and actions are specified as TAGs, all are instantiated by default.
31172
31173Usage: $0 [OPTION]... [TAG]...
31174
31175  -h, --help       print this help, then exit
31176  -V, --version    print version number and configuration settings, then exit
31177      --config     print configuration, then exit
31178  -q, --quiet, --silent
31179                   do not print progress messages
31180  -d, --debug      don't remove temporary files
31181      --recheck    update $as_me by reconfiguring in the same conditions
31182      --file=FILE[:TEMPLATE]
31183                   instantiate the configuration file FILE
31184      --header=FILE[:TEMPLATE]
31185                   instantiate the configuration header FILE
31186
31187Configuration files:
31188$config_files
31189
31190Configuration headers:
31191$config_headers
31192
31193Configuration commands:
31194$config_commands
31195
31196Report bugs to <dovecot@dovecot.org>."
31197
31198_ACEOF
31199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31200ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31201ac_cs_version="\\
31202Dovecot config.status 2.3.17
31203configured by $0, generated by GNU Autoconf 2.69,
31204  with options \\"\$ac_cs_config\\"
31205
31206Copyright (C) 2012 Free Software Foundation, Inc.
31207This config.status script is free software; the Free Software Foundation
31208gives unlimited permission to copy, distribute and modify it."
31209
31210ac_pwd='$ac_pwd'
31211srcdir='$srcdir'
31212INSTALL='$INSTALL'
31213MKDIR_P='$MKDIR_P'
31214AWK='$AWK'
31215test -n "\$AWK" || AWK=awk
31216_ACEOF
31217
31218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31219# The default lists apply if the user does not specify any file.
31220ac_need_defaults=:
31221while test $# != 0
31222do
31223  case $1 in
31224  --*=?*)
31225    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31226    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31227    ac_shift=:
31228    ;;
31229  --*=)
31230    ac_option=`expr "X$1" : 'X\([^=]*\)='`
31231    ac_optarg=
31232    ac_shift=:
31233    ;;
31234  *)
31235    ac_option=$1
31236    ac_optarg=$2
31237    ac_shift=shift
31238    ;;
31239  esac
31240
31241  case $ac_option in
31242  # Handling of the options.
31243  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31244    ac_cs_recheck=: ;;
31245  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31246    $as_echo "$ac_cs_version"; exit ;;
31247  --config | --confi | --conf | --con | --co | --c )
31248    $as_echo "$ac_cs_config"; exit ;;
31249  --debug | --debu | --deb | --de | --d | -d )
31250    debug=: ;;
31251  --file | --fil | --fi | --f )
31252    $ac_shift
31253    case $ac_optarg in
31254    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31255    '') as_fn_error $? "missing file argument" ;;
31256    esac
31257    as_fn_append CONFIG_FILES " '$ac_optarg'"
31258    ac_need_defaults=false;;
31259  --header | --heade | --head | --hea )
31260    $ac_shift
31261    case $ac_optarg in
31262    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31263    esac
31264    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31265    ac_need_defaults=false;;
31266  --he | --h)
31267    # Conflict between --help and --header
31268    as_fn_error $? "ambiguous option: \`$1'
31269Try \`$0 --help' for more information.";;
31270  --help | --hel | -h )
31271    $as_echo "$ac_cs_usage"; exit ;;
31272  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31273  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31274    ac_cs_silent=: ;;
31275
31276  # This is an error.
31277  -*) as_fn_error $? "unrecognized option: \`$1'
31278Try \`$0 --help' for more information." ;;
31279
31280  *) as_fn_append ac_config_targets " $1"
31281     ac_need_defaults=false ;;
31282
31283  esac
31284  shift
31285done
31286
31287ac_configure_extra_args=
31288
31289if $ac_cs_silent; then
31290  exec 6>/dev/null
31291  ac_configure_extra_args="$ac_configure_extra_args --silent"
31292fi
31293
31294_ACEOF
31295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31296if \$ac_cs_recheck; then
31297  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31298  shift
31299  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31300  CONFIG_SHELL='$SHELL'
31301  export CONFIG_SHELL
31302  exec "\$@"
31303fi
31304
31305_ACEOF
31306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31307exec 5>>config.log
31308{
31309  echo
31310  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31311## Running $as_me. ##
31312_ASBOX
31313  $as_echo "$ac_log"
31314} >&5
31315
31316_ACEOF
31317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31318#
31319# INIT-COMMANDS
31320#
31321AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
31322
31323
31324# The HP-UX ksh and POSIX shell print the target directory to stdout
31325# if CDPATH is set.
31326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31327
31328sed_quote_subst='$sed_quote_subst'
31329double_quote_subst='$double_quote_subst'
31330delay_variable_subst='$delay_variable_subst'
31331macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31332macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31333enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31334enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31335pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31336enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31337shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
31338SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31339ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31340PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31341host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31342host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31343host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31344build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31345build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31346build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31347SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31348Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31349GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31350EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31351FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31352LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31353NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31354LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31355max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31356ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31357exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31358lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31359lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31360lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31361lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31362lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31363reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31364reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31365OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31366deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31367file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31368file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31369want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31370DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31371sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31372AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31373AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31374archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31375STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31376RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31377old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31378old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31379old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31380lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31381CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31382CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31383compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31384GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31385lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31386lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31387lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
31388lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31389lt_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"`'
31390lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
31391nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31392lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31393lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
31394objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31395MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31396lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31397lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31398lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31399lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31400lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31401need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31402MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31403DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31404NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31405LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31406OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31407OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31408libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31409shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31410extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31411archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31412enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31413export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31414whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31415compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31416old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31417old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31418archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31419archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31420module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31421module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31422with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31423allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31424no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31425hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31426hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31427hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31428hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31429hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31430hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31431hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31432inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31433link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31434always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31435export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31436exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31437include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31438prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31439postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31440file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31441variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31442need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31443need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31444version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31445runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31446shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31447shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31448libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31449library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31450soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31451install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31452postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31453postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31454finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31455finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31456hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31457sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31458configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
31459configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
31460hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31461enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31462enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31463enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31464old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31465striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31466compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31467predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31468postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31469predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31470postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31471compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31472LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31473reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31474reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31475old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31476compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31477GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31478lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31479lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31480lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31481lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31482lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31483archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31484enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31485export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31486whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31487compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31488old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31489old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31490archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31491archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31492module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31493module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31494with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31495allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31496no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31497hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31498hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31499hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31500hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31501hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31502hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31503hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31504inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31505link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31506always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31507export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31508exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31509include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31510prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31511postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31512file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31513hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31514compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31515predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31516postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31517predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31518postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31519compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31520
31521LTCC='$LTCC'
31522LTCFLAGS='$LTCFLAGS'
31523compiler='$compiler_DEFAULT'
31524
31525# A function that is used when there is no print builtin or printf.
31526func_fallback_echo ()
31527{
31528  eval 'cat <<_LTECHO_EOF
31529\$1
31530_LTECHO_EOF'
31531}
31532
31533# Quote evaled strings.
31534for var in SHELL \
31535ECHO \
31536PATH_SEPARATOR \
31537SED \
31538GREP \
31539EGREP \
31540FGREP \
31541LD \
31542NM \
31543LN_S \
31544lt_SP2NL \
31545lt_NL2SP \
31546reload_flag \
31547OBJDUMP \
31548deplibs_check_method \
31549file_magic_cmd \
31550file_magic_glob \
31551want_nocaseglob \
31552DLLTOOL \
31553sharedlib_from_linklib_cmd \
31554AR \
31555AR_FLAGS \
31556archiver_list_spec \
31557STRIP \
31558RANLIB \
31559CC \
31560CFLAGS \
31561compiler \
31562lt_cv_sys_global_symbol_pipe \
31563lt_cv_sys_global_symbol_to_cdecl \
31564lt_cv_sys_global_symbol_to_import \
31565lt_cv_sys_global_symbol_to_c_name_address \
31566lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31567lt_cv_nm_interface \
31568nm_file_list_spec \
31569lt_cv_truncate_bin \
31570lt_prog_compiler_no_builtin_flag \
31571lt_prog_compiler_pic \
31572lt_prog_compiler_wl \
31573lt_prog_compiler_static \
31574lt_cv_prog_compiler_c_o \
31575need_locks \
31576MANIFEST_TOOL \
31577DSYMUTIL \
31578NMEDIT \
31579LIPO \
31580OTOOL \
31581OTOOL64 \
31582shrext_cmds \
31583export_dynamic_flag_spec \
31584whole_archive_flag_spec \
31585compiler_needs_object \
31586with_gnu_ld \
31587allow_undefined_flag \
31588no_undefined_flag \
31589hardcode_libdir_flag_spec \
31590hardcode_libdir_separator \
31591exclude_expsyms \
31592include_expsyms \
31593file_list_spec \
31594variables_saved_for_relink \
31595libname_spec \
31596library_names_spec \
31597soname_spec \
31598install_override_mode \
31599finish_eval \
31600old_striplib \
31601striplib \
31602compiler_lib_search_dirs \
31603predep_objects \
31604postdep_objects \
31605predeps \
31606postdeps \
31607compiler_lib_search_path \
31608LD_CXX \
31609reload_flag_CXX \
31610compiler_CXX \
31611lt_prog_compiler_no_builtin_flag_CXX \
31612lt_prog_compiler_pic_CXX \
31613lt_prog_compiler_wl_CXX \
31614lt_prog_compiler_static_CXX \
31615lt_cv_prog_compiler_c_o_CXX \
31616export_dynamic_flag_spec_CXX \
31617whole_archive_flag_spec_CXX \
31618compiler_needs_object_CXX \
31619with_gnu_ld_CXX \
31620allow_undefined_flag_CXX \
31621no_undefined_flag_CXX \
31622hardcode_libdir_flag_spec_CXX \
31623hardcode_libdir_separator_CXX \
31624exclude_expsyms_CXX \
31625include_expsyms_CXX \
31626file_list_spec_CXX \
31627compiler_lib_search_dirs_CXX \
31628predep_objects_CXX \
31629postdep_objects_CXX \
31630predeps_CXX \
31631postdeps_CXX \
31632compiler_lib_search_path_CXX; do
31633    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31634    *[\\\\\\\`\\"\\\$]*)
31635      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
31636      ;;
31637    *)
31638      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31639      ;;
31640    esac
31641done
31642
31643# Double-quote double-evaled strings.
31644for var in reload_cmds \
31645old_postinstall_cmds \
31646old_postuninstall_cmds \
31647old_archive_cmds \
31648extract_expsyms_cmds \
31649old_archive_from_new_cmds \
31650old_archive_from_expsyms_cmds \
31651archive_cmds \
31652archive_expsym_cmds \
31653module_cmds \
31654module_expsym_cmds \
31655export_symbols_cmds \
31656prelink_cmds \
31657postlink_cmds \
31658postinstall_cmds \
31659postuninstall_cmds \
31660finish_cmds \
31661sys_lib_search_path_spec \
31662configure_time_dlsearch_path \
31663configure_time_lt_sys_library_path \
31664reload_cmds_CXX \
31665old_archive_cmds_CXX \
31666old_archive_from_new_cmds_CXX \
31667old_archive_from_expsyms_cmds_CXX \
31668archive_cmds_CXX \
31669archive_expsym_cmds_CXX \
31670module_cmds_CXX \
31671module_expsym_cmds_CXX \
31672export_symbols_cmds_CXX \
31673prelink_cmds_CXX \
31674postlink_cmds_CXX; do
31675    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31676    *[\\\\\\\`\\"\\\$]*)
31677      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
31678      ;;
31679    *)
31680      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31681      ;;
31682    esac
31683done
31684
31685ac_aux_dir='$ac_aux_dir'
31686
31687# See if we are running on zsh, and set the options that allow our
31688# commands through without removal of \ escapes INIT.
31689if test -n "\${ZSH_VERSION+set}"; then
31690   setopt NO_GLOB_SUBST
31691fi
31692
31693
31694    PACKAGE='$PACKAGE'
31695    VERSION='$VERSION'
31696    RM='$RM'
31697    ofile='$ofile'
31698
31699
31700
31701
31702
31703
31704_ACEOF
31705
31706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31707
31708# Handling of arguments.
31709for ac_config_target in $ac_config_targets
31710do
31711  case $ac_config_target in
31712    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31713    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31714    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31715    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31716    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31717    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
31718    "doc/wiki/Makefile") CONFIG_FILES="$CONFIG_FILES doc/wiki/Makefile" ;;
31719    "doc/example-config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/example-config/Makefile" ;;
31720    "doc/example-config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/example-config/conf.d/Makefile" ;;
31721    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31722    "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31723    "src/lib-sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-sql/Makefile" ;;
31724    "src/lib-auth/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-auth/Makefile" ;;
31725    "src/lib-charset/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-charset/Makefile" ;;
31726    "src/lib-compression/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-compression/Makefile" ;;
31727    "src/lib-dcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dcrypt/Makefile" ;;
31728    "src/lib-dict/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dict/Makefile" ;;
31729    "src/lib-dict-backend/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dict-backend/Makefile" ;;
31730    "src/lib-dict-extra/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dict-extra/Makefile" ;;
31731    "src/lib-dns/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dns/Makefile" ;;
31732    "src/lib-fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-fs/Makefile" ;;
31733    "src/lib-fts/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-fts/Makefile" ;;
31734    "src/lib-http/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-http/Makefile" ;;
31735    "src/lib-oauth2/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-oauth2/Makefile" ;;
31736    "src/lib-imap/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap/Makefile" ;;
31737    "src/lib-imap-storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap-storage/Makefile" ;;
31738    "src/lib-imap-client/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap-client/Makefile" ;;
31739    "src/lib-imap-urlauth/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-imap-urlauth/Makefile" ;;
31740    "src/lib-index/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-index/Makefile" ;;
31741    "src/lib-lda/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-lda/Makefile" ;;
31742    "src/lib-ldap/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-ldap/Makefile" ;;
31743    "src/lib-lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-lua/Makefile" ;;
31744    "src/lib-mail/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-mail/Makefile" ;;
31745    "src/lib-master/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-master/Makefile" ;;
31746    "src/lib-program-client/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-program-client/Makefile" ;;
31747    "src/lib-otp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-otp/Makefile" ;;
31748    "src/lib-dovecot/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-dovecot/Makefile" ;;
31749    "src/lib-sasl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-sasl/Makefile" ;;
31750    "src/lib-settings/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-settings/Makefile" ;;
31751    "src/lib-smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-smtp/Makefile" ;;
31752    "src/lib-ssl-iostream/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-ssl-iostream/Makefile" ;;
31753    "src/lib-old-stats/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-old-stats/Makefile" ;;
31754    "src/lib-test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-test/Makefile" ;;
31755    "src/lib-storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/Makefile" ;;
31756    "src/lib-storage/list/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/list/Makefile" ;;
31757    "src/lib-storage/index/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/Makefile" ;;
31758    "src/lib-storage/index/imapc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/imapc/Makefile" ;;
31759    "src/lib-storage/index/pop3c/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/pop3c/Makefile" ;;
31760    "src/lib-storage/index/maildir/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/maildir/Makefile" ;;
31761    "src/lib-storage/index/mbox/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/mbox/Makefile" ;;
31762    "src/lib-storage/index/dbox-common/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/dbox-common/Makefile" ;;
31763    "src/lib-storage/index/dbox-multi/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/dbox-multi/Makefile" ;;
31764    "src/lib-storage/index/dbox-single/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/dbox-single/Makefile" ;;
31765    "src/lib-storage/index/raw/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/raw/Makefile" ;;
31766    "src/lib-storage/index/shared/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib-storage/index/shared/Makefile" ;;
31767    "src/anvil/Makefile") CONFIG_FILES="$CONFIG_FILES src/anvil/Makefile" ;;
31768    "src/auth/Makefile") CONFIG_FILES="$CONFIG_FILES src/auth/Makefile" ;;
31769    "src/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
31770    "src/doveadm/Makefile") CONFIG_FILES="$CONFIG_FILES src/doveadm/Makefile" ;;
31771    "src/doveadm/dsync/Makefile") CONFIG_FILES="$CONFIG_FILES src/doveadm/dsync/Makefile" ;;
31772    "src/lda/Makefile") CONFIG_FILES="$CONFIG_FILES src/lda/Makefile" ;;
31773    "src/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/log/Makefile" ;;
31774    "src/lmtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lmtp/Makefile" ;;
31775    "src/dict/Makefile") CONFIG_FILES="$CONFIG_FILES src/dict/Makefile" ;;
31776    "src/director/Makefile") CONFIG_FILES="$CONFIG_FILES src/director/Makefile" ;;
31777    "src/dns/Makefile") CONFIG_FILES="$CONFIG_FILES src/dns/Makefile" ;;
31778    "src/indexer/Makefile") CONFIG_FILES="$CONFIG_FILES src/indexer/Makefile" ;;
31779    "src/ipc/Makefile") CONFIG_FILES="$CONFIG_FILES src/ipc/Makefile" ;;
31780    "src/imap/Makefile") CONFIG_FILES="$CONFIG_FILES src/imap/Makefile" ;;
31781    "src/imap-hibernate/Makefile") CONFIG_FILES="$CONFIG_FILES src/imap-hibernate/Makefile" ;;
31782    "src/imap-login/Makefile") CONFIG_FILES="$CONFIG_FILES src/imap-login/Makefile" ;;
31783    "src/imap-urlauth/Makefile") CONFIG_FILES="$CONFIG_FILES src/imap-urlauth/Makefile" ;;
31784    "src/login-common/Makefile") CONFIG_FILES="$CONFIG_FILES src/login-common/Makefile" ;;
31785    "src/master/Makefile") CONFIG_FILES="$CONFIG_FILES src/master/Makefile" ;;
31786    "src/pop3/Makefile") CONFIG_FILES="$CONFIG_FILES src/pop3/Makefile" ;;
31787    "src/pop3-login/Makefile") CONFIG_FILES="$CONFIG_FILES src/pop3-login/Makefile" ;;
31788    "src/submission/Makefile") CONFIG_FILES="$CONFIG_FILES src/submission/Makefile" ;;
31789    "src/submission-login/Makefile") CONFIG_FILES="$CONFIG_FILES src/submission-login/Makefile" ;;
31790    "src/replication/Makefile") CONFIG_FILES="$CONFIG_FILES src/replication/Makefile" ;;
31791    "src/replication/aggregator/Makefile") CONFIG_FILES="$CONFIG_FILES src/replication/aggregator/Makefile" ;;
31792    "src/replication/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES src/replication/replicator/Makefile" ;;
31793    "src/stats/Makefile") CONFIG_FILES="$CONFIG_FILES src/stats/Makefile" ;;
31794    "src/old-stats/Makefile") CONFIG_FILES="$CONFIG_FILES src/old-stats/Makefile" ;;
31795    "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
31796    "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
31797    "src/plugins/acl/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/acl/Makefile" ;;
31798    "src/plugins/imap-acl/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/imap-acl/Makefile" ;;
31799    "src/plugins/fs-compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fs-compress/Makefile" ;;
31800    "src/plugins/fts/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fts/Makefile" ;;
31801    "src/plugins/fts-lucene/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fts-lucene/Makefile" ;;
31802    "src/plugins/fts-solr/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fts-solr/Makefile" ;;
31803    "src/plugins/fts-squat/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fts-squat/Makefile" ;;
31804    "src/plugins/last-login/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/last-login/Makefile" ;;
31805    "src/plugins/lazy-expunge/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/lazy-expunge/Makefile" ;;
31806    "src/plugins/listescape/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/listescape/Makefile" ;;
31807    "src/plugins/mail-log/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mail-log/Makefile" ;;
31808    "src/plugins/mail-lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mail-lua/Makefile" ;;
31809    "src/plugins/mailbox-alias/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mailbox-alias/Makefile" ;;
31810    "src/plugins/notify/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/notify/Makefile" ;;
31811    "src/plugins/notify-status/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/notify-status/Makefile" ;;
31812    "src/plugins/push-notification/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/push-notification/Makefile" ;;
31813    "src/plugins/pop3-migration/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/pop3-migration/Makefile" ;;
31814    "src/plugins/quota/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/quota/Makefile" ;;
31815    "src/plugins/quota-clone/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/quota-clone/Makefile" ;;
31816    "src/plugins/imap-quota/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/imap-quota/Makefile" ;;
31817    "src/plugins/replication/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/replication/Makefile" ;;
31818    "src/plugins/old-stats/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/old-stats/Makefile" ;;
31819    "src/plugins/imap-old-stats/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/imap-old-stats/Makefile" ;;
31820    "src/plugins/trash/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/trash/Makefile" ;;
31821    "src/plugins/virtual/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/virtual/Makefile" ;;
31822    "src/plugins/welcome/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/welcome/Makefile" ;;
31823    "src/plugins/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/zlib/Makefile" ;;
31824    "src/plugins/imap-zlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/imap-zlib/Makefile" ;;
31825    "src/plugins/mail-crypt/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/mail-crypt/Makefile" ;;
31826    "src/plugins/var-expand-crypt/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/var-expand-crypt/Makefile" ;;
31827    "src/plugins/apparmor/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/apparmor/Makefile" ;;
31828    "src/plugins/charset-alias/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/charset-alias/Makefile" ;;
31829    "stamp.h") CONFIG_FILES="$CONFIG_FILES stamp.h" ;;
31830    "dovecot-config.in") CONFIG_FILES="$CONFIG_FILES dovecot-config.in" ;;
31831
31832  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31833  esac
31834done
31835
31836
31837# If the user did not use the arguments to specify the items to instantiate,
31838# then the envvar interface is used.  Set only those that are not.
31839# We use the long form for the default assignment because of an extremely
31840# bizarre bug on SunOS 4.1.3.
31841if $ac_need_defaults; then
31842  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31843  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31844  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31845fi
31846
31847# Have a temporary directory for convenience.  Make it in the build tree
31848# simply because there is no reason against having it here, and in addition,
31849# creating and moving files from /tmp can sometimes cause problems.
31850# Hook for its removal unless debugging.
31851# Note that there is a small window in which the directory will not be cleaned:
31852# after its creation but before its name has been assigned to `$tmp'.
31853$debug ||
31854{
31855  tmp= ac_tmp=
31856  trap 'exit_status=$?
31857  : "${ac_tmp:=$tmp}"
31858  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31859' 0
31860  trap 'as_fn_exit 1' 1 2 13 15
31861}
31862# Create a (secure) tmp directory for tmp files.
31863
31864{
31865  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31866  test -d "$tmp"
31867}  ||
31868{
31869  tmp=./conf$$-$RANDOM
31870  (umask 077 && mkdir "$tmp")
31871} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31872ac_tmp=$tmp
31873
31874# Set up the scripts for CONFIG_FILES section.
31875# No need to generate them if there are no CONFIG_FILES.
31876# This happens for instance with `./config.status config.h'.
31877if test -n "$CONFIG_FILES"; then
31878
31879
31880ac_cr=`echo X | tr X '\015'`
31881# On cygwin, bash can eat \r inside `` if the user requested igncr.
31882# But we know of no other shell where ac_cr would be empty at this
31883# point, so we can use a bashism as a fallback.
31884if test "x$ac_cr" = x; then
31885  eval ac_cr=\$\'\\r\'
31886fi
31887ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31888if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31889  ac_cs_awk_cr='\\r'
31890else
31891  ac_cs_awk_cr=$ac_cr
31892fi
31893
31894echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31895_ACEOF
31896
31897
31898{
31899  echo "cat >conf$$subs.awk <<_ACEOF" &&
31900  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31901  echo "_ACEOF"
31902} >conf$$subs.sh ||
31903  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31904ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31905ac_delim='%!_!# '
31906for ac_last_try in false false false false false :; do
31907  . ./conf$$subs.sh ||
31908    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31909
31910  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31911  if test $ac_delim_n = $ac_delim_num; then
31912    break
31913  elif $ac_last_try; then
31914    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31915  else
31916    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31917  fi
31918done
31919rm -f conf$$subs.sh
31920
31921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31922cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31923_ACEOF
31924sed -n '
31925h
31926s/^/S["/; s/!.*/"]=/
31927p
31928g
31929s/^[^!]*!//
31930:repl
31931t repl
31932s/'"$ac_delim"'$//
31933t delim
31934:nl
31935h
31936s/\(.\{148\}\)..*/\1/
31937t more1
31938s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31939p
31940n
31941b repl
31942:more1
31943s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31944p
31945g
31946s/.\{148\}//
31947t nl
31948:delim
31949h
31950s/\(.\{148\}\)..*/\1/
31951t more2
31952s/["\\]/\\&/g; s/^/"/; s/$/"/
31953p
31954b
31955:more2
31956s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31957p
31958g
31959s/.\{148\}//
31960t delim
31961' <conf$$subs.awk | sed '
31962/^[^""]/{
31963  N
31964  s/\n//
31965}
31966' >>$CONFIG_STATUS || ac_write_fail=1
31967rm -f conf$$subs.awk
31968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31969_ACAWK
31970cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31971  for (key in S) S_is_set[key] = 1
31972  FS = ""
31973
31974}
31975{
31976  line = $ 0
31977  nfields = split(line, field, "@")
31978  substed = 0
31979  len = length(field[1])
31980  for (i = 2; i < nfields; i++) {
31981    key = field[i]
31982    keylen = length(key)
31983    if (S_is_set[key]) {
31984      value = S[key]
31985      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31986      len += length(value) + length(field[++i])
31987      substed = 1
31988    } else
31989      len += 1 + keylen
31990  }
31991
31992  print line
31993}
31994
31995_ACAWK
31996_ACEOF
31997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31998if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31999  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32000else
32001  cat
32002fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32003  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32004_ACEOF
32005
32006# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32007# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32008# trailing colons and then remove the whole line if VPATH becomes empty
32009# (actually we leave an empty line to preserve line numbers).
32010if test "x$srcdir" = x.; then
32011  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
32012h
32013s///
32014s/^/:/
32015s/[	 ]*$/:/
32016s/:\$(srcdir):/:/g
32017s/:\${srcdir}:/:/g
32018s/:@srcdir@:/:/g
32019s/^:*//
32020s/:*$//
32021x
32022s/\(=[	 ]*\).*/\1/
32023G
32024s/\n//
32025s/^[^=]*=[	 ]*$//
32026}'
32027fi
32028
32029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32030fi # test -n "$CONFIG_FILES"
32031
32032# Set up the scripts for CONFIG_HEADERS section.
32033# No need to generate them if there are no CONFIG_HEADERS.
32034# This happens for instance with `./config.status Makefile'.
32035if test -n "$CONFIG_HEADERS"; then
32036cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32037BEGIN {
32038_ACEOF
32039
32040# Transform confdefs.h into an awk script `defines.awk', embedded as
32041# here-document in config.status, that substitutes the proper values into
32042# config.h.in to produce config.h.
32043
32044# Create a delimiter string that does not exist in confdefs.h, to ease
32045# handling of long lines.
32046ac_delim='%!_!# '
32047for ac_last_try in false false :; do
32048  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32049  if test -z "$ac_tt"; then
32050    break
32051  elif $ac_last_try; then
32052    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32053  else
32054    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32055  fi
32056done
32057
32058# For the awk script, D is an array of macro values keyed by name,
32059# likewise P contains macro parameters if any.  Preserve backslash
32060# newline sequences.
32061
32062ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32063sed -n '
32064s/.\{148\}/&'"$ac_delim"'/g
32065t rset
32066:rset
32067s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
32068t def
32069d
32070:def
32071s/\\$//
32072t bsnl
32073s/["\\]/\\&/g
32074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
32075D["\1"]=" \3"/p
32076s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
32077d
32078:bsnl
32079s/["\\]/\\&/g
32080s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
32081D["\1"]=" \3\\\\\\n"\\/p
32082t cont
32083s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32084t cont
32085d
32086:cont
32087n
32088s/.\{148\}/&'"$ac_delim"'/g
32089t clear
32090:clear
32091s/\\$//
32092t bsnlc
32093s/["\\]/\\&/g; s/^/"/; s/$/"/p
32094d
32095:bsnlc
32096s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32097b cont
32098' <confdefs.h | sed '
32099s/'"$ac_delim"'/"\\\
32100"/g' >>$CONFIG_STATUS || ac_write_fail=1
32101
32102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32103  for (key in D) D_is_set[key] = 1
32104  FS = ""
32105}
32106/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32107  line = \$ 0
32108  split(line, arg, " ")
32109  if (arg[1] == "#") {
32110    defundef = arg[2]
32111    mac1 = arg[3]
32112  } else {
32113    defundef = substr(arg[1], 2)
32114    mac1 = arg[2]
32115  }
32116  split(mac1, mac2, "(") #)
32117  macro = mac2[1]
32118  prefix = substr(line, 1, index(line, defundef) - 1)
32119  if (D_is_set[macro]) {
32120    # Preserve the white space surrounding the "#".
32121    print prefix "define", macro P[macro] D[macro]
32122    next
32123  } else {
32124    # Replace #undef with comments.  This is necessary, for example,
32125    # in the case of _POSIX_SOURCE, which is predefined and required
32126    # on some systems where configure will not decide to define it.
32127    if (defundef == "undef") {
32128      print "/*", prefix defundef, macro, "*/"
32129      next
32130    }
32131  }
32132}
32133{ print }
32134_ACAWK
32135_ACEOF
32136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32137  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32138fi # test -n "$CONFIG_HEADERS"
32139
32140
32141eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32142shift
32143for ac_tag
32144do
32145  case $ac_tag in
32146  :[FHLC]) ac_mode=$ac_tag; continue;;
32147  esac
32148  case $ac_mode$ac_tag in
32149  :[FHL]*:*);;
32150  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32151  :[FH]-) ac_tag=-:-;;
32152  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32153  esac
32154  ac_save_IFS=$IFS
32155  IFS=:
32156  set x $ac_tag
32157  IFS=$ac_save_IFS
32158  shift
32159  ac_file=$1
32160  shift
32161
32162  case $ac_mode in
32163  :L) ac_source=$1;;
32164  :[FH])
32165    ac_file_inputs=
32166    for ac_f
32167    do
32168      case $ac_f in
32169      -) ac_f="$ac_tmp/stdin";;
32170      *) # Look for the file first in the build tree, then in the source tree
32171	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
32172	 # because $ac_f cannot contain `:'.
32173	 test -f "$ac_f" ||
32174	   case $ac_f in
32175	   [\\/$]*) false;;
32176	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32177	   esac ||
32178	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32179      esac
32180      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32181      as_fn_append ac_file_inputs " '$ac_f'"
32182    done
32183
32184    # Let's still pretend it is `configure' which instantiates (i.e., don't
32185    # use $as_me), people would be surprised to read:
32186    #    /* config.h.  Generated by config.status.  */
32187    configure_input='Generated from '`
32188	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32189	`' by configure.'
32190    if test x"$ac_file" != x-; then
32191      configure_input="$ac_file.  $configure_input"
32192      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32193$as_echo "$as_me: creating $ac_file" >&6;}
32194    fi
32195    # Neutralize special characters interpreted by sed in replacement strings.
32196    case $configure_input in #(
32197    *\&* | *\|* | *\\* )
32198       ac_sed_conf_input=`$as_echo "$configure_input" |
32199       sed 's/[\\\\&|]/\\\\&/g'`;; #(
32200    *) ac_sed_conf_input=$configure_input;;
32201    esac
32202
32203    case $ac_tag in
32204    *:-:* | *:-) cat >"$ac_tmp/stdin" \
32205      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32206    esac
32207    ;;
32208  esac
32209
32210  ac_dir=`$as_dirname -- "$ac_file" ||
32211$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32212	 X"$ac_file" : 'X\(//\)[^/]' \| \
32213	 X"$ac_file" : 'X\(//\)$' \| \
32214	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32215$as_echo X"$ac_file" |
32216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32217	    s//\1/
32218	    q
32219	  }
32220	  /^X\(\/\/\)[^/].*/{
32221	    s//\1/
32222	    q
32223	  }
32224	  /^X\(\/\/\)$/{
32225	    s//\1/
32226	    q
32227	  }
32228	  /^X\(\/\).*/{
32229	    s//\1/
32230	    q
32231	  }
32232	  s/.*/./; q'`
32233  as_dir="$ac_dir"; as_fn_mkdir_p
32234  ac_builddir=.
32235
32236case "$ac_dir" in
32237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32238*)
32239  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32240  # A ".." for each directory in $ac_dir_suffix.
32241  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32242  case $ac_top_builddir_sub in
32243  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32244  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32245  esac ;;
32246esac
32247ac_abs_top_builddir=$ac_pwd
32248ac_abs_builddir=$ac_pwd$ac_dir_suffix
32249# for backward compatibility:
32250ac_top_builddir=$ac_top_build_prefix
32251
32252case $srcdir in
32253  .)  # We are building in place.
32254    ac_srcdir=.
32255    ac_top_srcdir=$ac_top_builddir_sub
32256    ac_abs_top_srcdir=$ac_pwd ;;
32257  [\\/]* | ?:[\\/]* )  # Absolute name.
32258    ac_srcdir=$srcdir$ac_dir_suffix;
32259    ac_top_srcdir=$srcdir
32260    ac_abs_top_srcdir=$srcdir ;;
32261  *) # Relative name.
32262    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32263    ac_top_srcdir=$ac_top_build_prefix$srcdir
32264    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32265esac
32266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32267
32268
32269  case $ac_mode in
32270  :F)
32271  #
32272  # CONFIG_FILE
32273  #
32274
32275  case $INSTALL in
32276  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32277  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32278  esac
32279  ac_MKDIR_P=$MKDIR_P
32280  case $MKDIR_P in
32281  [\\/$]* | ?:[\\/]* ) ;;
32282  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32283  esac
32284_ACEOF
32285
32286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32287# If the template does not know about datarootdir, expand it.
32288# FIXME: This hack should be removed a few years after 2.60.
32289ac_datarootdir_hack=; ac_datarootdir_seen=
32290ac_sed_dataroot='
32291/datarootdir/ {
32292  p
32293  q
32294}
32295/@datadir@/p
32296/@docdir@/p
32297/@infodir@/p
32298/@localedir@/p
32299/@mandir@/p'
32300case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32301*datarootdir*) ac_datarootdir_seen=yes;;
32302*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32303  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32304$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32305_ACEOF
32306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32307  ac_datarootdir_hack='
32308  s&@datadir@&$datadir&g
32309  s&@docdir@&$docdir&g
32310  s&@infodir@&$infodir&g
32311  s&@localedir@&$localedir&g
32312  s&@mandir@&$mandir&g
32313  s&\\\${datarootdir}&$datarootdir&g' ;;
32314esac
32315_ACEOF
32316
32317# Neutralize VPATH when `$srcdir' = `.'.
32318# Shell code in configure.ac might set extrasub.
32319# FIXME: do we really want to maintain this feature?
32320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32321ac_sed_extra="$ac_vpsub
32322$extrasub
32323_ACEOF
32324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32325:t
32326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32327s|@configure_input@|$ac_sed_conf_input|;t t
32328s&@top_builddir@&$ac_top_builddir_sub&;t t
32329s&@top_build_prefix@&$ac_top_build_prefix&;t t
32330s&@srcdir@&$ac_srcdir&;t t
32331s&@abs_srcdir@&$ac_abs_srcdir&;t t
32332s&@top_srcdir@&$ac_top_srcdir&;t t
32333s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32334s&@builddir@&$ac_builddir&;t t
32335s&@abs_builddir@&$ac_abs_builddir&;t t
32336s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32337s&@INSTALL@&$ac_INSTALL&;t t
32338s&@MKDIR_P@&$ac_MKDIR_P&;t t
32339$ac_datarootdir_hack
32340"
32341eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32342  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32343
32344test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32345  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32346  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
32347      "$ac_tmp/out"`; test -z "$ac_out"; } &&
32348  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32349which seems to be undefined.  Please make sure it is defined" >&5
32350$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32351which seems to be undefined.  Please make sure it is defined" >&2;}
32352
32353  rm -f "$ac_tmp/stdin"
32354  case $ac_file in
32355  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32356  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32357  esac \
32358  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32359 ;;
32360  :H)
32361  #
32362  # CONFIG_HEADER
32363  #
32364  if test x"$ac_file" != x-; then
32365    {
32366      $as_echo "/* $configure_input  */" \
32367      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32368    } >"$ac_tmp/config.h" \
32369      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32370    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32371      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32372$as_echo "$as_me: $ac_file is unchanged" >&6;}
32373    else
32374      rm -f "$ac_file"
32375      mv "$ac_tmp/config.h" "$ac_file" \
32376	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
32377    fi
32378  else
32379    $as_echo "/* $configure_input  */" \
32380      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32381      || as_fn_error $? "could not create -" "$LINENO" 5
32382  fi
32383# Compute "$ac_file"'s index in $config_headers.
32384_am_arg="$ac_file"
32385_am_stamp_count=1
32386for _am_header in $config_headers :; do
32387  case $_am_header in
32388    $_am_arg | $_am_arg:* )
32389      break ;;
32390    * )
32391      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32392  esac
32393done
32394echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32395$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32396	 X"$_am_arg" : 'X\(//\)[^/]' \| \
32397	 X"$_am_arg" : 'X\(//\)$' \| \
32398	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32399$as_echo X"$_am_arg" |
32400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32401	    s//\1/
32402	    q
32403	  }
32404	  /^X\(\/\/\)[^/].*/{
32405	    s//\1/
32406	    q
32407	  }
32408	  /^X\(\/\/\)$/{
32409	    s//\1/
32410	    q
32411	  }
32412	  /^X\(\/\).*/{
32413	    s//\1/
32414	    q
32415	  }
32416	  s/.*/./; q'`/stamp-h$_am_stamp_count
32417 ;;
32418
32419  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32420$as_echo "$as_me: executing $ac_file commands" >&6;}
32421 ;;
32422  esac
32423
32424
32425  case $ac_file$ac_mode in
32426    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32427  # Older Autoconf quotes --file arguments for eval, but not when files
32428  # are listed without --file.  Let's play safe and only enable the eval
32429  # if we detect the quoting.
32430  # TODO: see whether this extra hack can be removed once we start
32431  # requiring Autoconf 2.70 or later.
32432  case $CONFIG_FILES in #(
32433  *\'*) :
32434    eval set x "$CONFIG_FILES" ;; #(
32435  *) :
32436    set x $CONFIG_FILES ;; #(
32437  *) :
32438     ;;
32439esac
32440  shift
32441  # Used to flag and report bootstrapping failures.
32442  am_rc=0
32443  for am_mf
32444  do
32445    # Strip MF so we end up with the name of the file.
32446    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
32447    # Check whether this is an Automake generated Makefile which includes
32448    # dependency-tracking related rules and includes.
32449    # Grep'ing the whole file directly is not great: AIX grep has a line
32450    # limit of 2048, but all sed's we know have understand at least 4000.
32451    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
32452      || continue
32453    am_dirpart=`$as_dirname -- "$am_mf" ||
32454$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32455	 X"$am_mf" : 'X\(//\)[^/]' \| \
32456	 X"$am_mf" : 'X\(//\)$' \| \
32457	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
32458$as_echo X"$am_mf" |
32459    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32460	    s//\1/
32461	    q
32462	  }
32463	  /^X\(\/\/\)[^/].*/{
32464	    s//\1/
32465	    q
32466	  }
32467	  /^X\(\/\/\)$/{
32468	    s//\1/
32469	    q
32470	  }
32471	  /^X\(\/\).*/{
32472	    s//\1/
32473	    q
32474	  }
32475	  s/.*/./; q'`
32476    am_filepart=`$as_basename -- "$am_mf" ||
32477$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
32478	 X"$am_mf" : 'X\(//\)$' \| \
32479	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
32480$as_echo X/"$am_mf" |
32481    sed '/^.*\/\([^/][^/]*\)\/*$/{
32482	    s//\1/
32483	    q
32484	  }
32485	  /^X\/\(\/\/\)$/{
32486	    s//\1/
32487	    q
32488	  }
32489	  /^X\/\(\/\).*/{
32490	    s//\1/
32491	    q
32492	  }
32493	  s/.*/./; q'`
32494    { echo "$as_me:$LINENO: cd "$am_dirpart" \
32495      && sed -e '/# am--include-marker/d' "$am_filepart" \
32496        | $MAKE -f - am--depfiles" >&5
32497   (cd "$am_dirpart" \
32498      && sed -e '/# am--include-marker/d' "$am_filepart" \
32499        | $MAKE -f - am--depfiles) >&5 2>&5
32500   ac_status=$?
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); } || am_rc=$?
32503  done
32504  if test $am_rc -ne 0; then
32505    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32507as_fn_error $? "Something went wrong bootstrapping makefile fragments
32508    for automatic dependency tracking.  Try re-running configure with the
32509    '--disable-dependency-tracking' option to at least be able to build
32510    the package (albeit without support for automatic dependency tracking).
32511See \`config.log' for more details" "$LINENO" 5; }
32512  fi
32513  { am_dirpart=; unset am_dirpart;}
32514  { am_filepart=; unset am_filepart;}
32515  { am_mf=; unset am_mf;}
32516  { am_rc=; unset am_rc;}
32517  rm -f conftest-deps.mk
32518}
32519 ;;
32520    "libtool":C)
32521
32522    # See if we are running on zsh, and set the options that allow our
32523    # commands through without removal of \ escapes.
32524    if test -n "${ZSH_VERSION+set}"; then
32525      setopt NO_GLOB_SUBST
32526    fi
32527
32528    cfgfile=${ofile}T
32529    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32530    $RM "$cfgfile"
32531
32532    cat <<_LT_EOF >> "$cfgfile"
32533#! $SHELL
32534# Generated automatically by $as_me ($PACKAGE) $VERSION
32535# NOTE: Changes made to this file will be lost: look at ltmain.sh.
32536
32537# Provide generalized library-building support services.
32538# Written by Gordon Matzigkeit, 1996
32539
32540# Copyright (C) 2014 Free Software Foundation, Inc.
32541# This is free software; see the source for copying conditions.  There is NO
32542# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
32543
32544# GNU Libtool is free software; you can redistribute it and/or modify
32545# it under the terms of the GNU General Public License as published by
32546# the Free Software Foundation; either version 2 of of the License, or
32547# (at your option) any later version.
32548#
32549# As a special exception to the GNU General Public License, if you
32550# distribute this file as part of a program or library that is built
32551# using GNU Libtool, you may include this file under the  same
32552# distribution terms that you use for the rest of that program.
32553#
32554# GNU Libtool is distributed in the hope that it will be useful, but
32555# WITHOUT ANY WARRANTY; without even the implied warranty of
32556# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32557# GNU General Public License for more details.
32558#
32559# You should have received a copy of the GNU General Public License
32560# along with this program.  If not, see <http://www.gnu.org/licenses/>.
32561
32562
32563# The names of the tagged configurations supported by this script.
32564available_tags='CXX '
32565
32566# Configured defaults for sys_lib_dlsearch_path munging.
32567: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
32568
32569# ### BEGIN LIBTOOL CONFIG
32570
32571# Which release of libtool.m4 was used?
32572macro_version=$macro_version
32573macro_revision=$macro_revision
32574
32575# Whether or not to build shared libraries.
32576build_libtool_libs=$enable_shared
32577
32578# Whether or not to build static libraries.
32579build_old_libs=$enable_static
32580
32581# What type of objects to build.
32582pic_mode=$pic_mode
32583
32584# Whether or not to optimize for fast installation.
32585fast_install=$enable_fast_install
32586
32587# Shared archive member basename,for filename based shared library versioning on AIX.
32588shared_archive_member_spec=$shared_archive_member_spec
32589
32590# Shell to use when invoking shell scripts.
32591SHELL=$lt_SHELL
32592
32593# An echo program that protects backslashes.
32594ECHO=$lt_ECHO
32595
32596# The PATH separator for the build system.
32597PATH_SEPARATOR=$lt_PATH_SEPARATOR
32598
32599# The host system.
32600host_alias=$host_alias
32601host=$host
32602host_os=$host_os
32603
32604# The build system.
32605build_alias=$build_alias
32606build=$build
32607build_os=$build_os
32608
32609# A sed program that does not truncate output.
32610SED=$lt_SED
32611
32612# Sed that helps us avoid accidentally triggering echo(1) options like -n.
32613Xsed="\$SED -e 1s/^X//"
32614
32615# A grep program that handles long lines.
32616GREP=$lt_GREP
32617
32618# An ERE matcher.
32619EGREP=$lt_EGREP
32620
32621# A literal string matcher.
32622FGREP=$lt_FGREP
32623
32624# A BSD- or MS-compatible name lister.
32625NM=$lt_NM
32626
32627# Whether we need soft or hard links.
32628LN_S=$lt_LN_S
32629
32630# What is the maximum length of a command?
32631max_cmd_len=$max_cmd_len
32632
32633# Object file suffix (normally "o").
32634objext=$ac_objext
32635
32636# Executable file suffix (normally "").
32637exeext=$exeext
32638
32639# whether the shell understands "unset".
32640lt_unset=$lt_unset
32641
32642# turn spaces into newlines.
32643SP2NL=$lt_lt_SP2NL
32644
32645# turn newlines into spaces.
32646NL2SP=$lt_lt_NL2SP
32647
32648# convert \$build file names to \$host format.
32649to_host_file_cmd=$lt_cv_to_host_file_cmd
32650
32651# convert \$build files to toolchain format.
32652to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32653
32654# An object symbol dumper.
32655OBJDUMP=$lt_OBJDUMP
32656
32657# Method to check whether dependent libraries are shared objects.
32658deplibs_check_method=$lt_deplibs_check_method
32659
32660# Command to use when deplibs_check_method = "file_magic".
32661file_magic_cmd=$lt_file_magic_cmd
32662
32663# How to find potential files when deplibs_check_method = "file_magic".
32664file_magic_glob=$lt_file_magic_glob
32665
32666# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32667want_nocaseglob=$lt_want_nocaseglob
32668
32669# DLL creation program.
32670DLLTOOL=$lt_DLLTOOL
32671
32672# Command to associate shared and link libraries.
32673sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32674
32675# The archiver.
32676AR=$lt_AR
32677
32678# Flags to create an archive.
32679AR_FLAGS=$lt_AR_FLAGS
32680
32681# How to feed a file listing to the archiver.
32682archiver_list_spec=$lt_archiver_list_spec
32683
32684# A symbol stripping program.
32685STRIP=$lt_STRIP
32686
32687# Commands used to install an old-style archive.
32688RANLIB=$lt_RANLIB
32689old_postinstall_cmds=$lt_old_postinstall_cmds
32690old_postuninstall_cmds=$lt_old_postuninstall_cmds
32691
32692# Whether to use a lock for old archive extraction.
32693lock_old_archive_extraction=$lock_old_archive_extraction
32694
32695# A C compiler.
32696LTCC=$lt_CC
32697
32698# LTCC compiler flags.
32699LTCFLAGS=$lt_CFLAGS
32700
32701# Take the output of nm and produce a listing of raw symbols and C names.
32702global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32703
32704# Transform the output of nm in a proper C declaration.
32705global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32706
32707# Transform the output of nm into a list of symbols to manually relocate.
32708global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
32709
32710# Transform the output of nm in a C name address pair.
32711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32712
32713# Transform the output of nm in a C name address pair when lib prefix is needed.
32714global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32715
32716# The name lister interface.
32717nm_interface=$lt_lt_cv_nm_interface
32718
32719# Specify filename containing input files for \$NM.
32720nm_file_list_spec=$lt_nm_file_list_spec
32721
32722# The root where to search for dependent libraries,and where our libraries should be installed.
32723lt_sysroot=$lt_sysroot
32724
32725# Command to truncate a binary pipe.
32726lt_truncate_bin=$lt_lt_cv_truncate_bin
32727
32728# The name of the directory that contains temporary libtool files.
32729objdir=$objdir
32730
32731# Used to examine libraries when file_magic_cmd begins with "file".
32732MAGIC_CMD=$MAGIC_CMD
32733
32734# Must we lock files when doing compilation?
32735need_locks=$lt_need_locks
32736
32737# Manifest tool.
32738MANIFEST_TOOL=$lt_MANIFEST_TOOL
32739
32740# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32741DSYMUTIL=$lt_DSYMUTIL
32742
32743# Tool to change global to local symbols on Mac OS X.
32744NMEDIT=$lt_NMEDIT
32745
32746# Tool to manipulate fat objects and archives on Mac OS X.
32747LIPO=$lt_LIPO
32748
32749# ldd/readelf like tool for Mach-O binaries on Mac OS X.
32750OTOOL=$lt_OTOOL
32751
32752# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32753OTOOL64=$lt_OTOOL64
32754
32755# Old archive suffix (normally "a").
32756libext=$libext
32757
32758# Shared library suffix (normally ".so").
32759shrext_cmds=$lt_shrext_cmds
32760
32761# The commands to extract the exported symbol list from a shared archive.
32762extract_expsyms_cmds=$lt_extract_expsyms_cmds
32763
32764# Variables whose values should be saved in libtool wrapper scripts and
32765# restored at link time.
32766variables_saved_for_relink=$lt_variables_saved_for_relink
32767
32768# Do we need the "lib" prefix for modules?
32769need_lib_prefix=$need_lib_prefix
32770
32771# Do we need a version for libraries?
32772need_version=$need_version
32773
32774# Library versioning type.
32775version_type=$version_type
32776
32777# Shared library runtime path variable.
32778runpath_var=$runpath_var
32779
32780# Shared library path variable.
32781shlibpath_var=$shlibpath_var
32782
32783# Is shlibpath searched before the hard-coded library search path?
32784shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32785
32786# Format of library name prefix.
32787libname_spec=$lt_libname_spec
32788
32789# List of archive names.  First name is the real one, the rest are links.
32790# The last name is the one that the linker finds with -lNAME
32791library_names_spec=$lt_library_names_spec
32792
32793# The coded name of the library, if different from the real name.
32794soname_spec=$lt_soname_spec
32795
32796# Permission mode override for installation of shared libraries.
32797install_override_mode=$lt_install_override_mode
32798
32799# Command to use after installation of a shared archive.
32800postinstall_cmds=$lt_postinstall_cmds
32801
32802# Command to use after uninstallation of a shared archive.
32803postuninstall_cmds=$lt_postuninstall_cmds
32804
32805# Commands used to finish a libtool library installation in a directory.
32806finish_cmds=$lt_finish_cmds
32807
32808# As "finish_cmds", except a single script fragment to be evaled but
32809# not shown.
32810finish_eval=$lt_finish_eval
32811
32812# Whether we should hardcode library paths into libraries.
32813hardcode_into_libs=$hardcode_into_libs
32814
32815# Compile-time system search path for libraries.
32816sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32817
32818# Detected run-time system search path for libraries.
32819sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
32820
32821# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
32822configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
32823
32824# Whether dlopen is supported.
32825dlopen_support=$enable_dlopen
32826
32827# Whether dlopen of programs is supported.
32828dlopen_self=$enable_dlopen_self
32829
32830# Whether dlopen of statically linked programs is supported.
32831dlopen_self_static=$enable_dlopen_self_static
32832
32833# Commands to strip libraries.
32834old_striplib=$lt_old_striplib
32835striplib=$lt_striplib
32836
32837
32838# The linker used to build libraries.
32839LD=$lt_LD
32840
32841# How to create reloadable object files.
32842reload_flag=$lt_reload_flag
32843reload_cmds=$lt_reload_cmds
32844
32845# Commands used to build an old-style archive.
32846old_archive_cmds=$lt_old_archive_cmds
32847
32848# A language specific compiler.
32849CC=$lt_compiler
32850
32851# Is the compiler the GNU compiler?
32852with_gcc=$GCC
32853
32854# Compiler flag to turn off builtin functions.
32855no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32856
32857# Additional compiler flags for building library objects.
32858pic_flag=$lt_lt_prog_compiler_pic
32859
32860# How to pass a linker flag through the compiler.
32861wl=$lt_lt_prog_compiler_wl
32862
32863# Compiler flag to prevent dynamic linking.
32864link_static_flag=$lt_lt_prog_compiler_static
32865
32866# Does compiler simultaneously support -c and -o options?
32867compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32868
32869# Whether or not to add -lc for building shared libraries.
32870build_libtool_need_lc=$archive_cmds_need_lc
32871
32872# Whether or not to disallow shared libs when runtime libs are static.
32873allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32874
32875# Compiler flag to allow reflexive dlopens.
32876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32877
32878# Compiler flag to generate shared objects directly from archives.
32879whole_archive_flag_spec=$lt_whole_archive_flag_spec
32880
32881# Whether the compiler copes with passing no objects directly.
32882compiler_needs_object=$lt_compiler_needs_object
32883
32884# Create an old-style archive from a shared archive.
32885old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32886
32887# Create a temporary old-style archive to link instead of a shared archive.
32888old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32889
32890# Commands used to build a shared archive.
32891archive_cmds=$lt_archive_cmds
32892archive_expsym_cmds=$lt_archive_expsym_cmds
32893
32894# Commands used to build a loadable module if different from building
32895# a shared archive.
32896module_cmds=$lt_module_cmds
32897module_expsym_cmds=$lt_module_expsym_cmds
32898
32899# Whether we are building with GNU ld or not.
32900with_gnu_ld=$lt_with_gnu_ld
32901
32902# Flag that allows shared libraries with undefined symbols to be built.
32903allow_undefined_flag=$lt_allow_undefined_flag
32904
32905# Flag that enforces no undefined symbols.
32906no_undefined_flag=$lt_no_undefined_flag
32907
32908# Flag to hardcode \$libdir into a binary during linking.
32909# This must work even if \$libdir does not exist
32910hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32911
32912# Whether we need a single "-rpath" flag with a separated argument.
32913hardcode_libdir_separator=$lt_hardcode_libdir_separator
32914
32915# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32916# DIR into the resulting binary.
32917hardcode_direct=$hardcode_direct
32918
32919# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32920# DIR into the resulting binary and the resulting library dependency is
32921# "absolute",i.e impossible to change by setting \$shlibpath_var if the
32922# library is relocated.
32923hardcode_direct_absolute=$hardcode_direct_absolute
32924
32925# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32926# into the resulting binary.
32927hardcode_minus_L=$hardcode_minus_L
32928
32929# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32930# into the resulting binary.
32931hardcode_shlibpath_var=$hardcode_shlibpath_var
32932
32933# Set to "yes" if building a shared library automatically hardcodes DIR
32934# into the library and all subsequent libraries and executables linked
32935# against it.
32936hardcode_automatic=$hardcode_automatic
32937
32938# Set to yes if linker adds runtime paths of dependent libraries
32939# to runtime path list.
32940inherit_rpath=$inherit_rpath
32941
32942# Whether libtool must link a program against all its dependency libraries.
32943link_all_deplibs=$link_all_deplibs
32944
32945# Set to "yes" if exported symbols are required.
32946always_export_symbols=$always_export_symbols
32947
32948# The commands to list exported symbols.
32949export_symbols_cmds=$lt_export_symbols_cmds
32950
32951# Symbols that should not be listed in the preloaded symbols.
32952exclude_expsyms=$lt_exclude_expsyms
32953
32954# Symbols that must always be exported.
32955include_expsyms=$lt_include_expsyms
32956
32957# Commands necessary for linking programs (against libraries) with templates.
32958prelink_cmds=$lt_prelink_cmds
32959
32960# Commands necessary for finishing linking programs.
32961postlink_cmds=$lt_postlink_cmds
32962
32963# Specify filename containing input files.
32964file_list_spec=$lt_file_list_spec
32965
32966# How to hardcode a shared library path into an executable.
32967hardcode_action=$hardcode_action
32968
32969# The directories searched by this compiler when creating a shared library.
32970compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32971
32972# Dependencies to place before and after the objects being linked to
32973# create a shared library.
32974predep_objects=$lt_predep_objects
32975postdep_objects=$lt_postdep_objects
32976predeps=$lt_predeps
32977postdeps=$lt_postdeps
32978
32979# The library search path used internally by the compiler when linking
32980# a shared library.
32981compiler_lib_search_path=$lt_compiler_lib_search_path
32982
32983# ### END LIBTOOL CONFIG
32984
32985_LT_EOF
32986
32987    cat <<'_LT_EOF' >> "$cfgfile"
32988
32989# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
32990
32991# func_munge_path_list VARIABLE PATH
32992# -----------------------------------
32993# VARIABLE is name of variable containing _space_ separated list of
32994# directories to be munged by the contents of PATH, which is string
32995# having a format:
32996# "DIR[:DIR]:"
32997#       string "DIR[ DIR]" will be prepended to VARIABLE
32998# ":DIR[:DIR]"
32999#       string "DIR[ DIR]" will be appended to VARIABLE
33000# "DIRP[:DIRP]::[DIRA:]DIRA"
33001#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
33002#       "DIRA[ DIRA]" will be appended to VARIABLE
33003# "DIR[:DIR]"
33004#       VARIABLE will be replaced by "DIR[ DIR]"
33005func_munge_path_list ()
33006{
33007    case x$2 in
33008    x)
33009        ;;
33010    *:)
33011        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
33012        ;;
33013    x:*)
33014        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
33015        ;;
33016    *::*)
33017        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
33018        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
33019        ;;
33020    *)
33021        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
33022        ;;
33023    esac
33024}
33025
33026
33027# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
33028func_cc_basename ()
33029{
33030    for cc_temp in $*""; do
33031      case $cc_temp in
33032        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
33033        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
33034        \-*) ;;
33035        *) break;;
33036      esac
33037    done
33038    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
33039}
33040
33041
33042# ### END FUNCTIONS SHARED WITH CONFIGURE
33043
33044_LT_EOF
33045
33046  case $host_os in
33047  aix3*)
33048    cat <<\_LT_EOF >> "$cfgfile"
33049# AIX sometimes has problems with the GCC collect2 program.  For some
33050# reason, if we set the COLLECT_NAMES environment variable, the problems
33051# vanish in a puff of smoke.
33052if test set != "${COLLECT_NAMES+set}"; then
33053  COLLECT_NAMES=
33054  export COLLECT_NAMES
33055fi
33056_LT_EOF
33057    ;;
33058  esac
33059
33060
33061ltmain=$ac_aux_dir/ltmain.sh
33062
33063
33064  # We use sed instead of cat because bash on DJGPP gets confused if
33065  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33066  # text mode, it properly converts lines to CR/LF.  This bash problem
33067  # is reportedly fixed, but why not run on old versions too?
33068  sed '$q' "$ltmain" >> "$cfgfile" \
33069     || (rm -f "$cfgfile"; exit 1)
33070
33071   mv -f "$cfgfile" "$ofile" ||
33072    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33073  chmod +x "$ofile"
33074
33075
33076    cat <<_LT_EOF >> "$ofile"
33077
33078# ### BEGIN LIBTOOL TAG CONFIG: CXX
33079
33080# The linker used to build libraries.
33081LD=$lt_LD_CXX
33082
33083# How to create reloadable object files.
33084reload_flag=$lt_reload_flag_CXX
33085reload_cmds=$lt_reload_cmds_CXX
33086
33087# Commands used to build an old-style archive.
33088old_archive_cmds=$lt_old_archive_cmds_CXX
33089
33090# A language specific compiler.
33091CC=$lt_compiler_CXX
33092
33093# Is the compiler the GNU compiler?
33094with_gcc=$GCC_CXX
33095
33096# Compiler flag to turn off builtin functions.
33097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33098
33099# Additional compiler flags for building library objects.
33100pic_flag=$lt_lt_prog_compiler_pic_CXX
33101
33102# How to pass a linker flag through the compiler.
33103wl=$lt_lt_prog_compiler_wl_CXX
33104
33105# Compiler flag to prevent dynamic linking.
33106link_static_flag=$lt_lt_prog_compiler_static_CXX
33107
33108# Does compiler simultaneously support -c and -o options?
33109compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33110
33111# Whether or not to add -lc for building shared libraries.
33112build_libtool_need_lc=$archive_cmds_need_lc_CXX
33113
33114# Whether or not to disallow shared libs when runtime libs are static.
33115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33116
33117# Compiler flag to allow reflexive dlopens.
33118export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33119
33120# Compiler flag to generate shared objects directly from archives.
33121whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33122
33123# Whether the compiler copes with passing no objects directly.
33124compiler_needs_object=$lt_compiler_needs_object_CXX
33125
33126# Create an old-style archive from a shared archive.
33127old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33128
33129# Create a temporary old-style archive to link instead of a shared archive.
33130old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33131
33132# Commands used to build a shared archive.
33133archive_cmds=$lt_archive_cmds_CXX
33134archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33135
33136# Commands used to build a loadable module if different from building
33137# a shared archive.
33138module_cmds=$lt_module_cmds_CXX
33139module_expsym_cmds=$lt_module_expsym_cmds_CXX
33140
33141# Whether we are building with GNU ld or not.
33142with_gnu_ld=$lt_with_gnu_ld_CXX
33143
33144# Flag that allows shared libraries with undefined symbols to be built.
33145allow_undefined_flag=$lt_allow_undefined_flag_CXX
33146
33147# Flag that enforces no undefined symbols.
33148no_undefined_flag=$lt_no_undefined_flag_CXX
33149
33150# Flag to hardcode \$libdir into a binary during linking.
33151# This must work even if \$libdir does not exist
33152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33153
33154# Whether we need a single "-rpath" flag with a separated argument.
33155hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33156
33157# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33158# DIR into the resulting binary.
33159hardcode_direct=$hardcode_direct_CXX
33160
33161# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33162# DIR into the resulting binary and the resulting library dependency is
33163# "absolute",i.e impossible to change by setting \$shlibpath_var if the
33164# library is relocated.
33165hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33166
33167# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33168# into the resulting binary.
33169hardcode_minus_L=$hardcode_minus_L_CXX
33170
33171# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33172# into the resulting binary.
33173hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33174
33175# Set to "yes" if building a shared library automatically hardcodes DIR
33176# into the library and all subsequent libraries and executables linked
33177# against it.
33178hardcode_automatic=$hardcode_automatic_CXX
33179
33180# Set to yes if linker adds runtime paths of dependent libraries
33181# to runtime path list.
33182inherit_rpath=$inherit_rpath_CXX
33183
33184# Whether libtool must link a program against all its dependency libraries.
33185link_all_deplibs=$link_all_deplibs_CXX
33186
33187# Set to "yes" if exported symbols are required.
33188always_export_symbols=$always_export_symbols_CXX
33189
33190# The commands to list exported symbols.
33191export_symbols_cmds=$lt_export_symbols_cmds_CXX
33192
33193# Symbols that should not be listed in the preloaded symbols.
33194exclude_expsyms=$lt_exclude_expsyms_CXX
33195
33196# Symbols that must always be exported.
33197include_expsyms=$lt_include_expsyms_CXX
33198
33199# Commands necessary for linking programs (against libraries) with templates.
33200prelink_cmds=$lt_prelink_cmds_CXX
33201
33202# Commands necessary for finishing linking programs.
33203postlink_cmds=$lt_postlink_cmds_CXX
33204
33205# Specify filename containing input files.
33206file_list_spec=$lt_file_list_spec_CXX
33207
33208# How to hardcode a shared library path into an executable.
33209hardcode_action=$hardcode_action_CXX
33210
33211# The directories searched by this compiler when creating a shared library.
33212compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33213
33214# Dependencies to place before and after the objects being linked to
33215# create a shared library.
33216predep_objects=$lt_predep_objects_CXX
33217postdep_objects=$lt_postdep_objects_CXX
33218predeps=$lt_predeps_CXX
33219postdeps=$lt_postdeps_CXX
33220
33221# The library search path used internally by the compiler when linking
33222# a shared library.
33223compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33224
33225# ### END LIBTOOL TAG CONFIG: CXX
33226_LT_EOF
33227
33228 ;;
33229
33230  esac
33231done # for ac_tag
33232
33233
33234as_fn_exit 0
33235_ACEOF
33236ac_clean_files=$ac_clean_files_save
33237
33238test $ac_write_fail = 0 ||
33239  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33240
33241
33242# configure is writing to config.log, and then calls config.status.
33243# config.status does its own redirection, appending to config.log.
33244# Unfortunately, on DOS this fails, as config.log is still kept open
33245# by configure, so config.status won't be able to write to it; its
33246# output is simply discarded.  So we exec the FD to /dev/null,
33247# effectively closing config.log, so it can be properly (re)opened and
33248# appended to by config.status.  When coming back to configure, we
33249# need to make the FD available again.
33250if test "$no_create" != yes; then
33251  ac_cs_success=:
33252  ac_config_status_args=
33253  test "$silent" = yes &&
33254    ac_config_status_args="$ac_config_status_args --quiet"
33255  exec 5>/dev/null
33256  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33257  exec 5>>config.log
33258  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33259  # would make configure fail if this is the last instruction.
33260  $ac_cs_success || as_fn_exit 1
33261fi
33262if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33263  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33264$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33265fi
33266
33267
33268if test "$want_sql" = "plugin"; then
33269  sql_drivers="$sql_drivers (plugins)"
33270fi
33271
33272not_passdb=`echo "$not_passdb"|sed 's/ / -/g'`
33273not_userdb=`echo "$not_userdb"|sed 's/ / -/g'`
33274not_sql_drivers=`echo "$not_sql_drivers"|sed 's/ / -/g'`
33275not_fts=`echo "$not_fts"|sed 's/ / -/g'`
33276
33277echo
33278echo "Install prefix . : $prefix"
33279echo "File offsets ... : ${offt_bits}bit"
33280echo "I/O polling .... : $ioloop"
33281echo "I/O notifys .... : $have_notify"
33282echo "SSL ............ : $have_ssl"
33283echo "GSSAPI ......... : $have_gssapi"
33284echo "passdbs ........ :$passdb"
33285if test "$not_passdb" != ""; then
33286  echo "                 :$not_passdb"
33287fi
33288echo "userdbs ........ :$userdb"
33289if test "$not_userdb" != ""; then
33290  echo "                 :$not_userdb"
33291fi
33292echo "CFLAGS ......... : $CFLAGS"
33293
33294if test "$systemdsystemunitdir" != ""; then
33295  echo "SYSTEMD ........ : $systemdservicetype - $systemdsystemunitdir/dovecot.service";
33296else
33297  echo "SYSTEMD ........ : $systemdservicetype - (no unit file)"
33298fi
33299
33300echo "SQL drivers .... :$sql_drivers"
33301if test "$not_sql_drivers" != ""; then
33302  echo "                 :$not_sql_drivers"
33303fi
33304echo "Full text search :$fts"
33305if test "$not_fts" != ""; then
33306  echo "                 :$not_fts"
33307fi
33308