1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cyrus-imapd 3.0.16.
4#
5# Report bugs to <https://github.com/cyrusimap/cyrus-imapd/issues>.
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: https://github.com/cyrusimap/cyrus-imapd/issues about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='cyrus-imapd'
592PACKAGE_TARNAME='cyrus-imapd'
593PACKAGE_VERSION='3.0.16'
594PACKAGE_STRING='cyrus-imapd 3.0.16'
595PACKAGE_BUGREPORT='https://github.com/cyrusimap/cyrus-imapd/issues'
596PACKAGE_URL='https://www.cyrusimap.org'
597
598ac_unique_file="imap/imapd.c"
599ac_config_libobj_dir=lib
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639ICU_LIBS
640ICU_CFLAGS
641HAVE_SPHINX_BUILD_FALSE
642HAVE_SPHINX_BUILD_TRUE
643SPHINX_BUILD
644USE_SQLITE_FALSE
645USE_SQLITE_TRUE
646SQLITE_LIBADD
647CUNIT_FALSE
648CUNIT_TRUE
649LIB_UUID
650LIB_UCDSNMP
651SNMP_CONFIG
652LIB_WRAP
653CMU_LIB_SUBDIR
654PERL_PREINSTALL
655PERL_CCCDLFLAGS
656PERL_FALSE
657PERL_TRUE
658PERL
659SASLFLAGS
660LIB_SASL
661DYNSASLFLAGS
662LIB_DYN_SASL
663GSSAPIBASE_LIBS
664LIB_CRYPT
665CMULOCAL_FALSE
666CMULOCAL_TRUE
667GPERF
668COM_ERR_CPPFLAGS
669COM_ERR_LIBS
670PKG_CONFIG_COM_ERR_LIB
671COM_ERR_FALSE
672COM_ERR_TRUE
673COMPILE_ET
674BACKUP_FALSE
675BACKUP_TRUE
676REPLICATION_FALSE
677REPLICATION_TRUE
678CALALARMD_FALSE
679CALALARMD_TRUE
680HTTP_LIBS
681HTTP_CPPFLAGS
682SHAPELIB_LIBS
683SHAPELIB_CFLAGS
684BROTLI_LIBS
685BROTLI_CFLAGS
686NGHTTP2_LIBS
687NGHTTP2_CFLAGS
688ICU4C_LIBS
689ICU4C_CFLAGS
690ICAL_LIBS
691ICAL_CFLAGS
692XML2_LIBS
693XML2_CFLAGS
694HTTPD_FALSE
695HTTPD_TRUE
696MURDER_FALSE
697MURDER_TRUE
698NNTPD_FALSE
699NNTPD_TRUE
700IDLED_FALSE
701IDLED_TRUE
702AUTOCREATE_FALSE
703AUTOCREATE_TRUE
704JANSSON_LIBS
705JANSSON_CFLAGS
706ZEPHYR_FALSE
707ZEPHYR_TRUE
708ZEPHYR_LIBS
709ZLIB
710SSL_LIBS
711SSL_CPPFLAGS
712HAVE_SSL_FALSE
713HAVE_SSL_TRUE
714OPENSSL_LIBS
715OPENSSL_CFLAGS
716SERVER_FALSE
717SERVER_TRUE
718CLAMAV_LIBS
719CLAMAV_CFLAGS
720PTCLIENT_FALSE
721PTCLIENT_TRUE
722HAVE_LDAP_FALSE
723HAVE_LDAP_TRUE
724LDAP_LIBS
725LDAP_LDFLAGS
726LDAP_CPPFLAGS
727USE_AFSKRB_FALSE
728USE_AFSKRB_TRUE
729AFS_LIBS
730AFS_LDFLAGS
731cyrus_cv_sigveclib
732LOCK_FCNTL_FALSE
733LOCK_FCNTL_TRUE
734MAP_STUPIDSHARED_FALSE
735MAP_STUPIDSHARED_TRUE
736MAP_SHARED_FALSE
737MAP_SHARED_TRUE
738GMTOFF_TM_FALSE
739GMTOFF_TM_TRUE
740NONBLOCK_FCNTL_FALSE
741NONBLOCK_FCNTL_TRUE
742NOWARN_SIGN_COMPARE
743SIEVE_FALSE
744SIEVE_TRUE
745LEXLIB
746LEX_OUTPUT_ROOT
747LEX
748YFLAGS
749YACC
750SQUATTER_FALSE
751SQUATTER_TRUE
752USE_XAPIAN_FALSE
753USE_XAPIAN_TRUE
754XAPIAN_VERSION
755XAPIAN_LIBS
756XAPIAN_CXXFLAGS
757HAVE_CXX11
758XAPIAN_CONFIG
759RSYNC_BIN
760RM_BIN
761USE_SPHINX_FALSE
762USE_SPHINX_TRUE
763USE_SQUAT_FALSE
764USE_SQUAT_TRUE
765WITH_OBJSTR_DUMMY_FALSE
766WITH_OBJSTR_DUMMY_TRUE
767WITH_OPENIO_FALSE
768WITH_OPENIO_TRUE
769WITH_CARINGO_FALSE
770WITH_CARINGO_TRUE
771OBJECTSTORE_FALSE
772OBJECTSTORE_TRUE
773USE_CYRUSDB_LMDB_FALSE
774USE_CYRUSDB_LMDB_TRUE
775USE_CYRUSDB_SQL_FALSE
776USE_CYRUSDB_SQL_TRUE
777PGSQL_LIBADD
778MYSQL_LIBADD
779mysql_config
780LOCALDEFS
781IPV6_noGETNAMEINFO_FALSE
782IPV6_noGETNAMEINFO_TRUE
783IPV6_noGETADDRINFO_FALSE
784IPV6_noGETADDRINFO_TRUE
785LIB_SOCKET
786LIBOBJS
787LIBTOOL_DEPS
788CXXCPP
789LT_SYS_LIBRARY_PATH
790OTOOL64
791OTOOL
792LIPO
793NMEDIT
794DSYMUTIL
795MANIFEST_TOOL
796RANLIB
797ac_ct_AR
798AR
799DLLTOOL
800OBJDUMP
801NM
802ac_ct_DUMPBIN
803DUMPBIN
804LD
805FGREP
806SED
807LIBTOOL
808HAVE_VISIBILITY
809CFLAG_VISIBILITY
810EGREP
811GREP
812CPP
813LN_S
814am__fastdepCC_FALSE
815am__fastdepCC_TRUE
816CCDEPMODE
817ac_ct_CC
818CFLAGS
819CC
820am__fastdepCXX_FALSE
821am__fastdepCXX_TRUE
822CXXDEPMODE
823am__nodep
824AMDEPBACKSLASH
825AMDEP_FALSE
826AMDEP_TRUE
827am__include
828DEPDIR
829OBJEXT
830EXEEXT
831ac_ct_CXX
832CPPFLAGS
833LDFLAGS
834CXXFLAGS
835CXX
836cyrus_user
837GCOV_LIBS
838GCOV_LDFLAGS
839GCOV_CXXFLAGS
840GCOV_CFLAGS
841HAVE_COVERAGE_FALSE
842HAVE_COVERAGE_TRUE
843MAINT
844MAINTAINER_MODE_FALSE
845MAINTAINER_MODE_TRUE
846AM_BACKSLASH
847AM_DEFAULT_VERBOSITY
848AM_DEFAULT_V
849AM_V
850am__untar
851am__tar
852AMTAR
853am__leading_dot
854SET_MAKE
855AWK
856mkdir_p
857MKDIR_P
858INSTALL_STRIP_PROGRAM
859STRIP
860install_sh
861MAKEINFO
862AUTOHEADER
863AUTOMAKE
864AUTOCONF
865ACLOCAL
866VERSION
867PACKAGE
868CYGPATH_W
869am__isrc
870INSTALL_DATA
871INSTALL_SCRIPT
872INSTALL_PROGRAM
873PKG_CONFIG_LIBDIR
874PKG_CONFIG_PATH
875PKG_CONFIG
876CYRUS_IMAPD_PATCH
877CYRUS_IMAPD_REVISION
878CYRUS_IMAPD_SERIES
879target_os
880target_vendor
881target_cpu
882target
883host_os
884host_vendor
885host_cpu
886host
887build_os
888build_vendor
889build_cpu
890build
891target_alias
892host_alias
893build_alias
894LIBS
895ECHO_T
896ECHO_N
897ECHO_C
898DEFS
899mandir
900localedir
901libdir
902psdir
903pdfdir
904dvidir
905htmldir
906infodir
907docdir
908oldincludedir
909includedir
910runstatedir
911localstatedir
912sharedstatedir
913sysconfdir
914datadir
915datarootdir
916libexecdir
917sbindir
918bindir
919program_transform_name
920prefix
921exec_prefix
922PACKAGE_URL
923PACKAGE_BUGREPORT
924PACKAGE_STRING
925PACKAGE_VERSION
926PACKAGE_TARNAME
927PACKAGE_NAME
928PATH_SEPARATOR
929SHELL
930am__quote'
931ac_subst_files=''
932ac_user_opts='
933enable_option_checking
934enable_silent_rules
935with_extraident
936enable_maintainer_mode
937enable_coverage
938with_login
939with_cyrus_user
940enable_dependency_tracking
941enable_static
942enable_shared
943with_pic
944enable_fast_install
945with_aix_soname
946with_gnu_ld
947with_sysroot
948enable_libtool_lock
949with_mysql_libdir
950with_mysql_incdir
951with_mysql
952with_pgsql
953with_pgsql_libdir
954with_pgsql_incdir
955with_sqlite
956with_sqlite_libdir
957with_sqlite_incdir
958with_lmdb
959with_caringo
960with_openio
961with_openio_libdir
962with_openio_incdir
963enable_objectstore
964enable_squat
965enable_sphinx
966enable_xapian
967enable_sieve
968enable_pcre
969with_mmap
970with_lock
971enable_afs
972with_afs_libdir
973with_afs_incdir
974with_ldap
975enable_krb5afspts
976with_clamav
977enable_server
978with_krb
979with_krbimpl
980enable_statickrb
981with_krbdes
982with_openssl
983with_egd_socket
984with_zlib
985with_zephyr
986with_libcap
987enable_event_notification
988with_pidfile
989enable_autocreate
990enable_idled
991enable_nntp
992enable_murder
993enable_http
994with_nghttp2
995enable_calalarmd
996enable_replication
997enable_backup
998with_com_err
999with_syslogfacility
1000enable_cmulocal
1001enable_oldsievename
1002enable_gssapi
1003with_gss_impl
1004with_sasl
1005with_staticsasl
1006with_perl
1007with_lib_subdir
1008with_libwrap
1009with_snmp
1010with_ucdsnmp
1011enable_unit_tests
1012with_sphinx_build
1013'
1014      ac_precious_vars='build_alias
1015host_alias
1016target_alias
1017PKG_CONFIG
1018PKG_CONFIG_PATH
1019PKG_CONFIG_LIBDIR
1020CXX
1021CXXFLAGS
1022LDFLAGS
1023LIBS
1024CPPFLAGS
1025CCC
1026CC
1027CFLAGS
1028CPP
1029LT_SYS_LIBRARY_PATH
1030CXXCPP
1031RM_BIN
1032RSYNC_BIN
1033XAPIAN_CONFIG
1034YACC
1035YFLAGS
1036CLAMAV_CFLAGS
1037CLAMAV_LIBS
1038OPENSSL_CFLAGS
1039OPENSSL_LIBS
1040JANSSON_CFLAGS
1041JANSSON_LIBS
1042XML2_CFLAGS
1043XML2_LIBS
1044ICAL_CFLAGS
1045ICAL_LIBS
1046ICU4C_CFLAGS
1047ICU4C_LIBS
1048NGHTTP2_CFLAGS
1049NGHTTP2_LIBS
1050BROTLI_CFLAGS
1051BROTLI_LIBS
1052SHAPELIB_CFLAGS
1053SHAPELIB_LIBS
1054SPHINX_BUILD
1055ICU_CFLAGS
1056ICU_LIBS'
1057
1058
1059# Initialize some variables set by options.
1060ac_init_help=
1061ac_init_version=false
1062ac_unrecognized_opts=
1063ac_unrecognized_sep=
1064# The variables have the same names as the options, with
1065# dashes changed to underlines.
1066cache_file=/dev/null
1067exec_prefix=NONE
1068no_create=
1069no_recursion=
1070prefix=NONE
1071program_prefix=NONE
1072program_suffix=NONE
1073program_transform_name=s,x,x,
1074silent=
1075site=
1076srcdir=
1077verbose=
1078x_includes=NONE
1079x_libraries=NONE
1080
1081# Installation directory options.
1082# These are left unexpanded so users can "make install exec_prefix=/foo"
1083# and all the variables that are supposed to be based on exec_prefix
1084# by default will actually change.
1085# Use braces instead of parens because sh, perl, etc. also accept them.
1086# (The list follows the same order as the GNU Coding Standards.)
1087bindir='${exec_prefix}/bin'
1088sbindir='${exec_prefix}/sbin'
1089libexecdir='${exec_prefix}/libexec'
1090datarootdir='${prefix}/share'
1091datadir='${datarootdir}'
1092sysconfdir='${prefix}/etc'
1093sharedstatedir='${prefix}/com'
1094localstatedir='${prefix}/var'
1095runstatedir='${localstatedir}/run'
1096includedir='${prefix}/include'
1097oldincludedir='/usr/include'
1098docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1099infodir='${datarootdir}/info'
1100htmldir='${docdir}'
1101dvidir='${docdir}'
1102pdfdir='${docdir}'
1103psdir='${docdir}'
1104libdir='${exec_prefix}/lib'
1105localedir='${datarootdir}/locale'
1106mandir='${datarootdir}/man'
1107
1108ac_prev=
1109ac_dashdash=
1110for ac_option
1111do
1112  # If the previous option needs an argument, assign it.
1113  if test -n "$ac_prev"; then
1114    eval $ac_prev=\$ac_option
1115    ac_prev=
1116    continue
1117  fi
1118
1119  case $ac_option in
1120  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1121  *=)   ac_optarg= ;;
1122  *)    ac_optarg=yes ;;
1123  esac
1124
1125  # Accept the important Cygnus configure options, so we can diagnose typos.
1126
1127  case $ac_dashdash$ac_option in
1128  --)
1129    ac_dashdash=yes ;;
1130
1131  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1132    ac_prev=bindir ;;
1133  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1134    bindir=$ac_optarg ;;
1135
1136  -build | --build | --buil | --bui | --bu)
1137    ac_prev=build_alias ;;
1138  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1139    build_alias=$ac_optarg ;;
1140
1141  -cache-file | --cache-file | --cache-fil | --cache-fi \
1142  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1143    ac_prev=cache_file ;;
1144  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1145  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1146    cache_file=$ac_optarg ;;
1147
1148  --config-cache | -C)
1149    cache_file=config.cache ;;
1150
1151  -datadir | --datadir | --datadi | --datad)
1152    ac_prev=datadir ;;
1153  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1154    datadir=$ac_optarg ;;
1155
1156  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1157  | --dataroo | --dataro | --datar)
1158    ac_prev=datarootdir ;;
1159  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1160  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1161    datarootdir=$ac_optarg ;;
1162
1163  -disable-* | --disable-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid feature name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"enable_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval enable_$ac_useropt=no ;;
1178
1179  -docdir | --docdir | --docdi | --doc | --do)
1180    ac_prev=docdir ;;
1181  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1182    docdir=$ac_optarg ;;
1183
1184  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1185    ac_prev=dvidir ;;
1186  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1187    dvidir=$ac_optarg ;;
1188
1189  -enable-* | --enable-*)
1190    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1191    # Reject names that are not valid shell variable names.
1192    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193      as_fn_error $? "invalid feature name: $ac_useropt"
1194    ac_useropt_orig=$ac_useropt
1195    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196    case $ac_user_opts in
1197      *"
1198"enable_$ac_useropt"
1199"*) ;;
1200      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1201	 ac_unrecognized_sep=', ';;
1202    esac
1203    eval enable_$ac_useropt=\$ac_optarg ;;
1204
1205  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1206  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1207  | --exec | --exe | --ex)
1208    ac_prev=exec_prefix ;;
1209  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1210  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1211  | --exec=* | --exe=* | --ex=*)
1212    exec_prefix=$ac_optarg ;;
1213
1214  -gas | --gas | --ga | --g)
1215    # Obsolete; use --with-gas.
1216    with_gas=yes ;;
1217
1218  -help | --help | --hel | --he | -h)
1219    ac_init_help=long ;;
1220  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1221    ac_init_help=recursive ;;
1222  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1223    ac_init_help=short ;;
1224
1225  -host | --host | --hos | --ho)
1226    ac_prev=host_alias ;;
1227  -host=* | --host=* | --hos=* | --ho=*)
1228    host_alias=$ac_optarg ;;
1229
1230  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1231    ac_prev=htmldir ;;
1232  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1233  | --ht=*)
1234    htmldir=$ac_optarg ;;
1235
1236  -includedir | --includedir | --includedi | --included | --include \
1237  | --includ | --inclu | --incl | --inc)
1238    ac_prev=includedir ;;
1239  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1240  | --includ=* | --inclu=* | --incl=* | --inc=*)
1241    includedir=$ac_optarg ;;
1242
1243  -infodir | --infodir | --infodi | --infod | --info | --inf)
1244    ac_prev=infodir ;;
1245  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1246    infodir=$ac_optarg ;;
1247
1248  -libdir | --libdir | --libdi | --libd)
1249    ac_prev=libdir ;;
1250  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1251    libdir=$ac_optarg ;;
1252
1253  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1254  | --libexe | --libex | --libe)
1255    ac_prev=libexecdir ;;
1256  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1257  | --libexe=* | --libex=* | --libe=*)
1258    libexecdir=$ac_optarg ;;
1259
1260  -localedir | --localedir | --localedi | --localed | --locale)
1261    ac_prev=localedir ;;
1262  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1263    localedir=$ac_optarg ;;
1264
1265  -localstatedir | --localstatedir | --localstatedi | --localstated \
1266  | --localstate | --localstat | --localsta | --localst | --locals)
1267    ac_prev=localstatedir ;;
1268  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1269  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1270    localstatedir=$ac_optarg ;;
1271
1272  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1273    ac_prev=mandir ;;
1274  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1275    mandir=$ac_optarg ;;
1276
1277  -nfp | --nfp | --nf)
1278    # Obsolete; use --without-fp.
1279    with_fp=no ;;
1280
1281  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1282  | --no-cr | --no-c | -n)
1283    no_create=yes ;;
1284
1285  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1286  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1287    no_recursion=yes ;;
1288
1289  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1290  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1291  | --oldin | --oldi | --old | --ol | --o)
1292    ac_prev=oldincludedir ;;
1293  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1294  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1295  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1296    oldincludedir=$ac_optarg ;;
1297
1298  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1299    ac_prev=prefix ;;
1300  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1301    prefix=$ac_optarg ;;
1302
1303  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1304  | --program-pre | --program-pr | --program-p)
1305    ac_prev=program_prefix ;;
1306  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1307  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1308    program_prefix=$ac_optarg ;;
1309
1310  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1311  | --program-suf | --program-su | --program-s)
1312    ac_prev=program_suffix ;;
1313  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1314  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1315    program_suffix=$ac_optarg ;;
1316
1317  -program-transform-name | --program-transform-name \
1318  | --program-transform-nam | --program-transform-na \
1319  | --program-transform-n | --program-transform- \
1320  | --program-transform | --program-transfor \
1321  | --program-transfo | --program-transf \
1322  | --program-trans | --program-tran \
1323  | --progr-tra | --program-tr | --program-t)
1324    ac_prev=program_transform_name ;;
1325  -program-transform-name=* | --program-transform-name=* \
1326  | --program-transform-nam=* | --program-transform-na=* \
1327  | --program-transform-n=* | --program-transform-=* \
1328  | --program-transform=* | --program-transfor=* \
1329  | --program-transfo=* | --program-transf=* \
1330  | --program-trans=* | --program-tran=* \
1331  | --progr-tra=* | --program-tr=* | --program-t=*)
1332    program_transform_name=$ac_optarg ;;
1333
1334  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1335    ac_prev=pdfdir ;;
1336  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1337    pdfdir=$ac_optarg ;;
1338
1339  -psdir | --psdir | --psdi | --psd | --ps)
1340    ac_prev=psdir ;;
1341  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1342    psdir=$ac_optarg ;;
1343
1344  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1345  | -silent | --silent | --silen | --sile | --sil)
1346    silent=yes ;;
1347
1348  -runstatedir | --runstatedir | --runstatedi | --runstated \
1349  | --runstate | --runstat | --runsta | --runst | --runs \
1350  | --run | --ru | --r)
1351    ac_prev=runstatedir ;;
1352  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1353  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1354  | --run=* | --ru=* | --r=*)
1355    runstatedir=$ac_optarg ;;
1356
1357  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1358    ac_prev=sbindir ;;
1359  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1360  | --sbi=* | --sb=*)
1361    sbindir=$ac_optarg ;;
1362
1363  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1364  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1365  | --sharedst | --shareds | --shared | --share | --shar \
1366  | --sha | --sh)
1367    ac_prev=sharedstatedir ;;
1368  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1369  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1370  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1371  | --sha=* | --sh=*)
1372    sharedstatedir=$ac_optarg ;;
1373
1374  -site | --site | --sit)
1375    ac_prev=site ;;
1376  -site=* | --site=* | --sit=*)
1377    site=$ac_optarg ;;
1378
1379  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1380    ac_prev=srcdir ;;
1381  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1382    srcdir=$ac_optarg ;;
1383
1384  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1385  | --syscon | --sysco | --sysc | --sys | --sy)
1386    ac_prev=sysconfdir ;;
1387  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1388  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1389    sysconfdir=$ac_optarg ;;
1390
1391  -target | --target | --targe | --targ | --tar | --ta | --t)
1392    ac_prev=target_alias ;;
1393  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1394    target_alias=$ac_optarg ;;
1395
1396  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1397    verbose=yes ;;
1398
1399  -version | --version | --versio | --versi | --vers | -V)
1400    ac_init_version=: ;;
1401
1402  -with-* | --with-*)
1403    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1404    # Reject names that are not valid shell variable names.
1405    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406      as_fn_error $? "invalid package name: $ac_useropt"
1407    ac_useropt_orig=$ac_useropt
1408    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1409    case $ac_user_opts in
1410      *"
1411"with_$ac_useropt"
1412"*) ;;
1413      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1414	 ac_unrecognized_sep=', ';;
1415    esac
1416    eval with_$ac_useropt=\$ac_optarg ;;
1417
1418  -without-* | --without-*)
1419    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1420    # Reject names that are not valid shell variable names.
1421    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422      as_fn_error $? "invalid package name: $ac_useropt"
1423    ac_useropt_orig=$ac_useropt
1424    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425    case $ac_user_opts in
1426      *"
1427"with_$ac_useropt"
1428"*) ;;
1429      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1430	 ac_unrecognized_sep=', ';;
1431    esac
1432    eval with_$ac_useropt=no ;;
1433
1434  --x)
1435    # Obsolete; use --with-x.
1436    with_x=yes ;;
1437
1438  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1439  | --x-incl | --x-inc | --x-in | --x-i)
1440    ac_prev=x_includes ;;
1441  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1442  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1443    x_includes=$ac_optarg ;;
1444
1445  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1446  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1447    ac_prev=x_libraries ;;
1448  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1449  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1450    x_libraries=$ac_optarg ;;
1451
1452  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1453Try \`$0 --help' for more information"
1454    ;;
1455
1456  *=*)
1457    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1458    # Reject names that are not valid shell variable names.
1459    case $ac_envvar in #(
1460      '' | [0-9]* | *[!_$as_cr_alnum]* )
1461      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1462    esac
1463    eval $ac_envvar=\$ac_optarg
1464    export $ac_envvar ;;
1465
1466  *)
1467    # FIXME: should be removed in autoconf 3.0.
1468    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1469    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1470      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1471    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1472    ;;
1473
1474  esac
1475done
1476
1477if test -n "$ac_prev"; then
1478  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1479  as_fn_error $? "missing argument to $ac_option"
1480fi
1481
1482if test -n "$ac_unrecognized_opts"; then
1483  case $enable_option_checking in
1484    no) ;;
1485    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1486    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1487  esac
1488fi
1489
1490# Check all directory arguments for consistency.
1491for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1492		datadir sysconfdir sharedstatedir localstatedir includedir \
1493		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1494		libdir localedir mandir runstatedir
1495do
1496  eval ac_val=\$$ac_var
1497  # Remove trailing slashes.
1498  case $ac_val in
1499    */ )
1500      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1501      eval $ac_var=\$ac_val;;
1502  esac
1503  # Be sure to have absolute directory names.
1504  case $ac_val in
1505    [\\/$]* | ?:[\\/]* )  continue;;
1506    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1507  esac
1508  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1509done
1510
1511# There might be people who depend on the old broken behavior: `$host'
1512# used to hold the argument of --host etc.
1513# FIXME: To remove some day.
1514build=$build_alias
1515host=$host_alias
1516target=$target_alias
1517
1518# FIXME: To remove some day.
1519if test "x$host_alias" != x; then
1520  if test "x$build_alias" = x; then
1521    cross_compiling=maybe
1522  elif test "x$build_alias" != "x$host_alias"; then
1523    cross_compiling=yes
1524  fi
1525fi
1526
1527ac_tool_prefix=
1528test -n "$host_alias" && ac_tool_prefix=$host_alias-
1529
1530test "$silent" = yes && exec 6>/dev/null
1531
1532
1533ac_pwd=`pwd` && test -n "$ac_pwd" &&
1534ac_ls_di=`ls -di .` &&
1535ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1536  as_fn_error $? "working directory cannot be determined"
1537test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1538  as_fn_error $? "pwd does not report name of working directory"
1539
1540
1541# Find the source files, if location was not specified.
1542if test -z "$srcdir"; then
1543  ac_srcdir_defaulted=yes
1544  # Try the directory containing this script, then the parent directory.
1545  ac_confdir=`$as_dirname -- "$as_myself" ||
1546$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1547	 X"$as_myself" : 'X\(//\)[^/]' \| \
1548	 X"$as_myself" : 'X\(//\)$' \| \
1549	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1550$as_echo X"$as_myself" |
1551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1552	    s//\1/
1553	    q
1554	  }
1555	  /^X\(\/\/\)[^/].*/{
1556	    s//\1/
1557	    q
1558	  }
1559	  /^X\(\/\/\)$/{
1560	    s//\1/
1561	    q
1562	  }
1563	  /^X\(\/\).*/{
1564	    s//\1/
1565	    q
1566	  }
1567	  s/.*/./; q'`
1568  srcdir=$ac_confdir
1569  if test ! -r "$srcdir/$ac_unique_file"; then
1570    srcdir=..
1571  fi
1572else
1573  ac_srcdir_defaulted=no
1574fi
1575if test ! -r "$srcdir/$ac_unique_file"; then
1576  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1577  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1578fi
1579ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1580ac_abs_confdir=`(
1581	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1582	pwd)`
1583# When building in place, set srcdir=.
1584if test "$ac_abs_confdir" = "$ac_pwd"; then
1585  srcdir=.
1586fi
1587# Remove unnecessary trailing slashes from srcdir.
1588# Double slashes in file names in object file debugging info
1589# mess up M-x gdb in Emacs.
1590case $srcdir in
1591*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1592esac
1593for ac_var in $ac_precious_vars; do
1594  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1595  eval ac_env_${ac_var}_value=\$${ac_var}
1596  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1597  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1598done
1599
1600#
1601# Report the --help message.
1602#
1603if test "$ac_init_help" = "long"; then
1604  # Omit some internal or obsolete options to make the list less imposing.
1605  # This message is too long to be a string in the A/UX 3.1 sh.
1606  cat <<_ACEOF
1607\`configure' configures cyrus-imapd 3.0.16 to adapt to many kinds of systems.
1608
1609Usage: $0 [OPTION]... [VAR=VALUE]...
1610
1611To assign environment variables (e.g., CC, CFLAGS...), specify them as
1612VAR=VALUE.  See below for descriptions of some of the useful variables.
1613
1614Defaults for the options are specified in brackets.
1615
1616Configuration:
1617  -h, --help              display this help and exit
1618      --help=short        display options specific to this package
1619      --help=recursive    display the short help of all the included packages
1620  -V, --version           display version information and exit
1621  -q, --quiet, --silent   do not print \`checking ...' messages
1622      --cache-file=FILE   cache test results in FILE [disabled]
1623  -C, --config-cache      alias for \`--cache-file=config.cache'
1624  -n, --no-create         do not create output files
1625      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1626
1627Installation directories:
1628  --prefix=PREFIX         install architecture-independent files in PREFIX
1629                          [$ac_default_prefix]
1630  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1631                          [PREFIX]
1632
1633By default, \`make install' will install all the files in
1634\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1635an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1636for instance \`--prefix=\$HOME'.
1637
1638For better control, use the options below.
1639
1640Fine tuning of the installation directories:
1641  --bindir=DIR            user executables [EPREFIX/bin]
1642  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1643  --libexecdir=DIR        program executables [EPREFIX/libexec]
1644  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1645  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1646  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1647  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1648  --libdir=DIR            object code libraries [EPREFIX/lib]
1649  --includedir=DIR        C header files [PREFIX/include]
1650  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1651  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1652  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1653  --infodir=DIR           info documentation [DATAROOTDIR/info]
1654  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1655  --mandir=DIR            man documentation [DATAROOTDIR/man]
1656  --docdir=DIR            documentation root [DATAROOTDIR/doc/cyrus-imapd]
1657  --htmldir=DIR           html documentation [DOCDIR]
1658  --dvidir=DIR            dvi documentation [DOCDIR]
1659  --pdfdir=DIR            pdf documentation [DOCDIR]
1660  --psdir=DIR             ps documentation [DOCDIR]
1661_ACEOF
1662
1663  cat <<\_ACEOF
1664
1665Program names:
1666  --program-prefix=PREFIX            prepend PREFIX to installed program names
1667  --program-suffix=SUFFIX            append SUFFIX to installed program names
1668  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1669
1670System types:
1671  --build=BUILD     configure for building on BUILD [guessed]
1672  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1673  --target=TARGET   configure for building compilers for TARGET [HOST]
1674_ACEOF
1675fi
1676
1677if test -n "$ac_init_help"; then
1678  case $ac_init_help in
1679     short | recursive ) echo "Configuration of cyrus-imapd 3.0.16:";;
1680   esac
1681  cat <<\_ACEOF
1682
1683Optional Features:
1684  --disable-option-checking  ignore unrecognized --enable/--with options
1685  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1686  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1687  --enable-silent-rules   less verbose build output (undo: "make V=1")
1688  --disable-silent-rules  verbose build output (undo: "make V=0")
1689  --enable-maintainer-mode
1690                          enable make rules and dependencies not useful (and
1691                          sometimes confusing) to the casual installer
1692  --enable-coverage       enable C test coverage
1693
1694  --enable-dependency-tracking
1695                          do not reject slow dependency extractors
1696  --disable-dependency-tracking
1697                          speeds up one-time build
1698  --enable-static[=PKGS]  build static libraries [default=no]
1699  --enable-shared[=PKGS]  build shared libraries [default=yes]
1700  --enable-fast-install[=PKGS]
1701                          optimize for fast installation [default=yes]
1702  --disable-libtool-lock  avoid locking (might break parallel builds)
1703  --enable-objectstore    enable IMAP objectstore support. Use --with-caringo
1704                          or --with-openio to choose a backend
1705  --disable-squat         disable Squat support
1706  --enable-sphinx         enable Sphinx support
1707  --enable-xapian         enable Xapian support
1708  --disable-sieve         disable Sieve support
1709  --disable-pcre          disable PCRE library
1710  --enable-afs            Enable AFS with ptloader
1711  --enable-krb5afspts     compile afskrb PTS module with krb5 support
1712  --disable-server        disable compiling servers
1713  --enable-statickrb      link Kerberos statically
1714  --disable-event-notification
1715                          disable compiling of mailbox event notification
1716                          (that needs jansson library)
1717  --enable-autocreate     enable autocreate support
1718  --enable-idled          enable IMAP idled support
1719  --enable-nntp           enable NNTP support
1720  --enable-murder         enable IMAP Murder support
1721  --enable-http           enable HTTP support
1722  --enable-calalarmd      enable CalDAV alarm support
1723  --enable-replication    enable replication support (experimental)
1724  --enable-backup         enable backup support (experimental)
1725  --enable-cmulocal       enable CMU-specific local support
1726  --enable-oldsievename   enable the use of 'imap' as the sieve service name
1727  --enable-gssapi=<DIR>   enable GSSAPI authentication [yes]
1728  --enable-unit-tests     enable CUnit-based unit regression tests
1729
1730Optional Packages:
1731  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1732  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1733  --with-extraident=STRING
1734                          use STRING as extra version information
1735
1736  --with-cyrus-user=USERID
1737                          use USERID cyrus userid
1738  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1739                          both]
1740  --with-aix-soname=aix|svr4|both
1741                          shared library versioning (aka "SONAME") variant to
1742                          provide on AIX, [default=aix].
1743  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1744  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1745                          compiler's sysroot if not specified).
1746  --with-mysql-libdir=DIR MySQL lib files are in DIR
1747  --with-mysql-incdir=DIR MySQL include files are in DIR
1748  --with-mysql=DIR        use MySQL (in DIR) [no]
1749  --with-pgsql=DIR        use PostgreSQL (in DIR) [no]
1750  --with-pgsql-libdir=DIR Pgsql lib files are in DIR
1751  --with-pgsql-incdir=DIR Pgsql include files are in DIR
1752  --with-sqlite=DIR       use SQLite (in DIR) [no]
1753  --with-sqlite-libdir=DIR
1754                          SQLite lib files are in DIR
1755  --with-sqlite-incdir=DIR
1756                          SQLite include files are in DIR
1757  --with-lmdb             use LMDB backend [no]
1758  --with-caringo          use Caringo ("yes" or "no")
1759  --with-openio=yes|no    use OpenIO ("yes" or "no")
1760  --with-openio-libdir=DIR
1761                          OpenIO lib files are in DIR
1762  --with-openio-incdir=DIR
1763                          OpenIO include files are in DIR
1764  --with-mmap=TYPE        force shared/stupidshared/nommap - JUST FOR TESTING
1765  --with-lock=METHOD      force use of METHOD for locking (flock or fcntl)
1766  --with-afs-libdir=DIR   use AFS libraries from DIR [/usr/lib]
1767  --with-afs-incdir=DIR   use AFS headers from DIR [/usr/include]
1768  --with-ldap=DIR         use LDAP (in DIR) (experimental) [/usr/local]
1769  --without-clamav        ignore presence of ClamAV and disable it
1770  --with-krb=DIR          use Kerberos from DIR
1771  --with-krbimpl=kth|mit  assume Kerberos 4 from KTH or MIT
1772  --with-krbdes           use Kerberos DES implementation [yes]
1773  --with-openssl=DIR      use OpenSSL from DIR
1774  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname for systems
1775                          without /dev/urandom
1776  --with-zlib=DIR         use zlib from DIR
1777  --with-zephyr=DIR       enable Zephyr notification (installed on DIR)
1778  --with-libcap           Enable libcap system capabilities handling (Linux
1779                          systems only)
1780  --with-pidfile=DIR      pidfile in DIR [/var/run/cyrus-master.pid]
1781  --without-nghttp2       disable HTTP/2 support (check)
1782  --with-com_err=DIR      use com_err from path -- includes in DIR/include,
1783                          libs in DIR/lib, and compile_et in DIR/bin
1784  --with-syslogfacility=FACILITY
1785                          set the syslog facility to use (default LOCAL6)
1786  --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1787                          choose specific GSSAPI implementation [[auto]]
1788  --with-sasl=DIR         Compile with libsasl2 in <DIR>
1789  --with-staticsasl=DIR   Compile with staticly linked libsasl2 in <DIR>
1790  --with-perl=PERL        use PERL for perl
1791  --with-lib-subdir=DIR   Find libraries in DIR instead of lib
1792  --with-libwrap=DIR      use libwrap (rooted in DIR) [yes]
1793  --with-snmp=DIR         use ucd|net snmp (rooted in DIR) [yes]
1794  --with-sphinx-build=(yes|no|PATH)
1795                          Look for sphinx-build in PATH
1796
1797Some influential environment variables:
1798  PKG_CONFIG  path to pkg-config utility
1799  PKG_CONFIG_PATH
1800              directories to add to pkg-config's search path
1801  PKG_CONFIG_LIBDIR
1802              path overriding pkg-config's built-in search path
1803  CXX         C++ compiler command
1804  CXXFLAGS    C++ compiler flags
1805  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1806              nonstandard directory <lib dir>
1807  LIBS        libraries to pass to the linker, e.g. -l<library>
1808  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1809              you have headers in a nonstandard directory <include dir>
1810  CC          C compiler command
1811  CFLAGS      C compiler flags
1812  CPP         C preprocessor
1813  LT_SYS_LIBRARY_PATH
1814              User-defined run-time library search path.
1815  CXXCPP      C++ preprocessor
1816  RM_BIN      Location of rm
1817  RSYNC_BIN   Location of rsync
1818  XAPIAN_CONFIG
1819              Location of xapian-config
1820  YACC        The `Yet Another Compiler Compiler' implementation to use.
1821              Defaults to the first program found out of: `bison -y', `byacc',
1822              `yacc'.
1823  YFLAGS      The list of arguments that will be passed by default to $YACC.
1824              This script will default YFLAGS to the empty string to avoid a
1825              default value of `-d' given by some make applications.
1826  CLAMAV_CFLAGS
1827              C compiler flags for CLAMAV, overriding pkg-config
1828  CLAMAV_LIBS linker flags for CLAMAV, overriding pkg-config
1829  OPENSSL_CFLAGS
1830              C compiler flags for OPENSSL, overriding pkg-config
1831  OPENSSL_LIBS
1832              linker flags for OPENSSL, overriding pkg-config
1833  JANSSON_CFLAGS
1834              C compiler flags for JANSSON, overriding pkg-config
1835  JANSSON_LIBS
1836              linker flags for JANSSON, overriding pkg-config
1837  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1838  XML2_LIBS   linker flags for XML2, overriding pkg-config
1839  ICAL_CFLAGS C compiler flags for ICAL, overriding pkg-config
1840  ICAL_LIBS   linker flags for ICAL, overriding pkg-config
1841  ICU4C_CFLAGS
1842              C compiler flags for ICU4C, overriding pkg-config
1843  ICU4C_LIBS  linker flags for ICU4C, overriding pkg-config
1844  NGHTTP2_CFLAGS
1845              C compiler flags for NGHTTP2, overriding pkg-config
1846  NGHTTP2_LIBS
1847              linker flags for NGHTTP2, overriding pkg-config
1848  BROTLI_CFLAGS
1849              C compiler flags for BROTLI, overriding pkg-config
1850  BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1851  SHAPELIB_CFLAGS
1852              C compiler flags for SHAPELIB, overriding pkg-config
1853  SHAPELIB_LIBS
1854              linker flags for SHAPELIB, overriding pkg-config
1855  SPHINX_BUILD
1856              Location of sphinx-build
1857  ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1858  ICU_LIBS    linker flags for ICU, overriding pkg-config
1859
1860Use these variables to override the choices made by `configure' or to help
1861it to find libraries and programs with nonstandard names/locations.
1862
1863Report bugs to <https://github.com/cyrusimap/cyrus-imapd/issues>.
1864cyrus-imapd home page: <https://www.cyrusimap.org>.
1865_ACEOF
1866ac_status=$?
1867fi
1868
1869if test "$ac_init_help" = "recursive"; then
1870  # If there are subdirs, report their specific --help.
1871  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1872    test -d "$ac_dir" ||
1873      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1874      continue
1875    ac_builddir=.
1876
1877case "$ac_dir" in
1878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1879*)
1880  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1881  # A ".." for each directory in $ac_dir_suffix.
1882  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1883  case $ac_top_builddir_sub in
1884  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1885  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1886  esac ;;
1887esac
1888ac_abs_top_builddir=$ac_pwd
1889ac_abs_builddir=$ac_pwd$ac_dir_suffix
1890# for backward compatibility:
1891ac_top_builddir=$ac_top_build_prefix
1892
1893case $srcdir in
1894  .)  # We are building in place.
1895    ac_srcdir=.
1896    ac_top_srcdir=$ac_top_builddir_sub
1897    ac_abs_top_srcdir=$ac_pwd ;;
1898  [\\/]* | ?:[\\/]* )  # Absolute name.
1899    ac_srcdir=$srcdir$ac_dir_suffix;
1900    ac_top_srcdir=$srcdir
1901    ac_abs_top_srcdir=$srcdir ;;
1902  *) # Relative name.
1903    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1904    ac_top_srcdir=$ac_top_build_prefix$srcdir
1905    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1906esac
1907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1908
1909    cd "$ac_dir" || { ac_status=$?; continue; }
1910    # Check for guested configure.
1911    if test -f "$ac_srcdir/configure.gnu"; then
1912      echo &&
1913      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1914    elif test -f "$ac_srcdir/configure"; then
1915      echo &&
1916      $SHELL "$ac_srcdir/configure" --help=recursive
1917    else
1918      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1919    fi || ac_status=$?
1920    cd "$ac_pwd" || { ac_status=$?; break; }
1921  done
1922fi
1923
1924test -n "$ac_init_help" && exit $ac_status
1925if $ac_init_version; then
1926  cat <<\_ACEOF
1927cyrus-imapd configure 3.0.16
1928generated by GNU Autoconf 2.69
1929
1930Copyright (C) 2012 Free Software Foundation, Inc.
1931This configure script is free software; the Free Software Foundation
1932gives unlimited permission to copy, distribute and modify it.
1933_ACEOF
1934  exit
1935fi
1936
1937## ------------------------ ##
1938## Autoconf initialization. ##
1939## ------------------------ ##
1940
1941# ac_fn_cxx_try_compile LINENO
1942# ----------------------------
1943# Try to compile conftest.$ac_ext, and return whether this succeeded.
1944ac_fn_cxx_try_compile ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  rm -f conftest.$ac_objext
1948  if { { ac_try="$ac_compile"
1949case "(($ac_try" in
1950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951  *) ac_try_echo=$ac_try;;
1952esac
1953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954$as_echo "$ac_try_echo"; } >&5
1955  (eval "$ac_compile") 2>conftest.err
1956  ac_status=$?
1957  if test -s conftest.err; then
1958    grep -v '^ *+' conftest.err >conftest.er1
1959    cat conftest.er1 >&5
1960    mv -f conftest.er1 conftest.err
1961  fi
1962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963  test $ac_status = 0; } && {
1964	 test -z "$ac_cxx_werror_flag" ||
1965	 test ! -s conftest.err
1966       } && test -s conftest.$ac_objext; then :
1967  ac_retval=0
1968else
1969  $as_echo "$as_me: failed program was:" >&5
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
1972	ac_retval=1
1973fi
1974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975  as_fn_set_status $ac_retval
1976
1977} # ac_fn_cxx_try_compile
1978
1979# ac_fn_c_try_compile LINENO
1980# --------------------------
1981# Try to compile conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_c_try_compile ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  rm -f conftest.$ac_objext
1986  if { { ac_try="$ac_compile"
1987case "(($ac_try" in
1988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989  *) ac_try_echo=$ac_try;;
1990esac
1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992$as_echo "$ac_try_echo"; } >&5
1993  (eval "$ac_compile") 2>conftest.err
1994  ac_status=$?
1995  if test -s conftest.err; then
1996    grep -v '^ *+' conftest.err >conftest.er1
1997    cat conftest.er1 >&5
1998    mv -f conftest.er1 conftest.err
1999  fi
2000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001  test $ac_status = 0; } && {
2002	 test -z "$ac_c_werror_flag" ||
2003	 test ! -s conftest.err
2004       } && test -s conftest.$ac_objext; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010	ac_retval=1
2011fi
2012  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013  as_fn_set_status $ac_retval
2014
2015} # ac_fn_c_try_compile
2016
2017# ac_fn_c_try_cpp LINENO
2018# ----------------------
2019# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_c_try_cpp ()
2021{
2022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023  if { { ac_try="$ac_cpp conftest.$ac_ext"
2024case "(($ac_try" in
2025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026  *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2031  ac_status=$?
2032  if test -s conftest.err; then
2033    grep -v '^ *+' conftest.err >conftest.er1
2034    cat conftest.er1 >&5
2035    mv -f conftest.er1 conftest.err
2036  fi
2037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038  test $ac_status = 0; } > conftest.i && {
2039	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2040	 test ! -s conftest.err
2041       }; then :
2042  ac_retval=0
2043else
2044  $as_echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047    ac_retval=1
2048fi
2049  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050  as_fn_set_status $ac_retval
2051
2052} # ac_fn_c_try_cpp
2053
2054# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2055# -------------------------------------------------------
2056# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2057# the include files in INCLUDES and setting the cache variable VAR
2058# accordingly.
2059ac_fn_c_check_header_mongrel ()
2060{
2061  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062  if eval \${$3+:} false; then :
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064$as_echo_n "checking for $2... " >&6; }
2065if eval \${$3+:} false; then :
2066  $as_echo_n "(cached) " >&6
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071else
2072  # Is the header compilable?
2073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2074$as_echo_n "checking $2 usability... " >&6; }
2075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h.  */
2077$4
2078#include <$2>
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  ac_header_compiler=yes
2082else
2083  ac_header_compiler=no
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2087$as_echo "$ac_header_compiler" >&6; }
2088
2089# Is the header present?
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2091$as_echo_n "checking $2 presence... " >&6; }
2092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094#include <$2>
2095_ACEOF
2096if ac_fn_c_try_cpp "$LINENO"; then :
2097  ac_header_preproc=yes
2098else
2099  ac_header_preproc=no
2100fi
2101rm -f conftest.err conftest.i conftest.$ac_ext
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2103$as_echo "$ac_header_preproc" >&6; }
2104
2105# So?  What about this header?
2106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2107  yes:no: )
2108    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2109$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2111$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2112    ;;
2113  no:yes:* )
2114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2115$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2117$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2119$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2120    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2121$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124( $as_echo "## -------------------------------------------------------------- ##
2125## Report this to https://github.com/cyrusimap/cyrus-imapd/issues ##
2126## -------------------------------------------------------------- ##"
2127     ) | sed "s/^/$as_me: WARNING:     /" >&2
2128    ;;
2129esac
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131$as_echo_n "checking for $2... " >&6; }
2132if eval \${$3+:} false; then :
2133  $as_echo_n "(cached) " >&6
2134else
2135  eval "$3=\$ac_header_compiler"
2136fi
2137eval ac_res=\$$3
2138	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139$as_echo "$ac_res" >&6; }
2140fi
2141  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142
2143} # ac_fn_c_check_header_mongrel
2144
2145# ac_fn_c_try_run LINENO
2146# ----------------------
2147# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2148# that executables *can* be run.
2149ac_fn_c_try_run ()
2150{
2151  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152  if { { ac_try="$ac_link"
2153case "(($ac_try" in
2154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155  *) ac_try_echo=$ac_try;;
2156esac
2157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158$as_echo "$ac_try_echo"; } >&5
2159  (eval "$ac_link") 2>&5
2160  ac_status=$?
2161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2163  { { case "(($ac_try" in
2164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165  *) ac_try_echo=$ac_try;;
2166esac
2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168$as_echo "$ac_try_echo"; } >&5
2169  (eval "$ac_try") 2>&5
2170  ac_status=$?
2171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172  test $ac_status = 0; }; }; then :
2173  ac_retval=0
2174else
2175  $as_echo "$as_me: program exited with status $ac_status" >&5
2176       $as_echo "$as_me: failed program was:" >&5
2177sed 's/^/| /' conftest.$ac_ext >&5
2178
2179       ac_retval=$ac_status
2180fi
2181  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2182  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183  as_fn_set_status $ac_retval
2184
2185} # ac_fn_c_try_run
2186
2187# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2188# -------------------------------------------------------
2189# Tests whether HEADER exists and can be compiled using the include files in
2190# INCLUDES, setting the cache variable VAR accordingly.
2191ac_fn_c_check_header_compile ()
2192{
2193  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195$as_echo_n "checking for $2... " >&6; }
2196if eval \${$3+:} false; then :
2197  $as_echo_n "(cached) " >&6
2198else
2199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202#include <$2>
2203_ACEOF
2204if ac_fn_c_try_compile "$LINENO"; then :
2205  eval "$3=yes"
2206else
2207  eval "$3=no"
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210fi
2211eval ac_res=\$$3
2212	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215
2216} # ac_fn_c_check_header_compile
2217
2218# ac_fn_c_try_link LINENO
2219# -----------------------
2220# Try to link conftest.$ac_ext, and return whether this succeeded.
2221ac_fn_c_try_link ()
2222{
2223  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224  rm -f conftest.$ac_objext conftest$ac_exeext
2225  if { { ac_try="$ac_link"
2226case "(($ac_try" in
2227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228  *) ac_try_echo=$ac_try;;
2229esac
2230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231$as_echo "$ac_try_echo"; } >&5
2232  (eval "$ac_link") 2>conftest.err
2233  ac_status=$?
2234  if test -s conftest.err; then
2235    grep -v '^ *+' conftest.err >conftest.er1
2236    cat conftest.er1 >&5
2237    mv -f conftest.er1 conftest.err
2238  fi
2239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240  test $ac_status = 0; } && {
2241	 test -z "$ac_c_werror_flag" ||
2242	 test ! -s conftest.err
2243       } && test -s conftest$ac_exeext && {
2244	 test "$cross_compiling" = yes ||
2245	 test -x conftest$ac_exeext
2246       }; then :
2247  ac_retval=0
2248else
2249  $as_echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252	ac_retval=1
2253fi
2254  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2255  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2256  # interfere with the next link command; also delete a directory that is
2257  # left behind by Apple's compiler.  We do this before executing the actions.
2258  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2259  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260  as_fn_set_status $ac_retval
2261
2262} # ac_fn_c_try_link
2263
2264# ac_fn_c_check_func LINENO FUNC VAR
2265# ----------------------------------
2266# Tests whether FUNC exists, setting the cache variable VAR accordingly
2267ac_fn_c_check_func ()
2268{
2269  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271$as_echo_n "checking for $2... " >&6; }
2272if eval \${$3+:} false; then :
2273  $as_echo_n "(cached) " >&6
2274else
2275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h.  */
2277/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2278   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2279#define $2 innocuous_$2
2280
2281/* System header to define __stub macros and hopefully few prototypes,
2282    which can conflict with char $2 (); below.
2283    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2284    <limits.h> exists even on freestanding compilers.  */
2285
2286#ifdef __STDC__
2287# include <limits.h>
2288#else
2289# include <assert.h>
2290#endif
2291
2292#undef $2
2293
2294/* Override any GCC internal prototype to avoid an error.
2295   Use char because int might match the return type of a GCC
2296   builtin and then its argument prototype would still apply.  */
2297#ifdef __cplusplus
2298extern "C"
2299#endif
2300char $2 ();
2301/* The GNU C library defines this for functions which it implements
2302    to always fail with ENOSYS.  Some functions are actually named
2303    something starting with __ and the normal name is an alias.  */
2304#if defined __stub_$2 || defined __stub___$2
2305choke me
2306#endif
2307
2308int
2309main ()
2310{
2311return $2 ();
2312  ;
2313  return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_link "$LINENO"; then :
2317  eval "$3=yes"
2318else
2319  eval "$3=no"
2320fi
2321rm -f core conftest.err conftest.$ac_objext \
2322    conftest$ac_exeext conftest.$ac_ext
2323fi
2324eval ac_res=\$$3
2325	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326$as_echo "$ac_res" >&6; }
2327  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328
2329} # ac_fn_c_check_func
2330
2331# ac_fn_cxx_try_cpp LINENO
2332# ------------------------
2333# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334ac_fn_cxx_try_cpp ()
2335{
2336  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337  if { { ac_try="$ac_cpp conftest.$ac_ext"
2338case "(($ac_try" in
2339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340  *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343$as_echo "$ac_try_echo"; } >&5
2344  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2345  ac_status=$?
2346  if test -s conftest.err; then
2347    grep -v '^ *+' conftest.err >conftest.er1
2348    cat conftest.er1 >&5
2349    mv -f conftest.er1 conftest.err
2350  fi
2351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352  test $ac_status = 0; } > conftest.i && {
2353	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2354	 test ! -s conftest.err
2355       }; then :
2356  ac_retval=0
2357else
2358  $as_echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361    ac_retval=1
2362fi
2363  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364  as_fn_set_status $ac_retval
2365
2366} # ac_fn_cxx_try_cpp
2367
2368# ac_fn_cxx_try_link LINENO
2369# -------------------------
2370# Try to link conftest.$ac_ext, and return whether this succeeded.
2371ac_fn_cxx_try_link ()
2372{
2373  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374  rm -f conftest.$ac_objext conftest$ac_exeext
2375  if { { ac_try="$ac_link"
2376case "(($ac_try" in
2377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378  *) ac_try_echo=$ac_try;;
2379esac
2380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381$as_echo "$ac_try_echo"; } >&5
2382  (eval "$ac_link") 2>conftest.err
2383  ac_status=$?
2384  if test -s conftest.err; then
2385    grep -v '^ *+' conftest.err >conftest.er1
2386    cat conftest.er1 >&5
2387    mv -f conftest.er1 conftest.err
2388  fi
2389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390  test $ac_status = 0; } && {
2391	 test -z "$ac_cxx_werror_flag" ||
2392	 test ! -s conftest.err
2393       } && test -s conftest$ac_exeext && {
2394	 test "$cross_compiling" = yes ||
2395	 test -x conftest$ac_exeext
2396       }; then :
2397  ac_retval=0
2398else
2399  $as_echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402	ac_retval=1
2403fi
2404  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406  # interfere with the next link command; also delete a directory that is
2407  # left behind by Apple's compiler.  We do this before executing the actions.
2408  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410  as_fn_set_status $ac_retval
2411
2412} # ac_fn_cxx_try_link
2413
2414# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2415# --------------------------------------------
2416# Tries to find the compile-time value of EXPR in a program that includes
2417# INCLUDES, setting VAR accordingly. Returns whether the value could be
2418# computed
2419ac_fn_c_compute_int ()
2420{
2421  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422  if test "$cross_compiling" = yes; then
2423    # Depending upon the size, compute the lo and hi bounds.
2424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h.  */
2426$4
2427int
2428main ()
2429{
2430static int test_array [1 - 2 * !(($2) >= 0)];
2431test_array [0] = 0;
2432return test_array [0];
2433
2434  ;
2435  return 0;
2436}
2437_ACEOF
2438if ac_fn_c_try_compile "$LINENO"; then :
2439  ac_lo=0 ac_mid=0
2440  while :; do
2441    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442/* end confdefs.h.  */
2443$4
2444int
2445main ()
2446{
2447static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2448test_array [0] = 0;
2449return test_array [0];
2450
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455if ac_fn_c_try_compile "$LINENO"; then :
2456  ac_hi=$ac_mid; break
2457else
2458  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2459			if test $ac_lo -le $ac_mid; then
2460			  ac_lo= ac_hi=
2461			  break
2462			fi
2463			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2464fi
2465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466  done
2467else
2468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469/* end confdefs.h.  */
2470$4
2471int
2472main ()
2473{
2474static int test_array [1 - 2 * !(($2) < 0)];
2475test_array [0] = 0;
2476return test_array [0];
2477
2478  ;
2479  return 0;
2480}
2481_ACEOF
2482if ac_fn_c_try_compile "$LINENO"; then :
2483  ac_hi=-1 ac_mid=-1
2484  while :; do
2485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486/* end confdefs.h.  */
2487$4
2488int
2489main ()
2490{
2491static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2492test_array [0] = 0;
2493return test_array [0];
2494
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_compile "$LINENO"; then :
2500  ac_lo=$ac_mid; break
2501else
2502  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2503			if test $ac_mid -le $ac_hi; then
2504			  ac_lo= ac_hi=
2505			  break
2506			fi
2507			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2508fi
2509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510  done
2511else
2512  ac_lo= ac_hi=
2513fi
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517# Binary search between lo and hi bounds.
2518while test "x$ac_lo" != "x$ac_hi"; do
2519  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521/* end confdefs.h.  */
2522$4
2523int
2524main ()
2525{
2526static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2527test_array [0] = 0;
2528return test_array [0];
2529
2530  ;
2531  return 0;
2532}
2533_ACEOF
2534if ac_fn_c_try_compile "$LINENO"; then :
2535  ac_hi=$ac_mid
2536else
2537  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2538fi
2539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540done
2541case $ac_lo in #((
2542?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2543'') ac_retval=1 ;;
2544esac
2545  else
2546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547/* end confdefs.h.  */
2548$4
2549static long int longval () { return $2; }
2550static unsigned long int ulongval () { return $2; }
2551#include <stdio.h>
2552#include <stdlib.h>
2553int
2554main ()
2555{
2556
2557  FILE *f = fopen ("conftest.val", "w");
2558  if (! f)
2559    return 1;
2560  if (($2) < 0)
2561    {
2562      long int i = longval ();
2563      if (i != ($2))
2564	return 1;
2565      fprintf (f, "%ld", i);
2566    }
2567  else
2568    {
2569      unsigned long int i = ulongval ();
2570      if (i != ($2))
2571	return 1;
2572      fprintf (f, "%lu", i);
2573    }
2574  /* Do not output a trailing newline, as this causes \r\n confusion
2575     on some platforms.  */
2576  return ferror (f) || fclose (f) != 0;
2577
2578  ;
2579  return 0;
2580}
2581_ACEOF
2582if ac_fn_c_try_run "$LINENO"; then :
2583  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2584else
2585  ac_retval=1
2586fi
2587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2588  conftest.$ac_objext conftest.beam conftest.$ac_ext
2589rm -f conftest.val
2590
2591  fi
2592  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593  as_fn_set_status $ac_retval
2594
2595} # ac_fn_c_compute_int
2596
2597# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2598# ----------------------------------------------------
2599# Tries to find if the field MEMBER exists in type AGGR, after including
2600# INCLUDES, setting cache variable VAR accordingly.
2601ac_fn_c_check_member ()
2602{
2603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2605$as_echo_n "checking for $2.$3... " >&6; }
2606if eval \${$4+:} false; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h.  */
2611$5
2612int
2613main ()
2614{
2615static $2 ac_aggr;
2616if (ac_aggr.$3)
2617return 0;
2618  ;
2619  return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623  eval "$4=yes"
2624else
2625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626/* end confdefs.h.  */
2627$5
2628int
2629main ()
2630{
2631static $2 ac_aggr;
2632if (sizeof ac_aggr.$3)
2633return 0;
2634  ;
2635  return 0;
2636}
2637_ACEOF
2638if ac_fn_c_try_compile "$LINENO"; then :
2639  eval "$4=yes"
2640else
2641  eval "$4=no"
2642fi
2643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644fi
2645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646fi
2647eval ac_res=\$$4
2648	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649$as_echo "$ac_res" >&6; }
2650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2651
2652} # ac_fn_c_check_member
2653
2654# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2655# ---------------------------------------------
2656# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2657# accordingly.
2658ac_fn_c_check_decl ()
2659{
2660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661  as_decl_name=`echo $2|sed 's/ *(.*//'`
2662  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2664$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2665if eval \${$3+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669/* end confdefs.h.  */
2670$4
2671int
2672main ()
2673{
2674#ifndef $as_decl_name
2675#ifdef __cplusplus
2676  (void) $as_decl_use;
2677#else
2678  (void) $as_decl_name;
2679#endif
2680#endif
2681
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686if ac_fn_c_try_compile "$LINENO"; then :
2687  eval "$3=yes"
2688else
2689  eval "$3=no"
2690fi
2691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692fi
2693eval ac_res=\$$3
2694	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695$as_echo "$ac_res" >&6; }
2696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2697
2698} # ac_fn_c_check_decl
2699cat >config.log <<_ACEOF
2700This file contains any messages produced by compilers while
2701running configure, to aid debugging if configure makes a mistake.
2702
2703It was created by cyrus-imapd $as_me 3.0.16, which was
2704generated by GNU Autoconf 2.69.  Invocation command line was
2705
2706  $ $0 $@
2707
2708_ACEOF
2709exec 5>>config.log
2710{
2711cat <<_ASUNAME
2712## --------- ##
2713## Platform. ##
2714## --------- ##
2715
2716hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2717uname -m = `(uname -m) 2>/dev/null || echo unknown`
2718uname -r = `(uname -r) 2>/dev/null || echo unknown`
2719uname -s = `(uname -s) 2>/dev/null || echo unknown`
2720uname -v = `(uname -v) 2>/dev/null || echo unknown`
2721
2722/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2723/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2724
2725/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2726/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2727/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2728/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2729/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2730/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2731/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2732
2733_ASUNAME
2734
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  test -z "$as_dir" && as_dir=.
2740    $as_echo "PATH: $as_dir"
2741  done
2742IFS=$as_save_IFS
2743
2744} >&5
2745
2746cat >&5 <<_ACEOF
2747
2748
2749## ----------- ##
2750## Core tests. ##
2751## ----------- ##
2752
2753_ACEOF
2754
2755
2756# Keep a trace of the command line.
2757# Strip out --no-create and --no-recursion so they do not pile up.
2758# Strip out --silent because we don't want to record it for future runs.
2759# Also quote any args containing shell meta-characters.
2760# Make two passes to allow for proper duplicate-argument suppression.
2761ac_configure_args=
2762ac_configure_args0=
2763ac_configure_args1=
2764ac_must_keep_next=false
2765for ac_pass in 1 2
2766do
2767  for ac_arg
2768  do
2769    case $ac_arg in
2770    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2771    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2772    | -silent | --silent | --silen | --sile | --sil)
2773      continue ;;
2774    *\'*)
2775      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2776    esac
2777    case $ac_pass in
2778    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2779    2)
2780      as_fn_append ac_configure_args1 " '$ac_arg'"
2781      if test $ac_must_keep_next = true; then
2782	ac_must_keep_next=false # Got value, back to normal.
2783      else
2784	case $ac_arg in
2785	  *=* | --config-cache | -C | -disable-* | --disable-* \
2786	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2787	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2788	  | -with-* | --with-* | -without-* | --without-* | --x)
2789	    case "$ac_configure_args0 " in
2790	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2791	    esac
2792	    ;;
2793	  -* ) ac_must_keep_next=true ;;
2794	esac
2795      fi
2796      as_fn_append ac_configure_args " '$ac_arg'"
2797      ;;
2798    esac
2799  done
2800done
2801{ ac_configure_args0=; unset ac_configure_args0;}
2802{ ac_configure_args1=; unset ac_configure_args1;}
2803
2804# When interrupted or exit'd, cleanup temporary files, and complete
2805# config.log.  We remove comments because anyway the quotes in there
2806# would cause problems or look ugly.
2807# WARNING: Use '\'' to represent an apostrophe within the trap.
2808# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2809trap 'exit_status=$?
2810  # Save into config.log some information that might help in debugging.
2811  {
2812    echo
2813
2814    $as_echo "## ---------------- ##
2815## Cache variables. ##
2816## ---------------- ##"
2817    echo
2818    # The following way of writing the cache mishandles newlines in values,
2819(
2820  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2821    eval ac_val=\$$ac_var
2822    case $ac_val in #(
2823    *${as_nl}*)
2824      case $ac_var in #(
2825      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2826$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2827      esac
2828      case $ac_var in #(
2829      _ | IFS | as_nl) ;; #(
2830      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2831      *) { eval $ac_var=; unset $ac_var;} ;;
2832      esac ;;
2833    esac
2834  done
2835  (set) 2>&1 |
2836    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2837    *${as_nl}ac_space=\ *)
2838      sed -n \
2839	"s/'\''/'\''\\\\'\'''\''/g;
2840	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2841      ;; #(
2842    *)
2843      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2844      ;;
2845    esac |
2846    sort
2847)
2848    echo
2849
2850    $as_echo "## ----------------- ##
2851## Output variables. ##
2852## ----------------- ##"
2853    echo
2854    for ac_var in $ac_subst_vars
2855    do
2856      eval ac_val=\$$ac_var
2857      case $ac_val in
2858      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2859      esac
2860      $as_echo "$ac_var='\''$ac_val'\''"
2861    done | sort
2862    echo
2863
2864    if test -n "$ac_subst_files"; then
2865      $as_echo "## ------------------- ##
2866## File substitutions. ##
2867## ------------------- ##"
2868      echo
2869      for ac_var in $ac_subst_files
2870      do
2871	eval ac_val=\$$ac_var
2872	case $ac_val in
2873	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2874	esac
2875	$as_echo "$ac_var='\''$ac_val'\''"
2876      done | sort
2877      echo
2878    fi
2879
2880    if test -s confdefs.h; then
2881      $as_echo "## ----------- ##
2882## confdefs.h. ##
2883## ----------- ##"
2884      echo
2885      cat confdefs.h
2886      echo
2887    fi
2888    test "$ac_signal" != 0 &&
2889      $as_echo "$as_me: caught signal $ac_signal"
2890    $as_echo "$as_me: exit $exit_status"
2891  } >&5
2892  rm -f core *.core core.conftest.* &&
2893    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2894    exit $exit_status
2895' 0
2896for ac_signal in 1 2 13 15; do
2897  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2898done
2899ac_signal=0
2900
2901# confdefs.h avoids OS command line length limits that DEFS can exceed.
2902rm -f -r conftest* confdefs.h
2903
2904$as_echo "/* confdefs.h */" > confdefs.h
2905
2906# Predefined preprocessor variables.
2907
2908cat >>confdefs.h <<_ACEOF
2909#define PACKAGE_NAME "$PACKAGE_NAME"
2910_ACEOF
2911
2912cat >>confdefs.h <<_ACEOF
2913#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2914_ACEOF
2915
2916cat >>confdefs.h <<_ACEOF
2917#define PACKAGE_VERSION "$PACKAGE_VERSION"
2918_ACEOF
2919
2920cat >>confdefs.h <<_ACEOF
2921#define PACKAGE_STRING "$PACKAGE_STRING"
2922_ACEOF
2923
2924cat >>confdefs.h <<_ACEOF
2925#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2926_ACEOF
2927
2928cat >>confdefs.h <<_ACEOF
2929#define PACKAGE_URL "$PACKAGE_URL"
2930_ACEOF
2931
2932
2933# Let the site file select an alternate cache file if it wants to.
2934# Prefer an explicitly selected file to automatically selected ones.
2935ac_site_file1=NONE
2936ac_site_file2=NONE
2937if test -n "$CONFIG_SITE"; then
2938  # We do not want a PATH search for config.site.
2939  case $CONFIG_SITE in #((
2940    -*)  ac_site_file1=./$CONFIG_SITE;;
2941    */*) ac_site_file1=$CONFIG_SITE;;
2942    *)   ac_site_file1=./$CONFIG_SITE;;
2943  esac
2944elif test "x$prefix" != xNONE; then
2945  ac_site_file1=$prefix/share/config.site
2946  ac_site_file2=$prefix/etc/config.site
2947else
2948  ac_site_file1=$ac_default_prefix/share/config.site
2949  ac_site_file2=$ac_default_prefix/etc/config.site
2950fi
2951for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2952do
2953  test "x$ac_site_file" = xNONE && continue
2954  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2955    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957    sed 's/^/| /' "$ac_site_file" >&5
2958    . "$ac_site_file" \
2959      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961as_fn_error $? "failed to load site script $ac_site_file
2962See \`config.log' for more details" "$LINENO" 5; }
2963  fi
2964done
2965
2966if test -r "$cache_file"; then
2967  # Some versions of bash will fail to source /dev/null (special files
2968  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2969  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2970    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2971$as_echo "$as_me: loading cache $cache_file" >&6;}
2972    case $cache_file in
2973      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2974      *)                      . "./$cache_file";;
2975    esac
2976  fi
2977else
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2979$as_echo "$as_me: creating cache $cache_file" >&6;}
2980  >$cache_file
2981fi
2982
2983# Check that the precious variables saved in the cache have kept the same
2984# value.
2985ac_cache_corrupted=false
2986for ac_var in $ac_precious_vars; do
2987  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2988  eval ac_new_set=\$ac_env_${ac_var}_set
2989  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2990  eval ac_new_val=\$ac_env_${ac_var}_value
2991  case $ac_old_set,$ac_new_set in
2992    set,)
2993      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2994$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2995      ac_cache_corrupted=: ;;
2996    ,set)
2997      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2998$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2999      ac_cache_corrupted=: ;;
3000    ,);;
3001    *)
3002      if test "x$ac_old_val" != "x$ac_new_val"; then
3003	# differences in whitespace do not lead to failure.
3004	ac_old_val_w=`echo x $ac_old_val`
3005	ac_new_val_w=`echo x $ac_new_val`
3006	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3007	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3008$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3009	  ac_cache_corrupted=:
3010	else
3011	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3012$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3013	  eval $ac_var=\$ac_old_val
3014	fi
3015	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3016$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3017	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3018$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3019      fi;;
3020  esac
3021  # Pass precious variables to config.status.
3022  if test "$ac_new_set" = set; then
3023    case $ac_new_val in
3024    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3025    *) ac_arg=$ac_var=$ac_new_val ;;
3026    esac
3027    case " $ac_configure_args " in
3028      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3029      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3030    esac
3031  fi
3032done
3033if $ac_cache_corrupted; then
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3037$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3038  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3039fi
3040## -------------------- ##
3041## Main body of script. ##
3042## -------------------- ##
3043
3044ac_ext=c
3045ac_cpp='$CPP $CPPFLAGS'
3046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3048ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049
3050
3051
3052
3053ac_config_headers="$ac_config_headers config.h"
3054
3055
3056ac_aux_dir=
3057for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3058  if test -f "$ac_dir/install-sh"; then
3059    ac_aux_dir=$ac_dir
3060    ac_install_sh="$ac_aux_dir/install-sh -c"
3061    break
3062  elif test -f "$ac_dir/install.sh"; then
3063    ac_aux_dir=$ac_dir
3064    ac_install_sh="$ac_aux_dir/install.sh -c"
3065    break
3066  elif test -f "$ac_dir/shtool"; then
3067    ac_aux_dir=$ac_dir
3068    ac_install_sh="$ac_aux_dir/shtool install -c"
3069    break
3070  fi
3071done
3072if test -z "$ac_aux_dir"; then
3073  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3074fi
3075
3076# These three variables are undocumented and unsupported,
3077# and are intended to be withdrawn in a future Autoconf release.
3078# They can cause serious problems if a builder's source tree is in a directory
3079# whose full name contains unusual characters.
3080ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3081ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3082ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3083
3084
3085# Make sure we can run config.sub.
3086$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3087  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3088
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3090$as_echo_n "checking build system type... " >&6; }
3091if ${ac_cv_build+:} false; then :
3092  $as_echo_n "(cached) " >&6
3093else
3094  ac_build_alias=$build_alias
3095test "x$ac_build_alias" = x &&
3096  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3097test "x$ac_build_alias" = x &&
3098  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3099ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3100  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3101
3102fi
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3104$as_echo "$ac_cv_build" >&6; }
3105case $ac_cv_build in
3106*-*-*) ;;
3107*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3108esac
3109build=$ac_cv_build
3110ac_save_IFS=$IFS; IFS='-'
3111set x $ac_cv_build
3112shift
3113build_cpu=$1
3114build_vendor=$2
3115shift; shift
3116# Remember, the first character of IFS is used to create $*,
3117# except with old shells:
3118build_os=$*
3119IFS=$ac_save_IFS
3120case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3121
3122
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3124$as_echo_n "checking host system type... " >&6; }
3125if ${ac_cv_host+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test "x$host_alias" = x; then
3129  ac_cv_host=$ac_cv_build
3130else
3131  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3132    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3133fi
3134
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3137$as_echo "$ac_cv_host" >&6; }
3138case $ac_cv_host in
3139*-*-*) ;;
3140*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3141esac
3142host=$ac_cv_host
3143ac_save_IFS=$IFS; IFS='-'
3144set x $ac_cv_host
3145shift
3146host_cpu=$1
3147host_vendor=$2
3148shift; shift
3149# Remember, the first character of IFS is used to create $*,
3150# except with old shells:
3151host_os=$*
3152IFS=$ac_save_IFS
3153case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3154
3155
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3157$as_echo_n "checking target system type... " >&6; }
3158if ${ac_cv_target+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test "x$target_alias" = x; then
3162  ac_cv_target=$ac_cv_host
3163else
3164  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3165    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3166fi
3167
3168fi
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3170$as_echo "$ac_cv_target" >&6; }
3171case $ac_cv_target in
3172*-*-*) ;;
3173*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3174esac
3175target=$ac_cv_target
3176ac_save_IFS=$IFS; IFS='-'
3177set x $ac_cv_target
3178shift
3179target_cpu=$1
3180target_vendor=$2
3181shift; shift
3182# Remember, the first character of IFS is used to create $*,
3183# except with old shells:
3184target_os=$*
3185IFS=$ac_save_IFS
3186case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3187
3188
3189# The aliases save the names the user supplied, while $host etc.
3190# will get canonicalized.
3191test -n "$target_alias" &&
3192  test "$program_prefix$program_suffix$program_transform_name" = \
3193    NONENONEs,x,x, &&
3194  program_prefix=${target_alias}-
3195
3196
3197CYRUS_IMAPD_SERIES=`echo 3.0.16 | cut -d- -f1 | cut -d. -f1-2`
3198CYRUS_IMAPD_REVISION=`echo 3.0.16 | cut -d- -f1 | cut -d. -f3`
3199CYRUS_IMAPD_PATCH=`echo 3.0.16 | cut -d- -f2-`
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3212	if test -n "$ac_tool_prefix"; then
3213  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3214set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_path_PKG_CONFIG+:} false; then :
3218  $as_echo_n "(cached) " >&6
3219else
3220  case $PKG_CONFIG in
3221  [\\/]* | ?:[\\/]*)
3222  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3223  ;;
3224  *)
3225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237  done
3238IFS=$as_save_IFS
3239
3240  ;;
3241esac
3242fi
3243PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3244if test -n "$PKG_CONFIG"; then
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3246$as_echo "$PKG_CONFIG" >&6; }
3247else
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250fi
3251
3252
3253fi
3254if test -z "$ac_cv_path_PKG_CONFIG"; then
3255  ac_pt_PKG_CONFIG=$PKG_CONFIG
3256  # Extract the first word of "pkg-config", so it can be a program name with args.
3257set dummy pkg-config; ac_word=$2
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259$as_echo_n "checking for $ac_word... " >&6; }
3260if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  case $ac_pt_PKG_CONFIG in
3264  [\\/]* | ?:[\\/]*)
3265  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3266  ;;
3267  *)
3268  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273    for ac_exec_ext in '' $ac_executable_extensions; do
3274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280  done
3281IFS=$as_save_IFS
3282
3283  ;;
3284esac
3285fi
3286ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3287if test -n "$ac_pt_PKG_CONFIG"; then
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3289$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3290else
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295  if test "x$ac_pt_PKG_CONFIG" = x; then
3296    PKG_CONFIG=""
3297  else
3298    case $cross_compiling:$ac_tool_warned in
3299yes:)
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302ac_tool_warned=yes ;;
3303esac
3304    PKG_CONFIG=$ac_pt_PKG_CONFIG
3305  fi
3306else
3307  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3308fi
3309
3310fi
3311if test -n "$PKG_CONFIG"; then
3312	_pkg_min_version=0.9.0
3313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3314$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3315	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317$as_echo "yes" >&6; }
3318	else
3319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321		PKG_CONFIG=""
3322	fi
3323fi
3324
3325am__api_version='1.16'
3326
3327# Find a good install program.  We prefer a C program (faster),
3328# so one script is as good as another.  But avoid the broken or
3329# incompatible versions:
3330# SysV /etc/install, /usr/sbin/install
3331# SunOS /usr/etc/install
3332# IRIX /sbin/install
3333# AIX /bin/install
3334# AmigaOS /C/install, which installs bootblocks on floppy discs
3335# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3336# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3337# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3338# OS/2's system install, which has a completely different semantic
3339# ./install, which can be erroneously created by make from ./install.sh.
3340# Reject install programs that cannot install multiple files.
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3342$as_echo_n "checking for a BSD-compatible install... " >&6; }
3343if test -z "$INSTALL"; then
3344if ${ac_cv_path_install+:} false; then :
3345  $as_echo_n "(cached) " >&6
3346else
3347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350  IFS=$as_save_IFS
3351  test -z "$as_dir" && as_dir=.
3352    # Account for people who put trailing slashes in PATH elements.
3353case $as_dir/ in #((
3354  ./ | .// | /[cC]/* | \
3355  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3356  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3357  /usr/ucb/* ) ;;
3358  *)
3359    # OSF1 and SCO ODT 3.0 have their own names for install.
3360    # Don't use installbsd from OSF since it installs stuff as root
3361    # by default.
3362    for ac_prog in ginstall scoinst install; do
3363      for ac_exec_ext in '' $ac_executable_extensions; do
3364	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3365	  if test $ac_prog = install &&
3366	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3367	    # AIX install.  It has an incompatible calling convention.
3368	    :
3369	  elif test $ac_prog = install &&
3370	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3371	    # program-specific install script used by HP pwplus--don't use.
3372	    :
3373	  else
3374	    rm -rf conftest.one conftest.two conftest.dir
3375	    echo one > conftest.one
3376	    echo two > conftest.two
3377	    mkdir conftest.dir
3378	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3379	      test -s conftest.one && test -s conftest.two &&
3380	      test -s conftest.dir/conftest.one &&
3381	      test -s conftest.dir/conftest.two
3382	    then
3383	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3384	      break 3
3385	    fi
3386	  fi
3387	fi
3388      done
3389    done
3390    ;;
3391esac
3392
3393  done
3394IFS=$as_save_IFS
3395
3396rm -rf conftest.one conftest.two conftest.dir
3397
3398fi
3399  if test "${ac_cv_path_install+set}" = set; then
3400    INSTALL=$ac_cv_path_install
3401  else
3402    # As a last resort, use the slow shell script.  Don't cache a
3403    # value for INSTALL within a source directory, because that will
3404    # break other packages using the cache if that directory is
3405    # removed, or if the value is a relative name.
3406    INSTALL=$ac_install_sh
3407  fi
3408fi
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3410$as_echo "$INSTALL" >&6; }
3411
3412# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3413# It thinks the first close brace ends the variable substitution.
3414test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3415
3416test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3417
3418test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3419
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3421$as_echo_n "checking whether build environment is sane... " >&6; }
3422# Reject unsafe characters in $srcdir or the absolute working directory
3423# name.  Accept space and tab only in the latter.
3424am_lf='
3425'
3426case `pwd` in
3427  *[\\\"\#\$\&\'\`$am_lf]*)
3428    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3429esac
3430case $srcdir in
3431  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3432    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3433esac
3434
3435# Do 'set' in a subshell so we don't clobber the current shell's
3436# arguments.  Must try -L first in case configure is actually a
3437# symlink; some systems play weird games with the mod time of symlinks
3438# (eg FreeBSD returns the mod time of the symlink's containing
3439# directory).
3440if (
3441   am_has_slept=no
3442   for am_try in 1 2; do
3443     echo "timestamp, slept: $am_has_slept" > conftest.file
3444     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3445     if test "$*" = "X"; then
3446	# -L didn't work.
3447	set X `ls -t "$srcdir/configure" conftest.file`
3448     fi
3449     if test "$*" != "X $srcdir/configure conftest.file" \
3450	&& test "$*" != "X conftest.file $srcdir/configure"; then
3451
3452	# If neither matched, then we have a broken ls.  This can happen
3453	# if, for instance, CONFIG_SHELL is bash and it inherits a
3454	# broken ls alias from the environment.  This has actually
3455	# happened.  Such a system could not be considered "sane".
3456	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3457  alias in your environment" "$LINENO" 5
3458     fi
3459     if test "$2" = conftest.file || test $am_try -eq 2; then
3460       break
3461     fi
3462     # Just in case.
3463     sleep 1
3464     am_has_slept=yes
3465   done
3466   test "$2" = conftest.file
3467   )
3468then
3469   # Ok.
3470   :
3471else
3472   as_fn_error $? "newly created file is older than distributed files!
3473Check your system clock" "$LINENO" 5
3474fi
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3476$as_echo "yes" >&6; }
3477# If we didn't sleep, we still need to ensure time stamps of config.status and
3478# generated files are strictly newer.
3479am_sleep_pid=
3480if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3481  ( sleep 1 ) &
3482  am_sleep_pid=$!
3483fi
3484
3485rm -f conftest.file
3486
3487test "$program_prefix" != NONE &&
3488  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3489# Use a double $ so make ignores it.
3490test "$program_suffix" != NONE &&
3491  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3492# Double any \ or $.
3493# By default was `s,x,x', remove it if useless.
3494ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3495program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3496
3497# Expand $ac_aux_dir to an absolute path.
3498am_aux_dir=`cd "$ac_aux_dir" && pwd`
3499
3500if test x"${MISSING+set}" != xset; then
3501  case $am_aux_dir in
3502  *\ * | *\	*)
3503    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3504  *)
3505    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3506  esac
3507fi
3508# Use eval to expand $SHELL
3509if eval "$MISSING --is-lightweight"; then
3510  am_missing_run="$MISSING "
3511else
3512  am_missing_run=
3513  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3514$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3515fi
3516
3517if test x"${install_sh+set}" != xset; then
3518  case $am_aux_dir in
3519  *\ * | *\	*)
3520    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3521  *)
3522    install_sh="\${SHELL} $am_aux_dir/install-sh"
3523  esac
3524fi
3525
3526# Installed binaries are usually stripped using 'strip' when the user
3527# run "make install-strip".  However 'strip' might not be the right
3528# tool to use in cross-compilation environments, therefore Automake
3529# will honor the 'STRIP' environment variable to overrule this program.
3530if test "$cross_compiling" != no; then
3531  if test -n "$ac_tool_prefix"; then
3532  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3533set dummy ${ac_tool_prefix}strip; ac_word=$2
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535$as_echo_n "checking for $ac_word... " >&6; }
3536if ${ac_cv_prog_STRIP+:} false; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  if test -n "$STRIP"; then
3540  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3541else
3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH
3544do
3545  IFS=$as_save_IFS
3546  test -z "$as_dir" && as_dir=.
3547    for ac_exec_ext in '' $ac_executable_extensions; do
3548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551    break 2
3552  fi
3553done
3554  done
3555IFS=$as_save_IFS
3556
3557fi
3558fi
3559STRIP=$ac_cv_prog_STRIP
3560if test -n "$STRIP"; then
3561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3562$as_echo "$STRIP" >&6; }
3563else
3564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565$as_echo "no" >&6; }
3566fi
3567
3568
3569fi
3570if test -z "$ac_cv_prog_STRIP"; then
3571  ac_ct_STRIP=$STRIP
3572  # Extract the first word of "strip", so it can be a program name with args.
3573set dummy strip; ac_word=$2
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575$as_echo_n "checking for $ac_word... " >&6; }
3576if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3577  $as_echo_n "(cached) " >&6
3578else
3579  if test -n "$ac_ct_STRIP"; then
3580  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3581else
3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585  IFS=$as_save_IFS
3586  test -z "$as_dir" && as_dir=.
3587    for ac_exec_ext in '' $ac_executable_extensions; do
3588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589    ac_cv_prog_ac_ct_STRIP="strip"
3590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591    break 2
3592  fi
3593done
3594  done
3595IFS=$as_save_IFS
3596
3597fi
3598fi
3599ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3600if test -n "$ac_ct_STRIP"; then
3601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3602$as_echo "$ac_ct_STRIP" >&6; }
3603else
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605$as_echo "no" >&6; }
3606fi
3607
3608  if test "x$ac_ct_STRIP" = x; then
3609    STRIP=":"
3610  else
3611    case $cross_compiling:$ac_tool_warned in
3612yes:)
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615ac_tool_warned=yes ;;
3616esac
3617    STRIP=$ac_ct_STRIP
3618  fi
3619else
3620  STRIP="$ac_cv_prog_STRIP"
3621fi
3622
3623fi
3624INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3625
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3627$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3628if test -z "$MKDIR_P"; then
3629  if ${ac_cv_path_mkdir+:} false; then :
3630  $as_echo_n "(cached) " >&6
3631else
3632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3634do
3635  IFS=$as_save_IFS
3636  test -z "$as_dir" && as_dir=.
3637    for ac_prog in mkdir gmkdir; do
3638	 for ac_exec_ext in '' $ac_executable_extensions; do
3639	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3640	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3641	     'mkdir (GNU coreutils) '* | \
3642	     'mkdir (coreutils) '* | \
3643	     'mkdir (fileutils) '4.1*)
3644	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3645	       break 3;;
3646	   esac
3647	 done
3648       done
3649  done
3650IFS=$as_save_IFS
3651
3652fi
3653
3654  test -d ./--version && rmdir ./--version
3655  if test "${ac_cv_path_mkdir+set}" = set; then
3656    MKDIR_P="$ac_cv_path_mkdir -p"
3657  else
3658    # As a last resort, use the slow shell script.  Don't cache a
3659    # value for MKDIR_P within a source directory, because that will
3660    # break other packages using the cache if that directory is
3661    # removed, or if the value is a relative name.
3662    MKDIR_P="$ac_install_sh -d"
3663  fi
3664fi
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3666$as_echo "$MKDIR_P" >&6; }
3667
3668for ac_prog in gawk mawk nawk awk
3669do
3670  # Extract the first word of "$ac_prog", so it can be a program name with args.
3671set dummy $ac_prog; ac_word=$2
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673$as_echo_n "checking for $ac_word... " >&6; }
3674if ${ac_cv_prog_AWK+:} false; then :
3675  $as_echo_n "(cached) " >&6
3676else
3677  if test -n "$AWK"; then
3678  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3679else
3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH
3682do
3683  IFS=$as_save_IFS
3684  test -z "$as_dir" && as_dir=.
3685    for ac_exec_ext in '' $ac_executable_extensions; do
3686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687    ac_cv_prog_AWK="$ac_prog"
3688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689    break 2
3690  fi
3691done
3692  done
3693IFS=$as_save_IFS
3694
3695fi
3696fi
3697AWK=$ac_cv_prog_AWK
3698if test -n "$AWK"; then
3699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3700$as_echo "$AWK" >&6; }
3701else
3702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703$as_echo "no" >&6; }
3704fi
3705
3706
3707  test -n "$AWK" && break
3708done
3709
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3711$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3712set x ${MAKE-make}
3713ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3714if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3715  $as_echo_n "(cached) " >&6
3716else
3717  cat >conftest.make <<\_ACEOF
3718SHELL = /bin/sh
3719all:
3720	@echo '@@@%%%=$(MAKE)=@@@%%%'
3721_ACEOF
3722# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3723case `${MAKE-make} -f conftest.make 2>/dev/null` in
3724  *@@@%%%=?*=@@@%%%*)
3725    eval ac_cv_prog_make_${ac_make}_set=yes;;
3726  *)
3727    eval ac_cv_prog_make_${ac_make}_set=no;;
3728esac
3729rm -f conftest.make
3730fi
3731if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733$as_echo "yes" >&6; }
3734  SET_MAKE=
3735else
3736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737$as_echo "no" >&6; }
3738  SET_MAKE="MAKE=${MAKE-make}"
3739fi
3740
3741rm -rf .tst 2>/dev/null
3742mkdir .tst 2>/dev/null
3743if test -d .tst; then
3744  am__leading_dot=.
3745else
3746  am__leading_dot=_
3747fi
3748rmdir .tst 2>/dev/null
3749
3750# Check whether --enable-silent-rules was given.
3751if test "${enable_silent_rules+set}" = set; then :
3752  enableval=$enable_silent_rules;
3753fi
3754
3755case $enable_silent_rules in # (((
3756  yes) AM_DEFAULT_VERBOSITY=0;;
3757   no) AM_DEFAULT_VERBOSITY=1;;
3758    *) AM_DEFAULT_VERBOSITY=1;;
3759esac
3760am_make=${MAKE-make}
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3762$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3763if ${am_cv_make_support_nested_variables+:} false; then :
3764  $as_echo_n "(cached) " >&6
3765else
3766  if $as_echo 'TRUE=$(BAR$(V))
3767BAR0=false
3768BAR1=true
3769V=1
3770am__doit:
3771	@$(TRUE)
3772.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3773  am_cv_make_support_nested_variables=yes
3774else
3775  am_cv_make_support_nested_variables=no
3776fi
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3779$as_echo "$am_cv_make_support_nested_variables" >&6; }
3780if test $am_cv_make_support_nested_variables = yes; then
3781    AM_V='$(V)'
3782  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3783else
3784  AM_V=$AM_DEFAULT_VERBOSITY
3785  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3786fi
3787AM_BACKSLASH='\'
3788
3789if test "`cd $srcdir && pwd`" != "`pwd`"; then
3790  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3791  # is not polluted with repeated "-I."
3792  am__isrc=' -I$(srcdir)'
3793  # test to see if srcdir already configured
3794  if test -f $srcdir/config.status; then
3795    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3796  fi
3797fi
3798
3799# test whether we have cygpath
3800if test -z "$CYGPATH_W"; then
3801  if (cygpath --version) >/dev/null 2>/dev/null; then
3802    CYGPATH_W='cygpath -w'
3803  else
3804    CYGPATH_W=echo
3805  fi
3806fi
3807
3808
3809# Define the identity of the package.
3810 PACKAGE='cyrus-imapd'
3811 VERSION='3.0.16'
3812
3813
3814cat >>confdefs.h <<_ACEOF
3815#define PACKAGE "$PACKAGE"
3816_ACEOF
3817
3818
3819cat >>confdefs.h <<_ACEOF
3820#define VERSION "$VERSION"
3821_ACEOF
3822
3823# Some tools Automake needs.
3824
3825ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3826
3827
3828AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3829
3830
3831AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3832
3833
3834AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3835
3836
3837MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3838
3839# For better backward compatibility.  To be removed once Automake 1.9.x
3840# dies out for good.  For more background, see:
3841# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3842# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3843mkdir_p='$(MKDIR_P)'
3844
3845# We need awk for the "check" target (and possibly the TAP driver).  The
3846# system "awk" is bad on some platforms.
3847# Always define AMTAR for backward compatibility.  Yes, it's still used
3848# in the wild :-(  We should find a proper way to deprecate it ...
3849AMTAR='$${TAR-tar}'
3850
3851
3852# We'll loop over all known methods to create a tar archive until one works.
3853_am_tools='gnutar plaintar pax cpio none'
3854
3855# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3856      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3857      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3858      # and bug#13588).
3859      am_max_uid=2097151 # 2^21 - 1
3860      am_max_gid=$am_max_uid
3861      # The $UID and $GID variables are not portable, so we need to resort
3862      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3863      # below are definitely unexpected, so allow the users to see them
3864      # (that is, avoid stderr redirection).
3865      am_uid=`id -u || echo unknown`
3866      am_gid=`id -g || echo unknown`
3867      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3868$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3869      if test $am_uid -le $am_max_uid; then
3870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871$as_echo "yes" >&6; }
3872      else
3873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875         _am_tools=none
3876      fi
3877      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3878$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3879      if test $am_gid -le $am_max_gid; then
3880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881$as_echo "yes" >&6; }
3882      else
3883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885        _am_tools=none
3886      fi
3887
3888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3889$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3890
3891  # Go ahead even if we have the value already cached.  We do so because we
3892  # need to set the values for the 'am__tar' and 'am__untar' variables.
3893  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3894
3895  for _am_tool in $_am_tools; do
3896    case $_am_tool in
3897    gnutar)
3898      for _am_tar in tar gnutar gtar; do
3899        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3900   ($_am_tar --version) >&5 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } && break
3904      done
3905      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3906      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3907      am__untar="$_am_tar -xf -"
3908      ;;
3909    plaintar)
3910      # Must skip GNU tar: if it does not support --format= it doesn't create
3911      # ustar tarball either.
3912      (tar --version) >/dev/null 2>&1 && continue
3913      am__tar='tar chf - "$$tardir"'
3914      am__tar_='tar chf - "$tardir"'
3915      am__untar='tar xf -'
3916      ;;
3917    pax)
3918      am__tar='pax -L -x ustar -w "$$tardir"'
3919      am__tar_='pax -L -x ustar -w "$tardir"'
3920      am__untar='pax -r'
3921      ;;
3922    cpio)
3923      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3924      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3925      am__untar='cpio -i -H ustar -d'
3926      ;;
3927    none)
3928      am__tar=false
3929      am__tar_=false
3930      am__untar=false
3931      ;;
3932    esac
3933
3934    # If the value was cached, stop now.  We just wanted to have am__tar
3935    # and am__untar set.
3936    test -n "${am_cv_prog_tar_ustar}" && break
3937
3938    # tar/untar a dummy directory, and stop if the command works.
3939    rm -rf conftest.dir
3940    mkdir conftest.dir
3941    echo GrepMe > conftest.dir/file
3942    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3943   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }
3947    rm -rf conftest.dir
3948    if test -s conftest.tar; then
3949      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3950   ($am__untar <conftest.tar) >&5 2>&5
3951   ac_status=$?
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }
3954      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3955   (cat conftest.dir/file) >&5 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); }
3959      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3960    fi
3961  done
3962  rm -rf conftest.dir
3963
3964  if ${am_cv_prog_tar_ustar+:} false; then :
3965  $as_echo_n "(cached) " >&6
3966else
3967  am_cv_prog_tar_ustar=$_am_tool
3968fi
3969
3970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3971$as_echo "$am_cv_prog_tar_ustar" >&6; }
3972
3973
3974
3975
3976
3977
3978# POSIX will say in a future version that running "rm -f" with no argument
3979# is OK; and we want to be able to make that assumption in our Makefile
3980# recipes.  So use an aggressive probe to check that the usage we want is
3981# actually supported "in the wild" to an acceptable degree.
3982# See automake bug#10828.
3983# To make any issue more visible, cause the running configure to be aborted
3984# by default if the 'rm' program in use doesn't match our expectations; the
3985# user can still override this though.
3986if rm -f && rm -fr && rm -rf; then : OK; else
3987  cat >&2 <<'END'
3988Oops!
3989
3990Your 'rm' program seems unable to run without file operands specified
3991on the command line, even when the '-f' option is present.  This is contrary
3992to the behaviour of most rm programs out there, and not conforming with
3993the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3994
3995Please tell bug-automake@gnu.org about your system, including the value
3996of your $PATH and any error possibly output before this message.  This
3997can help us improve future automake versions.
3998
3999END
4000  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4001    echo 'Configuration will proceed anyway, since you have set the' >&2
4002    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4003    echo >&2
4004  else
4005    cat >&2 <<'END'
4006Aborting the configuration process, to ensure you take notice of the issue.
4007
4008You can download and install GNU coreutils to get an 'rm' implementation
4009that behaves properly: <https://www.gnu.org/software/coreutils/>.
4010
4011If you want to complete the configuration process using your problematic
4012'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4013to "yes", and re-run configure.
4014
4015END
4016    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4017  fi
4018fi
4019
4020
4021
4022
4023# Check whether --with-extraident was given.
4024if test "${with_extraident+set}" = set; then :
4025  withval=$with_extraident;
4026cat >>confdefs.h <<_ACEOF
4027#define EXTRA_IDENT "$withval"
4028_ACEOF
4029
4030fi
4031
4032
4033
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4035$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4036    # Check whether --enable-maintainer-mode was given.
4037if test "${enable_maintainer_mode+set}" = set; then :
4038  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4039else
4040  USE_MAINTAINER_MODE=no
4041fi
4042
4043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4044$as_echo "$USE_MAINTAINER_MODE" >&6; }
4045   if test $USE_MAINTAINER_MODE = yes; then
4046  MAINTAINER_MODE_TRUE=
4047  MAINTAINER_MODE_FALSE='#'
4048else
4049  MAINTAINER_MODE_TRUE='#'
4050  MAINTAINER_MODE_FALSE=
4051fi
4052
4053  MAINT=$MAINTAINER_MODE_TRUE
4054
4055
4056
4057GCOV_CFLAGS=
4058GCOV_CXXFLAGS=
4059GCOV_LDFLAGS=
4060GCOV_LIBS=
4061
4062# Check whether --enable-coverage was given.
4063if test "${enable_coverage+set}" = set; then :
4064  enableval=$enable_coverage;
4065fi
4066
4067
4068if test "x$enable_coverage" = "xyes"; then :
4069
4070    GCOV_CFLAGS="--coverage"
4071    GCOV_CXXFLAGS="--coverage"
4072    GCOV_LDFLAGS="--coverage"
4073    GCOV_LIBS="-lgcov"
4074
4075fi
4076 if test "x$enable_coverage" = "xyes"; then
4077  HAVE_COVERAGE_TRUE=
4078  HAVE_COVERAGE_FALSE='#'
4079else
4080  HAVE_COVERAGE_TRUE='#'
4081  HAVE_COVERAGE_FALSE=
4082fi
4083
4084
4085
4086
4087
4088
4089
4090
4091# Check whether --with-login was given.
4092if test "${with_login+set}" = set; then :
4093  withval=$with_login; as_fn_error $? "--with-login is no longer supported.
4094Configure SASL appropriately instead." "$LINENO" 5
4095fi
4096
4097
4098
4099# Check whether --with-cyrus-user was given.
4100if test "${with_cyrus_user+set}" = set; then :
4101  withval=$with_cyrus_user; cyrus_user="$withval"
4102else
4103  cyrus_user="cyrus"
4104fi
4105
4106
4107
4108cat >>confdefs.h <<_ACEOF
4109#define CYRUS_USER "$cyrus_user"
4110_ACEOF
4111
4112
4113if test $sysconfdir = '${prefix}/etc'; then
4114  sysconfdir="/etc"
4115fi
4116
4117ac_ext=cpp
4118ac_cpp='$CXXCPP $CPPFLAGS'
4119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4122if test -z "$CXX"; then
4123  if test -n "$CCC"; then
4124    CXX=$CCC
4125  else
4126    if test -n "$ac_tool_prefix"; then
4127  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4128  do
4129    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4130set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
4133if ${ac_cv_prog_CXX+:} false; then :
4134  $as_echo_n "(cached) " >&6
4135else
4136  if test -n "$CXX"; then
4137  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142  IFS=$as_save_IFS
4143  test -z "$as_dir" && as_dir=.
4144    for ac_exec_ext in '' $ac_executable_extensions; do
4145  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148    break 2
4149  fi
4150done
4151  done
4152IFS=$as_save_IFS
4153
4154fi
4155fi
4156CXX=$ac_cv_prog_CXX
4157if test -n "$CXX"; then
4158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4159$as_echo "$CXX" >&6; }
4160else
4161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
4163fi
4164
4165
4166    test -n "$CXX" && break
4167  done
4168fi
4169if test -z "$CXX"; then
4170  ac_ct_CXX=$CXX
4171  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4172do
4173  # Extract the first word of "$ac_prog", so it can be a program name with args.
4174set dummy $ac_prog; ac_word=$2
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176$as_echo_n "checking for $ac_word... " >&6; }
4177if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4178  $as_echo_n "(cached) " >&6
4179else
4180  if test -n "$ac_ct_CXX"; then
4181  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4182else
4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186  IFS=$as_save_IFS
4187  test -z "$as_dir" && as_dir=.
4188    for ac_exec_ext in '' $ac_executable_extensions; do
4189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190    ac_cv_prog_ac_ct_CXX="$ac_prog"
4191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192    break 2
4193  fi
4194done
4195  done
4196IFS=$as_save_IFS
4197
4198fi
4199fi
4200ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4201if test -n "$ac_ct_CXX"; then
4202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4203$as_echo "$ac_ct_CXX" >&6; }
4204else
4205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208
4209
4210  test -n "$ac_ct_CXX" && break
4211done
4212
4213  if test "x$ac_ct_CXX" = x; then
4214    CXX="g++"
4215  else
4216    case $cross_compiling:$ac_tool_warned in
4217yes:)
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4220ac_tool_warned=yes ;;
4221esac
4222    CXX=$ac_ct_CXX
4223  fi
4224fi
4225
4226  fi
4227fi
4228# Provide some information about the compiler.
4229$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4230set X $ac_compile
4231ac_compiler=$2
4232for ac_option in --version -v -V -qversion; do
4233  { { ac_try="$ac_compiler $ac_option >&5"
4234case "(($ac_try" in
4235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236  *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4241  ac_status=$?
4242  if test -s conftest.err; then
4243    sed '10a\
4244... rest of stderr output deleted ...
4245         10q' conftest.err >conftest.er1
4246    cat conftest.er1 >&5
4247  fi
4248  rm -f conftest.er1 conftest.err
4249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250  test $ac_status = 0; }
4251done
4252
4253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h.  */
4255
4256int
4257main ()
4258{
4259
4260  ;
4261  return 0;
4262}
4263_ACEOF
4264ac_clean_files_save=$ac_clean_files
4265ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4266# Try to create an executable without -o first, disregard a.out.
4267# It will help us diagnose broken compilers, and finding out an intuition
4268# of exeext.
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4270$as_echo_n "checking whether the C++ compiler works... " >&6; }
4271ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4272
4273# The possible output files:
4274ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4275
4276ac_rmfiles=
4277for ac_file in $ac_files
4278do
4279  case $ac_file in
4280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4281    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4282  esac
4283done
4284rm -f $ac_rmfiles
4285
4286if { { ac_try="$ac_link_default"
4287case "(($ac_try" in
4288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289  *) ac_try_echo=$ac_try;;
4290esac
4291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292$as_echo "$ac_try_echo"; } >&5
4293  (eval "$ac_link_default") 2>&5
4294  ac_status=$?
4295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296  test $ac_status = 0; }; then :
4297  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4298# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4299# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4300# so that the user can short-circuit this test for compilers unknown to
4301# Autoconf.
4302for ac_file in $ac_files ''
4303do
4304  test -f "$ac_file" || continue
4305  case $ac_file in
4306    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4307	;;
4308    [ab].out )
4309	# We found the default executable, but exeext='' is most
4310	# certainly right.
4311	break;;
4312    *.* )
4313	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4314	then :; else
4315	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4316	fi
4317	# We set ac_cv_exeext here because the later test for it is not
4318	# safe: cross compilers may not add the suffix if given an `-o'
4319	# argument, so we may need to know it at that point already.
4320	# Even if this section looks crufty: it has the advantage of
4321	# actually working.
4322	break;;
4323    * )
4324	break;;
4325  esac
4326done
4327test "$ac_cv_exeext" = no && ac_cv_exeext=
4328
4329else
4330  ac_file=''
4331fi
4332if test -z "$ac_file"; then :
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334$as_echo "no" >&6; }
4335$as_echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340as_fn_error 77 "C++ compiler cannot create executables
4341See \`config.log' for more details" "$LINENO" 5; }
4342else
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344$as_echo "yes" >&6; }
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4347$as_echo_n "checking for C++ compiler default output file name... " >&6; }
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4349$as_echo "$ac_file" >&6; }
4350ac_exeext=$ac_cv_exeext
4351
4352rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4353ac_clean_files=$ac_clean_files_save
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4355$as_echo_n "checking for suffix of executables... " >&6; }
4356if { { ac_try="$ac_link"
4357case "(($ac_try" in
4358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359  *) ac_try_echo=$ac_try;;
4360esac
4361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4362$as_echo "$ac_try_echo"; } >&5
4363  (eval "$ac_link") 2>&5
4364  ac_status=$?
4365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366  test $ac_status = 0; }; then :
4367  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4368# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4369# work properly (i.e., refer to `conftest.exe'), while it won't with
4370# `rm'.
4371for ac_file in conftest.exe conftest conftest.*; do
4372  test -f "$ac_file" || continue
4373  case $ac_file in
4374    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4375    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4376	  break;;
4377    * ) break;;
4378  esac
4379done
4380else
4381  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4383as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4384See \`config.log' for more details" "$LINENO" 5; }
4385fi
4386rm -f conftest conftest$ac_cv_exeext
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4388$as_echo "$ac_cv_exeext" >&6; }
4389
4390rm -f conftest.$ac_ext
4391EXEEXT=$ac_cv_exeext
4392ac_exeext=$EXEEXT
4393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h.  */
4395#include <stdio.h>
4396int
4397main ()
4398{
4399FILE *f = fopen ("conftest.out", "w");
4400 return ferror (f) || fclose (f) != 0;
4401
4402  ;
4403  return 0;
4404}
4405_ACEOF
4406ac_clean_files="$ac_clean_files conftest.out"
4407# Check that the compiler produces executables we can run.  If not, either
4408# the compiler is broken, or we cross compile.
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4410$as_echo_n "checking whether we are cross compiling... " >&6; }
4411if test "$cross_compiling" != yes; then
4412  { { ac_try="$ac_link"
4413case "(($ac_try" in
4414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415  *) ac_try_echo=$ac_try;;
4416esac
4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418$as_echo "$ac_try_echo"; } >&5
4419  (eval "$ac_link") 2>&5
4420  ac_status=$?
4421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422  test $ac_status = 0; }
4423  if { ac_try='./conftest$ac_cv_exeext'
4424  { { case "(($ac_try" in
4425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426  *) ac_try_echo=$ac_try;;
4427esac
4428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429$as_echo "$ac_try_echo"; } >&5
4430  (eval "$ac_try") 2>&5
4431  ac_status=$?
4432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433  test $ac_status = 0; }; }; then
4434    cross_compiling=no
4435  else
4436    if test "$cross_compiling" = maybe; then
4437	cross_compiling=yes
4438    else
4439	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441as_fn_error $? "cannot run C++ compiled programs.
4442If you meant to cross compile, use \`--host'.
4443See \`config.log' for more details" "$LINENO" 5; }
4444    fi
4445  fi
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4448$as_echo "$cross_compiling" >&6; }
4449
4450rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4451ac_clean_files=$ac_clean_files_save
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4453$as_echo_n "checking for suffix of object files... " >&6; }
4454if ${ac_cv_objext+:} false; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459
4460int
4461main ()
4462{
4463
4464  ;
4465  return 0;
4466}
4467_ACEOF
4468rm -f conftest.o conftest.obj
4469if { { ac_try="$ac_compile"
4470case "(($ac_try" in
4471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472  *) ac_try_echo=$ac_try;;
4473esac
4474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475$as_echo "$ac_try_echo"; } >&5
4476  (eval "$ac_compile") 2>&5
4477  ac_status=$?
4478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479  test $ac_status = 0; }; then :
4480  for ac_file in conftest.o conftest.obj conftest.*; do
4481  test -f "$ac_file" || continue;
4482  case $ac_file in
4483    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4484    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4485       break;;
4486  esac
4487done
4488else
4489  $as_echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4494as_fn_error $? "cannot compute suffix of object files: cannot compile
4495See \`config.log' for more details" "$LINENO" 5; }
4496fi
4497rm -f conftest.$ac_cv_objext conftest.$ac_ext
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4500$as_echo "$ac_cv_objext" >&6; }
4501OBJEXT=$ac_cv_objext
4502ac_objext=$OBJEXT
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4504$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4505if ${ac_cv_cxx_compiler_gnu+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510
4511int
4512main ()
4513{
4514#ifndef __GNUC__
4515       choke me
4516#endif
4517
4518  ;
4519  return 0;
4520}
4521_ACEOF
4522if ac_fn_cxx_try_compile "$LINENO"; then :
4523  ac_compiler_gnu=yes
4524else
4525  ac_compiler_gnu=no
4526fi
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4529
4530fi
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4532$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4533if test $ac_compiler_gnu = yes; then
4534  GXX=yes
4535else
4536  GXX=
4537fi
4538ac_test_CXXFLAGS=${CXXFLAGS+set}
4539ac_save_CXXFLAGS=$CXXFLAGS
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4541$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4542if ${ac_cv_prog_cxx_g+:} false; then :
4543  $as_echo_n "(cached) " >&6
4544else
4545  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4546   ac_cxx_werror_flag=yes
4547   ac_cv_prog_cxx_g=no
4548   CXXFLAGS="-g"
4549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551
4552int
4553main ()
4554{
4555
4556  ;
4557  return 0;
4558}
4559_ACEOF
4560if ac_fn_cxx_try_compile "$LINENO"; then :
4561  ac_cv_prog_cxx_g=yes
4562else
4563  CXXFLAGS=""
4564      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565/* end confdefs.h.  */
4566
4567int
4568main ()
4569{
4570
4571  ;
4572  return 0;
4573}
4574_ACEOF
4575if ac_fn_cxx_try_compile "$LINENO"; then :
4576
4577else
4578  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579	 CXXFLAGS="-g"
4580	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581/* end confdefs.h.  */
4582
4583int
4584main ()
4585{
4586
4587  ;
4588  return 0;
4589}
4590_ACEOF
4591if ac_fn_cxx_try_compile "$LINENO"; then :
4592  ac_cv_prog_cxx_g=yes
4593fi
4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597fi
4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4602$as_echo "$ac_cv_prog_cxx_g" >&6; }
4603if test "$ac_test_CXXFLAGS" = set; then
4604  CXXFLAGS=$ac_save_CXXFLAGS
4605elif test $ac_cv_prog_cxx_g = yes; then
4606  if test "$GXX" = yes; then
4607    CXXFLAGS="-g -O2"
4608  else
4609    CXXFLAGS="-g"
4610  fi
4611else
4612  if test "$GXX" = yes; then
4613    CXXFLAGS="-O2"
4614  else
4615    CXXFLAGS=
4616  fi
4617fi
4618ac_ext=c
4619ac_cpp='$CPP $CPPFLAGS'
4620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623DEPDIR="${am__leading_dot}deps"
4624
4625ac_config_commands="$ac_config_commands depfiles"
4626
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4628$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4629cat > confinc.mk << 'END'
4630am__doit:
4631	@echo this is the am__doit target >confinc.out
4632.PHONY: am__doit
4633END
4634am__include="#"
4635am__quote=
4636# BSD make does it like this.
4637echo '.include "confinc.mk" # ignored' > confmf.BSD
4638# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4639echo 'include confinc.mk # ignored' > confmf.GNU
4640_am_result=no
4641for s in GNU BSD; do
4642  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4643   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }
4647  case $?:`cat confinc.out 2>/dev/null` in #(
4648  '0:this is the am__doit target') :
4649    case $s in #(
4650  BSD) :
4651    am__include='.include' am__quote='"' ;; #(
4652  *) :
4653    am__include='include' am__quote='' ;;
4654esac ;; #(
4655  *) :
4656     ;;
4657esac
4658  if test "$am__include" != "#"; then
4659    _am_result="yes ($s style)"
4660    break
4661  fi
4662done
4663rm -f confinc.* confmf.*
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4665$as_echo "${_am_result}" >&6; }
4666
4667# Check whether --enable-dependency-tracking was given.
4668if test "${enable_dependency_tracking+set}" = set; then :
4669  enableval=$enable_dependency_tracking;
4670fi
4671
4672if test "x$enable_dependency_tracking" != xno; then
4673  am_depcomp="$ac_aux_dir/depcomp"
4674  AMDEPBACKSLASH='\'
4675  am__nodep='_no'
4676fi
4677 if test "x$enable_dependency_tracking" != xno; then
4678  AMDEP_TRUE=
4679  AMDEP_FALSE='#'
4680else
4681  AMDEP_TRUE='#'
4682  AMDEP_FALSE=
4683fi
4684
4685
4686
4687depcc="$CXX"  am_compiler_list=
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4690$as_echo_n "checking dependency style of $depcc... " >&6; }
4691if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4695  # We make a subdir and do the tests there.  Otherwise we can end up
4696  # making bogus files that we don't know about and never remove.  For
4697  # instance it was reported that on HP-UX the gcc test will end up
4698  # making a dummy file named 'D' -- because '-MD' means "put the output
4699  # in D".
4700  rm -rf conftest.dir
4701  mkdir conftest.dir
4702  # Copy depcomp to subdir because otherwise we won't find it if we're
4703  # using a relative directory.
4704  cp "$am_depcomp" conftest.dir
4705  cd conftest.dir
4706  # We will build objects and dependencies in a subdirectory because
4707  # it helps to detect inapplicable dependency modes.  For instance
4708  # both Tru64's cc and ICC support -MD to output dependencies as a
4709  # side effect of compilation, but ICC will put the dependencies in
4710  # the current directory while Tru64 will put them in the object
4711  # directory.
4712  mkdir sub
4713
4714  am_cv_CXX_dependencies_compiler_type=none
4715  if test "$am_compiler_list" = ""; then
4716     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4717  fi
4718  am__universal=false
4719  case " $depcc " in #(
4720     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4721     esac
4722
4723  for depmode in $am_compiler_list; do
4724    # Setup a source with many dependencies, because some compilers
4725    # like to wrap large dependency lists on column 80 (with \), and
4726    # we should not choose a depcomp mode which is confused by this.
4727    #
4728    # We need to recreate these files for each test, as the compiler may
4729    # overwrite some of them when testing with obscure command lines.
4730    # This happens at least with the AIX C compiler.
4731    : > sub/conftest.c
4732    for i in 1 2 3 4 5 6; do
4733      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4734      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4735      # Solaris 10 /bin/sh.
4736      echo '/* dummy */' > sub/conftst$i.h
4737    done
4738    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4739
4740    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4741    # mode.  It turns out that the SunPro C++ compiler does not properly
4742    # handle '-M -o', and we need to detect this.  Also, some Intel
4743    # versions had trouble with output in subdirs.
4744    am__obj=sub/conftest.${OBJEXT-o}
4745    am__minus_obj="-o $am__obj"
4746    case $depmode in
4747    gcc)
4748      # This depmode causes a compiler race in universal mode.
4749      test "$am__universal" = false || continue
4750      ;;
4751    nosideeffect)
4752      # After this tag, mechanisms are not by side-effect, so they'll
4753      # only be used when explicitly requested.
4754      if test "x$enable_dependency_tracking" = xyes; then
4755	continue
4756      else
4757	break
4758      fi
4759      ;;
4760    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4761      # This compiler won't grok '-c -o', but also, the minuso test has
4762      # not run yet.  These depmodes are late enough in the game, and
4763      # so weak that their functioning should not be impacted.
4764      am__obj=conftest.${OBJEXT-o}
4765      am__minus_obj=
4766      ;;
4767    none) break ;;
4768    esac
4769    if depmode=$depmode \
4770       source=sub/conftest.c object=$am__obj \
4771       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4772       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4773         >/dev/null 2>conftest.err &&
4774       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4775       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4776       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4777       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4778      # icc doesn't choke on unknown options, it will just issue warnings
4779      # or remarks (even with -Werror).  So we grep stderr for any message
4780      # that says an option was ignored or not supported.
4781      # When given -MP, icc 7.0 and 7.1 complain thusly:
4782      #   icc: Command line warning: ignoring option '-M'; no argument required
4783      # The diagnosis changed in icc 8.0:
4784      #   icc: Command line remark: option '-MP' not supported
4785      if (grep 'ignoring option' conftest.err ||
4786          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4787        am_cv_CXX_dependencies_compiler_type=$depmode
4788        break
4789      fi
4790    fi
4791  done
4792
4793  cd ..
4794  rm -rf conftest.dir
4795else
4796  am_cv_CXX_dependencies_compiler_type=none
4797fi
4798
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4801$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4802CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4803
4804 if
4805  test "x$enable_dependency_tracking" != xno \
4806  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4807  am__fastdepCXX_TRUE=
4808  am__fastdepCXX_FALSE='#'
4809else
4810  am__fastdepCXX_TRUE='#'
4811  am__fastdepCXX_FALSE=
4812fi
4813
4814
4815ac_ext=c
4816ac_cpp='$CPP $CPPFLAGS'
4817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820if test -n "$ac_tool_prefix"; then
4821  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4822set dummy ${ac_tool_prefix}gcc; ac_word=$2
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824$as_echo_n "checking for $ac_word... " >&6; }
4825if ${ac_cv_prog_CC+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  if test -n "$CC"; then
4829  ac_cv_prog_CC="$CC" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843  done
4844IFS=$as_save_IFS
4845
4846fi
4847fi
4848CC=$ac_cv_prog_CC
4849if test -n "$CC"; then
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851$as_echo "$CC" >&6; }
4852else
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856
4857
4858fi
4859if test -z "$ac_cv_prog_CC"; then
4860  ac_ct_CC=$CC
4861  # Extract the first word of "gcc", so it can be a program name with args.
4862set dummy gcc; ac_word=$2
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864$as_echo_n "checking for $ac_word... " >&6; }
4865if ${ac_cv_prog_ac_ct_CC+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -n "$ac_ct_CC"; then
4869  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878    ac_cv_prog_ac_ct_CC="gcc"
4879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880    break 2
4881  fi
4882done
4883  done
4884IFS=$as_save_IFS
4885
4886fi
4887fi
4888ac_ct_CC=$ac_cv_prog_ac_ct_CC
4889if test -n "$ac_ct_CC"; then
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4891$as_echo "$ac_ct_CC" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897  if test "x$ac_ct_CC" = x; then
4898    CC=""
4899  else
4900    case $cross_compiling:$ac_tool_warned in
4901yes:)
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904ac_tool_warned=yes ;;
4905esac
4906    CC=$ac_ct_CC
4907  fi
4908else
4909  CC="$ac_cv_prog_CC"
4910fi
4911
4912if test -z "$CC"; then
4913          if test -n "$ac_tool_prefix"; then
4914    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4915set dummy ${ac_tool_prefix}cc; ac_word=$2
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if ${ac_cv_prog_CC+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  if test -n "$CC"; then
4922  ac_cv_prog_CC="$CC" # Let the user override the test.
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927  IFS=$as_save_IFS
4928  test -z "$as_dir" && as_dir=.
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931    ac_cv_prog_CC="${ac_tool_prefix}cc"
4932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933    break 2
4934  fi
4935done
4936  done
4937IFS=$as_save_IFS
4938
4939fi
4940fi
4941CC=$ac_cv_prog_CC
4942if test -n "$CC"; then
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4944$as_echo "$CC" >&6; }
4945else
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
4948fi
4949
4950
4951  fi
4952fi
4953if test -z "$CC"; then
4954  # Extract the first word of "cc", so it can be a program name with args.
4955set dummy cc; ac_word=$2
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957$as_echo_n "checking for $ac_word... " >&6; }
4958if ${ac_cv_prog_CC+:} false; then :
4959  $as_echo_n "(cached) " >&6
4960else
4961  if test -n "$CC"; then
4962  ac_cv_prog_CC="$CC" # Let the user override the test.
4963else
4964  ac_prog_rejected=no
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970    for ac_exec_ext in '' $ac_executable_extensions; do
4971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4973       ac_prog_rejected=yes
4974       continue
4975     fi
4976    ac_cv_prog_CC="cc"
4977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978    break 2
4979  fi
4980done
4981  done
4982IFS=$as_save_IFS
4983
4984if test $ac_prog_rejected = yes; then
4985  # We found a bogon in the path, so make sure we never use it.
4986  set dummy $ac_cv_prog_CC
4987  shift
4988  if test $# != 0; then
4989    # We chose a different compiler from the bogus one.
4990    # However, it has the same basename, so the bogon will be chosen
4991    # first if we set CC to just the basename; use the full file name.
4992    shift
4993    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4994  fi
4995fi
4996fi
4997fi
4998CC=$ac_cv_prog_CC
4999if test -n "$CC"; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5001$as_echo "$CC" >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007
5008fi
5009if test -z "$CC"; then
5010  if test -n "$ac_tool_prefix"; then
5011  for ac_prog in cl.exe
5012  do
5013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_CC+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  if test -n "$CC"; then
5021  ac_cv_prog_CC="$CC" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026  IFS=$as_save_IFS
5027  test -z "$as_dir" && as_dir=.
5028    for ac_exec_ext in '' $ac_executable_extensions; do
5029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032    break 2
5033  fi
5034done
5035  done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040CC=$ac_cv_prog_CC
5041if test -n "$CC"; then
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5043$as_echo "$CC" >&6; }
5044else
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050    test -n "$CC" && break
5051  done
5052fi
5053if test -z "$CC"; then
5054  ac_ct_CC=$CC
5055  for ac_prog in cl.exe
5056do
5057  # Extract the first word of "$ac_prog", so it can be a program name with args.
5058set dummy $ac_prog; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if ${ac_cv_prog_ac_ct_CC+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  if test -n "$ac_ct_CC"; then
5065  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070  IFS=$as_save_IFS
5071  test -z "$as_dir" && as_dir=.
5072    for ac_exec_ext in '' $ac_executable_extensions; do
5073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074    ac_cv_prog_ac_ct_CC="$ac_prog"
5075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076    break 2
5077  fi
5078done
5079  done
5080IFS=$as_save_IFS
5081
5082fi
5083fi
5084ac_ct_CC=$ac_cv_prog_ac_ct_CC
5085if test -n "$ac_ct_CC"; then
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5087$as_echo "$ac_ct_CC" >&6; }
5088else
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090$as_echo "no" >&6; }
5091fi
5092
5093
5094  test -n "$ac_ct_CC" && break
5095done
5096
5097  if test "x$ac_ct_CC" = x; then
5098    CC=""
5099  else
5100    case $cross_compiling:$ac_tool_warned in
5101yes:)
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104ac_tool_warned=yes ;;
5105esac
5106    CC=$ac_ct_CC
5107  fi
5108fi
5109
5110fi
5111
5112
5113test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5115as_fn_error $? "no acceptable C compiler found in \$PATH
5116See \`config.log' for more details" "$LINENO" 5; }
5117
5118# Provide some information about the compiler.
5119$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5120set X $ac_compile
5121ac_compiler=$2
5122for ac_option in --version -v -V -qversion; do
5123  { { ac_try="$ac_compiler $ac_option >&5"
5124case "(($ac_try" in
5125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126  *) ac_try_echo=$ac_try;;
5127esac
5128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5129$as_echo "$ac_try_echo"; } >&5
5130  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5131  ac_status=$?
5132  if test -s conftest.err; then
5133    sed '10a\
5134... rest of stderr output deleted ...
5135         10q' conftest.err >conftest.er1
5136    cat conftest.er1 >&5
5137  fi
5138  rm -f conftest.er1 conftest.err
5139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5140  test $ac_status = 0; }
5141done
5142
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5144$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5145if ${ac_cv_c_compiler_gnu+:} false; then :
5146  $as_echo_n "(cached) " >&6
5147else
5148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h.  */
5150
5151int
5152main ()
5153{
5154#ifndef __GNUC__
5155       choke me
5156#endif
5157
5158  ;
5159  return 0;
5160}
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163  ac_compiler_gnu=yes
5164else
5165  ac_compiler_gnu=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168ac_cv_c_compiler_gnu=$ac_compiler_gnu
5169
5170fi
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5172$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5173if test $ac_compiler_gnu = yes; then
5174  GCC=yes
5175else
5176  GCC=
5177fi
5178ac_test_CFLAGS=${CFLAGS+set}
5179ac_save_CFLAGS=$CFLAGS
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5181$as_echo_n "checking whether $CC accepts -g... " >&6; }
5182if ${ac_cv_prog_cc_g+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  ac_save_c_werror_flag=$ac_c_werror_flag
5186   ac_c_werror_flag=yes
5187   ac_cv_prog_cc_g=no
5188   CFLAGS="-g"
5189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191
5192int
5193main ()
5194{
5195
5196  ;
5197  return 0;
5198}
5199_ACEOF
5200if ac_fn_c_try_compile "$LINENO"; then :
5201  ac_cv_prog_cc_g=yes
5202else
5203  CFLAGS=""
5204      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205/* end confdefs.h.  */
5206
5207int
5208main ()
5209{
5210
5211  ;
5212  return 0;
5213}
5214_ACEOF
5215if ac_fn_c_try_compile "$LINENO"; then :
5216
5217else
5218  ac_c_werror_flag=$ac_save_c_werror_flag
5219	 CFLAGS="-g"
5220	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h.  */
5222
5223int
5224main ()
5225{
5226
5227  ;
5228  return 0;
5229}
5230_ACEOF
5231if ac_fn_c_try_compile "$LINENO"; then :
5232  ac_cv_prog_cc_g=yes
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235fi
5236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237fi
5238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239   ac_c_werror_flag=$ac_save_c_werror_flag
5240fi
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5242$as_echo "$ac_cv_prog_cc_g" >&6; }
5243if test "$ac_test_CFLAGS" = set; then
5244  CFLAGS=$ac_save_CFLAGS
5245elif test $ac_cv_prog_cc_g = yes; then
5246  if test "$GCC" = yes; then
5247    CFLAGS="-g -O2"
5248  else
5249    CFLAGS="-g"
5250  fi
5251else
5252  if test "$GCC" = yes; then
5253    CFLAGS="-O2"
5254  else
5255    CFLAGS=
5256  fi
5257fi
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5259$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5260if ${ac_cv_prog_cc_c89+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  ac_cv_prog_cc_c89=no
5264ac_save_CC=$CC
5265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h.  */
5267#include <stdarg.h>
5268#include <stdio.h>
5269struct stat;
5270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5271struct buf { int x; };
5272FILE * (*rcsopen) (struct buf *, struct stat *, int);
5273static char *e (p, i)
5274     char **p;
5275     int i;
5276{
5277  return p[i];
5278}
5279static char *f (char * (*g) (char **, int), char **p, ...)
5280{
5281  char *s;
5282  va_list v;
5283  va_start (v,p);
5284  s = g (p, va_arg (v,int));
5285  va_end (v);
5286  return s;
5287}
5288
5289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5290   function prototypes and stuff, but not '\xHH' hex character constants.
5291   These don't provoke an error unfortunately, instead are silently treated
5292   as 'x'.  The following induces an error, until -std is added to get
5293   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5294   array size at least.  It's necessary to write '\x00'==0 to get something
5295   that's true only with -std.  */
5296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5297
5298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5299   inside strings and character constants.  */
5300#define FOO(x) 'x'
5301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5302
5303int test (int i, double x);
5304struct s1 {int (*f) (int a);};
5305struct s2 {int (*f) (double a);};
5306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5307int argc;
5308char **argv;
5309int
5310main ()
5311{
5312return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5313  ;
5314  return 0;
5315}
5316_ACEOF
5317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5318	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5319do
5320  CC="$ac_save_CC $ac_arg"
5321  if ac_fn_c_try_compile "$LINENO"; then :
5322  ac_cv_prog_cc_c89=$ac_arg
5323fi
5324rm -f core conftest.err conftest.$ac_objext
5325  test "x$ac_cv_prog_cc_c89" != "xno" && break
5326done
5327rm -f conftest.$ac_ext
5328CC=$ac_save_CC
5329
5330fi
5331# AC_CACHE_VAL
5332case "x$ac_cv_prog_cc_c89" in
5333  x)
5334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5335$as_echo "none needed" >&6; } ;;
5336  xno)
5337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5338$as_echo "unsupported" >&6; } ;;
5339  *)
5340    CC="$CC $ac_cv_prog_cc_c89"
5341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5342$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5343esac
5344if test "x$ac_cv_prog_cc_c89" != xno; then :
5345
5346fi
5347
5348ac_ext=c
5349ac_cpp='$CPP $CPPFLAGS'
5350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354ac_ext=c
5355ac_cpp='$CPP $CPPFLAGS'
5356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5360$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5361if ${am_cv_prog_cc_c_o+:} false; then :
5362  $as_echo_n "(cached) " >&6
5363else
5364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h.  */
5366
5367int
5368main ()
5369{
5370
5371  ;
5372  return 0;
5373}
5374_ACEOF
5375  # Make sure it works both with $CC and with simple cc.
5376  # Following AC_PROG_CC_C_O, we do the test twice because some
5377  # compilers refuse to overwrite an existing .o file with -o,
5378  # though they will create one.
5379  am_cv_prog_cc_c_o=yes
5380  for am_i in 1 2; do
5381    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5382   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5383   ac_status=$?
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } \
5386         && test -f conftest2.$ac_objext; then
5387      : OK
5388    else
5389      am_cv_prog_cc_c_o=no
5390      break
5391    fi
5392  done
5393  rm -f core conftest*
5394  unset am_i
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5397$as_echo "$am_cv_prog_cc_c_o" >&6; }
5398if test "$am_cv_prog_cc_c_o" != yes; then
5399   # Losing compiler, so override with the script.
5400   # FIXME: It is wrong to rewrite CC.
5401   # But if we don't then we get into trouble of one sort or another.
5402   # A longer-term fix would be to have automake use am__CC in this case,
5403   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5404   CC="$am_aux_dir/compile $CC"
5405fi
5406ac_ext=c
5407ac_cpp='$CPP $CPPFLAGS'
5408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412
5413depcc="$CC"   am_compiler_list=
5414
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5416$as_echo_n "checking dependency style of $depcc... " >&6; }
5417if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5421  # We make a subdir and do the tests there.  Otherwise we can end up
5422  # making bogus files that we don't know about and never remove.  For
5423  # instance it was reported that on HP-UX the gcc test will end up
5424  # making a dummy file named 'D' -- because '-MD' means "put the output
5425  # in D".
5426  rm -rf conftest.dir
5427  mkdir conftest.dir
5428  # Copy depcomp to subdir because otherwise we won't find it if we're
5429  # using a relative directory.
5430  cp "$am_depcomp" conftest.dir
5431  cd conftest.dir
5432  # We will build objects and dependencies in a subdirectory because
5433  # it helps to detect inapplicable dependency modes.  For instance
5434  # both Tru64's cc and ICC support -MD to output dependencies as a
5435  # side effect of compilation, but ICC will put the dependencies in
5436  # the current directory while Tru64 will put them in the object
5437  # directory.
5438  mkdir sub
5439
5440  am_cv_CC_dependencies_compiler_type=none
5441  if test "$am_compiler_list" = ""; then
5442     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5443  fi
5444  am__universal=false
5445  case " $depcc " in #(
5446     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5447     esac
5448
5449  for depmode in $am_compiler_list; do
5450    # Setup a source with many dependencies, because some compilers
5451    # like to wrap large dependency lists on column 80 (with \), and
5452    # we should not choose a depcomp mode which is confused by this.
5453    #
5454    # We need to recreate these files for each test, as the compiler may
5455    # overwrite some of them when testing with obscure command lines.
5456    # This happens at least with the AIX C compiler.
5457    : > sub/conftest.c
5458    for i in 1 2 3 4 5 6; do
5459      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5460      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5461      # Solaris 10 /bin/sh.
5462      echo '/* dummy */' > sub/conftst$i.h
5463    done
5464    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5465
5466    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5467    # mode.  It turns out that the SunPro C++ compiler does not properly
5468    # handle '-M -o', and we need to detect this.  Also, some Intel
5469    # versions had trouble with output in subdirs.
5470    am__obj=sub/conftest.${OBJEXT-o}
5471    am__minus_obj="-o $am__obj"
5472    case $depmode in
5473    gcc)
5474      # This depmode causes a compiler race in universal mode.
5475      test "$am__universal" = false || continue
5476      ;;
5477    nosideeffect)
5478      # After this tag, mechanisms are not by side-effect, so they'll
5479      # only be used when explicitly requested.
5480      if test "x$enable_dependency_tracking" = xyes; then
5481	continue
5482      else
5483	break
5484      fi
5485      ;;
5486    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5487      # This compiler won't grok '-c -o', but also, the minuso test has
5488      # not run yet.  These depmodes are late enough in the game, and
5489      # so weak that their functioning should not be impacted.
5490      am__obj=conftest.${OBJEXT-o}
5491      am__minus_obj=
5492      ;;
5493    none) break ;;
5494    esac
5495    if depmode=$depmode \
5496       source=sub/conftest.c object=$am__obj \
5497       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5498       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5499         >/dev/null 2>conftest.err &&
5500       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5501       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5502       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5503       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5504      # icc doesn't choke on unknown options, it will just issue warnings
5505      # or remarks (even with -Werror).  So we grep stderr for any message
5506      # that says an option was ignored or not supported.
5507      # When given -MP, icc 7.0 and 7.1 complain thusly:
5508      #   icc: Command line warning: ignoring option '-M'; no argument required
5509      # The diagnosis changed in icc 8.0:
5510      #   icc: Command line remark: option '-MP' not supported
5511      if (grep 'ignoring option' conftest.err ||
5512          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5513        am_cv_CC_dependencies_compiler_type=$depmode
5514        break
5515      fi
5516    fi
5517  done
5518
5519  cd ..
5520  rm -rf conftest.dir
5521else
5522  am_cv_CC_dependencies_compiler_type=none
5523fi
5524
5525fi
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5527$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5528CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5529
5530 if
5531  test "x$enable_dependency_tracking" != xno \
5532  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5533  am__fastdepCC_TRUE=
5534  am__fastdepCC_FALSE='#'
5535else
5536  am__fastdepCC_TRUE='#'
5537  am__fastdepCC_FALSE=
5538fi
5539
5540
5541
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5543$as_echo_n "checking whether ln -s works... " >&6; }
5544LN_S=$as_ln_s
5545if test "$LN_S" = "ln -s"; then
5546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547$as_echo "yes" >&6; }
5548else
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5550$as_echo "no, using $LN_S" >&6; }
5551fi
5552
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5554$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5555set x ${MAKE-make}
5556ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5557if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  cat >conftest.make <<\_ACEOF
5561SHELL = /bin/sh
5562all:
5563	@echo '@@@%%%=$(MAKE)=@@@%%%'
5564_ACEOF
5565# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5566case `${MAKE-make} -f conftest.make 2>/dev/null` in
5567  *@@@%%%=?*=@@@%%%*)
5568    eval ac_cv_prog_make_${ac_make}_set=yes;;
5569  *)
5570    eval ac_cv_prog_make_${ac_make}_set=no;;
5571esac
5572rm -f conftest.make
5573fi
5574if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576$as_echo "yes" >&6; }
5577  SET_MAKE=
5578else
5579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580$as_echo "no" >&6; }
5581  SET_MAKE="MAKE=${MAKE-make}"
5582fi
5583
5584
5585
5586ac_ext=c
5587ac_cpp='$CPP $CPPFLAGS'
5588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5590ac_compiler_gnu=$ac_cv_c_compiler_gnu
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5592$as_echo_n "checking how to run the C preprocessor... " >&6; }
5593# On Suns, sometimes $CPP names a directory.
5594if test -n "$CPP" && test -d "$CPP"; then
5595  CPP=
5596fi
5597if test -z "$CPP"; then
5598  if ${ac_cv_prog_CPP+:} false; then :
5599  $as_echo_n "(cached) " >&6
5600else
5601      # Double quotes because CPP needs to be expanded
5602    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5603    do
5604      ac_preproc_ok=false
5605for ac_c_preproc_warn_flag in '' yes
5606do
5607  # Use a header file that comes with gcc, so configuring glibc
5608  # with a fresh cross-compiler works.
5609  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5610  # <limits.h> exists even on freestanding compilers.
5611  # On the NeXT, cc -E runs the code through the compiler's parser,
5612  # not just through cpp. "Syntax error" is here to catch this case.
5613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h.  */
5615#ifdef __STDC__
5616# include <limits.h>
5617#else
5618# include <assert.h>
5619#endif
5620		     Syntax error
5621_ACEOF
5622if ac_fn_c_try_cpp "$LINENO"; then :
5623
5624else
5625  # Broken: fails on valid input.
5626continue
5627fi
5628rm -f conftest.err conftest.i conftest.$ac_ext
5629
5630  # OK, works on sane cases.  Now check whether nonexistent headers
5631  # can be detected and how.
5632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h.  */
5634#include <ac_nonexistent.h>
5635_ACEOF
5636if ac_fn_c_try_cpp "$LINENO"; then :
5637  # Broken: success on invalid input.
5638continue
5639else
5640  # Passes both tests.
5641ac_preproc_ok=:
5642break
5643fi
5644rm -f conftest.err conftest.i conftest.$ac_ext
5645
5646done
5647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5648rm -f conftest.i conftest.err conftest.$ac_ext
5649if $ac_preproc_ok; then :
5650  break
5651fi
5652
5653    done
5654    ac_cv_prog_CPP=$CPP
5655
5656fi
5657  CPP=$ac_cv_prog_CPP
5658else
5659  ac_cv_prog_CPP=$CPP
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5662$as_echo "$CPP" >&6; }
5663ac_preproc_ok=false
5664for ac_c_preproc_warn_flag in '' yes
5665do
5666  # Use a header file that comes with gcc, so configuring glibc
5667  # with a fresh cross-compiler works.
5668  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669  # <limits.h> exists even on freestanding compilers.
5670  # On the NeXT, cc -E runs the code through the compiler's parser,
5671  # not just through cpp. "Syntax error" is here to catch this case.
5672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673/* end confdefs.h.  */
5674#ifdef __STDC__
5675# include <limits.h>
5676#else
5677# include <assert.h>
5678#endif
5679		     Syntax error
5680_ACEOF
5681if ac_fn_c_try_cpp "$LINENO"; then :
5682
5683else
5684  # Broken: fails on valid input.
5685continue
5686fi
5687rm -f conftest.err conftest.i conftest.$ac_ext
5688
5689  # OK, works on sane cases.  Now check whether nonexistent headers
5690  # can be detected and how.
5691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h.  */
5693#include <ac_nonexistent.h>
5694_ACEOF
5695if ac_fn_c_try_cpp "$LINENO"; then :
5696  # Broken: success on invalid input.
5697continue
5698else
5699  # Passes both tests.
5700ac_preproc_ok=:
5701break
5702fi
5703rm -f conftest.err conftest.i conftest.$ac_ext
5704
5705done
5706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5707rm -f conftest.i conftest.err conftest.$ac_ext
5708if $ac_preproc_ok; then :
5709
5710else
5711  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5713as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5714See \`config.log' for more details" "$LINENO" 5; }
5715fi
5716
5717ac_ext=c
5718ac_cpp='$CPP $CPPFLAGS'
5719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722
5723
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5725$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5726if ${ac_cv_path_GREP+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  if test -z "$GREP"; then
5730  ac_path_GREP_found=false
5731  # Loop through the user's path and test for each of PROGNAME-LIST
5732  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5734do
5735  IFS=$as_save_IFS
5736  test -z "$as_dir" && as_dir=.
5737    for ac_prog in grep ggrep; do
5738    for ac_exec_ext in '' $ac_executable_extensions; do
5739      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5740      as_fn_executable_p "$ac_path_GREP" || continue
5741# Check for GNU ac_path_GREP and select it if it is found.
5742  # Check for GNU $ac_path_GREP
5743case `"$ac_path_GREP" --version 2>&1` in
5744*GNU*)
5745  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5746*)
5747  ac_count=0
5748  $as_echo_n 0123456789 >"conftest.in"
5749  while :
5750  do
5751    cat "conftest.in" "conftest.in" >"conftest.tmp"
5752    mv "conftest.tmp" "conftest.in"
5753    cp "conftest.in" "conftest.nl"
5754    $as_echo 'GREP' >> "conftest.nl"
5755    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5756    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5757    as_fn_arith $ac_count + 1 && ac_count=$as_val
5758    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5759      # Best one so far, save it but keep looking for a better one
5760      ac_cv_path_GREP="$ac_path_GREP"
5761      ac_path_GREP_max=$ac_count
5762    fi
5763    # 10*(2^10) chars as input seems more than enough
5764    test $ac_count -gt 10 && break
5765  done
5766  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5767esac
5768
5769      $ac_path_GREP_found && break 3
5770    done
5771  done
5772  done
5773IFS=$as_save_IFS
5774  if test -z "$ac_cv_path_GREP"; then
5775    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5776  fi
5777else
5778  ac_cv_path_GREP=$GREP
5779fi
5780
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5783$as_echo "$ac_cv_path_GREP" >&6; }
5784 GREP="$ac_cv_path_GREP"
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5788$as_echo_n "checking for egrep... " >&6; }
5789if ${ac_cv_path_EGREP+:} false; then :
5790  $as_echo_n "(cached) " >&6
5791else
5792  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5793   then ac_cv_path_EGREP="$GREP -E"
5794   else
5795     if test -z "$EGREP"; then
5796  ac_path_EGREP_found=false
5797  # Loop through the user's path and test for each of PROGNAME-LIST
5798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5800do
5801  IFS=$as_save_IFS
5802  test -z "$as_dir" && as_dir=.
5803    for ac_prog in egrep; do
5804    for ac_exec_ext in '' $ac_executable_extensions; do
5805      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5806      as_fn_executable_p "$ac_path_EGREP" || continue
5807# Check for GNU ac_path_EGREP and select it if it is found.
5808  # Check for GNU $ac_path_EGREP
5809case `"$ac_path_EGREP" --version 2>&1` in
5810*GNU*)
5811  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5812*)
5813  ac_count=0
5814  $as_echo_n 0123456789 >"conftest.in"
5815  while :
5816  do
5817    cat "conftest.in" "conftest.in" >"conftest.tmp"
5818    mv "conftest.tmp" "conftest.in"
5819    cp "conftest.in" "conftest.nl"
5820    $as_echo 'EGREP' >> "conftest.nl"
5821    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5822    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5823    as_fn_arith $ac_count + 1 && ac_count=$as_val
5824    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5825      # Best one so far, save it but keep looking for a better one
5826      ac_cv_path_EGREP="$ac_path_EGREP"
5827      ac_path_EGREP_max=$ac_count
5828    fi
5829    # 10*(2^10) chars as input seems more than enough
5830    test $ac_count -gt 10 && break
5831  done
5832  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5833esac
5834
5835      $ac_path_EGREP_found && break 3
5836    done
5837  done
5838  done
5839IFS=$as_save_IFS
5840  if test -z "$ac_cv_path_EGREP"; then
5841    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5842  fi
5843else
5844  ac_cv_path_EGREP=$EGREP
5845fi
5846
5847   fi
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5850$as_echo "$ac_cv_path_EGREP" >&6; }
5851 EGREP="$ac_cv_path_EGREP"
5852
5853
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5855$as_echo_n "checking for ANSI C header files... " >&6; }
5856if ${ac_cv_header_stdc+:} false; then :
5857  $as_echo_n "(cached) " >&6
5858else
5859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h.  */
5861#include <stdlib.h>
5862#include <stdarg.h>
5863#include <string.h>
5864#include <float.h>
5865
5866int
5867main ()
5868{
5869
5870  ;
5871  return 0;
5872}
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then :
5875  ac_cv_header_stdc=yes
5876else
5877  ac_cv_header_stdc=no
5878fi
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880
5881if test $ac_cv_header_stdc = yes; then
5882  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h.  */
5885#include <string.h>
5886
5887_ACEOF
5888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5889  $EGREP "memchr" >/dev/null 2>&1; then :
5890
5891else
5892  ac_cv_header_stdc=no
5893fi
5894rm -f conftest*
5895
5896fi
5897
5898if test $ac_cv_header_stdc = yes; then
5899  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902#include <stdlib.h>
5903
5904_ACEOF
5905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5906  $EGREP "free" >/dev/null 2>&1; then :
5907
5908else
5909  ac_cv_header_stdc=no
5910fi
5911rm -f conftest*
5912
5913fi
5914
5915if test $ac_cv_header_stdc = yes; then
5916  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5917  if test "$cross_compiling" = yes; then :
5918  :
5919else
5920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h.  */
5922#include <ctype.h>
5923#include <stdlib.h>
5924#if ((' ' & 0x0FF) == 0x020)
5925# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5926# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5927#else
5928# define ISLOWER(c) \
5929		   (('a' <= (c) && (c) <= 'i') \
5930		     || ('j' <= (c) && (c) <= 'r') \
5931		     || ('s' <= (c) && (c) <= 'z'))
5932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5933#endif
5934
5935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5936int
5937main ()
5938{
5939  int i;
5940  for (i = 0; i < 256; i++)
5941    if (XOR (islower (i), ISLOWER (i))
5942	|| toupper (i) != TOUPPER (i))
5943      return 2;
5944  return 0;
5945}
5946_ACEOF
5947if ac_fn_c_try_run "$LINENO"; then :
5948
5949else
5950  ac_cv_header_stdc=no
5951fi
5952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5953  conftest.$ac_objext conftest.beam conftest.$ac_ext
5954fi
5955
5956fi
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5959$as_echo "$ac_cv_header_stdc" >&6; }
5960if test $ac_cv_header_stdc = yes; then
5961
5962$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5963
5964fi
5965
5966# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5967for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5968		  inttypes.h stdint.h unistd.h
5969do :
5970  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5972"
5973if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5974  cat >>confdefs.h <<_ACEOF
5975#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5976_ACEOF
5977
5978fi
5979
5980done
5981
5982
5983
5984  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5985if test "x$ac_cv_header_minix_config_h" = xyes; then :
5986  MINIX=yes
5987else
5988  MINIX=
5989fi
5990
5991
5992  if test "$MINIX" = yes; then
5993
5994$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5995
5996
5997$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5998
5999
6000$as_echo "#define _MINIX 1" >>confdefs.h
6001
6002  fi
6003
6004
6005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6006$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6007if ${ac_cv_safe_to_define___extensions__+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012
6013#         define __EXTENSIONS__ 1
6014          $ac_includes_default
6015int
6016main ()
6017{
6018
6019  ;
6020  return 0;
6021}
6022_ACEOF
6023if ac_fn_c_try_compile "$LINENO"; then :
6024  ac_cv_safe_to_define___extensions__=yes
6025else
6026  ac_cv_safe_to_define___extensions__=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6031$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6032  test $ac_cv_safe_to_define___extensions__ = yes &&
6033    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6034
6035  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6036
6037  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6038
6039  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6040
6041  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6042
6043
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6045$as_echo_n "checking for library containing strerror... " >&6; }
6046if ${ac_cv_search_strerror+:} false; then :
6047  $as_echo_n "(cached) " >&6
6048else
6049  ac_func_search_save_LIBS=$LIBS
6050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052
6053/* Override any GCC internal prototype to avoid an error.
6054   Use char because int might match the return type of a GCC
6055   builtin and then its argument prototype would still apply.  */
6056#ifdef __cplusplus
6057extern "C"
6058#endif
6059char strerror ();
6060int
6061main ()
6062{
6063return strerror ();
6064  ;
6065  return 0;
6066}
6067_ACEOF
6068for ac_lib in '' cposix; do
6069  if test -z "$ac_lib"; then
6070    ac_res="none required"
6071  else
6072    ac_res=-l$ac_lib
6073    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6074  fi
6075  if ac_fn_c_try_link "$LINENO"; then :
6076  ac_cv_search_strerror=$ac_res
6077fi
6078rm -f core conftest.err conftest.$ac_objext \
6079    conftest$ac_exeext
6080  if ${ac_cv_search_strerror+:} false; then :
6081  break
6082fi
6083done
6084if ${ac_cv_search_strerror+:} false; then :
6085
6086else
6087  ac_cv_search_strerror=no
6088fi
6089rm conftest.$ac_ext
6090LIBS=$ac_func_search_save_LIBS
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6093$as_echo "$ac_cv_search_strerror" >&6; }
6094ac_res=$ac_cv_search_strerror
6095if test "$ac_res" != no; then :
6096  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6097
6098fi
6099
6100for ac_prog in gawk mawk nawk awk
6101do
6102  # Extract the first word of "$ac_prog", so it can be a program name with args.
6103set dummy $ac_prog; ac_word=$2
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if ${ac_cv_prog_AWK+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$AWK"; then
6110  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117    for ac_exec_ext in '' $ac_executable_extensions; do
6118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119    ac_cv_prog_AWK="$ac_prog"
6120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124  done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129AWK=$ac_cv_prog_AWK
6130if test -n "$AWK"; then
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6132$as_echo "$AWK" >&6; }
6133else
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138
6139  test -n "$AWK" && break
6140done
6141
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6143$as_echo_n "checking for long file names... " >&6; }
6144if ${ac_cv_sys_long_file_names+:} false; then :
6145  $as_echo_n "(cached) " >&6
6146else
6147  ac_cv_sys_long_file_names=yes
6148# Test for long file names in all the places we know might matter:
6149#      .		the current directory, where building will happen
6150#      $prefix/lib	where we will be installing things
6151#      $exec_prefix/lib	likewise
6152#      $TMPDIR		if set, where it might want to write temporary files
6153#      /tmp		where it might want to write temporary files
6154#      /var/tmp		likewise
6155#      /usr/tmp		likewise
6156for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
6157  # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6158  # in the usual case where exec_prefix is '${prefix}'.
6159  case $ac_dir in #(
6160    . | /* | ?:[\\/]*) ;; #(
6161    *) continue;;
6162  esac
6163  test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
6164  ac_xdir=$ac_dir/cf$$
6165  (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
6166  ac_tf1=$ac_xdir/conftest9012345
6167  ac_tf2=$ac_xdir/conftest9012346
6168  touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6169    ac_cv_sys_long_file_names=no
6170  rm -f -r "$ac_xdir" 2>/dev/null
6171  test $ac_cv_sys_long_file_names = no && break
6172done
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6175$as_echo "$ac_cv_sys_long_file_names" >&6; }
6176if test $ac_cv_sys_long_file_names = yes; then
6177
6178$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6179
6180fi
6181
6182if test $ac_cv_sys_long_file_names = no; then
6183        as_fn_error $? "The Cyrus IMAPD requires support for long file names" "$LINENO" 5
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6186$as_echo_n "checking for inline... " >&6; }
6187if ${ac_cv_c_inline+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  ac_cv_c_inline=no
6191for ac_kw in inline __inline__ __inline; do
6192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194#ifndef __cplusplus
6195typedef int foo_t;
6196static $ac_kw foo_t static_foo () {return 0; }
6197$ac_kw foo_t foo () {return 0; }
6198#endif
6199
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202  ac_cv_c_inline=$ac_kw
6203fi
6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205  test "$ac_cv_c_inline" != no && break
6206done
6207
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6210$as_echo "$ac_cv_c_inline" >&6; }
6211
6212case $ac_cv_c_inline in
6213  inline | yes) ;;
6214  *)
6215    case $ac_cv_c_inline in
6216      no) ac_val=;;
6217      *) ac_val=$ac_cv_c_inline;;
6218    esac
6219    cat >>confdefs.h <<_ACEOF
6220#ifndef __cplusplus
6221#define inline $ac_val
6222#endif
6223_ACEOF
6224    ;;
6225esac
6226
6227
6228
6229
6230  CFLAG_VISIBILITY=
6231  HAVE_VISIBILITY=0
6232  if test -n "$GCC"; then
6233                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6234$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6235    if ${gl_cv_cc_vis_werror+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238
6239      gl_save_CFLAGS="$CFLAGS"
6240      CFLAGS="$CFLAGS -Werror"
6241      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h.  */
6243
6244int
6245main ()
6246{
6247
6248  ;
6249  return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253  gl_cv_cc_vis_werror=yes
6254else
6255  gl_cv_cc_vis_werror=no
6256fi
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258      CFLAGS="$gl_save_CFLAGS"
6259fi
6260
6261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6262$as_echo "$gl_cv_cc_vis_werror" >&6; }
6263        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6264$as_echo_n "checking for simple visibility declarations... " >&6; }
6265    if ${gl_cv_cc_visibility+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268
6269      gl_save_CFLAGS="$CFLAGS"
6270      CFLAGS="$CFLAGS -fvisibility=hidden"
6271                                    if test $gl_cv_cc_vis_werror = yes; then
6272        CFLAGS="$CFLAGS -Werror"
6273      fi
6274      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6277             extern __attribute__((__visibility__("default"))) int exportedvar;
6278             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6279             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6280             void dummyfunc (void) {}
6281
6282int
6283main ()
6284{
6285
6286  ;
6287  return 0;
6288}
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291  gl_cv_cc_visibility=yes
6292else
6293  gl_cv_cc_visibility=no
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296      CFLAGS="$gl_save_CFLAGS"
6297fi
6298
6299    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6300$as_echo "$gl_cv_cc_visibility" >&6; }
6301    if test $gl_cv_cc_visibility = yes; then
6302      CFLAG_VISIBILITY="-fvisibility=hidden"
6303      HAVE_VISIBILITY=1
6304    fi
6305  fi
6306
6307
6308
6309cat >>confdefs.h <<_ACEOF
6310#define HAVE_VISIBILITY $HAVE_VISIBILITY
6311_ACEOF
6312
6313
6314
6315
6316
6317
6318
6319case `pwd` in
6320  *\ * | *\	*)
6321    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6322$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6323esac
6324
6325
6326
6327macro_version='2.4.6'
6328macro_revision='2.4.6'
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342ltmain=$ac_aux_dir/ltmain.sh
6343
6344# Backslashify metacharacters that are still active within
6345# double-quoted strings.
6346sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6347
6348# Same as above, but do not quote variable references.
6349double_quote_subst='s/\(["`\\]\)/\\\1/g'
6350
6351# Sed substitution to delay expansion of an escaped shell variable in a
6352# double_quote_subst'ed string.
6353delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6354
6355# Sed substitution to delay expansion of an escaped single quote.
6356delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6357
6358# Sed substitution to avoid accidental globbing in evaled expressions
6359no_glob_subst='s/\*/\\\*/g'
6360
6361ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6362ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6363ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6364
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6366$as_echo_n "checking how to print strings... " >&6; }
6367# Test print first, because it will be a builtin if present.
6368if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6369   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6370  ECHO='print -r --'
6371elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6372  ECHO='printf %s\n'
6373else
6374  # Use this function as a fallback that always works.
6375  func_fallback_echo ()
6376  {
6377    eval 'cat <<_LTECHO_EOF
6378$1
6379_LTECHO_EOF'
6380  }
6381  ECHO='func_fallback_echo'
6382fi
6383
6384# func_echo_all arg...
6385# Invoke $ECHO with all args, space-separated.
6386func_echo_all ()
6387{
6388    $ECHO ""
6389}
6390
6391case $ECHO in
6392  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6393$as_echo "printf" >&6; } ;;
6394  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6395$as_echo "print -r" >&6; } ;;
6396  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6397$as_echo "cat" >&6; } ;;
6398esac
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6414$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6415if ${ac_cv_path_SED+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6419     for ac_i in 1 2 3 4 5 6 7; do
6420       ac_script="$ac_script$as_nl$ac_script"
6421     done
6422     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6423     { ac_script=; unset ac_script;}
6424     if test -z "$SED"; then
6425  ac_path_SED_found=false
6426  # Loop through the user's path and test for each of PROGNAME-LIST
6427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430  IFS=$as_save_IFS
6431  test -z "$as_dir" && as_dir=.
6432    for ac_prog in sed gsed; do
6433    for ac_exec_ext in '' $ac_executable_extensions; do
6434      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6435      as_fn_executable_p "$ac_path_SED" || continue
6436# Check for GNU ac_path_SED and select it if it is found.
6437  # Check for GNU $ac_path_SED
6438case `"$ac_path_SED" --version 2>&1` in
6439*GNU*)
6440  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6441*)
6442  ac_count=0
6443  $as_echo_n 0123456789 >"conftest.in"
6444  while :
6445  do
6446    cat "conftest.in" "conftest.in" >"conftest.tmp"
6447    mv "conftest.tmp" "conftest.in"
6448    cp "conftest.in" "conftest.nl"
6449    $as_echo '' >> "conftest.nl"
6450    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6451    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6452    as_fn_arith $ac_count + 1 && ac_count=$as_val
6453    if test $ac_count -gt ${ac_path_SED_max-0}; then
6454      # Best one so far, save it but keep looking for a better one
6455      ac_cv_path_SED="$ac_path_SED"
6456      ac_path_SED_max=$ac_count
6457    fi
6458    # 10*(2^10) chars as input seems more than enough
6459    test $ac_count -gt 10 && break
6460  done
6461  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6462esac
6463
6464      $ac_path_SED_found && break 3
6465    done
6466  done
6467  done
6468IFS=$as_save_IFS
6469  if test -z "$ac_cv_path_SED"; then
6470    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6471  fi
6472else
6473  ac_cv_path_SED=$SED
6474fi
6475
6476fi
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6478$as_echo "$ac_cv_path_SED" >&6; }
6479 SED="$ac_cv_path_SED"
6480  rm -f conftest.sed
6481
6482test -z "$SED" && SED=sed
6483Xsed="$SED -e 1s/^X//"
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6496$as_echo_n "checking for fgrep... " >&6; }
6497if ${ac_cv_path_FGREP+:} false; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6501   then ac_cv_path_FGREP="$GREP -F"
6502   else
6503     if test -z "$FGREP"; then
6504  ac_path_FGREP_found=false
6505  # Loop through the user's path and test for each of PROGNAME-LIST
6506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6508do
6509  IFS=$as_save_IFS
6510  test -z "$as_dir" && as_dir=.
6511    for ac_prog in fgrep; do
6512    for ac_exec_ext in '' $ac_executable_extensions; do
6513      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6514      as_fn_executable_p "$ac_path_FGREP" || continue
6515# Check for GNU ac_path_FGREP and select it if it is found.
6516  # Check for GNU $ac_path_FGREP
6517case `"$ac_path_FGREP" --version 2>&1` in
6518*GNU*)
6519  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6520*)
6521  ac_count=0
6522  $as_echo_n 0123456789 >"conftest.in"
6523  while :
6524  do
6525    cat "conftest.in" "conftest.in" >"conftest.tmp"
6526    mv "conftest.tmp" "conftest.in"
6527    cp "conftest.in" "conftest.nl"
6528    $as_echo 'FGREP' >> "conftest.nl"
6529    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6530    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6531    as_fn_arith $ac_count + 1 && ac_count=$as_val
6532    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6533      # Best one so far, save it but keep looking for a better one
6534      ac_cv_path_FGREP="$ac_path_FGREP"
6535      ac_path_FGREP_max=$ac_count
6536    fi
6537    # 10*(2^10) chars as input seems more than enough
6538    test $ac_count -gt 10 && break
6539  done
6540  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6541esac
6542
6543      $ac_path_FGREP_found && break 3
6544    done
6545  done
6546  done
6547IFS=$as_save_IFS
6548  if test -z "$ac_cv_path_FGREP"; then
6549    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6550  fi
6551else
6552  ac_cv_path_FGREP=$FGREP
6553fi
6554
6555   fi
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6558$as_echo "$ac_cv_path_FGREP" >&6; }
6559 FGREP="$ac_cv_path_FGREP"
6560
6561
6562test -z "$GREP" && GREP=grep
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582# Check whether --with-gnu-ld was given.
6583if test "${with_gnu_ld+set}" = set; then :
6584  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6585else
6586  with_gnu_ld=no
6587fi
6588
6589ac_prog=ld
6590if test yes = "$GCC"; then
6591  # Check if gcc -print-prog-name=ld gives a path.
6592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6593$as_echo_n "checking for ld used by $CC... " >&6; }
6594  case $host in
6595  *-*-mingw*)
6596    # gcc leaves a trailing carriage return, which upsets mingw
6597    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6598  *)
6599    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6600  esac
6601  case $ac_prog in
6602    # Accept absolute paths.
6603    [\\/]* | ?:[\\/]*)
6604      re_direlt='/[^/][^/]*/\.\./'
6605      # Canonicalize the pathname of ld
6606      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6607      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6608	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6609      done
6610      test -z "$LD" && LD=$ac_prog
6611      ;;
6612  "")
6613    # If it fails, then pretend we aren't using GCC.
6614    ac_prog=ld
6615    ;;
6616  *)
6617    # If it is relative, then search for the first ld in PATH.
6618    with_gnu_ld=unknown
6619    ;;
6620  esac
6621elif test yes = "$with_gnu_ld"; then
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6623$as_echo_n "checking for GNU ld... " >&6; }
6624else
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6626$as_echo_n "checking for non-GNU ld... " >&6; }
6627fi
6628if ${lt_cv_path_LD+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  if test -z "$LD"; then
6632  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6633  for ac_dir in $PATH; do
6634    IFS=$lt_save_ifs
6635    test -z "$ac_dir" && ac_dir=.
6636    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6637      lt_cv_path_LD=$ac_dir/$ac_prog
6638      # Check to see if the program is GNU ld.  I'd rather use --version,
6639      # but apparently some variants of GNU ld only accept -v.
6640      # Break only if it was the GNU/non-GNU ld that we prefer.
6641      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6642      *GNU* | *'with BFD'*)
6643	test no != "$with_gnu_ld" && break
6644	;;
6645      *)
6646	test yes != "$with_gnu_ld" && break
6647	;;
6648      esac
6649    fi
6650  done
6651  IFS=$lt_save_ifs
6652else
6653  lt_cv_path_LD=$LD # Let the user override the test with a path.
6654fi
6655fi
6656
6657LD=$lt_cv_path_LD
6658if test -n "$LD"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6660$as_echo "$LD" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6667$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6668if ${lt_cv_prog_gnu_ld+:} false; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6672case `$LD -v 2>&1 </dev/null` in
6673*GNU* | *'with BFD'*)
6674  lt_cv_prog_gnu_ld=yes
6675  ;;
6676*)
6677  lt_cv_prog_gnu_ld=no
6678  ;;
6679esac
6680fi
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6682$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6683with_gnu_ld=$lt_cv_prog_gnu_ld
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6694$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6695if ${lt_cv_path_NM+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  if test -n "$NM"; then
6699  # Let the user override the test.
6700  lt_cv_path_NM=$NM
6701else
6702  lt_nm_to_check=${ac_tool_prefix}nm
6703  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6704    lt_nm_to_check="$lt_nm_to_check nm"
6705  fi
6706  for lt_tmp_nm in $lt_nm_to_check; do
6707    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6708    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6709      IFS=$lt_save_ifs
6710      test -z "$ac_dir" && ac_dir=.
6711      tmp_nm=$ac_dir/$lt_tmp_nm
6712      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6713	# Check to see if the nm accepts a BSD-compat flag.
6714	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6715	#   nm: unknown option "B" ignored
6716	# Tru64's nm complains that /dev/null is an invalid object file
6717	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6718	case $build_os in
6719	mingw*) lt_bad_file=conftest.nm/nofile ;;
6720	*) lt_bad_file=/dev/null ;;
6721	esac
6722	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6723	*$lt_bad_file* | *'Invalid file or object type'*)
6724	  lt_cv_path_NM="$tmp_nm -B"
6725	  break 2
6726	  ;;
6727	*)
6728	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6729	  */dev/null*)
6730	    lt_cv_path_NM="$tmp_nm -p"
6731	    break 2
6732	    ;;
6733	  *)
6734	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6735	    continue # so that we can try to find one that supports BSD flags
6736	    ;;
6737	  esac
6738	  ;;
6739	esac
6740      fi
6741    done
6742    IFS=$lt_save_ifs
6743  done
6744  : ${lt_cv_path_NM=no}
6745fi
6746fi
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6748$as_echo "$lt_cv_path_NM" >&6; }
6749if test no != "$lt_cv_path_NM"; then
6750  NM=$lt_cv_path_NM
6751else
6752  # Didn't find any BSD compatible name lister, look for dumpbin.
6753  if test -n "$DUMPBIN"; then :
6754    # Let the user override the test.
6755  else
6756    if test -n "$ac_tool_prefix"; then
6757  for ac_prog in dumpbin "link -dump"
6758  do
6759    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if ${ac_cv_prog_DUMPBIN+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  if test -n "$DUMPBIN"; then
6767  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772  IFS=$as_save_IFS
6773  test -z "$as_dir" && as_dir=.
6774    for ac_exec_ext in '' $ac_executable_extensions; do
6775  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6776    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778    break 2
6779  fi
6780done
6781  done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786DUMPBIN=$ac_cv_prog_DUMPBIN
6787if test -n "$DUMPBIN"; then
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6789$as_echo "$DUMPBIN" >&6; }
6790else
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795
6796    test -n "$DUMPBIN" && break
6797  done
6798fi
6799if test -z "$DUMPBIN"; then
6800  ac_ct_DUMPBIN=$DUMPBIN
6801  for ac_prog in dumpbin "link -dump"
6802do
6803  # Extract the first word of "$ac_prog", so it can be a program name with args.
6804set dummy $ac_prog; ac_word=$2
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806$as_echo_n "checking for $ac_word... " >&6; }
6807if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6808  $as_echo_n "(cached) " >&6
6809else
6810  if test -n "$ac_ct_DUMPBIN"; then
6811  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6812else
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816  IFS=$as_save_IFS
6817  test -z "$as_dir" && as_dir=.
6818    for ac_exec_ext in '' $ac_executable_extensions; do
6819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822    break 2
6823  fi
6824done
6825  done
6826IFS=$as_save_IFS
6827
6828fi
6829fi
6830ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6831if test -n "$ac_ct_DUMPBIN"; then
6832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6833$as_echo "$ac_ct_DUMPBIN" >&6; }
6834else
6835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836$as_echo "no" >&6; }
6837fi
6838
6839
6840  test -n "$ac_ct_DUMPBIN" && break
6841done
6842
6843  if test "x$ac_ct_DUMPBIN" = x; then
6844    DUMPBIN=":"
6845  else
6846    case $cross_compiling:$ac_tool_warned in
6847yes:)
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850ac_tool_warned=yes ;;
6851esac
6852    DUMPBIN=$ac_ct_DUMPBIN
6853  fi
6854fi
6855
6856    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6857    *COFF*)
6858      DUMPBIN="$DUMPBIN -symbols -headers"
6859      ;;
6860    *)
6861      DUMPBIN=:
6862      ;;
6863    esac
6864  fi
6865
6866  if test : != "$DUMPBIN"; then
6867    NM=$DUMPBIN
6868  fi
6869fi
6870test -z "$NM" && NM=nm
6871
6872
6873
6874
6875
6876
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6878$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6879if ${lt_cv_nm_interface+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  lt_cv_nm_interface="BSD nm"
6883  echo "int some_variable = 0;" > conftest.$ac_ext
6884  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6885  (eval "$ac_compile" 2>conftest.err)
6886  cat conftest.err >&5
6887  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6888  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6889  cat conftest.err >&5
6890  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6891  cat conftest.out >&5
6892  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6893    lt_cv_nm_interface="MS dumpbin"
6894  fi
6895  rm -f conftest*
6896fi
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6898$as_echo "$lt_cv_nm_interface" >&6; }
6899
6900# find the maximum length of command line arguments
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6902$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6903if ${lt_cv_sys_max_cmd_len+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906    i=0
6907  teststring=ABCD
6908
6909  case $build_os in
6910  msdosdjgpp*)
6911    # On DJGPP, this test can blow up pretty badly due to problems in libc
6912    # (any single argument exceeding 2000 bytes causes a buffer overrun
6913    # during glob expansion).  Even if it were fixed, the result of this
6914    # check would be larger than it should be.
6915    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6916    ;;
6917
6918  gnu*)
6919    # Under GNU Hurd, this test is not required because there is
6920    # no limit to the length of command line arguments.
6921    # Libtool will interpret -1 as no limit whatsoever
6922    lt_cv_sys_max_cmd_len=-1;
6923    ;;
6924
6925  cygwin* | mingw* | cegcc*)
6926    # On Win9x/ME, this test blows up -- it succeeds, but takes
6927    # about 5 minutes as the teststring grows exponentially.
6928    # Worse, since 9x/ME are not pre-emptively multitasking,
6929    # you end up with a "frozen" computer, even though with patience
6930    # the test eventually succeeds (with a max line length of 256k).
6931    # Instead, let's just punt: use the minimum linelength reported by
6932    # all of the supported platforms: 8192 (on NT/2K/XP).
6933    lt_cv_sys_max_cmd_len=8192;
6934    ;;
6935
6936  mint*)
6937    # On MiNT this can take a long time and run out of memory.
6938    lt_cv_sys_max_cmd_len=8192;
6939    ;;
6940
6941  amigaos*)
6942    # On AmigaOS with pdksh, this test takes hours, literally.
6943    # So we just punt and use a minimum line length of 8192.
6944    lt_cv_sys_max_cmd_len=8192;
6945    ;;
6946
6947  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6948    # This has been around since 386BSD, at least.  Likely further.
6949    if test -x /sbin/sysctl; then
6950      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6951    elif test -x /usr/sbin/sysctl; then
6952      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6953    else
6954      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6955    fi
6956    # And add a safety zone
6957    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6958    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6959    ;;
6960
6961  interix*)
6962    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6963    lt_cv_sys_max_cmd_len=196608
6964    ;;
6965
6966  os2*)
6967    # The test takes a long time on OS/2.
6968    lt_cv_sys_max_cmd_len=8192
6969    ;;
6970
6971  osf*)
6972    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6973    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6974    # nice to cause kernel panics so lets avoid the loop below.
6975    # First set a reasonable default.
6976    lt_cv_sys_max_cmd_len=16384
6977    #
6978    if test -x /sbin/sysconfig; then
6979      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6980        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6981      esac
6982    fi
6983    ;;
6984  sco3.2v5*)
6985    lt_cv_sys_max_cmd_len=102400
6986    ;;
6987  sysv5* | sco5v6* | sysv4.2uw2*)
6988    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6989    if test -n "$kargmax"; then
6990      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6991    else
6992      lt_cv_sys_max_cmd_len=32768
6993    fi
6994    ;;
6995  *)
6996    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6997    if test -n "$lt_cv_sys_max_cmd_len" && \
6998       test undefined != "$lt_cv_sys_max_cmd_len"; then
6999      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7000      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7001    else
7002      # Make teststring a little bigger before we do anything with it.
7003      # a 1K string should be a reasonable start.
7004      for i in 1 2 3 4 5 6 7 8; do
7005        teststring=$teststring$teststring
7006      done
7007      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7008      # If test is not a shell built-in, we'll probably end up computing a
7009      # maximum length that is only half of the actual maximum length, but
7010      # we can't tell.
7011      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7012	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7013	      test 17 != "$i" # 1/2 MB should be enough
7014      do
7015        i=`expr $i + 1`
7016        teststring=$teststring$teststring
7017      done
7018      # Only check the string length outside the loop.
7019      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7020      teststring=
7021      # Add a significant safety factor because C++ compilers can tack on
7022      # massive amounts of additional arguments before passing them to the
7023      # linker.  It appears as though 1/2 is a usable value.
7024      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7025    fi
7026    ;;
7027  esac
7028
7029fi
7030
7031if test -n "$lt_cv_sys_max_cmd_len"; then
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7033$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7034else
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7036$as_echo "none" >&6; }
7037fi
7038max_cmd_len=$lt_cv_sys_max_cmd_len
7039
7040
7041
7042
7043
7044
7045: ${CP="cp -f"}
7046: ${MV="mv -f"}
7047: ${RM="rm -f"}
7048
7049if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7050  lt_unset=unset
7051else
7052  lt_unset=false
7053fi
7054
7055
7056
7057
7058
7059# test EBCDIC or ASCII
7060case `echo X|tr X '\101'` in
7061 A) # ASCII based system
7062    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7063  lt_SP2NL='tr \040 \012'
7064  lt_NL2SP='tr \015\012 \040\040'
7065  ;;
7066 *) # EBCDIC based system
7067  lt_SP2NL='tr \100 \n'
7068  lt_NL2SP='tr \r\n \100\100'
7069  ;;
7070esac
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7081$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7082if ${lt_cv_to_host_file_cmd+:} false; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  case $host in
7086  *-*-mingw* )
7087    case $build in
7088      *-*-mingw* ) # actually msys
7089        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7090        ;;
7091      *-*-cygwin* )
7092        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7093        ;;
7094      * ) # otherwise, assume *nix
7095        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7096        ;;
7097    esac
7098    ;;
7099  *-*-cygwin* )
7100    case $build in
7101      *-*-mingw* ) # actually msys
7102        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7103        ;;
7104      *-*-cygwin* )
7105        lt_cv_to_host_file_cmd=func_convert_file_noop
7106        ;;
7107      * ) # otherwise, assume *nix
7108        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7109        ;;
7110    esac
7111    ;;
7112  * ) # unhandled hosts (and "normal" native builds)
7113    lt_cv_to_host_file_cmd=func_convert_file_noop
7114    ;;
7115esac
7116
7117fi
7118
7119to_host_file_cmd=$lt_cv_to_host_file_cmd
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7121$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7122
7123
7124
7125
7126
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7128$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7129if ${lt_cv_to_tool_file_cmd+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  #assume ordinary cross tools, or native build.
7133lt_cv_to_tool_file_cmd=func_convert_file_noop
7134case $host in
7135  *-*-mingw* )
7136    case $build in
7137      *-*-mingw* ) # actually msys
7138        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7139        ;;
7140    esac
7141    ;;
7142esac
7143
7144fi
7145
7146to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7148$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7149
7150
7151
7152
7153
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7155$as_echo_n "checking for $LD option to reload object files... " >&6; }
7156if ${lt_cv_ld_reload_flag+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  lt_cv_ld_reload_flag='-r'
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7162$as_echo "$lt_cv_ld_reload_flag" >&6; }
7163reload_flag=$lt_cv_ld_reload_flag
7164case $reload_flag in
7165"" | " "*) ;;
7166*) reload_flag=" $reload_flag" ;;
7167esac
7168reload_cmds='$LD$reload_flag -o $output$reload_objs'
7169case $host_os in
7170  cygwin* | mingw* | pw32* | cegcc*)
7171    if test yes != "$GCC"; then
7172      reload_cmds=false
7173    fi
7174    ;;
7175  darwin*)
7176    if test yes = "$GCC"; then
7177      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7178    else
7179      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7180    fi
7181    ;;
7182esac
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192if test -n "$ac_tool_prefix"; then
7193  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7194set dummy ${ac_tool_prefix}objdump; ac_word=$2
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196$as_echo_n "checking for $ac_word... " >&6; }
7197if ${ac_cv_prog_OBJDUMP+:} false; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  if test -n "$OBJDUMP"; then
7201  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208    for ac_exec_ext in '' $ac_executable_extensions; do
7209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215  done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220OBJDUMP=$ac_cv_prog_OBJDUMP
7221if test -n "$OBJDUMP"; then
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7223$as_echo "$OBJDUMP" >&6; }
7224else
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226$as_echo "no" >&6; }
7227fi
7228
7229
7230fi
7231if test -z "$ac_cv_prog_OBJDUMP"; then
7232  ac_ct_OBJDUMP=$OBJDUMP
7233  # Extract the first word of "objdump", so it can be a program name with args.
7234set dummy objdump; ac_word=$2
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -n "$ac_ct_OBJDUMP"; then
7241  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248    for ac_exec_ext in '' $ac_executable_extensions; do
7249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255  done
7256IFS=$as_save_IFS
7257
7258fi
7259fi
7260ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7261if test -n "$ac_ct_OBJDUMP"; then
7262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7263$as_echo "$ac_ct_OBJDUMP" >&6; }
7264else
7265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266$as_echo "no" >&6; }
7267fi
7268
7269  if test "x$ac_ct_OBJDUMP" = x; then
7270    OBJDUMP="false"
7271  else
7272    case $cross_compiling:$ac_tool_warned in
7273yes:)
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7276ac_tool_warned=yes ;;
7277esac
7278    OBJDUMP=$ac_ct_OBJDUMP
7279  fi
7280else
7281  OBJDUMP="$ac_cv_prog_OBJDUMP"
7282fi
7283
7284test -z "$OBJDUMP" && OBJDUMP=objdump
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7295$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7296if ${lt_cv_deplibs_check_method+:} false; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  lt_cv_file_magic_cmd='$MAGIC_CMD'
7300lt_cv_file_magic_test_file=
7301lt_cv_deplibs_check_method='unknown'
7302# Need to set the preceding variable on all platforms that support
7303# interlibrary dependencies.
7304# 'none' -- dependencies not supported.
7305# 'unknown' -- same as none, but documents that we really don't know.
7306# 'pass_all' -- all dependencies passed with no checks.
7307# 'test_compile' -- check by making test program.
7308# 'file_magic [[regex]]' -- check by looking for files in library path
7309# that responds to the $file_magic_cmd with a given extended regex.
7310# If you have 'file' or equivalent on your system and you're not sure
7311# whether 'pass_all' will *always* work, you probably want this one.
7312
7313case $host_os in
7314aix[4-9]*)
7315  lt_cv_deplibs_check_method=pass_all
7316  ;;
7317
7318beos*)
7319  lt_cv_deplibs_check_method=pass_all
7320  ;;
7321
7322bsdi[45]*)
7323  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7324  lt_cv_file_magic_cmd='/usr/bin/file -L'
7325  lt_cv_file_magic_test_file=/shlib/libc.so
7326  ;;
7327
7328cygwin*)
7329  # func_win32_libid is a shell function defined in ltmain.sh
7330  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7331  lt_cv_file_magic_cmd='func_win32_libid'
7332  ;;
7333
7334mingw* | pw32*)
7335  # Base MSYS/MinGW do not provide the 'file' command needed by
7336  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7337  # unless we find 'file', for example because we are cross-compiling.
7338  if ( file / ) >/dev/null 2>&1; then
7339    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7340    lt_cv_file_magic_cmd='func_win32_libid'
7341  else
7342    # Keep this pattern in sync with the one in func_win32_libid.
7343    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7344    lt_cv_file_magic_cmd='$OBJDUMP -f'
7345  fi
7346  ;;
7347
7348cegcc*)
7349  # use the weaker test based on 'objdump'. See mingw*.
7350  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7351  lt_cv_file_magic_cmd='$OBJDUMP -f'
7352  ;;
7353
7354darwin* | rhapsody*)
7355  lt_cv_deplibs_check_method=pass_all
7356  ;;
7357
7358freebsd* | dragonfly*)
7359  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7360    case $host_cpu in
7361    i*86 )
7362      # Not sure whether the presence of OpenBSD here was a mistake.
7363      # Let's accept both of them until this is cleared up.
7364      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7365      lt_cv_file_magic_cmd=/usr/bin/file
7366      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7367      ;;
7368    esac
7369  else
7370    lt_cv_deplibs_check_method=pass_all
7371  fi
7372  ;;
7373
7374haiku*)
7375  lt_cv_deplibs_check_method=pass_all
7376  ;;
7377
7378hpux10.20* | hpux11*)
7379  lt_cv_file_magic_cmd=/usr/bin/file
7380  case $host_cpu in
7381  ia64*)
7382    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7383    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7384    ;;
7385  hppa*64*)
7386    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]'
7387    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7388    ;;
7389  *)
7390    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7391    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7392    ;;
7393  esac
7394  ;;
7395
7396interix[3-9]*)
7397  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7398  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7399  ;;
7400
7401irix5* | irix6* | nonstopux*)
7402  case $LD in
7403  *-32|*"-32 ") libmagic=32-bit;;
7404  *-n32|*"-n32 ") libmagic=N32;;
7405  *-64|*"-64 ") libmagic=64-bit;;
7406  *) libmagic=never-match;;
7407  esac
7408  lt_cv_deplibs_check_method=pass_all
7409  ;;
7410
7411# This must be glibc/ELF.
7412linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7413  lt_cv_deplibs_check_method=pass_all
7414  ;;
7415
7416netbsd* | netbsdelf*-gnu)
7417  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7418    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7419  else
7420    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7421  fi
7422  ;;
7423
7424newos6*)
7425  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7426  lt_cv_file_magic_cmd=/usr/bin/file
7427  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7428  ;;
7429
7430*nto* | *qnx*)
7431  lt_cv_deplibs_check_method=pass_all
7432  ;;
7433
7434openbsd* | bitrig*)
7435  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7436    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7437  else
7438    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7439  fi
7440  ;;
7441
7442osf3* | osf4* | osf5*)
7443  lt_cv_deplibs_check_method=pass_all
7444  ;;
7445
7446rdos*)
7447  lt_cv_deplibs_check_method=pass_all
7448  ;;
7449
7450solaris*)
7451  lt_cv_deplibs_check_method=pass_all
7452  ;;
7453
7454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7455  lt_cv_deplibs_check_method=pass_all
7456  ;;
7457
7458sysv4 | sysv4.3*)
7459  case $host_vendor in
7460  motorola)
7461    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]'
7462    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7463    ;;
7464  ncr)
7465    lt_cv_deplibs_check_method=pass_all
7466    ;;
7467  sequent)
7468    lt_cv_file_magic_cmd='/bin/file'
7469    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7470    ;;
7471  sni)
7472    lt_cv_file_magic_cmd='/bin/file'
7473    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7474    lt_cv_file_magic_test_file=/lib/libc.so
7475    ;;
7476  siemens)
7477    lt_cv_deplibs_check_method=pass_all
7478    ;;
7479  pc)
7480    lt_cv_deplibs_check_method=pass_all
7481    ;;
7482  esac
7483  ;;
7484
7485tpf*)
7486  lt_cv_deplibs_check_method=pass_all
7487  ;;
7488os2*)
7489  lt_cv_deplibs_check_method=pass_all
7490  ;;
7491esac
7492
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7495$as_echo "$lt_cv_deplibs_check_method" >&6; }
7496
7497file_magic_glob=
7498want_nocaseglob=no
7499if test "$build" = "$host"; then
7500  case $host_os in
7501  mingw* | pw32*)
7502    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7503      want_nocaseglob=yes
7504    else
7505      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7506    fi
7507    ;;
7508  esac
7509fi
7510
7511file_magic_cmd=$lt_cv_file_magic_cmd
7512deplibs_check_method=$lt_cv_deplibs_check_method
7513test -z "$deplibs_check_method" && deplibs_check_method=unknown
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536if test -n "$ac_tool_prefix"; then
7537  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7538set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
7541if ${ac_cv_prog_DLLTOOL+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  if test -n "$DLLTOOL"; then
7545  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552    for ac_exec_ext in '' $ac_executable_extensions; do
7553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559  done
7560IFS=$as_save_IFS
7561
7562fi
7563fi
7564DLLTOOL=$ac_cv_prog_DLLTOOL
7565if test -n "$DLLTOOL"; then
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7567$as_echo "$DLLTOOL" >&6; }
7568else
7569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
7572
7573
7574fi
7575if test -z "$ac_cv_prog_DLLTOOL"; then
7576  ac_ct_DLLTOOL=$DLLTOOL
7577  # Extract the first word of "dlltool", so it can be a program name with args.
7578set dummy dlltool; ac_word=$2
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
7581if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  if test -n "$ac_ct_DLLTOOL"; then
7585  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590  IFS=$as_save_IFS
7591  test -z "$as_dir" && as_dir=.
7592    for ac_exec_ext in '' $ac_executable_extensions; do
7593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596    break 2
7597  fi
7598done
7599  done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
7604ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7605if test -n "$ac_ct_DLLTOOL"; then
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7607$as_echo "$ac_ct_DLLTOOL" >&6; }
7608else
7609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613  if test "x$ac_ct_DLLTOOL" = x; then
7614    DLLTOOL="false"
7615  else
7616    case $cross_compiling:$ac_tool_warned in
7617yes:)
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620ac_tool_warned=yes ;;
7621esac
7622    DLLTOOL=$ac_ct_DLLTOOL
7623  fi
7624else
7625  DLLTOOL="$ac_cv_prog_DLLTOOL"
7626fi
7627
7628test -z "$DLLTOOL" && DLLTOOL=dlltool
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7640$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7641if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7642  $as_echo_n "(cached) " >&6
7643else
7644  lt_cv_sharedlib_from_linklib_cmd='unknown'
7645
7646case $host_os in
7647cygwin* | mingw* | pw32* | cegcc*)
7648  # two different shell functions defined in ltmain.sh;
7649  # decide which one to use based on capabilities of $DLLTOOL
7650  case `$DLLTOOL --help 2>&1` in
7651  *--identify-strict*)
7652    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7653    ;;
7654  *)
7655    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7656    ;;
7657  esac
7658  ;;
7659*)
7660  # fallback: assume linklib IS sharedlib
7661  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7662  ;;
7663esac
7664
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7667$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7668sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7669test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7670
7671
7672
7673
7674
7675
7676
7677if test -n "$ac_tool_prefix"; then
7678  for ac_prog in ar
7679  do
7680    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if ${ac_cv_prog_AR+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  if test -n "$AR"; then
7688  ac_cv_prog_AR="$AR" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693  IFS=$as_save_IFS
7694  test -z "$as_dir" && as_dir=.
7695    for ac_exec_ext in '' $ac_executable_extensions; do
7696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699    break 2
7700  fi
7701done
7702  done
7703IFS=$as_save_IFS
7704
7705fi
7706fi
7707AR=$ac_cv_prog_AR
7708if test -n "$AR"; then
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7710$as_echo "$AR" >&6; }
7711else
7712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716
7717    test -n "$AR" && break
7718  done
7719fi
7720if test -z "$AR"; then
7721  ac_ct_AR=$AR
7722  for ac_prog in ar
7723do
7724  # Extract the first word of "$ac_prog", so it can be a program name with args.
7725set dummy $ac_prog; ac_word=$2
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727$as_echo_n "checking for $ac_word... " >&6; }
7728if ${ac_cv_prog_ac_ct_AR+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  if test -n "$ac_ct_AR"; then
7732  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737  IFS=$as_save_IFS
7738  test -z "$as_dir" && as_dir=.
7739    for ac_exec_ext in '' $ac_executable_extensions; do
7740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741    ac_cv_prog_ac_ct_AR="$ac_prog"
7742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743    break 2
7744  fi
7745done
7746  done
7747IFS=$as_save_IFS
7748
7749fi
7750fi
7751ac_ct_AR=$ac_cv_prog_ac_ct_AR
7752if test -n "$ac_ct_AR"; then
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7754$as_echo "$ac_ct_AR" >&6; }
7755else
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
7758fi
7759
7760
7761  test -n "$ac_ct_AR" && break
7762done
7763
7764  if test "x$ac_ct_AR" = x; then
7765    AR="false"
7766  else
7767    case $cross_compiling:$ac_tool_warned in
7768yes:)
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771ac_tool_warned=yes ;;
7772esac
7773    AR=$ac_ct_AR
7774  fi
7775fi
7776
7777: ${AR=ar}
7778: ${AR_FLAGS=cru}
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7791$as_echo_n "checking for archiver @FILE support... " >&6; }
7792if ${lt_cv_ar_at_file+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  lt_cv_ar_at_file=no
7796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797/* end confdefs.h.  */
7798
7799int
7800main ()
7801{
7802
7803  ;
7804  return 0;
7805}
7806_ACEOF
7807if ac_fn_c_try_compile "$LINENO"; then :
7808  echo conftest.$ac_objext > conftest.lst
7809      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7810      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7811  (eval $lt_ar_try) 2>&5
7812  ac_status=$?
7813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814  test $ac_status = 0; }
7815      if test 0 -eq "$ac_status"; then
7816	# Ensure the archiver fails upon bogus file names.
7817	rm -f conftest.$ac_objext libconftest.a
7818	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7819  (eval $lt_ar_try) 2>&5
7820  ac_status=$?
7821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822  test $ac_status = 0; }
7823	if test 0 -ne "$ac_status"; then
7824          lt_cv_ar_at_file=@
7825        fi
7826      fi
7827      rm -f conftest.* libconftest.a
7828
7829fi
7830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831
7832fi
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7834$as_echo "$lt_cv_ar_at_file" >&6; }
7835
7836if test no = "$lt_cv_ar_at_file"; then
7837  archiver_list_spec=
7838else
7839  archiver_list_spec=$lt_cv_ar_at_file
7840fi
7841
7842
7843
7844
7845
7846
7847
7848if test -n "$ac_tool_prefix"; then
7849  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7850set dummy ${ac_tool_prefix}strip; ac_word=$2
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852$as_echo_n "checking for $ac_word... " >&6; }
7853if ${ac_cv_prog_STRIP+:} false; then :
7854  $as_echo_n "(cached) " >&6
7855else
7856  if test -n "$STRIP"; then
7857  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7858else
7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862  IFS=$as_save_IFS
7863  test -z "$as_dir" && as_dir=.
7864    for ac_exec_ext in '' $ac_executable_extensions; do
7865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868    break 2
7869  fi
7870done
7871  done
7872IFS=$as_save_IFS
7873
7874fi
7875fi
7876STRIP=$ac_cv_prog_STRIP
7877if test -n "$STRIP"; then
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7879$as_echo "$STRIP" >&6; }
7880else
7881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882$as_echo "no" >&6; }
7883fi
7884
7885
7886fi
7887if test -z "$ac_cv_prog_STRIP"; then
7888  ac_ct_STRIP=$STRIP
7889  # Extract the first word of "strip", so it can be a program name with args.
7890set dummy strip; ac_word=$2
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892$as_echo_n "checking for $ac_word... " >&6; }
7893if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  if test -n "$ac_ct_STRIP"; then
7897  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7898else
7899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902  IFS=$as_save_IFS
7903  test -z "$as_dir" && as_dir=.
7904    for ac_exec_ext in '' $ac_executable_extensions; do
7905  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906    ac_cv_prog_ac_ct_STRIP="strip"
7907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908    break 2
7909  fi
7910done
7911  done
7912IFS=$as_save_IFS
7913
7914fi
7915fi
7916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7917if test -n "$ac_ct_STRIP"; then
7918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7919$as_echo "$ac_ct_STRIP" >&6; }
7920else
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922$as_echo "no" >&6; }
7923fi
7924
7925  if test "x$ac_ct_STRIP" = x; then
7926    STRIP=":"
7927  else
7928    case $cross_compiling:$ac_tool_warned in
7929yes:)
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932ac_tool_warned=yes ;;
7933esac
7934    STRIP=$ac_ct_STRIP
7935  fi
7936else
7937  STRIP="$ac_cv_prog_STRIP"
7938fi
7939
7940test -z "$STRIP" && STRIP=:
7941
7942
7943
7944
7945
7946
7947if test -n "$ac_tool_prefix"; then
7948  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7949set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if ${ac_cv_prog_RANLIB+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  if test -n "$RANLIB"; then
7956  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963    for ac_exec_ext in '' $ac_executable_extensions; do
7964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970  done
7971IFS=$as_save_IFS
7972
7973fi
7974fi
7975RANLIB=$ac_cv_prog_RANLIB
7976if test -n "$RANLIB"; then
7977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7978$as_echo "$RANLIB" >&6; }
7979else
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983
7984
7985fi
7986if test -z "$ac_cv_prog_RANLIB"; then
7987  ac_ct_RANLIB=$RANLIB
7988  # Extract the first word of "ranlib", so it can be a program name with args.
7989set dummy ranlib; ac_word=$2
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7993  $as_echo_n "(cached) " >&6
7994else
7995  if test -n "$ac_ct_RANLIB"; then
7996  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7997else
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001  IFS=$as_save_IFS
8002  test -z "$as_dir" && as_dir=.
8003    for ac_exec_ext in '' $ac_executable_extensions; do
8004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005    ac_cv_prog_ac_ct_RANLIB="ranlib"
8006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007    break 2
8008  fi
8009done
8010  done
8011IFS=$as_save_IFS
8012
8013fi
8014fi
8015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8016if test -n "$ac_ct_RANLIB"; then
8017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8018$as_echo "$ac_ct_RANLIB" >&6; }
8019else
8020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022fi
8023
8024  if test "x$ac_ct_RANLIB" = x; then
8025    RANLIB=":"
8026  else
8027    case $cross_compiling:$ac_tool_warned in
8028yes:)
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031ac_tool_warned=yes ;;
8032esac
8033    RANLIB=$ac_ct_RANLIB
8034  fi
8035else
8036  RANLIB="$ac_cv_prog_RANLIB"
8037fi
8038
8039test -z "$RANLIB" && RANLIB=:
8040
8041
8042
8043
8044
8045
8046# Determine commands to create old-style static archives.
8047old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8048old_postinstall_cmds='chmod 644 $oldlib'
8049old_postuninstall_cmds=
8050
8051if test -n "$RANLIB"; then
8052  case $host_os in
8053  bitrig* | openbsd*)
8054    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8055    ;;
8056  *)
8057    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8058    ;;
8059  esac
8060  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8061fi
8062
8063case $host_os in
8064  darwin*)
8065    lock_old_archive_extraction=yes ;;
8066  *)
8067    lock_old_archive_extraction=no ;;
8068esac
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108# If no C compiler was specified, use CC.
8109LTCC=${LTCC-"$CC"}
8110
8111# If no C compiler flags were specified, use CFLAGS.
8112LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8113
8114# Allow CC to be a program name with arguments.
8115compiler=$CC
8116
8117
8118# Check for command to grab the raw symbol name followed by C symbol from nm.
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8120$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8121if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8122  $as_echo_n "(cached) " >&6
8123else
8124
8125# These are sane defaults that work on at least a few old systems.
8126# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8127
8128# Character class describing NM global symbol codes.
8129symcode='[BCDEGRST]'
8130
8131# Regexp to match symbols that can be accessed directly from C.
8132sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8133
8134# Define system-specific variables.
8135case $host_os in
8136aix*)
8137  symcode='[BCDT]'
8138  ;;
8139cygwin* | mingw* | pw32* | cegcc*)
8140  symcode='[ABCDGISTW]'
8141  ;;
8142hpux*)
8143  if test ia64 = "$host_cpu"; then
8144    symcode='[ABCDEGRST]'
8145  fi
8146  ;;
8147irix* | nonstopux*)
8148  symcode='[BCDEGRST]'
8149  ;;
8150osf*)
8151  symcode='[BCDEGQRST]'
8152  ;;
8153solaris*)
8154  symcode='[BDRT]'
8155  ;;
8156sco3.2v5*)
8157  symcode='[DT]'
8158  ;;
8159sysv4.2uw2*)
8160  symcode='[DT]'
8161  ;;
8162sysv5* | sco5v6* | unixware* | OpenUNIX*)
8163  symcode='[ABDT]'
8164  ;;
8165sysv4)
8166  symcode='[DFNSTU]'
8167  ;;
8168esac
8169
8170# If we're using GNU nm, then use its standard symbol codes.
8171case `$NM -V 2>&1` in
8172*GNU* | *'with BFD'*)
8173  symcode='[ABCDGIRSTW]' ;;
8174esac
8175
8176if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8177  # Gets list of data symbols to import.
8178  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8179  # Adjust the below global symbol transforms to fixup imported variables.
8180  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8181  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8182  lt_c_name_lib_hook="\
8183  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8184  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8185else
8186  # Disable hooks by default.
8187  lt_cv_sys_global_symbol_to_import=
8188  lt_cdecl_hook=
8189  lt_c_name_hook=
8190  lt_c_name_lib_hook=
8191fi
8192
8193# Transform an extracted symbol line into a proper C declaration.
8194# Some systems (esp. on ia64) link data and code symbols differently,
8195# so use this general approach.
8196lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8197$lt_cdecl_hook\
8198" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8199" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8200
8201# Transform an extracted symbol line into symbol name and symbol address
8202lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8203$lt_c_name_hook\
8204" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8205" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8206
8207# Transform an extracted symbol line into symbol name with lib prefix and
8208# symbol address.
8209lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8210$lt_c_name_lib_hook\
8211" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8212" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8213" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8214
8215# Handle CRLF in mingw tool chain
8216opt_cr=
8217case $build_os in
8218mingw*)
8219  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8220  ;;
8221esac
8222
8223# Try without a prefix underscore, then with it.
8224for ac_symprfx in "" "_"; do
8225
8226  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8227  symxfrm="\\1 $ac_symprfx\\2 \\2"
8228
8229  # Write the raw and C identifiers.
8230  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8231    # Fake it for dumpbin and say T for any non-static function,
8232    # D for any global variable and I for any imported variable.
8233    # Also find C++ and __fastcall symbols from MSVC++,
8234    # which start with @ or ?.
8235    lt_cv_sys_global_symbol_pipe="$AWK '"\
8236"     {last_section=section; section=\$ 3};"\
8237"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8238"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8239"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8240"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8241"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8242"     \$ 0!~/External *\|/{next};"\
8243"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8244"     {if(hide[section]) next};"\
8245"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8246"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8247"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8248"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8249"     ' prfx=^$ac_symprfx"
8250  else
8251    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8252  fi
8253  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8254
8255  # Check to see that the pipe works correctly.
8256  pipe_works=no
8257
8258  rm -f conftest*
8259  cat > conftest.$ac_ext <<_LT_EOF
8260#ifdef __cplusplus
8261extern "C" {
8262#endif
8263char nm_test_var;
8264void nm_test_func(void);
8265void nm_test_func(void){}
8266#ifdef __cplusplus
8267}
8268#endif
8269int main(){nm_test_var='a';nm_test_func();return(0);}
8270_LT_EOF
8271
8272  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8273  (eval $ac_compile) 2>&5
8274  ac_status=$?
8275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8276  test $ac_status = 0; }; then
8277    # Now try to grab the symbols.
8278    nlist=conftest.nm
8279    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8280    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8281      # Try sorting and uniquifying the output.
8282      if sort "$nlist" | uniq > "$nlist"T; then
8283	mv -f "$nlist"T "$nlist"
8284      else
8285	rm -f "$nlist"T
8286      fi
8287
8288      # Make sure that we snagged all the symbols we need.
8289      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8290	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8291	  cat <<_LT_EOF > conftest.$ac_ext
8292/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8293#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8294/* DATA imports from DLLs on WIN32 can't be const, because runtime
8295   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8296# define LT_DLSYM_CONST
8297#elif defined __osf__
8298/* This system does not cope well with relocations in const data.  */
8299# define LT_DLSYM_CONST
8300#else
8301# define LT_DLSYM_CONST const
8302#endif
8303
8304#ifdef __cplusplus
8305extern "C" {
8306#endif
8307
8308_LT_EOF
8309	  # Now generate the symbol file.
8310	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8311
8312	  cat <<_LT_EOF >> conftest.$ac_ext
8313
8314/* The mapping between symbol names and symbols.  */
8315LT_DLSYM_CONST struct {
8316  const char *name;
8317  void       *address;
8318}
8319lt__PROGRAM__LTX_preloaded_symbols[] =
8320{
8321  { "@PROGRAM@", (void *) 0 },
8322_LT_EOF
8323	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8324	  cat <<\_LT_EOF >> conftest.$ac_ext
8325  {0, (void *) 0}
8326};
8327
8328/* This works around a problem in FreeBSD linker */
8329#ifdef FREEBSD_WORKAROUND
8330static const void *lt_preloaded_setup() {
8331  return lt__PROGRAM__LTX_preloaded_symbols;
8332}
8333#endif
8334
8335#ifdef __cplusplus
8336}
8337#endif
8338_LT_EOF
8339	  # Now try linking the two files.
8340	  mv conftest.$ac_objext conftstm.$ac_objext
8341	  lt_globsym_save_LIBS=$LIBS
8342	  lt_globsym_save_CFLAGS=$CFLAGS
8343	  LIBS=conftstm.$ac_objext
8344	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8345	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8346  (eval $ac_link) 2>&5
8347  ac_status=$?
8348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8349  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8350	    pipe_works=yes
8351	  fi
8352	  LIBS=$lt_globsym_save_LIBS
8353	  CFLAGS=$lt_globsym_save_CFLAGS
8354	else
8355	  echo "cannot find nm_test_func in $nlist" >&5
8356	fi
8357      else
8358	echo "cannot find nm_test_var in $nlist" >&5
8359      fi
8360    else
8361      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8362    fi
8363  else
8364    echo "$progname: failed program was:" >&5
8365    cat conftest.$ac_ext >&5
8366  fi
8367  rm -rf conftest* conftst*
8368
8369  # Do not use the global_symbol_pipe unless it works.
8370  if test yes = "$pipe_works"; then
8371    break
8372  else
8373    lt_cv_sys_global_symbol_pipe=
8374  fi
8375done
8376
8377fi
8378
8379if test -z "$lt_cv_sys_global_symbol_pipe"; then
8380  lt_cv_sys_global_symbol_to_cdecl=
8381fi
8382if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8384$as_echo "failed" >&6; }
8385else
8386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8387$as_echo "ok" >&6; }
8388fi
8389
8390# Response file support.
8391if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8392  nm_file_list_spec='@'
8393elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8394  nm_file_list_spec='@'
8395fi
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8434$as_echo_n "checking for sysroot... " >&6; }
8435
8436# Check whether --with-sysroot was given.
8437if test "${with_sysroot+set}" = set; then :
8438  withval=$with_sysroot;
8439else
8440  with_sysroot=no
8441fi
8442
8443
8444lt_sysroot=
8445case $with_sysroot in #(
8446 yes)
8447   if test yes = "$GCC"; then
8448     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8449   fi
8450   ;; #(
8451 /*)
8452   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8453   ;; #(
8454 no|'')
8455   ;; #(
8456 *)
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8458$as_echo "$with_sysroot" >&6; }
8459   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8460   ;;
8461esac
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8464$as_echo "${lt_sysroot:-no}" >&6; }
8465
8466
8467
8468
8469
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8471$as_echo_n "checking for a working dd... " >&6; }
8472if ${ac_cv_path_lt_DD+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  printf 0123456789abcdef0123456789abcdef >conftest.i
8476cat conftest.i conftest.i >conftest2.i
8477: ${lt_DD:=$DD}
8478if test -z "$lt_DD"; then
8479  ac_path_lt_DD_found=false
8480  # Loop through the user's path and test for each of PROGNAME-LIST
8481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484  IFS=$as_save_IFS
8485  test -z "$as_dir" && as_dir=.
8486    for ac_prog in dd; do
8487    for ac_exec_ext in '' $ac_executable_extensions; do
8488      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8489      as_fn_executable_p "$ac_path_lt_DD" || continue
8490if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8491  cmp -s conftest.i conftest.out \
8492  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8493fi
8494      $ac_path_lt_DD_found && break 3
8495    done
8496  done
8497  done
8498IFS=$as_save_IFS
8499  if test -z "$ac_cv_path_lt_DD"; then
8500    :
8501  fi
8502else
8503  ac_cv_path_lt_DD=$lt_DD
8504fi
8505
8506rm -f conftest.i conftest2.i conftest.out
8507fi
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8509$as_echo "$ac_cv_path_lt_DD" >&6; }
8510
8511
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8513$as_echo_n "checking how to truncate binary pipes... " >&6; }
8514if ${lt_cv_truncate_bin+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  printf 0123456789abcdef0123456789abcdef >conftest.i
8518cat conftest.i conftest.i >conftest2.i
8519lt_cv_truncate_bin=
8520if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8521  cmp -s conftest.i conftest.out \
8522  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8523fi
8524rm -f conftest.i conftest2.i conftest.out
8525test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8526fi
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8528$as_echo "$lt_cv_truncate_bin" >&6; }
8529
8530
8531
8532
8533
8534
8535
8536# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8537func_cc_basename ()
8538{
8539    for cc_temp in $*""; do
8540      case $cc_temp in
8541        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8542        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8543        \-*) ;;
8544        *) break;;
8545      esac
8546    done
8547    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8548}
8549
8550# Check whether --enable-libtool-lock was given.
8551if test "${enable_libtool_lock+set}" = set; then :
8552  enableval=$enable_libtool_lock;
8553fi
8554
8555test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8556
8557# Some flags need to be propagated to the compiler or linker for good
8558# libtool support.
8559case $host in
8560ia64-*-hpux*)
8561  # Find out what ABI is being produced by ac_compile, and set mode
8562  # options accordingly.
8563  echo 'int i;' > conftest.$ac_ext
8564  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8565  (eval $ac_compile) 2>&5
8566  ac_status=$?
8567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8568  test $ac_status = 0; }; then
8569    case `/usr/bin/file conftest.$ac_objext` in
8570      *ELF-32*)
8571	HPUX_IA64_MODE=32
8572	;;
8573      *ELF-64*)
8574	HPUX_IA64_MODE=64
8575	;;
8576    esac
8577  fi
8578  rm -rf conftest*
8579  ;;
8580*-*-irix6*)
8581  # Find out what ABI is being produced by ac_compile, and set linker
8582  # options accordingly.
8583  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8585  (eval $ac_compile) 2>&5
8586  ac_status=$?
8587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8588  test $ac_status = 0; }; then
8589    if test yes = "$lt_cv_prog_gnu_ld"; then
8590      case `/usr/bin/file conftest.$ac_objext` in
8591	*32-bit*)
8592	  LD="${LD-ld} -melf32bsmip"
8593	  ;;
8594	*N32*)
8595	  LD="${LD-ld} -melf32bmipn32"
8596	  ;;
8597	*64-bit*)
8598	  LD="${LD-ld} -melf64bmip"
8599	;;
8600      esac
8601    else
8602      case `/usr/bin/file conftest.$ac_objext` in
8603	*32-bit*)
8604	  LD="${LD-ld} -32"
8605	  ;;
8606	*N32*)
8607	  LD="${LD-ld} -n32"
8608	  ;;
8609	*64-bit*)
8610	  LD="${LD-ld} -64"
8611	  ;;
8612      esac
8613    fi
8614  fi
8615  rm -rf conftest*
8616  ;;
8617
8618mips64*-*linux*)
8619  # Find out what ABI is being produced by ac_compile, and set linker
8620  # options accordingly.
8621  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8622  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8623  (eval $ac_compile) 2>&5
8624  ac_status=$?
8625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8626  test $ac_status = 0; }; then
8627    emul=elf
8628    case `/usr/bin/file conftest.$ac_objext` in
8629      *32-bit*)
8630	emul="${emul}32"
8631	;;
8632      *64-bit*)
8633	emul="${emul}64"
8634	;;
8635    esac
8636    case `/usr/bin/file conftest.$ac_objext` in
8637      *MSB*)
8638	emul="${emul}btsmip"
8639	;;
8640      *LSB*)
8641	emul="${emul}ltsmip"
8642	;;
8643    esac
8644    case `/usr/bin/file conftest.$ac_objext` in
8645      *N32*)
8646	emul="${emul}n32"
8647	;;
8648    esac
8649    LD="${LD-ld} -m $emul"
8650  fi
8651  rm -rf conftest*
8652  ;;
8653
8654x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8655s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8656  # Find out what ABI is being produced by ac_compile, and set linker
8657  # options accordingly.  Note that the listed cases only cover the
8658  # situations where additional linker options are needed (such as when
8659  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8660  # vice versa); the common cases where no linker options are needed do
8661  # not appear in the list.
8662  echo 'int i;' > conftest.$ac_ext
8663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8664  (eval $ac_compile) 2>&5
8665  ac_status=$?
8666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8667  test $ac_status = 0; }; then
8668    case `/usr/bin/file conftest.o` in
8669      *32-bit*)
8670	case $host in
8671	  x86_64-*kfreebsd*-gnu)
8672	    LD="${LD-ld} -m elf_i386_fbsd"
8673	    ;;
8674	  x86_64-*linux*)
8675	    case `/usr/bin/file conftest.o` in
8676	      *x86-64*)
8677		LD="${LD-ld} -m elf32_x86_64"
8678		;;
8679	      *)
8680		LD="${LD-ld} -m elf_i386"
8681		;;
8682	    esac
8683	    ;;
8684	  powerpc64le-*linux*)
8685	    LD="${LD-ld} -m elf32lppclinux"
8686	    ;;
8687	  powerpc64-*linux*)
8688	    LD="${LD-ld} -m elf32ppclinux"
8689	    ;;
8690	  s390x-*linux*)
8691	    LD="${LD-ld} -m elf_s390"
8692	    ;;
8693	  sparc64-*linux*)
8694	    LD="${LD-ld} -m elf32_sparc"
8695	    ;;
8696	esac
8697	;;
8698      *64-bit*)
8699	case $host in
8700	  x86_64-*kfreebsd*-gnu)
8701	    LD="${LD-ld} -m elf_x86_64_fbsd"
8702	    ;;
8703	  x86_64-*linux*)
8704	    LD="${LD-ld} -m elf_x86_64"
8705	    ;;
8706	  powerpcle-*linux*)
8707	    LD="${LD-ld} -m elf64lppc"
8708	    ;;
8709	  powerpc-*linux*)
8710	    LD="${LD-ld} -m elf64ppc"
8711	    ;;
8712	  s390*-*linux*|s390*-*tpf*)
8713	    LD="${LD-ld} -m elf64_s390"
8714	    ;;
8715	  sparc*-*linux*)
8716	    LD="${LD-ld} -m elf64_sparc"
8717	    ;;
8718	esac
8719	;;
8720    esac
8721  fi
8722  rm -rf conftest*
8723  ;;
8724
8725*-*-sco3.2v5*)
8726  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8727  SAVE_CFLAGS=$CFLAGS
8728  CFLAGS="$CFLAGS -belf"
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8730$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8731if ${lt_cv_cc_needs_belf+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  ac_ext=c
8735ac_cpp='$CPP $CPPFLAGS'
8736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739
8740     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742
8743int
8744main ()
8745{
8746
8747  ;
8748  return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_link "$LINENO"; then :
8752  lt_cv_cc_needs_belf=yes
8753else
8754  lt_cv_cc_needs_belf=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext \
8757    conftest$ac_exeext conftest.$ac_ext
8758     ac_ext=c
8759ac_cpp='$CPP $CPPFLAGS'
8760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762ac_compiler_gnu=$ac_cv_c_compiler_gnu
8763
8764fi
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8766$as_echo "$lt_cv_cc_needs_belf" >&6; }
8767  if test yes != "$lt_cv_cc_needs_belf"; then
8768    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8769    CFLAGS=$SAVE_CFLAGS
8770  fi
8771  ;;
8772*-*solaris*)
8773  # Find out what ABI is being produced by ac_compile, and set linker
8774  # options accordingly.
8775  echo 'int i;' > conftest.$ac_ext
8776  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8777  (eval $ac_compile) 2>&5
8778  ac_status=$?
8779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8780  test $ac_status = 0; }; then
8781    case `/usr/bin/file conftest.o` in
8782    *64-bit*)
8783      case $lt_cv_prog_gnu_ld in
8784      yes*)
8785        case $host in
8786        i?86-*-solaris*|x86_64-*-solaris*)
8787          LD="${LD-ld} -m elf_x86_64"
8788          ;;
8789        sparc*-*-solaris*)
8790          LD="${LD-ld} -m elf64_sparc"
8791          ;;
8792        esac
8793        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8794        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8795          LD=${LD-ld}_sol2
8796        fi
8797        ;;
8798      *)
8799	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8800	  LD="${LD-ld} -64"
8801	fi
8802	;;
8803      esac
8804      ;;
8805    esac
8806  fi
8807  rm -rf conftest*
8808  ;;
8809esac
8810
8811need_locks=$enable_libtool_lock
8812
8813if test -n "$ac_tool_prefix"; then
8814  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8815set dummy ${ac_tool_prefix}mt; ac_word=$2
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817$as_echo_n "checking for $ac_word... " >&6; }
8818if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  if test -n "$MANIFEST_TOOL"; then
8822  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827  IFS=$as_save_IFS
8828  test -z "$as_dir" && as_dir=.
8829    for ac_exec_ext in '' $ac_executable_extensions; do
8830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833    break 2
8834  fi
8835done
8836  done
8837IFS=$as_save_IFS
8838
8839fi
8840fi
8841MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8842if test -n "$MANIFEST_TOOL"; then
8843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8844$as_echo "$MANIFEST_TOOL" >&6; }
8845else
8846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848fi
8849
8850
8851fi
8852if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8853  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8854  # Extract the first word of "mt", so it can be a program name with args.
8855set dummy mt; ac_word=$2
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857$as_echo_n "checking for $ac_word... " >&6; }
8858if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  if test -n "$ac_ct_MANIFEST_TOOL"; then
8862  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8863else
8864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865for as_dir in $PATH
8866do
8867  IFS=$as_save_IFS
8868  test -z "$as_dir" && as_dir=.
8869    for ac_exec_ext in '' $ac_executable_extensions; do
8870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873    break 2
8874  fi
8875done
8876  done
8877IFS=$as_save_IFS
8878
8879fi
8880fi
8881ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8882if test -n "$ac_ct_MANIFEST_TOOL"; then
8883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8884$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8885else
8886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887$as_echo "no" >&6; }
8888fi
8889
8890  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8891    MANIFEST_TOOL=":"
8892  else
8893    case $cross_compiling:$ac_tool_warned in
8894yes:)
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8897ac_tool_warned=yes ;;
8898esac
8899    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8900  fi
8901else
8902  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8903fi
8904
8905test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8907$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8908if ${lt_cv_path_mainfest_tool+:} false; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  lt_cv_path_mainfest_tool=no
8912  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8913  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8914  cat conftest.err >&5
8915  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8916    lt_cv_path_mainfest_tool=yes
8917  fi
8918  rm -f conftest*
8919fi
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8921$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8922if test yes != "$lt_cv_path_mainfest_tool"; then
8923  MANIFEST_TOOL=:
8924fi
8925
8926
8927
8928
8929
8930
8931  case $host_os in
8932    rhapsody* | darwin*)
8933    if test -n "$ac_tool_prefix"; then
8934  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8935set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937$as_echo_n "checking for $ac_word... " >&6; }
8938if ${ac_cv_prog_DSYMUTIL+:} false; then :
8939  $as_echo_n "(cached) " >&6
8940else
8941  if test -n "$DSYMUTIL"; then
8942  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8943else
8944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945for as_dir in $PATH
8946do
8947  IFS=$as_save_IFS
8948  test -z "$as_dir" && as_dir=.
8949    for ac_exec_ext in '' $ac_executable_extensions; do
8950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953    break 2
8954  fi
8955done
8956  done
8957IFS=$as_save_IFS
8958
8959fi
8960fi
8961DSYMUTIL=$ac_cv_prog_DSYMUTIL
8962if test -n "$DSYMUTIL"; then
8963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8964$as_echo "$DSYMUTIL" >&6; }
8965else
8966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967$as_echo "no" >&6; }
8968fi
8969
8970
8971fi
8972if test -z "$ac_cv_prog_DSYMUTIL"; then
8973  ac_ct_DSYMUTIL=$DSYMUTIL
8974  # Extract the first word of "dsymutil", so it can be a program name with args.
8975set dummy dsymutil; ac_word=$2
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977$as_echo_n "checking for $ac_word... " >&6; }
8978if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8979  $as_echo_n "(cached) " >&6
8980else
8981  if test -n "$ac_ct_DSYMUTIL"; then
8982  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8983else
8984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985for as_dir in $PATH
8986do
8987  IFS=$as_save_IFS
8988  test -z "$as_dir" && as_dir=.
8989    for ac_exec_ext in '' $ac_executable_extensions; do
8990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993    break 2
8994  fi
8995done
8996  done
8997IFS=$as_save_IFS
8998
8999fi
9000fi
9001ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9002if test -n "$ac_ct_DSYMUTIL"; then
9003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9004$as_echo "$ac_ct_DSYMUTIL" >&6; }
9005else
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007$as_echo "no" >&6; }
9008fi
9009
9010  if test "x$ac_ct_DSYMUTIL" = x; then
9011    DSYMUTIL=":"
9012  else
9013    case $cross_compiling:$ac_tool_warned in
9014yes:)
9015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9017ac_tool_warned=yes ;;
9018esac
9019    DSYMUTIL=$ac_ct_DSYMUTIL
9020  fi
9021else
9022  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9023fi
9024
9025    if test -n "$ac_tool_prefix"; then
9026  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9027set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029$as_echo_n "checking for $ac_word... " >&6; }
9030if ${ac_cv_prog_NMEDIT+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  if test -n "$NMEDIT"; then
9034  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9035else
9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037for as_dir in $PATH
9038do
9039  IFS=$as_save_IFS
9040  test -z "$as_dir" && as_dir=.
9041    for ac_exec_ext in '' $ac_executable_extensions; do
9042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9043    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045    break 2
9046  fi
9047done
9048  done
9049IFS=$as_save_IFS
9050
9051fi
9052fi
9053NMEDIT=$ac_cv_prog_NMEDIT
9054if test -n "$NMEDIT"; then
9055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9056$as_echo "$NMEDIT" >&6; }
9057else
9058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059$as_echo "no" >&6; }
9060fi
9061
9062
9063fi
9064if test -z "$ac_cv_prog_NMEDIT"; then
9065  ac_ct_NMEDIT=$NMEDIT
9066  # Extract the first word of "nmedit", so it can be a program name with args.
9067set dummy nmedit; ac_word=$2
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069$as_echo_n "checking for $ac_word... " >&6; }
9070if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9071  $as_echo_n "(cached) " >&6
9072else
9073  if test -n "$ac_ct_NMEDIT"; then
9074  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9075else
9076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077for as_dir in $PATH
9078do
9079  IFS=$as_save_IFS
9080  test -z "$as_dir" && as_dir=.
9081    for ac_exec_ext in '' $ac_executable_extensions; do
9082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085    break 2
9086  fi
9087done
9088  done
9089IFS=$as_save_IFS
9090
9091fi
9092fi
9093ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9094if test -n "$ac_ct_NMEDIT"; then
9095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9096$as_echo "$ac_ct_NMEDIT" >&6; }
9097else
9098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
9100fi
9101
9102  if test "x$ac_ct_NMEDIT" = x; then
9103    NMEDIT=":"
9104  else
9105    case $cross_compiling:$ac_tool_warned in
9106yes:)
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9109ac_tool_warned=yes ;;
9110esac
9111    NMEDIT=$ac_ct_NMEDIT
9112  fi
9113else
9114  NMEDIT="$ac_cv_prog_NMEDIT"
9115fi
9116
9117    if test -n "$ac_tool_prefix"; then
9118  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9119set dummy ${ac_tool_prefix}lipo; ac_word=$2
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121$as_echo_n "checking for $ac_word... " >&6; }
9122if ${ac_cv_prog_LIPO+:} false; then :
9123  $as_echo_n "(cached) " >&6
9124else
9125  if test -n "$LIPO"; then
9126  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9127else
9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131  IFS=$as_save_IFS
9132  test -z "$as_dir" && as_dir=.
9133    for ac_exec_ext in '' $ac_executable_extensions; do
9134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137    break 2
9138  fi
9139done
9140  done
9141IFS=$as_save_IFS
9142
9143fi
9144fi
9145LIPO=$ac_cv_prog_LIPO
9146if test -n "$LIPO"; then
9147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9148$as_echo "$LIPO" >&6; }
9149else
9150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151$as_echo "no" >&6; }
9152fi
9153
9154
9155fi
9156if test -z "$ac_cv_prog_LIPO"; then
9157  ac_ct_LIPO=$LIPO
9158  # Extract the first word of "lipo", so it can be a program name with args.
9159set dummy lipo; ac_word=$2
9160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161$as_echo_n "checking for $ac_word... " >&6; }
9162if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9163  $as_echo_n "(cached) " >&6
9164else
9165  if test -n "$ac_ct_LIPO"; then
9166  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9167else
9168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169for as_dir in $PATH
9170do
9171  IFS=$as_save_IFS
9172  test -z "$as_dir" && as_dir=.
9173    for ac_exec_ext in '' $ac_executable_extensions; do
9174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9175    ac_cv_prog_ac_ct_LIPO="lipo"
9176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177    break 2
9178  fi
9179done
9180  done
9181IFS=$as_save_IFS
9182
9183fi
9184fi
9185ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9186if test -n "$ac_ct_LIPO"; then
9187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9188$as_echo "$ac_ct_LIPO" >&6; }
9189else
9190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191$as_echo "no" >&6; }
9192fi
9193
9194  if test "x$ac_ct_LIPO" = x; then
9195    LIPO=":"
9196  else
9197    case $cross_compiling:$ac_tool_warned in
9198yes:)
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9201ac_tool_warned=yes ;;
9202esac
9203    LIPO=$ac_ct_LIPO
9204  fi
9205else
9206  LIPO="$ac_cv_prog_LIPO"
9207fi
9208
9209    if test -n "$ac_tool_prefix"; then
9210  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9211set dummy ${ac_tool_prefix}otool; ac_word=$2
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213$as_echo_n "checking for $ac_word... " >&6; }
9214if ${ac_cv_prog_OTOOL+:} false; then :
9215  $as_echo_n "(cached) " >&6
9216else
9217  if test -n "$OTOOL"; then
9218  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9219else
9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221for as_dir in $PATH
9222do
9223  IFS=$as_save_IFS
9224  test -z "$as_dir" && as_dir=.
9225    for ac_exec_ext in '' $ac_executable_extensions; do
9226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229    break 2
9230  fi
9231done
9232  done
9233IFS=$as_save_IFS
9234
9235fi
9236fi
9237OTOOL=$ac_cv_prog_OTOOL
9238if test -n "$OTOOL"; then
9239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9240$as_echo "$OTOOL" >&6; }
9241else
9242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243$as_echo "no" >&6; }
9244fi
9245
9246
9247fi
9248if test -z "$ac_cv_prog_OTOOL"; then
9249  ac_ct_OTOOL=$OTOOL
9250  # Extract the first word of "otool", so it can be a program name with args.
9251set dummy otool; ac_word=$2
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253$as_echo_n "checking for $ac_word... " >&6; }
9254if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9255  $as_echo_n "(cached) " >&6
9256else
9257  if test -n "$ac_ct_OTOOL"; then
9258  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9259else
9260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261for as_dir in $PATH
9262do
9263  IFS=$as_save_IFS
9264  test -z "$as_dir" && as_dir=.
9265    for ac_exec_ext in '' $ac_executable_extensions; do
9266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9267    ac_cv_prog_ac_ct_OTOOL="otool"
9268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269    break 2
9270  fi
9271done
9272  done
9273IFS=$as_save_IFS
9274
9275fi
9276fi
9277ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9278if test -n "$ac_ct_OTOOL"; then
9279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9280$as_echo "$ac_ct_OTOOL" >&6; }
9281else
9282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283$as_echo "no" >&6; }
9284fi
9285
9286  if test "x$ac_ct_OTOOL" = x; then
9287    OTOOL=":"
9288  else
9289    case $cross_compiling:$ac_tool_warned in
9290yes:)
9291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9293ac_tool_warned=yes ;;
9294esac
9295    OTOOL=$ac_ct_OTOOL
9296  fi
9297else
9298  OTOOL="$ac_cv_prog_OTOOL"
9299fi
9300
9301    if test -n "$ac_tool_prefix"; then
9302  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9303set dummy ${ac_tool_prefix}otool64; ac_word=$2
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305$as_echo_n "checking for $ac_word... " >&6; }
9306if ${ac_cv_prog_OTOOL64+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  if test -n "$OTOOL64"; then
9310  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9311else
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315  IFS=$as_save_IFS
9316  test -z "$as_dir" && as_dir=.
9317    for ac_exec_ext in '' $ac_executable_extensions; do
9318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9319    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321    break 2
9322  fi
9323done
9324  done
9325IFS=$as_save_IFS
9326
9327fi
9328fi
9329OTOOL64=$ac_cv_prog_OTOOL64
9330if test -n "$OTOOL64"; then
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9332$as_echo "$OTOOL64" >&6; }
9333else
9334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335$as_echo "no" >&6; }
9336fi
9337
9338
9339fi
9340if test -z "$ac_cv_prog_OTOOL64"; then
9341  ac_ct_OTOOL64=$OTOOL64
9342  # Extract the first word of "otool64", so it can be a program name with args.
9343set dummy otool64; ac_word=$2
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345$as_echo_n "checking for $ac_word... " >&6; }
9346if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  if test -n "$ac_ct_OTOOL64"; then
9350  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9351else
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355  IFS=$as_save_IFS
9356  test -z "$as_dir" && as_dir=.
9357    for ac_exec_ext in '' $ac_executable_extensions; do
9358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359    ac_cv_prog_ac_ct_OTOOL64="otool64"
9360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361    break 2
9362  fi
9363done
9364  done
9365IFS=$as_save_IFS
9366
9367fi
9368fi
9369ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9370if test -n "$ac_ct_OTOOL64"; then
9371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9372$as_echo "$ac_ct_OTOOL64" >&6; }
9373else
9374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
9376fi
9377
9378  if test "x$ac_ct_OTOOL64" = x; then
9379    OTOOL64=":"
9380  else
9381    case $cross_compiling:$ac_tool_warned in
9382yes:)
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9385ac_tool_warned=yes ;;
9386esac
9387    OTOOL64=$ac_ct_OTOOL64
9388  fi
9389else
9390  OTOOL64="$ac_cv_prog_OTOOL64"
9391fi
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9420$as_echo_n "checking for -single_module linker flag... " >&6; }
9421if ${lt_cv_apple_cc_single_mod+:} false; then :
9422  $as_echo_n "(cached) " >&6
9423else
9424  lt_cv_apple_cc_single_mod=no
9425      if test -z "$LT_MULTI_MODULE"; then
9426	# By default we will add the -single_module flag. You can override
9427	# by either setting the environment variable LT_MULTI_MODULE
9428	# non-empty at configure time, or by adding -multi_module to the
9429	# link flags.
9430	rm -rf libconftest.dylib*
9431	echo "int foo(void){return 1;}" > conftest.c
9432	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9433-dynamiclib -Wl,-single_module conftest.c" >&5
9434	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9435	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9436        _lt_result=$?
9437	# If there is a non-empty error log, and "single_module"
9438	# appears in it, assume the flag caused a linker warning
9439        if test -s conftest.err && $GREP single_module conftest.err; then
9440	  cat conftest.err >&5
9441	# Otherwise, if the output was created with a 0 exit code from
9442	# the compiler, it worked.
9443	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9444	  lt_cv_apple_cc_single_mod=yes
9445	else
9446	  cat conftest.err >&5
9447	fi
9448	rm -rf libconftest.dylib*
9449	rm -f conftest.*
9450      fi
9451fi
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9453$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9454
9455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9456$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9457if ${lt_cv_ld_exported_symbols_list+:} false; then :
9458  $as_echo_n "(cached) " >&6
9459else
9460  lt_cv_ld_exported_symbols_list=no
9461      save_LDFLAGS=$LDFLAGS
9462      echo "_main" > conftest.sym
9463      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9464      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466
9467int
9468main ()
9469{
9470
9471  ;
9472  return 0;
9473}
9474_ACEOF
9475if ac_fn_c_try_link "$LINENO"; then :
9476  lt_cv_ld_exported_symbols_list=yes
9477else
9478  lt_cv_ld_exported_symbols_list=no
9479fi
9480rm -f core conftest.err conftest.$ac_objext \
9481    conftest$ac_exeext conftest.$ac_ext
9482	LDFLAGS=$save_LDFLAGS
9483
9484fi
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9486$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9487
9488    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9489$as_echo_n "checking for -force_load linker flag... " >&6; }
9490if ${lt_cv_ld_force_load+:} false; then :
9491  $as_echo_n "(cached) " >&6
9492else
9493  lt_cv_ld_force_load=no
9494      cat > conftest.c << _LT_EOF
9495int forced_loaded() { return 2;}
9496_LT_EOF
9497      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9498      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9499      echo "$AR cru libconftest.a conftest.o" >&5
9500      $AR cru libconftest.a conftest.o 2>&5
9501      echo "$RANLIB libconftest.a" >&5
9502      $RANLIB libconftest.a 2>&5
9503      cat > conftest.c << _LT_EOF
9504int main() { return 0;}
9505_LT_EOF
9506      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9507      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9508      _lt_result=$?
9509      if test -s conftest.err && $GREP force_load conftest.err; then
9510	cat conftest.err >&5
9511      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9512	lt_cv_ld_force_load=yes
9513      else
9514	cat conftest.err >&5
9515      fi
9516        rm -f conftest.err libconftest.a conftest conftest.c
9517        rm -rf conftest.dSYM
9518
9519fi
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9521$as_echo "$lt_cv_ld_force_load" >&6; }
9522    case $host_os in
9523    rhapsody* | darwin1.[012])
9524      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9525    darwin1.*)
9526      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9527    darwin*) # darwin 5.x on
9528      # if running on 10.5 or later, the deployment target defaults
9529      # to the OS version, if on x86, and 10.4, the deployment
9530      # target defaults to 10.4. Don't you love it?
9531      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9532	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9533	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9534	10.[012][,.]*)
9535	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9536	10.*)
9537	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9538      esac
9539    ;;
9540  esac
9541    if test yes = "$lt_cv_apple_cc_single_mod"; then
9542      _lt_dar_single_mod='$single_module'
9543    fi
9544    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9545      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9546    else
9547      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9548    fi
9549    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9550      _lt_dsymutil='~$DSYMUTIL $lib || :'
9551    else
9552      _lt_dsymutil=
9553    fi
9554    ;;
9555  esac
9556
9557# func_munge_path_list VARIABLE PATH
9558# -----------------------------------
9559# VARIABLE is name of variable containing _space_ separated list of
9560# directories to be munged by the contents of PATH, which is string
9561# having a format:
9562# "DIR[:DIR]:"
9563#       string "DIR[ DIR]" will be prepended to VARIABLE
9564# ":DIR[:DIR]"
9565#       string "DIR[ DIR]" will be appended to VARIABLE
9566# "DIRP[:DIRP]::[DIRA:]DIRA"
9567#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9568#       "DIRA[ DIRA]" will be appended to VARIABLE
9569# "DIR[:DIR]"
9570#       VARIABLE will be replaced by "DIR[ DIR]"
9571func_munge_path_list ()
9572{
9573    case x$2 in
9574    x)
9575        ;;
9576    *:)
9577        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9578        ;;
9579    x:*)
9580        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9581        ;;
9582    *::*)
9583        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9584        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9585        ;;
9586    *)
9587        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9588        ;;
9589    esac
9590}
9591
9592for ac_header in dlfcn.h
9593do :
9594  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9595"
9596if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9597  cat >>confdefs.h <<_ACEOF
9598#define HAVE_DLFCN_H 1
9599_ACEOF
9600
9601fi
9602
9603done
9604
9605
9606
9607
9608func_stripname_cnf ()
9609{
9610  case $2 in
9611  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9612  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9613  esac
9614} # func_stripname_cnf
9615
9616
9617
9618
9619
9620# Set options
9621# Check whether --enable-static was given.
9622if test "${enable_static+set}" = set; then :
9623  enableval=$enable_static; p=${PACKAGE-default}
9624    case $enableval in
9625    yes) enable_static=yes ;;
9626    no) enable_static=no ;;
9627    *)
9628     enable_static=no
9629      # Look at the argument we got.  We use all the common list separators.
9630      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9631      for pkg in $enableval; do
9632	IFS=$lt_save_ifs
9633	if test "X$pkg" = "X$p"; then
9634	  enable_static=yes
9635	fi
9636      done
9637      IFS=$lt_save_ifs
9638      ;;
9639    esac
9640else
9641  enable_static=no
9642fi
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653        enable_dlopen=no
9654
9655
9656  enable_win32_dll=no
9657
9658
9659            # Check whether --enable-shared was given.
9660if test "${enable_shared+set}" = set; then :
9661  enableval=$enable_shared; p=${PACKAGE-default}
9662    case $enableval in
9663    yes) enable_shared=yes ;;
9664    no) enable_shared=no ;;
9665    *)
9666      enable_shared=no
9667      # Look at the argument we got.  We use all the common list separators.
9668      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9669      for pkg in $enableval; do
9670	IFS=$lt_save_ifs
9671	if test "X$pkg" = "X$p"; then
9672	  enable_shared=yes
9673	fi
9674      done
9675      IFS=$lt_save_ifs
9676      ;;
9677    esac
9678else
9679  enable_shared=yes
9680fi
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692# Check whether --with-pic was given.
9693if test "${with_pic+set}" = set; then :
9694  withval=$with_pic; lt_p=${PACKAGE-default}
9695    case $withval in
9696    yes|no) pic_mode=$withval ;;
9697    *)
9698      pic_mode=default
9699      # Look at the argument we got.  We use all the common list separators.
9700      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9701      for lt_pkg in $withval; do
9702	IFS=$lt_save_ifs
9703	if test "X$lt_pkg" = "X$lt_p"; then
9704	  pic_mode=yes
9705	fi
9706      done
9707      IFS=$lt_save_ifs
9708      ;;
9709    esac
9710else
9711  pic_mode=default
9712fi
9713
9714
9715
9716
9717
9718
9719
9720
9721  # Check whether --enable-fast-install was given.
9722if test "${enable_fast_install+set}" = set; then :
9723  enableval=$enable_fast_install; p=${PACKAGE-default}
9724    case $enableval in
9725    yes) enable_fast_install=yes ;;
9726    no) enable_fast_install=no ;;
9727    *)
9728      enable_fast_install=no
9729      # Look at the argument we got.  We use all the common list separators.
9730      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9731      for pkg in $enableval; do
9732	IFS=$lt_save_ifs
9733	if test "X$pkg" = "X$p"; then
9734	  enable_fast_install=yes
9735	fi
9736      done
9737      IFS=$lt_save_ifs
9738      ;;
9739    esac
9740else
9741  enable_fast_install=yes
9742fi
9743
9744
9745
9746
9747
9748
9749
9750
9751  shared_archive_member_spec=
9752case $host,$enable_shared in
9753power*-*-aix[5-9]*,yes)
9754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9755$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9756
9757# Check whether --with-aix-soname was given.
9758if test "${with_aix_soname+set}" = set; then :
9759  withval=$with_aix_soname; case $withval in
9760    aix|svr4|both)
9761      ;;
9762    *)
9763      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9764      ;;
9765    esac
9766    lt_cv_with_aix_soname=$with_aix_soname
9767else
9768  if ${lt_cv_with_aix_soname+:} false; then :
9769  $as_echo_n "(cached) " >&6
9770else
9771  lt_cv_with_aix_soname=aix
9772fi
9773
9774    with_aix_soname=$lt_cv_with_aix_soname
9775fi
9776
9777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9778$as_echo "$with_aix_soname" >&6; }
9779  if test aix != "$with_aix_soname"; then
9780    # For the AIX way of multilib, we name the shared archive member
9781    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9782    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9783    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9784    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9785    if test 64 = "${OBJECT_MODE-32}"; then
9786      shared_archive_member_spec=shr_64
9787    else
9788      shared_archive_member_spec=shr
9789    fi
9790  fi
9791  ;;
9792*)
9793  with_aix_soname=aix
9794  ;;
9795esac
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806# This can be used to rebuild libtool when needed
9807LIBTOOL_DEPS=$ltmain
9808
9809# Always use our own libtool.
9810LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841test -z "$LN_S" && LN_S="ln -s"
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856if test -n "${ZSH_VERSION+set}"; then
9857   setopt NO_GLOB_SUBST
9858fi
9859
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9861$as_echo_n "checking for objdir... " >&6; }
9862if ${lt_cv_objdir+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  rm -f .libs 2>/dev/null
9866mkdir .libs 2>/dev/null
9867if test -d .libs; then
9868  lt_cv_objdir=.libs
9869else
9870  # MS-DOS does not allow filenames that begin with a dot.
9871  lt_cv_objdir=_libs
9872fi
9873rmdir .libs 2>/dev/null
9874fi
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9876$as_echo "$lt_cv_objdir" >&6; }
9877objdir=$lt_cv_objdir
9878
9879
9880
9881
9882
9883cat >>confdefs.h <<_ACEOF
9884#define LT_OBJDIR "$lt_cv_objdir/"
9885_ACEOF
9886
9887
9888
9889
9890case $host_os in
9891aix3*)
9892  # AIX sometimes has problems with the GCC collect2 program.  For some
9893  # reason, if we set the COLLECT_NAMES environment variable, the problems
9894  # vanish in a puff of smoke.
9895  if test set != "${COLLECT_NAMES+set}"; then
9896    COLLECT_NAMES=
9897    export COLLECT_NAMES
9898  fi
9899  ;;
9900esac
9901
9902# Global variables:
9903ofile=libtool
9904can_build_shared=yes
9905
9906# All known linkers require a '.a' archive for static linking (except MSVC,
9907# which needs '.lib').
9908libext=a
9909
9910with_gnu_ld=$lt_cv_prog_gnu_ld
9911
9912old_CC=$CC
9913old_CFLAGS=$CFLAGS
9914
9915# Set sane defaults for various variables
9916test -z "$CC" && CC=cc
9917test -z "$LTCC" && LTCC=$CC
9918test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9919test -z "$LD" && LD=ld
9920test -z "$ac_objext" && ac_objext=o
9921
9922func_cc_basename $compiler
9923cc_basename=$func_cc_basename_result
9924
9925
9926# Only perform the check for file, if the check method requires it
9927test -z "$MAGIC_CMD" && MAGIC_CMD=file
9928case $deplibs_check_method in
9929file_magic*)
9930  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9932$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9933if ${lt_cv_path_MAGIC_CMD+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  case $MAGIC_CMD in
9937[\\/*] |  ?:[\\/]*)
9938  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9939  ;;
9940*)
9941  lt_save_MAGIC_CMD=$MAGIC_CMD
9942  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9943  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9944  for ac_dir in $ac_dummy; do
9945    IFS=$lt_save_ifs
9946    test -z "$ac_dir" && ac_dir=.
9947    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9948      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9949      if test -n "$file_magic_test_file"; then
9950	case $deplibs_check_method in
9951	"file_magic "*)
9952	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9953	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9954	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9955	    $EGREP "$file_magic_regex" > /dev/null; then
9956	    :
9957	  else
9958	    cat <<_LT_EOF 1>&2
9959
9960*** Warning: the command libtool uses to detect shared libraries,
9961*** $file_magic_cmd, produces output that libtool cannot recognize.
9962*** The result is that libtool may fail to recognize shared libraries
9963*** as such.  This will affect the creation of libtool libraries that
9964*** depend on shared libraries, but programs linked with such libtool
9965*** libraries will work regardless of this problem.  Nevertheless, you
9966*** may want to report the problem to your system manager and/or to
9967*** bug-libtool@gnu.org
9968
9969_LT_EOF
9970	  fi ;;
9971	esac
9972      fi
9973      break
9974    fi
9975  done
9976  IFS=$lt_save_ifs
9977  MAGIC_CMD=$lt_save_MAGIC_CMD
9978  ;;
9979esac
9980fi
9981
9982MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9983if test -n "$MAGIC_CMD"; then
9984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9985$as_echo "$MAGIC_CMD" >&6; }
9986else
9987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988$as_echo "no" >&6; }
9989fi
9990
9991
9992
9993
9994
9995if test -z "$lt_cv_path_MAGIC_CMD"; then
9996  if test -n "$ac_tool_prefix"; then
9997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9998$as_echo_n "checking for file... " >&6; }
9999if ${lt_cv_path_MAGIC_CMD+:} false; then :
10000  $as_echo_n "(cached) " >&6
10001else
10002  case $MAGIC_CMD in
10003[\\/*] |  ?:[\\/]*)
10004  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10005  ;;
10006*)
10007  lt_save_MAGIC_CMD=$MAGIC_CMD
10008  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10009  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10010  for ac_dir in $ac_dummy; do
10011    IFS=$lt_save_ifs
10012    test -z "$ac_dir" && ac_dir=.
10013    if test -f "$ac_dir/file"; then
10014      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10015      if test -n "$file_magic_test_file"; then
10016	case $deplibs_check_method in
10017	"file_magic "*)
10018	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10019	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10020	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10021	    $EGREP "$file_magic_regex" > /dev/null; then
10022	    :
10023	  else
10024	    cat <<_LT_EOF 1>&2
10025
10026*** Warning: the command libtool uses to detect shared libraries,
10027*** $file_magic_cmd, produces output that libtool cannot recognize.
10028*** The result is that libtool may fail to recognize shared libraries
10029*** as such.  This will affect the creation of libtool libraries that
10030*** depend on shared libraries, but programs linked with such libtool
10031*** libraries will work regardless of this problem.  Nevertheless, you
10032*** may want to report the problem to your system manager and/or to
10033*** bug-libtool@gnu.org
10034
10035_LT_EOF
10036	  fi ;;
10037	esac
10038      fi
10039      break
10040    fi
10041  done
10042  IFS=$lt_save_ifs
10043  MAGIC_CMD=$lt_save_MAGIC_CMD
10044  ;;
10045esac
10046fi
10047
10048MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10049if test -n "$MAGIC_CMD"; then
10050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10051$as_echo "$MAGIC_CMD" >&6; }
10052else
10053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054$as_echo "no" >&6; }
10055fi
10056
10057
10058  else
10059    MAGIC_CMD=:
10060  fi
10061fi
10062
10063  fi
10064  ;;
10065esac
10066
10067# Use C for the default configuration in the libtool script
10068
10069lt_save_CC=$CC
10070ac_ext=c
10071ac_cpp='$CPP $CPPFLAGS'
10072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074ac_compiler_gnu=$ac_cv_c_compiler_gnu
10075
10076
10077# Source file extension for C test sources.
10078ac_ext=c
10079
10080# Object file extension for compiled C test sources.
10081objext=o
10082objext=$objext
10083
10084# Code to be used in simple compile tests
10085lt_simple_compile_test_code="int some_variable = 0;"
10086
10087# Code to be used in simple link tests
10088lt_simple_link_test_code='int main(){return(0);}'
10089
10090
10091
10092
10093
10094
10095
10096# If no C compiler was specified, use CC.
10097LTCC=${LTCC-"$CC"}
10098
10099# If no C compiler flags were specified, use CFLAGS.
10100LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10101
10102# Allow CC to be a program name with arguments.
10103compiler=$CC
10104
10105# Save the default compiler, since it gets overwritten when the other
10106# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10107compiler_DEFAULT=$CC
10108
10109# save warnings/boilerplate of simple test code
10110ac_outfile=conftest.$ac_objext
10111echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10112eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10113_lt_compiler_boilerplate=`cat conftest.err`
10114$RM conftest*
10115
10116ac_outfile=conftest.$ac_objext
10117echo "$lt_simple_link_test_code" >conftest.$ac_ext
10118eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10119_lt_linker_boilerplate=`cat conftest.err`
10120$RM -r conftest*
10121
10122
10123## CAVEAT EMPTOR:
10124## There is no encapsulation within the following macros, do not change
10125## the running order or otherwise move them around unless you know exactly
10126## what you are doing...
10127if test -n "$compiler"; then
10128
10129lt_prog_compiler_no_builtin_flag=
10130
10131if test yes = "$GCC"; then
10132  case $cc_basename in
10133  nvcc*)
10134    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10135  *)
10136    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10137  esac
10138
10139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10140$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10141if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  lt_cv_prog_compiler_rtti_exceptions=no
10145   ac_outfile=conftest.$ac_objext
10146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10147   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10148   # Insert the option either (1) after the last *FLAGS variable, or
10149   # (2) before a word containing "conftest.", or (3) at the end.
10150   # Note that $ac_compile itself does not contain backslashes and begins
10151   # with a dollar sign (not a hyphen), so the echo should work correctly.
10152   # The option is referenced via a variable to avoid confusing sed.
10153   lt_compile=`echo "$ac_compile" | $SED \
10154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10156   -e 's:$: $lt_compiler_flag:'`
10157   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10158   (eval "$lt_compile" 2>conftest.err)
10159   ac_status=$?
10160   cat conftest.err >&5
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   if (exit $ac_status) && test -s "$ac_outfile"; then
10163     # The compiler can only warn and ignore the option if not recognized
10164     # So say no if there are warnings other than the usual output.
10165     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10168       lt_cv_prog_compiler_rtti_exceptions=yes
10169     fi
10170   fi
10171   $RM conftest*
10172
10173fi
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10175$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10176
10177if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10178    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10179else
10180    :
10181fi
10182
10183fi
10184
10185
10186
10187
10188
10189
10190  lt_prog_compiler_wl=
10191lt_prog_compiler_pic=
10192lt_prog_compiler_static=
10193
10194
10195  if test yes = "$GCC"; then
10196    lt_prog_compiler_wl='-Wl,'
10197    lt_prog_compiler_static='-static'
10198
10199    case $host_os in
10200      aix*)
10201      # All AIX code is PIC.
10202      if test ia64 = "$host_cpu"; then
10203	# AIX 5 now supports IA64 processor
10204	lt_prog_compiler_static='-Bstatic'
10205      fi
10206      lt_prog_compiler_pic='-fPIC'
10207      ;;
10208
10209    amigaos*)
10210      case $host_cpu in
10211      powerpc)
10212            # see comment about AmigaOS4 .so support
10213            lt_prog_compiler_pic='-fPIC'
10214        ;;
10215      m68k)
10216            # FIXME: we need at least 68020 code to build shared libraries, but
10217            # adding the '-m68020' flag to GCC prevents building anything better,
10218            # like '-m68040'.
10219            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10220        ;;
10221      esac
10222      ;;
10223
10224    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10225      # PIC is the default for these OSes.
10226      ;;
10227
10228    mingw* | cygwin* | pw32* | os2* | cegcc*)
10229      # This hack is so that the source file can tell whether it is being
10230      # built for inclusion in a dll (and should export symbols for example).
10231      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10232      # (--disable-auto-import) libraries
10233      lt_prog_compiler_pic='-DDLL_EXPORT'
10234      case $host_os in
10235      os2*)
10236	lt_prog_compiler_static='$wl-static'
10237	;;
10238      esac
10239      ;;
10240
10241    darwin* | rhapsody*)
10242      # PIC is the default on this platform
10243      # Common symbols not allowed in MH_DYLIB files
10244      lt_prog_compiler_pic='-fno-common'
10245      ;;
10246
10247    haiku*)
10248      # PIC is the default for Haiku.
10249      # The "-static" flag exists, but is broken.
10250      lt_prog_compiler_static=
10251      ;;
10252
10253    hpux*)
10254      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10255      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10256      # sets the default TLS model and affects inlining.
10257      case $host_cpu in
10258      hppa*64*)
10259	# +Z the default
10260	;;
10261      *)
10262	lt_prog_compiler_pic='-fPIC'
10263	;;
10264      esac
10265      ;;
10266
10267    interix[3-9]*)
10268      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10269      # Instead, we relocate shared libraries at runtime.
10270      ;;
10271
10272    msdosdjgpp*)
10273      # Just because we use GCC doesn't mean we suddenly get shared libraries
10274      # on systems that don't support them.
10275      lt_prog_compiler_can_build_shared=no
10276      enable_shared=no
10277      ;;
10278
10279    *nto* | *qnx*)
10280      # QNX uses GNU C++, but need to define -shared option too, otherwise
10281      # it will coredump.
10282      lt_prog_compiler_pic='-fPIC -shared'
10283      ;;
10284
10285    sysv4*MP*)
10286      if test -d /usr/nec; then
10287	lt_prog_compiler_pic=-Kconform_pic
10288      fi
10289      ;;
10290
10291    *)
10292      lt_prog_compiler_pic='-fPIC'
10293      ;;
10294    esac
10295
10296    case $cc_basename in
10297    nvcc*) # Cuda Compiler Driver 2.2
10298      lt_prog_compiler_wl='-Xlinker '
10299      if test -n "$lt_prog_compiler_pic"; then
10300        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10301      fi
10302      ;;
10303    esac
10304  else
10305    # PORTME Check for flag to pass linker flags through the system compiler.
10306    case $host_os in
10307    aix*)
10308      lt_prog_compiler_wl='-Wl,'
10309      if test ia64 = "$host_cpu"; then
10310	# AIX 5 now supports IA64 processor
10311	lt_prog_compiler_static='-Bstatic'
10312      else
10313	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10314      fi
10315      ;;
10316
10317    darwin* | rhapsody*)
10318      # PIC is the default on this platform
10319      # Common symbols not allowed in MH_DYLIB files
10320      lt_prog_compiler_pic='-fno-common'
10321      case $cc_basename in
10322      nagfor*)
10323        # NAG Fortran compiler
10324        lt_prog_compiler_wl='-Wl,-Wl,,'
10325        lt_prog_compiler_pic='-PIC'
10326        lt_prog_compiler_static='-Bstatic'
10327        ;;
10328      esac
10329      ;;
10330
10331    mingw* | cygwin* | pw32* | os2* | cegcc*)
10332      # This hack is so that the source file can tell whether it is being
10333      # built for inclusion in a dll (and should export symbols for example).
10334      lt_prog_compiler_pic='-DDLL_EXPORT'
10335      case $host_os in
10336      os2*)
10337	lt_prog_compiler_static='$wl-static'
10338	;;
10339      esac
10340      ;;
10341
10342    hpux9* | hpux10* | hpux11*)
10343      lt_prog_compiler_wl='-Wl,'
10344      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10345      # not for PA HP-UX.
10346      case $host_cpu in
10347      hppa*64*|ia64*)
10348	# +Z the default
10349	;;
10350      *)
10351	lt_prog_compiler_pic='+Z'
10352	;;
10353      esac
10354      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10355      lt_prog_compiler_static='$wl-a ${wl}archive'
10356      ;;
10357
10358    irix5* | irix6* | nonstopux*)
10359      lt_prog_compiler_wl='-Wl,'
10360      # PIC (with -KPIC) is the default.
10361      lt_prog_compiler_static='-non_shared'
10362      ;;
10363
10364    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10365      case $cc_basename in
10366      # old Intel for x86_64, which still supported -KPIC.
10367      ecc*)
10368	lt_prog_compiler_wl='-Wl,'
10369	lt_prog_compiler_pic='-KPIC'
10370	lt_prog_compiler_static='-static'
10371        ;;
10372      # icc used to be incompatible with GCC.
10373      # ICC 10 doesn't accept -KPIC any more.
10374      icc* | ifort*)
10375	lt_prog_compiler_wl='-Wl,'
10376	lt_prog_compiler_pic='-fPIC'
10377	lt_prog_compiler_static='-static'
10378        ;;
10379      # Lahey Fortran 8.1.
10380      lf95*)
10381	lt_prog_compiler_wl='-Wl,'
10382	lt_prog_compiler_pic='--shared'
10383	lt_prog_compiler_static='--static'
10384	;;
10385      nagfor*)
10386	# NAG Fortran compiler
10387	lt_prog_compiler_wl='-Wl,-Wl,,'
10388	lt_prog_compiler_pic='-PIC'
10389	lt_prog_compiler_static='-Bstatic'
10390	;;
10391      tcc*)
10392	# Fabrice Bellard et al's Tiny C Compiler
10393	lt_prog_compiler_wl='-Wl,'
10394	lt_prog_compiler_pic='-fPIC'
10395	lt_prog_compiler_static='-static'
10396	;;
10397      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10398        # Portland Group compilers (*not* the Pentium gcc compiler,
10399	# which looks to be a dead project)
10400	lt_prog_compiler_wl='-Wl,'
10401	lt_prog_compiler_pic='-fpic'
10402	lt_prog_compiler_static='-Bstatic'
10403        ;;
10404      ccc*)
10405        lt_prog_compiler_wl='-Wl,'
10406        # All Alpha code is PIC.
10407        lt_prog_compiler_static='-non_shared'
10408        ;;
10409      xl* | bgxl* | bgf* | mpixl*)
10410	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10411	lt_prog_compiler_wl='-Wl,'
10412	lt_prog_compiler_pic='-qpic'
10413	lt_prog_compiler_static='-qstaticlink'
10414	;;
10415      *)
10416	case `$CC -V 2>&1 | sed 5q` in
10417	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10418	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10419	  lt_prog_compiler_pic='-KPIC'
10420	  lt_prog_compiler_static='-Bstatic'
10421	  lt_prog_compiler_wl=''
10422	  ;;
10423	*Sun\ F* | *Sun*Fortran*)
10424	  lt_prog_compiler_pic='-KPIC'
10425	  lt_prog_compiler_static='-Bstatic'
10426	  lt_prog_compiler_wl='-Qoption ld '
10427	  ;;
10428	*Sun\ C*)
10429	  # Sun C 5.9
10430	  lt_prog_compiler_pic='-KPIC'
10431	  lt_prog_compiler_static='-Bstatic'
10432	  lt_prog_compiler_wl='-Wl,'
10433	  ;;
10434        *Intel*\ [CF]*Compiler*)
10435	  lt_prog_compiler_wl='-Wl,'
10436	  lt_prog_compiler_pic='-fPIC'
10437	  lt_prog_compiler_static='-static'
10438	  ;;
10439	*Portland\ Group*)
10440	  lt_prog_compiler_wl='-Wl,'
10441	  lt_prog_compiler_pic='-fpic'
10442	  lt_prog_compiler_static='-Bstatic'
10443	  ;;
10444	esac
10445	;;
10446      esac
10447      ;;
10448
10449    newsos6)
10450      lt_prog_compiler_pic='-KPIC'
10451      lt_prog_compiler_static='-Bstatic'
10452      ;;
10453
10454    *nto* | *qnx*)
10455      # QNX uses GNU C++, but need to define -shared option too, otherwise
10456      # it will coredump.
10457      lt_prog_compiler_pic='-fPIC -shared'
10458      ;;
10459
10460    osf3* | osf4* | osf5*)
10461      lt_prog_compiler_wl='-Wl,'
10462      # All OSF/1 code is PIC.
10463      lt_prog_compiler_static='-non_shared'
10464      ;;
10465
10466    rdos*)
10467      lt_prog_compiler_static='-non_shared'
10468      ;;
10469
10470    solaris*)
10471      lt_prog_compiler_pic='-KPIC'
10472      lt_prog_compiler_static='-Bstatic'
10473      case $cc_basename in
10474      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10475	lt_prog_compiler_wl='-Qoption ld ';;
10476      *)
10477	lt_prog_compiler_wl='-Wl,';;
10478      esac
10479      ;;
10480
10481    sunos4*)
10482      lt_prog_compiler_wl='-Qoption ld '
10483      lt_prog_compiler_pic='-PIC'
10484      lt_prog_compiler_static='-Bstatic'
10485      ;;
10486
10487    sysv4 | sysv4.2uw2* | sysv4.3*)
10488      lt_prog_compiler_wl='-Wl,'
10489      lt_prog_compiler_pic='-KPIC'
10490      lt_prog_compiler_static='-Bstatic'
10491      ;;
10492
10493    sysv4*MP*)
10494      if test -d /usr/nec; then
10495	lt_prog_compiler_pic='-Kconform_pic'
10496	lt_prog_compiler_static='-Bstatic'
10497      fi
10498      ;;
10499
10500    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10501      lt_prog_compiler_wl='-Wl,'
10502      lt_prog_compiler_pic='-KPIC'
10503      lt_prog_compiler_static='-Bstatic'
10504      ;;
10505
10506    unicos*)
10507      lt_prog_compiler_wl='-Wl,'
10508      lt_prog_compiler_can_build_shared=no
10509      ;;
10510
10511    uts4*)
10512      lt_prog_compiler_pic='-pic'
10513      lt_prog_compiler_static='-Bstatic'
10514      ;;
10515
10516    *)
10517      lt_prog_compiler_can_build_shared=no
10518      ;;
10519    esac
10520  fi
10521
10522case $host_os in
10523  # For platforms that do not support PIC, -DPIC is meaningless:
10524  *djgpp*)
10525    lt_prog_compiler_pic=
10526    ;;
10527  *)
10528    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10529    ;;
10530esac
10531
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10533$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10534if ${lt_cv_prog_compiler_pic+:} false; then :
10535  $as_echo_n "(cached) " >&6
10536else
10537  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10538fi
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10540$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10541lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10542
10543#
10544# Check to make sure the PIC flag actually works.
10545#
10546if test -n "$lt_prog_compiler_pic"; then
10547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10548$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10549if ${lt_cv_prog_compiler_pic_works+:} false; then :
10550  $as_echo_n "(cached) " >&6
10551else
10552  lt_cv_prog_compiler_pic_works=no
10553   ac_outfile=conftest.$ac_objext
10554   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10555   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10556   # Insert the option either (1) after the last *FLAGS variable, or
10557   # (2) before a word containing "conftest.", or (3) at the end.
10558   # Note that $ac_compile itself does not contain backslashes and begins
10559   # with a dollar sign (not a hyphen), so the echo should work correctly.
10560   # The option is referenced via a variable to avoid confusing sed.
10561   lt_compile=`echo "$ac_compile" | $SED \
10562   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10564   -e 's:$: $lt_compiler_flag:'`
10565   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10566   (eval "$lt_compile" 2>conftest.err)
10567   ac_status=$?
10568   cat conftest.err >&5
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   if (exit $ac_status) && test -s "$ac_outfile"; then
10571     # The compiler can only warn and ignore the option if not recognized
10572     # So say no if there are warnings other than the usual output.
10573     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10574     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10575     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10576       lt_cv_prog_compiler_pic_works=yes
10577     fi
10578   fi
10579   $RM conftest*
10580
10581fi
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10583$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10584
10585if test yes = "$lt_cv_prog_compiler_pic_works"; then
10586    case $lt_prog_compiler_pic in
10587     "" | " "*) ;;
10588     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10589     esac
10590else
10591    lt_prog_compiler_pic=
10592     lt_prog_compiler_can_build_shared=no
10593fi
10594
10595fi
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607#
10608# Check to make sure the static flag actually works.
10609#
10610wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10612$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10613if ${lt_cv_prog_compiler_static_works+:} false; then :
10614  $as_echo_n "(cached) " >&6
10615else
10616  lt_cv_prog_compiler_static_works=no
10617   save_LDFLAGS=$LDFLAGS
10618   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10619   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10620   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10621     # The linker can only warn and ignore the option if not recognized
10622     # So say no if there are warnings
10623     if test -s conftest.err; then
10624       # Append any errors to the config.log.
10625       cat conftest.err 1>&5
10626       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10627       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10628       if diff conftest.exp conftest.er2 >/dev/null; then
10629         lt_cv_prog_compiler_static_works=yes
10630       fi
10631     else
10632       lt_cv_prog_compiler_static_works=yes
10633     fi
10634   fi
10635   $RM -r conftest*
10636   LDFLAGS=$save_LDFLAGS
10637
10638fi
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10640$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10641
10642if test yes = "$lt_cv_prog_compiler_static_works"; then
10643    :
10644else
10645    lt_prog_compiler_static=
10646fi
10647
10648
10649
10650
10651
10652
10653
10654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10655$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10656if ${lt_cv_prog_compiler_c_o+:} false; then :
10657  $as_echo_n "(cached) " >&6
10658else
10659  lt_cv_prog_compiler_c_o=no
10660   $RM -r conftest 2>/dev/null
10661   mkdir conftest
10662   cd conftest
10663   mkdir out
10664   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10665
10666   lt_compiler_flag="-o out/conftest2.$ac_objext"
10667   # Insert the option either (1) after the last *FLAGS variable, or
10668   # (2) before a word containing "conftest.", or (3) at the end.
10669   # Note that $ac_compile itself does not contain backslashes and begins
10670   # with a dollar sign (not a hyphen), so the echo should work correctly.
10671   lt_compile=`echo "$ac_compile" | $SED \
10672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10674   -e 's:$: $lt_compiler_flag:'`
10675   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10676   (eval "$lt_compile" 2>out/conftest.err)
10677   ac_status=$?
10678   cat out/conftest.err >&5
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10681   then
10682     # The compiler can only warn and ignore the option if not recognized
10683     # So say no if there are warnings
10684     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10685     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10686     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10687       lt_cv_prog_compiler_c_o=yes
10688     fi
10689   fi
10690   chmod u+w . 2>&5
10691   $RM conftest*
10692   # SGI C++ compiler will create directory out/ii_files/ for
10693   # template instantiation
10694   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10695   $RM out/* && rmdir out
10696   cd ..
10697   $RM -r conftest
10698   $RM conftest*
10699
10700fi
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10702$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10703
10704
10705
10706
10707
10708
10709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10710$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10711if ${lt_cv_prog_compiler_c_o+:} false; then :
10712  $as_echo_n "(cached) " >&6
10713else
10714  lt_cv_prog_compiler_c_o=no
10715   $RM -r conftest 2>/dev/null
10716   mkdir conftest
10717   cd conftest
10718   mkdir out
10719   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10720
10721   lt_compiler_flag="-o out/conftest2.$ac_objext"
10722   # Insert the option either (1) after the last *FLAGS variable, or
10723   # (2) before a word containing "conftest.", or (3) at the end.
10724   # Note that $ac_compile itself does not contain backslashes and begins
10725   # with a dollar sign (not a hyphen), so the echo should work correctly.
10726   lt_compile=`echo "$ac_compile" | $SED \
10727   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10728   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10729   -e 's:$: $lt_compiler_flag:'`
10730   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10731   (eval "$lt_compile" 2>out/conftest.err)
10732   ac_status=$?
10733   cat out/conftest.err >&5
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10736   then
10737     # The compiler can only warn and ignore the option if not recognized
10738     # So say no if there are warnings
10739     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10740     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10741     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10742       lt_cv_prog_compiler_c_o=yes
10743     fi
10744   fi
10745   chmod u+w . 2>&5
10746   $RM conftest*
10747   # SGI C++ compiler will create directory out/ii_files/ for
10748   # template instantiation
10749   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10750   $RM out/* && rmdir out
10751   cd ..
10752   $RM -r conftest
10753   $RM conftest*
10754
10755fi
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10757$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10758
10759
10760
10761
10762hard_links=nottested
10763if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10764  # do not overwrite the value of need_locks provided by the user
10765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10766$as_echo_n "checking if we can lock with hard links... " >&6; }
10767  hard_links=yes
10768  $RM conftest*
10769  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10770  touch conftest.a
10771  ln conftest.a conftest.b 2>&5 || hard_links=no
10772  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10774$as_echo "$hard_links" >&6; }
10775  if test no = "$hard_links"; then
10776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10777$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10778    need_locks=warn
10779  fi
10780else
10781  need_locks=no
10782fi
10783
10784
10785
10786
10787
10788
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10790$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10791
10792  runpath_var=
10793  allow_undefined_flag=
10794  always_export_symbols=no
10795  archive_cmds=
10796  archive_expsym_cmds=
10797  compiler_needs_object=no
10798  enable_shared_with_static_runtimes=no
10799  export_dynamic_flag_spec=
10800  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10801  hardcode_automatic=no
10802  hardcode_direct=no
10803  hardcode_direct_absolute=no
10804  hardcode_libdir_flag_spec=
10805  hardcode_libdir_separator=
10806  hardcode_minus_L=no
10807  hardcode_shlibpath_var=unsupported
10808  inherit_rpath=no
10809  link_all_deplibs=unknown
10810  module_cmds=
10811  module_expsym_cmds=
10812  old_archive_from_new_cmds=
10813  old_archive_from_expsyms_cmds=
10814  thread_safe_flag_spec=
10815  whole_archive_flag_spec=
10816  # include_expsyms should be a list of space-separated symbols to be *always*
10817  # included in the symbol list
10818  include_expsyms=
10819  # exclude_expsyms can be an extended regexp of symbols to exclude
10820  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10821  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10822  # as well as any symbol that contains 'd'.
10823  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10824  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10825  # platforms (ab)use it in PIC code, but their linkers get confused if
10826  # the symbol is explicitly referenced.  Since portable code cannot
10827  # rely on this symbol name, it's probably fine to never include it in
10828  # preloaded symbol tables.
10829  # Exclude shared library initialization/finalization symbols.
10830  extract_expsyms_cmds=
10831
10832  case $host_os in
10833  cygwin* | mingw* | pw32* | cegcc*)
10834    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10835    # When not using gcc, we currently assume that we are using
10836    # Microsoft Visual C++.
10837    if test yes != "$GCC"; then
10838      with_gnu_ld=no
10839    fi
10840    ;;
10841  interix*)
10842    # we just hope/assume this is gcc and not c89 (= MSVC++)
10843    with_gnu_ld=yes
10844    ;;
10845  openbsd* | bitrig*)
10846    with_gnu_ld=no
10847    ;;
10848  linux* | k*bsd*-gnu | gnu*)
10849    link_all_deplibs=no
10850    ;;
10851  esac
10852
10853  ld_shlibs=yes
10854
10855  # On some targets, GNU ld is compatible enough with the native linker
10856  # that we're better off using the native interface for both.
10857  lt_use_gnu_ld_interface=no
10858  if test yes = "$with_gnu_ld"; then
10859    case $host_os in
10860      aix*)
10861	# The AIX port of GNU ld has always aspired to compatibility
10862	# with the native linker.  However, as the warning in the GNU ld
10863	# block says, versions before 2.19.5* couldn't really create working
10864	# shared libraries, regardless of the interface used.
10865	case `$LD -v 2>&1` in
10866	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10867	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10868	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10869	  *)
10870	    lt_use_gnu_ld_interface=yes
10871	    ;;
10872	esac
10873	;;
10874      *)
10875	lt_use_gnu_ld_interface=yes
10876	;;
10877    esac
10878  fi
10879
10880  if test yes = "$lt_use_gnu_ld_interface"; then
10881    # If archive_cmds runs LD, not CC, wlarc should be empty
10882    wlarc='$wl'
10883
10884    # Set some defaults for GNU ld with shared library support. These
10885    # are reset later if shared libraries are not supported. Putting them
10886    # here allows them to be overridden if necessary.
10887    runpath_var=LD_RUN_PATH
10888    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10889    export_dynamic_flag_spec='$wl--export-dynamic'
10890    # ancient GNU ld didn't support --whole-archive et. al.
10891    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10892      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10893    else
10894      whole_archive_flag_spec=
10895    fi
10896    supports_anon_versioning=no
10897    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10898      *GNU\ gold*) supports_anon_versioning=yes ;;
10899      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10900      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10901      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10902      *\ 2.11.*) ;; # other 2.11 versions
10903      *) supports_anon_versioning=yes ;;
10904    esac
10905
10906    # See if GNU ld supports shared libraries.
10907    case $host_os in
10908    aix[3-9]*)
10909      # On AIX/PPC, the GNU linker is very broken
10910      if test ia64 != "$host_cpu"; then
10911	ld_shlibs=no
10912	cat <<_LT_EOF 1>&2
10913
10914*** Warning: the GNU linker, at least up to release 2.19, is reported
10915*** to be unable to reliably create shared libraries on AIX.
10916*** Therefore, libtool is disabling shared libraries support.  If you
10917*** really care for shared libraries, you may want to install binutils
10918*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10919*** You will then need to restart the configuration process.
10920
10921_LT_EOF
10922      fi
10923      ;;
10924
10925    amigaos*)
10926      case $host_cpu in
10927      powerpc)
10928            # see comment about AmigaOS4 .so support
10929            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10930            archive_expsym_cmds=''
10931        ;;
10932      m68k)
10933            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)'
10934            hardcode_libdir_flag_spec='-L$libdir'
10935            hardcode_minus_L=yes
10936        ;;
10937      esac
10938      ;;
10939
10940    beos*)
10941      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10942	allow_undefined_flag=unsupported
10943	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10944	# support --undefined.  This deserves some investigation.  FIXME
10945	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10946      else
10947	ld_shlibs=no
10948      fi
10949      ;;
10950
10951    cygwin* | mingw* | pw32* | cegcc*)
10952      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10953      # as there is no search path for DLLs.
10954      hardcode_libdir_flag_spec='-L$libdir'
10955      export_dynamic_flag_spec='$wl--export-all-symbols'
10956      allow_undefined_flag=unsupported
10957      always_export_symbols=no
10958      enable_shared_with_static_runtimes=yes
10959      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'
10960      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10961
10962      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10963        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10964	# If the export-symbols file already is a .def file, use it as
10965	# is; otherwise, prepend EXPORTS...
10966	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10967          cp $export_symbols $output_objdir/$soname.def;
10968        else
10969          echo EXPORTS > $output_objdir/$soname.def;
10970          cat $export_symbols >> $output_objdir/$soname.def;
10971        fi~
10972        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10973      else
10974	ld_shlibs=no
10975      fi
10976      ;;
10977
10978    haiku*)
10979      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10980      link_all_deplibs=yes
10981      ;;
10982
10983    os2*)
10984      hardcode_libdir_flag_spec='-L$libdir'
10985      hardcode_minus_L=yes
10986      allow_undefined_flag=unsupported
10987      shrext_cmds=.dll
10988      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10989	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10990	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10991	$ECHO EXPORTS >> $output_objdir/$libname.def~
10992	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10993	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10994	emximp -o $lib $output_objdir/$libname.def'
10995      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10996	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10997	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10998	$ECHO EXPORTS >> $output_objdir/$libname.def~
10999	prefix_cmds="$SED"~
11000	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11001	  prefix_cmds="$prefix_cmds -e 1d";
11002	fi~
11003	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11004	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11005	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11006	emximp -o $lib $output_objdir/$libname.def'
11007      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11008      enable_shared_with_static_runtimes=yes
11009      ;;
11010
11011    interix[3-9]*)
11012      hardcode_direct=no
11013      hardcode_shlibpath_var=no
11014      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11015      export_dynamic_flag_spec='$wl-E'
11016      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11017      # Instead, shared libraries are loaded at an image base (0x10000000 by
11018      # default) and relocated if they conflict, which is a slow very memory
11019      # consuming and fragmenting process.  To avoid this, we pick a random,
11020      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11021      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11022      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11023      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'
11024      ;;
11025
11026    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11027      tmp_diet=no
11028      if test linux-dietlibc = "$host_os"; then
11029	case $cc_basename in
11030	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11031	esac
11032      fi
11033      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11034	 && test no = "$tmp_diet"
11035      then
11036	tmp_addflag=' $pic_flag'
11037	tmp_sharedflag='-shared'
11038	case $cc_basename,$host_cpu in
11039        pgcc*)				# Portland Group C compiler
11040	  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'
11041	  tmp_addflag=' $pic_flag'
11042	  ;;
11043	pgf77* | pgf90* | pgf95* | pgfortran*)
11044					# Portland Group f77 and f90 compilers
11045	  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'
11046	  tmp_addflag=' $pic_flag -Mnomain' ;;
11047	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11048	  tmp_addflag=' -i_dynamic' ;;
11049	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11050	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11051	ifc* | ifort*)			# Intel Fortran compiler
11052	  tmp_addflag=' -nofor_main' ;;
11053	lf95*)				# Lahey Fortran 8.1
11054	  whole_archive_flag_spec=
11055	  tmp_sharedflag='--shared' ;;
11056        nagfor*)                        # NAGFOR 5.3
11057          tmp_sharedflag='-Wl,-shared' ;;
11058	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11059	  tmp_sharedflag='-qmkshrobj'
11060	  tmp_addflag= ;;
11061	nvcc*)	# Cuda Compiler Driver 2.2
11062	  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'
11063	  compiler_needs_object=yes
11064	  ;;
11065	esac
11066	case `$CC -V 2>&1 | sed 5q` in
11067	*Sun\ C*)			# Sun C 5.9
11068	  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'
11069	  compiler_needs_object=yes
11070	  tmp_sharedflag='-G' ;;
11071	*Sun\ F*)			# Sun Fortran 8.3
11072	  tmp_sharedflag='-G' ;;
11073	esac
11074	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11075
11076        if test yes = "$supports_anon_versioning"; then
11077          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11078            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11079            echo "local: *; };" >> $output_objdir/$libname.ver~
11080            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11081        fi
11082
11083	case $cc_basename in
11084	tcc*)
11085	  export_dynamic_flag_spec='-rdynamic'
11086	  ;;
11087	xlf* | bgf* | bgxlf* | mpixlf*)
11088	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11089	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11090	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11091	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11092	  if test yes = "$supports_anon_versioning"; then
11093	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11094              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11095              echo "local: *; };" >> $output_objdir/$libname.ver~
11096              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11097	  fi
11098	  ;;
11099	esac
11100      else
11101        ld_shlibs=no
11102      fi
11103      ;;
11104
11105    netbsd* | netbsdelf*-gnu)
11106      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11107	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11108	wlarc=
11109      else
11110	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11111	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11112      fi
11113      ;;
11114
11115    solaris*)
11116      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11117	ld_shlibs=no
11118	cat <<_LT_EOF 1>&2
11119
11120*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11121*** create shared libraries on Solaris systems.  Therefore, libtool
11122*** is disabling shared libraries support.  We urge you to upgrade GNU
11123*** binutils to release 2.9.1 or newer.  Another option is to modify
11124*** your PATH or compiler configuration so that the native linker is
11125*** used, and then restart.
11126
11127_LT_EOF
11128      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11129	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11130	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11131      else
11132	ld_shlibs=no
11133      fi
11134      ;;
11135
11136    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11137      case `$LD -v 2>&1` in
11138        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11139	ld_shlibs=no
11140	cat <<_LT_EOF 1>&2
11141
11142*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11143*** reliably create shared libraries on SCO systems.  Therefore, libtool
11144*** is disabling shared libraries support.  We urge you to upgrade GNU
11145*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11146*** your PATH or compiler configuration so that the native linker is
11147*** used, and then restart.
11148
11149_LT_EOF
11150	;;
11151	*)
11152	  # For security reasons, it is highly recommended that you always
11153	  # use absolute paths for naming shared libraries, and exclude the
11154	  # DT_RUNPATH tag from executables and libraries.  But doing so
11155	  # requires that you compile everything twice, which is a pain.
11156	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11157	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11158	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11159	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11160	  else
11161	    ld_shlibs=no
11162	  fi
11163	;;
11164      esac
11165      ;;
11166
11167    sunos4*)
11168      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11169      wlarc=
11170      hardcode_direct=yes
11171      hardcode_shlibpath_var=no
11172      ;;
11173
11174    *)
11175      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11176	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11177	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11178      else
11179	ld_shlibs=no
11180      fi
11181      ;;
11182    esac
11183
11184    if test no = "$ld_shlibs"; then
11185      runpath_var=
11186      hardcode_libdir_flag_spec=
11187      export_dynamic_flag_spec=
11188      whole_archive_flag_spec=
11189    fi
11190  else
11191    # PORTME fill in a description of your system's linker (not GNU ld)
11192    case $host_os in
11193    aix3*)
11194      allow_undefined_flag=unsupported
11195      always_export_symbols=yes
11196      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'
11197      # Note: this linker hardcodes the directories in LIBPATH if there
11198      # are no directories specified by -L.
11199      hardcode_minus_L=yes
11200      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11201	# Neither direct hardcoding nor static linking is supported with a
11202	# broken collect2.
11203	hardcode_direct=unsupported
11204      fi
11205      ;;
11206
11207    aix[4-9]*)
11208      if test ia64 = "$host_cpu"; then
11209	# On IA64, the linker does run time linking by default, so we don't
11210	# have to do anything special.
11211	aix_use_runtimelinking=no
11212	exp_sym_flag='-Bexport'
11213	no_entry_flag=
11214      else
11215	# If we're using GNU nm, then we don't want the "-C" option.
11216	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11217	# Without the "-l" option, or with the "-B" option, AIX nm treats
11218	# weak defined symbols like other global defined symbols, whereas
11219	# GNU nm marks them as "W".
11220	# While the 'weak' keyword is ignored in the Export File, we need
11221	# it in the Import File for the 'aix-soname' feature, so we have
11222	# to replace the "-B" option with "-P" for AIX nm.
11223	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11224	  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'
11225	else
11226	  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'
11227	fi
11228	aix_use_runtimelinking=no
11229
11230	# Test if we are trying to use run time linking or normal
11231	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11232	# have runtime linking enabled, and use it for executables.
11233	# For shared libraries, we enable/disable runtime linking
11234	# depending on the kind of the shared library created -
11235	# when "with_aix_soname,aix_use_runtimelinking" is:
11236	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11237	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11238	#            lib.a           static archive
11239	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11240	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11241	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11242	#            lib.a(lib.so.V) shared, rtl:no
11243	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11244	#            lib.a           static archive
11245	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11246	  for ld_flag in $LDFLAGS; do
11247	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11248	    aix_use_runtimelinking=yes
11249	    break
11250	  fi
11251	  done
11252	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11253	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11254	    # so we don't have lib.a shared libs to link our executables.
11255	    # We have to force runtime linking in this case.
11256	    aix_use_runtimelinking=yes
11257	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11258	  fi
11259	  ;;
11260	esac
11261
11262	exp_sym_flag='-bexport'
11263	no_entry_flag='-bnoentry'
11264      fi
11265
11266      # When large executables or shared objects are built, AIX ld can
11267      # have problems creating the table of contents.  If linking a library
11268      # or program results in "error TOC overflow" add -mminimal-toc to
11269      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11270      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11271
11272      archive_cmds=''
11273      hardcode_direct=yes
11274      hardcode_direct_absolute=yes
11275      hardcode_libdir_separator=':'
11276      link_all_deplibs=yes
11277      file_list_spec='$wl-f,'
11278      case $with_aix_soname,$aix_use_runtimelinking in
11279      aix,*) ;; # traditional, no import file
11280      svr4,* | *,yes) # use import file
11281	# The Import File defines what to hardcode.
11282	hardcode_direct=no
11283	hardcode_direct_absolute=no
11284	;;
11285      esac
11286
11287      if test yes = "$GCC"; then
11288	case $host_os in aix4.[012]|aix4.[012].*)
11289	# We only want to do this on AIX 4.2 and lower, the check
11290	# below for broken collect2 doesn't work under 4.3+
11291	  collect2name=`$CC -print-prog-name=collect2`
11292	  if test -f "$collect2name" &&
11293	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11294	  then
11295	  # We have reworked collect2
11296	  :
11297	  else
11298	  # We have old collect2
11299	  hardcode_direct=unsupported
11300	  # It fails to find uninstalled libraries when the uninstalled
11301	  # path is not listed in the libpath.  Setting hardcode_minus_L
11302	  # to unsupported forces relinking
11303	  hardcode_minus_L=yes
11304	  hardcode_libdir_flag_spec='-L$libdir'
11305	  hardcode_libdir_separator=
11306	  fi
11307	  ;;
11308	esac
11309	shared_flag='-shared'
11310	if test yes = "$aix_use_runtimelinking"; then
11311	  shared_flag="$shared_flag "'$wl-G'
11312	fi
11313	# Need to ensure runtime linking is disabled for the traditional
11314	# shared library, or the linker may eventually find shared libraries
11315	# /with/ Import File - we do not want to mix them.
11316	shared_flag_aix='-shared'
11317	shared_flag_svr4='-shared $wl-G'
11318      else
11319	# not using gcc
11320	if test ia64 = "$host_cpu"; then
11321	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11322	# chokes on -Wl,-G. The following line is correct:
11323	  shared_flag='-G'
11324	else
11325	  if test yes = "$aix_use_runtimelinking"; then
11326	    shared_flag='$wl-G'
11327	  else
11328	    shared_flag='$wl-bM:SRE'
11329	  fi
11330	  shared_flag_aix='$wl-bM:SRE'
11331	  shared_flag_svr4='$wl-G'
11332	fi
11333      fi
11334
11335      export_dynamic_flag_spec='$wl-bexpall'
11336      # It seems that -bexpall does not export symbols beginning with
11337      # underscore (_), so it is better to generate a list of symbols to export.
11338      always_export_symbols=yes
11339      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11340	# Warning - without using the other runtime loading flags (-brtl),
11341	# -berok will link without error, but may produce a broken library.
11342	allow_undefined_flag='-berok'
11343        # Determine the default libpath from the value encoded in an
11344        # empty executable.
11345        if test set = "${lt_cv_aix_libpath+set}"; then
11346  aix_libpath=$lt_cv_aix_libpath
11347else
11348  if ${lt_cv_aix_libpath_+:} false; then :
11349  $as_echo_n "(cached) " >&6
11350else
11351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352/* end confdefs.h.  */
11353
11354int
11355main ()
11356{
11357
11358  ;
11359  return 0;
11360}
11361_ACEOF
11362if ac_fn_c_try_link "$LINENO"; then :
11363
11364  lt_aix_libpath_sed='
11365      /Import File Strings/,/^$/ {
11366	  /^0/ {
11367	      s/^0  *\([^ ]*\) *$/\1/
11368	      p
11369	  }
11370      }'
11371  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11372  # Check for a 64-bit object if we didn't find anything.
11373  if test -z "$lt_cv_aix_libpath_"; then
11374    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11375  fi
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378    conftest$ac_exeext conftest.$ac_ext
11379  if test -z "$lt_cv_aix_libpath_"; then
11380    lt_cv_aix_libpath_=/usr/lib:/lib
11381  fi
11382
11383fi
11384
11385  aix_libpath=$lt_cv_aix_libpath_
11386fi
11387
11388        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11389        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
11390      else
11391	if test ia64 = "$host_cpu"; then
11392	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11393	  allow_undefined_flag="-z nodefs"
11394	  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"
11395	else
11396	 # Determine the default libpath from the value encoded in an
11397	 # empty executable.
11398	 if test set = "${lt_cv_aix_libpath+set}"; then
11399  aix_libpath=$lt_cv_aix_libpath
11400else
11401  if ${lt_cv_aix_libpath_+:} false; then :
11402  $as_echo_n "(cached) " >&6
11403else
11404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h.  */
11406
11407int
11408main ()
11409{
11410
11411  ;
11412  return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"; then :
11416
11417  lt_aix_libpath_sed='
11418      /Import File Strings/,/^$/ {
11419	  /^0/ {
11420	      s/^0  *\([^ ]*\) *$/\1/
11421	      p
11422	  }
11423      }'
11424  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11425  # Check for a 64-bit object if we didn't find anything.
11426  if test -z "$lt_cv_aix_libpath_"; then
11427    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11428  fi
11429fi
11430rm -f core conftest.err conftest.$ac_objext \
11431    conftest$ac_exeext conftest.$ac_ext
11432  if test -z "$lt_cv_aix_libpath_"; then
11433    lt_cv_aix_libpath_=/usr/lib:/lib
11434  fi
11435
11436fi
11437
11438  aix_libpath=$lt_cv_aix_libpath_
11439fi
11440
11441	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11442	  # Warning - without using the other run time loading flags,
11443	  # -berok will link without error, but may produce a broken library.
11444	  no_undefined_flag=' $wl-bernotok'
11445	  allow_undefined_flag=' $wl-berok'
11446	  if test yes = "$with_gnu_ld"; then
11447	    # We only use this code for GNU lds that support --whole-archive.
11448	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11449	  else
11450	    # Exported symbols can be pulled into shared objects from archives
11451	    whole_archive_flag_spec='$convenience'
11452	  fi
11453	  archive_cmds_need_lc=yes
11454	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11455	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11456	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11457	  if test svr4 != "$with_aix_soname"; then
11458	    # This is similar to how AIX traditionally builds its shared libraries.
11459	    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'
11460	  fi
11461	  if test aix != "$with_aix_soname"; then
11462	    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'
11463	  else
11464	    # used by -dlpreopen to get the symbols
11465	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11466	  fi
11467	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11468	fi
11469      fi
11470      ;;
11471
11472    amigaos*)
11473      case $host_cpu in
11474      powerpc)
11475            # see comment about AmigaOS4 .so support
11476            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11477            archive_expsym_cmds=''
11478        ;;
11479      m68k)
11480            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)'
11481            hardcode_libdir_flag_spec='-L$libdir'
11482            hardcode_minus_L=yes
11483        ;;
11484      esac
11485      ;;
11486
11487    bsdi[45]*)
11488      export_dynamic_flag_spec=-rdynamic
11489      ;;
11490
11491    cygwin* | mingw* | pw32* | cegcc*)
11492      # When not using gcc, we currently assume that we are using
11493      # Microsoft Visual C++.
11494      # hardcode_libdir_flag_spec is actually meaningless, as there is
11495      # no search path for DLLs.
11496      case $cc_basename in
11497      cl*)
11498	# Native MSVC
11499	hardcode_libdir_flag_spec=' '
11500	allow_undefined_flag=unsupported
11501	always_export_symbols=yes
11502	file_list_spec='@'
11503	# Tell ltmain to make .lib files, not .a files.
11504	libext=lib
11505	# Tell ltmain to make .dll files, not .so files.
11506	shrext_cmds=.dll
11507	# FIXME: Setting linknames here is a bad hack.
11508	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11509	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11510            cp "$export_symbols" "$output_objdir/$soname.def";
11511            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11512          else
11513            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11514          fi~
11515          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11516          linknames='
11517	# The linker will not automatically build a static lib if we build a DLL.
11518	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11519	enable_shared_with_static_runtimes=yes
11520	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11521	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11522	# Don't use ranlib
11523	old_postinstall_cmds='chmod 644 $oldlib'
11524	postlink_cmds='lt_outputfile="@OUTPUT@"~
11525          lt_tool_outputfile="@TOOL_OUTPUT@"~
11526          case $lt_outputfile in
11527            *.exe|*.EXE) ;;
11528            *)
11529              lt_outputfile=$lt_outputfile.exe
11530              lt_tool_outputfile=$lt_tool_outputfile.exe
11531              ;;
11532          esac~
11533          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11534            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11535            $RM "$lt_outputfile.manifest";
11536          fi'
11537	;;
11538      *)
11539	# Assume MSVC wrapper
11540	hardcode_libdir_flag_spec=' '
11541	allow_undefined_flag=unsupported
11542	# Tell ltmain to make .lib files, not .a files.
11543	libext=lib
11544	# Tell ltmain to make .dll files, not .so files.
11545	shrext_cmds=.dll
11546	# FIXME: Setting linknames here is a bad hack.
11547	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11548	# The linker will automatically build a .lib file if we build a DLL.
11549	old_archive_from_new_cmds='true'
11550	# FIXME: Should let the user specify the lib program.
11551	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11552	enable_shared_with_static_runtimes=yes
11553	;;
11554      esac
11555      ;;
11556
11557    darwin* | rhapsody*)
11558
11559
11560  archive_cmds_need_lc=no
11561  hardcode_direct=no
11562  hardcode_automatic=yes
11563  hardcode_shlibpath_var=unsupported
11564  if test yes = "$lt_cv_ld_force_load"; then
11565    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\"`'
11566
11567  else
11568    whole_archive_flag_spec=''
11569  fi
11570  link_all_deplibs=yes
11571  allow_undefined_flag=$_lt_dar_allow_undefined
11572  case $cc_basename in
11573     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11574     *) _lt_dar_can_shared=$GCC ;;
11575  esac
11576  if test yes = "$_lt_dar_can_shared"; then
11577    output_verbose_link_cmd=func_echo_all
11578    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11579    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11580    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"
11581    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"
11582
11583  else
11584  ld_shlibs=no
11585  fi
11586
11587      ;;
11588
11589    dgux*)
11590      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11591      hardcode_libdir_flag_spec='-L$libdir'
11592      hardcode_shlibpath_var=no
11593      ;;
11594
11595    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11596    # support.  Future versions do this automatically, but an explicit c++rt0.o
11597    # does not break anything, and helps significantly (at the cost of a little
11598    # extra space).
11599    freebsd2.2*)
11600      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11601      hardcode_libdir_flag_spec='-R$libdir'
11602      hardcode_direct=yes
11603      hardcode_shlibpath_var=no
11604      ;;
11605
11606    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11607    freebsd2.*)
11608      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11609      hardcode_direct=yes
11610      hardcode_minus_L=yes
11611      hardcode_shlibpath_var=no
11612      ;;
11613
11614    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11615    freebsd* | dragonfly*)
11616      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11617      hardcode_libdir_flag_spec='-R$libdir'
11618      hardcode_direct=yes
11619      hardcode_shlibpath_var=no
11620      ;;
11621
11622    hpux9*)
11623      if test yes = "$GCC"; then
11624	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'
11625      else
11626	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'
11627      fi
11628      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11629      hardcode_libdir_separator=:
11630      hardcode_direct=yes
11631
11632      # hardcode_minus_L: Not really in the search PATH,
11633      # but as the default location of the library.
11634      hardcode_minus_L=yes
11635      export_dynamic_flag_spec='$wl-E'
11636      ;;
11637
11638    hpux10*)
11639      if test yes,no = "$GCC,$with_gnu_ld"; then
11640	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11641      else
11642	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11643      fi
11644      if test no = "$with_gnu_ld"; then
11645	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11646	hardcode_libdir_separator=:
11647	hardcode_direct=yes
11648	hardcode_direct_absolute=yes
11649	export_dynamic_flag_spec='$wl-E'
11650	# hardcode_minus_L: Not really in the search PATH,
11651	# but as the default location of the library.
11652	hardcode_minus_L=yes
11653      fi
11654      ;;
11655
11656    hpux11*)
11657      if test yes,no = "$GCC,$with_gnu_ld"; then
11658	case $host_cpu in
11659	hppa*64*)
11660	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11661	  ;;
11662	ia64*)
11663	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11664	  ;;
11665	*)
11666	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11667	  ;;
11668	esac
11669      else
11670	case $host_cpu in
11671	hppa*64*)
11672	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11673	  ;;
11674	ia64*)
11675	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11676	  ;;
11677	*)
11678
11679	  # Older versions of the 11.00 compiler do not understand -b yet
11680	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11681	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11682$as_echo_n "checking if $CC understands -b... " >&6; }
11683if ${lt_cv_prog_compiler__b+:} false; then :
11684  $as_echo_n "(cached) " >&6
11685else
11686  lt_cv_prog_compiler__b=no
11687   save_LDFLAGS=$LDFLAGS
11688   LDFLAGS="$LDFLAGS -b"
11689   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11690   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11691     # The linker can only warn and ignore the option if not recognized
11692     # So say no if there are warnings
11693     if test -s conftest.err; then
11694       # Append any errors to the config.log.
11695       cat conftest.err 1>&5
11696       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11697       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11698       if diff conftest.exp conftest.er2 >/dev/null; then
11699         lt_cv_prog_compiler__b=yes
11700       fi
11701     else
11702       lt_cv_prog_compiler__b=yes
11703     fi
11704   fi
11705   $RM -r conftest*
11706   LDFLAGS=$save_LDFLAGS
11707
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11710$as_echo "$lt_cv_prog_compiler__b" >&6; }
11711
11712if test yes = "$lt_cv_prog_compiler__b"; then
11713    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11714else
11715    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11716fi
11717
11718	  ;;
11719	esac
11720      fi
11721      if test no = "$with_gnu_ld"; then
11722	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11723	hardcode_libdir_separator=:
11724
11725	case $host_cpu in
11726	hppa*64*|ia64*)
11727	  hardcode_direct=no
11728	  hardcode_shlibpath_var=no
11729	  ;;
11730	*)
11731	  hardcode_direct=yes
11732	  hardcode_direct_absolute=yes
11733	  export_dynamic_flag_spec='$wl-E'
11734
11735	  # hardcode_minus_L: Not really in the search PATH,
11736	  # but as the default location of the library.
11737	  hardcode_minus_L=yes
11738	  ;;
11739	esac
11740      fi
11741      ;;
11742
11743    irix5* | irix6* | nonstopux*)
11744      if test yes = "$GCC"; then
11745	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'
11746	# Try to use the -exported_symbol ld option, if it does not
11747	# work, assume that -exports_file does not work either and
11748	# implicitly export all symbols.
11749	# This should be the same for all languages, so no per-tag cache variable.
11750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11751$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11752if ${lt_cv_irix_exported_symbol+:} false; then :
11753  $as_echo_n "(cached) " >&6
11754else
11755  save_LDFLAGS=$LDFLAGS
11756	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11757	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758/* end confdefs.h.  */
11759int foo (void) { return 0; }
11760_ACEOF
11761if ac_fn_c_try_link "$LINENO"; then :
11762  lt_cv_irix_exported_symbol=yes
11763else
11764  lt_cv_irix_exported_symbol=no
11765fi
11766rm -f core conftest.err conftest.$ac_objext \
11767    conftest$ac_exeext conftest.$ac_ext
11768           LDFLAGS=$save_LDFLAGS
11769fi
11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11771$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11772	if test yes = "$lt_cv_irix_exported_symbol"; then
11773          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'
11774	fi
11775	link_all_deplibs=no
11776      else
11777	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'
11778	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'
11779      fi
11780      archive_cmds_need_lc='no'
11781      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11782      hardcode_libdir_separator=:
11783      inherit_rpath=yes
11784      link_all_deplibs=yes
11785      ;;
11786
11787    linux*)
11788      case $cc_basename in
11789      tcc*)
11790	# Fabrice Bellard et al's Tiny C Compiler
11791	ld_shlibs=yes
11792	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11793	;;
11794      esac
11795      ;;
11796
11797    netbsd* | netbsdelf*-gnu)
11798      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11799	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11800      else
11801	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11802      fi
11803      hardcode_libdir_flag_spec='-R$libdir'
11804      hardcode_direct=yes
11805      hardcode_shlibpath_var=no
11806      ;;
11807
11808    newsos6)
11809      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11810      hardcode_direct=yes
11811      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11812      hardcode_libdir_separator=:
11813      hardcode_shlibpath_var=no
11814      ;;
11815
11816    *nto* | *qnx*)
11817      ;;
11818
11819    openbsd* | bitrig*)
11820      if test -f /usr/libexec/ld.so; then
11821	hardcode_direct=yes
11822	hardcode_shlibpath_var=no
11823	hardcode_direct_absolute=yes
11824	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11825	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11826	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11827	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11828	  export_dynamic_flag_spec='$wl-E'
11829	else
11830	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11831	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11832	fi
11833      else
11834	ld_shlibs=no
11835      fi
11836      ;;
11837
11838    os2*)
11839      hardcode_libdir_flag_spec='-L$libdir'
11840      hardcode_minus_L=yes
11841      allow_undefined_flag=unsupported
11842      shrext_cmds=.dll
11843      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11844	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11845	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11846	$ECHO EXPORTS >> $output_objdir/$libname.def~
11847	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11848	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11849	emximp -o $lib $output_objdir/$libname.def'
11850      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11851	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11852	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11853	$ECHO EXPORTS >> $output_objdir/$libname.def~
11854	prefix_cmds="$SED"~
11855	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11856	  prefix_cmds="$prefix_cmds -e 1d";
11857	fi~
11858	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11859	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11860	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11861	emximp -o $lib $output_objdir/$libname.def'
11862      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11863      enable_shared_with_static_runtimes=yes
11864      ;;
11865
11866    osf3*)
11867      if test yes = "$GCC"; then
11868	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11869	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'
11870      else
11871	allow_undefined_flag=' -expect_unresolved \*'
11872	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'
11873      fi
11874      archive_cmds_need_lc='no'
11875      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11876      hardcode_libdir_separator=:
11877      ;;
11878
11879    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11880      if test yes = "$GCC"; then
11881	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11882	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'
11883	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11884      else
11885	allow_undefined_flag=' -expect_unresolved \*'
11886	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'
11887	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~
11888          $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'
11889
11890	# Both c and cxx compiler support -rpath directly
11891	hardcode_libdir_flag_spec='-rpath $libdir'
11892      fi
11893      archive_cmds_need_lc='no'
11894      hardcode_libdir_separator=:
11895      ;;
11896
11897    solaris*)
11898      no_undefined_flag=' -z defs'
11899      if test yes = "$GCC"; then
11900	wlarc='$wl'
11901	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11902	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11903          $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'
11904      else
11905	case `$CC -V 2>&1` in
11906	*"Compilers 5.0"*)
11907	  wlarc=''
11908	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11909	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11910            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11911	  ;;
11912	*)
11913	  wlarc='$wl'
11914	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11915	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11916            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11917	  ;;
11918	esac
11919      fi
11920      hardcode_libdir_flag_spec='-R$libdir'
11921      hardcode_shlibpath_var=no
11922      case $host_os in
11923      solaris2.[0-5] | solaris2.[0-5].*) ;;
11924      *)
11925	# The compiler driver will combine and reorder linker options,
11926	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11927	# but is careful enough not to reorder.
11928	# Supported since Solaris 2.6 (maybe 2.5.1?)
11929	if test yes = "$GCC"; then
11930	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11931	else
11932	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11933	fi
11934	;;
11935      esac
11936      link_all_deplibs=yes
11937      ;;
11938
11939    sunos4*)
11940      if test sequent = "$host_vendor"; then
11941	# Use $CC to link under sequent, because it throws in some extra .o
11942	# files that make .init and .fini sections work.
11943	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11944      else
11945	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11946      fi
11947      hardcode_libdir_flag_spec='-L$libdir'
11948      hardcode_direct=yes
11949      hardcode_minus_L=yes
11950      hardcode_shlibpath_var=no
11951      ;;
11952
11953    sysv4)
11954      case $host_vendor in
11955	sni)
11956	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11957	  hardcode_direct=yes # is this really true???
11958	;;
11959	siemens)
11960	  ## LD is ld it makes a PLAMLIB
11961	  ## CC just makes a GrossModule.
11962	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11963	  reload_cmds='$CC -r -o $output$reload_objs'
11964	  hardcode_direct=no
11965        ;;
11966	motorola)
11967	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11968	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11969	;;
11970      esac
11971      runpath_var='LD_RUN_PATH'
11972      hardcode_shlibpath_var=no
11973      ;;
11974
11975    sysv4.3*)
11976      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11977      hardcode_shlibpath_var=no
11978      export_dynamic_flag_spec='-Bexport'
11979      ;;
11980
11981    sysv4*MP*)
11982      if test -d /usr/nec; then
11983	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11984	hardcode_shlibpath_var=no
11985	runpath_var=LD_RUN_PATH
11986	hardcode_runpath_var=yes
11987	ld_shlibs=yes
11988      fi
11989      ;;
11990
11991    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11992      no_undefined_flag='$wl-z,text'
11993      archive_cmds_need_lc=no
11994      hardcode_shlibpath_var=no
11995      runpath_var='LD_RUN_PATH'
11996
11997      if test yes = "$GCC"; then
11998	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11999	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12000      else
12001	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12002	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12003      fi
12004      ;;
12005
12006    sysv5* | sco3.2v5* | sco5v6*)
12007      # Note: We CANNOT use -z defs as we might desire, because we do not
12008      # link with -lc, and that would cause any symbols used from libc to
12009      # always be unresolved, which means just about no library would
12010      # ever link correctly.  If we're not using GNU ld we use -z text
12011      # though, which does catch some bad symbols but isn't as heavy-handed
12012      # as -z defs.
12013      no_undefined_flag='$wl-z,text'
12014      allow_undefined_flag='$wl-z,nodefs'
12015      archive_cmds_need_lc=no
12016      hardcode_shlibpath_var=no
12017      hardcode_libdir_flag_spec='$wl-R,$libdir'
12018      hardcode_libdir_separator=':'
12019      link_all_deplibs=yes
12020      export_dynamic_flag_spec='$wl-Bexport'
12021      runpath_var='LD_RUN_PATH'
12022
12023      if test yes = "$GCC"; then
12024	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12025	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12026      else
12027	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12028	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12029      fi
12030      ;;
12031
12032    uts4*)
12033      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12034      hardcode_libdir_flag_spec='-L$libdir'
12035      hardcode_shlibpath_var=no
12036      ;;
12037
12038    *)
12039      ld_shlibs=no
12040      ;;
12041    esac
12042
12043    if test sni = "$host_vendor"; then
12044      case $host in
12045      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12046	export_dynamic_flag_spec='$wl-Blargedynsym'
12047	;;
12048      esac
12049    fi
12050  fi
12051
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12053$as_echo "$ld_shlibs" >&6; }
12054test no = "$ld_shlibs" && can_build_shared=no
12055
12056with_gnu_ld=$with_gnu_ld
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072#
12073# Do we need to explicitly link libc?
12074#
12075case "x$archive_cmds_need_lc" in
12076x|xyes)
12077  # Assume -lc should be added
12078  archive_cmds_need_lc=yes
12079
12080  if test yes,yes = "$GCC,$enable_shared"; then
12081    case $archive_cmds in
12082    *'~'*)
12083      # FIXME: we may have to deal with multi-command sequences.
12084      ;;
12085    '$CC '*)
12086      # Test whether the compiler implicitly links with -lc since on some
12087      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12088      # to ld, don't add -lc before -lgcc.
12089      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12090$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12091if ${lt_cv_archive_cmds_need_lc+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  $RM conftest*
12095	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12096
12097	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12098  (eval $ac_compile) 2>&5
12099  ac_status=$?
12100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12101  test $ac_status = 0; } 2>conftest.err; then
12102	  soname=conftest
12103	  lib=conftest
12104	  libobjs=conftest.$ac_objext
12105	  deplibs=
12106	  wl=$lt_prog_compiler_wl
12107	  pic_flag=$lt_prog_compiler_pic
12108	  compiler_flags=-v
12109	  linker_flags=-v
12110	  verstring=
12111	  output_objdir=.
12112	  libname=conftest
12113	  lt_save_allow_undefined_flag=$allow_undefined_flag
12114	  allow_undefined_flag=
12115	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12116  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12117  ac_status=$?
12118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119  test $ac_status = 0; }
12120	  then
12121	    lt_cv_archive_cmds_need_lc=no
12122	  else
12123	    lt_cv_archive_cmds_need_lc=yes
12124	  fi
12125	  allow_undefined_flag=$lt_save_allow_undefined_flag
12126	else
12127	  cat conftest.err 1>&5
12128	fi
12129	$RM conftest*
12130
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12133$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12134      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12135      ;;
12136    esac
12137  fi
12138  ;;
12139esac
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12293$as_echo_n "checking dynamic linker characteristics... " >&6; }
12294
12295if test yes = "$GCC"; then
12296  case $host_os in
12297    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12298    *) lt_awk_arg='/^libraries:/' ;;
12299  esac
12300  case $host_os in
12301    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12302    *) lt_sed_strip_eq='s|=/|/|g' ;;
12303  esac
12304  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12305  case $lt_search_path_spec in
12306  *\;*)
12307    # if the path contains ";" then we assume it to be the separator
12308    # otherwise default to the standard path separator (i.e. ":") - it is
12309    # assumed that no part of a normal pathname contains ";" but that should
12310    # okay in the real world where ";" in dirpaths is itself problematic.
12311    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12312    ;;
12313  *)
12314    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12315    ;;
12316  esac
12317  # Ok, now we have the path, separated by spaces, we can step through it
12318  # and add multilib dir if necessary...
12319  lt_tmp_lt_search_path_spec=
12320  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12321  # ...but if some path component already ends with the multilib dir we assume
12322  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12323  case "$lt_multi_os_dir; $lt_search_path_spec " in
12324  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12325    lt_multi_os_dir=
12326    ;;
12327  esac
12328  for lt_sys_path in $lt_search_path_spec; do
12329    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12330      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12331    elif test -n "$lt_multi_os_dir"; then
12332      test -d "$lt_sys_path" && \
12333	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12334    fi
12335  done
12336  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12337BEGIN {RS = " "; FS = "/|\n";} {
12338  lt_foo = "";
12339  lt_count = 0;
12340  for (lt_i = NF; lt_i > 0; lt_i--) {
12341    if ($lt_i != "" && $lt_i != ".") {
12342      if ($lt_i == "..") {
12343        lt_count++;
12344      } else {
12345        if (lt_count == 0) {
12346          lt_foo = "/" $lt_i lt_foo;
12347        } else {
12348          lt_count--;
12349        }
12350      }
12351    }
12352  }
12353  if (lt_foo != "") { lt_freq[lt_foo]++; }
12354  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12355}'`
12356  # AWK program above erroneously prepends '/' to C:/dos/paths
12357  # for these hosts.
12358  case $host_os in
12359    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12360      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12361  esac
12362  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12363else
12364  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12365fi
12366library_names_spec=
12367libname_spec='lib$name'
12368soname_spec=
12369shrext_cmds=.so
12370postinstall_cmds=
12371postuninstall_cmds=
12372finish_cmds=
12373finish_eval=
12374shlibpath_var=
12375shlibpath_overrides_runpath=unknown
12376version_type=none
12377dynamic_linker="$host_os ld.so"
12378sys_lib_dlsearch_path_spec="/lib /usr/lib"
12379need_lib_prefix=unknown
12380hardcode_into_libs=no
12381
12382# when you set need_version to no, make sure it does not cause -set_version
12383# flags to be left without arguments
12384need_version=unknown
12385
12386
12387
12388case $host_os in
12389aix3*)
12390  version_type=linux # correct to gnu/linux during the next big refactor
12391  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12392  shlibpath_var=LIBPATH
12393
12394  # AIX 3 has no versioning support, so we append a major version to the name.
12395  soname_spec='$libname$release$shared_ext$major'
12396  ;;
12397
12398aix[4-9]*)
12399  version_type=linux # correct to gnu/linux during the next big refactor
12400  need_lib_prefix=no
12401  need_version=no
12402  hardcode_into_libs=yes
12403  if test ia64 = "$host_cpu"; then
12404    # AIX 5 supports IA64
12405    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12406    shlibpath_var=LD_LIBRARY_PATH
12407  else
12408    # With GCC up to 2.95.x, collect2 would create an import file
12409    # for dependence libraries.  The import file would start with
12410    # the line '#! .'.  This would cause the generated library to
12411    # depend on '.', always an invalid library.  This was fixed in
12412    # development snapshots of GCC prior to 3.0.
12413    case $host_os in
12414      aix4 | aix4.[01] | aix4.[01].*)
12415      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12416	   echo ' yes '
12417	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12418	:
12419      else
12420	can_build_shared=no
12421      fi
12422      ;;
12423    esac
12424    # Using Import Files as archive members, it is possible to support
12425    # filename-based versioning of shared library archives on AIX. While
12426    # this would work for both with and without runtime linking, it will
12427    # prevent static linking of such archives. So we do filename-based
12428    # shared library versioning with .so extension only, which is used
12429    # when both runtime linking and shared linking is enabled.
12430    # Unfortunately, runtime linking may impact performance, so we do
12431    # not want this to be the default eventually. Also, we use the
12432    # versioned .so libs for executables only if there is the -brtl
12433    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12434    # To allow for filename-based versioning support, we need to create
12435    # libNAME.so.V as an archive file, containing:
12436    # *) an Import File, referring to the versioned filename of the
12437    #    archive as well as the shared archive member, telling the
12438    #    bitwidth (32 or 64) of that shared object, and providing the
12439    #    list of exported symbols of that shared object, eventually
12440    #    decorated with the 'weak' keyword
12441    # *) the shared object with the F_LOADONLY flag set, to really avoid
12442    #    it being seen by the linker.
12443    # At run time we better use the real file rather than another symlink,
12444    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12445
12446    case $with_aix_soname,$aix_use_runtimelinking in
12447    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12448    # soname into executable. Probably we can add versioning support to
12449    # collect2, so additional links can be useful in future.
12450    aix,yes) # traditional libtool
12451      dynamic_linker='AIX unversionable lib.so'
12452      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12453      # instead of lib<name>.a to let people know that these are not
12454      # typical AIX shared libraries.
12455      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12456      ;;
12457    aix,no) # traditional AIX only
12458      dynamic_linker='AIX lib.a(lib.so.V)'
12459      # We preserve .a as extension for shared libraries through AIX4.2
12460      # and later when we are not doing run time linking.
12461      library_names_spec='$libname$release.a $libname.a'
12462      soname_spec='$libname$release$shared_ext$major'
12463      ;;
12464    svr4,*) # full svr4 only
12465      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12466      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12467      # We do not specify a path in Import Files, so LIBPATH fires.
12468      shlibpath_overrides_runpath=yes
12469      ;;
12470    *,yes) # both, prefer svr4
12471      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12472      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12473      # unpreferred sharedlib libNAME.a needs extra handling
12474      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"'
12475      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"'
12476      # We do not specify a path in Import Files, so LIBPATH fires.
12477      shlibpath_overrides_runpath=yes
12478      ;;
12479    *,no) # both, prefer aix
12480      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12481      library_names_spec='$libname$release.a $libname.a'
12482      soname_spec='$libname$release$shared_ext$major'
12483      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12484      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)'
12485      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"'
12486      ;;
12487    esac
12488    shlibpath_var=LIBPATH
12489  fi
12490  ;;
12491
12492amigaos*)
12493  case $host_cpu in
12494  powerpc)
12495    # Since July 2007 AmigaOS4 officially supports .so libraries.
12496    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12497    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12498    ;;
12499  m68k)
12500    library_names_spec='$libname.ixlibrary $libname.a'
12501    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12502    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'
12503    ;;
12504  esac
12505  ;;
12506
12507beos*)
12508  library_names_spec='$libname$shared_ext'
12509  dynamic_linker="$host_os ld.so"
12510  shlibpath_var=LIBRARY_PATH
12511  ;;
12512
12513bsdi[45]*)
12514  version_type=linux # correct to gnu/linux during the next big refactor
12515  need_version=no
12516  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12517  soname_spec='$libname$release$shared_ext$major'
12518  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12519  shlibpath_var=LD_LIBRARY_PATH
12520  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12521  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12522  # the default ld.so.conf also contains /usr/contrib/lib and
12523  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12524  # libtool to hard-code these into programs
12525  ;;
12526
12527cygwin* | mingw* | pw32* | cegcc*)
12528  version_type=windows
12529  shrext_cmds=.dll
12530  need_version=no
12531  need_lib_prefix=no
12532
12533  case $GCC,$cc_basename in
12534  yes,*)
12535    # gcc
12536    library_names_spec='$libname.dll.a'
12537    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12538    postinstall_cmds='base_file=`basename \$file`~
12539      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12540      dldir=$destdir/`dirname \$dlpath`~
12541      test -d \$dldir || mkdir -p \$dldir~
12542      $install_prog $dir/$dlname \$dldir/$dlname~
12543      chmod a+x \$dldir/$dlname~
12544      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12545        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12546      fi'
12547    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12548      dlpath=$dir/\$dldll~
12549       $RM \$dlpath'
12550    shlibpath_overrides_runpath=yes
12551
12552    case $host_os in
12553    cygwin*)
12554      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12555      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12556
12557      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12558      ;;
12559    mingw* | cegcc*)
12560      # MinGW DLLs use traditional 'lib' prefix
12561      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12562      ;;
12563    pw32*)
12564      # pw32 DLLs use 'pw' prefix rather than 'lib'
12565      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12566      ;;
12567    esac
12568    dynamic_linker='Win32 ld.exe'
12569    ;;
12570
12571  *,cl*)
12572    # Native MSVC
12573    libname_spec='$name'
12574    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12575    library_names_spec='$libname.dll.lib'
12576
12577    case $build_os in
12578    mingw*)
12579      sys_lib_search_path_spec=
12580      lt_save_ifs=$IFS
12581      IFS=';'
12582      for lt_path in $LIB
12583      do
12584        IFS=$lt_save_ifs
12585        # Let DOS variable expansion print the short 8.3 style file name.
12586        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12587        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12588      done
12589      IFS=$lt_save_ifs
12590      # Convert to MSYS style.
12591      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12592      ;;
12593    cygwin*)
12594      # Convert to unix form, then to dos form, then back to unix form
12595      # but this time dos style (no spaces!) so that the unix form looks
12596      # like /cygdrive/c/PROGRA~1:/cygdr...
12597      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12598      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12599      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12600      ;;
12601    *)
12602      sys_lib_search_path_spec=$LIB
12603      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12604        # It is most probably a Windows format PATH.
12605        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12606      else
12607        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12608      fi
12609      # FIXME: find the short name or the path components, as spaces are
12610      # common. (e.g. "Program Files" -> "PROGRA~1")
12611      ;;
12612    esac
12613
12614    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12615    postinstall_cmds='base_file=`basename \$file`~
12616      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12617      dldir=$destdir/`dirname \$dlpath`~
12618      test -d \$dldir || mkdir -p \$dldir~
12619      $install_prog $dir/$dlname \$dldir/$dlname'
12620    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12621      dlpath=$dir/\$dldll~
12622       $RM \$dlpath'
12623    shlibpath_overrides_runpath=yes
12624    dynamic_linker='Win32 link.exe'
12625    ;;
12626
12627  *)
12628    # Assume MSVC wrapper
12629    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12630    dynamic_linker='Win32 ld.exe'
12631    ;;
12632  esac
12633  # FIXME: first we should search . and the directory the executable is in
12634  shlibpath_var=PATH
12635  ;;
12636
12637darwin* | rhapsody*)
12638  dynamic_linker="$host_os dyld"
12639  version_type=darwin
12640  need_lib_prefix=no
12641  need_version=no
12642  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12643  soname_spec='$libname$release$major$shared_ext'
12644  shlibpath_overrides_runpath=yes
12645  shlibpath_var=DYLD_LIBRARY_PATH
12646  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12647
12648  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12649  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12650  ;;
12651
12652dgux*)
12653  version_type=linux # correct to gnu/linux during the next big refactor
12654  need_lib_prefix=no
12655  need_version=no
12656  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12657  soname_spec='$libname$release$shared_ext$major'
12658  shlibpath_var=LD_LIBRARY_PATH
12659  ;;
12660
12661freebsd* | dragonfly*)
12662  # DragonFly does not have aout.  When/if they implement a new
12663  # versioning mechanism, adjust this.
12664  if test -x /usr/bin/objformat; then
12665    objformat=`/usr/bin/objformat`
12666  else
12667    case $host_os in
12668    freebsd[23].*) objformat=aout ;;
12669    *) objformat=elf ;;
12670    esac
12671  fi
12672  version_type=freebsd-$objformat
12673  case $version_type in
12674    freebsd-elf*)
12675      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12676      soname_spec='$libname$release$shared_ext$major'
12677      need_version=no
12678      need_lib_prefix=no
12679      ;;
12680    freebsd-*)
12681      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12682      need_version=yes
12683      ;;
12684  esac
12685  shlibpath_var=LD_LIBRARY_PATH
12686  case $host_os in
12687  freebsd2.*)
12688    shlibpath_overrides_runpath=yes
12689    ;;
12690  freebsd3.[01]* | freebsdelf3.[01]*)
12691    shlibpath_overrides_runpath=yes
12692    hardcode_into_libs=yes
12693    ;;
12694  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12695  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12696    shlibpath_overrides_runpath=no
12697    hardcode_into_libs=yes
12698    ;;
12699  *) # from 4.6 on, and DragonFly
12700    shlibpath_overrides_runpath=yes
12701    hardcode_into_libs=yes
12702    ;;
12703  esac
12704  ;;
12705
12706haiku*)
12707  version_type=linux # correct to gnu/linux during the next big refactor
12708  need_lib_prefix=no
12709  need_version=no
12710  dynamic_linker="$host_os runtime_loader"
12711  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12712  soname_spec='$libname$release$shared_ext$major'
12713  shlibpath_var=LIBRARY_PATH
12714  shlibpath_overrides_runpath=no
12715  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12716  hardcode_into_libs=yes
12717  ;;
12718
12719hpux9* | hpux10* | hpux11*)
12720  # Give a soname corresponding to the major version so that dld.sl refuses to
12721  # link against other versions.
12722  version_type=sunos
12723  need_lib_prefix=no
12724  need_version=no
12725  case $host_cpu in
12726  ia64*)
12727    shrext_cmds='.so'
12728    hardcode_into_libs=yes
12729    dynamic_linker="$host_os dld.so"
12730    shlibpath_var=LD_LIBRARY_PATH
12731    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12732    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12733    soname_spec='$libname$release$shared_ext$major'
12734    if test 32 = "$HPUX_IA64_MODE"; then
12735      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12736      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12737    else
12738      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12739      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12740    fi
12741    ;;
12742  hppa*64*)
12743    shrext_cmds='.sl'
12744    hardcode_into_libs=yes
12745    dynamic_linker="$host_os dld.sl"
12746    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12747    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12748    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12749    soname_spec='$libname$release$shared_ext$major'
12750    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12751    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12752    ;;
12753  *)
12754    shrext_cmds='.sl'
12755    dynamic_linker="$host_os dld.sl"
12756    shlibpath_var=SHLIB_PATH
12757    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12758    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12759    soname_spec='$libname$release$shared_ext$major'
12760    ;;
12761  esac
12762  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12763  postinstall_cmds='chmod 555 $lib'
12764  # or fails outright, so override atomically:
12765  install_override_mode=555
12766  ;;
12767
12768interix[3-9]*)
12769  version_type=linux # correct to gnu/linux during the next big refactor
12770  need_lib_prefix=no
12771  need_version=no
12772  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12773  soname_spec='$libname$release$shared_ext$major'
12774  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12775  shlibpath_var=LD_LIBRARY_PATH
12776  shlibpath_overrides_runpath=no
12777  hardcode_into_libs=yes
12778  ;;
12779
12780irix5* | irix6* | nonstopux*)
12781  case $host_os in
12782    nonstopux*) version_type=nonstopux ;;
12783    *)
12784	if test yes = "$lt_cv_prog_gnu_ld"; then
12785		version_type=linux # correct to gnu/linux during the next big refactor
12786	else
12787		version_type=irix
12788	fi ;;
12789  esac
12790  need_lib_prefix=no
12791  need_version=no
12792  soname_spec='$libname$release$shared_ext$major'
12793  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12794  case $host_os in
12795  irix5* | nonstopux*)
12796    libsuff= shlibsuff=
12797    ;;
12798  *)
12799    case $LD in # libtool.m4 will add one of these switches to LD
12800    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12801      libsuff= shlibsuff= libmagic=32-bit;;
12802    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12803      libsuff=32 shlibsuff=N32 libmagic=N32;;
12804    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12805      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12806    *) libsuff= shlibsuff= libmagic=never-match;;
12807    esac
12808    ;;
12809  esac
12810  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12811  shlibpath_overrides_runpath=no
12812  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12813  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12814  hardcode_into_libs=yes
12815  ;;
12816
12817# No shared lib support for Linux oldld, aout, or coff.
12818linux*oldld* | linux*aout* | linux*coff*)
12819  dynamic_linker=no
12820  ;;
12821
12822linux*android*)
12823  version_type=none # Android doesn't support versioned libraries.
12824  need_lib_prefix=no
12825  need_version=no
12826  library_names_spec='$libname$release$shared_ext'
12827  soname_spec='$libname$release$shared_ext'
12828  finish_cmds=
12829  shlibpath_var=LD_LIBRARY_PATH
12830  shlibpath_overrides_runpath=yes
12831
12832  # This implies no fast_install, which is unacceptable.
12833  # Some rework will be needed to allow for fast_install
12834  # before this can be enabled.
12835  hardcode_into_libs=yes
12836
12837  dynamic_linker='Android linker'
12838  # Don't embed -rpath directories since the linker doesn't support them.
12839  hardcode_libdir_flag_spec='-L$libdir'
12840  ;;
12841
12842# This must be glibc/ELF.
12843linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12844  version_type=linux # correct to gnu/linux during the next big refactor
12845  need_lib_prefix=no
12846  need_version=no
12847  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12848  soname_spec='$libname$release$shared_ext$major'
12849  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12850  shlibpath_var=LD_LIBRARY_PATH
12851  shlibpath_overrides_runpath=no
12852
12853  # Some binutils ld are patched to set DT_RUNPATH
12854  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12855  $as_echo_n "(cached) " >&6
12856else
12857  lt_cv_shlibpath_overrides_runpath=no
12858    save_LDFLAGS=$LDFLAGS
12859    save_libdir=$libdir
12860    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12861	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12862    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863/* end confdefs.h.  */
12864
12865int
12866main ()
12867{
12868
12869  ;
12870  return 0;
12871}
12872_ACEOF
12873if ac_fn_c_try_link "$LINENO"; then :
12874  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12875  lt_cv_shlibpath_overrides_runpath=yes
12876fi
12877fi
12878rm -f core conftest.err conftest.$ac_objext \
12879    conftest$ac_exeext conftest.$ac_ext
12880    LDFLAGS=$save_LDFLAGS
12881    libdir=$save_libdir
12882
12883fi
12884
12885  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12886
12887  # This implies no fast_install, which is unacceptable.
12888  # Some rework will be needed to allow for fast_install
12889  # before this can be enabled.
12890  hardcode_into_libs=yes
12891
12892  # Ideally, we could use ldconfig to report *all* directores which are
12893  # searched for libraries, however this is still not possible.  Aside from not
12894  # being certain /sbin/ldconfig is available, command
12895  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12896  # even though it is searched at run-time.  Try to do the best guess by
12897  # appending ld.so.conf contents (and includes) to the search path.
12898  if test -f /etc/ld.so.conf; then
12899    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' ' '`
12900    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12901  fi
12902
12903  # We used to test for /lib/ld.so.1 and disable shared libraries on
12904  # powerpc, because MkLinux only supported shared libraries with the
12905  # GNU dynamic linker.  Since this was broken with cross compilers,
12906  # most powerpc-linux boxes support dynamic linking these days and
12907  # people can always --disable-shared, the test was removed, and we
12908  # assume the GNU/Linux dynamic linker is in use.
12909  dynamic_linker='GNU/Linux ld.so'
12910  ;;
12911
12912netbsdelf*-gnu)
12913  version_type=linux
12914  need_lib_prefix=no
12915  need_version=no
12916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12917  soname_spec='${libname}${release}${shared_ext}$major'
12918  shlibpath_var=LD_LIBRARY_PATH
12919  shlibpath_overrides_runpath=no
12920  hardcode_into_libs=yes
12921  dynamic_linker='NetBSD ld.elf_so'
12922  ;;
12923
12924netbsd*)
12925  version_type=sunos
12926  need_lib_prefix=no
12927  need_version=no
12928  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12929    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12930    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12931    dynamic_linker='NetBSD (a.out) ld.so'
12932  else
12933    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12934    soname_spec='$libname$release$shared_ext$major'
12935    dynamic_linker='NetBSD ld.elf_so'
12936  fi
12937  shlibpath_var=LD_LIBRARY_PATH
12938  shlibpath_overrides_runpath=yes
12939  hardcode_into_libs=yes
12940  ;;
12941
12942newsos6)
12943  version_type=linux # correct to gnu/linux during the next big refactor
12944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12945  shlibpath_var=LD_LIBRARY_PATH
12946  shlibpath_overrides_runpath=yes
12947  ;;
12948
12949*nto* | *qnx*)
12950  version_type=qnx
12951  need_lib_prefix=no
12952  need_version=no
12953  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12954  soname_spec='$libname$release$shared_ext$major'
12955  shlibpath_var=LD_LIBRARY_PATH
12956  shlibpath_overrides_runpath=no
12957  hardcode_into_libs=yes
12958  dynamic_linker='ldqnx.so'
12959  ;;
12960
12961openbsd* | bitrig*)
12962  version_type=sunos
12963  sys_lib_dlsearch_path_spec=/usr/lib
12964  need_lib_prefix=no
12965  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12966    need_version=no
12967  else
12968    need_version=yes
12969  fi
12970  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12971  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12972  shlibpath_var=LD_LIBRARY_PATH
12973  shlibpath_overrides_runpath=yes
12974  ;;
12975
12976os2*)
12977  libname_spec='$name'
12978  version_type=windows
12979  shrext_cmds=.dll
12980  need_version=no
12981  need_lib_prefix=no
12982  # OS/2 can only load a DLL with a base name of 8 characters or less.
12983  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12984    v=$($ECHO $release$versuffix | tr -d .-);
12985    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12986    $ECHO $n$v`$shared_ext'
12987  library_names_spec='${libname}_dll.$libext'
12988  dynamic_linker='OS/2 ld.exe'
12989  shlibpath_var=BEGINLIBPATH
12990  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12991  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12992  postinstall_cmds='base_file=`basename \$file`~
12993    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12994    dldir=$destdir/`dirname \$dlpath`~
12995    test -d \$dldir || mkdir -p \$dldir~
12996    $install_prog $dir/$dlname \$dldir/$dlname~
12997    chmod a+x \$dldir/$dlname~
12998    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12999      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13000    fi'
13001  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13002    dlpath=$dir/\$dldll~
13003    $RM \$dlpath'
13004  ;;
13005
13006osf3* | osf4* | osf5*)
13007  version_type=osf
13008  need_lib_prefix=no
13009  need_version=no
13010  soname_spec='$libname$release$shared_ext$major'
13011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13012  shlibpath_var=LD_LIBRARY_PATH
13013  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13014  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13015  ;;
13016
13017rdos*)
13018  dynamic_linker=no
13019  ;;
13020
13021solaris*)
13022  version_type=linux # correct to gnu/linux during the next big refactor
13023  need_lib_prefix=no
13024  need_version=no
13025  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13026  soname_spec='$libname$release$shared_ext$major'
13027  shlibpath_var=LD_LIBRARY_PATH
13028  shlibpath_overrides_runpath=yes
13029  hardcode_into_libs=yes
13030  # ldd complains unless libraries are executable
13031  postinstall_cmds='chmod +x $lib'
13032  ;;
13033
13034sunos4*)
13035  version_type=sunos
13036  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13037  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13038  shlibpath_var=LD_LIBRARY_PATH
13039  shlibpath_overrides_runpath=yes
13040  if test yes = "$with_gnu_ld"; then
13041    need_lib_prefix=no
13042  fi
13043  need_version=yes
13044  ;;
13045
13046sysv4 | sysv4.3*)
13047  version_type=linux # correct to gnu/linux during the next big refactor
13048  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13049  soname_spec='$libname$release$shared_ext$major'
13050  shlibpath_var=LD_LIBRARY_PATH
13051  case $host_vendor in
13052    sni)
13053      shlibpath_overrides_runpath=no
13054      need_lib_prefix=no
13055      runpath_var=LD_RUN_PATH
13056      ;;
13057    siemens)
13058      need_lib_prefix=no
13059      ;;
13060    motorola)
13061      need_lib_prefix=no
13062      need_version=no
13063      shlibpath_overrides_runpath=no
13064      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13065      ;;
13066  esac
13067  ;;
13068
13069sysv4*MP*)
13070  if test -d /usr/nec; then
13071    version_type=linux # correct to gnu/linux during the next big refactor
13072    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13073    soname_spec='$libname$shared_ext.$major'
13074    shlibpath_var=LD_LIBRARY_PATH
13075  fi
13076  ;;
13077
13078sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13079  version_type=sco
13080  need_lib_prefix=no
13081  need_version=no
13082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13083  soname_spec='$libname$release$shared_ext$major'
13084  shlibpath_var=LD_LIBRARY_PATH
13085  shlibpath_overrides_runpath=yes
13086  hardcode_into_libs=yes
13087  if test yes = "$with_gnu_ld"; then
13088    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13089  else
13090    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13091    case $host_os in
13092      sco3.2v5*)
13093        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13094	;;
13095    esac
13096  fi
13097  sys_lib_dlsearch_path_spec='/usr/lib'
13098  ;;
13099
13100tpf*)
13101  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13102  version_type=linux # correct to gnu/linux during the next big refactor
13103  need_lib_prefix=no
13104  need_version=no
13105  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13106  shlibpath_var=LD_LIBRARY_PATH
13107  shlibpath_overrides_runpath=no
13108  hardcode_into_libs=yes
13109  ;;
13110
13111uts4*)
13112  version_type=linux # correct to gnu/linux during the next big refactor
13113  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13114  soname_spec='$libname$release$shared_ext$major'
13115  shlibpath_var=LD_LIBRARY_PATH
13116  ;;
13117
13118*)
13119  dynamic_linker=no
13120  ;;
13121esac
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13123$as_echo "$dynamic_linker" >&6; }
13124test no = "$dynamic_linker" && can_build_shared=no
13125
13126variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13127if test yes = "$GCC"; then
13128  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13129fi
13130
13131if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13132  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13133fi
13134
13135if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13136  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13137fi
13138
13139# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13140configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13141
13142# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13143func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13144
13145# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13146configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13245$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13246hardcode_action=
13247if test -n "$hardcode_libdir_flag_spec" ||
13248   test -n "$runpath_var" ||
13249   test yes = "$hardcode_automatic"; then
13250
13251  # We can hardcode non-existent directories.
13252  if test no != "$hardcode_direct" &&
13253     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13254     # have to relink, otherwise we might link with an installed library
13255     # when we should be linking with a yet-to-be-installed one
13256     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13257     test no != "$hardcode_minus_L"; then
13258    # Linking always hardcodes the temporary library directory.
13259    hardcode_action=relink
13260  else
13261    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13262    hardcode_action=immediate
13263  fi
13264else
13265  # We cannot hardcode anything, or else we can only hardcode existing
13266  # directories.
13267  hardcode_action=unsupported
13268fi
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13270$as_echo "$hardcode_action" >&6; }
13271
13272if test relink = "$hardcode_action" ||
13273   test yes = "$inherit_rpath"; then
13274  # Fast installation is not supported
13275  enable_fast_install=no
13276elif test yes = "$shlibpath_overrides_runpath" ||
13277     test no = "$enable_shared"; then
13278  # Fast installation is not necessary
13279  enable_fast_install=needless
13280fi
13281
13282
13283
13284
13285
13286
13287  if test yes != "$enable_dlopen"; then
13288  enable_dlopen=unknown
13289  enable_dlopen_self=unknown
13290  enable_dlopen_self_static=unknown
13291else
13292  lt_cv_dlopen=no
13293  lt_cv_dlopen_libs=
13294
13295  case $host_os in
13296  beos*)
13297    lt_cv_dlopen=load_add_on
13298    lt_cv_dlopen_libs=
13299    lt_cv_dlopen_self=yes
13300    ;;
13301
13302  mingw* | pw32* | cegcc*)
13303    lt_cv_dlopen=LoadLibrary
13304    lt_cv_dlopen_libs=
13305    ;;
13306
13307  cygwin*)
13308    lt_cv_dlopen=dlopen
13309    lt_cv_dlopen_libs=
13310    ;;
13311
13312  darwin*)
13313    # if libdl is installed we need to link against it
13314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13315$as_echo_n "checking for dlopen in -ldl... " >&6; }
13316if ${ac_cv_lib_dl_dlopen+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  ac_check_lib_save_LIBS=$LIBS
13320LIBS="-ldl  $LIBS"
13321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322/* end confdefs.h.  */
13323
13324/* Override any GCC internal prototype to avoid an error.
13325   Use char because int might match the return type of a GCC
13326   builtin and then its argument prototype would still apply.  */
13327#ifdef __cplusplus
13328extern "C"
13329#endif
13330char dlopen ();
13331int
13332main ()
13333{
13334return dlopen ();
13335  ;
13336  return 0;
13337}
13338_ACEOF
13339if ac_fn_c_try_link "$LINENO"; then :
13340  ac_cv_lib_dl_dlopen=yes
13341else
13342  ac_cv_lib_dl_dlopen=no
13343fi
13344rm -f core conftest.err conftest.$ac_objext \
13345    conftest$ac_exeext conftest.$ac_ext
13346LIBS=$ac_check_lib_save_LIBS
13347fi
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13349$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13350if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13351  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13352else
13353
13354    lt_cv_dlopen=dyld
13355    lt_cv_dlopen_libs=
13356    lt_cv_dlopen_self=yes
13357
13358fi
13359
13360    ;;
13361
13362  tpf*)
13363    # Don't try to run any link tests for TPF.  We know it's impossible
13364    # because TPF is a cross-compiler, and we know how we open DSOs.
13365    lt_cv_dlopen=dlopen
13366    lt_cv_dlopen_libs=
13367    lt_cv_dlopen_self=no
13368    ;;
13369
13370  *)
13371    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13372if test "x$ac_cv_func_shl_load" = xyes; then :
13373  lt_cv_dlopen=shl_load
13374else
13375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13376$as_echo_n "checking for shl_load in -ldld... " >&6; }
13377if ${ac_cv_lib_dld_shl_load+:} false; then :
13378  $as_echo_n "(cached) " >&6
13379else
13380  ac_check_lib_save_LIBS=$LIBS
13381LIBS="-ldld  $LIBS"
13382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383/* end confdefs.h.  */
13384
13385/* Override any GCC internal prototype to avoid an error.
13386   Use char because int might match the return type of a GCC
13387   builtin and then its argument prototype would still apply.  */
13388#ifdef __cplusplus
13389extern "C"
13390#endif
13391char shl_load ();
13392int
13393main ()
13394{
13395return shl_load ();
13396  ;
13397  return 0;
13398}
13399_ACEOF
13400if ac_fn_c_try_link "$LINENO"; then :
13401  ac_cv_lib_dld_shl_load=yes
13402else
13403  ac_cv_lib_dld_shl_load=no
13404fi
13405rm -f core conftest.err conftest.$ac_objext \
13406    conftest$ac_exeext conftest.$ac_ext
13407LIBS=$ac_check_lib_save_LIBS
13408fi
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13410$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13411if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13412  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13413else
13414  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13415if test "x$ac_cv_func_dlopen" = xyes; then :
13416  lt_cv_dlopen=dlopen
13417else
13418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13419$as_echo_n "checking for dlopen in -ldl... " >&6; }
13420if ${ac_cv_lib_dl_dlopen+:} false; then :
13421  $as_echo_n "(cached) " >&6
13422else
13423  ac_check_lib_save_LIBS=$LIBS
13424LIBS="-ldl  $LIBS"
13425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427
13428/* Override any GCC internal prototype to avoid an error.
13429   Use char because int might match the return type of a GCC
13430   builtin and then its argument prototype would still apply.  */
13431#ifdef __cplusplus
13432extern "C"
13433#endif
13434char dlopen ();
13435int
13436main ()
13437{
13438return dlopen ();
13439  ;
13440  return 0;
13441}
13442_ACEOF
13443if ac_fn_c_try_link "$LINENO"; then :
13444  ac_cv_lib_dl_dlopen=yes
13445else
13446  ac_cv_lib_dl_dlopen=no
13447fi
13448rm -f core conftest.err conftest.$ac_objext \
13449    conftest$ac_exeext conftest.$ac_ext
13450LIBS=$ac_check_lib_save_LIBS
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13453$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13454if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13455  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13456else
13457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13458$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13459if ${ac_cv_lib_svld_dlopen+:} false; then :
13460  $as_echo_n "(cached) " >&6
13461else
13462  ac_check_lib_save_LIBS=$LIBS
13463LIBS="-lsvld  $LIBS"
13464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465/* end confdefs.h.  */
13466
13467/* Override any GCC internal prototype to avoid an error.
13468   Use char because int might match the return type of a GCC
13469   builtin and then its argument prototype would still apply.  */
13470#ifdef __cplusplus
13471extern "C"
13472#endif
13473char dlopen ();
13474int
13475main ()
13476{
13477return dlopen ();
13478  ;
13479  return 0;
13480}
13481_ACEOF
13482if ac_fn_c_try_link "$LINENO"; then :
13483  ac_cv_lib_svld_dlopen=yes
13484else
13485  ac_cv_lib_svld_dlopen=no
13486fi
13487rm -f core conftest.err conftest.$ac_objext \
13488    conftest$ac_exeext conftest.$ac_ext
13489LIBS=$ac_check_lib_save_LIBS
13490fi
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13492$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13493if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13494  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13495else
13496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13497$as_echo_n "checking for dld_link in -ldld... " >&6; }
13498if ${ac_cv_lib_dld_dld_link+:} false; then :
13499  $as_echo_n "(cached) " >&6
13500else
13501  ac_check_lib_save_LIBS=$LIBS
13502LIBS="-ldld  $LIBS"
13503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h.  */
13505
13506/* Override any GCC internal prototype to avoid an error.
13507   Use char because int might match the return type of a GCC
13508   builtin and then its argument prototype would still apply.  */
13509#ifdef __cplusplus
13510extern "C"
13511#endif
13512char dld_link ();
13513int
13514main ()
13515{
13516return dld_link ();
13517  ;
13518  return 0;
13519}
13520_ACEOF
13521if ac_fn_c_try_link "$LINENO"; then :
13522  ac_cv_lib_dld_dld_link=yes
13523else
13524  ac_cv_lib_dld_dld_link=no
13525fi
13526rm -f core conftest.err conftest.$ac_objext \
13527    conftest$ac_exeext conftest.$ac_ext
13528LIBS=$ac_check_lib_save_LIBS
13529fi
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13531$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13532if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13533  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13534fi
13535
13536
13537fi
13538
13539
13540fi
13541
13542
13543fi
13544
13545
13546fi
13547
13548
13549fi
13550
13551    ;;
13552  esac
13553
13554  if test no = "$lt_cv_dlopen"; then
13555    enable_dlopen=no
13556  else
13557    enable_dlopen=yes
13558  fi
13559
13560  case $lt_cv_dlopen in
13561  dlopen)
13562    save_CPPFLAGS=$CPPFLAGS
13563    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13564
13565    save_LDFLAGS=$LDFLAGS
13566    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13567
13568    save_LIBS=$LIBS
13569    LIBS="$lt_cv_dlopen_libs $LIBS"
13570
13571    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13572$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13573if ${lt_cv_dlopen_self+:} false; then :
13574  $as_echo_n "(cached) " >&6
13575else
13576  	  if test yes = "$cross_compiling"; then :
13577  lt_cv_dlopen_self=cross
13578else
13579  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13580  lt_status=$lt_dlunknown
13581  cat > conftest.$ac_ext <<_LT_EOF
13582#line $LINENO "configure"
13583#include "confdefs.h"
13584
13585#if HAVE_DLFCN_H
13586#include <dlfcn.h>
13587#endif
13588
13589#include <stdio.h>
13590
13591#ifdef RTLD_GLOBAL
13592#  define LT_DLGLOBAL		RTLD_GLOBAL
13593#else
13594#  ifdef DL_GLOBAL
13595#    define LT_DLGLOBAL		DL_GLOBAL
13596#  else
13597#    define LT_DLGLOBAL		0
13598#  endif
13599#endif
13600
13601/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13602   find out it does not work in some platform. */
13603#ifndef LT_DLLAZY_OR_NOW
13604#  ifdef RTLD_LAZY
13605#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13606#  else
13607#    ifdef DL_LAZY
13608#      define LT_DLLAZY_OR_NOW		DL_LAZY
13609#    else
13610#      ifdef RTLD_NOW
13611#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13612#      else
13613#        ifdef DL_NOW
13614#          define LT_DLLAZY_OR_NOW	DL_NOW
13615#        else
13616#          define LT_DLLAZY_OR_NOW	0
13617#        endif
13618#      endif
13619#    endif
13620#  endif
13621#endif
13622
13623/* When -fvisibility=hidden is used, assume the code has been annotated
13624   correspondingly for the symbols needed.  */
13625#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13626int fnord () __attribute__((visibility("default")));
13627#endif
13628
13629int fnord () { return 42; }
13630int main ()
13631{
13632  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13633  int status = $lt_dlunknown;
13634
13635  if (self)
13636    {
13637      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13638      else
13639        {
13640	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13641          else puts (dlerror ());
13642	}
13643      /* dlclose (self); */
13644    }
13645  else
13646    puts (dlerror ());
13647
13648  return status;
13649}
13650_LT_EOF
13651  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13652  (eval $ac_link) 2>&5
13653  ac_status=$?
13654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13656    (./conftest; exit; ) >&5 2>/dev/null
13657    lt_status=$?
13658    case x$lt_status in
13659      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13660      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13661      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13662    esac
13663  else :
13664    # compilation failed
13665    lt_cv_dlopen_self=no
13666  fi
13667fi
13668rm -fr conftest*
13669
13670
13671fi
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13673$as_echo "$lt_cv_dlopen_self" >&6; }
13674
13675    if test yes = "$lt_cv_dlopen_self"; then
13676      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13677      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13678$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13679if ${lt_cv_dlopen_self_static+:} false; then :
13680  $as_echo_n "(cached) " >&6
13681else
13682  	  if test yes = "$cross_compiling"; then :
13683  lt_cv_dlopen_self_static=cross
13684else
13685  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13686  lt_status=$lt_dlunknown
13687  cat > conftest.$ac_ext <<_LT_EOF
13688#line $LINENO "configure"
13689#include "confdefs.h"
13690
13691#if HAVE_DLFCN_H
13692#include <dlfcn.h>
13693#endif
13694
13695#include <stdio.h>
13696
13697#ifdef RTLD_GLOBAL
13698#  define LT_DLGLOBAL		RTLD_GLOBAL
13699#else
13700#  ifdef DL_GLOBAL
13701#    define LT_DLGLOBAL		DL_GLOBAL
13702#  else
13703#    define LT_DLGLOBAL		0
13704#  endif
13705#endif
13706
13707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13708   find out it does not work in some platform. */
13709#ifndef LT_DLLAZY_OR_NOW
13710#  ifdef RTLD_LAZY
13711#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13712#  else
13713#    ifdef DL_LAZY
13714#      define LT_DLLAZY_OR_NOW		DL_LAZY
13715#    else
13716#      ifdef RTLD_NOW
13717#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13718#      else
13719#        ifdef DL_NOW
13720#          define LT_DLLAZY_OR_NOW	DL_NOW
13721#        else
13722#          define LT_DLLAZY_OR_NOW	0
13723#        endif
13724#      endif
13725#    endif
13726#  endif
13727#endif
13728
13729/* When -fvisibility=hidden is used, assume the code has been annotated
13730   correspondingly for the symbols needed.  */
13731#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13732int fnord () __attribute__((visibility("default")));
13733#endif
13734
13735int fnord () { return 42; }
13736int main ()
13737{
13738  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13739  int status = $lt_dlunknown;
13740
13741  if (self)
13742    {
13743      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13744      else
13745        {
13746	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13747          else puts (dlerror ());
13748	}
13749      /* dlclose (self); */
13750    }
13751  else
13752    puts (dlerror ());
13753
13754  return status;
13755}
13756_LT_EOF
13757  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13758  (eval $ac_link) 2>&5
13759  ac_status=$?
13760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13762    (./conftest; exit; ) >&5 2>/dev/null
13763    lt_status=$?
13764    case x$lt_status in
13765      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13766      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13767      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13768    esac
13769  else :
13770    # compilation failed
13771    lt_cv_dlopen_self_static=no
13772  fi
13773fi
13774rm -fr conftest*
13775
13776
13777fi
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13779$as_echo "$lt_cv_dlopen_self_static" >&6; }
13780    fi
13781
13782    CPPFLAGS=$save_CPPFLAGS
13783    LDFLAGS=$save_LDFLAGS
13784    LIBS=$save_LIBS
13785    ;;
13786  esac
13787
13788  case $lt_cv_dlopen_self in
13789  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13790  *) enable_dlopen_self=unknown ;;
13791  esac
13792
13793  case $lt_cv_dlopen_self_static in
13794  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13795  *) enable_dlopen_self_static=unknown ;;
13796  esac
13797fi
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815striplib=
13816old_striplib=
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13818$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13819if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13820  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13821  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823$as_echo "yes" >&6; }
13824else
13825# FIXME - insert some real tests, host_os isn't really good enough
13826  case $host_os in
13827  darwin*)
13828    if test -n "$STRIP"; then
13829      striplib="$STRIP -x"
13830      old_striplib="$STRIP -S"
13831      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13832$as_echo "yes" >&6; }
13833    else
13834      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835$as_echo "no" >&6; }
13836    fi
13837    ;;
13838  *)
13839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840$as_echo "no" >&6; }
13841    ;;
13842  esac
13843fi
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856  # Report what library types will actually be built
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13858$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13860$as_echo "$can_build_shared" >&6; }
13861
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13863$as_echo_n "checking whether to build shared libraries... " >&6; }
13864  test no = "$can_build_shared" && enable_shared=no
13865
13866  # On AIX, shared libraries and static libraries use the same namespace, and
13867  # are all built from PIC.
13868  case $host_os in
13869  aix3*)
13870    test yes = "$enable_shared" && enable_static=no
13871    if test -n "$RANLIB"; then
13872      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13873      postinstall_cmds='$RANLIB $lib'
13874    fi
13875    ;;
13876
13877  aix[4-9]*)
13878    if test ia64 != "$host_cpu"; then
13879      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13880      yes,aix,yes) ;;			# shared object as lib.so file only
13881      yes,svr4,*) ;;			# shared object as lib.so archive member only
13882      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13883      esac
13884    fi
13885    ;;
13886  esac
13887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13888$as_echo "$enable_shared" >&6; }
13889
13890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13891$as_echo_n "checking whether to build static libraries... " >&6; }
13892  # Make sure either enable_shared or enable_static is yes.
13893  test yes = "$enable_shared" || enable_static=yes
13894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13895$as_echo "$enable_static" >&6; }
13896
13897
13898
13899
13900fi
13901ac_ext=c
13902ac_cpp='$CPP $CPPFLAGS'
13903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13905ac_compiler_gnu=$ac_cv_c_compiler_gnu
13906
13907CC=$lt_save_CC
13908
13909      if test -n "$CXX" && ( test no != "$CXX" &&
13910    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13911    (test g++ != "$CXX"))); then
13912  ac_ext=cpp
13913ac_cpp='$CXXCPP $CPPFLAGS'
13914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13918$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13919if test -z "$CXXCPP"; then
13920  if ${ac_cv_prog_CXXCPP+:} false; then :
13921  $as_echo_n "(cached) " >&6
13922else
13923      # Double quotes because CXXCPP needs to be expanded
13924    for CXXCPP in "$CXX -E" "/lib/cpp"
13925    do
13926      ac_preproc_ok=false
13927for ac_cxx_preproc_warn_flag in '' yes
13928do
13929  # Use a header file that comes with gcc, so configuring glibc
13930  # with a fresh cross-compiler works.
13931  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13932  # <limits.h> exists even on freestanding compilers.
13933  # On the NeXT, cc -E runs the code through the compiler's parser,
13934  # not just through cpp. "Syntax error" is here to catch this case.
13935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936/* end confdefs.h.  */
13937#ifdef __STDC__
13938# include <limits.h>
13939#else
13940# include <assert.h>
13941#endif
13942		     Syntax error
13943_ACEOF
13944if ac_fn_cxx_try_cpp "$LINENO"; then :
13945
13946else
13947  # Broken: fails on valid input.
13948continue
13949fi
13950rm -f conftest.err conftest.i conftest.$ac_ext
13951
13952  # OK, works on sane cases.  Now check whether nonexistent headers
13953  # can be detected and how.
13954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955/* end confdefs.h.  */
13956#include <ac_nonexistent.h>
13957_ACEOF
13958if ac_fn_cxx_try_cpp "$LINENO"; then :
13959  # Broken: success on invalid input.
13960continue
13961else
13962  # Passes both tests.
13963ac_preproc_ok=:
13964break
13965fi
13966rm -f conftest.err conftest.i conftest.$ac_ext
13967
13968done
13969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13970rm -f conftest.i conftest.err conftest.$ac_ext
13971if $ac_preproc_ok; then :
13972  break
13973fi
13974
13975    done
13976    ac_cv_prog_CXXCPP=$CXXCPP
13977
13978fi
13979  CXXCPP=$ac_cv_prog_CXXCPP
13980else
13981  ac_cv_prog_CXXCPP=$CXXCPP
13982fi
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13984$as_echo "$CXXCPP" >&6; }
13985ac_preproc_ok=false
13986for ac_cxx_preproc_warn_flag in '' yes
13987do
13988  # Use a header file that comes with gcc, so configuring glibc
13989  # with a fresh cross-compiler works.
13990  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13991  # <limits.h> exists even on freestanding compilers.
13992  # On the NeXT, cc -E runs the code through the compiler's parser,
13993  # not just through cpp. "Syntax error" is here to catch this case.
13994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995/* end confdefs.h.  */
13996#ifdef __STDC__
13997# include <limits.h>
13998#else
13999# include <assert.h>
14000#endif
14001		     Syntax error
14002_ACEOF
14003if ac_fn_cxx_try_cpp "$LINENO"; then :
14004
14005else
14006  # Broken: fails on valid input.
14007continue
14008fi
14009rm -f conftest.err conftest.i conftest.$ac_ext
14010
14011  # OK, works on sane cases.  Now check whether nonexistent headers
14012  # can be detected and how.
14013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014/* end confdefs.h.  */
14015#include <ac_nonexistent.h>
14016_ACEOF
14017if ac_fn_cxx_try_cpp "$LINENO"; then :
14018  # Broken: success on invalid input.
14019continue
14020else
14021  # Passes both tests.
14022ac_preproc_ok=:
14023break
14024fi
14025rm -f conftest.err conftest.i conftest.$ac_ext
14026
14027done
14028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14029rm -f conftest.i conftest.err conftest.$ac_ext
14030if $ac_preproc_ok; then :
14031
14032else
14033  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14035as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14036See \`config.log' for more details" "$LINENO" 5; }
14037fi
14038
14039ac_ext=c
14040ac_cpp='$CPP $CPPFLAGS'
14041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14043ac_compiler_gnu=$ac_cv_c_compiler_gnu
14044
14045else
14046  _lt_caught_CXX_error=yes
14047fi
14048
14049ac_ext=cpp
14050ac_cpp='$CXXCPP $CPPFLAGS'
14051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14054
14055archive_cmds_need_lc_CXX=no
14056allow_undefined_flag_CXX=
14057always_export_symbols_CXX=no
14058archive_expsym_cmds_CXX=
14059compiler_needs_object_CXX=no
14060export_dynamic_flag_spec_CXX=
14061hardcode_direct_CXX=no
14062hardcode_direct_absolute_CXX=no
14063hardcode_libdir_flag_spec_CXX=
14064hardcode_libdir_separator_CXX=
14065hardcode_minus_L_CXX=no
14066hardcode_shlibpath_var_CXX=unsupported
14067hardcode_automatic_CXX=no
14068inherit_rpath_CXX=no
14069module_cmds_CXX=
14070module_expsym_cmds_CXX=
14071link_all_deplibs_CXX=unknown
14072old_archive_cmds_CXX=$old_archive_cmds
14073reload_flag_CXX=$reload_flag
14074reload_cmds_CXX=$reload_cmds
14075no_undefined_flag_CXX=
14076whole_archive_flag_spec_CXX=
14077enable_shared_with_static_runtimes_CXX=no
14078
14079# Source file extension for C++ test sources.
14080ac_ext=cpp
14081
14082# Object file extension for compiled C++ test sources.
14083objext=o
14084objext_CXX=$objext
14085
14086# No sense in running all these tests if we already determined that
14087# the CXX compiler isn't working.  Some variables (like enable_shared)
14088# are currently assumed to apply to all compilers on this platform,
14089# and will be corrupted by setting them based on a non-working compiler.
14090if test yes != "$_lt_caught_CXX_error"; then
14091  # Code to be used in simple compile tests
14092  lt_simple_compile_test_code="int some_variable = 0;"
14093
14094  # Code to be used in simple link tests
14095  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14096
14097  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14098
14099
14100
14101
14102
14103
14104# If no C compiler was specified, use CC.
14105LTCC=${LTCC-"$CC"}
14106
14107# If no C compiler flags were specified, use CFLAGS.
14108LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14109
14110# Allow CC to be a program name with arguments.
14111compiler=$CC
14112
14113
14114  # save warnings/boilerplate of simple test code
14115  ac_outfile=conftest.$ac_objext
14116echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14117eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14118_lt_compiler_boilerplate=`cat conftest.err`
14119$RM conftest*
14120
14121  ac_outfile=conftest.$ac_objext
14122echo "$lt_simple_link_test_code" >conftest.$ac_ext
14123eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14124_lt_linker_boilerplate=`cat conftest.err`
14125$RM -r conftest*
14126
14127
14128  # Allow CC to be a program name with arguments.
14129  lt_save_CC=$CC
14130  lt_save_CFLAGS=$CFLAGS
14131  lt_save_LD=$LD
14132  lt_save_GCC=$GCC
14133  GCC=$GXX
14134  lt_save_with_gnu_ld=$with_gnu_ld
14135  lt_save_path_LD=$lt_cv_path_LD
14136  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14137    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14138  else
14139    $as_unset lt_cv_prog_gnu_ld
14140  fi
14141  if test -n "${lt_cv_path_LDCXX+set}"; then
14142    lt_cv_path_LD=$lt_cv_path_LDCXX
14143  else
14144    $as_unset lt_cv_path_LD
14145  fi
14146  test -z "${LDCXX+set}" || LD=$LDCXX
14147  CC=${CXX-"c++"}
14148  CFLAGS=$CXXFLAGS
14149  compiler=$CC
14150  compiler_CXX=$CC
14151  func_cc_basename $compiler
14152cc_basename=$func_cc_basename_result
14153
14154
14155  if test -n "$compiler"; then
14156    # We don't want -fno-exception when compiling C++ code, so set the
14157    # no_builtin_flag separately
14158    if test yes = "$GXX"; then
14159      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14160    else
14161      lt_prog_compiler_no_builtin_flag_CXX=
14162    fi
14163
14164    if test yes = "$GXX"; then
14165      # Set up default GNU C++ configuration
14166
14167
14168
14169# Check whether --with-gnu-ld was given.
14170if test "${with_gnu_ld+set}" = set; then :
14171  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14172else
14173  with_gnu_ld=no
14174fi
14175
14176ac_prog=ld
14177if test yes = "$GCC"; then
14178  # Check if gcc -print-prog-name=ld gives a path.
14179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14180$as_echo_n "checking for ld used by $CC... " >&6; }
14181  case $host in
14182  *-*-mingw*)
14183    # gcc leaves a trailing carriage return, which upsets mingw
14184    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14185  *)
14186    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14187  esac
14188  case $ac_prog in
14189    # Accept absolute paths.
14190    [\\/]* | ?:[\\/]*)
14191      re_direlt='/[^/][^/]*/\.\./'
14192      # Canonicalize the pathname of ld
14193      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14194      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14195	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14196      done
14197      test -z "$LD" && LD=$ac_prog
14198      ;;
14199  "")
14200    # If it fails, then pretend we aren't using GCC.
14201    ac_prog=ld
14202    ;;
14203  *)
14204    # If it is relative, then search for the first ld in PATH.
14205    with_gnu_ld=unknown
14206    ;;
14207  esac
14208elif test yes = "$with_gnu_ld"; then
14209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14210$as_echo_n "checking for GNU ld... " >&6; }
14211else
14212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14213$as_echo_n "checking for non-GNU ld... " >&6; }
14214fi
14215if ${lt_cv_path_LD+:} false; then :
14216  $as_echo_n "(cached) " >&6
14217else
14218  if test -z "$LD"; then
14219  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14220  for ac_dir in $PATH; do
14221    IFS=$lt_save_ifs
14222    test -z "$ac_dir" && ac_dir=.
14223    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14224      lt_cv_path_LD=$ac_dir/$ac_prog
14225      # Check to see if the program is GNU ld.  I'd rather use --version,
14226      # but apparently some variants of GNU ld only accept -v.
14227      # Break only if it was the GNU/non-GNU ld that we prefer.
14228      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14229      *GNU* | *'with BFD'*)
14230	test no != "$with_gnu_ld" && break
14231	;;
14232      *)
14233	test yes != "$with_gnu_ld" && break
14234	;;
14235      esac
14236    fi
14237  done
14238  IFS=$lt_save_ifs
14239else
14240  lt_cv_path_LD=$LD # Let the user override the test with a path.
14241fi
14242fi
14243
14244LD=$lt_cv_path_LD
14245if test -n "$LD"; then
14246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14247$as_echo "$LD" >&6; }
14248else
14249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250$as_echo "no" >&6; }
14251fi
14252test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14254$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14255if ${lt_cv_prog_gnu_ld+:} false; then :
14256  $as_echo_n "(cached) " >&6
14257else
14258  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14259case `$LD -v 2>&1 </dev/null` in
14260*GNU* | *'with BFD'*)
14261  lt_cv_prog_gnu_ld=yes
14262  ;;
14263*)
14264  lt_cv_prog_gnu_ld=no
14265  ;;
14266esac
14267fi
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14269$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14270with_gnu_ld=$lt_cv_prog_gnu_ld
14271
14272
14273
14274
14275
14276
14277
14278      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14279      # archiving commands below assume that GNU ld is being used.
14280      if test yes = "$with_gnu_ld"; then
14281        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14282        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'
14283
14284        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14285        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14286
14287        # If archive_cmds runs LD, not CC, wlarc should be empty
14288        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14289        #     investigate it a little bit more. (MM)
14290        wlarc='$wl'
14291
14292        # ancient GNU ld didn't support --whole-archive et. al.
14293        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14294	  $GREP 'no-whole-archive' > /dev/null; then
14295          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14296        else
14297          whole_archive_flag_spec_CXX=
14298        fi
14299      else
14300        with_gnu_ld=no
14301        wlarc=
14302
14303        # A generic and very simple default shared library creation
14304        # command for GNU C++ for the case where it uses the native
14305        # linker, instead of GNU ld.  If possible, this setting should
14306        # overridden to take advantage of the native linker features on
14307        # the platform it is being used on.
14308        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14309      fi
14310
14311      # Commands to make compiler produce verbose output that lists
14312      # what "hidden" libraries, object files and flags are used when
14313      # linking a shared library.
14314      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14315
14316    else
14317      GXX=no
14318      with_gnu_ld=no
14319      wlarc=
14320    fi
14321
14322    # PORTME: fill in a description of your system's C++ link characteristics
14323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14324$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14325    ld_shlibs_CXX=yes
14326    case $host_os in
14327      aix3*)
14328        # FIXME: insert proper C++ library support
14329        ld_shlibs_CXX=no
14330        ;;
14331      aix[4-9]*)
14332        if test ia64 = "$host_cpu"; then
14333          # On IA64, the linker does run time linking by default, so we don't
14334          # have to do anything special.
14335          aix_use_runtimelinking=no
14336          exp_sym_flag='-Bexport'
14337          no_entry_flag=
14338        else
14339          aix_use_runtimelinking=no
14340
14341          # Test if we are trying to use run time linking or normal
14342          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14343          # have runtime linking enabled, and use it for executables.
14344          # For shared libraries, we enable/disable runtime linking
14345          # depending on the kind of the shared library created -
14346          # when "with_aix_soname,aix_use_runtimelinking" is:
14347          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14348          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14349          #            lib.a           static archive
14350          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14351          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14352          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14353          #            lib.a(lib.so.V) shared, rtl:no
14354          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14355          #            lib.a           static archive
14356          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14357	    for ld_flag in $LDFLAGS; do
14358	      case $ld_flag in
14359	      *-brtl*)
14360	        aix_use_runtimelinking=yes
14361	        break
14362	        ;;
14363	      esac
14364	    done
14365	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14366	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14367	      # so we don't have lib.a shared libs to link our executables.
14368	      # We have to force runtime linking in this case.
14369	      aix_use_runtimelinking=yes
14370	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14371	    fi
14372	    ;;
14373          esac
14374
14375          exp_sym_flag='-bexport'
14376          no_entry_flag='-bnoentry'
14377        fi
14378
14379        # When large executables or shared objects are built, AIX ld can
14380        # have problems creating the table of contents.  If linking a library
14381        # or program results in "error TOC overflow" add -mminimal-toc to
14382        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14383        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14384
14385        archive_cmds_CXX=''
14386        hardcode_direct_CXX=yes
14387        hardcode_direct_absolute_CXX=yes
14388        hardcode_libdir_separator_CXX=':'
14389        link_all_deplibs_CXX=yes
14390        file_list_spec_CXX='$wl-f,'
14391        case $with_aix_soname,$aix_use_runtimelinking in
14392        aix,*) ;;	# no import file
14393        svr4,* | *,yes) # use import file
14394          # The Import File defines what to hardcode.
14395          hardcode_direct_CXX=no
14396          hardcode_direct_absolute_CXX=no
14397          ;;
14398        esac
14399
14400        if test yes = "$GXX"; then
14401          case $host_os in aix4.[012]|aix4.[012].*)
14402          # We only want to do this on AIX 4.2 and lower, the check
14403          # below for broken collect2 doesn't work under 4.3+
14404	  collect2name=`$CC -print-prog-name=collect2`
14405	  if test -f "$collect2name" &&
14406	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14407	  then
14408	    # We have reworked collect2
14409	    :
14410	  else
14411	    # We have old collect2
14412	    hardcode_direct_CXX=unsupported
14413	    # It fails to find uninstalled libraries when the uninstalled
14414	    # path is not listed in the libpath.  Setting hardcode_minus_L
14415	    # to unsupported forces relinking
14416	    hardcode_minus_L_CXX=yes
14417	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14418	    hardcode_libdir_separator_CXX=
14419	  fi
14420          esac
14421          shared_flag='-shared'
14422	  if test yes = "$aix_use_runtimelinking"; then
14423	    shared_flag=$shared_flag' $wl-G'
14424	  fi
14425	  # Need to ensure runtime linking is disabled for the traditional
14426	  # shared library, or the linker may eventually find shared libraries
14427	  # /with/ Import File - we do not want to mix them.
14428	  shared_flag_aix='-shared'
14429	  shared_flag_svr4='-shared $wl-G'
14430        else
14431          # not using gcc
14432          if test ia64 = "$host_cpu"; then
14433	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14434	  # chokes on -Wl,-G. The following line is correct:
14435	  shared_flag='-G'
14436          else
14437	    if test yes = "$aix_use_runtimelinking"; then
14438	      shared_flag='$wl-G'
14439	    else
14440	      shared_flag='$wl-bM:SRE'
14441	    fi
14442	    shared_flag_aix='$wl-bM:SRE'
14443	    shared_flag_svr4='$wl-G'
14444          fi
14445        fi
14446
14447        export_dynamic_flag_spec_CXX='$wl-bexpall'
14448        # It seems that -bexpall does not export symbols beginning with
14449        # underscore (_), so it is better to generate a list of symbols to
14450	# export.
14451        always_export_symbols_CXX=yes
14452	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14453          # Warning - without using the other runtime loading flags (-brtl),
14454          # -berok will link without error, but may produce a broken library.
14455          # The "-G" linker flag allows undefined symbols.
14456          no_undefined_flag_CXX='-bernotok'
14457          # Determine the default libpath from the value encoded in an empty
14458          # executable.
14459          if test set = "${lt_cv_aix_libpath+set}"; then
14460  aix_libpath=$lt_cv_aix_libpath
14461else
14462  if ${lt_cv_aix_libpath__CXX+:} false; then :
14463  $as_echo_n "(cached) " >&6
14464else
14465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466/* end confdefs.h.  */
14467
14468int
14469main ()
14470{
14471
14472  ;
14473  return 0;
14474}
14475_ACEOF
14476if ac_fn_cxx_try_link "$LINENO"; then :
14477
14478  lt_aix_libpath_sed='
14479      /Import File Strings/,/^$/ {
14480	  /^0/ {
14481	      s/^0  *\([^ ]*\) *$/\1/
14482	      p
14483	  }
14484      }'
14485  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14486  # Check for a 64-bit object if we didn't find anything.
14487  if test -z "$lt_cv_aix_libpath__CXX"; then
14488    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14489  fi
14490fi
14491rm -f core conftest.err conftest.$ac_objext \
14492    conftest$ac_exeext conftest.$ac_ext
14493  if test -z "$lt_cv_aix_libpath__CXX"; then
14494    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14495  fi
14496
14497fi
14498
14499  aix_libpath=$lt_cv_aix_libpath__CXX
14500fi
14501
14502          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14503
14504          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
14505        else
14506          if test ia64 = "$host_cpu"; then
14507	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14508	    allow_undefined_flag_CXX="-z nodefs"
14509	    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"
14510          else
14511	    # Determine the default libpath from the value encoded in an
14512	    # empty executable.
14513	    if test set = "${lt_cv_aix_libpath+set}"; then
14514  aix_libpath=$lt_cv_aix_libpath
14515else
14516  if ${lt_cv_aix_libpath__CXX+:} false; then :
14517  $as_echo_n "(cached) " >&6
14518else
14519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520/* end confdefs.h.  */
14521
14522int
14523main ()
14524{
14525
14526  ;
14527  return 0;
14528}
14529_ACEOF
14530if ac_fn_cxx_try_link "$LINENO"; then :
14531
14532  lt_aix_libpath_sed='
14533      /Import File Strings/,/^$/ {
14534	  /^0/ {
14535	      s/^0  *\([^ ]*\) *$/\1/
14536	      p
14537	  }
14538      }'
14539  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14540  # Check for a 64-bit object if we didn't find anything.
14541  if test -z "$lt_cv_aix_libpath__CXX"; then
14542    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14543  fi
14544fi
14545rm -f core conftest.err conftest.$ac_objext \
14546    conftest$ac_exeext conftest.$ac_ext
14547  if test -z "$lt_cv_aix_libpath__CXX"; then
14548    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14549  fi
14550
14551fi
14552
14553  aix_libpath=$lt_cv_aix_libpath__CXX
14554fi
14555
14556	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14557	    # Warning - without using the other run time loading flags,
14558	    # -berok will link without error, but may produce a broken library.
14559	    no_undefined_flag_CXX=' $wl-bernotok'
14560	    allow_undefined_flag_CXX=' $wl-berok'
14561	    if test yes = "$with_gnu_ld"; then
14562	      # We only use this code for GNU lds that support --whole-archive.
14563	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14564	    else
14565	      # Exported symbols can be pulled into shared objects from archives
14566	      whole_archive_flag_spec_CXX='$convenience'
14567	    fi
14568	    archive_cmds_need_lc_CXX=yes
14569	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14570	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14571	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14572	    if test svr4 != "$with_aix_soname"; then
14573	      # This is similar to how AIX traditionally builds its shared
14574	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14575	      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'
14576	    fi
14577	    if test aix != "$with_aix_soname"; then
14578	      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'
14579	    else
14580	      # used by -dlpreopen to get the symbols
14581	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14582	    fi
14583	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14584          fi
14585        fi
14586        ;;
14587
14588      beos*)
14589	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14590	  allow_undefined_flag_CXX=unsupported
14591	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14592	  # support --undefined.  This deserves some investigation.  FIXME
14593	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14594	else
14595	  ld_shlibs_CXX=no
14596	fi
14597	;;
14598
14599      chorus*)
14600        case $cc_basename in
14601          *)
14602	  # FIXME: insert proper C++ library support
14603	  ld_shlibs_CXX=no
14604	  ;;
14605        esac
14606        ;;
14607
14608      cygwin* | mingw* | pw32* | cegcc*)
14609	case $GXX,$cc_basename in
14610	,cl* | no,cl*)
14611	  # Native MSVC
14612	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14613	  # no search path for DLLs.
14614	  hardcode_libdir_flag_spec_CXX=' '
14615	  allow_undefined_flag_CXX=unsupported
14616	  always_export_symbols_CXX=yes
14617	  file_list_spec_CXX='@'
14618	  # Tell ltmain to make .lib files, not .a files.
14619	  libext=lib
14620	  # Tell ltmain to make .dll files, not .so files.
14621	  shrext_cmds=.dll
14622	  # FIXME: Setting linknames here is a bad hack.
14623	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14624	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14625              cp "$export_symbols" "$output_objdir/$soname.def";
14626              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14627            else
14628              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14629            fi~
14630            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14631            linknames='
14632	  # The linker will not automatically build a static lib if we build a DLL.
14633	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14634	  enable_shared_with_static_runtimes_CXX=yes
14635	  # Don't use ranlib
14636	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14637	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14638            lt_tool_outputfile="@TOOL_OUTPUT@"~
14639            case $lt_outputfile in
14640              *.exe|*.EXE) ;;
14641              *)
14642                lt_outputfile=$lt_outputfile.exe
14643                lt_tool_outputfile=$lt_tool_outputfile.exe
14644                ;;
14645            esac~
14646            func_to_tool_file "$lt_outputfile"~
14647            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14648              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14649              $RM "$lt_outputfile.manifest";
14650            fi'
14651	  ;;
14652	*)
14653	  # g++
14654	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14655	  # as there is no search path for DLLs.
14656	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14657	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14658	  allow_undefined_flag_CXX=unsupported
14659	  always_export_symbols_CXX=no
14660	  enable_shared_with_static_runtimes_CXX=yes
14661
14662	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14663	    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'
14664	    # If the export-symbols file already is a .def file, use it as
14665	    # is; otherwise, prepend EXPORTS...
14666	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14667              cp $export_symbols $output_objdir/$soname.def;
14668            else
14669              echo EXPORTS > $output_objdir/$soname.def;
14670              cat $export_symbols >> $output_objdir/$soname.def;
14671            fi~
14672            $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'
14673	  else
14674	    ld_shlibs_CXX=no
14675	  fi
14676	  ;;
14677	esac
14678	;;
14679      darwin* | rhapsody*)
14680
14681
14682  archive_cmds_need_lc_CXX=no
14683  hardcode_direct_CXX=no
14684  hardcode_automatic_CXX=yes
14685  hardcode_shlibpath_var_CXX=unsupported
14686  if test yes = "$lt_cv_ld_force_load"; then
14687    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\"`'
14688
14689  else
14690    whole_archive_flag_spec_CXX=''
14691  fi
14692  link_all_deplibs_CXX=yes
14693  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14694  case $cc_basename in
14695     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14696     *) _lt_dar_can_shared=$GCC ;;
14697  esac
14698  if test yes = "$_lt_dar_can_shared"; then
14699    output_verbose_link_cmd=func_echo_all
14700    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"
14701    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14702    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"
14703    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"
14704       if test yes != "$lt_cv_apple_cc_single_mod"; then
14705      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"
14706      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"
14707    fi
14708
14709  else
14710  ld_shlibs_CXX=no
14711  fi
14712
14713	;;
14714
14715      os2*)
14716	hardcode_libdir_flag_spec_CXX='-L$libdir'
14717	hardcode_minus_L_CXX=yes
14718	allow_undefined_flag_CXX=unsupported
14719	shrext_cmds=.dll
14720	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14721	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14722	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14723	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14724	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14725	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14726	  emximp -o $lib $output_objdir/$libname.def'
14727	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14728	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14729	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14730	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14731	  prefix_cmds="$SED"~
14732	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14733	    prefix_cmds="$prefix_cmds -e 1d";
14734	  fi~
14735	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14736	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14737	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14738	  emximp -o $lib $output_objdir/$libname.def'
14739	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14740	enable_shared_with_static_runtimes_CXX=yes
14741	;;
14742
14743      dgux*)
14744        case $cc_basename in
14745          ec++*)
14746	    # FIXME: insert proper C++ library support
14747	    ld_shlibs_CXX=no
14748	    ;;
14749          ghcx*)
14750	    # Green Hills C++ Compiler
14751	    # FIXME: insert proper C++ library support
14752	    ld_shlibs_CXX=no
14753	    ;;
14754          *)
14755	    # FIXME: insert proper C++ library support
14756	    ld_shlibs_CXX=no
14757	    ;;
14758        esac
14759        ;;
14760
14761      freebsd2.*)
14762        # C++ shared libraries reported to be fairly broken before
14763	# switch to ELF
14764        ld_shlibs_CXX=no
14765        ;;
14766
14767      freebsd-elf*)
14768        archive_cmds_need_lc_CXX=no
14769        ;;
14770
14771      freebsd* | dragonfly*)
14772        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14773        # conventions
14774        ld_shlibs_CXX=yes
14775        ;;
14776
14777      haiku*)
14778        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14779        link_all_deplibs_CXX=yes
14780        ;;
14781
14782      hpux9*)
14783        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14784        hardcode_libdir_separator_CXX=:
14785        export_dynamic_flag_spec_CXX='$wl-E'
14786        hardcode_direct_CXX=yes
14787        hardcode_minus_L_CXX=yes # Not in the search PATH,
14788				             # but as the default
14789				             # location of the library.
14790
14791        case $cc_basename in
14792          CC*)
14793            # FIXME: insert proper C++ library support
14794            ld_shlibs_CXX=no
14795            ;;
14796          aCC*)
14797            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'
14798            # Commands to make compiler produce verbose output that lists
14799            # what "hidden" libraries, object files and flags are used when
14800            # linking a shared library.
14801            #
14802            # There doesn't appear to be a way to prevent this compiler from
14803            # explicitly linking system object files so we need to strip them
14804            # from the output so that they don't get included in the library
14805            # dependencies.
14806            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"'
14807            ;;
14808          *)
14809            if test yes = "$GXX"; then
14810              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'
14811            else
14812              # FIXME: insert proper C++ library support
14813              ld_shlibs_CXX=no
14814            fi
14815            ;;
14816        esac
14817        ;;
14818
14819      hpux10*|hpux11*)
14820        if test no = "$with_gnu_ld"; then
14821	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14822	  hardcode_libdir_separator_CXX=:
14823
14824          case $host_cpu in
14825            hppa*64*|ia64*)
14826              ;;
14827            *)
14828	      export_dynamic_flag_spec_CXX='$wl-E'
14829              ;;
14830          esac
14831        fi
14832        case $host_cpu in
14833          hppa*64*|ia64*)
14834            hardcode_direct_CXX=no
14835            hardcode_shlibpath_var_CXX=no
14836            ;;
14837          *)
14838            hardcode_direct_CXX=yes
14839            hardcode_direct_absolute_CXX=yes
14840            hardcode_minus_L_CXX=yes # Not in the search PATH,
14841					         # but as the default
14842					         # location of the library.
14843            ;;
14844        esac
14845
14846        case $cc_basename in
14847          CC*)
14848	    # FIXME: insert proper C++ library support
14849	    ld_shlibs_CXX=no
14850	    ;;
14851          aCC*)
14852	    case $host_cpu in
14853	      hppa*64*)
14854	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14855	        ;;
14856	      ia64*)
14857	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14858	        ;;
14859	      *)
14860	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14861	        ;;
14862	    esac
14863	    # Commands to make compiler produce verbose output that lists
14864	    # what "hidden" libraries, object files and flags are used when
14865	    # linking a shared library.
14866	    #
14867	    # There doesn't appear to be a way to prevent this compiler from
14868	    # explicitly linking system object files so we need to strip them
14869	    # from the output so that they don't get included in the library
14870	    # dependencies.
14871	    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"'
14872	    ;;
14873          *)
14874	    if test yes = "$GXX"; then
14875	      if test no = "$with_gnu_ld"; then
14876	        case $host_cpu in
14877	          hppa*64*)
14878	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14879	            ;;
14880	          ia64*)
14881	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14882	            ;;
14883	          *)
14884	            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'
14885	            ;;
14886	        esac
14887	      fi
14888	    else
14889	      # FIXME: insert proper C++ library support
14890	      ld_shlibs_CXX=no
14891	    fi
14892	    ;;
14893        esac
14894        ;;
14895
14896      interix[3-9]*)
14897	hardcode_direct_CXX=no
14898	hardcode_shlibpath_var_CXX=no
14899	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14900	export_dynamic_flag_spec_CXX='$wl-E'
14901	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14902	# Instead, shared libraries are loaded at an image base (0x10000000 by
14903	# default) and relocated if they conflict, which is a slow very memory
14904	# consuming and fragmenting process.  To avoid this, we pick a random,
14905	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14906	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14907	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'
14908	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'
14909	;;
14910      irix5* | irix6*)
14911        case $cc_basename in
14912          CC*)
14913	    # SGI C++
14914	    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'
14915
14916	    # Archives containing C++ object files must be created using
14917	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14918	    # necessary to make sure instantiated templates are included
14919	    # in the archive.
14920	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14921	    ;;
14922          *)
14923	    if test yes = "$GXX"; then
14924	      if test no = "$with_gnu_ld"; then
14925	        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'
14926	      else
14927	        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'
14928	      fi
14929	    fi
14930	    link_all_deplibs_CXX=yes
14931	    ;;
14932        esac
14933        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14934        hardcode_libdir_separator_CXX=:
14935        inherit_rpath_CXX=yes
14936        ;;
14937
14938      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14939        case $cc_basename in
14940          KCC*)
14941	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14942
14943	    # KCC will only create a shared library if the output file
14944	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14945	    # to its proper name (with version) after linking.
14946	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14947	    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'
14948	    # Commands to make compiler produce verbose output that lists
14949	    # what "hidden" libraries, object files and flags are used when
14950	    # linking a shared library.
14951	    #
14952	    # There doesn't appear to be a way to prevent this compiler from
14953	    # explicitly linking system object files so we need to strip them
14954	    # from the output so that they don't get included in the library
14955	    # dependencies.
14956	    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"'
14957
14958	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14959	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14960
14961	    # Archives containing C++ object files must be created using
14962	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14963	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14964	    ;;
14965	  icpc* | ecpc* )
14966	    # Intel C++
14967	    with_gnu_ld=yes
14968	    # version 8.0 and above of icpc choke on multiply defined symbols
14969	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14970	    # earlier do not add the objects themselves.
14971	    case `$CC -V 2>&1` in
14972	      *"Version 7."*)
14973	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14974		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'
14975		;;
14976	      *)  # Version 8.0 or newer
14977	        tmp_idyn=
14978	        case $host_cpu in
14979		  ia64*) tmp_idyn=' -i_dynamic';;
14980		esac
14981	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14982		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'
14983		;;
14984	    esac
14985	    archive_cmds_need_lc_CXX=no
14986	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14987	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14988	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14989	    ;;
14990          pgCC* | pgcpp*)
14991            # Portland Group C++ compiler
14992	    case `$CC -V` in
14993	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14994	      prelink_cmds_CXX='tpldir=Template.dir~
14995               rm -rf $tpldir~
14996               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14997               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14998	      old_archive_cmds_CXX='tpldir=Template.dir~
14999                rm -rf $tpldir~
15000                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15001                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15002                $RANLIB $oldlib'
15003	      archive_cmds_CXX='tpldir=Template.dir~
15004                rm -rf $tpldir~
15005                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15006                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15007	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15008                rm -rf $tpldir~
15009                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15010                $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'
15011	      ;;
15012	    *) # Version 6 and above use weak symbols
15013	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15014	      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'
15015	      ;;
15016	    esac
15017
15018	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15019	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15020	    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'
15021            ;;
15022	  cxx*)
15023	    # Compaq C++
15024	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15025	    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'
15026
15027	    runpath_var=LD_RUN_PATH
15028	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15029	    hardcode_libdir_separator_CXX=:
15030
15031	    # Commands to make compiler produce verbose output that lists
15032	    # what "hidden" libraries, object files and flags are used when
15033	    # linking a shared library.
15034	    #
15035	    # There doesn't appear to be a way to prevent this compiler from
15036	    # explicitly linking system object files so we need to strip them
15037	    # from the output so that they don't get included in the library
15038	    # dependencies.
15039	    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'
15040	    ;;
15041	  xl* | mpixl* | bgxl*)
15042	    # IBM XL 8.0 on PPC, with GNU ld
15043	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15044	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15045	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15046	    if test yes = "$supports_anon_versioning"; then
15047	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15048                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15049                echo "local: *; };" >> $output_objdir/$libname.ver~
15050                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15051	    fi
15052	    ;;
15053	  *)
15054	    case `$CC -V 2>&1 | sed 5q` in
15055	    *Sun\ C*)
15056	      # Sun C++ 5.9
15057	      no_undefined_flag_CXX=' -zdefs'
15058	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15059	      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'
15060	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15061	      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'
15062	      compiler_needs_object_CXX=yes
15063
15064	      # Not sure whether something based on
15065	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15066	      # would be better.
15067	      output_verbose_link_cmd='func_echo_all'
15068
15069	      # Archives containing C++ object files must be created using
15070	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15071	      # necessary to make sure instantiated templates are included
15072	      # in the archive.
15073	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15074	      ;;
15075	    esac
15076	    ;;
15077	esac
15078	;;
15079
15080      lynxos*)
15081        # FIXME: insert proper C++ library support
15082	ld_shlibs_CXX=no
15083	;;
15084
15085      m88k*)
15086        # FIXME: insert proper C++ library support
15087        ld_shlibs_CXX=no
15088	;;
15089
15090      mvs*)
15091        case $cc_basename in
15092          cxx*)
15093	    # FIXME: insert proper C++ library support
15094	    ld_shlibs_CXX=no
15095	    ;;
15096	  *)
15097	    # FIXME: insert proper C++ library support
15098	    ld_shlibs_CXX=no
15099	    ;;
15100	esac
15101	;;
15102
15103      netbsd*)
15104        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15105	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15106	  wlarc=
15107	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15108	  hardcode_direct_CXX=yes
15109	  hardcode_shlibpath_var_CXX=no
15110	fi
15111	# Workaround some broken pre-1.5 toolchains
15112	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15113	;;
15114
15115      *nto* | *qnx*)
15116        ld_shlibs_CXX=yes
15117	;;
15118
15119      openbsd* | bitrig*)
15120	if test -f /usr/libexec/ld.so; then
15121	  hardcode_direct_CXX=yes
15122	  hardcode_shlibpath_var_CXX=no
15123	  hardcode_direct_absolute_CXX=yes
15124	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15125	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15126	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15127	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15128	    export_dynamic_flag_spec_CXX='$wl-E'
15129	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15130	  fi
15131	  output_verbose_link_cmd=func_echo_all
15132	else
15133	  ld_shlibs_CXX=no
15134	fi
15135	;;
15136
15137      osf3* | osf4* | osf5*)
15138        case $cc_basename in
15139          KCC*)
15140	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15141
15142	    # KCC will only create a shared library if the output file
15143	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15144	    # to its proper name (with version) after linking.
15145	    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'
15146
15147	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15148	    hardcode_libdir_separator_CXX=:
15149
15150	    # Archives containing C++ object files must be created using
15151	    # the KAI C++ compiler.
15152	    case $host in
15153	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15154	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15155	    esac
15156	    ;;
15157          RCC*)
15158	    # Rational C++ 2.4.1
15159	    # FIXME: insert proper C++ library support
15160	    ld_shlibs_CXX=no
15161	    ;;
15162          cxx*)
15163	    case $host in
15164	      osf3*)
15165	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15166	        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'
15167	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15168		;;
15169	      *)
15170	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15171	        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'
15172	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15173                  echo "-hidden">> $lib.exp~
15174                  $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~
15175                  $RM $lib.exp'
15176	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15177		;;
15178	    esac
15179
15180	    hardcode_libdir_separator_CXX=:
15181
15182	    # Commands to make compiler produce verbose output that lists
15183	    # what "hidden" libraries, object files and flags are used when
15184	    # linking a shared library.
15185	    #
15186	    # There doesn't appear to be a way to prevent this compiler from
15187	    # explicitly linking system object files so we need to strip them
15188	    # from the output so that they don't get included in the library
15189	    # dependencies.
15190	    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"'
15191	    ;;
15192	  *)
15193	    if test yes,no = "$GXX,$with_gnu_ld"; then
15194	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15195	      case $host in
15196	        osf3*)
15197	          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'
15198		  ;;
15199	        *)
15200	          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'
15201		  ;;
15202	      esac
15203
15204	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15205	      hardcode_libdir_separator_CXX=:
15206
15207	      # Commands to make compiler produce verbose output that lists
15208	      # what "hidden" libraries, object files and flags are used when
15209	      # linking a shared library.
15210	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15211
15212	    else
15213	      # FIXME: insert proper C++ library support
15214	      ld_shlibs_CXX=no
15215	    fi
15216	    ;;
15217        esac
15218        ;;
15219
15220      psos*)
15221        # FIXME: insert proper C++ library support
15222        ld_shlibs_CXX=no
15223        ;;
15224
15225      sunos4*)
15226        case $cc_basename in
15227          CC*)
15228	    # Sun C++ 4.x
15229	    # FIXME: insert proper C++ library support
15230	    ld_shlibs_CXX=no
15231	    ;;
15232          lcc*)
15233	    # Lucid
15234	    # FIXME: insert proper C++ library support
15235	    ld_shlibs_CXX=no
15236	    ;;
15237          *)
15238	    # FIXME: insert proper C++ library support
15239	    ld_shlibs_CXX=no
15240	    ;;
15241        esac
15242        ;;
15243
15244      solaris*)
15245        case $cc_basename in
15246          CC* | sunCC*)
15247	    # Sun C++ 4.2, 5.x and Centerline C++
15248            archive_cmds_need_lc_CXX=yes
15249	    no_undefined_flag_CXX=' -zdefs'
15250	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15251	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15252              $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'
15253
15254	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15255	    hardcode_shlibpath_var_CXX=no
15256	    case $host_os in
15257	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15258	      *)
15259		# The compiler driver will combine and reorder linker options,
15260		# but understands '-z linker_flag'.
15261	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15262		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15263	        ;;
15264	    esac
15265	    link_all_deplibs_CXX=yes
15266
15267	    output_verbose_link_cmd='func_echo_all'
15268
15269	    # Archives containing C++ object files must be created using
15270	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15271	    # necessary to make sure instantiated templates are included
15272	    # in the archive.
15273	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15274	    ;;
15275          gcx*)
15276	    # Green Hills C++ Compiler
15277	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15278
15279	    # The C++ compiler must be used to create the archive.
15280	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15281	    ;;
15282          *)
15283	    # GNU C++ compiler with Solaris linker
15284	    if test yes,no = "$GXX,$with_gnu_ld"; then
15285	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
15286	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15287	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15288	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15289                  $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'
15290
15291	        # Commands to make compiler produce verbose output that lists
15292	        # what "hidden" libraries, object files and flags are used when
15293	        # linking a shared library.
15294	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15295	      else
15296	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
15297	        # platform.
15298	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15299	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15300                  $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'
15301
15302	        # Commands to make compiler produce verbose output that lists
15303	        # what "hidden" libraries, object files and flags are used when
15304	        # linking a shared library.
15305	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15306	      fi
15307
15308	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15309	      case $host_os in
15310		solaris2.[0-5] | solaris2.[0-5].*) ;;
15311		*)
15312		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15313		  ;;
15314	      esac
15315	    fi
15316	    ;;
15317        esac
15318        ;;
15319
15320    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15321      no_undefined_flag_CXX='$wl-z,text'
15322      archive_cmds_need_lc_CXX=no
15323      hardcode_shlibpath_var_CXX=no
15324      runpath_var='LD_RUN_PATH'
15325
15326      case $cc_basename in
15327        CC*)
15328	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15329	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15330	  ;;
15331	*)
15332	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15333	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15334	  ;;
15335      esac
15336      ;;
15337
15338      sysv5* | sco3.2v5* | sco5v6*)
15339	# Note: We CANNOT use -z defs as we might desire, because we do not
15340	# link with -lc, and that would cause any symbols used from libc to
15341	# always be unresolved, which means just about no library would
15342	# ever link correctly.  If we're not using GNU ld we use -z text
15343	# though, which does catch some bad symbols but isn't as heavy-handed
15344	# as -z defs.
15345	no_undefined_flag_CXX='$wl-z,text'
15346	allow_undefined_flag_CXX='$wl-z,nodefs'
15347	archive_cmds_need_lc_CXX=no
15348	hardcode_shlibpath_var_CXX=no
15349	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15350	hardcode_libdir_separator_CXX=':'
15351	link_all_deplibs_CXX=yes
15352	export_dynamic_flag_spec_CXX='$wl-Bexport'
15353	runpath_var='LD_RUN_PATH'
15354
15355	case $cc_basename in
15356          CC*)
15357	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15358	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15359	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15360              '"$old_archive_cmds_CXX"
15361	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15362              '"$reload_cmds_CXX"
15363	    ;;
15364	  *)
15365	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15366	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15367	    ;;
15368	esac
15369      ;;
15370
15371      tandem*)
15372        case $cc_basename in
15373          NCC*)
15374	    # NonStop-UX NCC 3.20
15375	    # FIXME: insert proper C++ library support
15376	    ld_shlibs_CXX=no
15377	    ;;
15378          *)
15379	    # FIXME: insert proper C++ library support
15380	    ld_shlibs_CXX=no
15381	    ;;
15382        esac
15383        ;;
15384
15385      vxworks*)
15386        # FIXME: insert proper C++ library support
15387        ld_shlibs_CXX=no
15388        ;;
15389
15390      *)
15391        # FIXME: insert proper C++ library support
15392        ld_shlibs_CXX=no
15393        ;;
15394    esac
15395
15396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15397$as_echo "$ld_shlibs_CXX" >&6; }
15398    test no = "$ld_shlibs_CXX" && can_build_shared=no
15399
15400    GCC_CXX=$GXX
15401    LD_CXX=$LD
15402
15403    ## CAVEAT EMPTOR:
15404    ## There is no encapsulation within the following macros, do not change
15405    ## the running order or otherwise move them around unless you know exactly
15406    ## what you are doing...
15407    # Dependencies to place before and after the object being linked:
15408predep_objects_CXX=
15409postdep_objects_CXX=
15410predeps_CXX=
15411postdeps_CXX=
15412compiler_lib_search_path_CXX=
15413
15414cat > conftest.$ac_ext <<_LT_EOF
15415class Foo
15416{
15417public:
15418  Foo (void) { a = 0; }
15419private:
15420  int a;
15421};
15422_LT_EOF
15423
15424
15425_lt_libdeps_save_CFLAGS=$CFLAGS
15426case "$CC $CFLAGS " in #(
15427*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15428*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15429*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15430esac
15431
15432if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15433  (eval $ac_compile) 2>&5
15434  ac_status=$?
15435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15436  test $ac_status = 0; }; then
15437  # Parse the compiler output and extract the necessary
15438  # objects, libraries and library flags.
15439
15440  # Sentinel used to keep track of whether or not we are before
15441  # the conftest object file.
15442  pre_test_object_deps_done=no
15443
15444  for p in `eval "$output_verbose_link_cmd"`; do
15445    case $prev$p in
15446
15447    -L* | -R* | -l*)
15448       # Some compilers place space between "-{L,R}" and the path.
15449       # Remove the space.
15450       if test x-L = "$p" ||
15451          test x-R = "$p"; then
15452	 prev=$p
15453	 continue
15454       fi
15455
15456       # Expand the sysroot to ease extracting the directories later.
15457       if test -z "$prev"; then
15458         case $p in
15459         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15460         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15461         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15462         esac
15463       fi
15464       case $p in
15465       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15466       esac
15467       if test no = "$pre_test_object_deps_done"; then
15468	 case $prev in
15469	 -L | -R)
15470	   # Internal compiler library paths should come after those
15471	   # provided the user.  The postdeps already come after the
15472	   # user supplied libs so there is no need to process them.
15473	   if test -z "$compiler_lib_search_path_CXX"; then
15474	     compiler_lib_search_path_CXX=$prev$p
15475	   else
15476	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15477	   fi
15478	   ;;
15479	 # The "-l" case would never come before the object being
15480	 # linked, so don't bother handling this case.
15481	 esac
15482       else
15483	 if test -z "$postdeps_CXX"; then
15484	   postdeps_CXX=$prev$p
15485	 else
15486	   postdeps_CXX="${postdeps_CXX} $prev$p"
15487	 fi
15488       fi
15489       prev=
15490       ;;
15491
15492    *.lto.$objext) ;; # Ignore GCC LTO objects
15493    *.$objext)
15494       # This assumes that the test object file only shows up
15495       # once in the compiler output.
15496       if test "$p" = "conftest.$objext"; then
15497	 pre_test_object_deps_done=yes
15498	 continue
15499       fi
15500
15501       if test no = "$pre_test_object_deps_done"; then
15502	 if test -z "$predep_objects_CXX"; then
15503	   predep_objects_CXX=$p
15504	 else
15505	   predep_objects_CXX="$predep_objects_CXX $p"
15506	 fi
15507       else
15508	 if test -z "$postdep_objects_CXX"; then
15509	   postdep_objects_CXX=$p
15510	 else
15511	   postdep_objects_CXX="$postdep_objects_CXX $p"
15512	 fi
15513       fi
15514       ;;
15515
15516    *) ;; # Ignore the rest.
15517
15518    esac
15519  done
15520
15521  # Clean up.
15522  rm -f a.out a.exe
15523else
15524  echo "libtool.m4: error: problem compiling CXX test program"
15525fi
15526
15527$RM -f confest.$objext
15528CFLAGS=$_lt_libdeps_save_CFLAGS
15529
15530# PORTME: override above test on systems where it is broken
15531case $host_os in
15532interix[3-9]*)
15533  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15534  # hack all around it, let's just trust "g++" to DTRT.
15535  predep_objects_CXX=
15536  postdep_objects_CXX=
15537  postdeps_CXX=
15538  ;;
15539esac
15540
15541
15542case " $postdeps_CXX " in
15543*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15544esac
15545 compiler_lib_search_dirs_CXX=
15546if test -n "${compiler_lib_search_path_CXX}"; then
15547 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15548fi
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580    lt_prog_compiler_wl_CXX=
15581lt_prog_compiler_pic_CXX=
15582lt_prog_compiler_static_CXX=
15583
15584
15585  # C++ specific cases for pic, static, wl, etc.
15586  if test yes = "$GXX"; then
15587    lt_prog_compiler_wl_CXX='-Wl,'
15588    lt_prog_compiler_static_CXX='-static'
15589
15590    case $host_os in
15591    aix*)
15592      # All AIX code is PIC.
15593      if test ia64 = "$host_cpu"; then
15594	# AIX 5 now supports IA64 processor
15595	lt_prog_compiler_static_CXX='-Bstatic'
15596      fi
15597      lt_prog_compiler_pic_CXX='-fPIC'
15598      ;;
15599
15600    amigaos*)
15601      case $host_cpu in
15602      powerpc)
15603            # see comment about AmigaOS4 .so support
15604            lt_prog_compiler_pic_CXX='-fPIC'
15605        ;;
15606      m68k)
15607            # FIXME: we need at least 68020 code to build shared libraries, but
15608            # adding the '-m68020' flag to GCC prevents building anything better,
15609            # like '-m68040'.
15610            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15611        ;;
15612      esac
15613      ;;
15614
15615    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15616      # PIC is the default for these OSes.
15617      ;;
15618    mingw* | cygwin* | os2* | pw32* | cegcc*)
15619      # This hack is so that the source file can tell whether it is being
15620      # built for inclusion in a dll (and should export symbols for example).
15621      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15622      # (--disable-auto-import) libraries
15623      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15624      case $host_os in
15625      os2*)
15626	lt_prog_compiler_static_CXX='$wl-static'
15627	;;
15628      esac
15629      ;;
15630    darwin* | rhapsody*)
15631      # PIC is the default on this platform
15632      # Common symbols not allowed in MH_DYLIB files
15633      lt_prog_compiler_pic_CXX='-fno-common'
15634      ;;
15635    *djgpp*)
15636      # DJGPP does not support shared libraries at all
15637      lt_prog_compiler_pic_CXX=
15638      ;;
15639    haiku*)
15640      # PIC is the default for Haiku.
15641      # The "-static" flag exists, but is broken.
15642      lt_prog_compiler_static_CXX=
15643      ;;
15644    interix[3-9]*)
15645      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15646      # Instead, we relocate shared libraries at runtime.
15647      ;;
15648    sysv4*MP*)
15649      if test -d /usr/nec; then
15650	lt_prog_compiler_pic_CXX=-Kconform_pic
15651      fi
15652      ;;
15653    hpux*)
15654      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15655      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15656      # sets the default TLS model and affects inlining.
15657      case $host_cpu in
15658      hppa*64*)
15659	;;
15660      *)
15661	lt_prog_compiler_pic_CXX='-fPIC'
15662	;;
15663      esac
15664      ;;
15665    *qnx* | *nto*)
15666      # QNX uses GNU C++, but need to define -shared option too, otherwise
15667      # it will coredump.
15668      lt_prog_compiler_pic_CXX='-fPIC -shared'
15669      ;;
15670    *)
15671      lt_prog_compiler_pic_CXX='-fPIC'
15672      ;;
15673    esac
15674  else
15675    case $host_os in
15676      aix[4-9]*)
15677	# All AIX code is PIC.
15678	if test ia64 = "$host_cpu"; then
15679	  # AIX 5 now supports IA64 processor
15680	  lt_prog_compiler_static_CXX='-Bstatic'
15681	else
15682	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15683	fi
15684	;;
15685      chorus*)
15686	case $cc_basename in
15687	cxch68*)
15688	  # Green Hills C++ Compiler
15689	  # _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"
15690	  ;;
15691	esac
15692	;;
15693      mingw* | cygwin* | os2* | pw32* | cegcc*)
15694	# This hack is so that the source file can tell whether it is being
15695	# built for inclusion in a dll (and should export symbols for example).
15696	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15697	;;
15698      dgux*)
15699	case $cc_basename in
15700	  ec++*)
15701	    lt_prog_compiler_pic_CXX='-KPIC'
15702	    ;;
15703	  ghcx*)
15704	    # Green Hills C++ Compiler
15705	    lt_prog_compiler_pic_CXX='-pic'
15706	    ;;
15707	  *)
15708	    ;;
15709	esac
15710	;;
15711      freebsd* | dragonfly*)
15712	# FreeBSD uses GNU C++
15713	;;
15714      hpux9* | hpux10* | hpux11*)
15715	case $cc_basename in
15716	  CC*)
15717	    lt_prog_compiler_wl_CXX='-Wl,'
15718	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15719	    if test ia64 != "$host_cpu"; then
15720	      lt_prog_compiler_pic_CXX='+Z'
15721	    fi
15722	    ;;
15723	  aCC*)
15724	    lt_prog_compiler_wl_CXX='-Wl,'
15725	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15726	    case $host_cpu in
15727	    hppa*64*|ia64*)
15728	      # +Z the default
15729	      ;;
15730	    *)
15731	      lt_prog_compiler_pic_CXX='+Z'
15732	      ;;
15733	    esac
15734	    ;;
15735	  *)
15736	    ;;
15737	esac
15738	;;
15739      interix*)
15740	# This is c89, which is MS Visual C++ (no shared libs)
15741	# Anyone wants to do a port?
15742	;;
15743      irix5* | irix6* | nonstopux*)
15744	case $cc_basename in
15745	  CC*)
15746	    lt_prog_compiler_wl_CXX='-Wl,'
15747	    lt_prog_compiler_static_CXX='-non_shared'
15748	    # CC pic flag -KPIC is the default.
15749	    ;;
15750	  *)
15751	    ;;
15752	esac
15753	;;
15754      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15755	case $cc_basename in
15756	  KCC*)
15757	    # KAI C++ Compiler
15758	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15759	    lt_prog_compiler_pic_CXX='-fPIC'
15760	    ;;
15761	  ecpc* )
15762	    # old Intel C++ for x86_64, which still supported -KPIC.
15763	    lt_prog_compiler_wl_CXX='-Wl,'
15764	    lt_prog_compiler_pic_CXX='-KPIC'
15765	    lt_prog_compiler_static_CXX='-static'
15766	    ;;
15767	  icpc* )
15768	    # Intel C++, used to be incompatible with GCC.
15769	    # ICC 10 doesn't accept -KPIC any more.
15770	    lt_prog_compiler_wl_CXX='-Wl,'
15771	    lt_prog_compiler_pic_CXX='-fPIC'
15772	    lt_prog_compiler_static_CXX='-static'
15773	    ;;
15774	  pgCC* | pgcpp*)
15775	    # Portland Group C++ compiler
15776	    lt_prog_compiler_wl_CXX='-Wl,'
15777	    lt_prog_compiler_pic_CXX='-fpic'
15778	    lt_prog_compiler_static_CXX='-Bstatic'
15779	    ;;
15780	  cxx*)
15781	    # Compaq C++
15782	    # Make sure the PIC flag is empty.  It appears that all Alpha
15783	    # Linux and Compaq Tru64 Unix objects are PIC.
15784	    lt_prog_compiler_pic_CXX=
15785	    lt_prog_compiler_static_CXX='-non_shared'
15786	    ;;
15787	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15788	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15789	    lt_prog_compiler_wl_CXX='-Wl,'
15790	    lt_prog_compiler_pic_CXX='-qpic'
15791	    lt_prog_compiler_static_CXX='-qstaticlink'
15792	    ;;
15793	  *)
15794	    case `$CC -V 2>&1 | sed 5q` in
15795	    *Sun\ C*)
15796	      # Sun C++ 5.9
15797	      lt_prog_compiler_pic_CXX='-KPIC'
15798	      lt_prog_compiler_static_CXX='-Bstatic'
15799	      lt_prog_compiler_wl_CXX='-Qoption ld '
15800	      ;;
15801	    esac
15802	    ;;
15803	esac
15804	;;
15805      lynxos*)
15806	;;
15807      m88k*)
15808	;;
15809      mvs*)
15810	case $cc_basename in
15811	  cxx*)
15812	    lt_prog_compiler_pic_CXX='-W c,exportall'
15813	    ;;
15814	  *)
15815	    ;;
15816	esac
15817	;;
15818      netbsd* | netbsdelf*-gnu)
15819	;;
15820      *qnx* | *nto*)
15821        # QNX uses GNU C++, but need to define -shared option too, otherwise
15822        # it will coredump.
15823        lt_prog_compiler_pic_CXX='-fPIC -shared'
15824        ;;
15825      osf3* | osf4* | osf5*)
15826	case $cc_basename in
15827	  KCC*)
15828	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15829	    ;;
15830	  RCC*)
15831	    # Rational C++ 2.4.1
15832	    lt_prog_compiler_pic_CXX='-pic'
15833	    ;;
15834	  cxx*)
15835	    # Digital/Compaq C++
15836	    lt_prog_compiler_wl_CXX='-Wl,'
15837	    # Make sure the PIC flag is empty.  It appears that all Alpha
15838	    # Linux and Compaq Tru64 Unix objects are PIC.
15839	    lt_prog_compiler_pic_CXX=
15840	    lt_prog_compiler_static_CXX='-non_shared'
15841	    ;;
15842	  *)
15843	    ;;
15844	esac
15845	;;
15846      psos*)
15847	;;
15848      solaris*)
15849	case $cc_basename in
15850	  CC* | sunCC*)
15851	    # Sun C++ 4.2, 5.x and Centerline C++
15852	    lt_prog_compiler_pic_CXX='-KPIC'
15853	    lt_prog_compiler_static_CXX='-Bstatic'
15854	    lt_prog_compiler_wl_CXX='-Qoption ld '
15855	    ;;
15856	  gcx*)
15857	    # Green Hills C++ Compiler
15858	    lt_prog_compiler_pic_CXX='-PIC'
15859	    ;;
15860	  *)
15861	    ;;
15862	esac
15863	;;
15864      sunos4*)
15865	case $cc_basename in
15866	  CC*)
15867	    # Sun C++ 4.x
15868	    lt_prog_compiler_pic_CXX='-pic'
15869	    lt_prog_compiler_static_CXX='-Bstatic'
15870	    ;;
15871	  lcc*)
15872	    # Lucid
15873	    lt_prog_compiler_pic_CXX='-pic'
15874	    ;;
15875	  *)
15876	    ;;
15877	esac
15878	;;
15879      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15880	case $cc_basename in
15881	  CC*)
15882	    lt_prog_compiler_wl_CXX='-Wl,'
15883	    lt_prog_compiler_pic_CXX='-KPIC'
15884	    lt_prog_compiler_static_CXX='-Bstatic'
15885	    ;;
15886	esac
15887	;;
15888      tandem*)
15889	case $cc_basename in
15890	  NCC*)
15891	    # NonStop-UX NCC 3.20
15892	    lt_prog_compiler_pic_CXX='-KPIC'
15893	    ;;
15894	  *)
15895	    ;;
15896	esac
15897	;;
15898      vxworks*)
15899	;;
15900      *)
15901	lt_prog_compiler_can_build_shared_CXX=no
15902	;;
15903    esac
15904  fi
15905
15906case $host_os in
15907  # For platforms that do not support PIC, -DPIC is meaningless:
15908  *djgpp*)
15909    lt_prog_compiler_pic_CXX=
15910    ;;
15911  *)
15912    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15913    ;;
15914esac
15915
15916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15917$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15918if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15919  $as_echo_n "(cached) " >&6
15920else
15921  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15922fi
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15924$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15925lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15926
15927#
15928# Check to make sure the PIC flag actually works.
15929#
15930if test -n "$lt_prog_compiler_pic_CXX"; then
15931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15932$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15933if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15934  $as_echo_n "(cached) " >&6
15935else
15936  lt_cv_prog_compiler_pic_works_CXX=no
15937   ac_outfile=conftest.$ac_objext
15938   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15939   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15940   # Insert the option either (1) after the last *FLAGS variable, or
15941   # (2) before a word containing "conftest.", or (3) at the end.
15942   # Note that $ac_compile itself does not contain backslashes and begins
15943   # with a dollar sign (not a hyphen), so the echo should work correctly.
15944   # The option is referenced via a variable to avoid confusing sed.
15945   lt_compile=`echo "$ac_compile" | $SED \
15946   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15947   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15948   -e 's:$: $lt_compiler_flag:'`
15949   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15950   (eval "$lt_compile" 2>conftest.err)
15951   ac_status=$?
15952   cat conftest.err >&5
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   if (exit $ac_status) && test -s "$ac_outfile"; then
15955     # The compiler can only warn and ignore the option if not recognized
15956     # So say no if there are warnings other than the usual output.
15957     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15958     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15959     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15960       lt_cv_prog_compiler_pic_works_CXX=yes
15961     fi
15962   fi
15963   $RM conftest*
15964
15965fi
15966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15967$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15968
15969if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15970    case $lt_prog_compiler_pic_CXX in
15971     "" | " "*) ;;
15972     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15973     esac
15974else
15975    lt_prog_compiler_pic_CXX=
15976     lt_prog_compiler_can_build_shared_CXX=no
15977fi
15978
15979fi
15980
15981
15982
15983
15984
15985#
15986# Check to make sure the static flag actually works.
15987#
15988wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15990$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15991if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15992  $as_echo_n "(cached) " >&6
15993else
15994  lt_cv_prog_compiler_static_works_CXX=no
15995   save_LDFLAGS=$LDFLAGS
15996   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15997   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15998   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15999     # The linker can only warn and ignore the option if not recognized
16000     # So say no if there are warnings
16001     if test -s conftest.err; then
16002       # Append any errors to the config.log.
16003       cat conftest.err 1>&5
16004       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16005       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16006       if diff conftest.exp conftest.er2 >/dev/null; then
16007         lt_cv_prog_compiler_static_works_CXX=yes
16008       fi
16009     else
16010       lt_cv_prog_compiler_static_works_CXX=yes
16011     fi
16012   fi
16013   $RM -r conftest*
16014   LDFLAGS=$save_LDFLAGS
16015
16016fi
16017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16018$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16019
16020if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16021    :
16022else
16023    lt_prog_compiler_static_CXX=
16024fi
16025
16026
16027
16028
16029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16030$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16031if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16032  $as_echo_n "(cached) " >&6
16033else
16034  lt_cv_prog_compiler_c_o_CXX=no
16035   $RM -r conftest 2>/dev/null
16036   mkdir conftest
16037   cd conftest
16038   mkdir out
16039   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16040
16041   lt_compiler_flag="-o out/conftest2.$ac_objext"
16042   # Insert the option either (1) after the last *FLAGS variable, or
16043   # (2) before a word containing "conftest.", or (3) at the end.
16044   # Note that $ac_compile itself does not contain backslashes and begins
16045   # with a dollar sign (not a hyphen), so the echo should work correctly.
16046   lt_compile=`echo "$ac_compile" | $SED \
16047   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16048   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16049   -e 's:$: $lt_compiler_flag:'`
16050   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16051   (eval "$lt_compile" 2>out/conftest.err)
16052   ac_status=$?
16053   cat out/conftest.err >&5
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16056   then
16057     # The compiler can only warn and ignore the option if not recognized
16058     # So say no if there are warnings
16059     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16060     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16061     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16062       lt_cv_prog_compiler_c_o_CXX=yes
16063     fi
16064   fi
16065   chmod u+w . 2>&5
16066   $RM conftest*
16067   # SGI C++ compiler will create directory out/ii_files/ for
16068   # template instantiation
16069   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16070   $RM out/* && rmdir out
16071   cd ..
16072   $RM -r conftest
16073   $RM conftest*
16074
16075fi
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16077$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16078
16079
16080
16081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16082$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16083if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16084  $as_echo_n "(cached) " >&6
16085else
16086  lt_cv_prog_compiler_c_o_CXX=no
16087   $RM -r conftest 2>/dev/null
16088   mkdir conftest
16089   cd conftest
16090   mkdir out
16091   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16092
16093   lt_compiler_flag="-o out/conftest2.$ac_objext"
16094   # Insert the option either (1) after the last *FLAGS variable, or
16095   # (2) before a word containing "conftest.", or (3) at the end.
16096   # Note that $ac_compile itself does not contain backslashes and begins
16097   # with a dollar sign (not a hyphen), so the echo should work correctly.
16098   lt_compile=`echo "$ac_compile" | $SED \
16099   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16100   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16101   -e 's:$: $lt_compiler_flag:'`
16102   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16103   (eval "$lt_compile" 2>out/conftest.err)
16104   ac_status=$?
16105   cat out/conftest.err >&5
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16108   then
16109     # The compiler can only warn and ignore the option if not recognized
16110     # So say no if there are warnings
16111     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16112     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16113     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16114       lt_cv_prog_compiler_c_o_CXX=yes
16115     fi
16116   fi
16117   chmod u+w . 2>&5
16118   $RM conftest*
16119   # SGI C++ compiler will create directory out/ii_files/ for
16120   # template instantiation
16121   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16122   $RM out/* && rmdir out
16123   cd ..
16124   $RM -r conftest
16125   $RM conftest*
16126
16127fi
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16129$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16130
16131
16132
16133
16134hard_links=nottested
16135if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16136  # do not overwrite the value of need_locks provided by the user
16137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16138$as_echo_n "checking if we can lock with hard links... " >&6; }
16139  hard_links=yes
16140  $RM conftest*
16141  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16142  touch conftest.a
16143  ln conftest.a conftest.b 2>&5 || hard_links=no
16144  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16146$as_echo "$hard_links" >&6; }
16147  if test no = "$hard_links"; then
16148    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16149$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16150    need_locks=warn
16151  fi
16152else
16153  need_locks=no
16154fi
16155
16156
16157
16158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16159$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16160
16161  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16162  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16163  case $host_os in
16164  aix[4-9]*)
16165    # If we're using GNU nm, then we don't want the "-C" option.
16166    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16167    # Without the "-l" option, or with the "-B" option, AIX nm treats
16168    # weak defined symbols like other global defined symbols, whereas
16169    # GNU nm marks them as "W".
16170    # While the 'weak' keyword is ignored in the Export File, we need
16171    # it in the Import File for the 'aix-soname' feature, so we have
16172    # to replace the "-B" option with "-P" for AIX nm.
16173    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16174      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'
16175    else
16176      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'
16177    fi
16178    ;;
16179  pw32*)
16180    export_symbols_cmds_CXX=$ltdll_cmds
16181    ;;
16182  cygwin* | mingw* | cegcc*)
16183    case $cc_basename in
16184    cl*)
16185      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16186      ;;
16187    *)
16188      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'
16189      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16190      ;;
16191    esac
16192    ;;
16193  linux* | k*bsd*-gnu | gnu*)
16194    link_all_deplibs_CXX=no
16195    ;;
16196  *)
16197    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16198    ;;
16199  esac
16200
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16202$as_echo "$ld_shlibs_CXX" >&6; }
16203test no = "$ld_shlibs_CXX" && can_build_shared=no
16204
16205with_gnu_ld_CXX=$with_gnu_ld
16206
16207
16208
16209
16210
16211
16212#
16213# Do we need to explicitly link libc?
16214#
16215case "x$archive_cmds_need_lc_CXX" in
16216x|xyes)
16217  # Assume -lc should be added
16218  archive_cmds_need_lc_CXX=yes
16219
16220  if test yes,yes = "$GCC,$enable_shared"; then
16221    case $archive_cmds_CXX in
16222    *'~'*)
16223      # FIXME: we may have to deal with multi-command sequences.
16224      ;;
16225    '$CC '*)
16226      # Test whether the compiler implicitly links with -lc since on some
16227      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16228      # to ld, don't add -lc before -lgcc.
16229      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16230$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16231if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16232  $as_echo_n "(cached) " >&6
16233else
16234  $RM conftest*
16235	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16236
16237	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16238  (eval $ac_compile) 2>&5
16239  ac_status=$?
16240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16241  test $ac_status = 0; } 2>conftest.err; then
16242	  soname=conftest
16243	  lib=conftest
16244	  libobjs=conftest.$ac_objext
16245	  deplibs=
16246	  wl=$lt_prog_compiler_wl_CXX
16247	  pic_flag=$lt_prog_compiler_pic_CXX
16248	  compiler_flags=-v
16249	  linker_flags=-v
16250	  verstring=
16251	  output_objdir=.
16252	  libname=conftest
16253	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16254	  allow_undefined_flag_CXX=
16255	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16256  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16257  ac_status=$?
16258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16259  test $ac_status = 0; }
16260	  then
16261	    lt_cv_archive_cmds_need_lc_CXX=no
16262	  else
16263	    lt_cv_archive_cmds_need_lc_CXX=yes
16264	  fi
16265	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16266	else
16267	  cat conftest.err 1>&5
16268	fi
16269	$RM conftest*
16270
16271fi
16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16273$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16274      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16275      ;;
16276    esac
16277  fi
16278  ;;
16279esac
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16343$as_echo_n "checking dynamic linker characteristics... " >&6; }
16344
16345library_names_spec=
16346libname_spec='lib$name'
16347soname_spec=
16348shrext_cmds=.so
16349postinstall_cmds=
16350postuninstall_cmds=
16351finish_cmds=
16352finish_eval=
16353shlibpath_var=
16354shlibpath_overrides_runpath=unknown
16355version_type=none
16356dynamic_linker="$host_os ld.so"
16357sys_lib_dlsearch_path_spec="/lib /usr/lib"
16358need_lib_prefix=unknown
16359hardcode_into_libs=no
16360
16361# when you set need_version to no, make sure it does not cause -set_version
16362# flags to be left without arguments
16363need_version=unknown
16364
16365
16366
16367case $host_os in
16368aix3*)
16369  version_type=linux # correct to gnu/linux during the next big refactor
16370  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16371  shlibpath_var=LIBPATH
16372
16373  # AIX 3 has no versioning support, so we append a major version to the name.
16374  soname_spec='$libname$release$shared_ext$major'
16375  ;;
16376
16377aix[4-9]*)
16378  version_type=linux # correct to gnu/linux during the next big refactor
16379  need_lib_prefix=no
16380  need_version=no
16381  hardcode_into_libs=yes
16382  if test ia64 = "$host_cpu"; then
16383    # AIX 5 supports IA64
16384    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16385    shlibpath_var=LD_LIBRARY_PATH
16386  else
16387    # With GCC up to 2.95.x, collect2 would create an import file
16388    # for dependence libraries.  The import file would start with
16389    # the line '#! .'.  This would cause the generated library to
16390    # depend on '.', always an invalid library.  This was fixed in
16391    # development snapshots of GCC prior to 3.0.
16392    case $host_os in
16393      aix4 | aix4.[01] | aix4.[01].*)
16394      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16395	   echo ' yes '
16396	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16397	:
16398      else
16399	can_build_shared=no
16400      fi
16401      ;;
16402    esac
16403    # Using Import Files as archive members, it is possible to support
16404    # filename-based versioning of shared library archives on AIX. While
16405    # this would work for both with and without runtime linking, it will
16406    # prevent static linking of such archives. So we do filename-based
16407    # shared library versioning with .so extension only, which is used
16408    # when both runtime linking and shared linking is enabled.
16409    # Unfortunately, runtime linking may impact performance, so we do
16410    # not want this to be the default eventually. Also, we use the
16411    # versioned .so libs for executables only if there is the -brtl
16412    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16413    # To allow for filename-based versioning support, we need to create
16414    # libNAME.so.V as an archive file, containing:
16415    # *) an Import File, referring to the versioned filename of the
16416    #    archive as well as the shared archive member, telling the
16417    #    bitwidth (32 or 64) of that shared object, and providing the
16418    #    list of exported symbols of that shared object, eventually
16419    #    decorated with the 'weak' keyword
16420    # *) the shared object with the F_LOADONLY flag set, to really avoid
16421    #    it being seen by the linker.
16422    # At run time we better use the real file rather than another symlink,
16423    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16424
16425    case $with_aix_soname,$aix_use_runtimelinking in
16426    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16427    # soname into executable. Probably we can add versioning support to
16428    # collect2, so additional links can be useful in future.
16429    aix,yes) # traditional libtool
16430      dynamic_linker='AIX unversionable lib.so'
16431      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16432      # instead of lib<name>.a to let people know that these are not
16433      # typical AIX shared libraries.
16434      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16435      ;;
16436    aix,no) # traditional AIX only
16437      dynamic_linker='AIX lib.a(lib.so.V)'
16438      # We preserve .a as extension for shared libraries through AIX4.2
16439      # and later when we are not doing run time linking.
16440      library_names_spec='$libname$release.a $libname.a'
16441      soname_spec='$libname$release$shared_ext$major'
16442      ;;
16443    svr4,*) # full svr4 only
16444      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16445      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16446      # We do not specify a path in Import Files, so LIBPATH fires.
16447      shlibpath_overrides_runpath=yes
16448      ;;
16449    *,yes) # both, prefer svr4
16450      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16451      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16452      # unpreferred sharedlib libNAME.a needs extra handling
16453      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"'
16454      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"'
16455      # We do not specify a path in Import Files, so LIBPATH fires.
16456      shlibpath_overrides_runpath=yes
16457      ;;
16458    *,no) # both, prefer aix
16459      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16460      library_names_spec='$libname$release.a $libname.a'
16461      soname_spec='$libname$release$shared_ext$major'
16462      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16463      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)'
16464      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"'
16465      ;;
16466    esac
16467    shlibpath_var=LIBPATH
16468  fi
16469  ;;
16470
16471amigaos*)
16472  case $host_cpu in
16473  powerpc)
16474    # Since July 2007 AmigaOS4 officially supports .so libraries.
16475    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16476    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16477    ;;
16478  m68k)
16479    library_names_spec='$libname.ixlibrary $libname.a'
16480    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16481    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'
16482    ;;
16483  esac
16484  ;;
16485
16486beos*)
16487  library_names_spec='$libname$shared_ext'
16488  dynamic_linker="$host_os ld.so"
16489  shlibpath_var=LIBRARY_PATH
16490  ;;
16491
16492bsdi[45]*)
16493  version_type=linux # correct to gnu/linux during the next big refactor
16494  need_version=no
16495  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16496  soname_spec='$libname$release$shared_ext$major'
16497  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16498  shlibpath_var=LD_LIBRARY_PATH
16499  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16500  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16501  # the default ld.so.conf also contains /usr/contrib/lib and
16502  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16503  # libtool to hard-code these into programs
16504  ;;
16505
16506cygwin* | mingw* | pw32* | cegcc*)
16507  version_type=windows
16508  shrext_cmds=.dll
16509  need_version=no
16510  need_lib_prefix=no
16511
16512  case $GCC,$cc_basename in
16513  yes,*)
16514    # gcc
16515    library_names_spec='$libname.dll.a'
16516    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16517    postinstall_cmds='base_file=`basename \$file`~
16518      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16519      dldir=$destdir/`dirname \$dlpath`~
16520      test -d \$dldir || mkdir -p \$dldir~
16521      $install_prog $dir/$dlname \$dldir/$dlname~
16522      chmod a+x \$dldir/$dlname~
16523      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16524        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16525      fi'
16526    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16527      dlpath=$dir/\$dldll~
16528       $RM \$dlpath'
16529    shlibpath_overrides_runpath=yes
16530
16531    case $host_os in
16532    cygwin*)
16533      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16534      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16535
16536      ;;
16537    mingw* | cegcc*)
16538      # MinGW DLLs use traditional 'lib' prefix
16539      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16540      ;;
16541    pw32*)
16542      # pw32 DLLs use 'pw' prefix rather than 'lib'
16543      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16544      ;;
16545    esac
16546    dynamic_linker='Win32 ld.exe'
16547    ;;
16548
16549  *,cl*)
16550    # Native MSVC
16551    libname_spec='$name'
16552    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16553    library_names_spec='$libname.dll.lib'
16554
16555    case $build_os in
16556    mingw*)
16557      sys_lib_search_path_spec=
16558      lt_save_ifs=$IFS
16559      IFS=';'
16560      for lt_path in $LIB
16561      do
16562        IFS=$lt_save_ifs
16563        # Let DOS variable expansion print the short 8.3 style file name.
16564        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16565        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16566      done
16567      IFS=$lt_save_ifs
16568      # Convert to MSYS style.
16569      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16570      ;;
16571    cygwin*)
16572      # Convert to unix form, then to dos form, then back to unix form
16573      # but this time dos style (no spaces!) so that the unix form looks
16574      # like /cygdrive/c/PROGRA~1:/cygdr...
16575      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16576      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16577      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16578      ;;
16579    *)
16580      sys_lib_search_path_spec=$LIB
16581      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16582        # It is most probably a Windows format PATH.
16583        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16584      else
16585        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16586      fi
16587      # FIXME: find the short name or the path components, as spaces are
16588      # common. (e.g. "Program Files" -> "PROGRA~1")
16589      ;;
16590    esac
16591
16592    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16593    postinstall_cmds='base_file=`basename \$file`~
16594      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16595      dldir=$destdir/`dirname \$dlpath`~
16596      test -d \$dldir || mkdir -p \$dldir~
16597      $install_prog $dir/$dlname \$dldir/$dlname'
16598    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16599      dlpath=$dir/\$dldll~
16600       $RM \$dlpath'
16601    shlibpath_overrides_runpath=yes
16602    dynamic_linker='Win32 link.exe'
16603    ;;
16604
16605  *)
16606    # Assume MSVC wrapper
16607    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16608    dynamic_linker='Win32 ld.exe'
16609    ;;
16610  esac
16611  # FIXME: first we should search . and the directory the executable is in
16612  shlibpath_var=PATH
16613  ;;
16614
16615darwin* | rhapsody*)
16616  dynamic_linker="$host_os dyld"
16617  version_type=darwin
16618  need_lib_prefix=no
16619  need_version=no
16620  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16621  soname_spec='$libname$release$major$shared_ext'
16622  shlibpath_overrides_runpath=yes
16623  shlibpath_var=DYLD_LIBRARY_PATH
16624  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16625
16626  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16627  ;;
16628
16629dgux*)
16630  version_type=linux # correct to gnu/linux during the next big refactor
16631  need_lib_prefix=no
16632  need_version=no
16633  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16634  soname_spec='$libname$release$shared_ext$major'
16635  shlibpath_var=LD_LIBRARY_PATH
16636  ;;
16637
16638freebsd* | dragonfly*)
16639  # DragonFly does not have aout.  When/if they implement a new
16640  # versioning mechanism, adjust this.
16641  if test -x /usr/bin/objformat; then
16642    objformat=`/usr/bin/objformat`
16643  else
16644    case $host_os in
16645    freebsd[23].*) objformat=aout ;;
16646    *) objformat=elf ;;
16647    esac
16648  fi
16649  version_type=freebsd-$objformat
16650  case $version_type in
16651    freebsd-elf*)
16652      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16653      soname_spec='$libname$release$shared_ext$major'
16654      need_version=no
16655      need_lib_prefix=no
16656      ;;
16657    freebsd-*)
16658      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16659      need_version=yes
16660      ;;
16661  esac
16662  shlibpath_var=LD_LIBRARY_PATH
16663  case $host_os in
16664  freebsd2.*)
16665    shlibpath_overrides_runpath=yes
16666    ;;
16667  freebsd3.[01]* | freebsdelf3.[01]*)
16668    shlibpath_overrides_runpath=yes
16669    hardcode_into_libs=yes
16670    ;;
16671  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16672  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16673    shlibpath_overrides_runpath=no
16674    hardcode_into_libs=yes
16675    ;;
16676  *) # from 4.6 on, and DragonFly
16677    shlibpath_overrides_runpath=yes
16678    hardcode_into_libs=yes
16679    ;;
16680  esac
16681  ;;
16682
16683haiku*)
16684  version_type=linux # correct to gnu/linux during the next big refactor
16685  need_lib_prefix=no
16686  need_version=no
16687  dynamic_linker="$host_os runtime_loader"
16688  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16689  soname_spec='$libname$release$shared_ext$major'
16690  shlibpath_var=LIBRARY_PATH
16691  shlibpath_overrides_runpath=no
16692  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16693  hardcode_into_libs=yes
16694  ;;
16695
16696hpux9* | hpux10* | hpux11*)
16697  # Give a soname corresponding to the major version so that dld.sl refuses to
16698  # link against other versions.
16699  version_type=sunos
16700  need_lib_prefix=no
16701  need_version=no
16702  case $host_cpu in
16703  ia64*)
16704    shrext_cmds='.so'
16705    hardcode_into_libs=yes
16706    dynamic_linker="$host_os dld.so"
16707    shlibpath_var=LD_LIBRARY_PATH
16708    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16709    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16710    soname_spec='$libname$release$shared_ext$major'
16711    if test 32 = "$HPUX_IA64_MODE"; then
16712      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16713      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16714    else
16715      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16716      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16717    fi
16718    ;;
16719  hppa*64*)
16720    shrext_cmds='.sl'
16721    hardcode_into_libs=yes
16722    dynamic_linker="$host_os dld.sl"
16723    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16724    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16725    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16726    soname_spec='$libname$release$shared_ext$major'
16727    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16728    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16729    ;;
16730  *)
16731    shrext_cmds='.sl'
16732    dynamic_linker="$host_os dld.sl"
16733    shlibpath_var=SHLIB_PATH
16734    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16735    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16736    soname_spec='$libname$release$shared_ext$major'
16737    ;;
16738  esac
16739  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16740  postinstall_cmds='chmod 555 $lib'
16741  # or fails outright, so override atomically:
16742  install_override_mode=555
16743  ;;
16744
16745interix[3-9]*)
16746  version_type=linux # correct to gnu/linux during the next big refactor
16747  need_lib_prefix=no
16748  need_version=no
16749  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16750  soname_spec='$libname$release$shared_ext$major'
16751  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16752  shlibpath_var=LD_LIBRARY_PATH
16753  shlibpath_overrides_runpath=no
16754  hardcode_into_libs=yes
16755  ;;
16756
16757irix5* | irix6* | nonstopux*)
16758  case $host_os in
16759    nonstopux*) version_type=nonstopux ;;
16760    *)
16761	if test yes = "$lt_cv_prog_gnu_ld"; then
16762		version_type=linux # correct to gnu/linux during the next big refactor
16763	else
16764		version_type=irix
16765	fi ;;
16766  esac
16767  need_lib_prefix=no
16768  need_version=no
16769  soname_spec='$libname$release$shared_ext$major'
16770  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16771  case $host_os in
16772  irix5* | nonstopux*)
16773    libsuff= shlibsuff=
16774    ;;
16775  *)
16776    case $LD in # libtool.m4 will add one of these switches to LD
16777    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16778      libsuff= shlibsuff= libmagic=32-bit;;
16779    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16780      libsuff=32 shlibsuff=N32 libmagic=N32;;
16781    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16782      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16783    *) libsuff= shlibsuff= libmagic=never-match;;
16784    esac
16785    ;;
16786  esac
16787  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16788  shlibpath_overrides_runpath=no
16789  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16790  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16791  hardcode_into_libs=yes
16792  ;;
16793
16794# No shared lib support for Linux oldld, aout, or coff.
16795linux*oldld* | linux*aout* | linux*coff*)
16796  dynamic_linker=no
16797  ;;
16798
16799linux*android*)
16800  version_type=none # Android doesn't support versioned libraries.
16801  need_lib_prefix=no
16802  need_version=no
16803  library_names_spec='$libname$release$shared_ext'
16804  soname_spec='$libname$release$shared_ext'
16805  finish_cmds=
16806  shlibpath_var=LD_LIBRARY_PATH
16807  shlibpath_overrides_runpath=yes
16808
16809  # This implies no fast_install, which is unacceptable.
16810  # Some rework will be needed to allow for fast_install
16811  # before this can be enabled.
16812  hardcode_into_libs=yes
16813
16814  dynamic_linker='Android linker'
16815  # Don't embed -rpath directories since the linker doesn't support them.
16816  hardcode_libdir_flag_spec_CXX='-L$libdir'
16817  ;;
16818
16819# This must be glibc/ELF.
16820linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16821  version_type=linux # correct to gnu/linux during the next big refactor
16822  need_lib_prefix=no
16823  need_version=no
16824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16825  soname_spec='$libname$release$shared_ext$major'
16826  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16827  shlibpath_var=LD_LIBRARY_PATH
16828  shlibpath_overrides_runpath=no
16829
16830  # Some binutils ld are patched to set DT_RUNPATH
16831  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16832  $as_echo_n "(cached) " >&6
16833else
16834  lt_cv_shlibpath_overrides_runpath=no
16835    save_LDFLAGS=$LDFLAGS
16836    save_libdir=$libdir
16837    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16838	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16839    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840/* end confdefs.h.  */
16841
16842int
16843main ()
16844{
16845
16846  ;
16847  return 0;
16848}
16849_ACEOF
16850if ac_fn_cxx_try_link "$LINENO"; then :
16851  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16852  lt_cv_shlibpath_overrides_runpath=yes
16853fi
16854fi
16855rm -f core conftest.err conftest.$ac_objext \
16856    conftest$ac_exeext conftest.$ac_ext
16857    LDFLAGS=$save_LDFLAGS
16858    libdir=$save_libdir
16859
16860fi
16861
16862  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16863
16864  # This implies no fast_install, which is unacceptable.
16865  # Some rework will be needed to allow for fast_install
16866  # before this can be enabled.
16867  hardcode_into_libs=yes
16868
16869  # Ideally, we could use ldconfig to report *all* directores which are
16870  # searched for libraries, however this is still not possible.  Aside from not
16871  # being certain /sbin/ldconfig is available, command
16872  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16873  # even though it is searched at run-time.  Try to do the best guess by
16874  # appending ld.so.conf contents (and includes) to the search path.
16875  if test -f /etc/ld.so.conf; then
16876    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' ' '`
16877    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16878  fi
16879
16880  # We used to test for /lib/ld.so.1 and disable shared libraries on
16881  # powerpc, because MkLinux only supported shared libraries with the
16882  # GNU dynamic linker.  Since this was broken with cross compilers,
16883  # most powerpc-linux boxes support dynamic linking these days and
16884  # people can always --disable-shared, the test was removed, and we
16885  # assume the GNU/Linux dynamic linker is in use.
16886  dynamic_linker='GNU/Linux ld.so'
16887  ;;
16888
16889netbsdelf*-gnu)
16890  version_type=linux
16891  need_lib_prefix=no
16892  need_version=no
16893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16894  soname_spec='${libname}${release}${shared_ext}$major'
16895  shlibpath_var=LD_LIBRARY_PATH
16896  shlibpath_overrides_runpath=no
16897  hardcode_into_libs=yes
16898  dynamic_linker='NetBSD ld.elf_so'
16899  ;;
16900
16901netbsd*)
16902  version_type=sunos
16903  need_lib_prefix=no
16904  need_version=no
16905  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16906    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16907    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16908    dynamic_linker='NetBSD (a.out) ld.so'
16909  else
16910    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16911    soname_spec='$libname$release$shared_ext$major'
16912    dynamic_linker='NetBSD ld.elf_so'
16913  fi
16914  shlibpath_var=LD_LIBRARY_PATH
16915  shlibpath_overrides_runpath=yes
16916  hardcode_into_libs=yes
16917  ;;
16918
16919newsos6)
16920  version_type=linux # correct to gnu/linux during the next big refactor
16921  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16922  shlibpath_var=LD_LIBRARY_PATH
16923  shlibpath_overrides_runpath=yes
16924  ;;
16925
16926*nto* | *qnx*)
16927  version_type=qnx
16928  need_lib_prefix=no
16929  need_version=no
16930  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16931  soname_spec='$libname$release$shared_ext$major'
16932  shlibpath_var=LD_LIBRARY_PATH
16933  shlibpath_overrides_runpath=no
16934  hardcode_into_libs=yes
16935  dynamic_linker='ldqnx.so'
16936  ;;
16937
16938openbsd* | bitrig*)
16939  version_type=sunos
16940  sys_lib_dlsearch_path_spec=/usr/lib
16941  need_lib_prefix=no
16942  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16943    need_version=no
16944  else
16945    need_version=yes
16946  fi
16947  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16948  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16949  shlibpath_var=LD_LIBRARY_PATH
16950  shlibpath_overrides_runpath=yes
16951  ;;
16952
16953os2*)
16954  libname_spec='$name'
16955  version_type=windows
16956  shrext_cmds=.dll
16957  need_version=no
16958  need_lib_prefix=no
16959  # OS/2 can only load a DLL with a base name of 8 characters or less.
16960  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16961    v=$($ECHO $release$versuffix | tr -d .-);
16962    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16963    $ECHO $n$v`$shared_ext'
16964  library_names_spec='${libname}_dll.$libext'
16965  dynamic_linker='OS/2 ld.exe'
16966  shlibpath_var=BEGINLIBPATH
16967  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16968  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16969  postinstall_cmds='base_file=`basename \$file`~
16970    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16971    dldir=$destdir/`dirname \$dlpath`~
16972    test -d \$dldir || mkdir -p \$dldir~
16973    $install_prog $dir/$dlname \$dldir/$dlname~
16974    chmod a+x \$dldir/$dlname~
16975    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16976      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16977    fi'
16978  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16979    dlpath=$dir/\$dldll~
16980    $RM \$dlpath'
16981  ;;
16982
16983osf3* | osf4* | osf5*)
16984  version_type=osf
16985  need_lib_prefix=no
16986  need_version=no
16987  soname_spec='$libname$release$shared_ext$major'
16988  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16989  shlibpath_var=LD_LIBRARY_PATH
16990  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16991  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16992  ;;
16993
16994rdos*)
16995  dynamic_linker=no
16996  ;;
16997
16998solaris*)
16999  version_type=linux # correct to gnu/linux during the next big refactor
17000  need_lib_prefix=no
17001  need_version=no
17002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17003  soname_spec='$libname$release$shared_ext$major'
17004  shlibpath_var=LD_LIBRARY_PATH
17005  shlibpath_overrides_runpath=yes
17006  hardcode_into_libs=yes
17007  # ldd complains unless libraries are executable
17008  postinstall_cmds='chmod +x $lib'
17009  ;;
17010
17011sunos4*)
17012  version_type=sunos
17013  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17014  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17015  shlibpath_var=LD_LIBRARY_PATH
17016  shlibpath_overrides_runpath=yes
17017  if test yes = "$with_gnu_ld"; then
17018    need_lib_prefix=no
17019  fi
17020  need_version=yes
17021  ;;
17022
17023sysv4 | sysv4.3*)
17024  version_type=linux # correct to gnu/linux during the next big refactor
17025  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17026  soname_spec='$libname$release$shared_ext$major'
17027  shlibpath_var=LD_LIBRARY_PATH
17028  case $host_vendor in
17029    sni)
17030      shlibpath_overrides_runpath=no
17031      need_lib_prefix=no
17032      runpath_var=LD_RUN_PATH
17033      ;;
17034    siemens)
17035      need_lib_prefix=no
17036      ;;
17037    motorola)
17038      need_lib_prefix=no
17039      need_version=no
17040      shlibpath_overrides_runpath=no
17041      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17042      ;;
17043  esac
17044  ;;
17045
17046sysv4*MP*)
17047  if test -d /usr/nec; then
17048    version_type=linux # correct to gnu/linux during the next big refactor
17049    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17050    soname_spec='$libname$shared_ext.$major'
17051    shlibpath_var=LD_LIBRARY_PATH
17052  fi
17053  ;;
17054
17055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17056  version_type=sco
17057  need_lib_prefix=no
17058  need_version=no
17059  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17060  soname_spec='$libname$release$shared_ext$major'
17061  shlibpath_var=LD_LIBRARY_PATH
17062  shlibpath_overrides_runpath=yes
17063  hardcode_into_libs=yes
17064  if test yes = "$with_gnu_ld"; then
17065    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17066  else
17067    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17068    case $host_os in
17069      sco3.2v5*)
17070        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17071	;;
17072    esac
17073  fi
17074  sys_lib_dlsearch_path_spec='/usr/lib'
17075  ;;
17076
17077tpf*)
17078  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17079  version_type=linux # correct to gnu/linux during the next big refactor
17080  need_lib_prefix=no
17081  need_version=no
17082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17083  shlibpath_var=LD_LIBRARY_PATH
17084  shlibpath_overrides_runpath=no
17085  hardcode_into_libs=yes
17086  ;;
17087
17088uts4*)
17089  version_type=linux # correct to gnu/linux during the next big refactor
17090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17091  soname_spec='$libname$release$shared_ext$major'
17092  shlibpath_var=LD_LIBRARY_PATH
17093  ;;
17094
17095*)
17096  dynamic_linker=no
17097  ;;
17098esac
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17100$as_echo "$dynamic_linker" >&6; }
17101test no = "$dynamic_linker" && can_build_shared=no
17102
17103variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17104if test yes = "$GCC"; then
17105  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17106fi
17107
17108if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17109  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17110fi
17111
17112if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17113  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17114fi
17115
17116# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17117configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17118
17119# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17120func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17121
17122# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17123configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17165$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17166hardcode_action_CXX=
17167if test -n "$hardcode_libdir_flag_spec_CXX" ||
17168   test -n "$runpath_var_CXX" ||
17169   test yes = "$hardcode_automatic_CXX"; then
17170
17171  # We can hardcode non-existent directories.
17172  if test no != "$hardcode_direct_CXX" &&
17173     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17174     # have to relink, otherwise we might link with an installed library
17175     # when we should be linking with a yet-to-be-installed one
17176     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17177     test no != "$hardcode_minus_L_CXX"; then
17178    # Linking always hardcodes the temporary library directory.
17179    hardcode_action_CXX=relink
17180  else
17181    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17182    hardcode_action_CXX=immediate
17183  fi
17184else
17185  # We cannot hardcode anything, or else we can only hardcode existing
17186  # directories.
17187  hardcode_action_CXX=unsupported
17188fi
17189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17190$as_echo "$hardcode_action_CXX" >&6; }
17191
17192if test relink = "$hardcode_action_CXX" ||
17193   test yes = "$inherit_rpath_CXX"; then
17194  # Fast installation is not supported
17195  enable_fast_install=no
17196elif test yes = "$shlibpath_overrides_runpath" ||
17197     test no = "$enable_shared"; then
17198  # Fast installation is not necessary
17199  enable_fast_install=needless
17200fi
17201
17202
17203
17204
17205
17206
17207
17208  fi # test -n "$compiler"
17209
17210  CC=$lt_save_CC
17211  CFLAGS=$lt_save_CFLAGS
17212  LDCXX=$LD
17213  LD=$lt_save_LD
17214  GCC=$lt_save_GCC
17215  with_gnu_ld=$lt_save_with_gnu_ld
17216  lt_cv_path_LDCXX=$lt_cv_path_LD
17217  lt_cv_path_LD=$lt_save_path_LD
17218  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17219  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17220fi # test yes != "$_lt_caught_CXX_error"
17221
17222ac_ext=c
17223ac_cpp='$CPP $CPPFLAGS'
17224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17226ac_compiler_gnu=$ac_cv_c_compiler_gnu
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242        ac_config_commands="$ac_config_commands libtool"
17243
17244
17245
17246
17247# Only expand once:
17248
17249
17250
17251
17252# The cast to long int works around a bug in the HP C Compiler
17253# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17254# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17255# This bug is HP SR number 8606223364.
17256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17257$as_echo_n "checking size of int... " >&6; }
17258if ${ac_cv_sizeof_int+:} false; then :
17259  $as_echo_n "(cached) " >&6
17260else
17261  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
17262
17263else
17264  if test "$ac_cv_type_int" = yes; then
17265     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17267as_fn_error 77 "cannot compute sizeof (int)
17268See \`config.log' for more details" "$LINENO" 5; }
17269   else
17270     ac_cv_sizeof_int=0
17271   fi
17272fi
17273
17274fi
17275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17276$as_echo "$ac_cv_sizeof_int" >&6; }
17277
17278
17279
17280cat >>confdefs.h <<_ACEOF
17281#define SIZEOF_INT $ac_cv_sizeof_int
17282_ACEOF
17283
17284
17285# The cast to long int works around a bug in the HP C Compiler
17286# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17287# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17288# This bug is HP SR number 8606223364.
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17290$as_echo_n "checking size of long... " >&6; }
17291if ${ac_cv_sizeof_long+:} false; then :
17292  $as_echo_n "(cached) " >&6
17293else
17294  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
17295
17296else
17297  if test "$ac_cv_type_long" = yes; then
17298     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17300as_fn_error 77 "cannot compute sizeof (long)
17301See \`config.log' for more details" "$LINENO" 5; }
17302   else
17303     ac_cv_sizeof_long=0
17304   fi
17305fi
17306
17307fi
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17309$as_echo "$ac_cv_sizeof_long" >&6; }
17310
17311
17312
17313cat >>confdefs.h <<_ACEOF
17314#define SIZEOF_LONG $ac_cv_sizeof_long
17315_ACEOF
17316
17317
17318# The cast to long int works around a bug in the HP C Compiler
17319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17321# This bug is HP SR number 8606223364.
17322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17323$as_echo_n "checking size of size_t... " >&6; }
17324if ${ac_cv_sizeof_size_t+:} false; then :
17325  $as_echo_n "(cached) " >&6
17326else
17327  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
17328
17329else
17330  if test "$ac_cv_type_size_t" = yes; then
17331     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17333as_fn_error 77 "cannot compute sizeof (size_t)
17334See \`config.log' for more details" "$LINENO" 5; }
17335   else
17336     ac_cv_sizeof_size_t=0
17337   fi
17338fi
17339
17340fi
17341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17342$as_echo "$ac_cv_sizeof_size_t" >&6; }
17343
17344
17345
17346cat >>confdefs.h <<_ACEOF
17347#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17348_ACEOF
17349
17350
17351# The cast to long int works around a bug in the HP C Compiler
17352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17354# This bug is HP SR number 8606223364.
17355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17356$as_echo_n "checking size of off_t... " >&6; }
17357if ${ac_cv_sizeof_off_t+:} false; then :
17358  $as_echo_n "(cached) " >&6
17359else
17360  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
17361
17362else
17363  if test "$ac_cv_type_off_t" = yes; then
17364     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17366as_fn_error 77 "cannot compute sizeof (off_t)
17367See \`config.log' for more details" "$LINENO" 5; }
17368   else
17369     ac_cv_sizeof_off_t=0
17370   fi
17371fi
17372
17373fi
17374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17375$as_echo "$ac_cv_sizeof_off_t" >&6; }
17376
17377
17378
17379cat >>confdefs.h <<_ACEOF
17380#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17381_ACEOF
17382
17383
17384# The cast to long int works around a bug in the HP C Compiler
17385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17387# This bug is HP SR number 8606223364.
17388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17389$as_echo_n "checking size of time_t... " >&6; }
17390if ${ac_cv_sizeof_time_t+:} false; then :
17391  $as_echo_n "(cached) " >&6
17392else
17393  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
17394
17395else
17396  if test "$ac_cv_type_time_t" = yes; then
17397     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17399as_fn_error 77 "cannot compute sizeof (time_t)
17400See \`config.log' for more details" "$LINENO" 5; }
17401   else
17402     ac_cv_sizeof_time_t=0
17403   fi
17404fi
17405
17406fi
17407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
17408$as_echo "$ac_cv_sizeof_time_t" >&6; }
17409
17410
17411
17412cat >>confdefs.h <<_ACEOF
17413#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
17414_ACEOF
17415
17416
17417
17418# The cast to long int works around a bug in the HP C Compiler
17419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17421# This bug is HP SR number 8606223364.
17422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
17423$as_echo_n "checking size of long long int... " >&6; }
17424if ${ac_cv_sizeof_long_long_int+:} false; then :
17425  $as_echo_n "(cached) " >&6
17426else
17427  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
17428
17429else
17430  if test "$ac_cv_type_long_long_int" = yes; then
17431     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17433as_fn_error 77 "cannot compute sizeof (long long int)
17434See \`config.log' for more details" "$LINENO" 5; }
17435   else
17436     ac_cv_sizeof_long_long_int=0
17437   fi
17438fi
17439
17440fi
17441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
17442$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
17443
17444
17445
17446cat >>confdefs.h <<_ACEOF
17447#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
17448_ACEOF
17449
17450
17451# The cast to long int works around a bug in the HP C Compiler
17452# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17453# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17454# This bug is HP SR number 8606223364.
17455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
17456$as_echo_n "checking size of unsigned long long int... " >&6; }
17457if ${ac_cv_sizeof_unsigned_long_long_int+:} false; then :
17458  $as_echo_n "(cached) " >&6
17459else
17460  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int"        "$ac_includes_default"; then :
17461
17462else
17463  if test "$ac_cv_type_unsigned_long_long_int" = yes; then
17464     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17466as_fn_error 77 "cannot compute sizeof (unsigned long long int)
17467See \`config.log' for more details" "$LINENO" 5; }
17468   else
17469     ac_cv_sizeof_unsigned_long_long_int=0
17470   fi
17471fi
17472
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
17475$as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
17476
17477
17478
17479cat >>confdefs.h <<_ACEOF
17480#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
17481_ACEOF
17482
17483
17484if test "$ac_cv_sizeof_long_long_int" -eq 8 -a \
17485        "$ac_cv_sizeof_unsigned_long_long_int" -eq 8; then
17486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17487$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17488if ${ac_cv_c_bigendian+:} false; then :
17489  $as_echo_n "(cached) " >&6
17490else
17491  ac_cv_c_bigendian=unknown
17492    # See if we're dealing with a universal compiler.
17493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494/* end confdefs.h.  */
17495#ifndef __APPLE_CC__
17496	       not a universal capable compiler
17497	     #endif
17498	     typedef int dummy;
17499
17500_ACEOF
17501if ac_fn_c_try_compile "$LINENO"; then :
17502
17503	# Check for potential -arch flags.  It is not universal unless
17504	# there are at least two -arch flags with different values.
17505	ac_arch=
17506	ac_prev=
17507	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17508	 if test -n "$ac_prev"; then
17509	   case $ac_word in
17510	     i?86 | x86_64 | ppc | ppc64)
17511	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17512		 ac_arch=$ac_word
17513	       else
17514		 ac_cv_c_bigendian=universal
17515		 break
17516	       fi
17517	       ;;
17518	   esac
17519	   ac_prev=
17520	 elif test "x$ac_word" = "x-arch"; then
17521	   ac_prev=arch
17522	 fi
17523       done
17524fi
17525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526    if test $ac_cv_c_bigendian = unknown; then
17527      # See if sys/param.h defines the BYTE_ORDER macro.
17528      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529/* end confdefs.h.  */
17530#include <sys/types.h>
17531	     #include <sys/param.h>
17532
17533int
17534main ()
17535{
17536#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17537		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17538		     && LITTLE_ENDIAN)
17539	      bogus endian macros
17540	     #endif
17541
17542  ;
17543  return 0;
17544}
17545_ACEOF
17546if ac_fn_c_try_compile "$LINENO"; then :
17547  # It does; now see whether it defined to BIG_ENDIAN or not.
17548	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549/* end confdefs.h.  */
17550#include <sys/types.h>
17551		#include <sys/param.h>
17552
17553int
17554main ()
17555{
17556#if BYTE_ORDER != BIG_ENDIAN
17557		 not big endian
17558		#endif
17559
17560  ;
17561  return 0;
17562}
17563_ACEOF
17564if ac_fn_c_try_compile "$LINENO"; then :
17565  ac_cv_c_bigendian=yes
17566else
17567  ac_cv_c_bigendian=no
17568fi
17569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570fi
17571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17572    fi
17573    if test $ac_cv_c_bigendian = unknown; then
17574      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17575      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576/* end confdefs.h.  */
17577#include <limits.h>
17578
17579int
17580main ()
17581{
17582#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17583	      bogus endian macros
17584	     #endif
17585
17586  ;
17587  return 0;
17588}
17589_ACEOF
17590if ac_fn_c_try_compile "$LINENO"; then :
17591  # It does; now see whether it defined to _BIG_ENDIAN or not.
17592	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593/* end confdefs.h.  */
17594#include <limits.h>
17595
17596int
17597main ()
17598{
17599#ifndef _BIG_ENDIAN
17600		 not big endian
17601		#endif
17602
17603  ;
17604  return 0;
17605}
17606_ACEOF
17607if ac_fn_c_try_compile "$LINENO"; then :
17608  ac_cv_c_bigendian=yes
17609else
17610  ac_cv_c_bigendian=no
17611fi
17612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613fi
17614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615    fi
17616    if test $ac_cv_c_bigendian = unknown; then
17617      # Compile a test program.
17618      if test "$cross_compiling" = yes; then :
17619  # Try to guess by grepping values from an object file.
17620	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621/* end confdefs.h.  */
17622short int ascii_mm[] =
17623		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17624		short int ascii_ii[] =
17625		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17626		int use_ascii (int i) {
17627		  return ascii_mm[i] + ascii_ii[i];
17628		}
17629		short int ebcdic_ii[] =
17630		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17631		short int ebcdic_mm[] =
17632		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17633		int use_ebcdic (int i) {
17634		  return ebcdic_mm[i] + ebcdic_ii[i];
17635		}
17636		extern int foo;
17637
17638int
17639main ()
17640{
17641return use_ascii (foo) == use_ebcdic (foo);
17642  ;
17643  return 0;
17644}
17645_ACEOF
17646if ac_fn_c_try_compile "$LINENO"; then :
17647  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17648	      ac_cv_c_bigendian=yes
17649	    fi
17650	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17651	      if test "$ac_cv_c_bigendian" = unknown; then
17652		ac_cv_c_bigendian=no
17653	      else
17654		# finding both strings is unlikely to happen, but who knows?
17655		ac_cv_c_bigendian=unknown
17656	      fi
17657	    fi
17658fi
17659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660else
17661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662/* end confdefs.h.  */
17663$ac_includes_default
17664int
17665main ()
17666{
17667
17668	     /* Are we little or big endian?  From Harbison&Steele.  */
17669	     union
17670	     {
17671	       long int l;
17672	       char c[sizeof (long int)];
17673	     } u;
17674	     u.l = 1;
17675	     return u.c[sizeof (long int) - 1] == 1;
17676
17677  ;
17678  return 0;
17679}
17680_ACEOF
17681if ac_fn_c_try_run "$LINENO"; then :
17682  ac_cv_c_bigendian=no
17683else
17684  ac_cv_c_bigendian=yes
17685fi
17686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17687  conftest.$ac_objext conftest.beam conftest.$ac_ext
17688fi
17689
17690    fi
17691fi
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17693$as_echo "$ac_cv_c_bigendian" >&6; }
17694 case $ac_cv_c_bigendian in #(
17695   yes)
17696     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17697;; #(
17698   no)
17699      ;; #(
17700   universal)
17701
17702$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17703
17704     ;; #(
17705   *)
17706     as_fn_error $? "unknown endianness
17707 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17708 esac
17709
17710else
17711  as_fn_error $? "The Cyrus IMAPD requires support for long long int" "$LINENO" 5
17712fi
17713
17714
17715   # CMU GUESS RUNPATH SWITCH
17716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
17717$as_echo_n "checking for runpath switch... " >&6; }
17718if ${andrew_cv_runpath_switch+:} false; then :
17719  $as_echo_n "(cached) " >&6
17720else
17721
17722    # first, try -R
17723    SAVE_LDFLAGS="${LDFLAGS}"
17724    LDFLAGS="-R /usr/lib"
17725    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726/* end confdefs.h.  */
17727
17728int
17729main ()
17730{
17731
17732  ;
17733  return 0;
17734}
17735_ACEOF
17736if ac_fn_c_try_link "$LINENO"; then :
17737  andrew_cv_runpath_switch="-R"
17738else
17739
17740        LDFLAGS="-Wl,-rpath,/usr/lib"
17741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742/* end confdefs.h.  */
17743
17744int
17745main ()
17746{
17747
17748  ;
17749  return 0;
17750}
17751_ACEOF
17752if ac_fn_c_try_link "$LINENO"; then :
17753  andrew_cv_runpath_switch="-Wl,-rpath,"
17754else
17755  andrew_cv_runpath_switch="none"
17756fi
17757rm -f core conftest.err conftest.$ac_objext \
17758    conftest$ac_exeext conftest.$ac_ext
17759
17760fi
17761rm -f core conftest.err conftest.$ac_objext \
17762    conftest$ac_exeext conftest.$ac_ext
17763  LDFLAGS="${SAVE_LDFLAGS}"
17764
17765fi
17766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_cv_runpath_switch" >&5
17767$as_echo "$andrew_cv_runpath_switch" >&6; }
17768
17769for ac_header in unistd.h sys/select.h sys/param.h stdarg.h
17770do :
17771  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17772ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17774  cat >>confdefs.h <<_ACEOF
17775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17776_ACEOF
17777
17778fi
17779
17780done
17781
17782ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17783if test "x$ac_cv_func_memmove" = xyes; then :
17784  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17785
17786else
17787  case " $LIBOBJS " in
17788  *" memmove.$ac_objext "* ) ;;
17789  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17790 ;;
17791esac
17792
17793fi
17794
17795ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17796if test "x$ac_cv_func_strcasecmp" = xyes; then :
17797  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17798
17799else
17800  case " $LIBOBJS " in
17801  *" strcasecmp.$ac_objext "* ) ;;
17802  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17803 ;;
17804esac
17805
17806fi
17807
17808ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
17809if test "x$ac_cv_func_ftruncate" = xyes; then :
17810  $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
17811
17812else
17813  case " $LIBOBJS " in
17814  *" ftruncate.$ac_objext "* ) ;;
17815  *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
17816 ;;
17817esac
17818
17819fi
17820
17821ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17822if test "x$ac_cv_func_strerror" = xyes; then :
17823  $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
17824
17825else
17826  case " $LIBOBJS " in
17827  *" strerror.$ac_objext "* ) ;;
17828  *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
17829 ;;
17830esac
17831
17832fi
17833
17834ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
17835if test "x$ac_cv_func_posix_fadvise" = xyes; then :
17836  $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
17837
17838else
17839  case " $LIBOBJS " in
17840  *" posix_fadvise.$ac_objext "* ) ;;
17841  *) LIBOBJS="$LIBOBJS posix_fadvise.$ac_objext"
17842 ;;
17843esac
17844
17845fi
17846
17847ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
17848if test "x$ac_cv_func_strsep" = xyes; then :
17849  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
17850
17851else
17852  case " $LIBOBJS " in
17853  *" strsep.$ac_objext "* ) ;;
17854  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
17855 ;;
17856esac
17857
17858fi
17859
17860ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
17861if test "x$ac_cv_func_memmem" = xyes; then :
17862  $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h
17863
17864else
17865  case " $LIBOBJS " in
17866  *" memmem.$ac_objext "* ) ;;
17867  *) LIBOBJS="$LIBOBJS memmem.$ac_objext"
17868 ;;
17869esac
17870
17871fi
17872
17873
17874for ac_func in strlcat strlcpy strnchr getgrouplist fmemopen pselect getline
17875do :
17876  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17877ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17878if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17879  cat >>confdefs.h <<_ACEOF
17880#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17881_ACEOF
17882
17883fi
17884done
17885
17886ac_header_dirent=no
17887for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17888  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17890$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
17891if eval \${$as_ac_Header+:} false; then :
17892  $as_echo_n "(cached) " >&6
17893else
17894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895/* end confdefs.h.  */
17896#include <sys/types.h>
17897#include <$ac_hdr>
17898
17899int
17900main ()
17901{
17902if ((DIR *) 0)
17903return 0;
17904  ;
17905  return 0;
17906}
17907_ACEOF
17908if ac_fn_c_try_compile "$LINENO"; then :
17909  eval "$as_ac_Header=yes"
17910else
17911  eval "$as_ac_Header=no"
17912fi
17913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914fi
17915eval ac_res=\$$as_ac_Header
17916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17917$as_echo "$ac_res" >&6; }
17918if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17919  cat >>confdefs.h <<_ACEOF
17920#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17921_ACEOF
17922
17923ac_header_dirent=$ac_hdr; break
17924fi
17925
17926done
17927# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17928if test $ac_header_dirent = dirent.h; then
17929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17930$as_echo_n "checking for library containing opendir... " >&6; }
17931if ${ac_cv_search_opendir+:} false; then :
17932  $as_echo_n "(cached) " >&6
17933else
17934  ac_func_search_save_LIBS=$LIBS
17935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936/* end confdefs.h.  */
17937
17938/* Override any GCC internal prototype to avoid an error.
17939   Use char because int might match the return type of a GCC
17940   builtin and then its argument prototype would still apply.  */
17941#ifdef __cplusplus
17942extern "C"
17943#endif
17944char opendir ();
17945int
17946main ()
17947{
17948return opendir ();
17949  ;
17950  return 0;
17951}
17952_ACEOF
17953for ac_lib in '' dir; do
17954  if test -z "$ac_lib"; then
17955    ac_res="none required"
17956  else
17957    ac_res=-l$ac_lib
17958    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17959  fi
17960  if ac_fn_c_try_link "$LINENO"; then :
17961  ac_cv_search_opendir=$ac_res
17962fi
17963rm -f core conftest.err conftest.$ac_objext \
17964    conftest$ac_exeext
17965  if ${ac_cv_search_opendir+:} false; then :
17966  break
17967fi
17968done
17969if ${ac_cv_search_opendir+:} false; then :
17970
17971else
17972  ac_cv_search_opendir=no
17973fi
17974rm conftest.$ac_ext
17975LIBS=$ac_func_search_save_LIBS
17976fi
17977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17978$as_echo "$ac_cv_search_opendir" >&6; }
17979ac_res=$ac_cv_search_opendir
17980if test "$ac_res" != no; then :
17981  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17982
17983fi
17984
17985else
17986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17987$as_echo_n "checking for library containing opendir... " >&6; }
17988if ${ac_cv_search_opendir+:} false; then :
17989  $as_echo_n "(cached) " >&6
17990else
17991  ac_func_search_save_LIBS=$LIBS
17992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993/* end confdefs.h.  */
17994
17995/* Override any GCC internal prototype to avoid an error.
17996   Use char because int might match the return type of a GCC
17997   builtin and then its argument prototype would still apply.  */
17998#ifdef __cplusplus
17999extern "C"
18000#endif
18001char opendir ();
18002int
18003main ()
18004{
18005return opendir ();
18006  ;
18007  return 0;
18008}
18009_ACEOF
18010for ac_lib in '' x; do
18011  if test -z "$ac_lib"; then
18012    ac_res="none required"
18013  else
18014    ac_res=-l$ac_lib
18015    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18016  fi
18017  if ac_fn_c_try_link "$LINENO"; then :
18018  ac_cv_search_opendir=$ac_res
18019fi
18020rm -f core conftest.err conftest.$ac_objext \
18021    conftest$ac_exeext
18022  if ${ac_cv_search_opendir+:} false; then :
18023  break
18024fi
18025done
18026if ${ac_cv_search_opendir+:} false; then :
18027
18028else
18029  ac_cv_search_opendir=no
18030fi
18031rm conftest.$ac_ext
18032LIBS=$ac_func_search_save_LIBS
18033fi
18034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18035$as_echo "$ac_cv_search_opendir" >&6; }
18036ac_res=$ac_cv_search_opendir
18037if test "$ac_res" != no; then :
18038  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18039
18040fi
18041
18042fi
18043
18044
18045for ac_header in stdlib.h
18046do :
18047  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18048if test "x$ac_cv_header_stdlib_h" = xyes; then :
18049  cat >>confdefs.h <<_ACEOF
18050#define HAVE_STDLIB_H 1
18051_ACEOF
18052
18053fi
18054
18055done
18056
18057for ac_func in getpassphrase
18058do :
18059  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
18060if test "x$ac_cv_func_getpassphrase" = xyes; then :
18061  cat >>confdefs.h <<_ACEOF
18062#define HAVE_GETPASSPHRASE 1
18063_ACEOF
18064
18065fi
18066done
18067
18068
18069
18070        save_LIBS="$LIBS"
18071        LIB_SOCKET=""
18072        ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18073if test "x$ac_cv_func_connect" = xyes; then :
18074  :
18075else
18076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18077$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18078if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18079  $as_echo_n "(cached) " >&6
18080else
18081  ac_check_lib_save_LIBS=$LIBS
18082LIBS="-lnsl  $LIBS"
18083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084/* end confdefs.h.  */
18085
18086/* Override any GCC internal prototype to avoid an error.
18087   Use char because int might match the return type of a GCC
18088   builtin and then its argument prototype would still apply.  */
18089#ifdef __cplusplus
18090extern "C"
18091#endif
18092char gethostbyname ();
18093int
18094main ()
18095{
18096return gethostbyname ();
18097  ;
18098  return 0;
18099}
18100_ACEOF
18101if ac_fn_c_try_link "$LINENO"; then :
18102  ac_cv_lib_nsl_gethostbyname=yes
18103else
18104  ac_cv_lib_nsl_gethostbyname=no
18105fi
18106rm -f core conftest.err conftest.$ac_objext \
18107    conftest$ac_exeext conftest.$ac_ext
18108LIBS=$ac_check_lib_save_LIBS
18109fi
18110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18111$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18112if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18113  LIB_SOCKET="-lnsl $LIB_SOCKET"
18114fi
18115
18116                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18117$as_echo_n "checking for connect in -lsocket... " >&6; }
18118if ${ac_cv_lib_socket_connect+:} false; then :
18119  $as_echo_n "(cached) " >&6
18120else
18121  ac_check_lib_save_LIBS=$LIBS
18122LIBS="-lsocket  $LIBS"
18123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124/* end confdefs.h.  */
18125
18126/* Override any GCC internal prototype to avoid an error.
18127   Use char because int might match the return type of a GCC
18128   builtin and then its argument prototype would still apply.  */
18129#ifdef __cplusplus
18130extern "C"
18131#endif
18132char connect ();
18133int
18134main ()
18135{
18136return connect ();
18137  ;
18138  return 0;
18139}
18140_ACEOF
18141if ac_fn_c_try_link "$LINENO"; then :
18142  ac_cv_lib_socket_connect=yes
18143else
18144  ac_cv_lib_socket_connect=no
18145fi
18146rm -f core conftest.err conftest.$ac_objext \
18147    conftest$ac_exeext conftest.$ac_ext
18148LIBS=$ac_check_lib_save_LIBS
18149fi
18150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18151$as_echo "$ac_cv_lib_socket_connect" >&6; }
18152if test "x$ac_cv_lib_socket_connect" = xyes; then :
18153  LIB_SOCKET="-lsocket $LIB_SOCKET"
18154fi
18155
18156
18157fi
18158
18159        LIBS="$LIB_SOCKET $save_LIBS"
18160        ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
18161if test "x$ac_cv_func_res_search" = xyes; then :
18162  :
18163else
18164  LIBS="-lresolv $LIB_SOCKET $save_LIBS"
18165                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166/* end confdefs.h.  */
18167[
18168#include <sys/types.h>
18169#include <netinet/in.h>
18170#include <arpa/nameser.h>
18171#ifdef HAVE_ARPA_NAMESER_COMPAT_H
18172#include <arpa/nameser_compat.h>
18173#endif
18174#include <resolv.h>]
18175int
18176main ()
18177{
18178[
18179const char host[12]="openafs.org";
18180u_char ans[1024];
18181res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
18182return 0;
18183]
18184  ;
18185  return 0;
18186}
18187_ACEOF
18188if ac_fn_c_try_link "$LINENO"; then :
18189  LIB_SOCKET="-lresolv $LIB_SOCKET"
18190fi
18191rm -f core conftest.err conftest.$ac_objext \
18192    conftest$ac_exeext conftest.$ac_ext
18193
18194fi
18195
18196        LIBS="$LIB_SOCKET $save_LIBS"
18197        for ac_func in dn_expand dns_lookup
18198do :
18199  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18200ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18201if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18202  cat >>confdefs.h <<_ACEOF
18203#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18204_ACEOF
18205
18206fi
18207done
18208
18209        LIBS="$save_LIBS"
18210
18211
18212LIBS="$LIBS ${LIB_SOCKET}"
18213
18214cyrus_cv_getaddrinfo=yes
18215
18216ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18217if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18218    ac_cv_lib_socket_getaddrinfo=no
18219  ac_cv_lib_inet6_getaddrinfo=no
18220
18221else
18222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
18223$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
18224if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
18225  $as_echo_n "(cached) " >&6
18226else
18227  ac_check_lib_save_LIBS=$LIBS
18228LIBS="-lsocket  $LIBS"
18229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230/* end confdefs.h.  */
18231
18232/* Override any GCC internal prototype to avoid an error.
18233   Use char because int might match the return type of a GCC
18234   builtin and then its argument prototype would still apply.  */
18235#ifdef __cplusplus
18236extern "C"
18237#endif
18238char getaddrinfo ();
18239int
18240main ()
18241{
18242return getaddrinfo ();
18243  ;
18244  return 0;
18245}
18246_ACEOF
18247if ac_fn_c_try_link "$LINENO"; then :
18248  ac_cv_lib_socket_getaddrinfo=yes
18249else
18250  ac_cv_lib_socket_getaddrinfo=no
18251fi
18252rm -f core conftest.err conftest.$ac_objext \
18253    conftest$ac_exeext conftest.$ac_ext
18254LIBS=$ac_check_lib_save_LIBS
18255fi
18256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
18257$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
18258if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
18259      LIBS="$LIBS -lsocket"
18260    ac_cv_lib_inet6_getaddrinfo=no
18261
18262else
18263      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
18264$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
18265    if ${ipv6_cv_dir+:} false; then :
18266  $as_echo_n "(cached) " >&6
18267else
18268        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
18269        if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
18270          break
18271        fi
18272      done
18273fi
18274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
18275$as_echo "$ipv6_cv_dir" >&6; }
18276    if test $ipv6_cv_dir = no; then
18277      ac_cv_lib_inet6_getaddrinfo=no
18278    else
18279      if test x$ipv6_libinet6 = x; then
18280        ipv6_libinet6=no
18281        SAVELDFLAGS="$LDFLAGS"
18282        LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
18283      fi
18284      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
18285$as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
18286if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
18287  $as_echo_n "(cached) " >&6
18288else
18289  ac_check_lib_save_LIBS=$LIBS
18290LIBS="-linet6  $LIBS"
18291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292/* end confdefs.h.  */
18293
18294/* Override any GCC internal prototype to avoid an error.
18295   Use char because int might match the return type of a GCC
18296   builtin and then its argument prototype would still apply.  */
18297#ifdef __cplusplus
18298extern "C"
18299#endif
18300char getaddrinfo ();
18301int
18302main ()
18303{
18304return getaddrinfo ();
18305  ;
18306  return 0;
18307}
18308_ACEOF
18309if ac_fn_c_try_link "$LINENO"; then :
18310  ac_cv_lib_inet6_getaddrinfo=yes
18311else
18312  ac_cv_lib_inet6_getaddrinfo=no
18313fi
18314rm -f core conftest.err conftest.$ac_objext \
18315    conftest$ac_exeext conftest.$ac_ext
18316LIBS=$ac_check_lib_save_LIBS
18317fi
18318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
18319$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
18320if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
18321          if test $ipv6_libinet6 = no; then
18322          ipv6_libinet6=yes
18323          LIBS="$LIBS -linet6"
18324        fi
18325fi
18326      if test $ipv6_libinet6 = no; then
18327        LDFLAGS="$SAVELDFLAGS"
18328      fi
18329    fi
18330fi
18331
18332fi
18333ipv6_cv_getaddrinfo=no
18334if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
18335     -o $ac_cv_lib_inet6_getaddrinfo = yes
18336then
18337  ipv6_cv_getaddrinfo=yes
18338fi
18339if test $ipv6_cv_getaddrinfo = no; then
18340  if test getaddrinfo = getaddrinfo; then
18341    for ipv6_cv_pfx in o n; do
18342      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343/* end confdefs.h.  */
18344#include <netdb.h>
18345
18346_ACEOF
18347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18348  $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
18349  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
18350ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
18351if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18352
18353fi
18354
18355fi
18356rm -f conftest*
18357
18358      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
18359
18360$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18361
18362        ipv6_cv_getaddrinfo=yes
18363        break
18364      fi
18365    done
18366  fi
18367fi
18368if test $ipv6_cv_getaddrinfo = yes; then
18369
18370ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
18371if test "x$ac_cv_func_gai_strerror" = xyes; then :
18372    ac_cv_lib_socket_gai_strerror=no
18373  ac_cv_lib_inet6_gai_strerror=no
18374
18375else
18376    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -lsocket" >&5
18377$as_echo_n "checking for gai_strerror in -lsocket... " >&6; }
18378if ${ac_cv_lib_socket_gai_strerror+:} false; then :
18379  $as_echo_n "(cached) " >&6
18380else
18381  ac_check_lib_save_LIBS=$LIBS
18382LIBS="-lsocket  $LIBS"
18383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384/* end confdefs.h.  */
18385
18386/* Override any GCC internal prototype to avoid an error.
18387   Use char because int might match the return type of a GCC
18388   builtin and then its argument prototype would still apply.  */
18389#ifdef __cplusplus
18390extern "C"
18391#endif
18392char gai_strerror ();
18393int
18394main ()
18395{
18396return gai_strerror ();
18397  ;
18398  return 0;
18399}
18400_ACEOF
18401if ac_fn_c_try_link "$LINENO"; then :
18402  ac_cv_lib_socket_gai_strerror=yes
18403else
18404  ac_cv_lib_socket_gai_strerror=no
18405fi
18406rm -f core conftest.err conftest.$ac_objext \
18407    conftest$ac_exeext conftest.$ac_ext
18408LIBS=$ac_check_lib_save_LIBS
18409fi
18410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gai_strerror" >&5
18411$as_echo "$ac_cv_lib_socket_gai_strerror" >&6; }
18412if test "x$ac_cv_lib_socket_gai_strerror" = xyes; then :
18413      LIBS="$LIBS -lsocket"
18414    ac_cv_lib_inet6_gai_strerror=no
18415
18416else
18417      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
18418$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
18419    if ${ipv6_cv_dir+:} false; then :
18420  $as_echo_n "(cached) " >&6
18421else
18422        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
18423        if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
18424          break
18425        fi
18426      done
18427fi
18428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
18429$as_echo "$ipv6_cv_dir" >&6; }
18430    if test $ipv6_cv_dir = no; then
18431      ac_cv_lib_inet6_gai_strerror=no
18432    else
18433      if test x$ipv6_libinet6 = x; then
18434        ipv6_libinet6=no
18435        SAVELDFLAGS="$LDFLAGS"
18436        LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
18437      fi
18438      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -linet6" >&5
18439$as_echo_n "checking for gai_strerror in -linet6... " >&6; }
18440if ${ac_cv_lib_inet6_gai_strerror+:} false; then :
18441  $as_echo_n "(cached) " >&6
18442else
18443  ac_check_lib_save_LIBS=$LIBS
18444LIBS="-linet6  $LIBS"
18445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446/* end confdefs.h.  */
18447
18448/* Override any GCC internal prototype to avoid an error.
18449   Use char because int might match the return type of a GCC
18450   builtin and then its argument prototype would still apply.  */
18451#ifdef __cplusplus
18452extern "C"
18453#endif
18454char gai_strerror ();
18455int
18456main ()
18457{
18458return gai_strerror ();
18459  ;
18460  return 0;
18461}
18462_ACEOF
18463if ac_fn_c_try_link "$LINENO"; then :
18464  ac_cv_lib_inet6_gai_strerror=yes
18465else
18466  ac_cv_lib_inet6_gai_strerror=no
18467fi
18468rm -f core conftest.err conftest.$ac_objext \
18469    conftest$ac_exeext conftest.$ac_ext
18470LIBS=$ac_check_lib_save_LIBS
18471fi
18472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gai_strerror" >&5
18473$as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; }
18474if test "x$ac_cv_lib_inet6_gai_strerror" = xyes; then :
18475          if test $ipv6_libinet6 = no; then
18476          ipv6_libinet6=yes
18477          LIBS="$LIBS -linet6"
18478        fi
18479fi
18480      if test $ipv6_libinet6 = no; then
18481        LDFLAGS="$SAVELDFLAGS"
18482      fi
18483    fi
18484fi
18485
18486fi
18487ipv6_cv_gai_strerror=no
18488if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
18489     -o $ac_cv_lib_inet6_gai_strerror = yes
18490then
18491  ipv6_cv_gai_strerror=yes
18492fi
18493if test $ipv6_cv_gai_strerror = no; then
18494  if test gai_strerror = getaddrinfo; then
18495    for ipv6_cv_pfx in o n; do
18496      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h.  */
18498#include <netdb.h>
18499
18500_ACEOF
18501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18502  $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then :
18503  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
18504ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gai_strerror" "$as_ac_var"
18505if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18506
18507fi
18508
18509fi
18510rm -f conftest*
18511
18512      if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
18513
18514$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18515
18516        ipv6_cv_gai_strerror=yes
18517        break
18518      fi
18519    done
18520  fi
18521fi
18522if test $ipv6_cv_gai_strerror = yes; then
18523
18524$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18525
18526else
18527  cyrus_cv_getaddrinfo=no
18528fi
18529else
18530  cyrus_cv_getaddrinfo=no
18531fi
18532
18533cyrus_cv_getnameinfo=yes
18534
18535ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
18536if test "x$ac_cv_func_getnameinfo" = xyes; then :
18537    ac_cv_lib_socket_getnameinfo=no
18538  ac_cv_lib_inet6_getnameinfo=no
18539
18540else
18541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
18542$as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
18543if ${ac_cv_lib_socket_getnameinfo+:} false; then :
18544  $as_echo_n "(cached) " >&6
18545else
18546  ac_check_lib_save_LIBS=$LIBS
18547LIBS="-lsocket  $LIBS"
18548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549/* end confdefs.h.  */
18550
18551/* Override any GCC internal prototype to avoid an error.
18552   Use char because int might match the return type of a GCC
18553   builtin and then its argument prototype would still apply.  */
18554#ifdef __cplusplus
18555extern "C"
18556#endif
18557char getnameinfo ();
18558int
18559main ()
18560{
18561return getnameinfo ();
18562  ;
18563  return 0;
18564}
18565_ACEOF
18566if ac_fn_c_try_link "$LINENO"; then :
18567  ac_cv_lib_socket_getnameinfo=yes
18568else
18569  ac_cv_lib_socket_getnameinfo=no
18570fi
18571rm -f core conftest.err conftest.$ac_objext \
18572    conftest$ac_exeext conftest.$ac_ext
18573LIBS=$ac_check_lib_save_LIBS
18574fi
18575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
18576$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
18577if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
18578      LIBS="$LIBS -lsocket"
18579    ac_cv_lib_inet6_getnameinfo=no
18580
18581else
18582      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
18583$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
18584    if ${ipv6_cv_dir+:} false; then :
18585  $as_echo_n "(cached) " >&6
18586else
18587        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
18588        if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
18589          break
18590        fi
18591      done
18592fi
18593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
18594$as_echo "$ipv6_cv_dir" >&6; }
18595    if test $ipv6_cv_dir = no; then
18596      ac_cv_lib_inet6_getnameinfo=no
18597    else
18598      if test x$ipv6_libinet6 = x; then
18599        ipv6_libinet6=no
18600        SAVELDFLAGS="$LDFLAGS"
18601        LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
18602      fi
18603      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
18604$as_echo_n "checking for getnameinfo in -linet6... " >&6; }
18605if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
18606  $as_echo_n "(cached) " >&6
18607else
18608  ac_check_lib_save_LIBS=$LIBS
18609LIBS="-linet6  $LIBS"
18610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611/* end confdefs.h.  */
18612
18613/* Override any GCC internal prototype to avoid an error.
18614   Use char because int might match the return type of a GCC
18615   builtin and then its argument prototype would still apply.  */
18616#ifdef __cplusplus
18617extern "C"
18618#endif
18619char getnameinfo ();
18620int
18621main ()
18622{
18623return getnameinfo ();
18624  ;
18625  return 0;
18626}
18627_ACEOF
18628if ac_fn_c_try_link "$LINENO"; then :
18629  ac_cv_lib_inet6_getnameinfo=yes
18630else
18631  ac_cv_lib_inet6_getnameinfo=no
18632fi
18633rm -f core conftest.err conftest.$ac_objext \
18634    conftest$ac_exeext conftest.$ac_ext
18635LIBS=$ac_check_lib_save_LIBS
18636fi
18637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
18638$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
18639if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
18640          if test $ipv6_libinet6 = no; then
18641          ipv6_libinet6=yes
18642          LIBS="$LIBS -linet6"
18643        fi
18644fi
18645      if test $ipv6_libinet6 = no; then
18646        LDFLAGS="$SAVELDFLAGS"
18647      fi
18648    fi
18649fi
18650
18651fi
18652ipv6_cv_getnameinfo=no
18653if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
18654     -o $ac_cv_lib_inet6_getnameinfo = yes
18655then
18656  ipv6_cv_getnameinfo=yes
18657fi
18658if test $ipv6_cv_getnameinfo = no; then
18659  if test getnameinfo = getaddrinfo; then
18660    for ipv6_cv_pfx in o n; do
18661      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h.  */
18663#include <netdb.h>
18664
18665_ACEOF
18666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18667  $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
18668  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
18669ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
18670if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18671
18672fi
18673
18674fi
18675rm -f conftest*
18676
18677      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
18678
18679$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
18680
18681        ipv6_cv_getnameinfo=yes
18682        break
18683      fi
18684    done
18685  fi
18686fi
18687if test $ipv6_cv_getnameinfo = yes; then
18688
18689$as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
18690
18691else
18692  cyrus_cv_getnameinfo=no
18693fi
18694
18695 if test $cyrus_cv_getaddrinfo = no; then
18696  IPV6_noGETADDRINFO_TRUE=
18697  IPV6_noGETADDRINFO_FALSE='#'
18698else
18699  IPV6_noGETADDRINFO_TRUE='#'
18700  IPV6_noGETADDRINFO_FALSE=
18701fi
18702
18703 if test $cyrus_cv_getnameinfo = no; then
18704  IPV6_noGETNAMEINFO_TRUE=
18705  IPV6_noGETNAMEINFO_FALSE='#'
18706else
18707  IPV6_noGETNAMEINFO_TRUE='#'
18708  IPV6_noGETNAMEINFO_FALSE=
18709fi
18710
18711
18712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
18713$as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
18714if ${ipv6_cv_ss_family+:} false; then :
18715  $as_echo_n "(cached) " >&6
18716else
18717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18718/* end confdefs.h.  */
18719#include <sys/types.h>
18720#include <sys/socket.h>
18721int
18722main ()
18723{
18724struct sockaddr_storage ss; int i = ss.ss_family;
18725  ;
18726  return 0;
18727}
18728_ACEOF
18729if ac_fn_c_try_compile "$LINENO"; then :
18730  ipv6_cv_ss_family=yes
18731else
18732  ipv6_cv_ss_family=no
18733fi
18734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18735fi
18736if test $ipv6_cv_ss_family = yes; then
18737
18738$as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
18739
18740else
18741  :
18742fi
18743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
18744$as_echo "$ipv6_cv_ss_family" >&6; }
18745
18746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
18747$as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
18748if ${ipv6_cv_sa_len+:} false; then :
18749  $as_echo_n "(cached) " >&6
18750else
18751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752/* end confdefs.h.  */
18753#include <sys/types.h>
18754#include <sys/socket.h>
18755int
18756main ()
18757{
18758struct sockaddr sa; int i = sa.sa_len;
18759  ;
18760  return 0;
18761}
18762_ACEOF
18763if ac_fn_c_try_compile "$LINENO"; then :
18764  ipv6_cv_sa_len=yes
18765else
18766  ipv6_cv_sa_len=no
18767fi
18768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769fi
18770if test $ipv6_cv_sa_len = yes; then
18771
18772$as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
18773
18774else
18775  :
18776fi
18777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
18778$as_echo "$ipv6_cv_sa_len" >&6; }
18779
18780for ac_header in sys/time.h
18781do :
18782  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18783if test "x$ac_cv_header_sys_time_h" = xyes; then :
18784  cat >>confdefs.h <<_ACEOF
18785#define HAVE_SYS_TIME_H 1
18786_ACEOF
18787
18788fi
18789
18790done
18791
18792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18793$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18794if ${ac_cv_header_time+:} false; then :
18795  $as_echo_n "(cached) " >&6
18796else
18797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798/* end confdefs.h.  */
18799#include <sys/types.h>
18800#include <sys/time.h>
18801#include <time.h>
18802
18803int
18804main ()
18805{
18806if ((struct tm *) 0)
18807return 0;
18808  ;
18809  return 0;
18810}
18811_ACEOF
18812if ac_fn_c_try_compile "$LINENO"; then :
18813  ac_cv_header_time=yes
18814else
18815  ac_cv_header_time=no
18816fi
18817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818fi
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18820$as_echo "$ac_cv_header_time" >&6; }
18821if test $ac_cv_header_time = yes; then
18822
18823$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18824
18825fi
18826
18827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18828$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18829if ${ac_cv_struct_tm+:} false; then :
18830  $as_echo_n "(cached) " >&6
18831else
18832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833/* end confdefs.h.  */
18834#include <sys/types.h>
18835#include <time.h>
18836
18837int
18838main ()
18839{
18840struct tm tm;
18841				     int *p = &tm.tm_sec;
18842				     return !p;
18843  ;
18844  return 0;
18845}
18846_ACEOF
18847if ac_fn_c_try_compile "$LINENO"; then :
18848  ac_cv_struct_tm=time.h
18849else
18850  ac_cv_struct_tm=sys/time.h
18851fi
18852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18853fi
18854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18855$as_echo "$ac_cv_struct_tm" >&6; }
18856if test $ac_cv_struct_tm = sys/time.h; then
18857
18858$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18859
18860fi
18861
18862ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18863#include <$ac_cv_struct_tm>
18864
18865"
18866if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
18867
18868cat >>confdefs.h <<_ACEOF
18869#define HAVE_STRUCT_TM_TM_ZONE 1
18870_ACEOF
18871
18872
18873fi
18874
18875if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18876
18877$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18878
18879else
18880  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18881"
18882if test "x$ac_cv_have_decl_tzname" = xyes; then :
18883  ac_have_decl=1
18884else
18885  ac_have_decl=0
18886fi
18887
18888cat >>confdefs.h <<_ACEOF
18889#define HAVE_DECL_TZNAME $ac_have_decl
18890_ACEOF
18891
18892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18893$as_echo_n "checking for tzname... " >&6; }
18894if ${ac_cv_var_tzname+:} false; then :
18895  $as_echo_n "(cached) " >&6
18896else
18897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898/* end confdefs.h.  */
18899#include <time.h>
18900#if !HAVE_DECL_TZNAME
18901extern char *tzname[];
18902#endif
18903
18904int
18905main ()
18906{
18907return tzname[0][0];
18908  ;
18909  return 0;
18910}
18911_ACEOF
18912if ac_fn_c_try_link "$LINENO"; then :
18913  ac_cv_var_tzname=yes
18914else
18915  ac_cv_var_tzname=no
18916fi
18917rm -f core conftest.err conftest.$ac_objext \
18918    conftest$ac_exeext conftest.$ac_ext
18919fi
18920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18921$as_echo "$ac_cv_var_tzname" >&6; }
18922  if test $ac_cv_var_tzname = yes; then
18923
18924$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18925
18926  fi
18927fi
18928
18929for ac_func in timegm
18930do :
18931  ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18932if test "x$ac_cv_func_timegm" = xyes; then :
18933  cat >>confdefs.h <<_ACEOF
18934#define HAVE_TIMEGM 1
18935_ACEOF
18936
18937fi
18938done
18939
18940
18941
18942
18943for ac_func in vprintf
18944do :
18945  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
18946if test "x$ac_cv_func_vprintf" = xyes; then :
18947  cat >>confdefs.h <<_ACEOF
18948#define HAVE_VPRINTF 1
18949_ACEOF
18950
18951ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18952if test "x$ac_cv_func__doprnt" = xyes; then :
18953
18954$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
18955
18956fi
18957
18958fi
18959done
18960
18961
18962
18963
18964
18965HAVE_CYRUSDB_SQL=0
18966
18967
18968
18969
18970# Check whether --with-mysql-libdir was given.
18971if test "${with_mysql_libdir+set}" = set; then :
18972  withval=$with_mysql_libdir; with_mysql_lib=$withval
18973else
18974   test "${with_mysql_lib+set}" = set || with_mysql_lib=none
18975fi
18976
18977
18978# Check whether --with-mysql-incdir was given.
18979if test "${with_mysql_incdir+set}" = set; then :
18980  withval=$with_mysql_incdir; with_mysql_inc=$withval
18981else
18982   test "${with_mysql_inc+set}" = set || with_mysql_inc=none
18983fi
18984
18985
18986if test "$with_mysql_lib" != none ; then
18987    { $as_echo "$as_me:${as_lineno-$LINENO}: Legacy option --with-mysql-libdir=DIR detected.
18988                  You may wish to change to --with-mysql which works now." >&5
18989$as_echo "$as_me: Legacy option --with-mysql-libdir=DIR detected.
18990                  You may wish to change to --with-mysql which works now." >&6;}
18991    withval="$with_mysql_lib/.."
18992else
18993    withval="no"
18994fi
18995
18996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MySQL" >&5
18997$as_echo_n "checking whether to use MySQL... " >&6; }
18998
18999# Check whether --with-mysql was given.
19000if test "${with_mysql+set}" = set; then :
19001  withval=$with_mysql;
19002fi
19003
19004with_mysql=$withval
19005
19006case "$with_mysql" in
19007  no)
19008        # Explicitly disable MySQL
19009        ;;
19010  yes)
19011        # Find mysql_config in $PATH
19012        # Extract the first word of "mysql_config", so it can be a program name with args.
19013set dummy mysql_config; ac_word=$2
19014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19015$as_echo_n "checking for $ac_word... " >&6; }
19016if ${ac_cv_path_mysql_config+:} false; then :
19017  $as_echo_n "(cached) " >&6
19018else
19019  case $mysql_config in
19020  [\\/]* | ?:[\\/]*)
19021  ac_cv_path_mysql_config="$mysql_config" # Let the user override the test with a path.
19022  ;;
19023  *)
19024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19025for as_dir in $PATH
19026do
19027  IFS=$as_save_IFS
19028  test -z "$as_dir" && as_dir=.
19029    for ac_exec_ext in '' $ac_executable_extensions; do
19030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19031    ac_cv_path_mysql_config="$as_dir/$ac_word$ac_exec_ext"
19032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19033    break 2
19034  fi
19035done
19036  done
19037IFS=$as_save_IFS
19038
19039  ;;
19040esac
19041fi
19042mysql_config=$ac_cv_path_mysql_config
19043if test -n "$mysql_config"; then
19044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mysql_config" >&5
19045$as_echo "$mysql_config" >&6; }
19046else
19047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19048$as_echo "no" >&6; }
19049fi
19050
19051
19052        if test -z "$mysql_config"; then :
19053  as_fn_error $? "The mysql_config program was not found" "$LINENO" 5
19054fi
19055        ;;
19056  *)
19057        # Find mysql_config in the specified directory
19058        mysql_config="$with_mysql/bin/mysql_config"
19059        if test ! -x "$mysql_config" ; then
19060            as_fn_error $? "The mysql_config program was not found
19061                         in $with_mysql/bin, disabling MySQL support" "$LINENO" 5
19062            with_mysql="no"
19063        fi
19064        ;;
19065esac
19066
19067if test "$with_mysql" != "no"; then
19068    MYSQL_LIBADD=`$mysql_config --libs`
19069    MYSQL_INCADD=`$mysql_config --cflags`
19070    HAVE_CYRUSDB_SQL=1
19071    LIBS="${LIBS} ${MYSQL_LIBADD}"
19072    CPPFLAGS="${MYSQL_INCADD} ${CPPFLAGS}"
19073
19074$as_echo "#define HAVE_MYSQL /**/" >>confdefs.h
19075
19076
19077fi
19078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql" >&5
19079$as_echo "$with_mysql" >&6; }
19080
19081
19082
19083
19084# Check whether --with-pgsql was given.
19085if test "${with_pgsql+set}" = set; then :
19086  withval=$with_pgsql; with_pgsql=$withval
19087else
19088  with_pgsql="no"
19089fi
19090
19091
19092case "$with_pgsql" in
19093  no)
19094        use_pgsql="no"
19095        ;;
19096  yes)
19097        use_pgsql="yes"
19098        with_pgsql_lib=none
19099        with_pgsql_inc=none
19100        ;;
19101  *)
19102        use_pgsql="yes"
19103        with_pgsql_lib="$with_pgsql/lib"
19104        with_pgsql_inc="$with_pgsql/include"
19105        ;;
19106esac
19107
19108if test "$use_pgsql" != "no"; then
19109
19110
19111# Check whether --with-pgsql-libdir was given.
19112if test "${with_pgsql_libdir+set}" = set; then :
19113  withval=$with_pgsql_libdir; with_pgsql_lib=$withval
19114else
19115   test "${with_pgsql_lib+set}" = set || with_pgsql_lib=none
19116fi
19117
19118
19119# Check whether --with-pgsql-incdir was given.
19120if test "${with_pgsql_incdir+set}" = set; then :
19121  withval=$with_pgsql_incdir; with_pgsql_inc=$withval
19122else
19123   test "${with_pgsql_inc+set}" = set || with_pgsql_inc=none
19124fi
19125
19126
19127
19128
19129
19130        cmu_save_CPPFLAGS=$CPPFLAGS
19131
19132        if test -d $with_pgsql_inc; then
19133            CPPFLAGS="$CPPFLAGS -I$with_pgsql_inc"
19134            PGSQL_INCADD="-I$with_pgsql_inc"
19135        else
19136            PGSQL_INCADD=""
19137        fi
19138
19139        ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
19140if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
19141
19142        PGSQL_SAVE_LDFLAGS=$LDFLAGS
19143
19144        if test -d $with_pgsql_lib; then
19145
19146  # this is CMU ADD LIBPATH TO
19147  if test "$andrew_cv_runpath_switch" = "none" ; then
19148        LDFLAGS="-L$with_pgsql_lib ${LDFLAGS}"
19149  else
19150        LDFLAGS="-L$with_pgsql_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_pgsql_lib"
19151  fi
19152
19153
19154  # this is CMU ADD LIBPATH TO
19155  if test "$andrew_cv_runpath_switch" = "none" ; then
19156        PGSQL_LIBADD="-L$with_pgsql_lib ${PGSQL_LIBADD}"
19157  else
19158        PGSQL_LIBADD="-L$with_pgsql_lib ${PGSQL_LIBADD} $andrew_cv_runpath_switch$with_pgsql_lib"
19159  fi
19160
19161        else
19162            PGSQL_LIBADD=""
19163        fi
19164
19165        saved_LIBS=$LIBS
19166        for libname in ${with_pgsql} pq
19167          do
19168            LIBS="$saved_LIBS -l$libname"
19169            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170/* end confdefs.h.  */
19171#include <stdio.h>
19172#include <libpq-fe.h>
19173int
19174main ()
19175{
19176PQconnectdb(NULL);
19177  ;
19178  return 0;
19179}
19180_ACEOF
19181if ac_fn_c_try_link "$LINENO"; then :
19182  PGSQL_LIBADD="$PGSQL_LIBADD -l$libname"; pgsqllib="yes"
19183else
19184  pgsqllib="no"
19185fi
19186rm -f core conftest.err conftest.$ac_objext \
19187    conftest$ac_exeext conftest.$ac_ext
19188            if test "$pgsqllib" = "yes"; then break; fi
19189          done
19190        LIBS=$saved_LIBS
19191
19192        LDFLAGS=$PGSQL_SAVE_LDFLAGS
19193
19194else
19195  pgsqllib="no"
19196fi
19197
19198
19199
19200        CPPFLAGS=$cmu_save_CPPFLAGS
19201
19202
19203  if test "$pgsqllib" = "no"; then
19204    as_fn_error $? "PgSQL was not found.  You may need to supply the
19205    --with-pgsql-libdir or --with-pgsql-incdir configure options." "$LINENO" 5
19206  else
19207    HAVE_CYRUSDB_SQL=1
19208  fi
19209
19210  if test "$with_pgsql_lib" != "none"; then
19211
19212  # this is CMU ADD LIBPATH
19213  if test "$andrew_cv_runpath_switch" = "none" ; then
19214        LDFLAGS="-L$with_pgsql_lib ${LDFLAGS}"
19215  else
19216        LDFLAGS="-L$with_pgsql_lib $andrew_cv_runpath_switch$with_pgsql_lib ${LDFLAGS}"
19217  fi
19218
19219  fi
19220
19221  LIBS="${LIBS} ${PGSQL_LIBADD}"
19222  CPPFLAGS="${PGSQL_INCADD} ${CPPFLAGS}"
19223
19224
19225$as_echo "#define HAVE_PGSQL /**/" >>confdefs.h
19226
19227
19228fi
19229
19230
19231
19232
19233# Check whether --with-sqlite was given.
19234if test "${with_sqlite+set}" = set; then :
19235  withval=$with_sqlite; with_sqlite=$withval
19236else
19237  with_sqlite=check
19238fi
19239
19240
19241case "$with_sqlite" in
19242  no)
19243        use_sqlite="no"
19244        ;;
19245  yes)
19246        use_sqlite="yes"
19247        with_sqlite_lib=none
19248        with_sqlite_inc=none
19249        ;;
19250  check)
19251        use_sqlite="check"
19252        with_sqlite_lib=none
19253        with_sqlite_inc=none
19254        ;;
19255  *)
19256        use_sqlite="yes"
19257        with_sqlite_lib="$with_sqlite/lib"
19258        with_sqlite_inc="$with_sqlite/include"
19259        ;;
19260esac
19261
19262if test "$use_sqlite" != "no"; then
19263
19264
19265# Check whether --with-sqlite-libdir was given.
19266if test "${with_sqlite_libdir+set}" = set; then :
19267  withval=$with_sqlite_libdir; with_sqlite_lib=$withval
19268else
19269   test "${with_sqlite_lib+set}" = set || with_sqlite_lib=none
19270fi
19271
19272
19273# Check whether --with-sqlite-incdir was given.
19274if test "${with_sqlite_incdir+set}" = set; then :
19275  withval=$with_sqlite_incdir; with_sqlite_inc=$withval
19276else
19277   test "${with_sqlite_inc+set}" = set || with_sqlite_inc=none
19278fi
19279
19280
19281
19282
19283
19284        cmu_save_CPPFLAGS=$CPPFLAGS
19285
19286        if test -d $with_sqlite_inc; then
19287            CPPFLAGS="$CPPFLAGS -I$with_sqlite_inc"
19288            SQLITE_INCADD="-I$with_sqlite_inc"
19289        else
19290            SQLITE_INCADD=""
19291        fi
19292
19293        ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
19294if test "x$ac_cv_header_sqlite3_h" = xyes; then :
19295
19296        SQLITE_SAVE_LDFLAGS=$LDFLAGS
19297
19298        if test -d $with_sqlite_lib; then
19299
19300  # this is CMU ADD LIBPATH TO
19301  if test "$andrew_cv_runpath_switch" = "none" ; then
19302        LDFLAGS="-L$with_sqlite_lib ${LDFLAGS}"
19303  else
19304        LDFLAGS="-L$with_sqlite_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_sqlite_lib"
19305  fi
19306
19307
19308  # this is CMU ADD LIBPATH TO
19309  if test "$andrew_cv_runpath_switch" = "none" ; then
19310        SQLITE_LIBADD="-L$with_sqlite_lib ${SQLITE_LIBADD}"
19311  else
19312        SQLITE_LIBADD="-L$with_sqlite_lib ${SQLITE_LIBADD} $andrew_cv_runpath_switch$with_sqlite_lib"
19313  fi
19314
19315        else
19316            SQLITE_LIBADD=""
19317        fi
19318
19319        saved_LIBS=$LIBS
19320        for libname in ${with_sqlite} sqlite3
19321          do
19322            LIBS="$saved_LIBS -l$libname"
19323            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324/* end confdefs.h.  */
19325#include <stdio.h>
19326#include <sqlite3.h>
19327int
19328main ()
19329{
19330sqlite3_open(NULL, NULL);
19331  ;
19332  return 0;
19333}
19334_ACEOF
19335if ac_fn_c_try_link "$LINENO"; then :
19336  SQLITE_LIBADD="$SQLITE_LIBADD -l$libname"; sqlitelib="yes"
19337else
19338  sqlitelib="no"
19339fi
19340rm -f core conftest.err conftest.$ac_objext \
19341    conftest$ac_exeext conftest.$ac_ext
19342            if test "$sqlitelib" = "yes"; then break; fi
19343          done
19344        LIBS=$saved_LIBS
19345
19346        LDFLAGS=$SQLITE_SAVE_LDFLAGS
19347
19348else
19349  sqlitelib="no"
19350fi
19351
19352
19353
19354        CPPFLAGS=$cmu_save_CPPFLAGS
19355
19356
19357  if test "$use_sqlite" = "yes"; then
19358        if test "$sqlitelib" = "no"; then
19359        as_fn_error $? "Sqlite was not found.  You may need to supply the
19360        --with-sqlite-libdir or --with-sqlite-incdir configure options." "$LINENO" 5
19361    else
19362        HAVE_CYRUSDB_SQL=1
19363        HAVE_SQLITE=1
19364    fi
19365  else
19366        use_sqlite="no"
19367    if test "$sqlitelib" = "no"; then
19368        { $as_echo "$as_me:${as_lineno-$LINENO}: sqlite was not found, will try to build without it" >&5
19369$as_echo "$as_me: sqlite was not found, will try to build without it" >&6;}
19370    else
19371        HAVE_SQLITE=1
19372    fi
19373  fi
19374
19375          fi
19376
19377
19378if test "x$HAVE_CYRUSDB_SQL" = x1; then
19379
19380$as_echo "#define USE_CYRUSDB_SQL /**/" >>confdefs.h
19381
19382fi
19383 if test $HAVE_CYRUSDB_SQL = 1; then
19384  USE_CYRUSDB_SQL_TRUE=
19385  USE_CYRUSDB_SQL_FALSE='#'
19386else
19387  USE_CYRUSDB_SQL_TRUE='#'
19388  USE_CYRUSDB_SQL_FALSE=
19389fi
19390
19391
19392
19393# Check whether --with-lmdb was given.
19394if test "${with_lmdb+set}" = set; then :
19395  withval=$with_lmdb; with_lmdb="$withval"
19396else
19397  with_lmdb="no"
19398fi
19399
19400if test "$with_lmdb" = "yes"; then
19401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5
19402$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; }
19403if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then :
19404  $as_echo_n "(cached) " >&6
19405else
19406  ac_check_lib_save_LIBS=$LIBS
19407LIBS="-llmdb  $LIBS"
19408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19409/* end confdefs.h.  */
19410
19411/* Override any GCC internal prototype to avoid an error.
19412   Use char because int might match the return type of a GCC
19413   builtin and then its argument prototype would still apply.  */
19414#ifdef __cplusplus
19415extern "C"
19416#endif
19417char mdb_env_create ();
19418int
19419main ()
19420{
19421return mdb_env_create ();
19422  ;
19423  return 0;
19424}
19425_ACEOF
19426if ac_fn_c_try_link "$LINENO"; then :
19427  ac_cv_lib_lmdb_mdb_env_create=yes
19428else
19429  ac_cv_lib_lmdb_mdb_env_create=no
19430fi
19431rm -f core conftest.err conftest.$ac_objext \
19432    conftest$ac_exeext conftest.$ac_ext
19433LIBS=$ac_check_lib_save_LIBS
19434fi
19435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5
19436$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; }
19437if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then :
19438  use_lmdb="yes"
19439      LMDB_LIB="-llmdb"
19440
19441$as_echo "#define HAVE_LMDB /**/" >>confdefs.h
19442
19443else
19444  as_fn_error $? "The LMDB library is required for Cyrus DB LMDB support." "$LINENO" 5
19445fi
19446
19447else
19448    use_lmdb="no"
19449fi
19450 if test "x$use_lmdb" = "xyes"; then
19451  USE_CYRUSDB_LMDB_TRUE=
19452  USE_CYRUSDB_LMDB_FALSE='#'
19453else
19454  USE_CYRUSDB_LMDB_TRUE='#'
19455  USE_CYRUSDB_LMDB_FALSE=
19456fi
19457
19458
19459
19460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Caringo" >&5
19461$as_echo_n "checking whether to use Caringo... " >&6; }
19462
19463# Check whether --with-caringo was given.
19464if test "${with_caringo+set}" = set; then :
19465  withval=$with_caringo;
19466else
19467  with_caringo="no"
19468fi
19469
19470case "$with_caringo" in
19471  yes)
19472	LDFLAGS="$LDFLAGS -lCastorSDK"
19473  ;;
19474esac
19475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_caringo" >&5
19476$as_echo "$with_caringo" >&6; }
19477
19478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenIO" >&5
19479$as_echo_n "checking whether to use OpenIO... " >&6; }
19480
19481# Check whether --with-openio was given.
19482if test "${with_openio+set}" = set; then :
19483  withval=$with_openio; with_openio=$withval
19484else
19485  with_openio="no"
19486fi
19487
19488
19489case "$with_openio" in
19490  no)
19491	use_openio="no"
19492	;;
19493  yes)
19494	use_openio="yes"
19495	with_openio_lib=none
19496	with_openio_inc=none
19497
19498$as_echo "#define WITH_OPENIO 1" >>confdefs.h
19499
19500	;;
19501  *)
19502	use_openio="yes"
19503	with_openio_lib="$with_openio/lib64"
19504	with_openio_inc="$with_openio/include"
19505
19506$as_echo "#define WITH_OPENIO 1" >>confdefs.h
19507
19508	;;
19509esac
19510
19511
19512# Check whether --with-openio-libdir was given.
19513if test "${with_openio_libdir+set}" = set; then :
19514  withval=$with_openio_libdir; with_openio_lib=$withval
19515else
19516   test "${with_openio_lib+set}" = set || with_openio_lib=none
19517fi
19518
19519
19520# Check whether --with-openio-incdir was given.
19521if test "${with_openio_incdir+set}" = set; then :
19522  withval=$with_openio_incdir; with_openio_inc=$withval
19523else
19524   test "${with_openio_inc+set}" = set || with_openio_inc=none
19525fi
19526
19527
19528if test "$use_openio" = "yes"; then
19529	if test ! -d "$with_openio_lib"; then
19530		as_fn_error $? "OpenIO library directory '$with_openio_lib' does not exist." "$LINENO" 5
19531	fi
19532	if test ! -d "$with_openio_inc"; then
19533		as_fn_error $? "OpenIO include directory '$with_openio_inc' does not exist." "$LINENO" 5
19534	fi
19535
19536	LDFLAGS="$LDFLAGS -L$with_openio_lib"
19537	CFLAGS="$CFLAGS -I$with_openio_inc"
19538	openio_headers="oio_sds.h core/oiourl.h"
19539	for h in $openio_headers; do
19540		as_ac_Header=`$as_echo "ac_cv_header_$h" | $as_tr_sh`
19541ac_fn_c_check_header_mongrel "$LINENO" "$h" "$as_ac_Header" "$ac_includes_default"
19542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19543
19544else
19545
19546			as_fn_error $? "Header $h is missing." "$LINENO" 5
19547
19548fi
19549
19550
19551	done
19552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oio_error_free in -loiosds" >&5
19553$as_echo_n "checking for oio_error_free in -loiosds... " >&6; }
19554if ${ac_cv_lib_oiosds_oio_error_free+:} false; then :
19555  $as_echo_n "(cached) " >&6
19556else
19557  ac_check_lib_save_LIBS=$LIBS
19558LIBS="-loiosds  $LIBS"
19559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560/* end confdefs.h.  */
19561
19562/* Override any GCC internal prototype to avoid an error.
19563   Use char because int might match the return type of a GCC
19564   builtin and then its argument prototype would still apply.  */
19565#ifdef __cplusplus
19566extern "C"
19567#endif
19568char oio_error_free ();
19569int
19570main ()
19571{
19572return oio_error_free ();
19573  ;
19574  return 0;
19575}
19576_ACEOF
19577if ac_fn_c_try_link "$LINENO"; then :
19578  ac_cv_lib_oiosds_oio_error_free=yes
19579else
19580  ac_cv_lib_oiosds_oio_error_free=no
19581fi
19582rm -f core conftest.err conftest.$ac_objext \
19583    conftest$ac_exeext conftest.$ac_ext
19584LIBS=$ac_check_lib_save_LIBS
19585fi
19586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oiosds_oio_error_free" >&5
19587$as_echo "$ac_cv_lib_oiosds_oio_error_free" >&6; }
19588if test "x$ac_cv_lib_oiosds_oio_error_free" = xyes; then :
19589  cat >>confdefs.h <<_ACEOF
19590#define HAVE_LIBOIOSDS 1
19591_ACEOF
19592
19593  LIBS="-loiosds $LIBS"
19594
19595else
19596  as_fn_error $? "Library oiosds not found." "$LINENO" 5
19597fi
19598
19599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for oio_url_empty in -loiocore" >&5
19600$as_echo_n "checking for oio_url_empty in -loiocore... " >&6; }
19601if ${ac_cv_lib_oiocore_oio_url_empty+:} false; then :
19602  $as_echo_n "(cached) " >&6
19603else
19604  ac_check_lib_save_LIBS=$LIBS
19605LIBS="-loiocore  $LIBS"
19606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607/* end confdefs.h.  */
19608
19609/* Override any GCC internal prototype to avoid an error.
19610   Use char because int might match the return type of a GCC
19611   builtin and then its argument prototype would still apply.  */
19612#ifdef __cplusplus
19613extern "C"
19614#endif
19615char oio_url_empty ();
19616int
19617main ()
19618{
19619return oio_url_empty ();
19620  ;
19621  return 0;
19622}
19623_ACEOF
19624if ac_fn_c_try_link "$LINENO"; then :
19625  ac_cv_lib_oiocore_oio_url_empty=yes
19626else
19627  ac_cv_lib_oiocore_oio_url_empty=no
19628fi
19629rm -f core conftest.err conftest.$ac_objext \
19630    conftest$ac_exeext conftest.$ac_ext
19631LIBS=$ac_check_lib_save_LIBS
19632fi
19633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oiocore_oio_url_empty" >&5
19634$as_echo "$ac_cv_lib_oiocore_oio_url_empty" >&6; }
19635if test "x$ac_cv_lib_oiocore_oio_url_empty" = xyes; then :
19636  cat >>confdefs.h <<_ACEOF
19637#define HAVE_LIBOIOCORE 1
19638_ACEOF
19639
19640  LIBS="-loiocore $LIBS"
19641
19642else
19643  as_fn_error $? "Library oiocore not found." "$LINENO" 5
19644fi
19645
19646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version in -lcurl" >&5
19647$as_echo_n "checking for curl_version in -lcurl... " >&6; }
19648if ${ac_cv_lib_curl_curl_version+:} false; then :
19649  $as_echo_n "(cached) " >&6
19650else
19651  ac_check_lib_save_LIBS=$LIBS
19652LIBS="-lcurl  $LIBS"
19653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654/* end confdefs.h.  */
19655
19656/* Override any GCC internal prototype to avoid an error.
19657   Use char because int might match the return type of a GCC
19658   builtin and then its argument prototype would still apply.  */
19659#ifdef __cplusplus
19660extern "C"
19661#endif
19662char curl_version ();
19663int
19664main ()
19665{
19666return curl_version ();
19667  ;
19668  return 0;
19669}
19670_ACEOF
19671if ac_fn_c_try_link "$LINENO"; then :
19672  ac_cv_lib_curl_curl_version=yes
19673else
19674  ac_cv_lib_curl_curl_version=no
19675fi
19676rm -f core conftest.err conftest.$ac_objext \
19677    conftest$ac_exeext conftest.$ac_ext
19678LIBS=$ac_check_lib_save_LIBS
19679fi
19680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version" >&5
19681$as_echo "$ac_cv_lib_curl_curl_version" >&6; }
19682if test "x$ac_cv_lib_curl_curl_version" = xyes; then :
19683  cat >>confdefs.h <<_ACEOF
19684#define HAVE_LIBCURL 1
19685_ACEOF
19686
19687  LIBS="-lcurl $LIBS"
19688
19689else
19690  as_fn_error $? "Library curl not found." "$LINENO" 5
19691fi
19692
19693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_tokener_parse_ex in -ljson-c" >&5
19694$as_echo_n "checking for json_tokener_parse_ex in -ljson-c... " >&6; }
19695if ${ac_cv_lib_json_c_json_tokener_parse_ex+:} false; then :
19696  $as_echo_n "(cached) " >&6
19697else
19698  ac_check_lib_save_LIBS=$LIBS
19699LIBS="-ljson-c  $LIBS"
19700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701/* end confdefs.h.  */
19702
19703/* Override any GCC internal prototype to avoid an error.
19704   Use char because int might match the return type of a GCC
19705   builtin and then its argument prototype would still apply.  */
19706#ifdef __cplusplus
19707extern "C"
19708#endif
19709char json_tokener_parse_ex ();
19710int
19711main ()
19712{
19713return json_tokener_parse_ex ();
19714  ;
19715  return 0;
19716}
19717_ACEOF
19718if ac_fn_c_try_link "$LINENO"; then :
19719  ac_cv_lib_json_c_json_tokener_parse_ex=yes
19720else
19721  ac_cv_lib_json_c_json_tokener_parse_ex=no
19722fi
19723rm -f core conftest.err conftest.$ac_objext \
19724    conftest$ac_exeext conftest.$ac_ext
19725LIBS=$ac_check_lib_save_LIBS
19726fi
19727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_json_c_json_tokener_parse_ex" >&5
19728$as_echo "$ac_cv_lib_json_c_json_tokener_parse_ex" >&6; }
19729if test "x$ac_cv_lib_json_c_json_tokener_parse_ex" = xyes; then :
19730  cat >>confdefs.h <<_ACEOF
19731#define HAVE_LIBJSON_C 1
19732_ACEOF
19733
19734  LIBS="-ljson-c $LIBS"
19735
19736else
19737  as_fn_error $? "Library json-c not found." "$LINENO" 5
19738fi
19739
19740
19741	LDFLAGS="$LDFLAGS -L$with_openio_lib -loiosds -loiocore -lcurl -ljson-c"
19742fi
19743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openio" >&5
19744$as_echo "$use_openio" >&6; }
19745
19746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable object store" >&5
19747$as_echo_n "checking whether to enable object store... " >&6; }
19748# Check whether --enable-objectstore was given.
19749if test "${enable_objectstore+set}" = set; then :
19750  enableval=$enable_objectstore;
19751else
19752  enable_objectstore=no
19753fi
19754
19755
19756with_objectstore_dummy=no
19757if test "x$enable_objectstore" != xno ; then
19758        if test "x$HAVE_SQLITE" != x1; then
19759        as_fn_error $? "Need sqlite3 for objectstore" "$LINENO" 5
19760    else
19761        use_sqlite="yes"
19762    fi
19763
19764        if test "x$with_openio" != xno -a "x$with_caringo" != xno; then :
19765  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both --with-openio and --with-caringo requested: using OpenIO" >&5
19766$as_echo "$as_me: WARNING: both --with-openio and --with-caringo requested: using OpenIO" >&2;}
19767             enable_objectstore="openio"
19768             with_caringo = "no"
19769elif test "x$with_openio" != xno; then :
19770  enable_objectstore="openio"
19771elif test "x$with_caringo" != xno; then :
19772  enable_objectstore="caringo"
19773else
19774  enable_objectstore="dummy"
19775         with_objectstore_dummy="yes"
19776fi
19777
19778$as_echo "#define ENABLE_OBJECTSTORE /**/" >>confdefs.h
19779
19780fi
19781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_objectstore" >&5
19782$as_echo "$enable_objectstore" >&6; }
19783 if test "x$enable_objectstore" != xno; then
19784  OBJECTSTORE_TRUE=
19785  OBJECTSTORE_FALSE='#'
19786else
19787  OBJECTSTORE_TRUE='#'
19788  OBJECTSTORE_FALSE=
19789fi
19790
19791 if test "x$with_caringo" != xno; then
19792  WITH_CARINGO_TRUE=
19793  WITH_CARINGO_FALSE='#'
19794else
19795  WITH_CARINGO_TRUE='#'
19796  WITH_CARINGO_FALSE=
19797fi
19798
19799 if test "x$use_openio" != xno; then
19800  WITH_OPENIO_TRUE=
19801  WITH_OPENIO_FALSE='#'
19802else
19803  WITH_OPENIO_TRUE='#'
19804  WITH_OPENIO_FALSE=
19805fi
19806
19807 if test "x$with_objectstore_dummy" != xno; then
19808  WITH_OBJSTR_DUMMY_TRUE=
19809  WITH_OBJSTR_DUMMY_FALSE='#'
19810else
19811  WITH_OBJSTR_DUMMY_TRUE='#'
19812  WITH_OBJSTR_DUMMY_FALSE=
19813fi
19814
19815
19816
19817
19818# Check whether --enable-squat was given.
19819if test "${enable_squat+set}" = set; then :
19820  enableval=$enable_squat;
19821else
19822  enable_squat="yes";
19823fi
19824
19825
19826if test "$enable_squat" != "no"; then
19827
19828$as_echo "#define USE_SQUAT /**/" >>confdefs.h
19829
19830fi
19831
19832 if test "${enable_squat}" != "no"; then
19833  USE_SQUAT_TRUE=
19834  USE_SQUAT_FALSE='#'
19835else
19836  USE_SQUAT_TRUE='#'
19837  USE_SQUAT_FALSE=
19838fi
19839
19840
19841
19842# Check whether --enable-sphinx was given.
19843if test "${enable_sphinx+set}" = set; then :
19844  enableval=$enable_sphinx;
19845else
19846  enable_sphinx=no
19847fi
19848
19849if test "x$enable_sphinx" != xno ; then
19850
19851$as_echo "#define USE_SPHINX /**/" >>confdefs.h
19852
19853fi
19854 if test "${enable_sphinx}" != "no"; then
19855  USE_SPHINX_TRUE=
19856  USE_SPHINX_FALSE='#'
19857else
19858  USE_SPHINX_TRUE='#'
19859  USE_SPHINX_FALSE=
19860fi
19861
19862
19863if test "$enable_sphinx" = yes -a "$with_mysql" = no ; then
19864    as_fn_error $? "Sphinx requires MySQL but you have not used --with-mysql; disabling Sphinx" "$LINENO" 5
19865    enable_sphinx=no
19866fi
19867
19868
19869xapian_flavor=none
19870# Check whether --enable-xapian was given.
19871if test "${enable_xapian+set}" = set; then :
19872  enableval=$enable_xapian;
19873else
19874  enable_xapian=no
19875fi
19876
19877if test "x$enable_xapian" != xno ; then
19878
19879    # Extract the first word of "rm", so it can be a program name with args.
19880set dummy rm; ac_word=$2
19881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19882$as_echo_n "checking for $ac_word... " >&6; }
19883if ${ac_cv_path_RM_BIN+:} false; then :
19884  $as_echo_n "(cached) " >&6
19885else
19886  case $RM_BIN in
19887  [\\/]* | ?:[\\/]*)
19888  ac_cv_path_RM_BIN="$RM_BIN" # Let the user override the test with a path.
19889  ;;
19890  *)
19891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19892for as_dir in $PATH
19893do
19894  IFS=$as_save_IFS
19895  test -z "$as_dir" && as_dir=.
19896    for ac_exec_ext in '' $ac_executable_extensions; do
19897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19898    ac_cv_path_RM_BIN="$as_dir/$ac_word$ac_exec_ext"
19899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19900    break 2
19901  fi
19902done
19903  done
19904IFS=$as_save_IFS
19905
19906  ;;
19907esac
19908fi
19909RM_BIN=$ac_cv_path_RM_BIN
19910if test -n "$RM_BIN"; then
19911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM_BIN" >&5
19912$as_echo "$RM_BIN" >&6; }
19913else
19914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19915$as_echo "no" >&6; }
19916fi
19917
19918
19919    if test -z "$RM_BIN"; then :
19920
19921        as_fn_error $? "Can't find the 'rm' binary" "$LINENO" 5
19922
19923fi
19924
19925cat >>confdefs.h <<_ACEOF
19926#define RM_BIN "$RM_BIN"
19927_ACEOF
19928
19929
19930
19931    # Extract the first word of "rsync", so it can be a program name with args.
19932set dummy rsync; ac_word=$2
19933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19934$as_echo_n "checking for $ac_word... " >&6; }
19935if ${ac_cv_path_RSYNC_BIN+:} false; then :
19936  $as_echo_n "(cached) " >&6
19937else
19938  case $RSYNC_BIN in
19939  [\\/]* | ?:[\\/]*)
19940  ac_cv_path_RSYNC_BIN="$RSYNC_BIN" # Let the user override the test with a path.
19941  ;;
19942  *)
19943  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19944for as_dir in $PATH
19945do
19946  IFS=$as_save_IFS
19947  test -z "$as_dir" && as_dir=.
19948    for ac_exec_ext in '' $ac_executable_extensions; do
19949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19950    ac_cv_path_RSYNC_BIN="$as_dir/$ac_word$ac_exec_ext"
19951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19952    break 2
19953  fi
19954done
19955  done
19956IFS=$as_save_IFS
19957
19958  ;;
19959esac
19960fi
19961RSYNC_BIN=$ac_cv_path_RSYNC_BIN
19962if test -n "$RSYNC_BIN"; then
19963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSYNC_BIN" >&5
19964$as_echo "$RSYNC_BIN" >&6; }
19965else
19966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967$as_echo "no" >&6; }
19968fi
19969
19970
19971    if test -z "$RSYNC_BIN"; then :
19972
19973        as_fn_error $? "Can't find the 'rsync' binary" "$LINENO" 5
19974
19975fi
19976
19977cat >>confdefs.h <<_ACEOF
19978#define RSYNC_BIN "$RSYNC_BIN"
19979_ACEOF
19980
19981
19982
19983    for ac_prog in xapian-config-1.5 xapian-config
19984do
19985  # Extract the first word of "$ac_prog", so it can be a program name with args.
19986set dummy $ac_prog; ac_word=$2
19987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19988$as_echo_n "checking for $ac_word... " >&6; }
19989if ${ac_cv_path_XAPIAN_CONFIG+:} false; then :
19990  $as_echo_n "(cached) " >&6
19991else
19992  case $XAPIAN_CONFIG in
19993  [\\/]* | ?:[\\/]*)
19994  ac_cv_path_XAPIAN_CONFIG="$XAPIAN_CONFIG" # Let the user override the test with a path.
19995  ;;
19996  *)
19997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19998for as_dir in $PATH
19999do
20000  IFS=$as_save_IFS
20001  test -z "$as_dir" && as_dir=.
20002    for ac_exec_ext in '' $ac_executable_extensions; do
20003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20004    ac_cv_path_XAPIAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20006    break 2
20007  fi
20008done
20009  done
20010IFS=$as_save_IFS
20011
20012  ;;
20013esac
20014fi
20015XAPIAN_CONFIG=$ac_cv_path_XAPIAN_CONFIG
20016if test -n "$XAPIAN_CONFIG"; then
20017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAPIAN_CONFIG" >&5
20018$as_echo "$XAPIAN_CONFIG" >&6; }
20019else
20020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20021$as_echo "no" >&6; }
20022fi
20023
20024
20025  test -n "$XAPIAN_CONFIG" && break
20026done
20027
20028    if test -z "$XAPIAN_CONFIG"; then
20029        as_fn_error $? "Can't find Xapian library" "$LINENO" 5
20030    else
20031        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $XAPIAN_CONFIG works" >&5
20032$as_echo_n "checking $XAPIAN_CONFIG works... " >&6; }
20033
20034                if (exec >&5 2>&5 ; $XAPIAN_CONFIG --ltlibs --cxxflags; exit $?) then
20035            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036$as_echo "yes" >&6; }
20037        else
20038            as_fn_error $? "\`$XAPIAN_CONFIG --ltlibs --cxxflags' doesn't work, aborting" "$LINENO" 5
20039        fi
20040
20041                    ax_cxx_compile_cxx11_required=true
20042  ac_ext=cpp
20043ac_cpp='$CXXCPP $CPPFLAGS'
20044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20047  ac_success=no
20048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
20049$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
20050if ${ax_cv_cxx_compile_cxx11+:} false; then :
20051  $as_echo_n "(cached) " >&6
20052else
20053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054/* end confdefs.h.  */
20055
20056  template <typename T>
20057    struct check
20058    {
20059      static_assert(sizeof(int) <= sizeof(T), "not big enough");
20060    };
20061
20062    struct Base {
20063    virtual void f() {}
20064    };
20065    struct Child : public Base {
20066    virtual void f() override {}
20067    };
20068
20069    typedef check<check<bool>> right_angle_brackets;
20070
20071    int a;
20072    decltype(a) b;
20073
20074    typedef check<int> check_type;
20075    check_type c;
20076    check_type&& cr = static_cast<check_type&&>(c);
20077
20078    auto d = a;
20079    auto l = [](){};
20080    // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
20081    struct use_l { use_l() { l(); } };
20082
20083    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20084    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
20085    namespace test_template_alias_sfinae {
20086        struct foo {};
20087
20088        template<typename T>
20089        using member = typename T::member_type;
20090
20091        template<typename T>
20092        void func(...) {}
20093
20094        template<typename T>
20095        void func(member<T>*) {}
20096
20097        void test();
20098
20099        void test() {
20100            func<foo>(0);
20101        }
20102    }
20103
20104    // Check for C++11 attribute support
20105    void noret [[noreturn]] () { throw 0; }
20106
20107_ACEOF
20108if ac_fn_cxx_try_compile "$LINENO"; then :
20109  ax_cv_cxx_compile_cxx11=yes
20110else
20111  ax_cv_cxx_compile_cxx11=no
20112fi
20113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114fi
20115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
20116$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
20117  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
20118    ac_success=yes
20119  fi
20120
20121
20122
20123    if test x$ac_success = xno; then
20124                for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
20125      cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
20126      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20127$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
20128if eval \${$cachevar+:} false; then :
20129  $as_echo_n "(cached) " >&6
20130else
20131  ac_save_CXXFLAGS="$CXXFLAGS"
20132         CXXFLAGS="$CXXFLAGS $switch"
20133         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134/* end confdefs.h.  */
20135
20136  template <typename T>
20137    struct check
20138    {
20139      static_assert(sizeof(int) <= sizeof(T), "not big enough");
20140    };
20141
20142    struct Base {
20143    virtual void f() {}
20144    };
20145    struct Child : public Base {
20146    virtual void f() override {}
20147    };
20148
20149    typedef check<check<bool>> right_angle_brackets;
20150
20151    int a;
20152    decltype(a) b;
20153
20154    typedef check<int> check_type;
20155    check_type c;
20156    check_type&& cr = static_cast<check_type&&>(c);
20157
20158    auto d = a;
20159    auto l = [](){};
20160    // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
20161    struct use_l { use_l() { l(); } };
20162
20163    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20164    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
20165    namespace test_template_alias_sfinae {
20166        struct foo {};
20167
20168        template<typename T>
20169        using member = typename T::member_type;
20170
20171        template<typename T>
20172        void func(...) {}
20173
20174        template<typename T>
20175        void func(member<T>*) {}
20176
20177        void test();
20178
20179        void test() {
20180            func<foo>(0);
20181        }
20182    }
20183
20184    // Check for C++11 attribute support
20185    void noret [[noreturn]] () { throw 0; }
20186
20187_ACEOF
20188if ac_fn_cxx_try_compile "$LINENO"; then :
20189  eval $cachevar=yes
20190else
20191  eval $cachevar=no
20192fi
20193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20194         CXXFLAGS="$ac_save_CXXFLAGS"
20195fi
20196eval ac_res=\$$cachevar
20197	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20198$as_echo "$ac_res" >&6; }
20199      if eval test x\$$cachevar = xyes; then
20200        CXXFLAGS="$CXXFLAGS $switch"
20201        ac_success=yes
20202        break
20203      fi
20204    done
20205  fi
20206  ac_ext=c
20207ac_cpp='$CPP $CPPFLAGS'
20208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20210ac_compiler_gnu=$ac_cv_c_compiler_gnu
20211
20212  if test x$ax_cxx_compile_cxx11_required = xtrue; then
20213    if test x$ac_success = xno; then
20214      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
20215    fi
20216  else
20217    if test x$ac_success = xno; then
20218      HAVE_CXX11=0
20219      { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
20220$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
20221    else
20222      HAVE_CXX11=1
20223
20224$as_echo "#define HAVE_CXX11 1" >>confdefs.h
20225
20226    fi
20227
20228
20229  fi
20230
20231
20232                                        XAPIAN_VERSION="`$XAPIAN_CONFIG --version|sed 's/.* //'`"
20233        XAPIAN_CXXFLAGS="`$XAPIAN_CONFIG --cxxflags`"
20234                                                                                        XAPIAN_LIBS="`ac_top_srcdir=\"$ac_top_srcdir\" $XAPIAN_CONFIG --from-xo-lib-xapian --libs`"
20235
20236
20237
20238$as_echo "#define USE_XAPIAN /**/" >>confdefs.h
20239
20240
20241                ac_ext=cpp
20242ac_cpp='$CXXCPP $CPPFLAGS'
20243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20246
20247        ORIG_LDFLAGS=$LDFLAGS
20248        ORIG_CXXFLAGS=$CXXFLAGS
20249        LDFLAGS="$LDFLAGS $XAPIAN_LIBS"
20250        CXXFLAGS="$CXXFLAGS $XAPIAN_CXXFLAGS"
20251        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xapian cyruslibs extensions" >&5
20252$as_echo_n "checking for Xapian cyruslibs extensions... " >&6; }
20253        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20254/* end confdefs.h.  */
20255#include <xapian.h>
20256int
20257main ()
20258{
20259unsigned cjk_flags = Xapian::TermGenerator::FLAG_CJK_WORDS | Xapian::QueryParser::FLAG_CJK_WORDS; unsigned snippet_flags = Xapian::MSet::SNIPPET_START_AT_NONSPACE; (void) cjk_flags; (void) snippet_flags
20260  ;
20261  return 0;
20262}
20263_ACEOF
20264if ac_fn_cxx_try_link "$LINENO"; then :
20265  xapian_cyrusexts="yes"
20266else
20267  xapian_cyrusexts="no"
20268fi
20269rm -f core conftest.err conftest.$ac_objext \
20270    conftest$ac_exeext conftest.$ac_ext
20271        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xapian_cyrusexts" >&5
20272$as_echo "$xapian_cyrusexts" >&6; }
20273        if test $xapian_cyrusexts = yes; then
20274
20275$as_echo "#define USE_XAPIAN_CYRUS_EXTENSIONS /**/" >>confdefs.h
20276
20277            xapian_flavor=cyruslibs
20278        else
20279            { $as_echo "$as_me:${as_lineno-$LINENO}: Your Xapian does not support the Cyrus extensions for Xapian. Consider installing cyruslibs Xapian" >&5
20280$as_echo "$as_me: Your Xapian does not support the Cyrus extensions for Xapian. Consider installing cyruslibs Xapian" >&6;}
20281            xapian_flavor=vanilla
20282        fi
20283        LDFLAGS=$ORIG_LDFLAGS
20284        CXXFLAGS=$ORIG_CXXFLAGS
20285        ac_ext=c
20286ac_cpp='$CPP $CPPFLAGS'
20287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20289ac_compiler_gnu=$ac_cv_c_compiler_gnu
20290
20291    fi
20292
20293
20294
20295fi
20296 if test "${enable_xapian}" != "no"; then
20297  USE_XAPIAN_TRUE=
20298  USE_XAPIAN_FALSE='#'
20299else
20300  USE_XAPIAN_TRUE='#'
20301  USE_XAPIAN_FALSE=
20302fi
20303
20304
20305cat >>confdefs.h <<_ACEOF
20306#define XAPIAN_FLAVOR "$xapian_flavor"
20307_ACEOF
20308
20309
20310
20311 if test "${enable_squat}" != "no" -o "${enable_sphinx}" != "no" -o "${enable_xapian}" != "no" ; then
20312  SQUATTER_TRUE=
20313  SQUATTER_FALSE='#'
20314else
20315  SQUATTER_TRUE='#'
20316  SQUATTER_FALSE=
20317fi
20318
20319
20320# Check whether --enable-sieve was given.
20321if test "${enable_sieve+set}" = set; then :
20322  enableval=$enable_sieve;
20323else
20324  enable_sieve="yes";
20325fi
20326
20327# Check whether --enable-pcre was given.
20328if test "${enable_pcre+set}" = set; then :
20329  enableval=$enable_pcre; cyrus_cv_pcre_utf8="no"
20330fi
20331
20332
20333if test "$enable_sieve" != "no"; then
20334
20335$as_echo "#define USE_SIEVE /**/" >>confdefs.h
20336
20337
20338                for ac_prog in 'bison -y' byacc
20339do
20340  # Extract the first word of "$ac_prog", so it can be a program name with args.
20341set dummy $ac_prog; ac_word=$2
20342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20343$as_echo_n "checking for $ac_word... " >&6; }
20344if ${ac_cv_prog_YACC+:} false; then :
20345  $as_echo_n "(cached) " >&6
20346else
20347  if test -n "$YACC"; then
20348  ac_cv_prog_YACC="$YACC" # Let the user override the test.
20349else
20350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20351for as_dir in $PATH
20352do
20353  IFS=$as_save_IFS
20354  test -z "$as_dir" && as_dir=.
20355    for ac_exec_ext in '' $ac_executable_extensions; do
20356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20357    ac_cv_prog_YACC="$ac_prog"
20358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20359    break 2
20360  fi
20361done
20362  done
20363IFS=$as_save_IFS
20364
20365fi
20366fi
20367YACC=$ac_cv_prog_YACC
20368if test -n "$YACC"; then
20369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
20370$as_echo "$YACC" >&6; }
20371else
20372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20373$as_echo "no" >&6; }
20374fi
20375
20376
20377  test -n "$YACC" && break
20378done
20379test -n "$YACC" || YACC="yacc"
20380
20381        for ac_prog in flex lex
20382do
20383  # Extract the first word of "$ac_prog", so it can be a program name with args.
20384set dummy $ac_prog; ac_word=$2
20385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20386$as_echo_n "checking for $ac_word... " >&6; }
20387if ${ac_cv_prog_LEX+:} false; then :
20388  $as_echo_n "(cached) " >&6
20389else
20390  if test -n "$LEX"; then
20391  ac_cv_prog_LEX="$LEX" # Let the user override the test.
20392else
20393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20394for as_dir in $PATH
20395do
20396  IFS=$as_save_IFS
20397  test -z "$as_dir" && as_dir=.
20398    for ac_exec_ext in '' $ac_executable_extensions; do
20399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20400    ac_cv_prog_LEX="$ac_prog"
20401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20402    break 2
20403  fi
20404done
20405  done
20406IFS=$as_save_IFS
20407
20408fi
20409fi
20410LEX=$ac_cv_prog_LEX
20411if test -n "$LEX"; then
20412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
20413$as_echo "$LEX" >&6; }
20414else
20415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20416$as_echo "no" >&6; }
20417fi
20418
20419
20420  test -n "$LEX" && break
20421done
20422test -n "$LEX" || LEX=":"
20423
20424if test "x$LEX" != "x:"; then
20425  cat >conftest.l <<_ACEOF
20426%%
20427a { ECHO; }
20428b { REJECT; }
20429c { yymore (); }
20430d { yyless (1); }
20431e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
20432    yyless ((input () != 0)); }
20433f { unput (yytext[0]); }
20434. { BEGIN INITIAL; }
20435%%
20436#ifdef YYTEXT_POINTER
20437extern char *yytext;
20438#endif
20439int
20440main (void)
20441{
20442  return ! yylex () + ! yywrap ();
20443}
20444_ACEOF
20445{ { ac_try="$LEX conftest.l"
20446case "(($ac_try" in
20447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448  *) ac_try_echo=$ac_try;;
20449esac
20450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20451$as_echo "$ac_try_echo"; } >&5
20452  (eval "$LEX conftest.l") 2>&5
20453  ac_status=$?
20454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20455  test $ac_status = 0; }
20456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
20457$as_echo_n "checking lex output file root... " >&6; }
20458if ${ac_cv_prog_lex_root+:} false; then :
20459  $as_echo_n "(cached) " >&6
20460else
20461
20462if test -f lex.yy.c; then
20463  ac_cv_prog_lex_root=lex.yy
20464elif test -f lexyy.c; then
20465  ac_cv_prog_lex_root=lexyy
20466else
20467  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
20468fi
20469fi
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
20471$as_echo "$ac_cv_prog_lex_root" >&6; }
20472LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20473
20474if test -z "${LEXLIB+set}"; then
20475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
20476$as_echo_n "checking lex library... " >&6; }
20477if ${ac_cv_lib_lex+:} false; then :
20478  $as_echo_n "(cached) " >&6
20479else
20480
20481    ac_save_LIBS=$LIBS
20482    ac_cv_lib_lex='none needed'
20483    for ac_lib in '' -lfl -ll; do
20484      LIBS="$ac_lib $ac_save_LIBS"
20485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486/* end confdefs.h.  */
20487`cat $LEX_OUTPUT_ROOT.c`
20488_ACEOF
20489if ac_fn_c_try_link "$LINENO"; then :
20490  ac_cv_lib_lex=$ac_lib
20491fi
20492rm -f core conftest.err conftest.$ac_objext \
20493    conftest$ac_exeext conftest.$ac_ext
20494      test "$ac_cv_lib_lex" != 'none needed' && break
20495    done
20496    LIBS=$ac_save_LIBS
20497
20498fi
20499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
20500$as_echo "$ac_cv_lib_lex" >&6; }
20501  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
20502fi
20503
20504
20505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
20506$as_echo_n "checking whether yytext is a pointer... " >&6; }
20507if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
20508  $as_echo_n "(cached) " >&6
20509else
20510  # POSIX says lex can declare yytext either as a pointer or an array; the
20511# default is implementation-dependent.  Figure out which it is, since
20512# not all implementations provide the %pointer and %array declarations.
20513ac_cv_prog_lex_yytext_pointer=no
20514ac_save_LIBS=$LIBS
20515LIBS="$LEXLIB $ac_save_LIBS"
20516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517/* end confdefs.h.  */
20518
20519  #define YYTEXT_POINTER 1
20520`cat $LEX_OUTPUT_ROOT.c`
20521_ACEOF
20522if ac_fn_c_try_link "$LINENO"; then :
20523  ac_cv_prog_lex_yytext_pointer=yes
20524fi
20525rm -f core conftest.err conftest.$ac_objext \
20526    conftest$ac_exeext conftest.$ac_ext
20527LIBS=$ac_save_LIBS
20528
20529fi
20530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
20531$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
20532if test $ac_cv_prog_lex_yytext_pointer = yes; then
20533
20534$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
20535
20536fi
20537rm -f conftest.l $LEX_OUTPUT_ROOT.c
20538
20539fi
20540if test "$LEX" = :; then
20541  LEX=${am_missing_run}flex
20542fi
20543
20544        if test -z "$ac_cv_prog_YACC"; then
20545            as_fn_error $? "Sieve requires bison/byacc/yacc, but none is installed" "$LINENO" 5
20546        fi
20547
20548        if test -z "$ac_cv_prog_LEX"; then
20549            as_fn_error $? "Sieve requires flex/lex, but none is installed" "$LINENO" 5
20550        fi
20551fi
20552
20553 if test "${enable_sieve}" != "no"; then
20554  SIEVE_TRUE=
20555  SIEVE_FALSE='#'
20556else
20557  SIEVE_TRUE='#'
20558  SIEVE_FALSE=
20559fi
20560
20561
20562if test "$enable_pcre" != "no"; then
20563        ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
20564if test "x$ac_cv_header_pcreposix_h" = xyes; then :
20565
20566fi
20567
20568
20569        if test "$ac_cv_header_pcreposix_h" = "yes"; then
20570            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 enabled pcre" >&5
20571$as_echo_n "checking for utf8 enabled pcre... " >&6; }
20572            if ${cyrus_cv_pcre_utf8+:} false; then :
20573  $as_echo_n "(cached) " >&6
20574else
20575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20576/* end confdefs.h.  */
20577#include <pcreposix.h>
20578#ifndef REG_UTF8
20579#include </nonexistent>
20580#endif
20581_ACEOF
20582if ac_fn_c_try_cpp "$LINENO"; then :
20583  cyrus_cv_pcre_utf8=yes
20584else
20585  cyrus_cv_pcre_utf8=no
20586fi
20587rm -f conftest.err conftest.i conftest.$ac_ext
20588fi
20589
20590            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_pcre_utf8" >&5
20591$as_echo "$cyrus_cv_pcre_utf8" >&6; }
20592        else
20593            cyrus_cv_pcre_utf8="no"
20594        fi
20595fi
20596
20597if test "$cyrus_cv_pcre_utf8" = "yes"; then
20598        LIBS="$LIBS -lpcre -lpcreposix";
20599
20600$as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
20601
20602
20603$as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
20604
20605else
20606        for ac_header in rxposix.h
20607do :
20608  ac_fn_c_check_header_mongrel "$LINENO" "rxposix.h" "ac_cv_header_rxposix_h" "$ac_includes_default"
20609if test "x$ac_cv_header_rxposix_h" = xyes; then :
20610  cat >>confdefs.h <<_ACEOF
20611#define HAVE_RXPOSIX_H 1
20612_ACEOF
20613
20614fi
20615
20616done
20617
20618        if test "$ac_cv_header_rxposix_h" = "yes"; then
20619            LIBS="$LIBS -lrx"
20620
20621$as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
20622
20623        else
20624            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
20625$as_echo_n "checking for library containing regcomp... " >&6; }
20626if ${ac_cv_search_regcomp+:} false; then :
20627  $as_echo_n "(cached) " >&6
20628else
20629  ac_func_search_save_LIBS=$LIBS
20630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631/* end confdefs.h.  */
20632
20633/* Override any GCC internal prototype to avoid an error.
20634   Use char because int might match the return type of a GCC
20635   builtin and then its argument prototype would still apply.  */
20636#ifdef __cplusplus
20637extern "C"
20638#endif
20639char regcomp ();
20640int
20641main ()
20642{
20643return regcomp ();
20644  ;
20645  return 0;
20646}
20647_ACEOF
20648for ac_lib in '' regex; do
20649  if test -z "$ac_lib"; then
20650    ac_res="none required"
20651  else
20652    ac_res=-l$ac_lib
20653    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20654  fi
20655  if ac_fn_c_try_link "$LINENO"; then :
20656  ac_cv_search_regcomp=$ac_res
20657fi
20658rm -f core conftest.err conftest.$ac_objext \
20659    conftest$ac_exeext
20660  if ${ac_cv_search_regcomp+:} false; then :
20661  break
20662fi
20663done
20664if ${ac_cv_search_regcomp+:} false; then :
20665
20666else
20667  ac_cv_search_regcomp=no
20668fi
20669rm conftest.$ac_ext
20670LIBS=$ac_func_search_save_LIBS
20671fi
20672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
20673$as_echo "$ac_cv_search_regcomp" >&6; }
20674ac_res=$ac_cv_search_regcomp
20675if test "$ac_res" != no; then :
20676  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20677
20678$as_echo "#define ENABLE_REGEX /**/" >>confdefs.h
20679
20680fi
20681
20682        fi
20683fi
20684
20685saved_CFLAGS="$CFLAGS"
20686NOWARN_SIGN_COMPARE="-Wno-sign-compare"
20687CFLAGS="$NOWARN_SIGN_COMPARE"
20688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports -Wno-sign-compare" >&5
20689$as_echo_n "checking whether the C compiler supports -Wno-sign-compare... " >&6; }
20690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691/* end confdefs.h.  */
20692
20693int
20694main ()
20695{
20696
20697  ;
20698  return 0;
20699}
20700_ACEOF
20701if ac_fn_c_try_compile "$LINENO"; then :
20702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20703$as_echo "yes" >&6; }
20704else
20705  NOWARN_SIGN_COMPARE=
20706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707$as_echo "no" >&6; }
20708
20709fi
20710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20711CFLAGS="$saved_CFLAGS"
20712
20713
20714ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
20715if test "x$ac_cv_func_strerror" = xyes; then :
20716
20717$as_echo "#define HAS_STRERROR /**/" >>confdefs.h
20718
20719else
20720
20721$as_echo "#define NEED_SYS_ERRLIST /**/" >>confdefs.h
20722
20723fi
20724
20725
20726for ac_header in sys/resource.h
20727do :
20728  ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
20729if test "x$ac_cv_header_sys_resource_h" = xyes; then :
20730  cat >>confdefs.h <<_ACEOF
20731#define HAVE_SYS_RESOURCE_H 1
20732_ACEOF
20733
20734fi
20735
20736done
20737
20738for ac_func in setrlimit
20739do :
20740  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
20741if test "x$ac_cv_func_setrlimit" = xyes; then :
20742  cat >>confdefs.h <<_ACEOF
20743#define HAVE_SETRLIMIT 1
20744_ACEOF
20745
20746fi
20747done
20748
20749for ac_func in getrlimit
20750do :
20751  ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
20752if test "x$ac_cv_func_getrlimit" = xyes; then :
20753  cat >>confdefs.h <<_ACEOF
20754#define HAVE_GETRLIMIT 1
20755_ACEOF
20756
20757fi
20758done
20759
20760
20761for ac_func in daemon setsid
20762do :
20763  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20764ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20765if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20766  cat >>confdefs.h <<_ACEOF
20767#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20768_ACEOF
20769
20770fi
20771done
20772
20773
20774for ac_func in shutdown
20775do :
20776  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
20777if test "x$ac_cv_func_shutdown" = xyes; then :
20778  cat >>confdefs.h <<_ACEOF
20779#define HAVE_SHUTDOWN 1
20780_ACEOF
20781
20782fi
20783done
20784
20785
20786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20787/* end confdefs.h.  */
20788#include <sys/socket.h>
20789
20790_ACEOF
20791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20792  $EGREP "socklen_t" >/dev/null 2>&1; then :
20793
20794$as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
20795
20796fi
20797rm -f conftest*
20798
20799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800/* end confdefs.h.  */
20801#include <sys/socket.h>
20802
20803_ACEOF
20804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20805  $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
20806
20807$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
20808
20809fi
20810rm -f conftest*
20811
20812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813/* end confdefs.h.  */
20814#include <sys/resource.h>
20815
20816_ACEOF
20817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20818  $EGREP "rlim_t" >/dev/null 2>&1; then :
20819
20820$as_echo "#define HAVE_RLIM_T /**/" >>confdefs.h
20821
20822fi
20823rm -f conftest*
20824
20825
20826spt_type=""
20827ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
20828if test "x$ac_cv_func_setproctitle" = xyes; then :
20829  spt_type=SPT_BUILTIN
20830fi
20831
20832if test "$spt_type" = ""; then
20833                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
20834$as_echo_n "checking for setproctitle in -lutil... " >&6; }
20835if ${ac_cv_lib_util_setproctitle+:} false; then :
20836  $as_echo_n "(cached) " >&6
20837else
20838  ac_check_lib_save_LIBS=$LIBS
20839LIBS="-lutil  $LIBS"
20840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841/* end confdefs.h.  */
20842
20843/* Override any GCC internal prototype to avoid an error.
20844   Use char because int might match the return type of a GCC
20845   builtin and then its argument prototype would still apply.  */
20846#ifdef __cplusplus
20847extern "C"
20848#endif
20849char setproctitle ();
20850int
20851main ()
20852{
20853return setproctitle ();
20854  ;
20855  return 0;
20856}
20857_ACEOF
20858if ac_fn_c_try_link "$LINENO"; then :
20859  ac_cv_lib_util_setproctitle=yes
20860else
20861  ac_cv_lib_util_setproctitle=no
20862fi
20863rm -f core conftest.err conftest.$ac_objext \
20864    conftest$ac_exeext conftest.$ac_ext
20865LIBS=$ac_check_lib_save_LIBS
20866fi
20867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
20868$as_echo "$ac_cv_lib_util_setproctitle" >&6; }
20869if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
20870  spt_type=SPT_BUILTIN
20871                        LIBS="${LIBS} -lutil"
20872fi
20873
20874fi
20875if test "$spt_type" = ""; then
20876        ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
20877if test "x$ac_cv_header_sys_pstat_h" = xyes; then :
20878  spt_type=SPT_PSTAT
20879fi
20880
20881
20882fi
20883if test "$spt_type" = ""; then
20884        ac_fn_c_check_header_mongrel "$LINENO" "sys/sysnews.h" "ac_cv_header_sys_sysnews_h" "$ac_includes_default"
20885if test "x$ac_cv_header_sys_sysnews_h" = xyes; then :
20886  spt_type=SPT_SYSMIPS
20887fi
20888
20889
20890fi
20891if test "$spt_type" = ""; then
20892        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
20893$as_echo_n "checking for PS_STRINGS... " >&6; }
20894        if ${cyrus_cv_sys_psstrings+:} false; then :
20895  $as_echo_n "(cached) " >&6
20896else
20897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20898/* end confdefs.h.  */
20899
20900#include <machine/vmparam.h>
20901#include <sys/exec.h>
20902void *p = PS_STRINGS;
20903
20904_ACEOF
20905if ac_fn_c_try_compile "$LINENO"; then :
20906  cyrus_cv_sys_psstrings=yes
20907else
20908  cyrus_cv_sys_psstrings=no
20909fi
20910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911fi
20912
20913         if test $cyrus_cv_sys_psstrings = yes; then
20914                 spt_type=SPT_PSSTRINGS
20915         fi
20916         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_psstrings" >&5
20917$as_echo "$cyrus_cv_sys_psstrings" >&6; }
20918fi
20919if test "$spt_type" = ""; then
20920        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCO" >&5
20921$as_echo_n "checking for SCO... " >&6; }
20922        if ${cyrus_cv_sys_sco+:} false; then :
20923  $as_echo_n "(cached) " >&6
20924else
20925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926/* end confdefs.h.  */
20927
20928#ifndef _SCO_unix_
20929#include </nonexistent>
20930#endif
20931_ACEOF
20932if ac_fn_c_try_cpp "$LINENO"; then :
20933  cyrus_cv_sys_sco=yes
20934else
20935  cyrus_cv_sys_sco=no
20936fi
20937rm -f conftest.err conftest.i conftest.$ac_ext
20938fi
20939
20940        if test $cyrus_cv_sys_sco = yes; then
20941                spt_type=SPT_SCO
20942        fi
20943        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_sco" >&5
20944$as_echo "$cyrus_cv_sys_sco" >&6; }
20945fi
20946if test "$spt_type" = ""; then
20947        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle usability" >&5
20948$as_echo_n "checking for setproctitle usability... " >&6; }
20949        if ${cyrus_cv_sys_setproctitle+:} false; then :
20950  $as_echo_n "(cached) " >&6
20951else
20952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953/* end confdefs.h.  */
20954
20955#if defined(DGUX) || defined(_SEQUENT_) || defined(apollo)
20956#include </nonexistent>
20957#endif
20958_ACEOF
20959if ac_fn_c_try_cpp "$LINENO"; then :
20960  cyrus_cv_sys_setproctitle=yes
20961else
20962  cyrus_cv_sys_setproctitle=no
20963fi
20964rm -f conftest.err conftest.i conftest.$ac_ext
20965fi
20966
20967        if test $cyrus_cv_sys_setproctitle = no; then
20968                spt_type=SPT_NONE
20969        fi
20970        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_setproctitle" >&5
20971$as_echo "$cyrus_cv_sys_setproctitle" >&6; }
20972fi
20973if test "$spt_type" != ""; then
20974
20975cat >>confdefs.h <<_ACEOF
20976#define SPT_TYPE $spt_type
20977_ACEOF
20978
20979fi
20980
20981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking nonblocking method" >&5
20982$as_echo_n "checking nonblocking method... " >&6; }
20983if ${cyrus_cv_sys_nonblock+:} false; then :
20984  $as_echo_n "(cached) " >&6
20985else
20986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987/* end confdefs.h.  */
20988#include <sys/types.h>
20989#include <sys/file.h>
20990#include <fcntl.h>
20991#ifndef FNDELAY
20992#define FNDELAY         O_NDELAY
20993#endif
20994int
20995main ()
20996{
20997fcntl(0, F_GETFL, 0)&FNDELAY
20998  ;
20999  return 0;
21000}
21001_ACEOF
21002if ac_fn_c_try_link "$LINENO"; then :
21003  cyrus_cv_sys_nonblock=fcntl
21004else
21005  cyrus_cv_sys_nonblock=ioctl
21006fi
21007rm -f core conftest.err conftest.$ac_objext \
21008    conftest$ac_exeext conftest.$ac_ext
21009fi
21010
21011 if test "$cyrus_cv_sys_nonblock" = "fcntl"; then
21012  NONBLOCK_FCNTL_TRUE=
21013  NONBLOCK_FCNTL_FALSE='#'
21014else
21015  NONBLOCK_FCNTL_TRUE='#'
21016  NONBLOCK_FCNTL_FALSE=
21017fi
21018
21019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sys_nonblock" >&5
21020$as_echo "$cyrus_cv_sys_nonblock" >&6; }
21021
21022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking timezone GMT offset method" >&5
21023$as_echo_n "checking timezone GMT offset method... " >&6; }
21024if ${cyrus_cv_struct_sys_gmtoff+:} false; then :
21025  $as_echo_n "(cached) " >&6
21026else
21027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028/* end confdefs.h.  */
21029
21030#include <time.h>
21031int
21032main ()
21033{
21034struct tm tm;
21035tm.tm_gmtoff = 0;
21036
21037  ;
21038  return 0;
21039}
21040_ACEOF
21041if ac_fn_c_try_compile "$LINENO"; then :
21042  cyrus_cv_struct_sys_gmtoff=tm
21043else
21044  cyrus_cv_struct_sys_gmtoff=gmtime
21045fi
21046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047fi
21048
21049 if test "$cyrus_cv_struct_sys_gmtoff" = "tm"; then
21050  GMTOFF_TM_TRUE=
21051  GMTOFF_TM_FALSE='#'
21052else
21053  GMTOFF_TM_TRUE='#'
21054  GMTOFF_TM_FALSE=
21055fi
21056
21057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_struct_sys_gmtoff" >&5
21058$as_echo "$cyrus_cv_struct_sys_gmtoff" >&6; }
21059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared mmap" >&5
21060$as_echo_n "checking for shared mmap... " >&6; }
21061if ${cyrus_cv_func_mmap_shared+:} false; then :
21062  $as_echo_n "(cached) " >&6
21063else
21064  if test "$cross_compiling" = yes; then :
21065  cyrus_cv_func_mmap_shared=no
21066else
21067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21068/* end confdefs.h.  */
21069
21070#include <fcntl.h>
21071#include <string.h>
21072#include <sys/mman.h>
21073#include <sys/types.h>
21074#include <unistd.h>
21075int main() {
21076    char *base;
21077    int mmapflags = MAP_SHARED;
21078    int fd = open("conftestmmap", O_RDWR|O_CREAT|O_TRUNC, 0666);
21079    if (fd == -1) return 1;
21080    if (write(fd, "test", 4) != 4) return 1;
21081    fsync(fd);
21082#ifdef MAP_FILE
21083    mmapflags |= MAP_FILE;
21084#endif
21085#ifdef MAP_VARIABLE
21086    mmapflags |= MAP_VARIABLE;
21087#endif
21088    base = mmap((caddr_t)0, 100, PROT_READ, mmapflags, fd, 0L);
21089    if (base == (caddr_t)-1) return 1;
21090    if (memcmp(base, "test", 4) != 0) return 1;
21091    if (write(fd, "test", 4) != 4) return 1;
21092    fsync(fd);
21093    if (memcmp(base+4, "test", 4) != 0) return 1;
21094    return 0;
21095}
21096
21097_ACEOF
21098if ac_fn_c_try_run "$LINENO"; then :
21099  cyrus_cv_func_mmap_shared=yes
21100else
21101  cyrus_cv_func_mmap_shared=no
21102fi
21103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21104  conftest.$ac_objext conftest.beam conftest.$ac_ext
21105fi
21106
21107fi
21108
21109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_func_mmap_shared" >&5
21110$as_echo "$cyrus_cv_func_mmap_shared" >&6; }
21111if test $cyrus_cv_func_mmap_shared = yes; then
21112        found_map="shared"
21113else
21114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stupid shared mmap" >&5
21115$as_echo_n "checking for stupid shared mmap... " >&6; }
21116if ${cyrus_cv_func_mmap_stupidshared+:} false; then :
21117  $as_echo_n "(cached) " >&6
21118else
21119  if test "$cross_compiling" = yes; then :
21120  cyrus_cv_func_mmap_stupidshared=no
21121else
21122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21123/* end confdefs.h.  */
21124
21125#include <fcntl.h>
21126#include <string.h>
21127#include <sys/mman.h>
21128#include <sys/types.h>
21129#include <unistd.h>
21130int main() {
21131    char *base;
21132    int fd = open("conftestmmap", O_RDWR|O_CREAT|O_TRUNC, 0666);
21133    int mmapflags = MAP_SHARED;
21134    if (fd == -1) return 1;
21135    if (write(fd, "test", 4) != 4) return 1;
21136    fsync(fd);
21137#ifdef MAP_FILE
21138    mmapflags |= MAP_FILE;
21139#endif
21140#ifdef MAP_VARIABLE
21141    mmapflags |= MAP_VARIABLE;
21142#endif
21143    base = mmap((caddr_t)0, 4, PROT_READ, mmapflags, fd, 0L);
21144    if (base == (caddr_t)-1) return 1;
21145    if (memcmp(base, "test", 4) != 0) return 1;
21146    lseek(fd, 0L, 0);
21147    if (write(fd, "xyzz", 4) != 4) return 1;
21148    fsync(fd);
21149    if (memcmp(base, "xyzz", 4) != 0) return 1;
21150    return 0;
21151}
21152
21153_ACEOF
21154if ac_fn_c_try_run "$LINENO"; then :
21155  cyrus_cv_func_mmap_stupidshared=yes
21156else
21157  cyrus_cv_func_mmap_stupidshared=no
21158fi
21159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21160  conftest.$ac_objext conftest.beam conftest.$ac_ext
21161fi
21162
21163fi
21164
21165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_func_mmap_stupidshared" >&5
21166$as_echo "$cyrus_cv_func_mmap_stupidshared" >&6; }
21167if test $cyrus_cv_func_mmap_stupidshared = yes; then
21168        found_map="stupidshared"
21169else
21170        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This system does not have a working mmap()" >&5
21171$as_echo "$as_me: WARNING: *** This system does not have a working mmap()" >&2;}
21172        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Expect a considerable performance penalty" >&5
21173$as_echo "$as_me: WARNING: *** Expect a considerable performance penalty" >&2;}
21174        found_map=nommap
21175fi
21176fi
21177
21178
21179# Check whether --with-mmap was given.
21180if test "${with_mmap+set}" = set; then :
21181  withval=$with_mmap; WITH_MAP="$withval"
21182else
21183  WITH_MAP="$found_map"
21184fi
21185
21186 if test "$WITH_MAP" = "shared"; then
21187  MAP_SHARED_TRUE=
21188  MAP_SHARED_FALSE='#'
21189else
21190  MAP_SHARED_TRUE='#'
21191  MAP_SHARED_FALSE=
21192fi
21193
21194 if test "$WITH_MAP" = "stupidshared"; then
21195  MAP_STUPIDSHARED_TRUE=
21196  MAP_STUPIDSHARED_FALSE='#'
21197else
21198  MAP_STUPIDSHARED_TRUE='#'
21199  MAP_STUPIDSHARED_FALSE=
21200fi
21201
21202
21203
21204# Check whether --with-lock was given.
21205if test "${with_lock+set}" = set; then :
21206  withval=$with_lock; WITH_LOCK="$withval"
21207else
21208
21209  ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
21210if test "x$ac_cv_func_fcntl" = xyes; then :
21211  WITH_LOCK="fcntl"
21212else
21213
21214                ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
21215if test "x$ac_cv_func_flock" = xyes; then :
21216  WITH_LOCK="flock"
21217else
21218
21219                                as_fn_error $? "unable to detect locking method" "$LINENO" 5
21220
21221fi
21222
21223
21224fi
21225
21226
21227fi
21228
21229 if test $WITH_LOCK = "fcntl"; then
21230  LOCK_FCNTL_TRUE=
21231  LOCK_FCNTL_FALSE='#'
21232else
21233  LOCK_FCNTL_TRUE='#'
21234  LOCK_FCNTL_FALSE=
21235fi
21236
21237
21238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21239$as_echo_n "checking for library containing fdatasync... " >&6; }
21240if ${ac_cv_search_fdatasync+:} false; then :
21241  $as_echo_n "(cached) " >&6
21242else
21243  ac_func_search_save_LIBS=$LIBS
21244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245/* end confdefs.h.  */
21246
21247/* Override any GCC internal prototype to avoid an error.
21248   Use char because int might match the return type of a GCC
21249   builtin and then its argument prototype would still apply.  */
21250#ifdef __cplusplus
21251extern "C"
21252#endif
21253char fdatasync ();
21254int
21255main ()
21256{
21257return fdatasync ();
21258  ;
21259  return 0;
21260}
21261_ACEOF
21262for ac_lib in '' rt; do
21263  if test -z "$ac_lib"; then
21264    ac_res="none required"
21265  else
21266    ac_res=-l$ac_lib
21267    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21268  fi
21269  if ac_fn_c_try_link "$LINENO"; then :
21270  ac_cv_search_fdatasync=$ac_res
21271fi
21272rm -f core conftest.err conftest.$ac_objext \
21273    conftest$ac_exeext
21274  if ${ac_cv_search_fdatasync+:} false; then :
21275  break
21276fi
21277done
21278if ${ac_cv_search_fdatasync+:} false; then :
21279
21280else
21281  ac_cv_search_fdatasync=no
21282fi
21283rm conftest.$ac_ext
21284LIBS=$ac_func_search_save_LIBS
21285fi
21286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21287$as_echo "$ac_cv_search_fdatasync" >&6; }
21288ac_res=$ac_cv_search_fdatasync
21289if test "$ac_res" != no; then :
21290  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21291
21292
21293$as_echo "#define HAVE_FDATASYNC /**/" >>confdefs.h
21294
21295
21296fi
21297
21298
21299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21300$as_echo_n "checking for library containing clock_gettime... " >&6; }
21301if ${ac_cv_search_clock_gettime+:} false; then :
21302  $as_echo_n "(cached) " >&6
21303else
21304  ac_func_search_save_LIBS=$LIBS
21305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21306/* end confdefs.h.  */
21307
21308/* Override any GCC internal prototype to avoid an error.
21309   Use char because int might match the return type of a GCC
21310   builtin and then its argument prototype would still apply.  */
21311#ifdef __cplusplus
21312extern "C"
21313#endif
21314char clock_gettime ();
21315int
21316main ()
21317{
21318return clock_gettime ();
21319  ;
21320  return 0;
21321}
21322_ACEOF
21323for ac_lib in '' rt; do
21324  if test -z "$ac_lib"; then
21325    ac_res="none required"
21326  else
21327    ac_res=-l$ac_lib
21328    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21329  fi
21330  if ac_fn_c_try_link "$LINENO"; then :
21331  ac_cv_search_clock_gettime=$ac_res
21332fi
21333rm -f core conftest.err conftest.$ac_objext \
21334    conftest$ac_exeext
21335  if ${ac_cv_search_clock_gettime+:} false; then :
21336  break
21337fi
21338done
21339if ${ac_cv_search_clock_gettime+:} false; then :
21340
21341else
21342  ac_cv_search_clock_gettime=no
21343fi
21344rm conftest.$ac_ext
21345LIBS=$ac_func_search_save_LIBS
21346fi
21347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21348$as_echo "$ac_cv_search_clock_gettime" >&6; }
21349ac_res=$ac_cv_search_clock_gettime
21350if test "$ac_res" != no; then :
21351  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21352
21353else
21354
21355    as_fn_error $? "unable to find the clock_gettime() function" "$LINENO" 5
21356
21357fi
21358
21359
21360LIB_UUID=
21361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
21362$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
21363if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
21364  $as_echo_n "(cached) " >&6
21365else
21366  ac_check_lib_save_LIBS=$LIBS
21367LIBS="-luuid  $LIBS"
21368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21369/* end confdefs.h.  */
21370
21371/* Override any GCC internal prototype to avoid an error.
21372   Use char because int might match the return type of a GCC
21373   builtin and then its argument prototype would still apply.  */
21374#ifdef __cplusplus
21375extern "C"
21376#endif
21377char uuid_generate ();
21378int
21379main ()
21380{
21381return uuid_generate ();
21382  ;
21383  return 0;
21384}
21385_ACEOF
21386if ac_fn_c_try_link "$LINENO"; then :
21387  ac_cv_lib_uuid_uuid_generate=yes
21388else
21389  ac_cv_lib_uuid_uuid_generate=no
21390fi
21391rm -f core conftest.err conftest.$ac_objext \
21392    conftest$ac_exeext conftest.$ac_ext
21393LIBS=$ac_check_lib_save_LIBS
21394fi
21395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
21396$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
21397if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
21398
21399    LIB_UUID="-luuid"
21400
21401$as_echo "#define HAVE_LIBUUID /**/" >>confdefs.h
21402
21403
21404fi
21405
21406
21407cant_find_sigvec=no
21408if ${cyrus_cv_sigveclib+:} false; then :
21409  $as_echo_n "(cached) " >&6
21410else
21411
21412  ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
21413if test "x$ac_cv_func_sigvec" = xyes; then :
21414
21415        cyrus_cv_sigveclib=""
21416
21417else
21418
21419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigvec in -lBSD" >&5
21420$as_echo_n "checking for sigvec in -lBSD... " >&6; }
21421if ${ac_cv_lib_BSD_sigvec+:} false; then :
21422  $as_echo_n "(cached) " >&6
21423else
21424  ac_check_lib_save_LIBS=$LIBS
21425LIBS="-lBSD  $LIBS"
21426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427/* end confdefs.h.  */
21428
21429/* Override any GCC internal prototype to avoid an error.
21430   Use char because int might match the return type of a GCC
21431   builtin and then its argument prototype would still apply.  */
21432#ifdef __cplusplus
21433extern "C"
21434#endif
21435char sigvec ();
21436int
21437main ()
21438{
21439return sigvec ();
21440  ;
21441  return 0;
21442}
21443_ACEOF
21444if ac_fn_c_try_link "$LINENO"; then :
21445  ac_cv_lib_BSD_sigvec=yes
21446else
21447  ac_cv_lib_BSD_sigvec=no
21448fi
21449rm -f core conftest.err conftest.$ac_objext \
21450    conftest$ac_exeext conftest.$ac_ext
21451LIBS=$ac_check_lib_save_LIBS
21452fi
21453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_BSD_sigvec" >&5
21454$as_echo "$ac_cv_lib_BSD_sigvec" >&6; }
21455if test "x$ac_cv_lib_BSD_sigvec" = xyes; then :
21456  cyrus_cv_sigveclib="-lBSD"
21457else
21458
21459        SAVE_LDFLAGS="$LDFLAGS"
21460        LDFLAGS="-L/usr/ucblib -R/usr/ucblib $LDFLAGS"
21461    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigvec in -lucb" >&5
21462$as_echo_n "checking for sigvec in -lucb... " >&6; }
21463if ${ac_cv_lib_ucb_sigvec+:} false; then :
21464  $as_echo_n "(cached) " >&6
21465else
21466  ac_check_lib_save_LIBS=$LIBS
21467LIBS="-lucb  $LIBS"
21468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21469/* end confdefs.h.  */
21470
21471/* Override any GCC internal prototype to avoid an error.
21472   Use char because int might match the return type of a GCC
21473   builtin and then its argument prototype would still apply.  */
21474#ifdef __cplusplus
21475extern "C"
21476#endif
21477char sigvec ();
21478int
21479main ()
21480{
21481return sigvec ();
21482  ;
21483  return 0;
21484}
21485_ACEOF
21486if ac_fn_c_try_link "$LINENO"; then :
21487  ac_cv_lib_ucb_sigvec=yes
21488else
21489  ac_cv_lib_ucb_sigvec=no
21490fi
21491rm -f core conftest.err conftest.$ac_objext \
21492    conftest$ac_exeext conftest.$ac_ext
21493LIBS=$ac_check_lib_save_LIBS
21494fi
21495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_sigvec" >&5
21496$as_echo "$ac_cv_lib_ucb_sigvec" >&6; }
21497if test "x$ac_cv_lib_ucb_sigvec" = xyes; then :
21498
21499            cyrus_cv_sigveclib="-lc -L/usr/ucblib -R/usr/ucblib -lucb"
21500else
21501   cant_find_sigvec=yes
21502fi
21503
21504    LDFLAGS="$SAVE_LDFLAGS"
21505fi
21506
21507
21508fi
21509
21510
21511fi
21512
21513
21514
21515# ok, we still look for this stuff because of checking groups, but
21516# all authentication goes through SASL
21517# Check whether --enable-afs was given.
21518if test "${enable_afs+set}" = set; then :
21519  enableval=$enable_afs;
21520fi
21521
21522
21523
21524# Check whether --with-afs-libdir was given.
21525if test "${with_afs_libdir+set}" = set; then :
21526  withval=$with_afs_libdir; afs_libdir="${withval}"
21527else
21528  afs_libdir="/usr/lib"
21529fi
21530
21531
21532
21533# Check whether --with-afs-incdir was given.
21534if test "${with_afs_incdir+set}" = set; then :
21535  withval=$with_afs_incdir; afs_incdir="${withval}"
21536else
21537  afs_incdir="/usr/include"
21538fi
21539
21540
21541
21542# Check whether --with-ldap was given.
21543if test "${with_ldap+set}" = set; then :
21544  withval=$with_ldap; with_ldap="${withval}"
21545else
21546  with_ldap="no"
21547fi
21548
21549
21550# Check whether --enable-krb5afspts was given.
21551if test "${enable_krb5afspts+set}" = set; then :
21552  enableval=$enable_krb5afspts;
21553fi
21554
21555
21556if test "x$enable_afs" = "xyes"; then
21557# krb5afspts is only valid if AFS is enabled, so check inside here.
21558    if test "x$enable_krb5afspts" = "xyes"; then :
21559  SASL_GSSAPI_LIBS_SET="yes"
21560
21561
21562$as_echo "#define AFSPTS_USE_KRB5 /**/" >>confdefs.h
21563
21564
21565fi
21566
21567    SAVE_CFLAGS="$CFLAGS"
21568    CFLAGS="${CFLAGS} -I${with_afs_incdir}"
21569    AFS_LIBS="${with_afs_libdir}/afs/libkauth.a ${with_afs_libdir}/afs/libprot.a  ${with_afs_libdir}/afs/libauth.a ${with_afs_libdir}/afs/libsys.a ${with_afs_libdir}/librxkad.a ${with_afs_libdir}/librx.a ${with_afs_libdir}/afs/libsys.a ${with_afs_libdir}/libubik.a ${with_afs_libdir}/afs/util.a ${with_afs_libdir}/afs/libafscom_err.a -lresolv"
21570    if test -f ${with_afs_libdir}/afs/liblwp.a; then
21571      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/afs/liblwp.a"
21572    elif test -f ${with_afs_libdir}/liblwp.a; then
21573      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/liblwp.a"
21574    fi
21575    if test -f ${with_afs_libdir}/afs/libaudit.a; then
21576      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/afs/libaudit.a"
21577    fi
21578    if test -f /usr/ucblib/libucb.a; then
21579
21580  # this is CMU ADD LIBPATH TO
21581  if test "$andrew_cv_runpath_switch" = "none" ; then
21582        AFS_LDFLAGS="-L/usr/ucblib ${AFS_LDFLAGS}"
21583  else
21584        AFS_LDFLAGS="-L/usr/ucblib ${AFS_LDFLAGS} $andrew_cv_runpath_switch/usr/ucblib"
21585  fi
21586
21587      AFS_LIBS="$AFS_LIBS -lc -lucb"
21588    fi
21589    if test -f ${with_afs_libdir}/afs/libdes.a; then
21590      AFS_LIBS="$AFS_LIBS ${with_afs_libdir}/afs/libdes.a"
21591    else
21592      AFS_LIBS="$AFS_LIBS -ldes"
21593    fi
21594
21595    if ${cyrus_cv_afs_sigvec+:} false; then :
21596  $as_echo_n "(cached) " >&6
21597else
21598
21599        SAVE_LIBS="$LIBS"
21600        LIBS="${with_afs_libdir}/liblwp.a"
21601        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AFS libraries need sigvec" >&5
21602$as_echo_n "checking if AFS libraries need sigvec... " >&6; }
21603                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21604/* end confdefs.h.  */
21605IOMGR_Initialize();
21606int
21607main ()
21608{
21609IOMGR_Initialize()
21610  ;
21611  return 0;
21612}
21613_ACEOF
21614if ac_fn_c_try_link "$LINENO"; then :
21615
21616                                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21617$as_echo "no" >&6; }
21618                        cyrus_cv_afs_sigvec="no"
21619
21620else
21621
21622                                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21623$as_echo "yes" >&6; }
21624                        cyrus_cv_afs_sigvec="yes"
21625
21626fi
21627rm -f core conftest.err conftest.$ac_objext \
21628    conftest$ac_exeext conftest.$ac_ext
21629
21630fi
21631
21632    if test "$cyrus_cv_afs_sigvec" = yes; then
21633      if test "$cant_find_sigvec" = yes; then
21634        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a sigvec for AFS libraries which seem to need one." >&5
21635$as_echo "$as_me: WARNING: Can not find a sigvec for AFS libraries which seem to need one." >&2;}
21636      else
21637        AFS_LIBS="${AFS_LIBS} $cyrus_cv_sigveclib"
21638
21639$as_echo "#define HAVE_AFSKRB /**/" >>confdefs.h
21640
21641      fi
21642    else
21643      AFS_LIBS="${AFS_LIBS}"
21644
21645$as_echo "#define HAVE_AFSKRB /**/" >>confdefs.h
21646
21647    fi
21648    LIBS="$SAVE_LIBS"
21649    CFLAGS="$SAVE_CFLAGS"
21650
21651
21652fi
21653 if grep HAVE_AFSKRB confdefs.h >/dev/null; then
21654  USE_AFSKRB_TRUE=
21655  USE_AFSKRB_FALSE='#'
21656else
21657  USE_AFSKRB_TRUE='#'
21658  USE_AFSKRB_FALSE=
21659fi
21660
21661
21662have_ldap=no
21663LDAP_CPPFLAGS=
21664LDAP_LDFLAGS=
21665LDAP_LIBS=
21666
21667case "x$with_ldap" in
21668xno)
21669    # default args or --without-ldap
21670    # do not try to enable
21671    ;;
21672xyes)
21673    # --with-ldap
21674    # try to enable, search in default system directories
21675    ldap_cppflags=
21676    ldap_ldflags=
21677    ;;
21678*)
21679    # --with-ldap=DIR
21680    # try to enable, search in given install directory
21681    if test "x$with_ldap" != "x" -a -d "$with_ldap"; then
21682        ldap_cppflags="-I${with_ldap}/include"
21683        ldap_ldflags="-L${with_ldap}/lib"
21684        with_ldap=yes
21685    else
21686        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling LDAP - no include files found" >&5
21687$as_echo "$as_me: WARNING: Disabling LDAP - no include files found" >&2;}
21688        with_ldap=no
21689    fi
21690esac
21691
21692if test $with_ldap = yes; then
21693    save_CPPFLAGS="$CPPFLAGS"
21694    save_LDFLAGS="$LDFLAGS"
21695    CPPFLAGS="$CPPFLAGS $ldap_cppflags"
21696    LDFLAGS="$LDFLAGS $ldap_ldflags"
21697
21698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
21699$as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
21700if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
21701  $as_echo_n "(cached) " >&6
21702else
21703  ac_check_lib_save_LIBS=$LIBS
21704LIBS="-lldap -llber $LIBS"
21705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21706/* end confdefs.h.  */
21707
21708/* Override any GCC internal prototype to avoid an error.
21709   Use char because int might match the return type of a GCC
21710   builtin and then its argument prototype would still apply.  */
21711#ifdef __cplusplus
21712extern "C"
21713#endif
21714char ldap_initialize ();
21715int
21716main ()
21717{
21718return ldap_initialize ();
21719  ;
21720  return 0;
21721}
21722_ACEOF
21723if ac_fn_c_try_link "$LINENO"; then :
21724  ac_cv_lib_ldap_ldap_initialize=yes
21725else
21726  ac_cv_lib_ldap_ldap_initialize=no
21727fi
21728rm -f core conftest.err conftest.$ac_objext \
21729    conftest$ac_exeext conftest.$ac_ext
21730LIBS=$ac_check_lib_save_LIBS
21731fi
21732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
21733$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
21734if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
21735
21736
21737$as_echo "#define HAVE_LDAP /**/" >>confdefs.h
21738
21739        LDAP_CPPFLAGS="$ldap_cppflags"
21740        LDAP_LDFLAGS="$ldap_ldflags"
21741        LDAP_LIBS="-lldap -llber"
21742        have_ldap=yes
21743
21744fi
21745
21746
21747    CPPFLAGS="$save_CPPFLAGS"
21748    LDFLAGS="$save_LDFLAGS"
21749fi
21750
21751
21752
21753 if test "$have_ldap" = "yes"; then
21754  HAVE_LDAP_TRUE=
21755  HAVE_LDAP_FALSE='#'
21756else
21757  HAVE_LDAP_TRUE='#'
21758  HAVE_LDAP_FALSE=
21759fi
21760
21761
21762 if test "x$enable_afs" = "xyes" -o "$have_ldap" = "yes"; then
21763  PTCLIENT_TRUE=
21764  PTCLIENT_FALSE='#'
21765else
21766  PTCLIENT_TRUE='#'
21767  PTCLIENT_FALSE=
21768fi
21769
21770
21771
21772# Check whether --with-clamav was given.
21773if test "${with_clamav+set}" = set; then :
21774  withval=$with_clamav;
21775fi
21776
21777if test "x$with_clamav" != "xno"; then :
21778
21779pkg_failed=no
21780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLAMAV" >&5
21781$as_echo_n "checking for CLAMAV... " >&6; }
21782
21783if test -n "$CLAMAV_CFLAGS"; then
21784    pkg_cv_CLAMAV_CFLAGS="$CLAMAV_CFLAGS"
21785 elif test -n "$PKG_CONFIG"; then
21786    if test -n "$PKG_CONFIG" && \
21787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclamav\""; } >&5
21788  ($PKG_CONFIG --exists --print-errors "libclamav") 2>&5
21789  ac_status=$?
21790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21791  test $ac_status = 0; }; then
21792  pkg_cv_CLAMAV_CFLAGS=`$PKG_CONFIG --cflags "libclamav" 2>/dev/null`
21793		      test "x$?" != "x0" && pkg_failed=yes
21794else
21795  pkg_failed=yes
21796fi
21797 else
21798    pkg_failed=untried
21799fi
21800if test -n "$CLAMAV_LIBS"; then
21801    pkg_cv_CLAMAV_LIBS="$CLAMAV_LIBS"
21802 elif test -n "$PKG_CONFIG"; then
21803    if test -n "$PKG_CONFIG" && \
21804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclamav\""; } >&5
21805  ($PKG_CONFIG --exists --print-errors "libclamav") 2>&5
21806  ac_status=$?
21807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21808  test $ac_status = 0; }; then
21809  pkg_cv_CLAMAV_LIBS=`$PKG_CONFIG --libs "libclamav" 2>/dev/null`
21810		      test "x$?" != "x0" && pkg_failed=yes
21811else
21812  pkg_failed=yes
21813fi
21814 else
21815    pkg_failed=untried
21816fi
21817
21818
21819
21820if test $pkg_failed = yes; then
21821   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822$as_echo "no" >&6; }
21823
21824if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21825        _pkg_short_errors_supported=yes
21826else
21827        _pkg_short_errors_supported=no
21828fi
21829        if test $_pkg_short_errors_supported = yes; then
21830	        CLAMAV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclamav" 2>&1`
21831        else
21832	        CLAMAV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclamav" 2>&1`
21833        fi
21834	# Put the nasty error message in config.log where it belongs
21835	echo "$CLAMAV_PKG_ERRORS" >&5
21836
21837	with_clamav=no
21838elif test $pkg_failed = untried; then
21839     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21840$as_echo "no" >&6; }
21841	with_clamav=no
21842else
21843	CLAMAV_CFLAGS=$pkg_cv_CLAMAV_CFLAGS
21844	CLAMAV_LIBS=$pkg_cv_CLAMAV_LIBS
21845        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21846$as_echo "yes" >&6; }
21847
21848$as_echo "#define HAVE_CLAMAV /**/" >>confdefs.h
21849
21850		  with_clamav=yes
21851fi
21852fi
21853
21854# Check whether --enable-server was given.
21855if test "${enable_server+set}" = set; then :
21856  enableval=$enable_server;
21857fi
21858
21859 if test "$enable_server" != "no"; then
21860  SERVER_TRUE=
21861  SERVER_FALSE='#'
21862else
21863  SERVER_TRUE='#'
21864  SERVER_FALSE=
21865fi
21866
21867# We always output a server makefile (just because we can)
21868
21869
21870# Check whether --with-krb was given.
21871if test "${with_krb+set}" = set; then :
21872  withval=$with_krb; with_krb="$withval"
21873else
21874  with_krb="no"
21875fi
21876
21877
21878
21879# Check whether --with-krbimpl was given.
21880if test "${with_krbimpl+set}" = set; then :
21881  withval=$with_krbimpl; with_krbimpl="$withval"
21882else
21883  with_krbimpl="kth"
21884fi
21885
21886
21887# Check whether --enable-statickrb was given.
21888if test "${enable_statickrb+set}" = set; then :
21889  enableval=$enable_statickrb; with_statickrb="yes"
21890else
21891  with_statickrb="no"
21892fi
21893
21894
21895
21896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
21897$as_echo_n "checking for res_search in -lresolv... " >&6; }
21898if ${ac_cv_lib_resolv_res_search+:} false; then :
21899  $as_echo_n "(cached) " >&6
21900else
21901  ac_check_lib_save_LIBS=$LIBS
21902LIBS="-lresolv  $LIBS"
21903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904/* end confdefs.h.  */
21905
21906/* Override any GCC internal prototype to avoid an error.
21907   Use char because int might match the return type of a GCC
21908   builtin and then its argument prototype would still apply.  */
21909#ifdef __cplusplus
21910extern "C"
21911#endif
21912char res_search ();
21913int
21914main ()
21915{
21916return res_search ();
21917  ;
21918  return 0;
21919}
21920_ACEOF
21921if ac_fn_c_try_link "$LINENO"; then :
21922  ac_cv_lib_resolv_res_search=yes
21923else
21924  ac_cv_lib_resolv_res_search=no
21925fi
21926rm -f core conftest.err conftest.$ac_objext \
21927    conftest$ac_exeext conftest.$ac_ext
21928LIBS=$ac_check_lib_save_LIBS
21929fi
21930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
21931$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
21932if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
21933  cat >>confdefs.h <<_ACEOF
21934#define HAVE_LIBRESOLV 1
21935_ACEOF
21936
21937  LIBS="-lresolv $LIBS"
21938
21939fi
21940
21941
21942if test "$with_statickrb" = "yes" -a ! -d "$with_krb"; then
21943      as_fn_error $? "--enable-statickrb specified but --with-krb did not specify a valid directory" "$LINENO" 5
21944fi
21945
21946if test "$with_krb" != "no"; then
21947
21948# Check whether --with-krbdes was given.
21949if test "${with_krbdes+set}" = set; then :
21950  withval=$with_krbdes; with_krbdes="$withval"
21951else
21952  with_krbdes="yes"
21953fi
21954
21955if test "$with_krbdes" = "yes"; then
21956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_ecb_encrypt in -ldes" >&5
21957$as_echo_n "checking for des_ecb_encrypt in -ldes... " >&6; }
21958if ${ac_cv_lib_des_des_ecb_encrypt+:} false; then :
21959  $as_echo_n "(cached) " >&6
21960else
21961  ac_check_lib_save_LIBS=$LIBS
21962LIBS="-ldes  $LIBS"
21963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21964/* end confdefs.h.  */
21965
21966/* Override any GCC internal prototype to avoid an error.
21967   Use char because int might match the return type of a GCC
21968   builtin and then its argument prototype would still apply.  */
21969#ifdef __cplusplus
21970extern "C"
21971#endif
21972char des_ecb_encrypt ();
21973int
21974main ()
21975{
21976return des_ecb_encrypt ();
21977  ;
21978  return 0;
21979}
21980_ACEOF
21981if ac_fn_c_try_link "$LINENO"; then :
21982  ac_cv_lib_des_des_ecb_encrypt=yes
21983else
21984  ac_cv_lib_des_des_ecb_encrypt=no
21985fi
21986rm -f core conftest.err conftest.$ac_objext \
21987    conftest$ac_exeext conftest.$ac_ext
21988LIBS=$ac_check_lib_save_LIBS
21989fi
21990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_ecb_encrypt" >&5
21991$as_echo "$ac_cv_lib_des_des_ecb_encrypt" >&6; }
21992if test "x$ac_cv_lib_des_des_ecb_encrypt" = xyes; then :
21993  if test "$with_statickrb" = "yes"; then
21994          KRB_LIBS="$with_krb/lib/libdes.a"
21995      else
21996          KRB_LIBS="-ldes"
21997      fi
21998else
21999  as_fn_error $? "The Kerberos DES library is required for Kerberos support." "$LINENO" 5
22000fi
22001
22002fi
22003fi
22004
22005if test -d ${with_krb}; then
22006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
22007$as_echo_n "checking for Kerberos includes... " >&6; }
22008if ${cyrus_cv_krbinclude+:} false; then :
22009  $as_echo_n "(cached) " >&6
22010else
22011
22012     for krbhloc in include/kerberosIV include
22013     do
22014       if test -f ${with_krb}/${krbhloc}/krb.h ; then
22015         cyrus_cv_krbinclude=${with_krb}/${krbhloc}
22016         break
22017       fi
22018     done
22019
22020fi
22021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_krbinclude" >&5
22022$as_echo "$cyrus_cv_krbinclude" >&6; }
22023
22024   if test -n "${cyrus_cv_krbinclude}"; then
22025     CPPFLAGS="$CPPFLAGS -I${cyrus_cv_krbinclude}"
22026   fi
22027
22028  # this is CMU ADD LIBPATH
22029  if test "$andrew_cv_runpath_switch" = "none" ; then
22030        LDFLAGS="-L${with_krb}/lib ${LDFLAGS}"
22031  else
22032        LDFLAGS="-L${with_krb}/lib $andrew_cv_runpath_switch${with_krb}/lib ${LDFLAGS}"
22033  fi
22034
22035fi
22036
22037if test "$with_krbimpl" != "kth"; then
22038  KRBLIB="krb4"
22039else
22040  KRBLIB="krb"
22041fi
22042
22043if test "$with_des" != no; then
22044  ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22045if test "x$ac_cv_header_krb_h" = xyes; then :
22046  as_ac_Lib=`$as_echo "ac_cv_lib_${KRBLIB}''_krb_mk_priv" | $as_tr_sh`
22047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -l${KRBLIB}" >&5
22048$as_echo_n "checking for krb_mk_priv in -l${KRBLIB}... " >&6; }
22049if eval \${$as_ac_Lib+:} false; then :
22050  $as_echo_n "(cached) " >&6
22051else
22052  ac_check_lib_save_LIBS=$LIBS
22053LIBS="-l${KRBLIB} $KRB_LIBS $LIBS"
22054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055/* end confdefs.h.  */
22056
22057/* Override any GCC internal prototype to avoid an error.
22058   Use char because int might match the return type of a GCC
22059   builtin and then its argument prototype would still apply.  */
22060#ifdef __cplusplus
22061extern "C"
22062#endif
22063char krb_mk_priv ();
22064int
22065main ()
22066{
22067return krb_mk_priv ();
22068  ;
22069  return 0;
22070}
22071_ACEOF
22072if ac_fn_c_try_link "$LINENO"; then :
22073  eval "$as_ac_Lib=yes"
22074else
22075  eval "$as_ac_Lib=no"
22076fi
22077rm -f core conftest.err conftest.$ac_objext \
22078    conftest$ac_exeext conftest.$ac_ext
22079LIBS=$ac_check_lib_save_LIBS
22080fi
22081eval ac_res=\$$as_ac_Lib
22082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22083$as_echo "$ac_res" >&6; }
22084if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
22085  if test "$with_statickrb" = "yes"; then
22086          KRB_LIBS="$KRB_LIBS $with_krb/lib/lib${KRBLIB}.a"
22087      else
22088          KRB_LIBS="$KRB_LIBS -l${KRBLIB}"
22089      fi
22090else
22091  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
22092$as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}; krb4=no
22093fi
22094
22095else
22096  krb4=no
22097fi
22098
22099
22100else
22101  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
22102$as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
22103  krb4=no
22104fi
22105
22106if test "${krb4}" != no; then
22107
22108$as_echo "#define HAVE_KRB /**/" >>confdefs.h
22109
22110fi
22111
22112LIBS="$KRB_LIBS $LIBS"
22113
22114SASL_GSSAPI_LIBS_SET="yes"
22115
22116
22117
22118# Check whether --with-openssl was given.
22119if test "${with_openssl+set}" = set; then :
22120  withval=$with_openssl; with_ssl="${withval}"
22121fi
22122
22123
22124SSL_CPPFLAGS=
22125SSL_LIBS=
22126
22127case "x$with_ssl" in
22128xno)
22129    # --without-openssl
22130    # do not try to enable
22131    ;;
22132x|xyes)
22133    # default args or --with-openssl
22134    #
22135    # Try pkg-config - OpenSSL >= 0.9.6 has openssl.pc
22136
22137pkg_failed=no
22138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
22139$as_echo_n "checking for OPENSSL... " >&6; }
22140
22141if test -n "$OPENSSL_CFLAGS"; then
22142    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
22143 elif test -n "$PKG_CONFIG"; then
22144    if test -n "$PKG_CONFIG" && \
22145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
22146  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
22147  ac_status=$?
22148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22149  test $ac_status = 0; }; then
22150  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
22151		      test "x$?" != "x0" && pkg_failed=yes
22152else
22153  pkg_failed=yes
22154fi
22155 else
22156    pkg_failed=untried
22157fi
22158if test -n "$OPENSSL_LIBS"; then
22159    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
22160 elif test -n "$PKG_CONFIG"; then
22161    if test -n "$PKG_CONFIG" && \
22162    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
22163  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
22164  ac_status=$?
22165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22166  test $ac_status = 0; }; then
22167  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
22168		      test "x$?" != "x0" && pkg_failed=yes
22169else
22170  pkg_failed=yes
22171fi
22172 else
22173    pkg_failed=untried
22174fi
22175
22176
22177
22178if test $pkg_failed = yes; then
22179   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22180$as_echo "no" >&6; }
22181
22182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22183        _pkg_short_errors_supported=yes
22184else
22185        _pkg_short_errors_supported=no
22186fi
22187        if test $_pkg_short_errors_supported = yes; then
22188	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
22189        else
22190	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
22191        fi
22192	# Put the nasty error message in config.log where it belongs
22193	echo "$OPENSSL_PKG_ERRORS" >&5
22194
22195	as_fn_error $? "Package requirements (openssl) were not met:
22196
22197$OPENSSL_PKG_ERRORS
22198
22199Consider adjusting the PKG_CONFIG_PATH environment variable if you
22200installed software in a non-standard prefix.
22201
22202Alternatively, you may set the environment variables OPENSSL_CFLAGS
22203and OPENSSL_LIBS to avoid the need to call pkg-config.
22204See the pkg-config man page for more details." "$LINENO" 5
22205elif test $pkg_failed = untried; then
22206     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22207$as_echo "no" >&6; }
22208	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22210as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22211is in your PATH or set the PKG_CONFIG environment variable to the full
22212path to pkg-config.
22213
22214Alternatively, you may set the environment variables OPENSSL_CFLAGS
22215and OPENSSL_LIBS to avoid the need to call pkg-config.
22216See the pkg-config man page for more details.
22217
22218To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22219See \`config.log' for more details" "$LINENO" 5; }
22220else
22221	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
22222	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
22223        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22224$as_echo "yes" >&6; }
22225	with_ssl=yes
22226fi
22227    ssl_cppflags="$OPENSSL_CFLAGS"
22228    ssl_ldflags="$OPENSSL_LIBS"
22229    #
22230    # If pkg-config doesn't work, search in default system directories
22231    ;;
22232*)
22233    # --with-openssl=DIR
22234    # try to enable, search in given install directory
22235    if test -d "$with_ssl"; then
22236        ssl_cppflags="-I${with_ssl}/include"
22237        ssl_ldflags=
22238        if test -d "${with_ssl}/lib64"; then
22239
22240  # this is CMU ADD LIBPATH TO
22241  if test "$andrew_cv_runpath_switch" = "none" ; then
22242        ssl_ldflags="-L${with_ssl}/lib64 ${ssl_ldflags}"
22243  else
22244        ssl_ldflags="-L${with_ssl}/lib64 ${ssl_ldflags} $andrew_cv_runpath_switch${with_ssl}/lib64"
22245  fi
22246
22247        else
22248
22249  # this is CMU ADD LIBPATH TO
22250  if test "$andrew_cv_runpath_switch" = "none" ; then
22251        ssl_ldflags="-L${with_ssl}/lib ${ssl_ldflags}"
22252  else
22253        ssl_ldflags="-L${with_ssl}/lib ${ssl_ldflags} $andrew_cv_runpath_switch${with_ssl}/lib"
22254  fi
22255
22256        fi
22257        with_ssl=yes
22258    else
22259        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling OpenSSL - no include files found" >&5
22260$as_echo "$as_me: WARNING: Disabling OpenSSL - no include files found" >&2;}
22261        with_ssl=no
22262    fi
22263esac
22264
22265if test "$with_ssl" != "no"; then
22266    save_CPPFLAGS="$CPPFLAGS"
22267    save_LDFLAGS="$LDFLAGS"
22268    CPPFLAGS="$CPPFLAGS $ssl_cppflags"
22269    LDFLAGS="$LDFLAGS $ssl_ldflags"
22270
22271    ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
22272if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
22273
22274        with_ssl=yes
22275
22276else
22277
22278        with_ssl=no
22279
22280fi
22281
22282
22283
22284            ssl_libs=
22285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
22286$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
22287if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
22288  $as_echo_n "(cached) " >&6
22289else
22290  ac_check_lib_save_LIBS=$LIBS
22291LIBS="-lrsaref  $LIBS"
22292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22293/* end confdefs.h.  */
22294
22295/* Override any GCC internal prototype to avoid an error.
22296   Use char because int might match the return type of a GCC
22297   builtin and then its argument prototype would still apply.  */
22298#ifdef __cplusplus
22299extern "C"
22300#endif
22301char RSAPublicEncrypt ();
22302int
22303main ()
22304{
22305return RSAPublicEncrypt ();
22306  ;
22307  return 0;
22308}
22309_ACEOF
22310if ac_fn_c_try_link "$LINENO"; then :
22311  ac_cv_lib_rsaref_RSAPublicEncrypt=yes
22312else
22313  ac_cv_lib_rsaref_RSAPublicEncrypt=no
22314fi
22315rm -f core conftest.err conftest.$ac_objext \
22316    conftest$ac_exeext conftest.$ac_ext
22317LIBS=$ac_check_lib_save_LIBS
22318fi
22319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
22320$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
22321if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
22322
22323       ssl_libs="-lRSAglue -lrsaref"
22324
22325else
22326
22327       # whatever, we do not care
22328       :
22329
22330fi
22331
22332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_accept in -lcrypto" >&5
22333$as_echo_n "checking for BIO_accept in -lcrypto... " >&6; }
22334if ${ac_cv_lib_crypto_BIO_accept+:} false; then :
22335  $as_echo_n "(cached) " >&6
22336else
22337  ac_check_lib_save_LIBS=$LIBS
22338LIBS="-lcrypto $ssl_libs $LIBS"
22339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340/* end confdefs.h.  */
22341
22342/* Override any GCC internal prototype to avoid an error.
22343   Use char because int might match the return type of a GCC
22344   builtin and then its argument prototype would still apply.  */
22345#ifdef __cplusplus
22346extern "C"
22347#endif
22348char BIO_accept ();
22349int
22350main ()
22351{
22352return BIO_accept ();
22353  ;
22354  return 0;
22355}
22356_ACEOF
22357if ac_fn_c_try_link "$LINENO"; then :
22358  ac_cv_lib_crypto_BIO_accept=yes
22359else
22360  ac_cv_lib_crypto_BIO_accept=no
22361fi
22362rm -f core conftest.err conftest.$ac_objext \
22363    conftest$ac_exeext conftest.$ac_ext
22364LIBS=$ac_check_lib_save_LIBS
22365fi
22366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_accept" >&5
22367$as_echo "$ac_cv_lib_crypto_BIO_accept" >&6; }
22368if test "x$ac_cv_lib_crypto_BIO_accept" = xyes; then :
22369
22370        ssl_libs="-lcrypto $ssl_libs"
22371
22372else
22373
22374        with_ssl=no
22375
22376fi
22377
22378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
22379$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
22380if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
22381  $as_echo_n "(cached) " >&6
22382else
22383  ac_check_lib_save_LIBS=$LIBS
22384LIBS="-lssl $ssl_libs $LIBS"
22385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386/* end confdefs.h.  */
22387
22388/* Override any GCC internal prototype to avoid an error.
22389   Use char because int might match the return type of a GCC
22390   builtin and then its argument prototype would still apply.  */
22391#ifdef __cplusplus
22392extern "C"
22393#endif
22394char SSL_CTX_new ();
22395int
22396main ()
22397{
22398return SSL_CTX_new ();
22399  ;
22400  return 0;
22401}
22402_ACEOF
22403if ac_fn_c_try_link "$LINENO"; then :
22404  ac_cv_lib_ssl_SSL_CTX_new=yes
22405else
22406  ac_cv_lib_ssl_SSL_CTX_new=no
22407fi
22408rm -f core conftest.err conftest.$ac_objext \
22409    conftest$ac_exeext conftest.$ac_ext
22410LIBS=$ac_check_lib_save_LIBS
22411fi
22412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
22413$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
22414if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
22415
22416        ssl_libs="-lssl $ssl_libs"
22417
22418else
22419
22420        with_ssl=no
22421
22422fi
22423
22424
22425    if test "$with_ssl" = "no"; then
22426        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SSL - no library files found" >&5
22427$as_echo "$as_me: WARNING: Disabling SSL - no library files found" >&2;}
22428    fi
22429    CPPFLAGS="$save_CPPFLAGS"
22430    LDFLAGS="$save_LDFLAGS"
22431fi
22432
22433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl" >&5
22434$as_echo_n "checking for ssl... " >&6; }
22435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
22436$as_echo "$with_ssl" >&6; }
22437
22438if test "$with_ssl" != "no"; then
22439    SSL_CPPFLAGS="$ssl_cppflags"
22440    SSL_LIBS="$ssl_ldflags $ssl_libs"
22441
22442$as_echo "#define HAVE_SSL /**/" >>confdefs.h
22443
22444    if test "${krb4}" != no; then
22445
22446$as_echo "#define OPENSSL_ENABLE_OLD_DES_SUPPORT /**/" >>confdefs.h
22447
22448
22449$as_echo "#define OPENSSL_DES_LIBDES_COMPATIBILITY /**/" >>confdefs.h
22450
22451    fi
22452fi
22453 if test "$with_ssl" != "no"; then
22454  HAVE_SSL_TRUE=
22455  HAVE_SSL_FALSE='#'
22456else
22457  HAVE_SSL_TRUE='#'
22458  HAVE_SSL_FALSE=
22459fi
22460
22461
22462
22463
22464
22465# Check whether --with-egd-socket was given.
22466if test "${with_egd_socket+set}" = set; then :
22467  withval=$with_egd_socket;  EGD_SOCKET="$withval"
22468
22469fi
22470
22471if test -n "$EGD_SOCKET" ; then
22472
22473cat >>confdefs.h <<_ACEOF
22474#define EGD_SOCKET "$EGD_SOCKET"
22475_ACEOF
22476
22477fi
22478
22479
22480# Check whether --with-zlib was given.
22481if test "${with_zlib+set}" = set; then :
22482  withval=$with_zlib; with_zlib=$withval
22483else
22484  with_zlib="yes"
22485fi
22486
22487
22488save_CPPFLAGS=$CPPFLAGS
22489save_LDFLAGS=$LDFLAGS
22490
22491if test -d $with_zlib; then
22492    CPPFLAGS="${CPPFLAGS} -I${with_lib}/include"
22493
22494  # this is CMU ADD LIBPATH
22495  if test "$andrew_cv_runpath_switch" = "none" ; then
22496        LDFLAGS="-L${with_zlib}/$CMU_LIB_SUBDIR ${LDFLAGS}"
22497  else
22498        LDFLAGS="-L${with_zlib}/$CMU_LIB_SUBDIR $andrew_cv_runpath_switch${with_zlib}/$CMU_LIB_SUBDIR ${LDFLAGS}"
22499  fi
22500
22501fi
22502
22503ZLIB=""
22504case "$with_zlib" in
22505    no)
22506      with_zlib="no";;
22507    *)
22508    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22509if test "x$ac_cv_header_zlib_h" = xyes; then :
22510
22511        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22512$as_echo_n "checking for deflate in -lz... " >&6; }
22513if ${ac_cv_lib_z_deflate+:} false; then :
22514  $as_echo_n "(cached) " >&6
22515else
22516  ac_check_lib_save_LIBS=$LIBS
22517LIBS="-lz  $LIBS"
22518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519/* end confdefs.h.  */
22520
22521/* Override any GCC internal prototype to avoid an error.
22522   Use char because int might match the return type of a GCC
22523   builtin and then its argument prototype would still apply.  */
22524#ifdef __cplusplus
22525extern "C"
22526#endif
22527char deflate ();
22528int
22529main ()
22530{
22531return deflate ();
22532  ;
22533  return 0;
22534}
22535_ACEOF
22536if ac_fn_c_try_link "$LINENO"; then :
22537  ac_cv_lib_z_deflate=yes
22538else
22539  ac_cv_lib_z_deflate=no
22540fi
22541rm -f core conftest.err conftest.$ac_objext \
22542    conftest$ac_exeext conftest.$ac_ext
22543LIBS=$ac_check_lib_save_LIBS
22544fi
22545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22546$as_echo "$ac_cv_lib_z_deflate" >&6; }
22547if test "x$ac_cv_lib_z_deflate" = xyes; then :
22548  LIBS="${LIBS} -lz"; with_zlib="yes"
22549else
22550  with_zlib="no"
22551fi
22552
22553else
22554  with_zlib=no
22555fi
22556
22557
22558    ;;
22559esac
22560
22561if test "$with_zlib" != "no"; then
22562
22563$as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
22564
22565    ZLIB="-lz"
22566    HAVE_ZLIB=1
22567else
22568    CPPFLAGS=$save_CPPFLAGS
22569    LDFLAGS=$save_LDFLAGS
22570    HAVE_ZLIB=0
22571fi
22572
22573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
22574$as_echo_n "checking for zlib... " >&6; }
22575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib" >&5
22576$as_echo "$with_zlib" >&6; }
22577
22578
22579
22580# Check whether --with-zephyr was given.
22581if test "${with_zephyr+set}" = set; then :
22582  withval=$with_zephyr; with_zephyr="${withval}"
22583fi
22584
22585if test -z "$with_zephyr"; then
22586     if test -f /usr/local/lib/libzephyr.a; then
22587        with_zephyr="/usr/local"
22588     elif test -f /usr/lib/libzephyr.a; then
22589        with_zephyr="/usr"
22590     fi
22591fi
22592ZEPHYR_LIBS=""
22593case "$with_zephyr" in
22594        no) true;;
22595        ""|yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZInitialize in -lzephyr" >&5
22596$as_echo_n "checking for ZInitialize in -lzephyr... " >&6; }
22597if ${ac_cv_lib_zephyr_ZInitialize+:} false; then :
22598  $as_echo_n "(cached) " >&6
22599else
22600  ac_check_lib_save_LIBS=$LIBS
22601LIBS="-lzephyr  $LIBS"
22602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603/* end confdefs.h.  */
22604
22605/* Override any GCC internal prototype to avoid an error.
22606   Use char because int might match the return type of a GCC
22607   builtin and then its argument prototype would still apply.  */
22608#ifdef __cplusplus
22609extern "C"
22610#endif
22611char ZInitialize ();
22612int
22613main ()
22614{
22615return ZInitialize ();
22616  ;
22617  return 0;
22618}
22619_ACEOF
22620if ac_fn_c_try_link "$LINENO"; then :
22621  ac_cv_lib_zephyr_ZInitialize=yes
22622else
22623  ac_cv_lib_zephyr_ZInitialize=no
22624fi
22625rm -f core conftest.err conftest.$ac_objext \
22626    conftest$ac_exeext conftest.$ac_ext
22627LIBS=$ac_check_lib_save_LIBS
22628fi
22629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zephyr_ZInitialize" >&5
22630$as_echo "$ac_cv_lib_zephyr_ZInitialize" >&6; }
22631if test "x$ac_cv_lib_zephyr_ZInitialize" = xyes; then :
22632  ZEPHYR_LIBS="-lzephyr"
22633else
22634  with_zephyr="no"
22635fi
22636;;
22637       *) ZEPHYR_LIBS="-lzephyr";;
22638esac
22639
22640if test "$with_zephyr" != "no"; then
22641
22642$as_echo "#define HAVE_ZEPHYR /**/" >>confdefs.h
22643
22644fi
22645 if test "$with_zephyr" != "no"; then
22646  ZEPHYR_TRUE=
22647  ZEPHYR_FALSE='#'
22648else
22649  ZEPHYR_TRUE='#'
22650  ZEPHYR_FALSE=
22651fi
22652
22653
22654
22655
22656# Check whether --with-libcap was given.
22657if test "${with_libcap+set}" = set; then :
22658  withval=$with_libcap; with_libcap="${withval}"
22659fi
22660
22661
22662have_libcap=no
22663case $host_os in
22664linux*)
22665        if test "x$with_libcap" = "xyes"; then
22666                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_get_proc in -lcap" >&5
22667$as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
22668if ${ac_cv_lib_cap_cap_get_proc+:} false; then :
22669  $as_echo_n "(cached) " >&6
22670else
22671  ac_check_lib_save_LIBS=$LIBS
22672LIBS="-lcap  $LIBS"
22673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22674/* end confdefs.h.  */
22675
22676/* Override any GCC internal prototype to avoid an error.
22677   Use char because int might match the return type of a GCC
22678   builtin and then its argument prototype would still apply.  */
22679#ifdef __cplusplus
22680extern "C"
22681#endif
22682char cap_get_proc ();
22683int
22684main ()
22685{
22686return cap_get_proc ();
22687  ;
22688  return 0;
22689}
22690_ACEOF
22691if ac_fn_c_try_link "$LINENO"; then :
22692  ac_cv_lib_cap_cap_get_proc=yes
22693else
22694  ac_cv_lib_cap_cap_get_proc=no
22695fi
22696rm -f core conftest.err conftest.$ac_objext \
22697    conftest$ac_exeext conftest.$ac_ext
22698LIBS=$ac_check_lib_save_LIBS
22699fi
22700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_get_proc" >&5
22701$as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
22702if test "x$ac_cv_lib_cap_cap_get_proc" = xyes; then :
22703  have_libcap=yes
22704else
22705  have_libcap=no
22706fi
22707
22708                for ac_header in sys/capability.h sys/prctl.h
22709do :
22710  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22711ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22713  cat >>confdefs.h <<_ACEOF
22714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22715_ACEOF
22716
22717else
22718  have_libcap=no
22719fi
22720
22721done
22722
22723                if test "$have_libcap" = "yes"; then
22724
22725$as_echo "#define HAVE_LIBCAP /**/" >>confdefs.h
22726
22727                        LIBS="$LIBS -lcap"
22728                fi
22729        fi
22730        ;;
22731*)
22732        ;;
22733esac
22734
22735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcap" >&5
22736$as_echo_n "checking for libcap... " >&6; }
22737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcap" >&5
22738$as_echo "$have_libcap" >&6; }
22739
22740
22741pkg_failed=no
22742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
22743$as_echo_n "checking for JANSSON... " >&6; }
22744
22745if test -n "$JANSSON_CFLAGS"; then
22746    pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
22747 elif test -n "$PKG_CONFIG"; then
22748    if test -n "$PKG_CONFIG" && \
22749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.3\""; } >&5
22750  ($PKG_CONFIG --exists --print-errors "jansson >= 2.3") 2>&5
22751  ac_status=$?
22752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22753  test $ac_status = 0; }; then
22754  pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.3" 2>/dev/null`
22755		      test "x$?" != "x0" && pkg_failed=yes
22756else
22757  pkg_failed=yes
22758fi
22759 else
22760    pkg_failed=untried
22761fi
22762if test -n "$JANSSON_LIBS"; then
22763    pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
22764 elif test -n "$PKG_CONFIG"; then
22765    if test -n "$PKG_CONFIG" && \
22766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.3\""; } >&5
22767  ($PKG_CONFIG --exists --print-errors "jansson >= 2.3") 2>&5
22768  ac_status=$?
22769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770  test $ac_status = 0; }; then
22771  pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.3" 2>/dev/null`
22772		      test "x$?" != "x0" && pkg_failed=yes
22773else
22774  pkg_failed=yes
22775fi
22776 else
22777    pkg_failed=untried
22778fi
22779
22780
22781
22782if test $pkg_failed = yes; then
22783   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22784$as_echo "no" >&6; }
22785
22786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22787        _pkg_short_errors_supported=yes
22788else
22789        _pkg_short_errors_supported=no
22790fi
22791        if test $_pkg_short_errors_supported = yes; then
22792	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.3" 2>&1`
22793        else
22794	        JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.3" 2>&1`
22795        fi
22796	# Put the nasty error message in config.log where it belongs
22797	echo "$JANSSON_PKG_ERRORS" >&5
22798
22799	as_fn_error $? "Package requirements (jansson >= 2.3) were not met:
22800
22801$JANSSON_PKG_ERRORS
22802
22803Consider adjusting the PKG_CONFIG_PATH environment variable if you
22804installed software in a non-standard prefix.
22805
22806Alternatively, you may set the environment variables JANSSON_CFLAGS
22807and JANSSON_LIBS to avoid the need to call pkg-config.
22808See the pkg-config man page for more details." "$LINENO" 5
22809elif test $pkg_failed = untried; then
22810     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22811$as_echo "no" >&6; }
22812	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22814as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22815is in your PATH or set the PKG_CONFIG environment variable to the full
22816path to pkg-config.
22817
22818Alternatively, you may set the environment variables JANSSON_CFLAGS
22819and JANSSON_LIBS to avoid the need to call pkg-config.
22820See the pkg-config man page for more details.
22821
22822To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22823See \`config.log' for more details" "$LINENO" 5; }
22824else
22825	JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
22826	JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
22827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22828$as_echo "yes" >&6; }
22829
22830fi
22831
22832
22833
22834# Check whether --enable-event-notification was given.
22835if test "${enable_event_notification+set}" = set; then :
22836  enableval=$enable_event_notification;
22837else
22838  enable_event_notification="yes";
22839fi
22840
22841
22842if test "$enable_event_notification" != "no"; then
22843
22844$as_echo "#define ENABLE_MBOXEVENT /**/" >>confdefs.h
22845
22846fi
22847
22848
22849# Check whether --with-pidfile was given.
22850if test "${with_pidfile+set}" = set; then :
22851  withval=$with_pidfile; MASTERPIDFILE="$withval"
22852else
22853  MASTERPIDFILE="/var/run/cyrus-master.pid"
22854fi
22855
22856MASTERPIDFILE="\"$MASTERPIDFILE\""
22857
22858cat >>confdefs.h <<_ACEOF
22859#define MASTER_PIDFILE $MASTERPIDFILE
22860_ACEOF
22861
22862
22863# Check whether --enable-autocreate was given.
22864if test "${enable_autocreate+set}" = set; then :
22865  enableval=$enable_autocreate;
22866else
22867  enable_autocreate="no";
22868fi
22869
22870 if test "$enable_autocreate" != "no"; then
22871  AUTOCREATE_TRUE=
22872  AUTOCREATE_FALSE='#'
22873else
22874  AUTOCREATE_TRUE='#'
22875  AUTOCREATE_FALSE=
22876fi
22877
22878if test "x$enable_autocreate" = "xyes"; then
22879
22880$as_echo "#define USE_AUTOCREATE /**/" >>confdefs.h
22881
22882fi
22883# Check whether --enable-idled was given.
22884if test "${enable_idled+set}" = set; then :
22885  enableval=$enable_idled;
22886else
22887  enable_idled="no";
22888fi
22889
22890 if test "$enable_idled" != "no"; then
22891  IDLED_TRUE=
22892  IDLED_FALSE='#'
22893else
22894  IDLED_TRUE='#'
22895  IDLED_FALSE=
22896fi
22897
22898if test "x$enable_idled" = "xyes"; then
22899
22900$as_echo "#define USE_IDLED /**/" >>confdefs.h
22901
22902fi
22903# Check whether --enable-nntp was given.
22904if test "${enable_nntp+set}" = set; then :
22905  enableval=$enable_nntp;
22906else
22907  enable_nntp="no";
22908fi
22909
22910 if test "$enable_nntp" != "no"; then
22911  NNTPD_TRUE=
22912  NNTPD_FALSE='#'
22913else
22914  NNTPD_TRUE='#'
22915  NNTPD_FALSE=
22916fi
22917
22918if test "x$enable_nntp" = "xyes"; then
22919
22920$as_echo "#define USE_NNTPD /**/" >>confdefs.h
22921
22922fi
22923
22924# Check whether --enable-murder was given.
22925if test "${enable_murder+set}" = set; then :
22926  enableval=$enable_murder;
22927else
22928  enable_murder="no";
22929fi
22930
22931 if test "$enable_murder" != "no"; then
22932  MURDER_TRUE=
22933  MURDER_FALSE='#'
22934else
22935  MURDER_TRUE='#'
22936  MURDER_FALSE=
22937fi
22938
22939if test "$enable_murder" != no; then
22940        # for master/slave auto-selection
22941        for ac_header in sys/sockio.h
22942do :
22943  ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
22944if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
22945  cat >>confdefs.h <<_ACEOF
22946#define HAVE_SYS_SOCKIO_H 1
22947_ACEOF
22948
22949fi
22950
22951done
22952
22953fi
22954if test "x$enable_murder" = "xyes"; then
22955
22956$as_echo "#define USE_MURDER /**/" >>confdefs.h
22957
22958fi
22959
22960# Check whether --enable-http was given.
22961if test "${enable_http+set}" = set; then :
22962  enableval=$enable_http;
22963else
22964  enable_http="no";
22965fi
22966
22967 if test "$enable_http" != "no"; then
22968  HTTPD_TRUE=
22969  HTTPD_FALSE='#'
22970else
22971  HTTPD_TRUE='#'
22972  HTTPD_FALSE=
22973fi
22974
22975
22976HTTP_CPPFLAGS=
22977HTTP_LIBS=
22978with_xml2=no
22979with_ical=no
22980with_icu4c=no
22981with_shapelib=no
22982with_brotli=no
22983if test "$enable_http" != no; then
22984        if test "x$HAVE_SQLITE" != x1; then
22985            as_fn_error $? "Need sqlite3 for http" "$LINENO" 5
22986        else
22987            use_sqlite="yes"
22988
22989$as_echo "#define WITH_DAV /**/" >>confdefs.h
22990
22991        fi
22992
22993
22994pkg_failed=no
22995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
22996$as_echo_n "checking for XML2... " >&6; }
22997
22998if test -n "$XML2_CFLAGS"; then
22999    pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
23000 elif test -n "$PKG_CONFIG"; then
23001    if test -n "$PKG_CONFIG" && \
23002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
23003  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
23004  ac_status=$?
23005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23006  test $ac_status = 0; }; then
23007  pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
23008		      test "x$?" != "x0" && pkg_failed=yes
23009else
23010  pkg_failed=yes
23011fi
23012 else
23013    pkg_failed=untried
23014fi
23015if test -n "$XML2_LIBS"; then
23016    pkg_cv_XML2_LIBS="$XML2_LIBS"
23017 elif test -n "$PKG_CONFIG"; then
23018    if test -n "$PKG_CONFIG" && \
23019    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
23020  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
23021  ac_status=$?
23022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023  test $ac_status = 0; }; then
23024  pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
23025		      test "x$?" != "x0" && pkg_failed=yes
23026else
23027  pkg_failed=yes
23028fi
23029 else
23030    pkg_failed=untried
23031fi
23032
23033
23034
23035if test $pkg_failed = yes; then
23036   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23037$as_echo "no" >&6; }
23038
23039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23040        _pkg_short_errors_supported=yes
23041else
23042        _pkg_short_errors_supported=no
23043fi
23044        if test $_pkg_short_errors_supported = yes; then
23045	        XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
23046        else
23047	        XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
23048        fi
23049	# Put the nasty error message in config.log where it belongs
23050	echo "$XML2_PKG_ERRORS" >&5
23051
23052	as_fn_error $? "Need libxml-2.0 for http" "$LINENO" 5
23053elif test $pkg_failed = untried; then
23054     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055$as_echo "no" >&6; }
23056	as_fn_error $? "Need libxml-2.0 for http" "$LINENO" 5
23057else
23058	XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
23059	XML2_LIBS=$pkg_cv_XML2_LIBS
23060        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23061$as_echo "yes" >&6; }
23062
23063                LIBS="$LIBS ${XML2_LIBS}"
23064                with_xml2=yes
23065
23066fi
23067
23068        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
23069$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
23070if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
23071  $as_echo_n "(cached) " >&6
23072else
23073  ac_check_lib_save_LIBS=$LIBS
23074LIBS="-lxml2  $LIBS"
23075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076/* end confdefs.h.  */
23077
23078/* Override any GCC internal prototype to avoid an error.
23079   Use char because int might match the return type of a GCC
23080   builtin and then its argument prototype would still apply.  */
23081#ifdef __cplusplus
23082extern "C"
23083#endif
23084char xmlFirstElementChild ();
23085int
23086main ()
23087{
23088return xmlFirstElementChild ();
23089  ;
23090  return 0;
23091}
23092_ACEOF
23093if ac_fn_c_try_link "$LINENO"; then :
23094  ac_cv_lib_xml2_xmlFirstElementChild=yes
23095else
23096  ac_cv_lib_xml2_xmlFirstElementChild=no
23097fi
23098rm -f core conftest.err conftest.$ac_objext \
23099    conftest$ac_exeext conftest.$ac_ext
23100LIBS=$ac_check_lib_save_LIBS
23101fi
23102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
23103$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
23104if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
23105
23106
23107$as_echo "#define HAVE_XML_FIRSTCHILD /**/" >>confdefs.h
23108
23109
23110                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlBufferDetach in -lxml2" >&5
23111$as_echo_n "checking for xmlBufferDetach in -lxml2... " >&6; }
23112if ${ac_cv_lib_xml2_xmlBufferDetach+:} false; then :
23113  $as_echo_n "(cached) " >&6
23114else
23115  ac_check_lib_save_LIBS=$LIBS
23116LIBS="-lxml2  $LIBS"
23117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118/* end confdefs.h.  */
23119
23120/* Override any GCC internal prototype to avoid an error.
23121   Use char because int might match the return type of a GCC
23122   builtin and then its argument prototype would still apply.  */
23123#ifdef __cplusplus
23124extern "C"
23125#endif
23126char xmlBufferDetach ();
23127int
23128main ()
23129{
23130return xmlBufferDetach ();
23131  ;
23132  return 0;
23133}
23134_ACEOF
23135if ac_fn_c_try_link "$LINENO"; then :
23136  ac_cv_lib_xml2_xmlBufferDetach=yes
23137else
23138  ac_cv_lib_xml2_xmlBufferDetach=no
23139fi
23140rm -f core conftest.err conftest.$ac_objext \
23141    conftest$ac_exeext conftest.$ac_ext
23142LIBS=$ac_check_lib_save_LIBS
23143fi
23144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlBufferDetach" >&5
23145$as_echo "$ac_cv_lib_xml2_xmlBufferDetach" >&6; }
23146if test "x$ac_cv_lib_xml2_xmlBufferDetach" = xyes; then :
23147
23148$as_echo "#define HAVE_XML_BUFFERDETACH /**/" >>confdefs.h
23149
23150fi
23151
23152
23153fi
23154
23155
23156
23157pkg_failed=no
23158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICAL" >&5
23159$as_echo_n "checking for ICAL... " >&6; }
23160
23161if test -n "$ICAL_CFLAGS"; then
23162    pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
23163 elif test -n "$PKG_CONFIG"; then
23164    if test -n "$PKG_CONFIG" && \
23165    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
23166  ($PKG_CONFIG --exists --print-errors "libical") 2>&5
23167  ac_status=$?
23168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169  test $ac_status = 0; }; then
23170  pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
23171		      test "x$?" != "x0" && pkg_failed=yes
23172else
23173  pkg_failed=yes
23174fi
23175 else
23176    pkg_failed=untried
23177fi
23178if test -n "$ICAL_LIBS"; then
23179    pkg_cv_ICAL_LIBS="$ICAL_LIBS"
23180 elif test -n "$PKG_CONFIG"; then
23181    if test -n "$PKG_CONFIG" && \
23182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
23183  ($PKG_CONFIG --exists --print-errors "libical") 2>&5
23184  ac_status=$?
23185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186  test $ac_status = 0; }; then
23187  pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
23188		      test "x$?" != "x0" && pkg_failed=yes
23189else
23190  pkg_failed=yes
23191fi
23192 else
23193    pkg_failed=untried
23194fi
23195
23196
23197
23198if test $pkg_failed = yes; then
23199   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23200$as_echo "no" >&6; }
23201
23202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23203        _pkg_short_errors_supported=yes
23204else
23205        _pkg_short_errors_supported=no
23206fi
23207        if test $_pkg_short_errors_supported = yes; then
23208	        ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
23209        else
23210	        ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
23211        fi
23212	# Put the nasty error message in config.log where it belongs
23213	echo "$ICAL_PKG_ERRORS" >&5
23214
23215	as_fn_error $? "Need libical for http" "$LINENO" 5
23216elif test $pkg_failed = untried; then
23217     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23218$as_echo "no" >&6; }
23219	as_fn_error $? "Need libical for http" "$LINENO" 5
23220else
23221	ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
23222	ICAL_LIBS=$pkg_cv_ICAL_LIBS
23223        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23224$as_echo "yes" >&6; }
23225
23226
23227$as_echo "#define HAVE_ICAL /**/" >>confdefs.h
23228
23229                LIBS="$LIBS ${ICAL_LIBS}"
23230                with_ical=yes
23231
23232fi
23233
23234        ac_fn_c_check_decl "$LINENO" "icalproperty_get_parent" "ac_cv_have_decl_icalproperty_get_parent" "#include <libical/ical.h>
23235"
23236if test "x$ac_cv_have_decl_icalproperty_get_parent" = xyes; then :
23237  ac_have_decl=1
23238else
23239  ac_have_decl=0
23240fi
23241
23242cat >>confdefs.h <<_ACEOF
23243#define HAVE_DECL_ICALPROPERTY_GET_PARENT $ac_have_decl
23244_ACEOF
23245ac_fn_c_check_decl "$LINENO" "icalrecur_freq_to_string" "ac_cv_have_decl_icalrecur_freq_to_string" "#include <libical/ical.h>
23246"
23247if test "x$ac_cv_have_decl_icalrecur_freq_to_string" = xyes; then :
23248  ac_have_decl=1
23249else
23250  ac_have_decl=0
23251fi
23252
23253cat >>confdefs.h <<_ACEOF
23254#define HAVE_DECL_ICALRECUR_FREQ_TO_STRING $ac_have_decl
23255_ACEOF
23256ac_fn_c_check_decl "$LINENO" "icalrecur_weekday_to_string" "ac_cv_have_decl_icalrecur_weekday_to_string" "#include <libical/ical.h>
23257"
23258if test "x$ac_cv_have_decl_icalrecur_weekday_to_string" = xyes; then :
23259  ac_have_decl=1
23260else
23261  ac_have_decl=0
23262fi
23263
23264cat >>confdefs.h <<_ACEOF
23265#define HAVE_DECL_ICALRECUR_WEEKDAY_TO_STRING $ac_have_decl
23266_ACEOF
23267
23268
23269        ac_fn_c_check_member "$LINENO" "icaltimetype" "is_utc" "ac_cv_member_icaltimetype_is_utc" "#include <libical/ical.h>
23270"
23271if test "x$ac_cv_member_icaltimetype_is_utc" = xyes; then :
23272
23273$as_echo "#define ICALTIME_HAS_IS_UTC /**/" >>confdefs.h
23274
23275fi
23276
23277
23278        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalproperty_new_acknowledged in -lical" >&5
23279$as_echo_n "checking for icalproperty_new_acknowledged in -lical... " >&6; }
23280if ${ac_cv_lib_ical_icalproperty_new_acknowledged+:} false; then :
23281  $as_echo_n "(cached) " >&6
23282else
23283  ac_check_lib_save_LIBS=$LIBS
23284LIBS="-lical  $LIBS"
23285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23286/* end confdefs.h.  */
23287
23288/* Override any GCC internal prototype to avoid an error.
23289   Use char because int might match the return type of a GCC
23290   builtin and then its argument prototype would still apply.  */
23291#ifdef __cplusplus
23292extern "C"
23293#endif
23294char icalproperty_new_acknowledged ();
23295int
23296main ()
23297{
23298return icalproperty_new_acknowledged ();
23299  ;
23300  return 0;
23301}
23302_ACEOF
23303if ac_fn_c_try_link "$LINENO"; then :
23304  ac_cv_lib_ical_icalproperty_new_acknowledged=yes
23305else
23306  ac_cv_lib_ical_icalproperty_new_acknowledged=no
23307fi
23308rm -f core conftest.err conftest.$ac_objext \
23309    conftest$ac_exeext conftest.$ac_ext
23310LIBS=$ac_check_lib_save_LIBS
23311fi
23312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalproperty_new_acknowledged" >&5
23313$as_echo "$ac_cv_lib_ical_icalproperty_new_acknowledged" >&6; }
23314if test "x$ac_cv_lib_ical_icalproperty_new_acknowledged" = xyes; then :
23315
23316$as_echo "#define HAVE_VALARM_EXT_PROPS /**/" >>confdefs.h
23317
23318fi
23319
23320
23321        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalparameter_new_iana in -lical" >&5
23322$as_echo_n "checking for icalparameter_new_iana in -lical... " >&6; }
23323if ${ac_cv_lib_ical_icalparameter_new_iana+:} false; then :
23324  $as_echo_n "(cached) " >&6
23325else
23326  ac_check_lib_save_LIBS=$LIBS
23327LIBS="-lical  $LIBS"
23328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329/* end confdefs.h.  */
23330
23331/* Override any GCC internal prototype to avoid an error.
23332   Use char because int might match the return type of a GCC
23333   builtin and then its argument prototype would still apply.  */
23334#ifdef __cplusplus
23335extern "C"
23336#endif
23337char icalparameter_new_iana ();
23338int
23339main ()
23340{
23341return icalparameter_new_iana ();
23342  ;
23343  return 0;
23344}
23345_ACEOF
23346if ac_fn_c_try_link "$LINENO"; then :
23347  ac_cv_lib_ical_icalparameter_new_iana=yes
23348else
23349  ac_cv_lib_ical_icalparameter_new_iana=no
23350fi
23351rm -f core conftest.err conftest.$ac_objext \
23352    conftest$ac_exeext conftest.$ac_ext
23353LIBS=$ac_check_lib_save_LIBS
23354fi
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalparameter_new_iana" >&5
23356$as_echo "$ac_cv_lib_ical_icalparameter_new_iana" >&6; }
23357if test "x$ac_cv_lib_ical_icalparameter_new_iana" = xyes; then :
23358
23359
23360$as_echo "#define HAVE_IANA_PARAMS /**/" >>confdefs.h
23361
23362
23363                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalparameter_new_schedulestatus in -lical" >&5
23364$as_echo_n "checking for icalparameter_new_schedulestatus in -lical... " >&6; }
23365if ${ac_cv_lib_ical_icalparameter_new_schedulestatus+:} false; then :
23366  $as_echo_n "(cached) " >&6
23367else
23368  ac_check_lib_save_LIBS=$LIBS
23369LIBS="-lical  $LIBS"
23370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23371/* end confdefs.h.  */
23372
23373/* Override any GCC internal prototype to avoid an error.
23374   Use char because int might match the return type of a GCC
23375   builtin and then its argument prototype would still apply.  */
23376#ifdef __cplusplus
23377extern "C"
23378#endif
23379char icalparameter_new_schedulestatus ();
23380int
23381main ()
23382{
23383return icalparameter_new_schedulestatus ();
23384  ;
23385  return 0;
23386}
23387_ACEOF
23388if ac_fn_c_try_link "$LINENO"; then :
23389  ac_cv_lib_ical_icalparameter_new_schedulestatus=yes
23390else
23391  ac_cv_lib_ical_icalparameter_new_schedulestatus=no
23392fi
23393rm -f core conftest.err conftest.$ac_objext \
23394    conftest$ac_exeext conftest.$ac_ext
23395LIBS=$ac_check_lib_save_LIBS
23396fi
23397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalparameter_new_schedulestatus" >&5
23398$as_echo "$ac_cv_lib_ical_icalparameter_new_schedulestatus" >&6; }
23399if test "x$ac_cv_lib_ical_icalparameter_new_schedulestatus" = xyes; then :
23400
23401$as_echo "#define HAVE_SCHEDULING_PARAMS /**/" >>confdefs.h
23402
23403fi
23404
23405
23406                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalparameter_new_managedid in -lical" >&5
23407$as_echo_n "checking for icalparameter_new_managedid in -lical... " >&6; }
23408if ${ac_cv_lib_ical_icalparameter_new_managedid+:} false; then :
23409  $as_echo_n "(cached) " >&6
23410else
23411  ac_check_lib_save_LIBS=$LIBS
23412LIBS="-lical  $LIBS"
23413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23414/* end confdefs.h.  */
23415
23416/* Override any GCC internal prototype to avoid an error.
23417   Use char because int might match the return type of a GCC
23418   builtin and then its argument prototype would still apply.  */
23419#ifdef __cplusplus
23420extern "C"
23421#endif
23422char icalparameter_new_managedid ();
23423int
23424main ()
23425{
23426return icalparameter_new_managedid ();
23427  ;
23428  return 0;
23429}
23430_ACEOF
23431if ac_fn_c_try_link "$LINENO"; then :
23432  ac_cv_lib_ical_icalparameter_new_managedid=yes
23433else
23434  ac_cv_lib_ical_icalparameter_new_managedid=no
23435fi
23436rm -f core conftest.err conftest.$ac_objext \
23437    conftest$ac_exeext conftest.$ac_ext
23438LIBS=$ac_check_lib_save_LIBS
23439fi
23440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalparameter_new_managedid" >&5
23441$as_echo "$ac_cv_lib_ical_icalparameter_new_managedid" >&6; }
23442if test "x$ac_cv_lib_ical_icalparameter_new_managedid" = xyes; then :
23443
23444$as_echo "#define HAVE_MANAGED_ATTACH_PARAMS /**/" >>confdefs.h
23445
23446fi
23447
23448
23449                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalproperty_new_tzuntil in -lical" >&5
23450$as_echo_n "checking for icalproperty_new_tzuntil in -lical... " >&6; }
23451if ${ac_cv_lib_ical_icalproperty_new_tzuntil+:} false; then :
23452  $as_echo_n "(cached) " >&6
23453else
23454  ac_check_lib_save_LIBS=$LIBS
23455LIBS="-lical  $LIBS"
23456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23457/* end confdefs.h.  */
23458
23459/* Override any GCC internal prototype to avoid an error.
23460   Use char because int might match the return type of a GCC
23461   builtin and then its argument prototype would still apply.  */
23462#ifdef __cplusplus
23463extern "C"
23464#endif
23465char icalproperty_new_tzuntil ();
23466int
23467main ()
23468{
23469return icalproperty_new_tzuntil ();
23470  ;
23471  return 0;
23472}
23473_ACEOF
23474if ac_fn_c_try_link "$LINENO"; then :
23475  ac_cv_lib_ical_icalproperty_new_tzuntil=yes
23476else
23477  ac_cv_lib_ical_icalproperty_new_tzuntil=no
23478fi
23479rm -f core conftest.err conftest.$ac_objext \
23480    conftest$ac_exeext conftest.$ac_ext
23481LIBS=$ac_check_lib_save_LIBS
23482fi
23483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalproperty_new_tzuntil" >&5
23484$as_echo "$ac_cv_lib_ical_icalproperty_new_tzuntil" >&6; }
23485if test "x$ac_cv_lib_ical_icalproperty_new_tzuntil" = xyes; then :
23486
23487$as_echo "#define HAVE_TZDIST_PROPS /**/" >>confdefs.h
23488
23489fi
23490
23491
23492else
23493  { $as_echo "$as_me:${as_lineno-$LINENO}: Your version of libical can not support scheduling or managed attachments.  Consider upgrading to libical >= 0.48" >&5
23494$as_echo "$as_me: Your version of libical can not support scheduling or managed attachments.  Consider upgrading to libical >= 0.48" >&6;}
23495fi
23496
23497
23498        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icaltimezone_set_builtin_tzdata in -lical" >&5
23499$as_echo_n "checking for icaltimezone_set_builtin_tzdata in -lical... " >&6; }
23500if ${ac_cv_lib_ical_icaltimezone_set_builtin_tzdata+:} false; then :
23501  $as_echo_n "(cached) " >&6
23502else
23503  ac_check_lib_save_LIBS=$LIBS
23504LIBS="-lical  $LIBS"
23505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506/* end confdefs.h.  */
23507
23508/* Override any GCC internal prototype to avoid an error.
23509   Use char because int might match the return type of a GCC
23510   builtin and then its argument prototype would still apply.  */
23511#ifdef __cplusplus
23512extern "C"
23513#endif
23514char icaltimezone_set_builtin_tzdata ();
23515int
23516main ()
23517{
23518return icaltimezone_set_builtin_tzdata ();
23519  ;
23520  return 0;
23521}
23522_ACEOF
23523if ac_fn_c_try_link "$LINENO"; then :
23524  ac_cv_lib_ical_icaltimezone_set_builtin_tzdata=yes
23525else
23526  ac_cv_lib_ical_icaltimezone_set_builtin_tzdata=no
23527fi
23528rm -f core conftest.err conftest.$ac_objext \
23529    conftest$ac_exeext conftest.$ac_ext
23530LIBS=$ac_check_lib_save_LIBS
23531fi
23532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icaltimezone_set_builtin_tzdata" >&5
23533$as_echo "$ac_cv_lib_ical_icaltimezone_set_builtin_tzdata" >&6; }
23534if test "x$ac_cv_lib_ical_icaltimezone_set_builtin_tzdata" = xyes; then :
23535
23536$as_echo "#define HAVE_TZ_BY_REF /**/" >>confdefs.h
23537
23538else
23539  { $as_echo "$as_me:${as_lineno-$LINENO}: Your version of libical can not support timezones by reference.  Consider upgrading to libical >= 1.0.1" >&5
23540$as_echo "$as_me: Your version of libical can not support timezones by reference.  Consider upgrading to libical >= 1.0.1" >&6;}
23541fi
23542
23543
23544        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalcomponent_new_vavailability in -lical" >&5
23545$as_echo_n "checking for icalcomponent_new_vavailability in -lical... " >&6; }
23546if ${ac_cv_lib_ical_icalcomponent_new_vavailability+:} false; then :
23547  $as_echo_n "(cached) " >&6
23548else
23549  ac_check_lib_save_LIBS=$LIBS
23550LIBS="-lical  $LIBS"
23551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23552/* end confdefs.h.  */
23553
23554/* Override any GCC internal prototype to avoid an error.
23555   Use char because int might match the return type of a GCC
23556   builtin and then its argument prototype would still apply.  */
23557#ifdef __cplusplus
23558extern "C"
23559#endif
23560char icalcomponent_new_vavailability ();
23561int
23562main ()
23563{
23564return icalcomponent_new_vavailability ();
23565  ;
23566  return 0;
23567}
23568_ACEOF
23569if ac_fn_c_try_link "$LINENO"; then :
23570  ac_cv_lib_ical_icalcomponent_new_vavailability=yes
23571else
23572  ac_cv_lib_ical_icalcomponent_new_vavailability=no
23573fi
23574rm -f core conftest.err conftest.$ac_objext \
23575    conftest$ac_exeext conftest.$ac_ext
23576LIBS=$ac_check_lib_save_LIBS
23577fi
23578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalcomponent_new_vavailability" >&5
23579$as_echo "$ac_cv_lib_ical_icalcomponent_new_vavailability" >&6; }
23580if test "x$ac_cv_lib_ical_icalcomponent_new_vavailability" = xyes; then :
23581
23582$as_echo "#define HAVE_VAVAILABILITY /**/" >>confdefs.h
23583
23584else
23585  { $as_echo "$as_me:${as_lineno-$LINENO}: Your version of libical can not support availability.  Consider upgrading to libical >= 1.0.1" >&5
23586$as_echo "$as_me: Your version of libical can not support availability.  Consider upgrading to libical >= 1.0.1" >&6;}
23587fi
23588
23589
23590        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalcomponent_new_vvoter in -lical" >&5
23591$as_echo_n "checking for icalcomponent_new_vvoter in -lical... " >&6; }
23592if ${ac_cv_lib_ical_icalcomponent_new_vvoter+:} false; then :
23593  $as_echo_n "(cached) " >&6
23594else
23595  ac_check_lib_save_LIBS=$LIBS
23596LIBS="-lical  $LIBS"
23597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23598/* end confdefs.h.  */
23599
23600/* Override any GCC internal prototype to avoid an error.
23601   Use char because int might match the return type of a GCC
23602   builtin and then its argument prototype would still apply.  */
23603#ifdef __cplusplus
23604extern "C"
23605#endif
23606char icalcomponent_new_vvoter ();
23607int
23608main ()
23609{
23610return icalcomponent_new_vvoter ();
23611  ;
23612  return 0;
23613}
23614_ACEOF
23615if ac_fn_c_try_link "$LINENO"; then :
23616  ac_cv_lib_ical_icalcomponent_new_vvoter=yes
23617else
23618  ac_cv_lib_ical_icalcomponent_new_vvoter=no
23619fi
23620rm -f core conftest.err conftest.$ac_objext \
23621    conftest$ac_exeext conftest.$ac_ext
23622LIBS=$ac_check_lib_save_LIBS
23623fi
23624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalcomponent_new_vvoter" >&5
23625$as_echo "$ac_cv_lib_ical_icalcomponent_new_vvoter" >&6; }
23626if test "x$ac_cv_lib_ical_icalcomponent_new_vvoter" = xyes; then :
23627
23628$as_echo "#define HAVE_VPOLL /**/" >>confdefs.h
23629
23630else
23631  { $as_echo "$as_me:${as_lineno-$LINENO}: Your version of libical can not support consensus scheduling.  Consider upgrading to libical >= 2.0" >&5
23632$as_echo "$as_me: Your version of libical can not support consensus scheduling.  Consider upgrading to libical >= 2.0" >&6;}
23633fi
23634
23635
23636        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalrecurrencetype_rscale_is_supported in -lical" >&5
23637$as_echo_n "checking for icalrecurrencetype_rscale_is_supported in -lical... " >&6; }
23638if ${ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported+:} false; then :
23639  $as_echo_n "(cached) " >&6
23640else
23641  ac_check_lib_save_LIBS=$LIBS
23642LIBS="-lical  $LIBS"
23643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644/* end confdefs.h.  */
23645
23646/* Override any GCC internal prototype to avoid an error.
23647   Use char because int might match the return type of a GCC
23648   builtin and then its argument prototype would still apply.  */
23649#ifdef __cplusplus
23650extern "C"
23651#endif
23652char icalrecurrencetype_rscale_is_supported ();
23653int
23654main ()
23655{
23656return icalrecurrencetype_rscale_is_supported ();
23657  ;
23658  return 0;
23659}
23660_ACEOF
23661if ac_fn_c_try_link "$LINENO"; then :
23662  ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported=yes
23663else
23664  ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported=no
23665fi
23666rm -f core conftest.err conftest.$ac_objext \
23667    conftest$ac_exeext conftest.$ac_ext
23668LIBS=$ac_check_lib_save_LIBS
23669fi
23670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported" >&5
23671$as_echo "$ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported" >&6; }
23672if test "x$ac_cv_lib_ical_icalrecurrencetype_rscale_is_supported" = xyes; then :
23673
23674
23675pkg_failed=no
23676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU4C" >&5
23677$as_echo_n "checking for ICU4C... " >&6; }
23678
23679if test -n "$ICU4C_CFLAGS"; then
23680    pkg_cv_ICU4C_CFLAGS="$ICU4C_CFLAGS"
23681 elif test -n "$PKG_CONFIG"; then
23682    if test -n "$PKG_CONFIG" && \
23683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
23684  ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
23685  ac_status=$?
23686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23687  test $ac_status = 0; }; then
23688  pkg_cv_ICU4C_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n" 2>/dev/null`
23689		      test "x$?" != "x0" && pkg_failed=yes
23690else
23691  pkg_failed=yes
23692fi
23693 else
23694    pkg_failed=untried
23695fi
23696if test -n "$ICU4C_LIBS"; then
23697    pkg_cv_ICU4C_LIBS="$ICU4C_LIBS"
23698 elif test -n "$PKG_CONFIG"; then
23699    if test -n "$PKG_CONFIG" && \
23700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
23701  ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
23702  ac_status=$?
23703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23704  test $ac_status = 0; }; then
23705  pkg_cv_ICU4C_LIBS=`$PKG_CONFIG --libs "icu-i18n" 2>/dev/null`
23706		      test "x$?" != "x0" && pkg_failed=yes
23707else
23708  pkg_failed=yes
23709fi
23710 else
23711    pkg_failed=untried
23712fi
23713
23714
23715
23716if test $pkg_failed = yes; then
23717   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23718$as_echo "no" >&6; }
23719
23720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23721        _pkg_short_errors_supported=yes
23722else
23723        _pkg_short_errors_supported=no
23724fi
23725        if test $_pkg_short_errors_supported = yes; then
23726	        ICU4C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n" 2>&1`
23727        else
23728	        ICU4C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n" 2>&1`
23729        fi
23730	# Put the nasty error message in config.log where it belongs
23731	echo "$ICU4C_PKG_ERRORS" >&5
23732
23733	as_fn_error $? "Need ICU4C for RSCALE support in httpd" "$LINENO" 5
23734elif test $pkg_failed = untried; then
23735     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23736$as_echo "no" >&6; }
23737	as_fn_error $? "Need ICU4C for RSCALE support in httpd" "$LINENO" 5
23738else
23739	ICU4C_CFLAGS=$pkg_cv_ICU4C_CFLAGS
23740	ICU4C_LIBS=$pkg_cv_ICU4C_LIBS
23741        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23742$as_echo "yes" >&6; }
23743
23744
23745$as_echo "#define HAVE_RSCALE /**/" >>confdefs.h
23746
23747                        LIBS="$LIBS ${ICU4C_LIBS}"
23748                        with_icu4c=yes
23749
23750fi
23751
23752else
23753  { $as_echo "$as_me:${as_lineno-$LINENO}: Your version of libical can not support non-gregorian recurrences.  Consider upgrading to libical >= 2.0" >&5
23754$as_echo "$as_me: Your version of libical can not support non-gregorian recurrences.  Consider upgrading to libical >= 2.0" >&6;}
23755fi
23756
23757
23758        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalcomponent_new_vpatch in -lical" >&5
23759$as_echo_n "checking for icalcomponent_new_vpatch in -lical... " >&6; }
23760if ${ac_cv_lib_ical_icalcomponent_new_vpatch+:} false; then :
23761  $as_echo_n "(cached) " >&6
23762else
23763  ac_check_lib_save_LIBS=$LIBS
23764LIBS="-lical  $LIBS"
23765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23766/* end confdefs.h.  */
23767
23768/* Override any GCC internal prototype to avoid an error.
23769   Use char because int might match the return type of a GCC
23770   builtin and then its argument prototype would still apply.  */
23771#ifdef __cplusplus
23772extern "C"
23773#endif
23774char icalcomponent_new_vpatch ();
23775int
23776main ()
23777{
23778return icalcomponent_new_vpatch ();
23779  ;
23780  return 0;
23781}
23782_ACEOF
23783if ac_fn_c_try_link "$LINENO"; then :
23784  ac_cv_lib_ical_icalcomponent_new_vpatch=yes
23785else
23786  ac_cv_lib_ical_icalcomponent_new_vpatch=no
23787fi
23788rm -f core conftest.err conftest.$ac_objext \
23789    conftest$ac_exeext conftest.$ac_ext
23790LIBS=$ac_check_lib_save_LIBS
23791fi
23792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalcomponent_new_vpatch" >&5
23793$as_echo "$ac_cv_lib_ical_icalcomponent_new_vpatch" >&6; }
23794if test "x$ac_cv_lib_ical_icalcomponent_new_vpatch" = xyes; then :
23795
23796$as_echo "#define HAVE_VPATCH /**/" >>confdefs.h
23797
23798else
23799  { $as_echo "$as_me:${as_lineno-$LINENO}: Your version of libical can not support patching iCalendar objects.  Consider upgrading to libical >= 2.1" >&5
23800$as_echo "$as_me: Your version of libical can not support patching iCalendar objects.  Consider upgrading to libical >= 2.1" >&6;}
23801fi
23802
23803
23804        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icalrecur_iterator_set_start in -lical" >&5
23805$as_echo_n "checking for icalrecur_iterator_set_start in -lical... " >&6; }
23806if ${ac_cv_lib_ical_icalrecur_iterator_set_start+:} false; then :
23807  $as_echo_n "(cached) " >&6
23808else
23809  ac_check_lib_save_LIBS=$LIBS
23810LIBS="-lical  $LIBS"
23811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23812/* end confdefs.h.  */
23813
23814/* Override any GCC internal prototype to avoid an error.
23815   Use char because int might match the return type of a GCC
23816   builtin and then its argument prototype would still apply.  */
23817#ifdef __cplusplus
23818extern "C"
23819#endif
23820char icalrecur_iterator_set_start ();
23821int
23822main ()
23823{
23824return icalrecur_iterator_set_start ();
23825  ;
23826  return 0;
23827}
23828_ACEOF
23829if ac_fn_c_try_link "$LINENO"; then :
23830  ac_cv_lib_ical_icalrecur_iterator_set_start=yes
23831else
23832  ac_cv_lib_ical_icalrecur_iterator_set_start=no
23833fi
23834rm -f core conftest.err conftest.$ac_objext \
23835    conftest$ac_exeext conftest.$ac_ext
23836LIBS=$ac_check_lib_save_LIBS
23837fi
23838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icalrecur_iterator_set_start" >&5
23839$as_echo "$ac_cv_lib_ical_icalrecur_iterator_set_start" >&6; }
23840if test "x$ac_cv_lib_ical_icalrecur_iterator_set_start" = xyes; then :
23841
23842$as_echo "#define HAVE_RECUR_ITERATOR_START /**/" >>confdefs.h
23843
23844fi
23845
23846
23847
23848# Check whether --with-nghttp2 was given.
23849if test "${with_nghttp2+set}" = set; then :
23850  withval=$with_nghttp2;
23851else
23852  with_nghttp2="check"
23853fi
23854
23855        if test "x$with_nghttp2" = "xyes" -o "x$with_nghttp2" = "xcheck"; then
23856
23857pkg_failed=no
23858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NGHTTP2" >&5
23859$as_echo_n "checking for NGHTTP2... " >&6; }
23860
23861if test -n "$NGHTTP2_CFLAGS"; then
23862    pkg_cv_NGHTTP2_CFLAGS="$NGHTTP2_CFLAGS"
23863 elif test -n "$PKG_CONFIG"; then
23864    if test -n "$PKG_CONFIG" && \
23865    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.5\""; } >&5
23866  ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.5") 2>&5
23867  ac_status=$?
23868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23869  test $ac_status = 0; }; then
23870  pkg_cv_NGHTTP2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2 >= 1.5" 2>/dev/null`
23871		      test "x$?" != "x0" && pkg_failed=yes
23872else
23873  pkg_failed=yes
23874fi
23875 else
23876    pkg_failed=untried
23877fi
23878if test -n "$NGHTTP2_LIBS"; then
23879    pkg_cv_NGHTTP2_LIBS="$NGHTTP2_LIBS"
23880 elif test -n "$PKG_CONFIG"; then
23881    if test -n "$PKG_CONFIG" && \
23882    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.5\""; } >&5
23883  ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.5") 2>&5
23884  ac_status=$?
23885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23886  test $ac_status = 0; }; then
23887  pkg_cv_NGHTTP2_LIBS=`$PKG_CONFIG --libs "libnghttp2 >= 1.5" 2>/dev/null`
23888		      test "x$?" != "x0" && pkg_failed=yes
23889else
23890  pkg_failed=yes
23891fi
23892 else
23893    pkg_failed=untried
23894fi
23895
23896
23897
23898if test $pkg_failed = yes; then
23899   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23900$as_echo "no" >&6; }
23901
23902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23903        _pkg_short_errors_supported=yes
23904else
23905        _pkg_short_errors_supported=no
23906fi
23907        if test $_pkg_short_errors_supported = yes; then
23908	        NGHTTP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2 >= 1.5" 2>&1`
23909        else
23910	        NGHTTP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2 >= 1.5" 2>&1`
23911        fi
23912	# Put the nasty error message in config.log where it belongs
23913	echo "$NGHTTP2_PKG_ERRORS" >&5
23914
23915
23916                    if test "x$with_nghttp2" = "xyes"; then
23917                        as_fn_error $? "HTTP/2 explicitly requested, but libnghttp2 was not found" "$LINENO" 5
23918                    fi
23919                    with_nghttp2=no
23920                    { $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&5
23921$as_echo "$as_me: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&6;}
23922
23923elif test $pkg_failed = untried; then
23924     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23925$as_echo "no" >&6; }
23926
23927                    if test "x$with_nghttp2" = "xyes"; then
23928                        as_fn_error $? "HTTP/2 explicitly requested, but libnghttp2 was not found" "$LINENO" 5
23929                    fi
23930                    with_nghttp2=no
23931                    { $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&5
23932$as_echo "$as_me: httpd will not have support for HTTP/2.  Consider installing libnghttp2 >= 1.5" >&6;}
23933
23934else
23935	NGHTTP2_CFLAGS=$pkg_cv_NGHTTP2_CFLAGS
23936	NGHTTP2_LIBS=$pkg_cv_NGHTTP2_LIBS
23937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23938$as_echo "yes" >&6; }
23939
23940                    with_nghttp2=yes
23941
23942$as_echo "#define HAVE_NGHTTP2 /**/" >>confdefs.h
23943
23944
23945fi
23946        fi
23947
23948
23949pkg_failed=no
23950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
23951$as_echo_n "checking for BROTLI... " >&6; }
23952
23953if test -n "$BROTLI_CFLAGS"; then
23954    pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
23955 elif test -n "$PKG_CONFIG"; then
23956    if test -n "$PKG_CONFIG" && \
23957    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbrotlienc\""; } >&5
23958  ($PKG_CONFIG --exists --print-errors "libbrotlienc") 2>&5
23959  ac_status=$?
23960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23961  test $ac_status = 0; }; then
23962  pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "libbrotlienc" 2>/dev/null`
23963		      test "x$?" != "x0" && pkg_failed=yes
23964else
23965  pkg_failed=yes
23966fi
23967 else
23968    pkg_failed=untried
23969fi
23970if test -n "$BROTLI_LIBS"; then
23971    pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
23972 elif test -n "$PKG_CONFIG"; then
23973    if test -n "$PKG_CONFIG" && \
23974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbrotlienc\""; } >&5
23975  ($PKG_CONFIG --exists --print-errors "libbrotlienc") 2>&5
23976  ac_status=$?
23977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978  test $ac_status = 0; }; then
23979  pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "libbrotlienc" 2>/dev/null`
23980		      test "x$?" != "x0" && pkg_failed=yes
23981else
23982  pkg_failed=yes
23983fi
23984 else
23985    pkg_failed=untried
23986fi
23987
23988
23989
23990if test $pkg_failed = yes; then
23991   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23992$as_echo "no" >&6; }
23993
23994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23995        _pkg_short_errors_supported=yes
23996else
23997        _pkg_short_errors_supported=no
23998fi
23999        if test $_pkg_short_errors_supported = yes; then
24000	        BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbrotlienc" 2>&1`
24001        else
24002	        BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbrotlienc" 2>&1`
24003        fi
24004	# Put the nasty error message in config.log where it belongs
24005	echo "$BROTLI_PKG_ERRORS" >&5
24006
24007	{ $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&5
24008$as_echo "$as_me: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&6;}
24009elif test $pkg_failed = untried; then
24010     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24011$as_echo "no" >&6; }
24012	{ $as_echo "$as_me:${as_lineno-$LINENO}: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&5
24013$as_echo "$as_me: httpd will not have support for Brotli compression.  Consider installing libbrotli" >&6;}
24014else
24015	BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
24016	BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
24017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24018$as_echo "yes" >&6; }
24019
24020
24021$as_echo "#define HAVE_BROTLI /**/" >>confdefs.h
24022
24023                with_brotli=yes
24024
24025fi
24026
24027                                LIB_MATH="-lm"
24028
24029
24030pkg_failed=no
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHAPELIB" >&5
24032$as_echo_n "checking for SHAPELIB... " >&6; }
24033
24034if test -n "$SHAPELIB_CFLAGS"; then
24035    pkg_cv_SHAPELIB_CFLAGS="$SHAPELIB_CFLAGS"
24036 elif test -n "$PKG_CONFIG"; then
24037    if test -n "$PKG_CONFIG" && \
24038    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"shapelib >= 1.3.0\""; } >&5
24039  ($PKG_CONFIG --exists --print-errors "shapelib >= 1.3.0") 2>&5
24040  ac_status=$?
24041  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24042  test $ac_status = 0; }; then
24043  pkg_cv_SHAPELIB_CFLAGS=`$PKG_CONFIG --cflags "shapelib >= 1.3.0" 2>/dev/null`
24044		      test "x$?" != "x0" && pkg_failed=yes
24045else
24046  pkg_failed=yes
24047fi
24048 else
24049    pkg_failed=untried
24050fi
24051if test -n "$SHAPELIB_LIBS"; then
24052    pkg_cv_SHAPELIB_LIBS="$SHAPELIB_LIBS"
24053 elif test -n "$PKG_CONFIG"; then
24054    if test -n "$PKG_CONFIG" && \
24055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"shapelib >= 1.3.0\""; } >&5
24056  ($PKG_CONFIG --exists --print-errors "shapelib >= 1.3.0") 2>&5
24057  ac_status=$?
24058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24059  test $ac_status = 0; }; then
24060  pkg_cv_SHAPELIB_LIBS=`$PKG_CONFIG --libs "shapelib >= 1.3.0" 2>/dev/null`
24061		      test "x$?" != "x0" && pkg_failed=yes
24062else
24063  pkg_failed=yes
24064fi
24065 else
24066    pkg_failed=untried
24067fi
24068
24069
24070
24071if test $pkg_failed = yes; then
24072   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24073$as_echo "no" >&6; }
24074
24075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24076        _pkg_short_errors_supported=yes
24077else
24078        _pkg_short_errors_supported=no
24079fi
24080        if test $_pkg_short_errors_supported = yes; then
24081	        SHAPELIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "shapelib >= 1.3.0" 2>&1`
24082        else
24083	        SHAPELIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "shapelib >= 1.3.0" 2>&1`
24084        fi
24085	# Put the nasty error message in config.log where it belongs
24086	echo "$SHAPELIB_PKG_ERRORS" >&5
24087
24088	{ $as_echo "$as_me:${as_lineno-$LINENO}: tzdist will not have geolocation support.  Consider installing shapelib" >&5
24089$as_echo "$as_me: tzdist will not have geolocation support.  Consider installing shapelib" >&6;}
24090elif test $pkg_failed = untried; then
24091     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24092$as_echo "no" >&6; }
24093	{ $as_echo "$as_me:${as_lineno-$LINENO}: tzdist will not have geolocation support.  Consider installing shapelib" >&5
24094$as_echo "$as_me: tzdist will not have geolocation support.  Consider installing shapelib" >&6;}
24095else
24096	SHAPELIB_CFLAGS=$pkg_cv_SHAPELIB_CFLAGS
24097	SHAPELIB_LIBS=$pkg_cv_SHAPELIB_LIBS
24098        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24099$as_echo "yes" >&6; }
24100
24101
24102$as_echo "#define HAVE_SHAPELIB /**/" >>confdefs.h
24103
24104
24105$as_echo "#define SHAPELIB_VERSION \"1.3.0\"" >>confdefs.h
24106
24107                with_shapelib=yes
24108
24109fi
24110
24111        HTTP_CPPFLAGS="${XML2_CFLAGS} ${SQLITE3_CFLAGS} ${ICAL_CFLAGS} ${JANSSON_CFLAGS} ${NGHTTP2_CFLAGS} ${BROTLI_CFLAGS} ${SHAPELIB_CFLAGS}"
24112        HTTP_LIBS="${XML2_LIBS} ${SQLITE3_LIBS} ${ICAL_LIBS} ${JANSSON_LIBS} ${NGHTTP2_LIBS} ${BROTLI_LIBS} ${SHAPELIB_LIBS} ${LIB_MATH}"
24113fi
24114
24115
24116if test "x$enable_http" = "xyes"; then
24117
24118$as_echo "#define USE_HTTPD /**/" >>confdefs.h
24119
24120fi
24121
24122# Check whether --enable-calalarmd was given.
24123if test "${enable_calalarmd+set}" = set; then :
24124  enableval=$enable_calalarmd;
24125else
24126  enable_calalarmd="no";
24127fi
24128
24129if test "x$enable_calalarmd" = "xyes"; then
24130    if test "x$enable_http" = "xyes"; then
24131
24132$as_echo "#define USE_CALALARMD /**/" >>confdefs.h
24133
24134    else
24135	as_fn_error $? "--enable-calalarmd requires --enable-http" "$LINENO" 5
24136    fi
24137fi
24138 if test "$enable_calalarmd" != "no"; then
24139  CALALARMD_TRUE=
24140  CALALARMD_FALSE='#'
24141else
24142  CALALARMD_TRUE='#'
24143  CALALARMD_FALSE=
24144fi
24145
24146
24147# Check whether --enable-replication was given.
24148if test "${enable_replication+set}" = set; then :
24149  enableval=$enable_replication;
24150else
24151  enable_replication="no";
24152fi
24153
24154 if test "$enable_replication" != no; then
24155  REPLICATION_TRUE=
24156  REPLICATION_FALSE='#'
24157else
24158  REPLICATION_TRUE='#'
24159  REPLICATION_FALSE=
24160fi
24161
24162if test "x$enable_replication" = "xyes"; then
24163
24164$as_echo "#define USE_REPLICATION /**/" >>confdefs.h
24165
24166fi
24167
24168# Check whether --enable-backup was given.
24169if test "${enable_backup+set}" = set; then :
24170  enableval=$enable_backup;
24171else
24172  enable_backup="no";
24173fi
24174
24175 if test "$enable_backup" != no; then
24176  BACKUP_TRUE=
24177  BACKUP_FALSE='#'
24178else
24179  BACKUP_TRUE='#'
24180  BACKUP_FALSE=
24181fi
24182
24183
24184if test "x$enable_backup" != xno; then
24185    if test "x$HAVE_SQLITE" != x1; then
24186        as_fn_error $? "Need sqlite3 for backups" "$LINENO" 5
24187    else
24188        use_sqlite="yes"
24189    fi
24190    if test "x$HAVE_ZLIB" != x1; then
24191        as_fn_error $? "Need zlib for backups" "$LINENO" 5
24192    fi
24193
24194
24195$as_echo "#define ENABLE_BACKUP /**/" >>confdefs.h
24196
24197fi
24198
24199
24200# Check whether --with-com_err was given.
24201if test "${with_com_err+set}" = set; then :
24202  withval=$with_com_err;
24203fi
24204
24205if test -z "$with_com_err"; then
24206        # no value supplied
24207        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
24208$as_echo_n "checking for com_err in -lcom_err... " >&6; }
24209if ${ac_cv_lib_com_err_com_err+:} false; then :
24210  $as_echo_n "(cached) " >&6
24211else
24212  ac_check_lib_save_LIBS=$LIBS
24213LIBS="-lcom_err  $LIBS"
24214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24215/* end confdefs.h.  */
24216
24217/* Override any GCC internal prototype to avoid an error.
24218   Use char because int might match the return type of a GCC
24219   builtin and then its argument prototype would still apply.  */
24220#ifdef __cplusplus
24221extern "C"
24222#endif
24223char com_err ();
24224int
24225main ()
24226{
24227return com_err ();
24228  ;
24229  return 0;
24230}
24231_ACEOF
24232if ac_fn_c_try_link "$LINENO"; then :
24233  ac_cv_lib_com_err_com_err=yes
24234else
24235  ac_cv_lib_com_err_com_err=no
24236fi
24237rm -f core conftest.err conftest.$ac_objext \
24238    conftest$ac_exeext conftest.$ac_ext
24239LIBS=$ac_check_lib_save_LIBS
24240fi
24241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
24242$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
24243if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
24244
24245                # com_err is already in library path
24246                # guess we're okay
24247                # can use system com_err
24248                with_com_err=""
24249                ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
24250if test "x$ac_cv_header_et_com_err_h" = xyes; then :
24251
24252$as_echo "#define HAVE_ET_COM_ERR_H /**/" >>confdefs.h
24253
24254else
24255  ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
24256if test "x$ac_cv_header_com_err_h" = xyes; then :
24257
24258else
24259  as_fn_error $? "cannot locate com_err.h" "$LINENO" 5
24260fi
24261
24262
24263fi
24264
24265
24266                # Extract the first word of "compile_et", so it can be a program name with args.
24267set dummy compile_et; ac_word=$2
24268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24269$as_echo_n "checking for $ac_word... " >&6; }
24270if ${ac_cv_path_COMPILE_ET+:} false; then :
24271  $as_echo_n "(cached) " >&6
24272else
24273  case $COMPILE_ET in
24274  [\\/]* | ?:[\\/]*)
24275  ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
24276  ;;
24277  *)
24278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24279for as_dir in $PATH
24280do
24281  IFS=$as_save_IFS
24282  test -z "$as_dir" && as_dir=.
24283    for ac_exec_ext in '' $ac_executable_extensions; do
24284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24285    ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
24286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24287    break 2
24288  fi
24289done
24290  done
24291IFS=$as_save_IFS
24292
24293  test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="no compile et"
24294  ;;
24295esac
24296fi
24297COMPILE_ET=$ac_cv_path_COMPILE_ET
24298if test -n "$COMPILE_ET"; then
24299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
24300$as_echo "$COMPILE_ET" >&6; }
24301else
24302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24303$as_echo "no" >&6; }
24304fi
24305
24306
24307
24308else
24309
24310        if test -f /usr/local/include/com_err.h -o -f /usr/local/include/et/com_err.h; then
24311                with_com_err="/usr/local"
24312                # Extract the first word of "/usr/local/bin/compile_et", so it can be a program name with args.
24313set dummy /usr/local/bin/compile_et; ac_word=$2
24314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24315$as_echo_n "checking for $ac_word... " >&6; }
24316if ${ac_cv_path_COMPILE_ET+:} false; then :
24317  $as_echo_n "(cached) " >&6
24318else
24319  case $COMPILE_ET in
24320  [\\/]* | ?:[\\/]*)
24321  ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
24322  ;;
24323  *)
24324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24325for as_dir in $PATH
24326do
24327  IFS=$as_save_IFS
24328  test -z "$as_dir" && as_dir=.
24329    for ac_exec_ext in '' $ac_executable_extensions; do
24330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24331    ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
24332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24333    break 2
24334  fi
24335done
24336  done
24337IFS=$as_save_IFS
24338
24339  test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="no compile et"
24340  ;;
24341esac
24342fi
24343COMPILE_ET=$ac_cv_path_COMPILE_ET
24344if test -n "$COMPILE_ET"; then
24345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
24346$as_echo "$COMPILE_ET" >&6; }
24347else
24348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24349$as_echo "no" >&6; }
24350fi
24351
24352
24353        elif test -f /usr/include/com_err.h -o -f /usr/include/et/com_err.h; then
24354                with_com_err="/usr"
24355                # Extract the first word of "/usr/bin/compile_et", so it can be a program name with args.
24356set dummy /usr/bin/compile_et; ac_word=$2
24357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24358$as_echo_n "checking for $ac_word... " >&6; }
24359if ${ac_cv_path_COMPILE_ET+:} false; then :
24360  $as_echo_n "(cached) " >&6
24361else
24362  case $COMPILE_ET in
24363  [\\/]* | ?:[\\/]*)
24364  ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
24365  ;;
24366  *)
24367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24368for as_dir in $PATH
24369do
24370  IFS=$as_save_IFS
24371  test -z "$as_dir" && as_dir=.
24372    for ac_exec_ext in '' $ac_executable_extensions; do
24373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24374    ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
24375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24376    break 2
24377  fi
24378done
24379  done
24380IFS=$as_save_IFS
24381
24382  test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="no compile et"
24383  ;;
24384esac
24385fi
24386COMPILE_ET=$ac_cv_path_COMPILE_ET
24387if test -n "$COMPILE_ET"; then
24388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
24389$as_echo "$COMPILE_ET" >&6; }
24390else
24391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24392$as_echo "no" >&6; }
24393fi
24394
24395
24396        else
24397                # use ours
24398                with_com_err=yes
24399        fi
24400
24401fi
24402
24403
24404        if test "${with_com_err}" = "no"; then
24405          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: com_err is required; included version will be used." >&5
24406$as_echo "$as_me: WARNING: com_err is required; included version will be used." >&2;}
24407          with_com_err="yes"
24408        fi
24409        if test "${COMPILE_ET}" = "no compile et" -o "${COMPILE_ET}" = ""; then
24410          { $as_echo "$as_me:${as_lineno-$LINENO}: Parts of com_err distribution were found, but not compile_et." >&5
24411$as_echo "$as_me: Parts of com_err distribution were found, but not compile_et." >&6;}
24412          { $as_echo "$as_me:${as_lineno-$LINENO}: Will build com_err from included sources." >&5
24413$as_echo "$as_me: Will build com_err from included sources." >&6;}
24414          with_com_err="yes" # build it ourselves
24415        fi
24416fi
24417
24418case "$with_com_err" in
24419    # built-in et
24420    yes) # use the com_err we're gonna build
24421        COMPILE_ET="\${abs_top_builddir}/com_err/et/compile_et"
24422        ;;
24423    "") # no problem, we already have it in the paths
24424        # we do nothing to pick it up
24425        ;;
24426    *)  # use whatever they told us, or whatever we found
24427        COMPILE_ET="${with_com_err}/bin/compile_et"
24428        ;;
24429esac
24430
24431if test "$with_com_err" != yes ; then
24432            TEST1=".cyrus-configure-test-$$"
24433    /bin/rm -f $TEST1.et $TEST1.h $TEST1.c
24434    echo "error_table imap" >> $TEST1.et
24435    echo "ec IMAP_TESTING," >> $TEST1.et
24436    echo "   \"Testing\"" >> $TEST1.et
24437    echo "end" >> $TEST1.et
24438    "${COMPILE_ET}" $TEST1.et > /dev/null
24439    compile_et_ok=no
24440    if test -f $TEST1.h ; then
24441                if test `awk '/IMAP_TESTING/{print $3}' $TEST1.h 2>/dev/null` = "(-1904809472L)" ; then
24442                        if grep -q '^extern const struct error_table et_imap_error_table;' $TEST1.h; then
24443                compile_et_ok=yes
24444            fi
24445        fi
24446    fi
24447    /bin/rm -f $TEST1.et $TEST1.h $TEST1.c
24448    if test "$compile_et_ok" = no ; then
24449        # revert to the built-in compile_et
24450        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems $COMPILE_ET is buggy, building our own" >&5
24451$as_echo "$as_me: WARNING: It seems $COMPILE_ET is buggy, building our own" >&2;}
24452        with_com_err=yes
24453        COMPILE_ET="\${abs_top_builddir}/com_err/et/compile_et"
24454    fi
24455fi
24456
24457case "$with_com_err" in
24458  # built-in et
24459  yes) # use the com_err we're gonna build
24460          COM_ERR_LIBS="com_err/et/libcyrus_com_err.la"
24461          COM_ERR_CPPFLAGS="-I\${top_srcdir}/com_err/et"
24462          ;;
24463  "")   # no problem, we already have it in the paths
24464        # we do nothing to pick it up
24465        COM_ERR_LIBS="-lcom_err" # hope it's not shared
24466        # we already set COMPILE_ET, or we didn't get here
24467        COM_ERR_CPPFLAGS=""
24468      ;;
24469  *) # use whatever they told us, or whatever we found
24470     COM_ERR_LIBS="${with_com_err}/lib/libcom_err.a"
24471     COM_ERR_CPPFLAGS="-I${with_com_err}/include"
24472     # Ever get the feeling people hide this stuff on purpose?
24473     if test -d "${with_com_err}/include/et" ; then
24474       COM_ERR_CPPFLAGS="-I${with_com_err}/include/et"
24475     fi
24476esac
24477 if test "$with_com_err" = "yes"; then
24478  COM_ERR_TRUE=
24479  COM_ERR_FALSE='#'
24480else
24481  COM_ERR_TRUE='#'
24482  COM_ERR_FALSE=
24483fi
24484
24485if test "$with_com_err" = "yes"; then
24486  PKG_CONFIG_COM_ERR_LIB="-lcyrus_com_err"
24487fi
24488
24489
24490
24491
24492
24493if test "$USE_MAINTAINER_MODE" = "yes" ; then
24494    # Extract the first word of "gperf", so it can be a program name with args.
24495set dummy gperf; ac_word=$2
24496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24497$as_echo_n "checking for $ac_word... " >&6; }
24498if ${ac_cv_prog_GPERF+:} false; then :
24499  $as_echo_n "(cached) " >&6
24500else
24501  if test -n "$GPERF"; then
24502  ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
24503else
24504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24505for as_dir in $PATH
24506do
24507  IFS=$as_save_IFS
24508  test -z "$as_dir" && as_dir=.
24509    for ac_exec_ext in '' $ac_executable_extensions; do
24510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24511    ac_cv_prog_GPERF="yes"
24512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24513    break 2
24514  fi
24515done
24516  done
24517IFS=$as_save_IFS
24518
24519  test -z "$ac_cv_prog_GPERF" && ac_cv_prog_GPERF="no"
24520fi
24521fi
24522GPERF=$ac_cv_prog_GPERF
24523if test -n "$GPERF"; then
24524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
24525$as_echo "$GPERF" >&6; }
24526else
24527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24528$as_echo "no" >&6; }
24529fi
24530
24531
24532    if test "$GPERF" != "yes"; then
24533        as_fn_error $? "gperf is not installed on this system, but is required for maintainer mode build rules" "$LINENO" 5
24534    fi
24535fi
24536
24537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern syslog" >&5
24538$as_echo_n "checking for modern syslog... " >&6; }
24539if ${cyrus_cv_lib_syslog+:} false; then :
24540  $as_echo_n "(cached) " >&6
24541else
24542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24543/* end confdefs.h.  */
24544#include <syslog.h>
24545#ifndef LOG_LOCAL6
24546#include </nonexistent>
24547#endif
24548_ACEOF
24549if ac_fn_c_try_cpp "$LINENO"; then :
24550  cyrus_cv_lib_syslog=yes
24551else
24552  cyrus_cv_lib_syslog=no
24553fi
24554rm -f conftest.err conftest.i conftest.$ac_ext
24555fi
24556
24557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_lib_syslog" >&5
24558$as_echo "$cyrus_cv_lib_syslog" >&6; }
24559
24560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility to use" >&5
24561$as_echo_n "checking which syslog facility to use... " >&6; }
24562SYSLOG_FACILITY=LOG_LOCAL6
24563
24564# Check whether --with-syslogfacility was given.
24565if test "${with_syslogfacility+set}" = set; then :
24566  withval=$with_syslogfacility;  if test "$withval" != "yes" -a "$withval" != "no" ; then
24567                       SYSLOG_FACILITY=LOG_$withval
24568               fi;
24569fi
24570
24571
24572cat >>confdefs.h <<_ACEOF
24573#define SYSLOG_FACILITY $SYSLOG_FACILITY
24574_ACEOF
24575
24576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSLOG_FACILITY" >&5
24577$as_echo "$SYSLOG_FACILITY" >&6; }
24578
24579ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
24580if test "x$ac_cv_func_getdtablesize" = xyes; then :
24581  $as_echo "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
24582
24583else
24584  case " $LIBOBJS " in
24585  *" getdtablesize.$ac_objext "* ) ;;
24586  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
24587 ;;
24588esac
24589
24590fi
24591
24592
24593# Check whether --enable-cmulocal was given.
24594if test "${enable_cmulocal+set}" = set; then :
24595  enableval=$enable_cmulocal;
24596fi
24597
24598 if test "$enable_cmulocal" = "yes"; then
24599  CMULOCAL_TRUE=
24600  CMULOCAL_FALSE='#'
24601else
24602  CMULOCAL_TRUE='#'
24603  CMULOCAL_FALSE=
24604fi
24605
24606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to use old sieve service name" >&5
24607$as_echo_n "checking to use old sieve service name... " >&6; }
24608# Check whether --enable-oldsievename was given.
24609if test "${enable_oldsievename+set}" = set; then :
24610  enableval=$enable_oldsievename; if test "$enableval" = yes; then
24611                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24612$as_echo "yes" >&6; }
24613
24614$as_echo "#define OLD_SIEVE_SERVICE_NAME /**/" >>confdefs.h
24615
24616        else
24617                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24618$as_echo "no" >&6; }
24619        fi
24620else
24621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24622$as_echo "no" >&6; }
24623fi
24624
24625
24626ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
24627if test "x$ac_cv_func_crypt" = xyes; then :
24628  cmu_have_crypt=yes
24629else
24630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
24631$as_echo_n "checking for crypt in -lcrypt... " >&6; }
24632if ${ac_cv_lib_crypt_crypt+:} false; then :
24633  $as_echo_n "(cached) " >&6
24634else
24635  ac_check_lib_save_LIBS=$LIBS
24636LIBS="-lcrypt  $LIBS"
24637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24638/* end confdefs.h.  */
24639
24640/* Override any GCC internal prototype to avoid an error.
24641   Use char because int might match the return type of a GCC
24642   builtin and then its argument prototype would still apply.  */
24643#ifdef __cplusplus
24644extern "C"
24645#endif
24646char crypt ();
24647int
24648main ()
24649{
24650return crypt ();
24651  ;
24652  return 0;
24653}
24654_ACEOF
24655if ac_fn_c_try_link "$LINENO"; then :
24656  ac_cv_lib_crypt_crypt=yes
24657else
24658  ac_cv_lib_crypt_crypt=no
24659fi
24660rm -f core conftest.err conftest.$ac_objext \
24661    conftest$ac_exeext conftest.$ac_ext
24662LIBS=$ac_check_lib_save_LIBS
24663fi
24664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24665$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24666if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24667  LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
24668else
24669  cmu_have_crypt=no
24670fi
24671
24672fi
24673
24674
24675
24676
24677
24678# Check whether --enable-gssapi was given.
24679if test "${enable_gssapi+set}" = set; then :
24680  enableval=$enable_gssapi; gssapi=$enableval
24681else
24682  gssapi=yes
24683fi
24684
24685
24686# Check whether --with-gss_impl was given.
24687if test "${with_gss_impl+set}" = set; then :
24688  withval=$with_gss_impl; gss_impl=$withval
24689else
24690  gss_impl=auto
24691fi
24692
24693
24694if test "$gssapi" != no; then
24695  platform=
24696  case "${host}" in
24697    *-*-linux*)
24698      platform=__linux
24699      ;;
24700    *-*-hpux*)
24701      platform=__hpux
24702      ;;
24703    *-*-irix*)
24704      platform=__irix
24705      ;;
24706    *-*-solaris2*)
24707# When should we use __sunos?
24708      platform=__solaris
24709      ;;
24710    *-*-aix*)
24711###_AIX
24712      platform=__aix
24713      ;;
24714    *)
24715      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
24716$as_echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;}
24717      if test "$gss_impl" = "cybersafe"; then
24718        as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
24719      fi
24720      ;;
24721  esac
24722
24723  cmu_saved_CPPFLAGS=$CPPFLAGS
24724
24725  if test -d ${gssapi}; then
24726    CPPFLAGS="$CPPFLAGS -I$gssapi/include"
24727# We want to keep -I in our CPPFLAGS, but only if we succeed
24728    cmu_saved_CPPFLAGS=$CPPFLAGS
24729### I am not sure how useful is this (and whether this is required at all
24730### especially when we have to provide two -L flags for new CyberSafe
24731    LDFLAGS="$LDFLAGS -L$gssapi/lib"
24732
24733    if test -n "$platform"; then
24734      if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
24735        CPPFLAGS="$CPPFLAGS -D$platform"
24736        if test -d "${gssapi}/appsec-sdk/include"; then
24737          CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
24738        fi
24739      fi
24740    fi
24741  fi
24742  ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
24743if test "x$ac_cv_header_gssapi_h" = xyes; then :
24744
24745else
24746  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
24747if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
24748
24749else
24750  gssapi=no
24751fi
24752
24753
24754fi
24755
24756
24757  for ac_header in gssapi/gssapi_ext.h
24758do :
24759  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
24760if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes; then :
24761  cat >>confdefs.h <<_ACEOF
24762#define HAVE_GSSAPI_GSSAPI_EXT_H 1
24763_ACEOF
24764
24765fi
24766
24767done
24768
24769  CPPFLAGS=$cmu_saved_CPPFLAGS
24770
24771fi
24772
24773if test "$gssapi" != no; then
24774  if test "$ac_cv_header_gssapi_h" = "yes" -o "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
24775
24776$as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
24777
24778  fi
24779
24780  # We need to find out which gssapi implementation we are
24781  # using. Supported alternatives are: MIT Kerberos 5,
24782  # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
24783  # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
24784  # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
24785  #
24786  # The choice is reflected in GSSAPIBASE_LIBS
24787
24788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
24789$as_echo_n "checking for res_search in -lresolv... " >&6; }
24790if ${ac_cv_lib_resolv_res_search+:} false; then :
24791  $as_echo_n "(cached) " >&6
24792else
24793  ac_check_lib_save_LIBS=$LIBS
24794LIBS="-lresolv  $LIBS"
24795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24796/* end confdefs.h.  */
24797
24798/* Override any GCC internal prototype to avoid an error.
24799   Use char because int might match the return type of a GCC
24800   builtin and then its argument prototype would still apply.  */
24801#ifdef __cplusplus
24802extern "C"
24803#endif
24804char res_search ();
24805int
24806main ()
24807{
24808return res_search ();
24809  ;
24810  return 0;
24811}
24812_ACEOF
24813if ac_fn_c_try_link "$LINENO"; then :
24814  ac_cv_lib_resolv_res_search=yes
24815else
24816  ac_cv_lib_resolv_res_search=no
24817fi
24818rm -f core conftest.err conftest.$ac_objext \
24819    conftest$ac_exeext conftest.$ac_ext
24820LIBS=$ac_check_lib_save_LIBS
24821fi
24822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
24823$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
24824if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
24825  cat >>confdefs.h <<_ACEOF
24826#define HAVE_LIBRESOLV 1
24827_ACEOF
24828
24829  LIBS="-lresolv $LIBS"
24830
24831fi
24832
24833  if test -d ${gssapi}; then
24834     gssapi_dir="${gssapi}/lib"
24835     GSSAPIBASE_LIBS="-L$gssapi_dir"
24836     GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
24837  else
24838     # FIXME: This is only used for building cyrus, and then only as
24839     # a real hack.  it needs to be fixed.
24840     gssapi_dir="/usr/local/lib"
24841  fi
24842
24843  # Check a full link against the Heimdal libraries.
24844  # If this fails, check a full link against the MIT libraries.
24845  # If this fails, check a full link against the CyberSafe libraries.
24846  # If this fails, check a full link against the Solaris 8 and up libgss.
24847
24848  if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
24849    gss_failed=0
24850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
24851$as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
24852if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
24853  $as_echo_n "(cached) " >&6
24854else
24855  ac_check_lib_save_LIBS=$LIBS
24856LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} -lhx509 $LIBS"
24857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858/* end confdefs.h.  */
24859
24860/* Override any GCC internal prototype to avoid an error.
24861   Use char because int might match the return type of a GCC
24862   builtin and then its argument prototype would still apply.  */
24863#ifdef __cplusplus
24864extern "C"
24865#endif
24866char gss_unwrap ();
24867int
24868main ()
24869{
24870return gss_unwrap ();
24871  ;
24872  return 0;
24873}
24874_ACEOF
24875if ac_fn_c_try_link "$LINENO"; then :
24876  ac_cv_lib_gssapi_gss_unwrap=yes
24877else
24878  ac_cv_lib_gssapi_gss_unwrap=no
24879fi
24880rm -f core conftest.err conftest.$ac_objext \
24881    conftest$ac_exeext conftest.$ac_ext
24882LIBS=$ac_check_lib_save_LIBS
24883fi
24884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
24885$as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
24886if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
24887  gss_impl="heimdal"
24888else
24889  gss_failed=1
24890fi
24891
24892    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
24893      gss_impl="failed"
24894    fi
24895  fi
24896
24897  if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
24898    # check for libkrb5support first
24899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
24900$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
24901if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
24902  $as_echo_n "(cached) " >&6
24903else
24904  ac_check_lib_save_LIBS=$LIBS
24905LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
24906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24907/* end confdefs.h.  */
24908
24909/* Override any GCC internal prototype to avoid an error.
24910   Use char because int might match the return type of a GCC
24911   builtin and then its argument prototype would still apply.  */
24912#ifdef __cplusplus
24913extern "C"
24914#endif
24915char krb5int_getspecific ();
24916int
24917main ()
24918{
24919return krb5int_getspecific ();
24920  ;
24921  return 0;
24922}
24923_ACEOF
24924if ac_fn_c_try_link "$LINENO"; then :
24925  ac_cv_lib_krb5support_krb5int_getspecific=yes
24926else
24927  ac_cv_lib_krb5support_krb5int_getspecific=no
24928fi
24929rm -f core conftest.err conftest.$ac_objext \
24930    conftest$ac_exeext conftest.$ac_ext
24931LIBS=$ac_check_lib_save_LIBS
24932fi
24933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
24934$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
24935if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
24936  K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
24937fi
24938
24939
24940    gss_failed=0
24941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
24942$as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
24943if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
24944  $as_echo_n "(cached) " >&6
24945else
24946  ac_check_lib_save_LIBS=$LIBS
24947LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
24948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24949/* end confdefs.h.  */
24950
24951/* Override any GCC internal prototype to avoid an error.
24952   Use char because int might match the return type of a GCC
24953   builtin and then its argument prototype would still apply.  */
24954#ifdef __cplusplus
24955extern "C"
24956#endif
24957char gss_unwrap ();
24958int
24959main ()
24960{
24961return gss_unwrap ();
24962  ;
24963  return 0;
24964}
24965_ACEOF
24966if ac_fn_c_try_link "$LINENO"; then :
24967  ac_cv_lib_gssapi_krb5_gss_unwrap=yes
24968else
24969  ac_cv_lib_gssapi_krb5_gss_unwrap=no
24970fi
24971rm -f core conftest.err conftest.$ac_objext \
24972    conftest$ac_exeext conftest.$ac_ext
24973LIBS=$ac_check_lib_save_LIBS
24974fi
24975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
24976$as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
24977if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
24978  gss_impl="mit"
24979else
24980  gss_failed=1
24981fi
24982
24983    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
24984      gss_impl="failed"
24985    fi
24986  fi
24987
24988  # For Cybersafe one has to set a platform define in order to make compilation work
24989  if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
24990
24991    cmu_saved_CPPFLAGS=$CPPFLAGS
24992    cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
24993# FIXME - Note that the libraries are in .../lib64 for 64bit kernels
24994    if test -d "${gssapi}/appsec-rt/lib"; then
24995      GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
24996    fi
24997    CPPFLAGS="$CPPFLAGS -D$platform"
24998    if test -d "${gssapi}/appsec-sdk/include"; then
24999      CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
25000    fi
25001
25002    gss_failed=0
25003
25004# Check for CyberSafe with two libraries first, than fall back to a single
25005# library (older CyberSafe)
25006
25007    unset ac_cv_lib_gss_csf_gss_acq_user
25008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
25009$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
25010if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
25011  $as_echo_n "(cached) " >&6
25012else
25013  ac_check_lib_save_LIBS=$LIBS
25014LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
25015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25016/* end confdefs.h.  */
25017
25018/* Override any GCC internal prototype to avoid an error.
25019   Use char because int might match the return type of a GCC
25020   builtin and then its argument prototype would still apply.  */
25021#ifdef __cplusplus
25022extern "C"
25023#endif
25024char csf_gss_acq_user ();
25025int
25026main ()
25027{
25028return csf_gss_acq_user ();
25029  ;
25030  return 0;
25031}
25032_ACEOF
25033if ac_fn_c_try_link "$LINENO"; then :
25034  ac_cv_lib_gss_csf_gss_acq_user=yes
25035else
25036  ac_cv_lib_gss_csf_gss_acq_user=no
25037fi
25038rm -f core conftest.err conftest.$ac_objext \
25039    conftest$ac_exeext conftest.$ac_ext
25040LIBS=$ac_check_lib_save_LIBS
25041fi
25042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
25043$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
25044if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
25045  gss_impl="cybersafe03"
25046else
25047  unset ac_cv_lib_gss_csf_gss_acq_user;
25048                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
25049$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
25050if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
25051  $as_echo_n "(cached) " >&6
25052else
25053  ac_check_lib_save_LIBS=$LIBS
25054LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
25055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25056/* end confdefs.h.  */
25057
25058/* Override any GCC internal prototype to avoid an error.
25059   Use char because int might match the return type of a GCC
25060   builtin and then its argument prototype would still apply.  */
25061#ifdef __cplusplus
25062extern "C"
25063#endif
25064char csf_gss_acq_user ();
25065int
25066main ()
25067{
25068return csf_gss_acq_user ();
25069  ;
25070  return 0;
25071}
25072_ACEOF
25073if ac_fn_c_try_link "$LINENO"; then :
25074  ac_cv_lib_gss_csf_gss_acq_user=yes
25075else
25076  ac_cv_lib_gss_csf_gss_acq_user=no
25077fi
25078rm -f core conftest.err conftest.$ac_objext \
25079    conftest$ac_exeext conftest.$ac_ext
25080LIBS=$ac_check_lib_save_LIBS
25081fi
25082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
25083$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
25084if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
25085  gss_impl="cybersafe"
25086else
25087  gss_failed=1
25088fi
25089
25090fi
25091
25092
25093    if test "$gss_failed" = "1"; then
25094# Restore variables
25095      GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
25096      CPPFLAGS=$cmu_saved_CPPFLAGS
25097
25098      if test "$gss_impl" != "auto"; then
25099        gss_impl="failed"
25100      fi
25101    fi
25102  fi
25103
25104  if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
25105    gss_failed=0
25106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
25107$as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
25108if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
25109  $as_echo_n "(cached) " >&6
25110else
25111  ac_check_lib_save_LIBS=$LIBS
25112LIBS="-lgss -lgss $LIBS"
25113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114/* end confdefs.h.  */
25115
25116/* Override any GCC internal prototype to avoid an error.
25117   Use char because int might match the return type of a GCC
25118   builtin and then its argument prototype would still apply.  */
25119#ifdef __cplusplus
25120extern "C"
25121#endif
25122char gss_unwrap ();
25123int
25124main ()
25125{
25126return gss_unwrap ();
25127  ;
25128  return 0;
25129}
25130_ACEOF
25131if ac_fn_c_try_link "$LINENO"; then :
25132  ac_cv_lib_gss_gss_unwrap=yes
25133else
25134  ac_cv_lib_gss_gss_unwrap=no
25135fi
25136rm -f core conftest.err conftest.$ac_objext \
25137    conftest$ac_exeext conftest.$ac_ext
25138LIBS=$ac_check_lib_save_LIBS
25139fi
25140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
25141$as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
25142if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
25143  gss_impl="seam"
25144else
25145  gss_failed=1
25146fi
25147
25148    if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
25149      gss_impl="failed"
25150    fi
25151  fi
25152
25153  if test "$gss_impl" = "mit"; then
25154    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
25155    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
25156  elif test "$gss_impl" = "heimdal"; then
25157    CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
25158    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err -lhx509"
25159    GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_STATIC_LIBS $gssapi_dir/libgssapi.a $gssapi_dir/libkrb5.a $gssapi_dir/libasn1.a $gssapi_dir/libroken.a $gssapi_dir/libcom_err.a ${LIB_CRYPT}"
25160  elif test "$gss_impl" = "cybersafe03"; then
25161# Version of CyberSafe with two libraries
25162    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
25163    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
25164    # there is no static libgss for CyberSafe
25165    GSSAPIBASE_STATIC_LIBS=none
25166  elif test "$gss_impl" = "cybersafe"; then
25167    CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
25168    GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
25169    # there is no static libgss for CyberSafe
25170    GSSAPIBASE_STATIC_LIBS=none
25171  elif test "$gss_impl" = "seam"; then
25172    GSSAPIBASE_LIBS=-lgss
25173    # there is no static libgss on Solaris 8 and up
25174    GSSAPIBASE_STATIC_LIBS=none
25175  elif test "$gss_impl" = "failed"; then
25176    gssapi="no"
25177    GSSAPIBASE_LIBS=
25178    GSSAPIBASE_STATIC_LIBS=
25179    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
25180$as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
25181  else
25182    gssapi="no"
25183    GSSAPIBASE_LIBS=
25184    GSSAPIBASE_STATIC_LIBS=
25185    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
25186$as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
25187  fi
25188fi
25189
25190#
25191# Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
25192# in gssapi\rfckrb5.h
25193#
25194if test "$gssapi" != "no"; then
25195  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
25196    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25197/* end confdefs.h.  */
25198#include <gssapi/gssapi.h>
25199                  #ifdef GSS_C_NT_HOSTBASED_SERVICE
25200                    hostbased_service_gss_nt_yes
25201                  #endif
25202_ACEOF
25203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25204  $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
25205
25206$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
25207
25208else
25209  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
25210$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
25211fi
25212rm -f conftest*
25213
25214
25215  elif test "$ac_cv_header_gssapi_h" = "yes"; then
25216    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25217/* end confdefs.h.  */
25218#include <gssapi.h>
25219
25220_ACEOF
25221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25222  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
25223
25224$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
25225
25226fi
25227rm -f conftest*
25228
25229  elif test "$ac_cv_header_gssapi_gssapi_h"; then
25230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25231/* end confdefs.h.  */
25232#include <gssapi/gssapi.h>
25233
25234_ACEOF
25235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25236  $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
25237
25238$as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
25239
25240fi
25241rm -f conftest*
25242
25243  fi
25244
25245  if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
25246    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25247/* end confdefs.h.  */
25248#include <gssapi/gssapi.h>
25249                  #ifdef GSS_C_NT_USER_NAME
25250                   user_name_yes_gss_nt
25251                  #endif
25252_ACEOF
25253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25254  $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
25255
25256$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
25257
25258else
25259  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
25260$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
25261fi
25262rm -f conftest*
25263
25264  elif test "$ac_cv_header_gssapi_h" = "yes"; then
25265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266/* end confdefs.h.  */
25267#include <gssapi.h>
25268
25269_ACEOF
25270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25271  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
25272
25273$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
25274
25275fi
25276rm -f conftest*
25277
25278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25279/* end confdefs.h.  */
25280#include <gssapi.h>
25281
25282_ACEOF
25283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25284  $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
25285  rfc5587=yes
25286fi
25287rm -f conftest*
25288
25289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25290/* end confdefs.h.  */
25291#include <gssapi.h>
25292
25293_ACEOF
25294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25295  $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then :
25296  rfc5801=yes
25297fi
25298rm -f conftest*
25299
25300  elif test "$ac_cv_header_gssapi_gssapi_h"; then
25301    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25302/* end confdefs.h.  */
25303#include <gssapi/gssapi.h>
25304
25305_ACEOF
25306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25307  $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
25308
25309$as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
25310
25311fi
25312rm -f conftest*
25313
25314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315/* end confdefs.h.  */
25316#include <gssapi/gssapi.h>
25317
25318_ACEOF
25319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25320  $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
25321  rfc5587=yes
25322fi
25323rm -f conftest*
25324
25325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25326/* end confdefs.h.  */
25327#include <gssapi.h>
25328
25329_ACEOF
25330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25331  $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then :
25332  rfc5801=yes
25333fi
25334rm -f conftest*
25335
25336  fi
25337fi
25338
25339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
25340$as_echo_n "checking GSSAPI... " >&6; }
25341if test "$gssapi" != no; then
25342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
25343$as_echo "with implementation ${gss_impl}" >&6; }
25344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
25345$as_echo_n "checking for res_search in -lresolv... " >&6; }
25346if ${ac_cv_lib_resolv_res_search+:} false; then :
25347  $as_echo_n "(cached) " >&6
25348else
25349  ac_check_lib_save_LIBS=$LIBS
25350LIBS="-lresolv  $LIBS"
25351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352/* end confdefs.h.  */
25353
25354/* Override any GCC internal prototype to avoid an error.
25355   Use char because int might match the return type of a GCC
25356   builtin and then its argument prototype would still apply.  */
25357#ifdef __cplusplus
25358extern "C"
25359#endif
25360char res_search ();
25361int
25362main ()
25363{
25364return res_search ();
25365  ;
25366  return 0;
25367}
25368_ACEOF
25369if ac_fn_c_try_link "$LINENO"; then :
25370  ac_cv_lib_resolv_res_search=yes
25371else
25372  ac_cv_lib_resolv_res_search=no
25373fi
25374rm -f core conftest.err conftest.$ac_objext \
25375    conftest$ac_exeext conftest.$ac_ext
25376LIBS=$ac_check_lib_save_LIBS
25377fi
25378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
25379$as_echo "$ac_cv_lib_resolv_res_search" >&6; }
25380if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
25381  GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
25382fi
25383
25384  SASL_MECHS="$SASL_MECHS libgssapiv2.la"
25385  SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
25386  SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gssapi.c"
25387  if test "$rfc5587" = "yes" -a "$rfc5801" = "yes"; then
25388    SASL_MECHS="$SASL_MECHS libgs2.la"
25389    SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
25390    SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gs2.c"
25391  fi
25392
25393  cmu_save_LIBS="$LIBS"
25394  LIBS="$LIBS $GSSAPIBASE_LIBS"
25395  for ac_func in gsskrb5_register_acceptor_identity
25396do :
25397  ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
25398if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
25399  cat >>confdefs.h <<_ACEOF
25400#define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
25401_ACEOF
25402
25403fi
25404done
25405
25406  for ac_func in gss_decapsulate_token
25407do :
25408  ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
25409if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
25410  cat >>confdefs.h <<_ACEOF
25411#define HAVE_GSS_DECAPSULATE_TOKEN 1
25412_ACEOF
25413
25414fi
25415done
25416
25417  for ac_func in gss_encapsulate_token
25418do :
25419  ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
25420if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
25421  cat >>confdefs.h <<_ACEOF
25422#define HAVE_GSS_ENCAPSULATE_TOKEN 1
25423_ACEOF
25424
25425fi
25426done
25427
25428  for ac_func in gss_oid_equal
25429do :
25430  ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
25431if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
25432  cat >>confdefs.h <<_ACEOF
25433#define HAVE_GSS_OID_EQUAL 1
25434_ACEOF
25435
25436fi
25437done
25438
25439  LIBS="$cmu_save_LIBS"
25440
25441  cmu_save_LIBS="$LIBS"
25442  LIBS="$LIBS $GSSAPIBASE_LIBS"
25443  for ac_func in gss_get_name_attribute
25444do :
25445  ac_fn_c_check_func "$LINENO" "gss_get_name_attribute" "ac_cv_func_gss_get_name_attribute"
25446if test "x$ac_cv_func_gss_get_name_attribute" = xyes; then :
25447  cat >>confdefs.h <<_ACEOF
25448#define HAVE_GSS_GET_NAME_ATTRIBUTE 1
25449_ACEOF
25450
25451fi
25452done
25453
25454  LIBS="$cmu_save_LIBS"
25455
25456  cmu_save_LIBS="$LIBS"
25457  LIBS="$LIBS $GSSAPIBASE_LIBS"
25458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPNEGO support in GSSAPI libraries" >&5
25459$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; }
25460  if test "$cross_compiling" = yes; then :
25461  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25463as_fn_error $? "cannot run test program while cross compiling
25464See \`config.log' for more details" "$LINENO" 5; }
25465else
25466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25467/* end confdefs.h.  */
25468
25469#ifdef HAVE_GSSAPI_H
25470#include <gssapi.h>
25471#else
25472#include <gssapi/gssapi.h>
25473#endif
25474
25475int main(void)
25476{
25477    gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
25478    gss_OID_set mech_set;
25479    OM_uint32 min_stat;
25480    int have_spnego = 0;
25481
25482    if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
25483        gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
25484        gss_release_oid_set(&min_stat, &mech_set);
25485    }
25486
25487    return (!have_spnego);  // 0 = success, 1 = failure
25488}
25489
25490_ACEOF
25491if ac_fn_c_try_run "$LINENO"; then :
25492
25493$as_echo "#define HAVE_GSS_SPNEGO /**/" >>confdefs.h
25494
25495        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25496$as_echo "yes" >&6; }
25497else
25498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25499$as_echo "no" >&6; }
25500fi
25501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25502  conftest.$ac_objext conftest.beam conftest.$ac_ext
25503fi
25504
25505  LIBS="$cmu_save_LIBS"
25506
25507else
25508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
25509$as_echo "disabled" >&6; }
25510fi
25511
25512
25513
25514
25515
25516# Check whether --with-sasl was given.
25517if test "${with_sasl+set}" = set; then :
25518  withval=$with_sasl; with_sasl="$withval"
25519else
25520  with_sasl="yes"
25521fi
25522
25523
25524
25525# Check whether --with-staticsasl was given.
25526if test "${with_staticsasl+set}" = set; then :
25527  withval=$with_staticsasl; with_staticsasl="$withval";
25528             if test $with_staticsasl != "no"; then
25529               using_static_sasl="static"
25530             fi
25531else
25532  with_staticsasl="no"; using_static_sasl="no"
25533fi
25534
25535
25536SASLFLAGS=""
25537LIB_SASL=""
25538
25539cmu_saved_CPPFLAGS=$CPPFLAGS
25540cmu_saved_LDFLAGS=$LDFLAGS
25541cmu_saved_LIBS=$LIBS
25542
25543if test ${with_staticsasl} != "no"; then
25544  if test -d ${with_staticsasl}; then
25545    if test -d ${with_staticsasl}/lib64 ; then
25546      ac_cv_sasl_where_lib=${with_staticsasl}/lib64
25547    else
25548      ac_cv_sasl_where_lib=${with_staticsasl}/lib
25549    fi
25550    ac_cv_sasl_where_lib=${with_staticsasl}/lib
25551    ac_cv_sasl_where_inc=${with_staticsasl}/include
25552
25553    SASLFLAGS="-I$ac_cv_sasl_where_inc"
25554    LIB_SASL="-L$ac_cv_sasl_where_lib"
25555    CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}"
25556    LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}"
25557  else
25558    with_staticsasl="/usr"
25559  fi
25560
25561  ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
25562if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
25563  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
25564if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
25565  for i42 in lib64 lib; do
25566                                      if test -r ${with_staticsasl}/$i42/libsasl2.a; then
25567                                        ac_cv_found_sasl=yes
25568                                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libsasl" >&5
25569$as_echo_n "checking for static libsasl... " >&6; }
25570                                        LIB_SASL="$LIB_SASL ${with_staticsasl}/$i42/libsasl2.a"
25571                                      fi
25572                                    done
25573                                    ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
25574if test "x$ac_cv_func_dlopen" = xyes; then :
25575
25576else
25577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25578$as_echo_n "checking for dlopen in -ldl... " >&6; }
25579if ${ac_cv_lib_dl_dlopen+:} false; then :
25580  $as_echo_n "(cached) " >&6
25581else
25582  ac_check_lib_save_LIBS=$LIBS
25583LIBS="-ldl  $LIBS"
25584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25585/* end confdefs.h.  */
25586
25587/* Override any GCC internal prototype to avoid an error.
25588   Use char because int might match the return type of a GCC
25589   builtin and then its argument prototype would still apply.  */
25590#ifdef __cplusplus
25591extern "C"
25592#endif
25593char dlopen ();
25594int
25595main ()
25596{
25597return dlopen ();
25598  ;
25599  return 0;
25600}
25601_ACEOF
25602if ac_fn_c_try_link "$LINENO"; then :
25603  ac_cv_lib_dl_dlopen=yes
25604else
25605  ac_cv_lib_dl_dlopen=no
25606fi
25607rm -f core conftest.err conftest.$ac_objext \
25608    conftest$ac_exeext conftest.$ac_ext
25609LIBS=$ac_check_lib_save_LIBS
25610fi
25611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25612$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25613if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
25614  LIB_SASL+="$LIB_SASL -ldl"
25615fi
25616
25617fi
25618
25619                                    if test ! "$ac_cv_found_sasl" = "yes"; then
25620                                      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libsasl" >&5
25621$as_echo_n "checking for static libsasl... " >&6; }
25622                                      as_fn_error $? "Could not find ${with_staticsasl}/lib*/libsasl2.a" "$LINENO" 5
25623                                    fi
25624fi
25625
25626
25627fi
25628
25629
25630
25631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25632$as_echo "found" >&6; }
25633
25634  if test "x$SASL_GSSAPI_LIBS_SET" = "x"; then
25635    LIB_SASL="$LIB_SASL $GSSAPIBASE_STATIC_LIBS"
25636  else
25637    SASL_GSSAPI_LIBS_SET=""
25638    cmu_saved_LIBS="$GSSAPIBASE_STATIC_LIBS $cmu_saved_LIBS"
25639  fi
25640fi
25641
25642if test -d ${with_sasl}; then
25643  ac_cv_sasl_where_lib=${with_sasl}/lib
25644  ac_cv_sasl_where_inc=${with_sasl}/include
25645
25646  DYNSASLFLAGS="-I$ac_cv_sasl_where_inc"
25647  if test "$ac_cv_sasl_where_lib" != ""; then
25648
25649  # this is CMU ADD LIBPATH TO
25650  if test "$andrew_cv_runpath_switch" = "none" ; then
25651        LIB_DYN_SASL="-L$ac_cv_sasl_where_lib ${LIB_DYN_SASL}"
25652  else
25653        LIB_DYN_SASL="-L$ac_cv_sasl_where_lib ${LIB_DYN_SASL} $andrew_cv_runpath_switch$ac_cv_sasl_where_lib"
25654  fi
25655
25656  fi
25657  LIB_DYN_SASL="$LIB_DYN_SASL -lsasl2"
25658  CPPFLAGS="${cmu_saved_CPPFLAGS} -I${ac_cv_sasl_where_inc}"
25659  LDFLAGS="${cmu_saved_LDFLAGS} -L${ac_cv_sasl_where_lib}"
25660fi
25661
25662# be sure to check for a SASLv2 specific function
25663ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
25664if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
25665  ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default"
25666if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then :
25667  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5
25668$as_echo_n "checking for prop_get in -lsasl2... " >&6; }
25669if ${ac_cv_lib_sasl2_prop_get+:} false; then :
25670  $as_echo_n "(cached) " >&6
25671else
25672  ac_check_lib_save_LIBS=$LIBS
25673LIBS="-lsasl2  $LIBS"
25674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675/* end confdefs.h.  */
25676
25677/* Override any GCC internal prototype to avoid an error.
25678   Use char because int might match the return type of a GCC
25679   builtin and then its argument prototype would still apply.  */
25680#ifdef __cplusplus
25681extern "C"
25682#endif
25683char prop_get ();
25684int
25685main ()
25686{
25687return prop_get ();
25688  ;
25689  return 0;
25690}
25691_ACEOF
25692if ac_fn_c_try_link "$LINENO"; then :
25693  ac_cv_lib_sasl2_prop_get=yes
25694else
25695  ac_cv_lib_sasl2_prop_get=no
25696fi
25697rm -f core conftest.err conftest.$ac_objext \
25698    conftest$ac_exeext conftest.$ac_ext
25699LIBS=$ac_check_lib_save_LIBS
25700fi
25701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5
25702$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; }
25703if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then :
25704  ac_cv_found_sasl=yes
25705else
25706  ac_cv_found_sasl=no
25707fi
25708
25709else
25710  ac_cv_found_sasl=no
25711fi
25712
25713
25714else
25715  ac_cv_found_sasl=no
25716fi
25717
25718
25719
25720if test "$ac_cv_found_sasl" = "yes"; then
25721  if test "$ac_cv_sasl_where_lib" != ""; then
25722
25723  # this is CMU ADD LIBPATH TO
25724  if test "$andrew_cv_runpath_switch" = "none" ; then
25725        DYNLIB_SASL="-L$ac_cv_sasl_where_lib ${DYNLIB_SASL}"
25726  else
25727        DYNLIB_SASL="-L$ac_cv_sasl_where_lib ${DYNLIB_SASL} $andrew_cv_runpath_switch$ac_cv_sasl_where_lib"
25728  fi
25729
25730  fi
25731  DYNLIB_SASL="$DYNLIB_SASL -lsasl2"
25732  if test "$using_static_sasl" != "static"; then
25733    LIB_SASL=$DYNLIB_SASL
25734    SASLFLAGS=$DYNSASLFLAGS
25735  fi
25736else
25737  DYNLIB_SASL=""
25738  DYNSASLFLAGS=""
25739  using_static_sasl="staticonly"
25740fi
25741
25742if test "x$SASL_GSSAPI_LIBS_SET" != "x"; then
25743  SASL_GSSAPI_LIBS_SET=""
25744  cmu_saved_LIBS="$GSSAPIBASE_LIBS $cmu_saved_LIBS"
25745fi
25746
25747LIBS="$cmu_saved_LIBS"
25748LDFLAGS="$cmu_saved_LDFLAGS"
25749CPPFLAGS="$cmu_saved_CPPFLAGS"
25750
25751
25752
25753
25754
25755
25756
25757if test "$ac_cv_found_sasl" != "yes"; then
25758  as_fn_error $? "Cannot continue without libsasl2.
25759Get it from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/." "$LINENO" 5
25760fi
25761
25762
25763cmu_saved_CPPFLAGS=$CPPFLAGS
25764CPPFLAGS="$CPPFLAGS $SASLFLAGS"
25765
25766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25767/* end confdefs.h.  */
25768
25769#include <sasl/sasl.h>
25770
25771#ifndef SASL_VERSION_MAJOR
25772#error SASL_VERSION_MAJOR not defined
25773#endif
25774#ifndef SASL_VERSION_MINOR
25775#error SASL_VERSION_MINOR not defined
25776#endif
25777#ifndef SASL_VERSION_STEP
25778#error SASL_VERSION_STEP not defined
25779#endif
25780
25781#if SASL_VERSION_MAJOR < 2 || SASL_VERSION_MINOR < 1 || SASL_VERSION_STEP < 7
25782#error SASL version is less than 2.1.7
25783#endif
25784
25785_ACEOF
25786if ac_fn_c_try_cpp "$LINENO"; then :
25787
25788else
25789  as_fn_error $? "Incorrect SASL headers found.  This package requires SASL 2.1.7 or newer." "$LINENO" 5
25790fi
25791rm -f conftest.err conftest.i conftest.$ac_ext
25792
25793CPPFLAGS=$cmu_saved_CPPFLAGS
25794
25795
25796
25797cmu_saved_LDFLAGS=$LDFLAGS
25798
25799LDFLAGS="$LDFLAGS $LIB_SASL"
25800
25801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_checkapop in -lsasl2" >&5
25802$as_echo_n "checking for sasl_checkapop in -lsasl2... " >&6; }
25803if ${ac_cv_lib_sasl2_sasl_checkapop+:} false; then :
25804  $as_echo_n "(cached) " >&6
25805else
25806  ac_check_lib_save_LIBS=$LIBS
25807LIBS="-lsasl2  $LIBS"
25808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25809/* end confdefs.h.  */
25810
25811/* Override any GCC internal prototype to avoid an error.
25812   Use char because int might match the return type of a GCC
25813   builtin and then its argument prototype would still apply.  */
25814#ifdef __cplusplus
25815extern "C"
25816#endif
25817char sasl_checkapop ();
25818int
25819main ()
25820{
25821return sasl_checkapop ();
25822  ;
25823  return 0;
25824}
25825_ACEOF
25826if ac_fn_c_try_link "$LINENO"; then :
25827  ac_cv_lib_sasl2_sasl_checkapop=yes
25828else
25829  ac_cv_lib_sasl2_sasl_checkapop=no
25830fi
25831rm -f core conftest.err conftest.$ac_objext \
25832    conftest$ac_exeext conftest.$ac_ext
25833LIBS=$ac_check_lib_save_LIBS
25834fi
25835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_checkapop" >&5
25836$as_echo "$ac_cv_lib_sasl2_sasl_checkapop" >&6; }
25837if test "x$ac_cv_lib_sasl2_sasl_checkapop" = xyes; then :
25838
25839$as_echo "#define HAVE_APOP /**/" >>confdefs.h
25840
25841else
25842  as_fn_error $? "libsasl2 without working sasl_checkapop.  Cannot continue." "$LINENO" 5
25843fi
25844
25845
25846LDFLAGS=$cmu_saved_LDFLAGS
25847
25848
25849
25850# Check whether --with-perl was given.
25851if test "${with_perl+set}" = set; then :
25852  withval=$with_perl; with_perl="$withval"
25853else
25854  with_perl="perl"
25855fi
25856
25857
25858if test "${with_perl}" = yes; then
25859    with_perl="perl"
25860fi
25861if test "${with_perl}" != no; then
25862    if test ${using_static_sasl} = "staticonly"; then
25863        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot compile perl utilities using static libsasl" >&5
25864$as_echo "$as_me: WARNING: Cannot compile perl utilities using static libsasl" >&2;}
25865        with_perl="no"
25866    else
25867        for ac_prog in ${with_perl} perl
25868do
25869  # Extract the first word of "$ac_prog", so it can be a program name with args.
25870set dummy $ac_prog; ac_word=$2
25871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25872$as_echo_n "checking for $ac_word... " >&6; }
25873if ${ac_cv_prog_PERL+:} false; then :
25874  $as_echo_n "(cached) " >&6
25875else
25876  if test -n "$PERL"; then
25877  ac_cv_prog_PERL="$PERL" # Let the user override the test.
25878else
25879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25880for as_dir in $PATH
25881do
25882  IFS=$as_save_IFS
25883  test -z "$as_dir" && as_dir=.
25884    for ac_exec_ext in '' $ac_executable_extensions; do
25885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25886    ac_cv_prog_PERL="$ac_prog"
25887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25888    break 2
25889  fi
25890done
25891  done
25892IFS=$as_save_IFS
25893
25894fi
25895fi
25896PERL=$ac_cv_prog_PERL
25897if test -n "$PERL"; then
25898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
25899$as_echo "$PERL" >&6; }
25900else
25901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25902$as_echo "no" >&6; }
25903fi
25904
25905
25906  test -n "$PERL" && break
25907done
25908test -n "$PERL" || PERL="with_perl=notfound"
25909
25910    fi
25911fi
25912 if test "$with_perl" != "no" -a "$with_perl" != "notfound"; then
25913  PERL_TRUE=
25914  PERL_FALSE='#'
25915else
25916  PERL_TRUE='#'
25917  PERL_FALSE=
25918fi
25919
25920srctoolsdir=`cd ${srcdir};pwd`/tools
25921if test "$with_perl" = "notfound"; then
25922    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Perl not found: Administrative tools will not be available" >&5
25923$as_echo "$as_me: WARNING: Perl not found: Administrative tools will not be available" >&2;}
25924elif test "${with_perl}" != "no"; then
25925    PERL="${with_perl}"
25926
25927    ac_config_links="$ac_config_links perl/sieve/managesieve/managesieve.pm:perl/sieve/managesieve/managesieve.pm"
25928
25929    ac_config_files="$ac_config_files perl/sieve/managesieve/MANIFEST"
25930
25931    ac_config_links="$ac_config_links perl/imap/Cyrus/HeaderFile.pm:perl/imap/Cyrus/HeaderFile.pm"
25932
25933    ac_config_links="$ac_config_links perl/imap/Cyrus/CacheFile.pm:perl/imap/Cyrus/CacheFile.pm"
25934
25935    ac_config_links="$ac_config_links perl/imap/Cyrus/IndexFile.pm:perl/imap/Cyrus/IndexFile.pm"
25936
25937    ac_config_links="$ac_config_links perl/imap/Cyrus/DList.pm:perl/imap/Cyrus/DList.pm"
25938
25939    ac_config_links="$ac_config_links perl/imap/Cyrus/ImapClone.pm:perl/imap/Cyrus/ImapClone.pm"
25940
25941    ac_config_links="$ac_config_links perl/imap/Cyrus/SyncProto.pm:perl/imap/Cyrus/SyncProto.pm"
25942
25943    ac_config_links="$ac_config_links perl/imap/IMAP/Shell.pm:perl/imap/IMAP/Shell.pm"
25944
25945    ac_config_links="$ac_config_links perl/imap/IMAP/IMSP.pm:perl/imap/IMAP/IMSP.pm"
25946
25947    ac_config_links="$ac_config_links perl/imap/IMAP/Admin.pm:perl/imap/IMAP/Admin.pm"
25948
25949    ac_config_links="$ac_config_links perl/imap/IMAP.pm:perl/imap/IMAP.pm"
25950
25951    ac_config_files="$ac_config_files perl/imap/MANIFEST"
25952
25953    ac_config_links="$ac_config_links perl/annotator/Message.pm:perl/annotator/Message.pm"
25954
25955    ac_config_links="$ac_config_links perl/annotator/AnnotateInlinedCIDs.pm:perl/annotator/AnnotateInlinedCIDs.pm"
25956
25957    ac_config_links="$ac_config_links perl/annotator/Daemon.pm:perl/annotator/Daemon.pm"
25958
25959    ac_config_files="$ac_config_files perl/annotator/MANIFEST"
25960
25961
25962    case "${target_os}" in
25963        linux*|netbsd*|freebsd*|dragonfly*)
25964            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl cccdlflags needed on \"${target_os}\"" >&5
25965$as_echo_n "checking for perl cccdlflags needed on \"${target_os}\"... " >&6; }
25966            eval `${PERL} -V:cccdlflags`
25967            PERL_CCCDLFLAGS="$cccdlflags"
25968
25969            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_CCCDLFLAGS" >&5
25970$as_echo "$PERL_CCCDLFLAGS" >&6; }
25971            ;;
25972        *)
25973            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping check for perl cccdlflags on \"${target_os}\"" >&5
25974$as_echo "$as_me: WARNING: skipping check for perl cccdlflags on \"${target_os}\"" >&2;}
25975    esac
25976
25977    PERL_PREINSTALL="${PERL} ${srctoolsdir}/fixsearchpath.pl ${prefix} ${bindir}"
25978
25979fi
25980
25981
25982# Check whether --with-lib-subdir was given.
25983if test "${with_lib_subdir+set}" = set; then :
25984  withval=$with_lib_subdir;
25985fi
25986
25987# The cast to long int works around a bug in the HP C Compiler
25988# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25989# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25990# This bug is HP SR number 8606223364.
25991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
25992$as_echo_n "checking size of long... " >&6; }
25993if ${ac_cv_sizeof_long+:} false; then :
25994  $as_echo_n "(cached) " >&6
25995else
25996  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
25997
25998else
25999  if test "$ac_cv_type_long" = yes; then
26000     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26002as_fn_error 77 "cannot compute sizeof (long)
26003See \`config.log' for more details" "$LINENO" 5; }
26004   else
26005     ac_cv_sizeof_long=0
26006   fi
26007fi
26008
26009fi
26010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26011$as_echo "$ac_cv_sizeof_long" >&6; }
26012
26013
26014
26015cat >>confdefs.h <<_ACEOF
26016#define SIZEOF_LONG $ac_cv_sizeof_long
26017_ACEOF
26018
26019
26020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
26021$as_echo_n "checking what directory libraries are found in... " >&6; }
26022if ${ac_cv_cmu_lib_subdir+:} false; then :
26023  $as_echo_n "(cached) " >&6
26024else
26025  test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
26026test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
26027if test "X$with_lib_subdir" = "X" ; then
26028  ac_cv_cmu_lib_subdir=lib
26029  if test $ac_cv_sizeof_long -eq 4 ; then
26030    test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
26031  fi
26032  if test $ac_cv_sizeof_long -eq 8 ; then
26033    test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
26034  fi
26035else
26036  ac_cv_cmu_lib_subdir=$with_lib_subdir
26037fi
26038fi
26039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
26040$as_echo "$ac_cv_cmu_lib_subdir" >&6; }
26041CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
26042
26043
26044
26045
26046
26047
26048# Check whether --with-libwrap was given.
26049if test "${with_libwrap+set}" = set; then :
26050  withval=$with_libwrap; with_libwrap=$withval
26051else
26052  with_libwrap=yes
26053fi
26054
26055  if test "$with_libwrap" != no; then
26056    if test -d "$with_libwrap"; then
26057      CPPFLAGS="$CPPFLAGS -I${with_libwrap}/include"
26058      LDFLAGS="$LDFLAGS -L${with_libwrap}/$CMU_LIB_SUBDIR"
26059    fi
26060    cmu_save_LIBS="$LIBS"
26061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for request_init in -lwrap" >&5
26062$as_echo_n "checking for request_init in -lwrap... " >&6; }
26063if ${ac_cv_lib_wrap_request_init+:} false; then :
26064  $as_echo_n "(cached) " >&6
26065else
26066  ac_check_lib_save_LIBS=$LIBS
26067LIBS="-lwrap ${LIB_SOCKET} $LIBS"
26068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26069/* end confdefs.h.  */
26070
26071/* Override any GCC internal prototype to avoid an error.
26072   Use char because int might match the return type of a GCC
26073   builtin and then its argument prototype would still apply.  */
26074#ifdef __cplusplus
26075extern "C"
26076#endif
26077char request_init ();
26078int
26079main ()
26080{
26081return request_init ();
26082  ;
26083  return 0;
26084}
26085_ACEOF
26086if ac_fn_c_try_link "$LINENO"; then :
26087  ac_cv_lib_wrap_request_init=yes
26088else
26089  ac_cv_lib_wrap_request_init=no
26090fi
26091rm -f core conftest.err conftest.$ac_objext \
26092    conftest$ac_exeext conftest.$ac_ext
26093LIBS=$ac_check_lib_save_LIBS
26094fi
26095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_request_init" >&5
26096$as_echo "$ac_cv_lib_wrap_request_init" >&6; }
26097if test "x$ac_cv_lib_wrap_request_init" = xyes; then :
26098
26099                 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
26100if test "x$ac_cv_header_tcpd_h" = xyes; then :
26101
26102else
26103  with_libwrap=no
26104fi
26105
26106
26107else
26108  with_libwrap=no
26109fi
26110
26111    LIBS="$cmu_save_LIBS"
26112  fi
26113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking libwrap support" >&5
26114$as_echo_n "checking libwrap support... " >&6; }
26115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libwrap" >&5
26116$as_echo "$with_libwrap" >&6; }
26117  LIB_WRAP=""
26118  if test "$with_libwrap" != no; then
26119
26120$as_echo "#define HAVE_LIBWRAP /**/" >>confdefs.h
26121
26122    LIB_WRAP="-lwrap"
26123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
26124$as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
26125if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
26126  $as_echo_n "(cached) " >&6
26127else
26128  ac_check_lib_save_LIBS=$LIBS
26129LIBS="-lnsl  $LIBS"
26130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26131/* end confdefs.h.  */
26132
26133/* Override any GCC internal prototype to avoid an error.
26134   Use char because int might match the return type of a GCC
26135   builtin and then its argument prototype would still apply.  */
26136#ifdef __cplusplus
26137extern "C"
26138#endif
26139char yp_get_default_domain ();
26140int
26141main ()
26142{
26143return yp_get_default_domain ();
26144  ;
26145  return 0;
26146}
26147_ACEOF
26148if ac_fn_c_try_link "$LINENO"; then :
26149  ac_cv_lib_nsl_yp_get_default_domain=yes
26150else
26151  ac_cv_lib_nsl_yp_get_default_domain=no
26152fi
26153rm -f core conftest.err conftest.$ac_objext \
26154    conftest$ac_exeext conftest.$ac_ext
26155LIBS=$ac_check_lib_save_LIBS
26156fi
26157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
26158$as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
26159if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
26160  LIB_WRAP="${LIB_WRAP} -lnsl"
26161fi
26162
26163  fi
26164
26165
26166
26167
26168
26169
26170# Check whether --with-snmp was given.
26171if test "${with_snmp+set}" = set; then :
26172  withval=$with_snmp; with_snmp=$withval
26173else
26174  with_snmp=yes
26175fi
26176
26177
26178
26179# Check whether --with-ucdsnmp was given.
26180if test "${with_ucdsnmp+set}" = set; then :
26181  withval=$with_ucdsnmp; with_snmp=$withval
26182fi
26183
26184
26185if test "$with_snmp" != "no"; then
26186
26187        if test "$with_snmp" = "yes"; then
26188    # Extract the first word of "net-snmp-config", so it can be a program name with args.
26189set dummy net-snmp-config; ac_word=$2
26190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26191$as_echo_n "checking for $ac_word... " >&6; }
26192if ${ac_cv_path_SNMP_CONFIG+:} false; then :
26193  $as_echo_n "(cached) " >&6
26194else
26195  case $SNMP_CONFIG in
26196  [\\/]* | ?:[\\/]*)
26197  ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path.
26198  ;;
26199  *)
26200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26201as_dummy="/usr/local/bin:$PATH"
26202for as_dir in $as_dummy
26203do
26204  IFS=$as_save_IFS
26205  test -z "$as_dir" && as_dir=.
26206    for ac_exec_ext in '' $ac_executable_extensions; do
26207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26208    ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26210    break 2
26211  fi
26212done
26213  done
26214IFS=$as_save_IFS
26215
26216  ;;
26217esac
26218fi
26219SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG
26220if test -n "$SNMP_CONFIG"; then
26221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5
26222$as_echo "$SNMP_CONFIG" >&6; }
26223else
26224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26225$as_echo "no" >&6; }
26226fi
26227
26228
26229  else
26230    SNMP_CONFIG="$with_snmp/bin/net-snmp-config"
26231  fi
26232
26233  if test -x "$SNMP_CONFIG"; then
26234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking NET SNMP libraries" >&5
26235$as_echo_n "checking NET SNMP libraries... " >&6; }
26236
26237    SNMP_LIBS=`$SNMP_CONFIG --agent-libs`
26238    SNMP_PREFIX=`$SNMP_CONFIG --prefix`
26239
26240    if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
26241      CPPFLAGS="$CPPFLAGS -I${SNMP_PREFIX}/include"
26242      LIB_UCDSNMP=$SNMP_LIBS
26243
26244$as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
26245
26246
26247      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26248$as_echo "yes" >&6; }
26249      for ac_header in net-snmp/agent/agent_module_config.h
26250do :
26251  ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/agent/agent_module_config.h" "ac_cv_header_net_snmp_agent_agent_module_config_h" "$ac_includes_default"
26252if test "x$ac_cv_header_net_snmp_agent_agent_module_config_h" = xyes; then :
26253  cat >>confdefs.h <<_ACEOF
26254#define HAVE_NET_SNMP_AGENT_AGENT_MODULE_CONFIG_H 1
26255_ACEOF
26256
26257fi
26258
26259done
26260
26261    else
26262      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26263$as_echo "no" >&6; }
26264      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the required paths. Please check your net-snmp installation." >&5
26265$as_echo "$as_me: WARNING: Could not find the required paths. Please check your net-snmp installation." >&2;}
26266    fi
26267  else
26268                if test "$with_snmp" != no; then
26269      if test -d "$with_snmp"; then
26270        CPPFLAGS="$CPPFLAGS -I${with_snmp}/include"
26271        LDFLAGS="$LDFLAGS -L${with_snmp}/$CMU_LIB_SUBDIR"
26272      fi
26273      cmu_save_LIBS="$LIBS"
26274      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sprint_objid in -lsnmp" >&5
26275$as_echo_n "checking for sprint_objid in -lsnmp... " >&6; }
26276if ${ac_cv_lib_snmp_sprint_objid+:} false; then :
26277  $as_echo_n "(cached) " >&6
26278else
26279  ac_check_lib_save_LIBS=$LIBS
26280LIBS="-lsnmp ${LIB_SOCKET} $LIBS"
26281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282/* end confdefs.h.  */
26283
26284/* Override any GCC internal prototype to avoid an error.
26285   Use char because int might match the return type of a GCC
26286   builtin and then its argument prototype would still apply.  */
26287#ifdef __cplusplus
26288extern "C"
26289#endif
26290char sprint_objid ();
26291int
26292main ()
26293{
26294return sprint_objid ();
26295  ;
26296  return 0;
26297}
26298_ACEOF
26299if ac_fn_c_try_link "$LINENO"; then :
26300  ac_cv_lib_snmp_sprint_objid=yes
26301else
26302  ac_cv_lib_snmp_sprint_objid=no
26303fi
26304rm -f core conftest.err conftest.$ac_objext \
26305    conftest$ac_exeext conftest.$ac_ext
26306LIBS=$ac_check_lib_save_LIBS
26307fi
26308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snmp_sprint_objid" >&5
26309$as_echo "$ac_cv_lib_snmp_sprint_objid" >&6; }
26310if test "x$ac_cv_lib_snmp_sprint_objid" = xyes; then :
26311
26312                 ac_fn_c_check_header_mongrel "$LINENO" "ucd-snmp/version.h" "ac_cv_header_ucd_snmp_version_h" "$ac_includes_default"
26313if test "x$ac_cv_header_ucd_snmp_version_h" = xyes; then :
26314
26315else
26316  with_snmp=no
26317fi
26318
26319
26320else
26321  with_snmp=no
26322fi
26323
26324      LIBS="$cmu_save_LIBS"
26325    fi
26326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking UCD SNMP libraries" >&5
26327$as_echo_n "checking UCD SNMP libraries... " >&6; }
26328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_snmp" >&5
26329$as_echo "$with_snmp" >&6; }
26330    LIB_UCDSNMP=""
26331    if test "$with_snmp" != no; then
26332
26333$as_echo "#define HAVE_UCDSNMP 1" >>confdefs.h
26334
26335      LIB_UCDSNMP="-lucdagent -lucdmibs -lsnmp"
26336      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmdbOpen in -lrpm" >&5
26337$as_echo_n "checking for rpmdbOpen in -lrpm... " >&6; }
26338if ${ac_cv_lib_rpm_rpmdbOpen+:} false; then :
26339  $as_echo_n "(cached) " >&6
26340else
26341  ac_check_lib_save_LIBS=$LIBS
26342LIBS="-lrpm -lpopt $LIBS"
26343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26344/* end confdefs.h.  */
26345
26346/* Override any GCC internal prototype to avoid an error.
26347   Use char because int might match the return type of a GCC
26348   builtin and then its argument prototype would still apply.  */
26349#ifdef __cplusplus
26350extern "C"
26351#endif
26352char rpmdbOpen ();
26353int
26354main ()
26355{
26356return rpmdbOpen ();
26357  ;
26358  return 0;
26359}
26360_ACEOF
26361if ac_fn_c_try_link "$LINENO"; then :
26362  ac_cv_lib_rpm_rpmdbOpen=yes
26363else
26364  ac_cv_lib_rpm_rpmdbOpen=no
26365fi
26366rm -f core conftest.err conftest.$ac_objext \
26367    conftest$ac_exeext conftest.$ac_ext
26368LIBS=$ac_check_lib_save_LIBS
26369fi
26370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmdbOpen" >&5
26371$as_echo "$ac_cv_lib_rpm_rpmdbOpen" >&6; }
26372if test "x$ac_cv_lib_rpm_rpmdbOpen" = xyes; then :
26373  LIB_UCDSNMP="${LIB_UCDSNMP} -lrpm -lpopt"
26374fi
26375
26376    fi
26377
26378  fi
26379fi
26380
26381
26382
26383# Figure out what directories we're linking against.
26384# Lots of fun for the whole family.
26385# This probably chokes on anything with spaces in it.
26386# All we want is the list of -L directories, and -L may or may not be
26387# followed by a space.
26388isdir=no
26389libpath=""
26390#echo "debug ldflags: << ${ldflags} >>"
26391#echo "debug default_ldflags: << ${default_ldflags} >>"
26392for flag in ${ldflags} ${default_ldflags}; do
26393  case $flag in
26394    -L)
26395      # it's a split -L option, we'll mark the next option as a dir.
26396      isdir=yes
26397      ;;
26398
26399    -L*)
26400      # attached -L option: split off the directory
26401      larg=`echo $flag | sed -e 's:-L\(..*\):\1:'`
26402      libpath="${libpath} ${larg}"
26403      ;;
26404
26405    *)
26406      if test $isdir = yes ; then
26407        libpath="${libpath} ${flag}"
26408        isdir=no
26409      fi
26410  esac
26411done
26412
26413
26414
26415
26416
26417# Check whether --enable-unit-tests was given.
26418if test "${enable_unit_tests+set}" = set; then :
26419  enableval=$enable_unit_tests;
26420fi
26421
26422
26423if test "$enable_unit_tests" = "yes" ; then
26424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
26425$as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; }
26426if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then :
26427  $as_echo_n "(cached) " >&6
26428else
26429  ac_check_lib_save_LIBS=$LIBS
26430LIBS="-lcunit  $LIBS"
26431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26432/* end confdefs.h.  */
26433
26434/* Override any GCC internal prototype to avoid an error.
26435   Use char because int might match the return type of a GCC
26436   builtin and then its argument prototype would still apply.  */
26437#ifdef __cplusplus
26438extern "C"
26439#endif
26440char CU_initialize_registry ();
26441int
26442main ()
26443{
26444return CU_initialize_registry ();
26445  ;
26446  return 0;
26447}
26448_ACEOF
26449if ac_fn_c_try_link "$LINENO"; then :
26450  ac_cv_lib_cunit_CU_initialize_registry=yes
26451else
26452  ac_cv_lib_cunit_CU_initialize_registry=no
26453fi
26454rm -f core conftest.err conftest.$ac_objext \
26455    conftest$ac_exeext conftest.$ac_ext
26456LIBS=$ac_check_lib_save_LIBS
26457fi
26458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
26459$as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
26460if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then :
26461  found_lib=yes
26462else
26463  found_lib=no
26464fi
26465
26466    ac_fn_c_check_header_mongrel "$LINENO" "CUnit/CUnit.h" "ac_cv_header_CUnit_CUnit_h" "$ac_includes_default"
26467if test "x$ac_cv_header_CUnit_CUnit_h" = xyes; then :
26468  found_hdr=yes
26469else
26470  found_hdr=no
26471fi
26472
26473
26474    if test "$found_lib$found_hdr" != "yesyes" ; then
26475        { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling unit tests because the required CUnit library is not installed" >&5
26476$as_echo "$as_me: Disabling unit tests because the required CUnit library is not installed" >&6;}
26477        enable_unit_tests=no
26478    fi
26479    ac_fn_c_check_header_mongrel "$LINENO" "CUnit/Basic.h" "ac_cv_header_CUnit_Basic_h" "$ac_includes_default"
26480if test "x$ac_cv_header_CUnit_Basic_h" = xyes; then :
26481
26482# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
26483# -------------------------------------------
26484# Tests whether TYPE exists after having included INCLUDES, setting cache
26485# variable VAR accordingly.
26486ac_fn_c_check_type ()
26487{
26488  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
26490$as_echo_n "checking for $2... " >&6; }
26491if eval \${$3+:} false; then :
26492  $as_echo_n "(cached) " >&6
26493else
26494  eval "$3=no"
26495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26496/* end confdefs.h.  */
26497$4
26498int
26499main ()
26500{
26501if (sizeof ($2))
26502	 return 0;
26503  ;
26504  return 0;
26505}
26506_ACEOF
26507if ac_fn_c_try_compile "$LINENO"; then :
26508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26509/* end confdefs.h.  */
26510$4
26511int
26512main ()
26513{
26514if (sizeof (($2)))
26515	    return 0;
26516  ;
26517  return 0;
26518}
26519_ACEOF
26520if ac_fn_c_try_compile "$LINENO"; then :
26521
26522else
26523  eval "$3=yes"
26524fi
26525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26526fi
26527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528fi
26529eval ac_res=\$$3
26530	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26531$as_echo "$ac_res" >&6; }
26532  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
26533
26534} # ac_fn_c_check_type
26535ac_fn_c_check_type "$LINENO" "CU_SetUpFunc" "ac_cv_type_CU_SetUpFunc" "#include <CUnit/Basic.h>
26536"
26537if test "x$ac_cv_type_CU_SetUpFunc" = xyes; then :
26538
26539$as_echo "#define HAVE_CU_SETUPFUNC /**/" >>confdefs.h
26540
26541fi
26542
26543
26544fi
26545
26546
26547fi
26548if test "$enable_unit_tests" = "yes" ; then
26549                                        for ac_header in valgrind/valgrind.h
26550do :
26551  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
26552if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
26553  cat >>confdefs.h <<_ACEOF
26554#define HAVE_VALGRIND_VALGRIND_H 1
26555_ACEOF
26556
26557fi
26558
26559done
26560
26561
26562                        ac_config_links="$ac_config_links cunit/cacert.pem:cunit/cacert.pem"
26563
26564    ac_config_links="$ac_config_links cunit/cert.pem:cunit/cert.pem"
26565
26566    ac_config_links="$ac_config_links cunit/key.pem:cunit/key.pem"
26567
26568
26569    USE_MAINTAINER_MODE=yes
26570fi
26571
26572 if test "$enable_unit_tests" = "yes"; then
26573  CUNIT_TRUE=
26574  CUNIT_FALSE='#'
26575else
26576  CUNIT_TRUE='#'
26577  CUNIT_FALSE=
26578fi
26579
26580
26581if test "x$use_sqlite" = xyes; then
26582  if test "x$HAVE_SQLITE" = x1; then
26583    if test "x$with_sqlite_lib" != xnone; then
26584
26585  # this is CMU ADD LIBPATH
26586  if test "$andrew_cv_runpath_switch" = "none" ; then
26587        LDFLAGS="-L$with_sqlite_lib ${LDFLAGS}"
26588  else
26589        LDFLAGS="-L$with_sqlite_lib $andrew_cv_runpath_switch$with_sqlite_lib ${LDFLAGS}"
26590  fi
26591
26592    fi
26593
26594    LIBS="${LIBS} ${SQLITE_LIBADD}"
26595    CPPFLAGS="${SQLITE_INCADD} ${CPPFLAGS}"
26596
26597$as_echo "#define HAVE_SQLITE /**/" >>confdefs.h
26598
26599
26600  else
26601    as_fn_error $? "SQLite required but not found" "$LINENO" 5
26602  fi
26603fi
26604 if test "x$use_sqlite" = xyes; then
26605  USE_SQLITE_TRUE=
26606  USE_SQLITE_FALSE='#'
26607else
26608  USE_SQLITE_TRUE='#'
26609  USE_SQLITE_FALSE=
26610fi
26611
26612
26613
26614
26615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support for SSE4.2 instruction" >&5
26616$as_echo_n "checking for compiler support for SSE4.2 instruction... " >&6; }
26617if ${cyrus_cv_sse42+:} false; then :
26618  $as_echo_n "(cached) " >&6
26619else
26620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26621/* end confdefs.h.  */
26622
26623    #include <stdint.h>
26624
26625int
26626main ()
26627{
26628
26629    uint64_t a = 0, b = 1;
26630    __asm__("crc32q\t" "(%1), %0"
26631            : "=r"(b)
26632            : "r"(b), "0"(a));
26633    return b;
26634
26635  ;
26636  return 0;
26637}
26638_ACEOF
26639if ac_fn_c_try_compile "$LINENO"; then :
26640  cyrus_cv_sse42=yes
26641else
26642  cyrus_cv_sse42=no
26643fi
26644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645fi
26646
26647if test "$cyrus_cv_sse42" = "yes" ; then
26648
26649$as_echo "#define HAVE_SSE42 1" >>confdefs.h
26650
26651fi
26652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_cv_sse42" >&5
26653$as_echo "$cyrus_cv_sse42" >&6; }
26654
26655
26656
26657# Check whether --with-sphinx-build was given.
26658if test "${with_sphinx_build+set}" = set; then :
26659  withval=$with_sphinx_build; with_sphinx_build=$withval
26660else
26661  with_sphinx_build=yes
26662fi
26663
26664case $with_sphinx_build in #(
26665  yes) :
26666    # Extract the first word of "sphinx-build", so it can be a program name with args.
26667set dummy sphinx-build; ac_word=$2
26668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26669$as_echo_n "checking for $ac_word... " >&6; }
26670if ${ac_cv_path_SPHINX_BUILD+:} false; then :
26671  $as_echo_n "(cached) " >&6
26672else
26673  case $SPHINX_BUILD in
26674  [\\/]* | ?:[\\/]*)
26675  ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
26676  ;;
26677  *)
26678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26679for as_dir in $PATH
26680do
26681  IFS=$as_save_IFS
26682  test -z "$as_dir" && as_dir=.
26683    for ac_exec_ext in '' $ac_executable_extensions; do
26684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26685    ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
26686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26687    break 2
26688  fi
26689done
26690  done
26691IFS=$as_save_IFS
26692
26693  ;;
26694esac
26695fi
26696SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
26697if test -n "$SPHINX_BUILD"; then
26698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
26699$as_echo "$SPHINX_BUILD" >&6; }
26700else
26701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26702$as_echo "no" >&6; }
26703fi
26704
26705 ;; #(
26706  no) :
26707    SPHINX_BUILD='' ;; #(
26708  *) :
26709    # Extract the first word of "sphinx-build", so it can be a program name with args.
26710set dummy sphinx-build; ac_word=$2
26711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26712$as_echo_n "checking for $ac_word... " >&6; }
26713if ${ac_cv_path_SPHINX_BUILD+:} false; then :
26714  $as_echo_n "(cached) " >&6
26715else
26716  case $SPHINX_BUILD in
26717  [\\/]* | ?:[\\/]*)
26718  ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
26719  ;;
26720  *)
26721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26722for as_dir in $with_sphinx_build
26723do
26724  IFS=$as_save_IFS
26725  test -z "$as_dir" && as_dir=.
26726    for ac_exec_ext in '' $ac_executable_extensions; do
26727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26728    ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
26729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26730    break 2
26731  fi
26732done
26733  done
26734IFS=$as_save_IFS
26735
26736  ;;
26737esac
26738fi
26739SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
26740if test -n "$SPHINX_BUILD"; then
26741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
26742$as_echo "$SPHINX_BUILD" >&6; }
26743else
26744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26745$as_echo "no" >&6; }
26746fi
26747
26748 ;; #(
26749  *) :
26750     ;;
26751esac
26752if test -z "$SPHINX_BUILD"; then :
26753  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No sphinx-build, won't be able to regenerate docs" >&5
26754$as_echo "$as_me: WARNING: No sphinx-build, won't be able to regenerate docs" >&2;}
26755fi
26756
26757
26758
26759
26760
26761
26762
26763# Make sure we have perl
26764if test -z "$PERL"; then
26765# Extract the first word of "perl", so it can be a program name with args.
26766set dummy perl; ac_word=$2
26767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26768$as_echo_n "checking for $ac_word... " >&6; }
26769if ${ac_cv_prog_PERL+:} false; then :
26770  $as_echo_n "(cached) " >&6
26771else
26772  if test -n "$PERL"; then
26773  ac_cv_prog_PERL="$PERL" # Let the user override the test.
26774else
26775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26776for as_dir in $PATH
26777do
26778  IFS=$as_save_IFS
26779  test -z "$as_dir" && as_dir=.
26780    for ac_exec_ext in '' $ac_executable_extensions; do
26781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26782    ac_cv_prog_PERL="perl"
26783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26784    break 2
26785  fi
26786done
26787  done
26788IFS=$as_save_IFS
26789
26790fi
26791fi
26792PERL=$ac_cv_prog_PERL
26793if test -n "$PERL"; then
26794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
26795$as_echo "$PERL" >&6; }
26796else
26797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26798$as_echo "no" >&6; }
26799fi
26800
26801
26802fi
26803
26804if test "x$PERL" != x; then
26805  ax_perl_modules_failed=0
26806  for ax_perl_module in 'Pod::POM::View::Restructured' ; do
26807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
26808$as_echo_n "checking for perl module $ax_perl_module... " >&6; }
26809
26810    # Would be nice to log result here, but can't rely on autoconf internals
26811    $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
26812    if test $? -ne 0; then
26813      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26814$as_echo "no" >&6; };
26815      ax_perl_modules_failed=1
26816   else
26817      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
26818$as_echo "ok" >&6; };
26819    fi
26820  done
26821
26822  # Run optional shell commands
26823  if test "$ax_perl_modules_failed" = 0; then
26824    :
26825    have_ppvr=yes
26826  else
26827    :
26828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Pod::POM::View::Restructured, won't be able to regenerate docs" >&5
26829$as_echo "$as_me: WARNING: No Pod::POM::View::Restructured, won't be able to regenerate docs" >&2;}
26830  fi
26831else
26832  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
26833$as_echo "$as_me: WARNING: could not find perl" >&2;}
26834fi
26835 if  test -n "$SPHINX_BUILD" -a x"$have_ppvr" = xyes; then
26836  HAVE_SPHINX_BUILD_TRUE=
26837  HAVE_SPHINX_BUILD_FALSE='#'
26838else
26839  HAVE_SPHINX_BUILD_TRUE='#'
26840  HAVE_SPHINX_BUILD_FALSE=
26841fi
26842
26843
26844
26845
26846
26847
26848ac_config_files="$ac_config_files libcyrus_imap.pc libcyrus_min.pc libcyrus.pc libcyrus_sieve.pc Makefile"
26849
26850
26851if test "$with_perl" != "no" -a "$with_perl" != "notfound" ; then
26852
26853ac_config_files="$ac_config_files perl/annotator/Makefile.PL"
26854
26855ac_config_commands="$ac_config_commands perl/annotator/Makefile"
26856
26857
26858
26859ac_config_files="$ac_config_files perl/imap/Makefile.PL"
26860
26861ac_config_commands="$ac_config_commands perl/imap/Makefile"
26862
26863
26864
26865ac_config_files="$ac_config_files perl/sieve/managesieve/Makefile.PL"
26866
26867ac_config_commands="$ac_config_commands perl/sieve/managesieve/Makefile"
26868
26869
26870fi
26871
26872
26873pkg_failed=no
26874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
26875$as_echo_n "checking for ICU... " >&6; }
26876
26877if test -n "$ICU_CFLAGS"; then
26878    pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
26879 elif test -n "$PKG_CONFIG"; then
26880    if test -n "$PKG_CONFIG" && \
26881    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
26882  ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
26883  ac_status=$?
26884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885  test $ac_status = 0; }; then
26886  pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
26887		      test "x$?" != "x0" && pkg_failed=yes
26888else
26889  pkg_failed=yes
26890fi
26891 else
26892    pkg_failed=untried
26893fi
26894if test -n "$ICU_LIBS"; then
26895    pkg_cv_ICU_LIBS="$ICU_LIBS"
26896 elif test -n "$PKG_CONFIG"; then
26897    if test -n "$PKG_CONFIG" && \
26898    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
26899  ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
26900  ac_status=$?
26901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26902  test $ac_status = 0; }; then
26903  pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
26904		      test "x$?" != "x0" && pkg_failed=yes
26905else
26906  pkg_failed=yes
26907fi
26908 else
26909    pkg_failed=untried
26910fi
26911
26912
26913
26914if test $pkg_failed = yes; then
26915   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26916$as_echo "no" >&6; }
26917
26918if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26919        _pkg_short_errors_supported=yes
26920else
26921        _pkg_short_errors_supported=no
26922fi
26923        if test $_pkg_short_errors_supported = yes; then
26924	        ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
26925        else
26926	        ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
26927        fi
26928	# Put the nasty error message in config.log where it belongs
26929	echo "$ICU_PKG_ERRORS" >&5
26930
26931	as_fn_error $? "Package requirements (icu-uc) were not met:
26932
26933$ICU_PKG_ERRORS
26934
26935Consider adjusting the PKG_CONFIG_PATH environment variable if you
26936installed software in a non-standard prefix.
26937
26938Alternatively, you may set the environment variables ICU_CFLAGS
26939and ICU_LIBS to avoid the need to call pkg-config.
26940See the pkg-config man page for more details." "$LINENO" 5
26941elif test $pkg_failed = untried; then
26942     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26943$as_echo "no" >&6; }
26944	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26946as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26947is in your PATH or set the PKG_CONFIG environment variable to the full
26948path to pkg-config.
26949
26950Alternatively, you may set the environment variables ICU_CFLAGS
26951and ICU_LIBS to avoid the need to call pkg-config.
26952See the pkg-config man page for more details.
26953
26954To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26955See \`config.log' for more details" "$LINENO" 5; }
26956else
26957	ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
26958	ICU_LIBS=$pkg_cv_ICU_LIBS
26959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26960$as_echo "yes" >&6; }
26961
26962fi
26963
26964
26965
26966cat >confcache <<\_ACEOF
26967# This file is a shell script that caches the results of configure
26968# tests run on this system so they can be shared between configure
26969# scripts and configure runs, see configure's option --config-cache.
26970# It is not useful on other systems.  If it contains results you don't
26971# want to keep, you may remove or edit it.
26972#
26973# config.status only pays attention to the cache file if you give it
26974# the --recheck option to rerun configure.
26975#
26976# `ac_cv_env_foo' variables (set or unset) will be overridden when
26977# loading this file, other *unset* `ac_cv_foo' will be assigned the
26978# following values.
26979
26980_ACEOF
26981
26982# The following way of writing the cache mishandles newlines in values,
26983# but we know of no workaround that is simple, portable, and efficient.
26984# So, we kill variables containing newlines.
26985# Ultrix sh set writes to stderr and can't be redirected directly,
26986# and sets the high bit in the cache file unless we assign to the vars.
26987(
26988  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26989    eval ac_val=\$$ac_var
26990    case $ac_val in #(
26991    *${as_nl}*)
26992      case $ac_var in #(
26993      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26995      esac
26996      case $ac_var in #(
26997      _ | IFS | as_nl) ;; #(
26998      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26999      *) { eval $ac_var=; unset $ac_var;} ;;
27000      esac ;;
27001    esac
27002  done
27003
27004  (set) 2>&1 |
27005    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27006    *${as_nl}ac_space=\ *)
27007      # `set' does not quote correctly, so add quotes: double-quote
27008      # substitution turns \\\\ into \\, and sed turns \\ into \.
27009      sed -n \
27010	"s/'/'\\\\''/g;
27011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27012      ;; #(
27013    *)
27014      # `set' quotes correctly as required by POSIX, so do not add quotes.
27015      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27016      ;;
27017    esac |
27018    sort
27019) |
27020  sed '
27021     /^ac_cv_env_/b end
27022     t clear
27023     :clear
27024     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27025     t end
27026     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27027     :end' >>confcache
27028if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27029  if test -w "$cache_file"; then
27030    if test "x$cache_file" != "x/dev/null"; then
27031      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27032$as_echo "$as_me: updating cache $cache_file" >&6;}
27033      if test ! -f "$cache_file" || test -h "$cache_file"; then
27034	cat confcache >"$cache_file"
27035      else
27036        case $cache_file in #(
27037        */* | ?:*)
27038	  mv -f confcache "$cache_file"$$ &&
27039	  mv -f "$cache_file"$$ "$cache_file" ;; #(
27040        *)
27041	  mv -f confcache "$cache_file" ;;
27042	esac
27043      fi
27044    fi
27045  else
27046    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27047$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27048  fi
27049fi
27050rm -f confcache
27051
27052test "x$prefix" = xNONE && prefix=$ac_default_prefix
27053# Let make expand exec_prefix.
27054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27055
27056DEFS=-DHAVE_CONFIG_H
27057
27058ac_libobjs=
27059ac_ltlibobjs=
27060U=
27061for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27062  # 1. Remove the extension, and $U if already installed.
27063  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27064  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27065  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27066  #    will be set to the directory where LIBOBJS objects are built.
27067  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27068  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27069done
27070LIBOBJS=$ac_libobjs
27071
27072LTLIBOBJS=$ac_ltlibobjs
27073
27074
27075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27076$as_echo_n "checking that generated files are newer than configure... " >&6; }
27077   if test -n "$am_sleep_pid"; then
27078     # Hide warnings about reused PIDs.
27079     wait $am_sleep_pid 2>/dev/null
27080   fi
27081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27082$as_echo "done" >&6; }
27083 if test -n "$EXEEXT"; then
27084  am__EXEEXT_TRUE=
27085  am__EXEEXT_FALSE='#'
27086else
27087  am__EXEEXT_TRUE='#'
27088  am__EXEEXT_FALSE=
27089fi
27090
27091if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27092  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27093Usually this means the macro was only invoked conditionally." "$LINENO" 5
27094fi
27095if test -z "${HAVE_COVERAGE_TRUE}" && test -z "${HAVE_COVERAGE_FALSE}"; then
27096  as_fn_error $? "conditional \"HAVE_COVERAGE\" was never defined.
27097Usually this means the macro was only invoked conditionally." "$LINENO" 5
27098fi
27099if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27100  as_fn_error $? "conditional \"AMDEP\" was never defined.
27101Usually this means the macro was only invoked conditionally." "$LINENO" 5
27102fi
27103if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27104  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
27105Usually this means the macro was only invoked conditionally." "$LINENO" 5
27106fi
27107if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27108  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27109Usually this means the macro was only invoked conditionally." "$LINENO" 5
27110fi
27111
27112if test -z "${IPV6_noGETADDRINFO_TRUE}" && test -z "${IPV6_noGETADDRINFO_FALSE}"; then
27113  as_fn_error $? "conditional \"IPV6_noGETADDRINFO\" was never defined.
27114Usually this means the macro was only invoked conditionally." "$LINENO" 5
27115fi
27116if test -z "${IPV6_noGETNAMEINFO_TRUE}" && test -z "${IPV6_noGETNAMEINFO_FALSE}"; then
27117  as_fn_error $? "conditional \"IPV6_noGETNAMEINFO\" was never defined.
27118Usually this means the macro was only invoked conditionally." "$LINENO" 5
27119fi
27120if test -z "${USE_CYRUSDB_SQL_TRUE}" && test -z "${USE_CYRUSDB_SQL_FALSE}"; then
27121  as_fn_error $? "conditional \"USE_CYRUSDB_SQL\" was never defined.
27122Usually this means the macro was only invoked conditionally." "$LINENO" 5
27123fi
27124if test -z "${USE_CYRUSDB_LMDB_TRUE}" && test -z "${USE_CYRUSDB_LMDB_FALSE}"; then
27125  as_fn_error $? "conditional \"USE_CYRUSDB_LMDB\" was never defined.
27126Usually this means the macro was only invoked conditionally." "$LINENO" 5
27127fi
27128if test -z "${OBJECTSTORE_TRUE}" && test -z "${OBJECTSTORE_FALSE}"; then
27129  as_fn_error $? "conditional \"OBJECTSTORE\" was never defined.
27130Usually this means the macro was only invoked conditionally." "$LINENO" 5
27131fi
27132if test -z "${WITH_CARINGO_TRUE}" && test -z "${WITH_CARINGO_FALSE}"; then
27133  as_fn_error $? "conditional \"WITH_CARINGO\" was never defined.
27134Usually this means the macro was only invoked conditionally." "$LINENO" 5
27135fi
27136if test -z "${WITH_OPENIO_TRUE}" && test -z "${WITH_OPENIO_FALSE}"; then
27137  as_fn_error $? "conditional \"WITH_OPENIO\" was never defined.
27138Usually this means the macro was only invoked conditionally." "$LINENO" 5
27139fi
27140if test -z "${WITH_OBJSTR_DUMMY_TRUE}" && test -z "${WITH_OBJSTR_DUMMY_FALSE}"; then
27141  as_fn_error $? "conditional \"WITH_OBJSTR_DUMMY\" was never defined.
27142Usually this means the macro was only invoked conditionally." "$LINENO" 5
27143fi
27144if test -z "${USE_SQUAT_TRUE}" && test -z "${USE_SQUAT_FALSE}"; then
27145  as_fn_error $? "conditional \"USE_SQUAT\" was never defined.
27146Usually this means the macro was only invoked conditionally." "$LINENO" 5
27147fi
27148if test -z "${USE_SPHINX_TRUE}" && test -z "${USE_SPHINX_FALSE}"; then
27149  as_fn_error $? "conditional \"USE_SPHINX\" was never defined.
27150Usually this means the macro was only invoked conditionally." "$LINENO" 5
27151fi
27152if test -z "${USE_XAPIAN_TRUE}" && test -z "${USE_XAPIAN_FALSE}"; then
27153  as_fn_error $? "conditional \"USE_XAPIAN\" was never defined.
27154Usually this means the macro was only invoked conditionally." "$LINENO" 5
27155fi
27156if test -z "${SQUATTER_TRUE}" && test -z "${SQUATTER_FALSE}"; then
27157  as_fn_error $? "conditional \"SQUATTER\" was never defined.
27158Usually this means the macro was only invoked conditionally." "$LINENO" 5
27159fi
27160if test -z "${SIEVE_TRUE}" && test -z "${SIEVE_FALSE}"; then
27161  as_fn_error $? "conditional \"SIEVE\" was never defined.
27162Usually this means the macro was only invoked conditionally." "$LINENO" 5
27163fi
27164if test -z "${NONBLOCK_FCNTL_TRUE}" && test -z "${NONBLOCK_FCNTL_FALSE}"; then
27165  as_fn_error $? "conditional \"NONBLOCK_FCNTL\" was never defined.
27166Usually this means the macro was only invoked conditionally." "$LINENO" 5
27167fi
27168if test -z "${GMTOFF_TM_TRUE}" && test -z "${GMTOFF_TM_FALSE}"; then
27169  as_fn_error $? "conditional \"GMTOFF_TM\" was never defined.
27170Usually this means the macro was only invoked conditionally." "$LINENO" 5
27171fi
27172if test -z "${MAP_SHARED_TRUE}" && test -z "${MAP_SHARED_FALSE}"; then
27173  as_fn_error $? "conditional \"MAP_SHARED\" was never defined.
27174Usually this means the macro was only invoked conditionally." "$LINENO" 5
27175fi
27176if test -z "${MAP_STUPIDSHARED_TRUE}" && test -z "${MAP_STUPIDSHARED_FALSE}"; then
27177  as_fn_error $? "conditional \"MAP_STUPIDSHARED\" was never defined.
27178Usually this means the macro was only invoked conditionally." "$LINENO" 5
27179fi
27180if test -z "${LOCK_FCNTL_TRUE}" && test -z "${LOCK_FCNTL_FALSE}"; then
27181  as_fn_error $? "conditional \"LOCK_FCNTL\" was never defined.
27182Usually this means the macro was only invoked conditionally." "$LINENO" 5
27183fi
27184if test -z "${USE_AFSKRB_TRUE}" && test -z "${USE_AFSKRB_FALSE}"; then
27185  as_fn_error $? "conditional \"USE_AFSKRB\" was never defined.
27186Usually this means the macro was only invoked conditionally." "$LINENO" 5
27187fi
27188if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
27189  as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
27190Usually this means the macro was only invoked conditionally." "$LINENO" 5
27191fi
27192if test -z "${PTCLIENT_TRUE}" && test -z "${PTCLIENT_FALSE}"; then
27193  as_fn_error $? "conditional \"PTCLIENT\" was never defined.
27194Usually this means the macro was only invoked conditionally." "$LINENO" 5
27195fi
27196if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then
27197  as_fn_error $? "conditional \"SERVER\" was never defined.
27198Usually this means the macro was only invoked conditionally." "$LINENO" 5
27199fi
27200if test -z "${HAVE_SSL_TRUE}" && test -z "${HAVE_SSL_FALSE}"; then
27201  as_fn_error $? "conditional \"HAVE_SSL\" was never defined.
27202Usually this means the macro was only invoked conditionally." "$LINENO" 5
27203fi
27204if test -z "${ZEPHYR_TRUE}" && test -z "${ZEPHYR_FALSE}"; then
27205  as_fn_error $? "conditional \"ZEPHYR\" was never defined.
27206Usually this means the macro was only invoked conditionally." "$LINENO" 5
27207fi
27208if test -z "${AUTOCREATE_TRUE}" && test -z "${AUTOCREATE_FALSE}"; then
27209  as_fn_error $? "conditional \"AUTOCREATE\" was never defined.
27210Usually this means the macro was only invoked conditionally." "$LINENO" 5
27211fi
27212if test -z "${IDLED_TRUE}" && test -z "${IDLED_FALSE}"; then
27213  as_fn_error $? "conditional \"IDLED\" was never defined.
27214Usually this means the macro was only invoked conditionally." "$LINENO" 5
27215fi
27216if test -z "${NNTPD_TRUE}" && test -z "${NNTPD_FALSE}"; then
27217  as_fn_error $? "conditional \"NNTPD\" was never defined.
27218Usually this means the macro was only invoked conditionally." "$LINENO" 5
27219fi
27220if test -z "${MURDER_TRUE}" && test -z "${MURDER_FALSE}"; then
27221  as_fn_error $? "conditional \"MURDER\" was never defined.
27222Usually this means the macro was only invoked conditionally." "$LINENO" 5
27223fi
27224if test -z "${HTTPD_TRUE}" && test -z "${HTTPD_FALSE}"; then
27225  as_fn_error $? "conditional \"HTTPD\" was never defined.
27226Usually this means the macro was only invoked conditionally." "$LINENO" 5
27227fi
27228if test -z "${CALALARMD_TRUE}" && test -z "${CALALARMD_FALSE}"; then
27229  as_fn_error $? "conditional \"CALALARMD\" was never defined.
27230Usually this means the macro was only invoked conditionally." "$LINENO" 5
27231fi
27232if test -z "${REPLICATION_TRUE}" && test -z "${REPLICATION_FALSE}"; then
27233  as_fn_error $? "conditional \"REPLICATION\" was never defined.
27234Usually this means the macro was only invoked conditionally." "$LINENO" 5
27235fi
27236if test -z "${BACKUP_TRUE}" && test -z "${BACKUP_FALSE}"; then
27237  as_fn_error $? "conditional \"BACKUP\" was never defined.
27238Usually this means the macro was only invoked conditionally." "$LINENO" 5
27239fi
27240if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
27241  as_fn_error $? "conditional \"COM_ERR\" was never defined.
27242Usually this means the macro was only invoked conditionally." "$LINENO" 5
27243fi
27244if test -z "${CMULOCAL_TRUE}" && test -z "${CMULOCAL_FALSE}"; then
27245  as_fn_error $? "conditional \"CMULOCAL\" was never defined.
27246Usually this means the macro was only invoked conditionally." "$LINENO" 5
27247fi
27248if test -z "${PERL_TRUE}" && test -z "${PERL_FALSE}"; then
27249  as_fn_error $? "conditional \"PERL\" was never defined.
27250Usually this means the macro was only invoked conditionally." "$LINENO" 5
27251fi
27252if test -z "${CUNIT_TRUE}" && test -z "${CUNIT_FALSE}"; then
27253  as_fn_error $? "conditional \"CUNIT\" was never defined.
27254Usually this means the macro was only invoked conditionally." "$LINENO" 5
27255fi
27256if test -z "${USE_SQLITE_TRUE}" && test -z "${USE_SQLITE_FALSE}"; then
27257  as_fn_error $? "conditional \"USE_SQLITE\" was never defined.
27258Usually this means the macro was only invoked conditionally." "$LINENO" 5
27259fi
27260if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
27261  as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
27262Usually this means the macro was only invoked conditionally." "$LINENO" 5
27263fi
27264
27265: "${CONFIG_STATUS=./config.status}"
27266ac_write_fail=0
27267ac_clean_files_save=$ac_clean_files
27268ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27269{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27270$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27271as_write_fail=0
27272cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27273#! $SHELL
27274# Generated by $as_me.
27275# Run this file to recreate the current configuration.
27276# Compiler output produced by configure, useful for debugging
27277# configure, is in config.log if it exists.
27278
27279debug=false
27280ac_cs_recheck=false
27281ac_cs_silent=false
27282
27283SHELL=\${CONFIG_SHELL-$SHELL}
27284export SHELL
27285_ASEOF
27286cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27287## -------------------- ##
27288## M4sh Initialization. ##
27289## -------------------- ##
27290
27291# Be more Bourne compatible
27292DUALCASE=1; export DUALCASE # for MKS sh
27293if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27294  emulate sh
27295  NULLCMD=:
27296  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27297  # is contrary to our usage.  Disable this feature.
27298  alias -g '${1+"$@"}'='"$@"'
27299  setopt NO_GLOB_SUBST
27300else
27301  case `(set -o) 2>/dev/null` in #(
27302  *posix*) :
27303    set -o posix ;; #(
27304  *) :
27305     ;;
27306esac
27307fi
27308
27309
27310as_nl='
27311'
27312export as_nl
27313# Printing a long string crashes Solaris 7 /usr/bin/printf.
27314as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27317# Prefer a ksh shell builtin over an external printf program on Solaris,
27318# but without wasting forks for bash or zsh.
27319if test -z "$BASH_VERSION$ZSH_VERSION" \
27320    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27321  as_echo='print -r --'
27322  as_echo_n='print -rn --'
27323elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27324  as_echo='printf %s\n'
27325  as_echo_n='printf %s'
27326else
27327  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27328    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27329    as_echo_n='/usr/ucb/echo -n'
27330  else
27331    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27332    as_echo_n_body='eval
27333      arg=$1;
27334      case $arg in #(
27335      *"$as_nl"*)
27336	expr "X$arg" : "X\\(.*\\)$as_nl";
27337	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27338      esac;
27339      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27340    '
27341    export as_echo_n_body
27342    as_echo_n='sh -c $as_echo_n_body as_echo'
27343  fi
27344  export as_echo_body
27345  as_echo='sh -c $as_echo_body as_echo'
27346fi
27347
27348# The user is always right.
27349if test "${PATH_SEPARATOR+set}" != set; then
27350  PATH_SEPARATOR=:
27351  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27352    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27353      PATH_SEPARATOR=';'
27354  }
27355fi
27356
27357
27358# IFS
27359# We need space, tab and new line, in precisely that order.  Quoting is
27360# there to prevent editors from complaining about space-tab.
27361# (If _AS_PATH_WALK were called with IFS unset, it would disable word
27362# splitting by setting IFS to empty value.)
27363IFS=" ""	$as_nl"
27364
27365# Find who we are.  Look in the path if we contain no directory separator.
27366as_myself=
27367case $0 in #((
27368  *[\\/]* ) as_myself=$0 ;;
27369  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27370for as_dir in $PATH
27371do
27372  IFS=$as_save_IFS
27373  test -z "$as_dir" && as_dir=.
27374    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27375  done
27376IFS=$as_save_IFS
27377
27378     ;;
27379esac
27380# We did not find ourselves, most probably we were run as `sh COMMAND'
27381# in which case we are not to be found in the path.
27382if test "x$as_myself" = x; then
27383  as_myself=$0
27384fi
27385if test ! -f "$as_myself"; then
27386  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27387  exit 1
27388fi
27389
27390# Unset variables that we do not need and which cause bugs (e.g. in
27391# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27392# suppresses any "Segmentation fault" message there.  '((' could
27393# trigger a bug in pdksh 5.2.14.
27394for as_var in BASH_ENV ENV MAIL MAILPATH
27395do eval test x\${$as_var+set} = xset \
27396  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27397done
27398PS1='$ '
27399PS2='> '
27400PS4='+ '
27401
27402# NLS nuisances.
27403LC_ALL=C
27404export LC_ALL
27405LANGUAGE=C
27406export LANGUAGE
27407
27408# CDPATH.
27409(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27410
27411
27412# as_fn_error STATUS ERROR [LINENO LOG_FD]
27413# ----------------------------------------
27414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27416# script with STATUS, using 1 if that was 0.
27417as_fn_error ()
27418{
27419  as_status=$1; test $as_status -eq 0 && as_status=1
27420  if test "$4"; then
27421    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27422    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27423  fi
27424  $as_echo "$as_me: error: $2" >&2
27425  as_fn_exit $as_status
27426} # as_fn_error
27427
27428
27429# as_fn_set_status STATUS
27430# -----------------------
27431# Set $? to STATUS, without forking.
27432as_fn_set_status ()
27433{
27434  return $1
27435} # as_fn_set_status
27436
27437# as_fn_exit STATUS
27438# -----------------
27439# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27440as_fn_exit ()
27441{
27442  set +e
27443  as_fn_set_status $1
27444  exit $1
27445} # as_fn_exit
27446
27447# as_fn_unset VAR
27448# ---------------
27449# Portably unset VAR.
27450as_fn_unset ()
27451{
27452  { eval $1=; unset $1;}
27453}
27454as_unset=as_fn_unset
27455# as_fn_append VAR VALUE
27456# ----------------------
27457# Append the text in VALUE to the end of the definition contained in VAR. Take
27458# advantage of any shell optimizations that allow amortized linear growth over
27459# repeated appends, instead of the typical quadratic growth present in naive
27460# implementations.
27461if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27462  eval 'as_fn_append ()
27463  {
27464    eval $1+=\$2
27465  }'
27466else
27467  as_fn_append ()
27468  {
27469    eval $1=\$$1\$2
27470  }
27471fi # as_fn_append
27472
27473# as_fn_arith ARG...
27474# ------------------
27475# Perform arithmetic evaluation on the ARGs, and store the result in the
27476# global $as_val. Take advantage of shells that can avoid forks. The arguments
27477# must be portable across $(()) and expr.
27478if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27479  eval 'as_fn_arith ()
27480  {
27481    as_val=$(( $* ))
27482  }'
27483else
27484  as_fn_arith ()
27485  {
27486    as_val=`expr "$@" || test $? -eq 1`
27487  }
27488fi # as_fn_arith
27489
27490
27491if expr a : '\(a\)' >/dev/null 2>&1 &&
27492   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27493  as_expr=expr
27494else
27495  as_expr=false
27496fi
27497
27498if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27499  as_basename=basename
27500else
27501  as_basename=false
27502fi
27503
27504if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27505  as_dirname=dirname
27506else
27507  as_dirname=false
27508fi
27509
27510as_me=`$as_basename -- "$0" ||
27511$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27512	 X"$0" : 'X\(//\)$' \| \
27513	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27514$as_echo X/"$0" |
27515    sed '/^.*\/\([^/][^/]*\)\/*$/{
27516	    s//\1/
27517	    q
27518	  }
27519	  /^X\/\(\/\/\)$/{
27520	    s//\1/
27521	    q
27522	  }
27523	  /^X\/\(\/\).*/{
27524	    s//\1/
27525	    q
27526	  }
27527	  s/.*/./; q'`
27528
27529# Avoid depending upon Character Ranges.
27530as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27531as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27532as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27533as_cr_digits='0123456789'
27534as_cr_alnum=$as_cr_Letters$as_cr_digits
27535
27536ECHO_C= ECHO_N= ECHO_T=
27537case `echo -n x` in #(((((
27538-n*)
27539  case `echo 'xy\c'` in
27540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27541  xy)  ECHO_C='\c';;
27542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27543       ECHO_T='	';;
27544  esac;;
27545*)
27546  ECHO_N='-n';;
27547esac
27548
27549rm -f conf$$ conf$$.exe conf$$.file
27550if test -d conf$$.dir; then
27551  rm -f conf$$.dir/conf$$.file
27552else
27553  rm -f conf$$.dir
27554  mkdir conf$$.dir 2>/dev/null
27555fi
27556if (echo >conf$$.file) 2>/dev/null; then
27557  if ln -s conf$$.file conf$$ 2>/dev/null; then
27558    as_ln_s='ln -s'
27559    # ... but there are two gotchas:
27560    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27561    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27562    # In both cases, we have to default to `cp -pR'.
27563    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27564      as_ln_s='cp -pR'
27565  elif ln conf$$.file conf$$ 2>/dev/null; then
27566    as_ln_s=ln
27567  else
27568    as_ln_s='cp -pR'
27569  fi
27570else
27571  as_ln_s='cp -pR'
27572fi
27573rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27574rmdir conf$$.dir 2>/dev/null
27575
27576
27577# as_fn_mkdir_p
27578# -------------
27579# Create "$as_dir" as a directory, including parents if necessary.
27580as_fn_mkdir_p ()
27581{
27582
27583  case $as_dir in #(
27584  -*) as_dir=./$as_dir;;
27585  esac
27586  test -d "$as_dir" || eval $as_mkdir_p || {
27587    as_dirs=
27588    while :; do
27589      case $as_dir in #(
27590      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27591      *) as_qdir=$as_dir;;
27592      esac
27593      as_dirs="'$as_qdir' $as_dirs"
27594      as_dir=`$as_dirname -- "$as_dir" ||
27595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27596	 X"$as_dir" : 'X\(//\)[^/]' \| \
27597	 X"$as_dir" : 'X\(//\)$' \| \
27598	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27599$as_echo X"$as_dir" |
27600    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27601	    s//\1/
27602	    q
27603	  }
27604	  /^X\(\/\/\)[^/].*/{
27605	    s//\1/
27606	    q
27607	  }
27608	  /^X\(\/\/\)$/{
27609	    s//\1/
27610	    q
27611	  }
27612	  /^X\(\/\).*/{
27613	    s//\1/
27614	    q
27615	  }
27616	  s/.*/./; q'`
27617      test -d "$as_dir" && break
27618    done
27619    test -z "$as_dirs" || eval "mkdir $as_dirs"
27620  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27621
27622
27623} # as_fn_mkdir_p
27624if mkdir -p . 2>/dev/null; then
27625  as_mkdir_p='mkdir -p "$as_dir"'
27626else
27627  test -d ./-p && rmdir ./-p
27628  as_mkdir_p=false
27629fi
27630
27631
27632# as_fn_executable_p FILE
27633# -----------------------
27634# Test if FILE is an executable regular file.
27635as_fn_executable_p ()
27636{
27637  test -f "$1" && test -x "$1"
27638} # as_fn_executable_p
27639as_test_x='test -x'
27640as_executable_p=as_fn_executable_p
27641
27642# Sed expression to map a string onto a valid CPP name.
27643as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27644
27645# Sed expression to map a string onto a valid variable name.
27646as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27647
27648
27649exec 6>&1
27650## ----------------------------------- ##
27651## Main body of $CONFIG_STATUS script. ##
27652## ----------------------------------- ##
27653_ASEOF
27654test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27655
27656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27657# Save the log message, to keep $0 and so on meaningful, and to
27658# report actual input values of CONFIG_FILES etc. instead of their
27659# values after options handling.
27660ac_log="
27661This file was extended by cyrus-imapd $as_me 3.0.16, which was
27662generated by GNU Autoconf 2.69.  Invocation command line was
27663
27664  CONFIG_FILES    = $CONFIG_FILES
27665  CONFIG_HEADERS  = $CONFIG_HEADERS
27666  CONFIG_LINKS    = $CONFIG_LINKS
27667  CONFIG_COMMANDS = $CONFIG_COMMANDS
27668  $ $0 $@
27669
27670on `(hostname || uname -n) 2>/dev/null | sed 1q`
27671"
27672
27673_ACEOF
27674
27675case $ac_config_files in *"
27676"*) set x $ac_config_files; shift; ac_config_files=$*;;
27677esac
27678
27679case $ac_config_headers in *"
27680"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27681esac
27682
27683
27684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27685# Files that config.status was made for.
27686config_files="$ac_config_files"
27687config_headers="$ac_config_headers"
27688config_links="$ac_config_links"
27689config_commands="$ac_config_commands"
27690
27691_ACEOF
27692
27693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27694ac_cs_usage="\
27695\`$as_me' instantiates files and other configuration actions
27696from templates according to the current configuration.  Unless the files
27697and actions are specified as TAGs, all are instantiated by default.
27698
27699Usage: $0 [OPTION]... [TAG]...
27700
27701  -h, --help       print this help, then exit
27702  -V, --version    print version number and configuration settings, then exit
27703      --config     print configuration, then exit
27704  -q, --quiet, --silent
27705                   do not print progress messages
27706  -d, --debug      don't remove temporary files
27707      --recheck    update $as_me by reconfiguring in the same conditions
27708      --file=FILE[:TEMPLATE]
27709                   instantiate the configuration file FILE
27710      --header=FILE[:TEMPLATE]
27711                   instantiate the configuration header FILE
27712
27713Configuration files:
27714$config_files
27715
27716Configuration headers:
27717$config_headers
27718
27719Configuration links:
27720$config_links
27721
27722Configuration commands:
27723$config_commands
27724
27725Report bugs to <https://github.com/cyrusimap/cyrus-imapd/issues>.
27726cyrus-imapd home page: <https://www.cyrusimap.org>."
27727
27728_ACEOF
27729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27730ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27731ac_cs_version="\\
27732cyrus-imapd config.status 3.0.16
27733configured by $0, generated by GNU Autoconf 2.69,
27734  with options \\"\$ac_cs_config\\"
27735
27736Copyright (C) 2012 Free Software Foundation, Inc.
27737This config.status script is free software; the Free Software Foundation
27738gives unlimited permission to copy, distribute and modify it."
27739
27740ac_pwd='$ac_pwd'
27741srcdir='$srcdir'
27742INSTALL='$INSTALL'
27743MKDIR_P='$MKDIR_P'
27744AWK='$AWK'
27745test -n "\$AWK" || AWK=awk
27746_ACEOF
27747
27748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27749# The default lists apply if the user does not specify any file.
27750ac_need_defaults=:
27751while test $# != 0
27752do
27753  case $1 in
27754  --*=?*)
27755    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27756    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27757    ac_shift=:
27758    ;;
27759  --*=)
27760    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27761    ac_optarg=
27762    ac_shift=:
27763    ;;
27764  *)
27765    ac_option=$1
27766    ac_optarg=$2
27767    ac_shift=shift
27768    ;;
27769  esac
27770
27771  case $ac_option in
27772  # Handling of the options.
27773  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27774    ac_cs_recheck=: ;;
27775  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27776    $as_echo "$ac_cs_version"; exit ;;
27777  --config | --confi | --conf | --con | --co | --c )
27778    $as_echo "$ac_cs_config"; exit ;;
27779  --debug | --debu | --deb | --de | --d | -d )
27780    debug=: ;;
27781  --file | --fil | --fi | --f )
27782    $ac_shift
27783    case $ac_optarg in
27784    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27785    '') as_fn_error $? "missing file argument" ;;
27786    esac
27787    as_fn_append CONFIG_FILES " '$ac_optarg'"
27788    ac_need_defaults=false;;
27789  --header | --heade | --head | --hea )
27790    $ac_shift
27791    case $ac_optarg in
27792    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27793    esac
27794    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27795    ac_need_defaults=false;;
27796  --he | --h)
27797    # Conflict between --help and --header
27798    as_fn_error $? "ambiguous option: \`$1'
27799Try \`$0 --help' for more information.";;
27800  --help | --hel | -h )
27801    $as_echo "$ac_cs_usage"; exit ;;
27802  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27803  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27804    ac_cs_silent=: ;;
27805
27806  # This is an error.
27807  -*) as_fn_error $? "unrecognized option: \`$1'
27808Try \`$0 --help' for more information." ;;
27809
27810  *) as_fn_append ac_config_targets " $1"
27811     ac_need_defaults=false ;;
27812
27813  esac
27814  shift
27815done
27816
27817ac_configure_extra_args=
27818
27819if $ac_cs_silent; then
27820  exec 6>/dev/null
27821  ac_configure_extra_args="$ac_configure_extra_args --silent"
27822fi
27823
27824_ACEOF
27825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27826if \$ac_cs_recheck; then
27827  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27828  shift
27829  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27830  CONFIG_SHELL='$SHELL'
27831  export CONFIG_SHELL
27832  exec "\$@"
27833fi
27834
27835_ACEOF
27836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27837exec 5>>config.log
27838{
27839  echo
27840  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27841## Running $as_me. ##
27842_ASBOX
27843  $as_echo "$ac_log"
27844} >&5
27845
27846_ACEOF
27847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27848#
27849# INIT-COMMANDS
27850#
27851AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27852
27853
27854# The HP-UX ksh and POSIX shell print the target directory to stdout
27855# if CDPATH is set.
27856(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27857
27858sed_quote_subst='$sed_quote_subst'
27859double_quote_subst='$double_quote_subst'
27860delay_variable_subst='$delay_variable_subst'
27861macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27862macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27863enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27864enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27865pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27866enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27867shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27868SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27869ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27870PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27871host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27872host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27873host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27874build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27875build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27876build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27877SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27878Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27879GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27880EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27881FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27882LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27883NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27884LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27885max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27886ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27887exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27888lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27889lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27890lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27891lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27892lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27893reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27894reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27895OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27896deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27897file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27898file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27899want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27900DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27901sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27902AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27903AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27904archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27905STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27906RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27907old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27908old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27909old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27910lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27911CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27912CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27913compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27914GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27915lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27916lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27917lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27918lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27919lt_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"`'
27920lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27921nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27922lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27923lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27924objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27925MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27926lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27927lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27928lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27929lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27930lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27931need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27932MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27933DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27934NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27935LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27936OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27937OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27938libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27939shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27940extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27941archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27942enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27943export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27944whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27945compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27946old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27947old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27948archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27949archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27950module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27951module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27952with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27953allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27954no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27955hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27956hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27957hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27958hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27959hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27960hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27961hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27962inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27963link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27964always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27965export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27966exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27967include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27968prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27969postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27970file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27971variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27972need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27973need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27974version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27975runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27976shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27977shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27978libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27979library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27980soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27981install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27982postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27983postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27984finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27985finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27986hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27987sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27988configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27989configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27990hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27991enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27992enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27993enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27994old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27995striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27996compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27997predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27998postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27999predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
28000postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
28001compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
28002LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
28003reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
28004reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28005old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28006compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
28007GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
28008lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
28009lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
28010lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
28011lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
28012lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
28013archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
28014enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
28015export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28016whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28017compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
28018old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28019old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28020archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28021archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28022module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28023module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28024with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
28025allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28026no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
28027hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
28028hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
28029hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
28030hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
28031hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
28032hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
28033hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
28034inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
28035link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
28036always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
28037export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28038exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28039include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
28040prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28041postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
28042file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
28043hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
28044compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
28045predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28046postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
28047predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
28048postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
28049compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
28050
28051LTCC='$LTCC'
28052LTCFLAGS='$LTCFLAGS'
28053compiler='$compiler_DEFAULT'
28054
28055# A function that is used when there is no print builtin or printf.
28056func_fallback_echo ()
28057{
28058  eval 'cat <<_LTECHO_EOF
28059\$1
28060_LTECHO_EOF'
28061}
28062
28063# Quote evaled strings.
28064for var in SHELL \
28065ECHO \
28066PATH_SEPARATOR \
28067SED \
28068GREP \
28069EGREP \
28070FGREP \
28071LD \
28072NM \
28073LN_S \
28074lt_SP2NL \
28075lt_NL2SP \
28076reload_flag \
28077OBJDUMP \
28078deplibs_check_method \
28079file_magic_cmd \
28080file_magic_glob \
28081want_nocaseglob \
28082DLLTOOL \
28083sharedlib_from_linklib_cmd \
28084AR \
28085AR_FLAGS \
28086archiver_list_spec \
28087STRIP \
28088RANLIB \
28089CC \
28090CFLAGS \
28091compiler \
28092lt_cv_sys_global_symbol_pipe \
28093lt_cv_sys_global_symbol_to_cdecl \
28094lt_cv_sys_global_symbol_to_import \
28095lt_cv_sys_global_symbol_to_c_name_address \
28096lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28097lt_cv_nm_interface \
28098nm_file_list_spec \
28099lt_cv_truncate_bin \
28100lt_prog_compiler_no_builtin_flag \
28101lt_prog_compiler_pic \
28102lt_prog_compiler_wl \
28103lt_prog_compiler_static \
28104lt_cv_prog_compiler_c_o \
28105need_locks \
28106MANIFEST_TOOL \
28107DSYMUTIL \
28108NMEDIT \
28109LIPO \
28110OTOOL \
28111OTOOL64 \
28112shrext_cmds \
28113export_dynamic_flag_spec \
28114whole_archive_flag_spec \
28115compiler_needs_object \
28116with_gnu_ld \
28117allow_undefined_flag \
28118no_undefined_flag \
28119hardcode_libdir_flag_spec \
28120hardcode_libdir_separator \
28121exclude_expsyms \
28122include_expsyms \
28123file_list_spec \
28124variables_saved_for_relink \
28125libname_spec \
28126library_names_spec \
28127soname_spec \
28128install_override_mode \
28129finish_eval \
28130old_striplib \
28131striplib \
28132compiler_lib_search_dirs \
28133predep_objects \
28134postdep_objects \
28135predeps \
28136postdeps \
28137compiler_lib_search_path \
28138LD_CXX \
28139reload_flag_CXX \
28140compiler_CXX \
28141lt_prog_compiler_no_builtin_flag_CXX \
28142lt_prog_compiler_pic_CXX \
28143lt_prog_compiler_wl_CXX \
28144lt_prog_compiler_static_CXX \
28145lt_cv_prog_compiler_c_o_CXX \
28146export_dynamic_flag_spec_CXX \
28147whole_archive_flag_spec_CXX \
28148compiler_needs_object_CXX \
28149with_gnu_ld_CXX \
28150allow_undefined_flag_CXX \
28151no_undefined_flag_CXX \
28152hardcode_libdir_flag_spec_CXX \
28153hardcode_libdir_separator_CXX \
28154exclude_expsyms_CXX \
28155include_expsyms_CXX \
28156file_list_spec_CXX \
28157compiler_lib_search_dirs_CXX \
28158predep_objects_CXX \
28159postdep_objects_CXX \
28160predeps_CXX \
28161postdeps_CXX \
28162compiler_lib_search_path_CXX; do
28163    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28164    *[\\\\\\\`\\"\\\$]*)
28165      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28166      ;;
28167    *)
28168      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28169      ;;
28170    esac
28171done
28172
28173# Double-quote double-evaled strings.
28174for var in reload_cmds \
28175old_postinstall_cmds \
28176old_postuninstall_cmds \
28177old_archive_cmds \
28178extract_expsyms_cmds \
28179old_archive_from_new_cmds \
28180old_archive_from_expsyms_cmds \
28181archive_cmds \
28182archive_expsym_cmds \
28183module_cmds \
28184module_expsym_cmds \
28185export_symbols_cmds \
28186prelink_cmds \
28187postlink_cmds \
28188postinstall_cmds \
28189postuninstall_cmds \
28190finish_cmds \
28191sys_lib_search_path_spec \
28192configure_time_dlsearch_path \
28193configure_time_lt_sys_library_path \
28194reload_cmds_CXX \
28195old_archive_cmds_CXX \
28196old_archive_from_new_cmds_CXX \
28197old_archive_from_expsyms_cmds_CXX \
28198archive_cmds_CXX \
28199archive_expsym_cmds_CXX \
28200module_cmds_CXX \
28201module_expsym_cmds_CXX \
28202export_symbols_cmds_CXX \
28203prelink_cmds_CXX \
28204postlink_cmds_CXX; do
28205    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28206    *[\\\\\\\`\\"\\\$]*)
28207      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28208      ;;
28209    *)
28210      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28211      ;;
28212    esac
28213done
28214
28215ac_aux_dir='$ac_aux_dir'
28216
28217# See if we are running on zsh, and set the options that allow our
28218# commands through without removal of \ escapes INIT.
28219if test -n "\${ZSH_VERSION+set}"; then
28220   setopt NO_GLOB_SUBST
28221fi
28222
28223
28224    PACKAGE='$PACKAGE'
28225    VERSION='$VERSION'
28226    RM='$RM'
28227    ofile='$ofile'
28228
28229
28230
28231
28232
28233
28234    PERL="${PERL}"
28235    MAKE_MAKER_ARGS="PREFIX=${prefix}"
28236
28237
28238    PERL="${PERL}"
28239    MAKE_MAKER_ARGS="PREFIX=${prefix}"
28240
28241
28242    PERL="${PERL}"
28243    MAKE_MAKER_ARGS="PREFIX=${prefix}"
28244
28245
28246_ACEOF
28247
28248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28249
28250# Handling of arguments.
28251for ac_config_target in $ac_config_targets
28252do
28253  case $ac_config_target in
28254    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28255    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28256    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28257    "perl/sieve/managesieve/managesieve.pm") CONFIG_LINKS="$CONFIG_LINKS perl/sieve/managesieve/managesieve.pm:perl/sieve/managesieve/managesieve.pm" ;;
28258    "perl/sieve/managesieve/MANIFEST") CONFIG_FILES="$CONFIG_FILES perl/sieve/managesieve/MANIFEST" ;;
28259    "perl/imap/Cyrus/HeaderFile.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/HeaderFile.pm:perl/imap/Cyrus/HeaderFile.pm" ;;
28260    "perl/imap/Cyrus/CacheFile.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/CacheFile.pm:perl/imap/Cyrus/CacheFile.pm" ;;
28261    "perl/imap/Cyrus/IndexFile.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/IndexFile.pm:perl/imap/Cyrus/IndexFile.pm" ;;
28262    "perl/imap/Cyrus/DList.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/DList.pm:perl/imap/Cyrus/DList.pm" ;;
28263    "perl/imap/Cyrus/ImapClone.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/ImapClone.pm:perl/imap/Cyrus/ImapClone.pm" ;;
28264    "perl/imap/Cyrus/SyncProto.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/Cyrus/SyncProto.pm:perl/imap/Cyrus/SyncProto.pm" ;;
28265    "perl/imap/IMAP/Shell.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP/Shell.pm:perl/imap/IMAP/Shell.pm" ;;
28266    "perl/imap/IMAP/IMSP.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP/IMSP.pm:perl/imap/IMAP/IMSP.pm" ;;
28267    "perl/imap/IMAP/Admin.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP/Admin.pm:perl/imap/IMAP/Admin.pm" ;;
28268    "perl/imap/IMAP.pm") CONFIG_LINKS="$CONFIG_LINKS perl/imap/IMAP.pm:perl/imap/IMAP.pm" ;;
28269    "perl/imap/MANIFEST") CONFIG_FILES="$CONFIG_FILES perl/imap/MANIFEST" ;;
28270    "perl/annotator/Message.pm") CONFIG_LINKS="$CONFIG_LINKS perl/annotator/Message.pm:perl/annotator/Message.pm" ;;
28271    "perl/annotator/AnnotateInlinedCIDs.pm") CONFIG_LINKS="$CONFIG_LINKS perl/annotator/AnnotateInlinedCIDs.pm:perl/annotator/AnnotateInlinedCIDs.pm" ;;
28272    "perl/annotator/Daemon.pm") CONFIG_LINKS="$CONFIG_LINKS perl/annotator/Daemon.pm:perl/annotator/Daemon.pm" ;;
28273    "perl/annotator/MANIFEST") CONFIG_FILES="$CONFIG_FILES perl/annotator/MANIFEST" ;;
28274    "cunit/cacert.pem") CONFIG_LINKS="$CONFIG_LINKS cunit/cacert.pem:cunit/cacert.pem" ;;
28275    "cunit/cert.pem") CONFIG_LINKS="$CONFIG_LINKS cunit/cert.pem:cunit/cert.pem" ;;
28276    "cunit/key.pem") CONFIG_LINKS="$CONFIG_LINKS cunit/key.pem:cunit/key.pem" ;;
28277    "libcyrus_imap.pc") CONFIG_FILES="$CONFIG_FILES libcyrus_imap.pc" ;;
28278    "libcyrus_min.pc") CONFIG_FILES="$CONFIG_FILES libcyrus_min.pc" ;;
28279    "libcyrus.pc") CONFIG_FILES="$CONFIG_FILES libcyrus.pc" ;;
28280    "libcyrus_sieve.pc") CONFIG_FILES="$CONFIG_FILES libcyrus_sieve.pc" ;;
28281    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28282    "perl/annotator/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/annotator/Makefile.PL" ;;
28283    "perl/annotator/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS perl/annotator/Makefile" ;;
28284    "perl/imap/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/imap/Makefile.PL" ;;
28285    "perl/imap/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS perl/imap/Makefile" ;;
28286    "perl/sieve/managesieve/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/sieve/managesieve/Makefile.PL" ;;
28287    "perl/sieve/managesieve/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS perl/sieve/managesieve/Makefile" ;;
28288
28289  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28290  esac
28291done
28292
28293
28294# If the user did not use the arguments to specify the items to instantiate,
28295# then the envvar interface is used.  Set only those that are not.
28296# We use the long form for the default assignment because of an extremely
28297# bizarre bug on SunOS 4.1.3.
28298if $ac_need_defaults; then
28299  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28300  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28301  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28302  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28303fi
28304
28305# Have a temporary directory for convenience.  Make it in the build tree
28306# simply because there is no reason against having it here, and in addition,
28307# creating and moving files from /tmp can sometimes cause problems.
28308# Hook for its removal unless debugging.
28309# Note that there is a small window in which the directory will not be cleaned:
28310# after its creation but before its name has been assigned to `$tmp'.
28311$debug ||
28312{
28313  tmp= ac_tmp=
28314  trap 'exit_status=$?
28315  : "${ac_tmp:=$tmp}"
28316  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28317' 0
28318  trap 'as_fn_exit 1' 1 2 13 15
28319}
28320# Create a (secure) tmp directory for tmp files.
28321
28322{
28323  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28324  test -d "$tmp"
28325}  ||
28326{
28327  tmp=./conf$$-$RANDOM
28328  (umask 077 && mkdir "$tmp")
28329} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28330ac_tmp=$tmp
28331
28332# Set up the scripts for CONFIG_FILES section.
28333# No need to generate them if there are no CONFIG_FILES.
28334# This happens for instance with `./config.status config.h'.
28335if test -n "$CONFIG_FILES"; then
28336
28337
28338ac_cr=`echo X | tr X '\015'`
28339# On cygwin, bash can eat \r inside `` if the user requested igncr.
28340# But we know of no other shell where ac_cr would be empty at this
28341# point, so we can use a bashism as a fallback.
28342if test "x$ac_cr" = x; then
28343  eval ac_cr=\$\'\\r\'
28344fi
28345ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28346if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28347  ac_cs_awk_cr='\\r'
28348else
28349  ac_cs_awk_cr=$ac_cr
28350fi
28351
28352echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28353_ACEOF
28354
28355
28356{
28357  echo "cat >conf$$subs.awk <<_ACEOF" &&
28358  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28359  echo "_ACEOF"
28360} >conf$$subs.sh ||
28361  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28362ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28363ac_delim='%!_!# '
28364for ac_last_try in false false false false false :; do
28365  . ./conf$$subs.sh ||
28366    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28367
28368  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28369  if test $ac_delim_n = $ac_delim_num; then
28370    break
28371  elif $ac_last_try; then
28372    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28373  else
28374    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28375  fi
28376done
28377rm -f conf$$subs.sh
28378
28379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28380cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28381_ACEOF
28382sed -n '
28383h
28384s/^/S["/; s/!.*/"]=/
28385p
28386g
28387s/^[^!]*!//
28388:repl
28389t repl
28390s/'"$ac_delim"'$//
28391t delim
28392:nl
28393h
28394s/\(.\{148\}\)..*/\1/
28395t more1
28396s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28397p
28398n
28399b repl
28400:more1
28401s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28402p
28403g
28404s/.\{148\}//
28405t nl
28406:delim
28407h
28408s/\(.\{148\}\)..*/\1/
28409t more2
28410s/["\\]/\\&/g; s/^/"/; s/$/"/
28411p
28412b
28413:more2
28414s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28415p
28416g
28417s/.\{148\}//
28418t delim
28419' <conf$$subs.awk | sed '
28420/^[^""]/{
28421  N
28422  s/\n//
28423}
28424' >>$CONFIG_STATUS || ac_write_fail=1
28425rm -f conf$$subs.awk
28426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28427_ACAWK
28428cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28429  for (key in S) S_is_set[key] = 1
28430  FS = ""
28431
28432}
28433{
28434  line = $ 0
28435  nfields = split(line, field, "@")
28436  substed = 0
28437  len = length(field[1])
28438  for (i = 2; i < nfields; i++) {
28439    key = field[i]
28440    keylen = length(key)
28441    if (S_is_set[key]) {
28442      value = S[key]
28443      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28444      len += length(value) + length(field[++i])
28445      substed = 1
28446    } else
28447      len += 1 + keylen
28448  }
28449
28450  print line
28451}
28452
28453_ACAWK
28454_ACEOF
28455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28456if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28457  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28458else
28459  cat
28460fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28461  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28462_ACEOF
28463
28464# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28465# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28466# trailing colons and then remove the whole line if VPATH becomes empty
28467# (actually we leave an empty line to preserve line numbers).
28468if test "x$srcdir" = x.; then
28469  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
28470h
28471s///
28472s/^/:/
28473s/[	 ]*$/:/
28474s/:\$(srcdir):/:/g
28475s/:\${srcdir}:/:/g
28476s/:@srcdir@:/:/g
28477s/^:*//
28478s/:*$//
28479x
28480s/\(=[	 ]*\).*/\1/
28481G
28482s/\n//
28483s/^[^=]*=[	 ]*$//
28484}'
28485fi
28486
28487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28488fi # test -n "$CONFIG_FILES"
28489
28490# Set up the scripts for CONFIG_HEADERS section.
28491# No need to generate them if there are no CONFIG_HEADERS.
28492# This happens for instance with `./config.status Makefile'.
28493if test -n "$CONFIG_HEADERS"; then
28494cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28495BEGIN {
28496_ACEOF
28497
28498# Transform confdefs.h into an awk script `defines.awk', embedded as
28499# here-document in config.status, that substitutes the proper values into
28500# config.h.in to produce config.h.
28501
28502# Create a delimiter string that does not exist in confdefs.h, to ease
28503# handling of long lines.
28504ac_delim='%!_!# '
28505for ac_last_try in false false :; do
28506  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28507  if test -z "$ac_tt"; then
28508    break
28509  elif $ac_last_try; then
28510    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28511  else
28512    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28513  fi
28514done
28515
28516# For the awk script, D is an array of macro values keyed by name,
28517# likewise P contains macro parameters if any.  Preserve backslash
28518# newline sequences.
28519
28520ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28521sed -n '
28522s/.\{148\}/&'"$ac_delim"'/g
28523t rset
28524:rset
28525s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
28526t def
28527d
28528:def
28529s/\\$//
28530t bsnl
28531s/["\\]/\\&/g
28532s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28533D["\1"]=" \3"/p
28534s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
28535d
28536:bsnl
28537s/["\\]/\\&/g
28538s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
28539D["\1"]=" \3\\\\\\n"\\/p
28540t cont
28541s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28542t cont
28543d
28544:cont
28545n
28546s/.\{148\}/&'"$ac_delim"'/g
28547t clear
28548:clear
28549s/\\$//
28550t bsnlc
28551s/["\\]/\\&/g; s/^/"/; s/$/"/p
28552d
28553:bsnlc
28554s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28555b cont
28556' <confdefs.h | sed '
28557s/'"$ac_delim"'/"\\\
28558"/g' >>$CONFIG_STATUS || ac_write_fail=1
28559
28560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28561  for (key in D) D_is_set[key] = 1
28562  FS = ""
28563}
28564/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28565  line = \$ 0
28566  split(line, arg, " ")
28567  if (arg[1] == "#") {
28568    defundef = arg[2]
28569    mac1 = arg[3]
28570  } else {
28571    defundef = substr(arg[1], 2)
28572    mac1 = arg[2]
28573  }
28574  split(mac1, mac2, "(") #)
28575  macro = mac2[1]
28576  prefix = substr(line, 1, index(line, defundef) - 1)
28577  if (D_is_set[macro]) {
28578    # Preserve the white space surrounding the "#".
28579    print prefix "define", macro P[macro] D[macro]
28580    next
28581  } else {
28582    # Replace #undef with comments.  This is necessary, for example,
28583    # in the case of _POSIX_SOURCE, which is predefined and required
28584    # on some systems where configure will not decide to define it.
28585    if (defundef == "undef") {
28586      print "/*", prefix defundef, macro, "*/"
28587      next
28588    }
28589  }
28590}
28591{ print }
28592_ACAWK
28593_ACEOF
28594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28595  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28596fi # test -n "$CONFIG_HEADERS"
28597
28598
28599eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
28600shift
28601for ac_tag
28602do
28603  case $ac_tag in
28604  :[FHLC]) ac_mode=$ac_tag; continue;;
28605  esac
28606  case $ac_mode$ac_tag in
28607  :[FHL]*:*);;
28608  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28609  :[FH]-) ac_tag=-:-;;
28610  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28611  esac
28612  ac_save_IFS=$IFS
28613  IFS=:
28614  set x $ac_tag
28615  IFS=$ac_save_IFS
28616  shift
28617  ac_file=$1
28618  shift
28619
28620  case $ac_mode in
28621  :L) ac_source=$1;;
28622  :[FH])
28623    ac_file_inputs=
28624    for ac_f
28625    do
28626      case $ac_f in
28627      -) ac_f="$ac_tmp/stdin";;
28628      *) # Look for the file first in the build tree, then in the source tree
28629	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
28630	 # because $ac_f cannot contain `:'.
28631	 test -f "$ac_f" ||
28632	   case $ac_f in
28633	   [\\/$]*) false;;
28634	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28635	   esac ||
28636	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28637      esac
28638      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28639      as_fn_append ac_file_inputs " '$ac_f'"
28640    done
28641
28642    # Let's still pretend it is `configure' which instantiates (i.e., don't
28643    # use $as_me), people would be surprised to read:
28644    #    /* config.h.  Generated by config.status.  */
28645    configure_input='Generated from '`
28646	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28647	`' by configure.'
28648    if test x"$ac_file" != x-; then
28649      configure_input="$ac_file.  $configure_input"
28650      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28651$as_echo "$as_me: creating $ac_file" >&6;}
28652    fi
28653    # Neutralize special characters interpreted by sed in replacement strings.
28654    case $configure_input in #(
28655    *\&* | *\|* | *\\* )
28656       ac_sed_conf_input=`$as_echo "$configure_input" |
28657       sed 's/[\\\\&|]/\\\\&/g'`;; #(
28658    *) ac_sed_conf_input=$configure_input;;
28659    esac
28660
28661    case $ac_tag in
28662    *:-:* | *:-) cat >"$ac_tmp/stdin" \
28663      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28664    esac
28665    ;;
28666  esac
28667
28668  ac_dir=`$as_dirname -- "$ac_file" ||
28669$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28670	 X"$ac_file" : 'X\(//\)[^/]' \| \
28671	 X"$ac_file" : 'X\(//\)$' \| \
28672	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28673$as_echo X"$ac_file" |
28674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28675	    s//\1/
28676	    q
28677	  }
28678	  /^X\(\/\/\)[^/].*/{
28679	    s//\1/
28680	    q
28681	  }
28682	  /^X\(\/\/\)$/{
28683	    s//\1/
28684	    q
28685	  }
28686	  /^X\(\/\).*/{
28687	    s//\1/
28688	    q
28689	  }
28690	  s/.*/./; q'`
28691  as_dir="$ac_dir"; as_fn_mkdir_p
28692  ac_builddir=.
28693
28694case "$ac_dir" in
28695.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28696*)
28697  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28698  # A ".." for each directory in $ac_dir_suffix.
28699  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28700  case $ac_top_builddir_sub in
28701  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28702  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28703  esac ;;
28704esac
28705ac_abs_top_builddir=$ac_pwd
28706ac_abs_builddir=$ac_pwd$ac_dir_suffix
28707# for backward compatibility:
28708ac_top_builddir=$ac_top_build_prefix
28709
28710case $srcdir in
28711  .)  # We are building in place.
28712    ac_srcdir=.
28713    ac_top_srcdir=$ac_top_builddir_sub
28714    ac_abs_top_srcdir=$ac_pwd ;;
28715  [\\/]* | ?:[\\/]* )  # Absolute name.
28716    ac_srcdir=$srcdir$ac_dir_suffix;
28717    ac_top_srcdir=$srcdir
28718    ac_abs_top_srcdir=$srcdir ;;
28719  *) # Relative name.
28720    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28721    ac_top_srcdir=$ac_top_build_prefix$srcdir
28722    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28723esac
28724ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28725
28726
28727  case $ac_mode in
28728  :F)
28729  #
28730  # CONFIG_FILE
28731  #
28732
28733  case $INSTALL in
28734  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28735  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28736  esac
28737  ac_MKDIR_P=$MKDIR_P
28738  case $MKDIR_P in
28739  [\\/$]* | ?:[\\/]* ) ;;
28740  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28741  esac
28742_ACEOF
28743
28744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28745# If the template does not know about datarootdir, expand it.
28746# FIXME: This hack should be removed a few years after 2.60.
28747ac_datarootdir_hack=; ac_datarootdir_seen=
28748ac_sed_dataroot='
28749/datarootdir/ {
28750  p
28751  q
28752}
28753/@datadir@/p
28754/@docdir@/p
28755/@infodir@/p
28756/@localedir@/p
28757/@mandir@/p'
28758case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28759*datarootdir*) ac_datarootdir_seen=yes;;
28760*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28761  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28762$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28763_ACEOF
28764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28765  ac_datarootdir_hack='
28766  s&@datadir@&$datadir&g
28767  s&@docdir@&$docdir&g
28768  s&@infodir@&$infodir&g
28769  s&@localedir@&$localedir&g
28770  s&@mandir@&$mandir&g
28771  s&\\\${datarootdir}&$datarootdir&g' ;;
28772esac
28773_ACEOF
28774
28775# Neutralize VPATH when `$srcdir' = `.'.
28776# Shell code in configure.ac might set extrasub.
28777# FIXME: do we really want to maintain this feature?
28778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28779ac_sed_extra="$ac_vpsub
28780$extrasub
28781_ACEOF
28782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28783:t
28784/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28785s|@configure_input@|$ac_sed_conf_input|;t t
28786s&@top_builddir@&$ac_top_builddir_sub&;t t
28787s&@top_build_prefix@&$ac_top_build_prefix&;t t
28788s&@srcdir@&$ac_srcdir&;t t
28789s&@abs_srcdir@&$ac_abs_srcdir&;t t
28790s&@top_srcdir@&$ac_top_srcdir&;t t
28791s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28792s&@builddir@&$ac_builddir&;t t
28793s&@abs_builddir@&$ac_abs_builddir&;t t
28794s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28795s&@INSTALL@&$ac_INSTALL&;t t
28796s&@MKDIR_P@&$ac_MKDIR_P&;t t
28797$ac_datarootdir_hack
28798"
28799eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28800  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28801
28802test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28803  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28804  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
28805      "$ac_tmp/out"`; test -z "$ac_out"; } &&
28806  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28807which seems to be undefined.  Please make sure it is defined" >&5
28808$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28809which seems to be undefined.  Please make sure it is defined" >&2;}
28810
28811  rm -f "$ac_tmp/stdin"
28812  case $ac_file in
28813  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28814  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28815  esac \
28816  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28817 ;;
28818  :H)
28819  #
28820  # CONFIG_HEADER
28821  #
28822  if test x"$ac_file" != x-; then
28823    {
28824      $as_echo "/* $configure_input  */" \
28825      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28826    } >"$ac_tmp/config.h" \
28827      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28828    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28829      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28830$as_echo "$as_me: $ac_file is unchanged" >&6;}
28831    else
28832      rm -f "$ac_file"
28833      mv "$ac_tmp/config.h" "$ac_file" \
28834	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
28835    fi
28836  else
28837    $as_echo "/* $configure_input  */" \
28838      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28839      || as_fn_error $? "could not create -" "$LINENO" 5
28840  fi
28841# Compute "$ac_file"'s index in $config_headers.
28842_am_arg="$ac_file"
28843_am_stamp_count=1
28844for _am_header in $config_headers :; do
28845  case $_am_header in
28846    $_am_arg | $_am_arg:* )
28847      break ;;
28848    * )
28849      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28850  esac
28851done
28852echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28853$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28854	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28855	 X"$_am_arg" : 'X\(//\)$' \| \
28856	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28857$as_echo X"$_am_arg" |
28858    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28859	    s//\1/
28860	    q
28861	  }
28862	  /^X\(\/\/\)[^/].*/{
28863	    s//\1/
28864	    q
28865	  }
28866	  /^X\(\/\/\)$/{
28867	    s//\1/
28868	    q
28869	  }
28870	  /^X\(\/\).*/{
28871	    s//\1/
28872	    q
28873	  }
28874	  s/.*/./; q'`/stamp-h$_am_stamp_count
28875 ;;
28876  :L)
28877  #
28878  # CONFIG_LINK
28879  #
28880
28881  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
28882    :
28883  else
28884    # Prefer the file from the source tree if names are identical.
28885    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
28886      ac_source=$srcdir/$ac_source
28887    fi
28888
28889    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
28890$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
28891
28892    if test ! -r "$ac_source"; then
28893      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
28894    fi
28895    rm -f "$ac_file"
28896
28897    # Try a relative symlink, then a hard link, then a copy.
28898    case $ac_source in
28899    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
28900	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
28901    esac
28902    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28903      ln "$ac_source" "$ac_file" 2>/dev/null ||
28904      cp -p "$ac_source" "$ac_file" ||
28905      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
28906  fi
28907 ;;
28908  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28909$as_echo "$as_me: executing $ac_file commands" >&6;}
28910 ;;
28911  esac
28912
28913
28914  case $ac_file$ac_mode in
28915    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28916  # Older Autoconf quotes --file arguments for eval, but not when files
28917  # are listed without --file.  Let's play safe and only enable the eval
28918  # if we detect the quoting.
28919  # TODO: see whether this extra hack can be removed once we start
28920  # requiring Autoconf 2.70 or later.
28921  case $CONFIG_FILES in #(
28922  *\'*) :
28923    eval set x "$CONFIG_FILES" ;; #(
28924  *) :
28925    set x $CONFIG_FILES ;; #(
28926  *) :
28927     ;;
28928esac
28929  shift
28930  # Used to flag and report bootstrapping failures.
28931  am_rc=0
28932  for am_mf
28933  do
28934    # Strip MF so we end up with the name of the file.
28935    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28936    # Check whether this is an Automake generated Makefile which includes
28937    # dependency-tracking related rules and includes.
28938    # Grep'ing the whole file directly is not great: AIX grep has a line
28939    # limit of 2048, but all sed's we know have understand at least 4000.
28940    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28941      || continue
28942    am_dirpart=`$as_dirname -- "$am_mf" ||
28943$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28944	 X"$am_mf" : 'X\(//\)[^/]' \| \
28945	 X"$am_mf" : 'X\(//\)$' \| \
28946	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28947$as_echo X"$am_mf" |
28948    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28949	    s//\1/
28950	    q
28951	  }
28952	  /^X\(\/\/\)[^/].*/{
28953	    s//\1/
28954	    q
28955	  }
28956	  /^X\(\/\/\)$/{
28957	    s//\1/
28958	    q
28959	  }
28960	  /^X\(\/\).*/{
28961	    s//\1/
28962	    q
28963	  }
28964	  s/.*/./; q'`
28965    am_filepart=`$as_basename -- "$am_mf" ||
28966$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28967	 X"$am_mf" : 'X\(//\)$' \| \
28968	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28969$as_echo X/"$am_mf" |
28970    sed '/^.*\/\([^/][^/]*\)\/*$/{
28971	    s//\1/
28972	    q
28973	  }
28974	  /^X\/\(\/\/\)$/{
28975	    s//\1/
28976	    q
28977	  }
28978	  /^X\/\(\/\).*/{
28979	    s//\1/
28980	    q
28981	  }
28982	  s/.*/./; q'`
28983    { echo "$as_me:$LINENO: cd "$am_dirpart" \
28984      && sed -e '/# am--include-marker/d' "$am_filepart" \
28985        | $MAKE -f - am--depfiles" >&5
28986   (cd "$am_dirpart" \
28987      && sed -e '/# am--include-marker/d' "$am_filepart" \
28988        | $MAKE -f - am--depfiles) >&5 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); } || am_rc=$?
28992  done
28993  if test $am_rc -ne 0; then
28994    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28996as_fn_error $? "Something went wrong bootstrapping makefile fragments
28997    for automatic dependency tracking.  Try re-running configure with the
28998    '--disable-dependency-tracking' option to at least be able to build
28999    the package (albeit without support for automatic dependency tracking).
29000See \`config.log' for more details" "$LINENO" 5; }
29001  fi
29002  { am_dirpart=; unset am_dirpart;}
29003  { am_filepart=; unset am_filepart;}
29004  { am_mf=; unset am_mf;}
29005  { am_rc=; unset am_rc;}
29006  rm -f conftest-deps.mk
29007}
29008 ;;
29009    "libtool":C)
29010
29011    # See if we are running on zsh, and set the options that allow our
29012    # commands through without removal of \ escapes.
29013    if test -n "${ZSH_VERSION+set}"; then
29014      setopt NO_GLOB_SUBST
29015    fi
29016
29017    cfgfile=${ofile}T
29018    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29019    $RM "$cfgfile"
29020
29021    cat <<_LT_EOF >> "$cfgfile"
29022#! $SHELL
29023# Generated automatically by $as_me ($PACKAGE) $VERSION
29024# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29025
29026# Provide generalized library-building support services.
29027# Written by Gordon Matzigkeit, 1996
29028
29029# Copyright (C) 2014 Free Software Foundation, Inc.
29030# This is free software; see the source for copying conditions.  There is NO
29031# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29032
29033# GNU Libtool is free software; you can redistribute it and/or modify
29034# it under the terms of the GNU General Public License as published by
29035# the Free Software Foundation; either version 2 of of the License, or
29036# (at your option) any later version.
29037#
29038# As a special exception to the GNU General Public License, if you
29039# distribute this file as part of a program or library that is built
29040# using GNU Libtool, you may include this file under the  same
29041# distribution terms that you use for the rest of that program.
29042#
29043# GNU Libtool is distributed in the hope that it will be useful, but
29044# WITHOUT ANY WARRANTY; without even the implied warranty of
29045# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29046# GNU General Public License for more details.
29047#
29048# You should have received a copy of the GNU General Public License
29049# along with this program.  If not, see <http://www.gnu.org/licenses/>.
29050
29051
29052# The names of the tagged configurations supported by this script.
29053available_tags='CXX '
29054
29055# Configured defaults for sys_lib_dlsearch_path munging.
29056: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29057
29058# ### BEGIN LIBTOOL CONFIG
29059
29060# Which release of libtool.m4 was used?
29061macro_version=$macro_version
29062macro_revision=$macro_revision
29063
29064# Whether or not to build static libraries.
29065build_old_libs=$enable_static
29066
29067# Whether or not to build shared libraries.
29068build_libtool_libs=$enable_shared
29069
29070# What type of objects to build.
29071pic_mode=$pic_mode
29072
29073# Whether or not to optimize for fast installation.
29074fast_install=$enable_fast_install
29075
29076# Shared archive member basename,for filename based shared library versioning on AIX.
29077shared_archive_member_spec=$shared_archive_member_spec
29078
29079# Shell to use when invoking shell scripts.
29080SHELL=$lt_SHELL
29081
29082# An echo program that protects backslashes.
29083ECHO=$lt_ECHO
29084
29085# The PATH separator for the build system.
29086PATH_SEPARATOR=$lt_PATH_SEPARATOR
29087
29088# The host system.
29089host_alias=$host_alias
29090host=$host
29091host_os=$host_os
29092
29093# The build system.
29094build_alias=$build_alias
29095build=$build
29096build_os=$build_os
29097
29098# A sed program that does not truncate output.
29099SED=$lt_SED
29100
29101# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29102Xsed="\$SED -e 1s/^X//"
29103
29104# A grep program that handles long lines.
29105GREP=$lt_GREP
29106
29107# An ERE matcher.
29108EGREP=$lt_EGREP
29109
29110# A literal string matcher.
29111FGREP=$lt_FGREP
29112
29113# A BSD- or MS-compatible name lister.
29114NM=$lt_NM
29115
29116# Whether we need soft or hard links.
29117LN_S=$lt_LN_S
29118
29119# What is the maximum length of a command?
29120max_cmd_len=$max_cmd_len
29121
29122# Object file suffix (normally "o").
29123objext=$ac_objext
29124
29125# Executable file suffix (normally "").
29126exeext=$exeext
29127
29128# whether the shell understands "unset".
29129lt_unset=$lt_unset
29130
29131# turn spaces into newlines.
29132SP2NL=$lt_lt_SP2NL
29133
29134# turn newlines into spaces.
29135NL2SP=$lt_lt_NL2SP
29136
29137# convert \$build file names to \$host format.
29138to_host_file_cmd=$lt_cv_to_host_file_cmd
29139
29140# convert \$build files to toolchain format.
29141to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29142
29143# An object symbol dumper.
29144OBJDUMP=$lt_OBJDUMP
29145
29146# Method to check whether dependent libraries are shared objects.
29147deplibs_check_method=$lt_deplibs_check_method
29148
29149# Command to use when deplibs_check_method = "file_magic".
29150file_magic_cmd=$lt_file_magic_cmd
29151
29152# How to find potential files when deplibs_check_method = "file_magic".
29153file_magic_glob=$lt_file_magic_glob
29154
29155# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29156want_nocaseglob=$lt_want_nocaseglob
29157
29158# DLL creation program.
29159DLLTOOL=$lt_DLLTOOL
29160
29161# Command to associate shared and link libraries.
29162sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29163
29164# The archiver.
29165AR=$lt_AR
29166
29167# Flags to create an archive.
29168AR_FLAGS=$lt_AR_FLAGS
29169
29170# How to feed a file listing to the archiver.
29171archiver_list_spec=$lt_archiver_list_spec
29172
29173# A symbol stripping program.
29174STRIP=$lt_STRIP
29175
29176# Commands used to install an old-style archive.
29177RANLIB=$lt_RANLIB
29178old_postinstall_cmds=$lt_old_postinstall_cmds
29179old_postuninstall_cmds=$lt_old_postuninstall_cmds
29180
29181# Whether to use a lock for old archive extraction.
29182lock_old_archive_extraction=$lock_old_archive_extraction
29183
29184# A C compiler.
29185LTCC=$lt_CC
29186
29187# LTCC compiler flags.
29188LTCFLAGS=$lt_CFLAGS
29189
29190# Take the output of nm and produce a listing of raw symbols and C names.
29191global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29192
29193# Transform the output of nm in a proper C declaration.
29194global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29195
29196# Transform the output of nm into a list of symbols to manually relocate.
29197global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29198
29199# Transform the output of nm in a C name address pair.
29200global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29201
29202# Transform the output of nm in a C name address pair when lib prefix is needed.
29203global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29204
29205# The name lister interface.
29206nm_interface=$lt_lt_cv_nm_interface
29207
29208# Specify filename containing input files for \$NM.
29209nm_file_list_spec=$lt_nm_file_list_spec
29210
29211# The root where to search for dependent libraries,and where our libraries should be installed.
29212lt_sysroot=$lt_sysroot
29213
29214# Command to truncate a binary pipe.
29215lt_truncate_bin=$lt_lt_cv_truncate_bin
29216
29217# The name of the directory that contains temporary libtool files.
29218objdir=$objdir
29219
29220# Used to examine libraries when file_magic_cmd begins with "file".
29221MAGIC_CMD=$MAGIC_CMD
29222
29223# Must we lock files when doing compilation?
29224need_locks=$lt_need_locks
29225
29226# Manifest tool.
29227MANIFEST_TOOL=$lt_MANIFEST_TOOL
29228
29229# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29230DSYMUTIL=$lt_DSYMUTIL
29231
29232# Tool to change global to local symbols on Mac OS X.
29233NMEDIT=$lt_NMEDIT
29234
29235# Tool to manipulate fat objects and archives on Mac OS X.
29236LIPO=$lt_LIPO
29237
29238# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29239OTOOL=$lt_OTOOL
29240
29241# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29242OTOOL64=$lt_OTOOL64
29243
29244# Old archive suffix (normally "a").
29245libext=$libext
29246
29247# Shared library suffix (normally ".so").
29248shrext_cmds=$lt_shrext_cmds
29249
29250# The commands to extract the exported symbol list from a shared archive.
29251extract_expsyms_cmds=$lt_extract_expsyms_cmds
29252
29253# Variables whose values should be saved in libtool wrapper scripts and
29254# restored at link time.
29255variables_saved_for_relink=$lt_variables_saved_for_relink
29256
29257# Do we need the "lib" prefix for modules?
29258need_lib_prefix=$need_lib_prefix
29259
29260# Do we need a version for libraries?
29261need_version=$need_version
29262
29263# Library versioning type.
29264version_type=$version_type
29265
29266# Shared library runtime path variable.
29267runpath_var=$runpath_var
29268
29269# Shared library path variable.
29270shlibpath_var=$shlibpath_var
29271
29272# Is shlibpath searched before the hard-coded library search path?
29273shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29274
29275# Format of library name prefix.
29276libname_spec=$lt_libname_spec
29277
29278# List of archive names.  First name is the real one, the rest are links.
29279# The last name is the one that the linker finds with -lNAME
29280library_names_spec=$lt_library_names_spec
29281
29282# The coded name of the library, if different from the real name.
29283soname_spec=$lt_soname_spec
29284
29285# Permission mode override for installation of shared libraries.
29286install_override_mode=$lt_install_override_mode
29287
29288# Command to use after installation of a shared archive.
29289postinstall_cmds=$lt_postinstall_cmds
29290
29291# Command to use after uninstallation of a shared archive.
29292postuninstall_cmds=$lt_postuninstall_cmds
29293
29294# Commands used to finish a libtool library installation in a directory.
29295finish_cmds=$lt_finish_cmds
29296
29297# As "finish_cmds", except a single script fragment to be evaled but
29298# not shown.
29299finish_eval=$lt_finish_eval
29300
29301# Whether we should hardcode library paths into libraries.
29302hardcode_into_libs=$hardcode_into_libs
29303
29304# Compile-time system search path for libraries.
29305sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29306
29307# Detected run-time system search path for libraries.
29308sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29309
29310# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29311configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29312
29313# Whether dlopen is supported.
29314dlopen_support=$enable_dlopen
29315
29316# Whether dlopen of programs is supported.
29317dlopen_self=$enable_dlopen_self
29318
29319# Whether dlopen of statically linked programs is supported.
29320dlopen_self_static=$enable_dlopen_self_static
29321
29322# Commands to strip libraries.
29323old_striplib=$lt_old_striplib
29324striplib=$lt_striplib
29325
29326
29327# The linker used to build libraries.
29328LD=$lt_LD
29329
29330# How to create reloadable object files.
29331reload_flag=$lt_reload_flag
29332reload_cmds=$lt_reload_cmds
29333
29334# Commands used to build an old-style archive.
29335old_archive_cmds=$lt_old_archive_cmds
29336
29337# A language specific compiler.
29338CC=$lt_compiler
29339
29340# Is the compiler the GNU compiler?
29341with_gcc=$GCC
29342
29343# Compiler flag to turn off builtin functions.
29344no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29345
29346# Additional compiler flags for building library objects.
29347pic_flag=$lt_lt_prog_compiler_pic
29348
29349# How to pass a linker flag through the compiler.
29350wl=$lt_lt_prog_compiler_wl
29351
29352# Compiler flag to prevent dynamic linking.
29353link_static_flag=$lt_lt_prog_compiler_static
29354
29355# Does compiler simultaneously support -c and -o options?
29356compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29357
29358# Whether or not to add -lc for building shared libraries.
29359build_libtool_need_lc=$archive_cmds_need_lc
29360
29361# Whether or not to disallow shared libs when runtime libs are static.
29362allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29363
29364# Compiler flag to allow reflexive dlopens.
29365export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29366
29367# Compiler flag to generate shared objects directly from archives.
29368whole_archive_flag_spec=$lt_whole_archive_flag_spec
29369
29370# Whether the compiler copes with passing no objects directly.
29371compiler_needs_object=$lt_compiler_needs_object
29372
29373# Create an old-style archive from a shared archive.
29374old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29375
29376# Create a temporary old-style archive to link instead of a shared archive.
29377old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29378
29379# Commands used to build a shared archive.
29380archive_cmds=$lt_archive_cmds
29381archive_expsym_cmds=$lt_archive_expsym_cmds
29382
29383# Commands used to build a loadable module if different from building
29384# a shared archive.
29385module_cmds=$lt_module_cmds
29386module_expsym_cmds=$lt_module_expsym_cmds
29387
29388# Whether we are building with GNU ld or not.
29389with_gnu_ld=$lt_with_gnu_ld
29390
29391# Flag that allows shared libraries with undefined symbols to be built.
29392allow_undefined_flag=$lt_allow_undefined_flag
29393
29394# Flag that enforces no undefined symbols.
29395no_undefined_flag=$lt_no_undefined_flag
29396
29397# Flag to hardcode \$libdir into a binary during linking.
29398# This must work even if \$libdir does not exist
29399hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29400
29401# Whether we need a single "-rpath" flag with a separated argument.
29402hardcode_libdir_separator=$lt_hardcode_libdir_separator
29403
29404# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29405# DIR into the resulting binary.
29406hardcode_direct=$hardcode_direct
29407
29408# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29409# DIR into the resulting binary and the resulting library dependency is
29410# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29411# library is relocated.
29412hardcode_direct_absolute=$hardcode_direct_absolute
29413
29414# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29415# into the resulting binary.
29416hardcode_minus_L=$hardcode_minus_L
29417
29418# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29419# into the resulting binary.
29420hardcode_shlibpath_var=$hardcode_shlibpath_var
29421
29422# Set to "yes" if building a shared library automatically hardcodes DIR
29423# into the library and all subsequent libraries and executables linked
29424# against it.
29425hardcode_automatic=$hardcode_automatic
29426
29427# Set to yes if linker adds runtime paths of dependent libraries
29428# to runtime path list.
29429inherit_rpath=$inherit_rpath
29430
29431# Whether libtool must link a program against all its dependency libraries.
29432link_all_deplibs=$link_all_deplibs
29433
29434# Set to "yes" if exported symbols are required.
29435always_export_symbols=$always_export_symbols
29436
29437# The commands to list exported symbols.
29438export_symbols_cmds=$lt_export_symbols_cmds
29439
29440# Symbols that should not be listed in the preloaded symbols.
29441exclude_expsyms=$lt_exclude_expsyms
29442
29443# Symbols that must always be exported.
29444include_expsyms=$lt_include_expsyms
29445
29446# Commands necessary for linking programs (against libraries) with templates.
29447prelink_cmds=$lt_prelink_cmds
29448
29449# Commands necessary for finishing linking programs.
29450postlink_cmds=$lt_postlink_cmds
29451
29452# Specify filename containing input files.
29453file_list_spec=$lt_file_list_spec
29454
29455# How to hardcode a shared library path into an executable.
29456hardcode_action=$hardcode_action
29457
29458# The directories searched by this compiler when creating a shared library.
29459compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
29460
29461# Dependencies to place before and after the objects being linked to
29462# create a shared library.
29463predep_objects=$lt_predep_objects
29464postdep_objects=$lt_postdep_objects
29465predeps=$lt_predeps
29466postdeps=$lt_postdeps
29467
29468# The library search path used internally by the compiler when linking
29469# a shared library.
29470compiler_lib_search_path=$lt_compiler_lib_search_path
29471
29472# ### END LIBTOOL CONFIG
29473
29474_LT_EOF
29475
29476    cat <<'_LT_EOF' >> "$cfgfile"
29477
29478# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
29479
29480# func_munge_path_list VARIABLE PATH
29481# -----------------------------------
29482# VARIABLE is name of variable containing _space_ separated list of
29483# directories to be munged by the contents of PATH, which is string
29484# having a format:
29485# "DIR[:DIR]:"
29486#       string "DIR[ DIR]" will be prepended to VARIABLE
29487# ":DIR[:DIR]"
29488#       string "DIR[ DIR]" will be appended to VARIABLE
29489# "DIRP[:DIRP]::[DIRA:]DIRA"
29490#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
29491#       "DIRA[ DIRA]" will be appended to VARIABLE
29492# "DIR[:DIR]"
29493#       VARIABLE will be replaced by "DIR[ DIR]"
29494func_munge_path_list ()
29495{
29496    case x$2 in
29497    x)
29498        ;;
29499    *:)
29500        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
29501        ;;
29502    x:*)
29503        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
29504        ;;
29505    *::*)
29506        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
29507        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
29508        ;;
29509    *)
29510        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
29511        ;;
29512    esac
29513}
29514
29515
29516# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
29517func_cc_basename ()
29518{
29519    for cc_temp in $*""; do
29520      case $cc_temp in
29521        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
29522        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
29523        \-*) ;;
29524        *) break;;
29525      esac
29526    done
29527    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
29528}
29529
29530
29531# ### END FUNCTIONS SHARED WITH CONFIGURE
29532
29533_LT_EOF
29534
29535  case $host_os in
29536  aix3*)
29537    cat <<\_LT_EOF >> "$cfgfile"
29538# AIX sometimes has problems with the GCC collect2 program.  For some
29539# reason, if we set the COLLECT_NAMES environment variable, the problems
29540# vanish in a puff of smoke.
29541if test set != "${COLLECT_NAMES+set}"; then
29542  COLLECT_NAMES=
29543  export COLLECT_NAMES
29544fi
29545_LT_EOF
29546    ;;
29547  esac
29548
29549
29550ltmain=$ac_aux_dir/ltmain.sh
29551
29552
29553  # We use sed instead of cat because bash on DJGPP gets confused if
29554  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
29555  # text mode, it properly converts lines to CR/LF.  This bash problem
29556  # is reportedly fixed, but why not run on old versions too?
29557  sed '$q' "$ltmain" >> "$cfgfile" \
29558     || (rm -f "$cfgfile"; exit 1)
29559
29560   mv -f "$cfgfile" "$ofile" ||
29561    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29562  chmod +x "$ofile"
29563
29564
29565    cat <<_LT_EOF >> "$ofile"
29566
29567# ### BEGIN LIBTOOL TAG CONFIG: CXX
29568
29569# The linker used to build libraries.
29570LD=$lt_LD_CXX
29571
29572# How to create reloadable object files.
29573reload_flag=$lt_reload_flag_CXX
29574reload_cmds=$lt_reload_cmds_CXX
29575
29576# Commands used to build an old-style archive.
29577old_archive_cmds=$lt_old_archive_cmds_CXX
29578
29579# A language specific compiler.
29580CC=$lt_compiler_CXX
29581
29582# Is the compiler the GNU compiler?
29583with_gcc=$GCC_CXX
29584
29585# Compiler flag to turn off builtin functions.
29586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29587
29588# Additional compiler flags for building library objects.
29589pic_flag=$lt_lt_prog_compiler_pic_CXX
29590
29591# How to pass a linker flag through the compiler.
29592wl=$lt_lt_prog_compiler_wl_CXX
29593
29594# Compiler flag to prevent dynamic linking.
29595link_static_flag=$lt_lt_prog_compiler_static_CXX
29596
29597# Does compiler simultaneously support -c and -o options?
29598compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29599
29600# Whether or not to add -lc for building shared libraries.
29601build_libtool_need_lc=$archive_cmds_need_lc_CXX
29602
29603# Whether or not to disallow shared libs when runtime libs are static.
29604allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29605
29606# Compiler flag to allow reflexive dlopens.
29607export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29608
29609# Compiler flag to generate shared objects directly from archives.
29610whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29611
29612# Whether the compiler copes with passing no objects directly.
29613compiler_needs_object=$lt_compiler_needs_object_CXX
29614
29615# Create an old-style archive from a shared archive.
29616old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29617
29618# Create a temporary old-style archive to link instead of a shared archive.
29619old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29620
29621# Commands used to build a shared archive.
29622archive_cmds=$lt_archive_cmds_CXX
29623archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29624
29625# Commands used to build a loadable module if different from building
29626# a shared archive.
29627module_cmds=$lt_module_cmds_CXX
29628module_expsym_cmds=$lt_module_expsym_cmds_CXX
29629
29630# Whether we are building with GNU ld or not.
29631with_gnu_ld=$lt_with_gnu_ld_CXX
29632
29633# Flag that allows shared libraries with undefined symbols to be built.
29634allow_undefined_flag=$lt_allow_undefined_flag_CXX
29635
29636# Flag that enforces no undefined symbols.
29637no_undefined_flag=$lt_no_undefined_flag_CXX
29638
29639# Flag to hardcode \$libdir into a binary during linking.
29640# This must work even if \$libdir does not exist
29641hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29642
29643# Whether we need a single "-rpath" flag with a separated argument.
29644hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29645
29646# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29647# DIR into the resulting binary.
29648hardcode_direct=$hardcode_direct_CXX
29649
29650# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
29651# DIR into the resulting binary and the resulting library dependency is
29652# "absolute",i.e impossible to change by setting \$shlibpath_var if the
29653# library is relocated.
29654hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29655
29656# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29657# into the resulting binary.
29658hardcode_minus_L=$hardcode_minus_L_CXX
29659
29660# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29661# into the resulting binary.
29662hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29663
29664# Set to "yes" if building a shared library automatically hardcodes DIR
29665# into the library and all subsequent libraries and executables linked
29666# against it.
29667hardcode_automatic=$hardcode_automatic_CXX
29668
29669# Set to yes if linker adds runtime paths of dependent libraries
29670# to runtime path list.
29671inherit_rpath=$inherit_rpath_CXX
29672
29673# Whether libtool must link a program against all its dependency libraries.
29674link_all_deplibs=$link_all_deplibs_CXX
29675
29676# Set to "yes" if exported symbols are required.
29677always_export_symbols=$always_export_symbols_CXX
29678
29679# The commands to list exported symbols.
29680export_symbols_cmds=$lt_export_symbols_cmds_CXX
29681
29682# Symbols that should not be listed in the preloaded symbols.
29683exclude_expsyms=$lt_exclude_expsyms_CXX
29684
29685# Symbols that must always be exported.
29686include_expsyms=$lt_include_expsyms_CXX
29687
29688# Commands necessary for linking programs (against libraries) with templates.
29689prelink_cmds=$lt_prelink_cmds_CXX
29690
29691# Commands necessary for finishing linking programs.
29692postlink_cmds=$lt_postlink_cmds_CXX
29693
29694# Specify filename containing input files.
29695file_list_spec=$lt_file_list_spec_CXX
29696
29697# How to hardcode a shared library path into an executable.
29698hardcode_action=$hardcode_action_CXX
29699
29700# The directories searched by this compiler when creating a shared library.
29701compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29702
29703# Dependencies to place before and after the objects being linked to
29704# create a shared library.
29705predep_objects=$lt_predep_objects_CXX
29706postdep_objects=$lt_postdep_objects_CXX
29707predeps=$lt_predeps_CXX
29708postdeps=$lt_postdeps_CXX
29709
29710# The library search path used internally by the compiler when linking
29711# a shared library.
29712compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29713
29714# ### END LIBTOOL TAG CONFIG: CXX
29715_LT_EOF
29716
29717 ;;
29718    "perl/annotator/Makefile":C)
29719    ( cd perl/annotator;
29720      $PERL Makefile.PL $MAKE_MAKER_ARGS;
29721      $PERL -i -pe'next unless /^uninstall_from_sitedirs ::/;
29722		print $_;
29723		$_ = <>;
29724		s/\$\(SITEARCHEXP\)/\$\(DESTINSTALLSITEARCH\)/;
29725		$_ .= <<'END';
29726	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/auto/\$(FULLEXT)/.packlist\"
29727	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/perllocal.pod\"
29728END
29729	  ' Makefile
29730    )
29731 ;;
29732    "perl/imap/Makefile":C)
29733    ( cd perl/imap;
29734      $PERL Makefile.PL $MAKE_MAKER_ARGS;
29735      $PERL -i -pe'next unless /^uninstall_from_sitedirs ::/;
29736		print $_;
29737		$_ = <>;
29738		s/\$\(SITEARCHEXP\)/\$\(DESTINSTALLSITEARCH\)/;
29739		$_ .= <<'END';
29740	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/auto/\$(FULLEXT)/.packlist\"
29741	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/perllocal.pod\"
29742END
29743	  ' Makefile
29744    )
29745 ;;
29746    "perl/sieve/managesieve/Makefile":C)
29747    ( cd perl/sieve/managesieve;
29748      $PERL Makefile.PL $MAKE_MAKER_ARGS;
29749      $PERL -i -pe'next unless /^uninstall_from_sitedirs ::/;
29750		print $_;
29751		$_ = <>;
29752		s/\$\(SITEARCHEXP\)/\$\(DESTINSTALLSITEARCH\)/;
29753		$_ .= <<'END';
29754	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/auto/\$(FULLEXT)/.packlist\"
29755	\$(RM_F) \"\$(DESTINSTALLSITEARCH)/perllocal.pod\"
29756END
29757	  ' Makefile
29758    )
29759 ;;
29760
29761  esac
29762done # for ac_tag
29763
29764
29765as_fn_exit 0
29766_ACEOF
29767ac_clean_files=$ac_clean_files_save
29768
29769test $ac_write_fail = 0 ||
29770  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29771
29772
29773# configure is writing to config.log, and then calls config.status.
29774# config.status does its own redirection, appending to config.log.
29775# Unfortunately, on DOS this fails, as config.log is still kept open
29776# by configure, so config.status won't be able to write to it; its
29777# output is simply discarded.  So we exec the FD to /dev/null,
29778# effectively closing config.log, so it can be properly (re)opened and
29779# appended to by config.status.  When coming back to configure, we
29780# need to make the FD available again.
29781if test "$no_create" != yes; then
29782  ac_cs_success=:
29783  ac_config_status_args=
29784  test "$silent" = yes &&
29785    ac_config_status_args="$ac_config_status_args --quiet"
29786  exec 5>/dev/null
29787  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29788  exec 5>>config.log
29789  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29790  # would make configure fail if this is the last instruction.
29791  $ac_cs_success || as_fn_exit 1
29792fi
29793if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29795$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29796fi
29797
29798echo "
29799Cyrus Server configured components
29800
29801   event notification: $enable_event_notification
29802   gssapi:             $gssapi
29803   autocreate:         $enable_autocreate
29804   idled:              $enable_idled
29805   httpd:              $enable_http
29806   kerberos V4:        $krb4
29807   murder:             $enable_murder
29808   nntpd:              $enable_nntp
29809   replication:        $enable_replication
29810   sieve:              $enable_sieve
29811   calalarmd:          $enable_calalarmd
29812   objectstore:        $enable_objectstore
29813   backup:             $enable_backup
29814   com_err:            $with_com_err
29815
29816External dependencies:
29817   ldap:               $have_ldap
29818   openssl:            $with_ssl
29819   zlib:               $with_zlib
29820   pcre:               $cyrus_cv_pcre_utf8
29821   clamav:             $with_clamav
29822   -----------------------
29823   caringo:            $with_caringo
29824   openio:             $with_openio
29825   -----------------------
29826   nghttp2:            $with_nghttp2
29827   brotli:             $with_brotli
29828   xml2:               $with_xml2
29829   ical:               $with_ical
29830   icu4c:              $with_icu4c
29831   shapelib:           $with_shapelib
29832
29833Database support:
29834   mysql:              $with_mysql
29835   postgresql:         $use_pgsql
29836   sqlite:             $use_sqlite
29837   lmdb:               $use_lmdb
29838
29839Search engine:
29840   squat:              $enable_squat
29841   sphinx:             $enable_sphinx
29842   xapian:             $enable_xapian
29843   xapian_flavor:      $xapian_flavor
29844
29845Hardware support:
29846   SSE4.2:             $cyrus_cv_sse42
29847
29848Installation directories:
29849   prefix:             $prefix
29850   sysconfdir:         $sysconfdir
29851"
29852