source: npl/mailserver/dspam/dspam-3.10.2/configure @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 505.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for dspam 3.10.2.
4#
5# Report bugs to <dspam-devel@lists.sourceforge.net>.
6#
7# Copyright (C) 2002-2012 DSPAM Project
8#
9#
10# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
12# Foundation, Inc.
13#
14#
15# This configure script is free software; the Free Software Foundation
16# gives unlimited permission to copy, distribute and modify it.
17## -------------------- ##
18## M4sh Initialization. ##
19## -------------------- ##
20
21# Be more Bourne compatible
22DUALCASE=1; export DUALCASE # for MKS sh
23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24  emulate sh
25  NULLCMD=:
26  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27  # is contrary to our usage.  Disable this feature.
28  alias -g '${1+"$@"}'='"$@"'
29  setopt NO_GLOB_SUBST
30else
31  case `(set -o) 2>/dev/null` in #(
32  *posix*) :
33    set -o posix ;; #(
34  *) :
35     ;;
36esac
37fi
38
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47# Prefer a ksh shell builtin over an external printf program on Solaris,
48# but without wasting forks for bash or zsh.
49if test -z "$BASH_VERSION$ZSH_VERSION" \
50    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='print -r --'
52  as_echo_n='print -rn --'
53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54  as_echo='printf %s\n'
55  as_echo_n='printf %s'
56else
57  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59    as_echo_n='/usr/ucb/echo -n'
60  else
61    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62    as_echo_n_body='eval
63      arg=$1;
64      case $arg in #(
65      *"$as_nl"*)
66        expr "X$arg" : "X\\(.*\\)$as_nl";
67        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68      esac;
69      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70    '
71    export as_echo_n_body
72    as_echo_n='sh -c $as_echo_n_body as_echo'
73  fi
74  export as_echo_body
75  as_echo='sh -c $as_echo_body as_echo'
76fi
77
78# The user is always right.
79if test "${PATH_SEPARATOR+set}" != set; then
80  PATH_SEPARATOR=:
81  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83      PATH_SEPARATOR=';'
84  }
85fi
86
87
88# IFS
89# We need space, tab and new line, in precisely that order.  Quoting is
90# there to prevent editors from complaining about space-tab.
91# (If _AS_PATH_WALK were called with IFS unset, it would disable word
92# splitting by setting IFS to empty value.)
93IFS=" ""        $as_nl"
94
95# Find who we are.  Look in the path if we contain no directory separator.
96as_myself=
97case $0 in #((
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105  done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  exit 1
118fi
119
120# Unset variables that we do not need and which cause bugs (e.g. in
121# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
122# suppresses any "Segmentation fault" message there.  '((' could
123# trigger a bug in pdksh 5.2.14.
124for as_var in BASH_ENV ENV MAIL MAILPATH
125do eval test x\${$as_var+set} = xset \
126  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
127done
128PS1='$ '
129PS2='> '
130PS4='+ '
131
132# NLS nuisances.
133LC_ALL=C
134export LC_ALL
135LANGUAGE=C
136export LANGUAGE
137
138# CDPATH.
139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140
141if test "x$CONFIG_SHELL" = x; then
142  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143  emulate sh
144  NULLCMD=:
145  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146  # is contrary to our usage.  Disable this feature.
147  alias -g '\${1+\"\$@\"}'='\"\$@\"'
148  setopt NO_GLOB_SUBST
149else
150  case \`(set -o) 2>/dev/null\` in #(
151  *posix*) :
152    set -o posix ;; #(
153  *) :
154     ;;
155esac
156fi
157"
158  as_required="as_fn_return () { (exit \$1); }
159as_fn_success () { as_fn_return 0; }
160as_fn_failure () { as_fn_return 1; }
161as_fn_ret_success () { return 0; }
162as_fn_ret_failure () { return 1; }
163
164exitcode=0
165as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
171else
172  exitcode=1; echo positional parameters were not saved.
173fi
174test x\$exitcode = x0 || exit 1"
175  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179
180  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184    PATH=/empty FPATH=/empty; export PATH FPATH
185    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null; then :
189  as_have_required=yes
190else
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
195else
196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197as_found=false
198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199do
200  IFS=$as_save_IFS
201  test -z "$as_dir" && as_dir=.
202  as_found=:
203  case $as_dir in #(
204         /*)
205           for as_base in sh bash ksh sh5; do
206             # Try only shells that exist, to save several forks.
207             as_shell=$as_dir/$as_base
208             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
209                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  CONFIG_SHELL=$as_shell as_have_required=yes
211                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212  break 2
213fi
214fi
215           done;;
216       esac
217  as_found=false
218done
219$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
220              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
221  CONFIG_SHELL=$SHELL as_have_required=yes
222fi; }
223IFS=$as_save_IFS
224
225
226      if test "x$CONFIG_SHELL" != x; then :
227  # We cannot yet assume a decent shell, so we have to provide a
228        # neutralization value for shells without unset; and this also
229        # works around shells that cannot unset nonexistent variables.
230        # Preserve -v and -x to the replacement shell.
231        BASH_ENV=/dev/null
232        ENV=/dev/null
233        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234        export CONFIG_SHELL
235        case $- in # ((((
236          *v*x* | *x*v* ) as_opts=-vx ;;
237          *v* ) as_opts=-v ;;
238          *x* ) as_opts=-x ;;
239          * ) as_opts= ;;
240        esac
241        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242fi
243
244    if test x$as_have_required = xno; then :
245  $as_echo "$0: This script requires a shell more modern than all"
246  $as_echo "$0: the shells that I found on your system."
247  if test x${ZSH_VERSION+set} = xset ; then
248    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
249    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250  else
251    $as_echo "$0: Please tell bug-autoconf@gnu.org and
252$0: dspam-devel@lists.sourceforge.net about your system,
253$0: including any error possibly output before this
254$0: message. Then install a modern shell, or manually run
255$0: the script under such a shell if you do have one."
256  fi
257  exit 1
258fi
259fi
260fi
261SHELL=${CONFIG_SHELL-/bin/sh}
262export SHELL
263# Unset more variables known to interfere with behavior of common tools.
264CLICOLOR_FORCE= GREP_OPTIONS=
265unset CLICOLOR_FORCE GREP_OPTIONS
266
267## --------------------- ##
268## M4sh Shell Functions. ##
269## --------------------- ##
270# as_fn_unset VAR
271# ---------------
272# Portably unset VAR.
273as_fn_unset ()
274{
275  { eval $1=; unset $1;}
276}
277as_unset=as_fn_unset
278
279# as_fn_set_status STATUS
280# -----------------------
281# Set $? to STATUS, without forking.
282as_fn_set_status ()
283{
284  return $1
285} # as_fn_set_status
286
287# as_fn_exit STATUS
288# -----------------
289# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290as_fn_exit ()
291{
292  set +e
293  as_fn_set_status $1
294  exit $1
295} # as_fn_exit
296
297# as_fn_mkdir_p
298# -------------
299# Create "$as_dir" as a directory, including parents if necessary.
300as_fn_mkdir_p ()
301{
302
303  case $as_dir in #(
304  -*) as_dir=./$as_dir;;
305  esac
306  test -d "$as_dir" || eval $as_mkdir_p || {
307    as_dirs=
308    while :; do
309      case $as_dir in #(
310      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311      *) as_qdir=$as_dir;;
312      esac
313      as_dirs="'$as_qdir' $as_dirs"
314      as_dir=`$as_dirname -- "$as_dir" ||
315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
316         X"$as_dir" : 'X\(//\)[^/]' \| \
317         X"$as_dir" : 'X\(//\)$' \| \
318         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
319$as_echo X"$as_dir" |
320    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321            s//\1/
322            q
323          }
324          /^X\(\/\/\)[^/].*/{
325            s//\1/
326            q
327          }
328          /^X\(\/\/\)$/{
329            s//\1/
330            q
331          }
332          /^X\(\/\).*/{
333            s//\1/
334            q
335          }
336          s/.*/./; q'`
337      test -d "$as_dir" && break
338    done
339    test -z "$as_dirs" || eval "mkdir $as_dirs"
340  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
341
342
343} # as_fn_mkdir_p
344# as_fn_append VAR VALUE
345# ----------------------
346# Append the text in VALUE to the end of the definition contained in VAR. Take
347# advantage of any shell optimizations that allow amortized linear growth over
348# repeated appends, instead of the typical quadratic growth present in naive
349# implementations.
350if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
351  eval 'as_fn_append ()
352  {
353    eval $1+=\$2
354  }'
355else
356  as_fn_append ()
357  {
358    eval $1=\$$1\$2
359  }
360fi # as_fn_append
361
362# as_fn_arith ARG...
363# ------------------
364# Perform arithmetic evaluation on the ARGs, and store the result in the
365# global $as_val. Take advantage of shells that can avoid forks. The arguments
366# must be portable across $(()) and expr.
367if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368  eval 'as_fn_arith ()
369  {
370    as_val=$(( $* ))
371  }'
372else
373  as_fn_arith ()
374  {
375    as_val=`expr "$@" || test $? -eq 1`
376  }
377fi # as_fn_arith
378
379
380# as_fn_error STATUS ERROR [LINENO LOG_FD]
381# ----------------------------------------
382# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
383# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
384# script with STATUS, using 1 if that was 0.
385as_fn_error ()
386{
387  as_status=$1; test $as_status -eq 0 && as_status=1
388  if test "$4"; then
389    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
390    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391  fi
392  $as_echo "$as_me: error: $2" >&2
393  as_fn_exit $as_status
394} # as_fn_error
395
396if expr a : '\(a\)' >/dev/null 2>&1 &&
397   test "X`expr 00001 : '.*\(...\)'`" = X001; then
398  as_expr=expr
399else
400  as_expr=false
401fi
402
403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404  as_basename=basename
405else
406  as_basename=false
407fi
408
409if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410  as_dirname=dirname
411else
412  as_dirname=false
413fi
414
415as_me=`$as_basename -- "$0" ||
416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
417         X"$0" : 'X\(//\)$' \| \
418         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419$as_echo X/"$0" |
420    sed '/^.*\/\([^/][^/]*\)\/*$/{
421            s//\1/
422            q
423          }
424          /^X\/\(\/\/\)$/{
425            s//\1/
426            q
427          }
428          /^X\/\(\/\).*/{
429            s//\1/
430            q
431          }
432          s/.*/./; q'`
433
434# Avoid depending upon Character Ranges.
435as_cr_letters='abcdefghijklmnopqrstuvwxyz'
436as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
437as_cr_Letters=$as_cr_letters$as_cr_LETTERS
438as_cr_digits='0123456789'
439as_cr_alnum=$as_cr_Letters$as_cr_digits
440
441
442  as_lineno_1=$LINENO as_lineno_1a=$LINENO
443  as_lineno_2=$LINENO as_lineno_2a=$LINENO
444  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
445  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
446  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
447  sed -n '
448    p
449    /[$]LINENO/=
450  ' <$as_myself |
451    sed '
452      s/[$]LINENO.*/&-/
453      t lineno
454      b
455      :lineno
456      N
457      :loop
458      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459      t loop
460      s/-\n.*//
461    ' >$as_me.lineno &&
462  chmod +x "$as_me.lineno" ||
463    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464
465  # Don't try to exec as it changes $[0], causing all sort of problems
466  # (the dirname of $[0] is not the place where we might find the
467  # original and so on.  Autoconf is especially sensitive to this).
468  . "./$as_me.lineno"
469  # Exit status is that of the last command.
470  exit
471}
472
473ECHO_C= ECHO_N= ECHO_T=
474case `echo -n x` in #(((((
475-n*)
476  case `echo 'xy\c'` in
477  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478  xy)  ECHO_C='\c';;
479  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
480       ECHO_T=' ';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir 2>/dev/null
492fi
493if (echo >conf$$.file) 2>/dev/null; then
494  if ln -s conf$$.file conf$$ 2>/dev/null; then
495    as_ln_s='ln -s'
496    # ... but there are two gotchas:
497    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499    # In both cases, we have to default to `cp -p'.
500    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501      as_ln_s='cp -p'
502  elif ln conf$$.file conf$$ 2>/dev/null; then
503    as_ln_s=ln
504  else
505    as_ln_s='cp -p'
506  fi
507else
508  as_ln_s='cp -p'
509fi
510rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511rmdir conf$$.dir 2>/dev/null
512
513if mkdir -p . 2>/dev/null; then
514  as_mkdir_p='mkdir -p "$as_dir"'
515else
516  test -d ./-p && rmdir ./-p
517  as_mkdir_p=false
518fi
519
520if test -x / >/dev/null 2>&1; then
521  as_test_x='test -x'
522else
523  if ls -dL / >/dev/null 2>&1; then
524    as_ls_L_option=L
525  else
526    as_ls_L_option=
527  fi
528  as_test_x='
529    eval sh -c '\''
530      if test -d "$1"; then
531        test -d "$1/.";
532      else
533        case $1 in #(
534        -*)set "./$1";;
535        esac;
536        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
537        ???[sx]*):;;*)false;;esac;fi
538    '\'' sh
539  '
540fi
541as_executable_p=$as_test_x
542
543# Sed expression to map a string onto a valid CPP name.
544as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546# Sed expression to map a string onto a valid variable name.
547as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549SHELL=${CONFIG_SHELL-/bin/sh}
550
551
552test -n "$DJDIR" || exec 7<&0 </dev/null
553exec 6>&1
554
555# Name of the host.
556# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
557# so uname gets run too.
558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560#
561# Initializations.
562#
563ac_default_prefix=/usr/local
564ac_clean_files=
565ac_config_libobj_dir=.
566LIBOBJS=
567cross_compiling=no
568subdirs=
569MFLAGS=
570MAKEFLAGS=
571
572# Identity of this package.
573PACKAGE_NAME='dspam'
574PACKAGE_TARNAME='dspam'
575PACKAGE_VERSION='3.10.2'
576PACKAGE_STRING='dspam 3.10.2'
577PACKAGE_BUGREPORT='dspam-devel@lists.sourceforge.net'
578PACKAGE_URL=''
579
580ac_unique_file="./src"
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='am__EXEEXT_FALSE
618am__EXEEXT_TRUE
619LTLIBOBJS
620LIBOBJS
621storage_drv_subdirs
622BUILD_EXT_LOOKUP_FALSE
623BUILD_EXT_LOOKUP_TRUE
624DYNAMIC_DRIVER_FALSE
625DYNAMIC_DRIVER_TRUE
626STATIC_DRIVER_FALSE
627STATIC_DRIVER_TRUE
628BUILD_PGSQL_DRV_FALSE
629BUILD_PGSQL_DRV_TRUE
630BUILD_MYSQL_DRV_FALSE
631BUILD_MYSQL_DRV_TRUE
632BUILD_SQLITE3_DRV_FALSE
633BUILD_SQLITE3_DRV_TRUE
634BUILD_SQLITE_DRV_FALSE
635BUILD_SQLITE_DRV_TRUE
636BUILD_HASH_DRV_FALSE
637BUILD_HASH_DRV_TRUE
638BUILD_DB3_DRV_FALSE
639BUILD_DB3_DRV_TRUE
640BUILD_DB4_DRV_FALSE
641BUILD_DB4_DRV_TRUE
642libsqlite3_drv_ldflags
643libsqlite3_drv_libs
644libsqlite3_drv_cppflags
645libsqlite_drv_ldflags
646libsqlite_drv_libs
647libsqlite_drv_cppflags
648libpgsql_drv_ldflags
649libpgsql_drv_libs
650libpgsql_drv_cppflags
651pgsql_pg_config
652libmysql_drv_ldflags
653libmysql_drv_libs
654libmysql_drv_cppflags
655active_driver
656logdir
657delivery_agent
658dspam_group
659dspam_owner
660dspam_mode
661dspam_home_group
662dspam_home_owner
663dspam_home_mode
664dspam_home
665external_lookup_libs
666DLLIBS
667NETLIBS
668CPP
669OTOOL64
670OTOOL
671LIPO
672NMEDIT
673DSYMUTIL
674MANIFEST_TOOL
675RANLIB
676ac_ct_AR
677AR
678DLLTOOL
679OBJDUMP
680LN_S
681NM
682ac_ct_DUMPBIN
683DUMPBIN
684LD
685FGREP
686EGREP
687GREP
688SED
689LIBTOOL
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693AMDEPBACKSLASH
694AMDEP_FALSE
695AMDEP_TRUE
696am__quote
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706host_os
707host_vendor
708host_cpu
709host
710build_os
711build_vendor
712build_cpu
713build
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_dependency_tracking
779enable_shared
780enable_static
781with_pic
782enable_fast_install
783with_gnu_ld
784with_sysroot
785enable_libtool_lock
786enable_daemon
787enable_split_configuration
788enable_external_lookup
789with_dspam_home
790with_dspam_home_mode
791with_dspam_home_owner
792with_dspam_home_group
793with_logfile
794with_dspam_mode
795with_dspam_owner
796with_dspam_group
797with_delivery_agent
798enable_trusted_user_security
799enable_clamav
800enable_debug
801enable_syslog
802enable_bnr_debug
803enable_homedir
804enable_mysql4_initialization
805enable_preferences_extension
806enable_verbose_debug
807enable_long_usernames
808enable_large_scale
809enable_domain_scale
810with_logdir
811with_storage_driver
812enable_virtual_users
813with_mysql_includes
814with_mysql_libraries
815with_pgsql_includes
816with_pgsql_libraries
817with_sqlite_includes
818with_sqlite_libraries
819enable_warnings
820enable_profiling
821'
822      ac_precious_vars='build_alias
823host_alias
824target_alias
825CC
826CFLAGS
827LDFLAGS
828LIBS
829CPPFLAGS
830CPP'
831
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836ac_unrecognized_opts=
837ac_unrecognized_sep=
838# The variables have the same names as the options, with
839# dashes changed to underlines.
840cache_file=/dev/null
841exec_prefix=NONE
842no_create=
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
851verbose=
852x_includes=NONE
853x_libraries=NONE
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
860# (The list follows the same order as the GNU Coding Standards.)
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
880
881ac_prev=
882ac_dashdash=
883for ac_option
884do
885  # If the previous option needs an argument, assign it.
886  if test -n "$ac_prev"; then
887    eval $ac_prev=\$ac_option
888    ac_prev=
889    continue
890  fi
891
892  case $ac_option in
893  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894  *=)   ac_optarg= ;;
895  *)    ac_optarg=yes ;;
896  esac
897
898  # Accept the important Cygnus configure options, so we can diagnose typos.
899
900  case $ac_dashdash$ac_option in
901  --)
902    ac_dashdash=yes ;;
903
904  -bindir | --bindir | --bindi | --bind | --bin | --bi)
905    ac_prev=bindir ;;
906  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907    bindir=$ac_optarg ;;
908
909  -build | --build | --buil | --bui | --bu)
910    ac_prev=build_alias ;;
911  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912    build_alias=$ac_optarg ;;
913
914  -cache-file | --cache-file | --cache-fil | --cache-fi \
915  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916    ac_prev=cache_file ;;
917  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919    cache_file=$ac_optarg ;;
920
921  --config-cache | -C)
922    cache_file=config.cache ;;
923
924  -datadir | --datadir | --datadi | --datad)
925    ac_prev=datadir ;;
926  -datadir=* | --datadir=* | --datadi=* | --datad=*)
927    datadir=$ac_optarg ;;
928
929  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930  | --dataroo | --dataro | --datar)
931    ac_prev=datarootdir ;;
932  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934    datarootdir=$ac_optarg ;;
935
936  -disable-* | --disable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: $ac_useropt"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948         ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=no ;;
951
952  -docdir | --docdir | --docdi | --doc | --do)
953    ac_prev=docdir ;;
954  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955    docdir=$ac_optarg ;;
956
957  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958    ac_prev=dvidir ;;
959  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960    dvidir=$ac_optarg ;;
961
962  -enable-* | --enable-*)
963    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964    # Reject names that are not valid shell variable names.
965    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966      as_fn_error $? "invalid feature name: $ac_useropt"
967    ac_useropt_orig=$ac_useropt
968    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969    case $ac_user_opts in
970      *"
971"enable_$ac_useropt"
972"*) ;;
973      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974         ac_unrecognized_sep=', ';;
975    esac
976    eval enable_$ac_useropt=\$ac_optarg ;;
977
978  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980  | --exec | --exe | --ex)
981    ac_prev=exec_prefix ;;
982  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984  | --exec=* | --exe=* | --ex=*)
985    exec_prefix=$ac_optarg ;;
986
987  -gas | --gas | --ga | --g)
988    # Obsolete; use --with-gas.
989    with_gas=yes ;;
990
991  -help | --help | --hel | --he | -h)
992    ac_init_help=long ;;
993  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994    ac_init_help=recursive ;;
995  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996    ac_init_help=short ;;
997
998  -host | --host | --hos | --ho)
999    ac_prev=host_alias ;;
1000  -host=* | --host=* | --hos=* | --ho=*)
1001    host_alias=$ac_optarg ;;
1002
1003  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004    ac_prev=htmldir ;;
1005  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006  | --ht=*)
1007    htmldir=$ac_optarg ;;
1008
1009  -includedir | --includedir | --includedi | --included | --include \
1010  | --includ | --inclu | --incl | --inc)
1011    ac_prev=includedir ;;
1012  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013  | --includ=* | --inclu=* | --incl=* | --inc=*)
1014    includedir=$ac_optarg ;;
1015
1016  -infodir | --infodir | --infodi | --infod | --info | --inf)
1017    ac_prev=infodir ;;
1018  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019    infodir=$ac_optarg ;;
1020
1021  -libdir | --libdir | --libdi | --libd)
1022    ac_prev=libdir ;;
1023  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024    libdir=$ac_optarg ;;
1025
1026  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027  | --libexe | --libex | --libe)
1028    ac_prev=libexecdir ;;
1029  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030  | --libexe=* | --libex=* | --libe=*)
1031    libexecdir=$ac_optarg ;;
1032
1033  -localedir | --localedir | --localedi | --localed | --locale)
1034    ac_prev=localedir ;;
1035  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036    localedir=$ac_optarg ;;
1037
1038  -localstatedir | --localstatedir | --localstatedi | --localstated \
1039  | --localstate | --localstat | --localsta | --localst | --locals)
1040    ac_prev=localstatedir ;;
1041  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043    localstatedir=$ac_optarg ;;
1044
1045  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046    ac_prev=mandir ;;
1047  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048    mandir=$ac_optarg ;;
1049
1050  -nfp | --nfp | --nf)
1051    # Obsolete; use --without-fp.
1052    with_fp=no ;;
1053
1054  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055  | --no-cr | --no-c | -n)
1056    no_create=yes ;;
1057
1058  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060    no_recursion=yes ;;
1061
1062  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064  | --oldin | --oldi | --old | --ol | --o)
1065    ac_prev=oldincludedir ;;
1066  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069    oldincludedir=$ac_optarg ;;
1070
1071  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072    ac_prev=prefix ;;
1073  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074    prefix=$ac_optarg ;;
1075
1076  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077  | --program-pre | --program-pr | --program-p)
1078    ac_prev=program_prefix ;;
1079  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081    program_prefix=$ac_optarg ;;
1082
1083  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084  | --program-suf | --program-su | --program-s)
1085    ac_prev=program_suffix ;;
1086  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088    program_suffix=$ac_optarg ;;
1089
1090  -program-transform-name | --program-transform-name \
1091  | --program-transform-nam | --program-transform-na \
1092  | --program-transform-n | --program-transform- \
1093  | --program-transform | --program-transfor \
1094  | --program-transfo | --program-transf \
1095  | --program-trans | --program-tran \
1096  | --progr-tra | --program-tr | --program-t)
1097    ac_prev=program_transform_name ;;
1098  -program-transform-name=* | --program-transform-name=* \
1099  | --program-transform-nam=* | --program-transform-na=* \
1100  | --program-transform-n=* | --program-transform-=* \
1101  | --program-transform=* | --program-transfor=* \
1102  | --program-transfo=* | --program-transf=* \
1103  | --program-trans=* | --program-tran=* \
1104  | --progr-tra=* | --program-tr=* | --program-t=*)
1105    program_transform_name=$ac_optarg ;;
1106
1107  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108    ac_prev=pdfdir ;;
1109  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110    pdfdir=$ac_optarg ;;
1111
1112  -psdir | --psdir | --psdi | --psd | --ps)
1113    ac_prev=psdir ;;
1114  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115    psdir=$ac_optarg ;;
1116
1117  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118  | -silent | --silent | --silen | --sile | --sil)
1119    silent=yes ;;
1120
1121  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122    ac_prev=sbindir ;;
1123  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124  | --sbi=* | --sb=*)
1125    sbindir=$ac_optarg ;;
1126
1127  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129  | --sharedst | --shareds | --shared | --share | --shar \
1130  | --sha | --sh)
1131    ac_prev=sharedstatedir ;;
1132  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135  | --sha=* | --sh=*)
1136    sharedstatedir=$ac_optarg ;;
1137
1138  -site | --site | --sit)
1139    ac_prev=site ;;
1140  -site=* | --site=* | --sit=*)
1141    site=$ac_optarg ;;
1142
1143  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144    ac_prev=srcdir ;;
1145  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146    srcdir=$ac_optarg ;;
1147
1148  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149  | --syscon | --sysco | --sysc | --sys | --sy)
1150    ac_prev=sysconfdir ;;
1151  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153    sysconfdir=$ac_optarg ;;
1154
1155  -target | --target | --targe | --targ | --tar | --ta | --t)
1156    ac_prev=target_alias ;;
1157  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158    target_alias=$ac_optarg ;;
1159
1160  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161    verbose=yes ;;
1162
1163  -version | --version | --versio | --versi | --vers | -V)
1164    ac_init_version=: ;;
1165
1166  -with-* | --with-*)
1167    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168    # Reject names that are not valid shell variable names.
1169    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170      as_fn_error $? "invalid package name: $ac_useropt"
1171    ac_useropt_orig=$ac_useropt
1172    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173    case $ac_user_opts in
1174      *"
1175"with_$ac_useropt"
1176"*) ;;
1177      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178         ac_unrecognized_sep=', ';;
1179    esac
1180    eval with_$ac_useropt=\$ac_optarg ;;
1181
1182  -without-* | --without-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error $? "invalid package name: $ac_useropt"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"with_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194         ac_unrecognized_sep=', ';;
1195    esac
1196    eval with_$ac_useropt=no ;;
1197
1198  --x)
1199    # Obsolete; use --with-x.
1200    with_x=yes ;;
1201
1202  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203  | --x-incl | --x-inc | --x-in | --x-i)
1204    ac_prev=x_includes ;;
1205  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207    x_includes=$ac_optarg ;;
1208
1209  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211    ac_prev=x_libraries ;;
1212  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214    x_libraries=$ac_optarg ;;
1215
1216  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217Try \`$0 --help' for more information"
1218    ;;
1219
1220  *=*)
1221    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222    # Reject names that are not valid shell variable names.
1223    case $ac_envvar in #(
1224      '' | [0-9]* | *[!_$as_cr_alnum]* )
1225      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226    esac
1227    eval $ac_envvar=\$ac_optarg
1228    export $ac_envvar ;;
1229
1230  *)
1231    # FIXME: should be removed in autoconf 3.0.
1232    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236    ;;
1237
1238  esac
1239done
1240
1241if test -n "$ac_prev"; then
1242  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243  as_fn_error $? "missing argument to $ac_option"
1244fi
1245
1246if test -n "$ac_unrecognized_opts"; then
1247  case $enable_option_checking in
1248    no) ;;
1249    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251  esac
1252fi
1253
1254# Check all directory arguments for consistency.
1255for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256                datadir sysconfdir sharedstatedir localstatedir includedir \
1257                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258                libdir localedir mandir
1259do
1260  eval ac_val=\$$ac_var
1261  # Remove trailing slashes.
1262  case $ac_val in
1263    */ )
1264      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265      eval $ac_var=\$ac_val;;
1266  esac
1267  # Be sure to have absolute directory names.
1268  case $ac_val in
1269    [\\/$]* | ?:[\\/]* )  continue;;
1270    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271  esac
1272  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273done
1274
1275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
1281
1282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284  if test "x$build_alias" = x; then
1285    cross_compiling=maybe
1286    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1287    If a cross compiler is detected then cross compile mode will be used" >&2
1288  elif test "x$build_alias" != "x$host_alias"; then
1289    cross_compiling=yes
1290  fi
1291fi
1292
1293ac_tool_prefix=
1294test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296test "$silent" = yes && exec 6>/dev/null
1297
1298
1299ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300ac_ls_di=`ls -di .` &&
1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302  as_fn_error $? "working directory cannot be determined"
1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304  as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307# Find the source files, if location was not specified.
1308if test -z "$srcdir"; then
1309  ac_srcdir_defaulted=yes
1310  # Try the directory containing this script, then the parent directory.
1311  ac_confdir=`$as_dirname -- "$as_myself" ||
1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313         X"$as_myself" : 'X\(//\)[^/]' \| \
1314         X"$as_myself" : 'X\(//\)$' \| \
1315         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316$as_echo X"$as_myself" |
1317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318            s//\1/
1319            q
1320          }
1321          /^X\(\/\/\)[^/].*/{
1322            s//\1/
1323            q
1324          }
1325          /^X\(\/\/\)$/{
1326            s//\1/
1327            q
1328          }
1329          /^X\(\/\).*/{
1330            s//\1/
1331            q
1332          }
1333          s/.*/./; q'`
1334  srcdir=$ac_confdir
1335  if test ! -r "$srcdir/$ac_unique_file"; then
1336    srcdir=..
1337  fi
1338else
1339  ac_srcdir_defaulted=no
1340fi
1341if test ! -r "$srcdir/$ac_unique_file"; then
1342  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344fi
1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346ac_abs_confdir=`(
1347        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348        pwd)`
1349# When building in place, set srcdir=.
1350if test "$ac_abs_confdir" = "$ac_pwd"; then
1351  srcdir=.
1352fi
1353# Remove unnecessary trailing slashes from srcdir.
1354# Double slashes in file names in object file debugging info
1355# mess up M-x gdb in Emacs.
1356case $srcdir in
1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358esac
1359for ac_var in $ac_precious_vars; do
1360  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361  eval ac_env_${ac_var}_value=\$${ac_var}
1362  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364done
1365
1366#
1367# Report the --help message.
1368#
1369if test "$ac_init_help" = "long"; then
1370  # Omit some internal or obsolete options to make the list less imposing.
1371  # This message is too long to be a string in the A/UX 3.1 sh.
1372  cat <<_ACEOF
1373\`configure' configures dspam 3.10.2 to adapt to many kinds of systems.
1374
1375Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380Defaults for the options are specified in brackets.
1381
1382Configuration:
1383  -h, --help              display this help and exit
1384      --help=short        display options specific to this package
1385      --help=recursive    display the short help of all the included packages
1386  -V, --version           display version information and exit
1387  -q, --quiet, --silent   do not print \`checking ...' messages
1388      --cache-file=FILE   cache test results in FILE [disabled]
1389  -C, --config-cache      alias for \`--cache-file=config.cache'
1390  -n, --no-create         do not create output files
1391      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393Installation directories:
1394  --prefix=PREFIX         install architecture-independent files in PREFIX
1395                          [$ac_default_prefix]
1396  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                          [PREFIX]
1398
1399By default, \`make install' will install all the files in
1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402for instance \`--prefix=\$HOME'.
1403
1404For better control, use the options below.
1405
1406Fine tuning of the installation directories:
1407  --bindir=DIR            user executables [EPREFIX/bin]
1408  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1409  --libexecdir=DIR        program executables [EPREFIX/libexec]
1410  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1411  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1412  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1413  --libdir=DIR            object code libraries [EPREFIX/lib]
1414  --includedir=DIR        C header files [PREFIX/include]
1415  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1416  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1417  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1418  --infodir=DIR           info documentation [DATAROOTDIR/info]
1419  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1420  --mandir=DIR            man documentation [DATAROOTDIR/man]
1421  --docdir=DIR            documentation root [DATAROOTDIR/doc/dspam]
1422  --htmldir=DIR           html documentation [DOCDIR]
1423  --dvidir=DIR            dvi documentation [DOCDIR]
1424  --pdfdir=DIR            pdf documentation [DOCDIR]
1425  --psdir=DIR             ps documentation [DOCDIR]
1426_ACEOF
1427
1428  cat <<\_ACEOF
1429
1430Program names:
1431  --program-prefix=PREFIX            prepend PREFIX to installed program names
1432  --program-suffix=SUFFIX            append SUFFIX to installed program names
1433  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1434
1435System types:
1436  --build=BUILD     configure for building on BUILD [guessed]
1437  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438_ACEOF
1439fi
1440
1441if test -n "$ac_init_help"; then
1442  case $ac_init_help in
1443     short | recursive ) echo "Configuration of dspam 3.10.2:";;
1444   esac
1445  cat <<\_ACEOF
1446
1447Optional Features:
1448  --disable-option-checking  ignore unrecognized --enable/--with options
1449  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1450  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1451  --disable-dependency-tracking  speeds up one-time build
1452  --enable-dependency-tracking   do not reject slow dependency extractors
1453  --enable-shared[=PKGS]  build shared libraries [default=yes]
1454  --enable-static[=PKGS]  build static libraries [default=yes]
1455  --enable-fast-install[=PKGS]
1456                          optimize for fast installation [default=yes]
1457  --disable-libtool-lock  avoid locking (might break parallel builds)
1458  --enable-daemon         Enable support for DSPAM to run in --daemon mode
1459  --enable-split-configuration
1460                          Enable split configuration file support
1461  --enable-external-lookup
1462                          Enable external lookup support
1463  --disable-trusted-user-security
1464                          Disable trusted user security (enabled by default)
1465  --enable-clamav         Enable Clam/AV support for DSPAM.
1466  --enable-debug          Enable debugging support for DSPAM. Don't enable
1467                          this unless something needs testing!
1468  --enable-syslog         Enable (or disable) syslog support
1469  --enable-bnr-debug      Activates debugging output for Bayesian Noise
1470                          Reduction
1471  --enable-homedir        Enable home directory filesystem storage.
1472  --disable-mysql4-initialization
1473                          Performs Initialization and Cleanup of MySQL client
1474                          libraries v4.1+.
1475  --enable-preferences-extension
1476                          Enable if storage driver supports preferences
1477                          extension
1478  --enable-verbose-debug  Cause DSPAM produce verbose debug output and write
1479                          them into LOGDIR/dspam.debug file. Implies
1480                          '--enable-debug'. Never enable this for production
1481                          builds!
1482  --enable-long-usernames Cause DSPAM to support long usernames. The default
1483                          is to use the same length on usernames as the
1484                          operating system.
1485  --enable-large-scale    Manage file structure for a large scale
1486                          implementation
1487  --enable-domain-scale   Manage file structure to support a domain
1488                          implementation
1489  --enable-virtual-users  Cause mysql_drv to generate virtual uids for each
1490                          user
1491  --enable-virtual-users  Cause pgsql_drv to generate virtual uids for each
1492                          user
1493  --enable-warnings[={no|[{yes|error}][,proto]}]
1494                          Disable (no) or enable (yes) more warnings
1495                          or enable and treat warnings as errors (error).
1496                          Simple --enable-warnings is the same
1497                          as --enable-warnings=yes.
1498                          You can add ',proto' to 'yes' or 'error' option
1499                          for turning on additional '-Wstrict-prototypes'
1500                          flag.
1501                          Have effect for GCC compilers only.
1502  --disable-warnings      Same as --enable-warnings=no [default]
1503  --enable-profiling      Disable (no) or enable (yes) performance profiling.
1504                          Generate extra code to write profile information
1505                          suitable for the analysis program gprof. Has effect
1506                          for GCC compilers only.
1507
1508Optional Packages:
1509  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1510  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1511  --with-pic              try to use only PIC/non-PIC objects [default=use
1512                          both]
1513  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1514  --with-sysroot=DIR Search for dependent libraries within DIR
1515                        (or the compiler's sysroot if not specified).
1516  --with-dspam-home=DIR   Specify directory where per-user dictionaries,
1517                          signatures, etc. should be stored. [default:
1518                          /var/dspam]
1519  --with-dspam-home-mode=MODE
1520                          Set access mode for DSPAM_HOME, default 770
1521  --with-dspam-home-owner=OWNER
1522                          Set owner for DSPAM_HOME, default root
1523  --with-dspam-home-group=GROUP
1524                          Set group for DSPAM_HOME, default mail
1525  --with-logfile=LOGFILE  Set flat logfile pathname for logging
1526  --with-dspam-mode=MODE  Set access mode for dspam binary, default 2510
1527  --with-dspam-owner=OWNER
1528                          Set owner for dspam binary, default root
1529  --with-dspam-group=GROUP
1530                          Set group for dspam binary, default mail
1531  --with-delivery-agent=BINARY [ARGS]
1532                          Override the default delivery agent. This sets only
1533                          the default, which may be changed in dspam.conf.
1534  --with-logdir=DIR       Specify directory where logfiles are to be written.
1535                          [default: $dspam_home/log]
1536  --with-storage-driver=LIST
1537                          Specify storage drivers to enable. [default:
1538                          hash_drv]
1539  --with-mysql-includes=DIR
1540                          Where to find Mysql headers
1541  --with-mysql-libraries=DIR
1542                          Where to find MySQL
1543  --with-pgsql-includes=DIR
1544                          Where to find PostgreSQL headers
1545  --with-pgsql-libraries=DIR
1546                          Where to find PostgreSQL libraries
1547  --with-sqlite-includes=DIR
1548                          Where to find SQLite headers
1549  --with-sqlite-libraries=DIR
1550                          Where to find SQLite libraries
1551
1552Some influential environment variables:
1553  CC          C compiler command
1554  CFLAGS      C compiler flags
1555  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556              nonstandard directory <lib dir>
1557  LIBS        libraries to pass to the linker, e.g. -l<library>
1558  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559              you have headers in a nonstandard directory <include dir>
1560  CPP         C preprocessor
1561
1562Use these variables to override the choices made by `configure' or to help
1563it to find libraries and programs with nonstandard names/locations.
1564
1565Report bugs to <dspam-devel@lists.sourceforge.net>.
1566_ACEOF
1567ac_status=$?
1568fi
1569
1570if test "$ac_init_help" = "recursive"; then
1571  # If there are subdirs, report their specific --help.
1572  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573    test -d "$ac_dir" ||
1574      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575      continue
1576    ac_builddir=.
1577
1578case "$ac_dir" in
1579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580*)
1581  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582  # A ".." for each directory in $ac_dir_suffix.
1583  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584  case $ac_top_builddir_sub in
1585  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587  esac ;;
1588esac
1589ac_abs_top_builddir=$ac_pwd
1590ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591# for backward compatibility:
1592ac_top_builddir=$ac_top_build_prefix
1593
1594case $srcdir in
1595  .)  # We are building in place.
1596    ac_srcdir=.
1597    ac_top_srcdir=$ac_top_builddir_sub
1598    ac_abs_top_srcdir=$ac_pwd ;;
1599  [\\/]* | ?:[\\/]* )  # Absolute name.
1600    ac_srcdir=$srcdir$ac_dir_suffix;
1601    ac_top_srcdir=$srcdir
1602    ac_abs_top_srcdir=$srcdir ;;
1603  *) # Relative name.
1604    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605    ac_top_srcdir=$ac_top_build_prefix$srcdir
1606    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607esac
1608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610    cd "$ac_dir" || { ac_status=$?; continue; }
1611    # Check for guested configure.
1612    if test -f "$ac_srcdir/configure.gnu"; then
1613      echo &&
1614      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615    elif test -f "$ac_srcdir/configure"; then
1616      echo &&
1617      $SHELL "$ac_srcdir/configure" --help=recursive
1618    else
1619      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620    fi || ac_status=$?
1621    cd "$ac_pwd" || { ac_status=$?; break; }
1622  done
1623fi
1624
1625test -n "$ac_init_help" && exit $ac_status
1626if $ac_init_version; then
1627  cat <<\_ACEOF
1628dspam configure 3.10.2
1629generated by GNU Autoconf 2.68
1630
1631Copyright (C) 2010 Free Software Foundation, Inc.
1632This configure script is free software; the Free Software Foundation
1633gives unlimited permission to copy, distribute and modify it.
1634
1635Copyright (C) 2002-2012 DSPAM Project
1636_ACEOF
1637  exit
1638fi
1639
1640## ------------------------ ##
1641## Autoconf initialization. ##
1642## ------------------------ ##
1643
1644# ac_fn_c_try_compile LINENO
1645# --------------------------
1646# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_compile ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  rm -f conftest.$ac_objext
1651  if { { ac_try="$ac_compile"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_compile") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } && {
1667         test -z "$ac_c_werror_flag" ||
1668         test ! -s conftest.err
1669       } && test -s conftest.$ac_objext; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675        ac_retval=1
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_compile
1681
1682# ac_fn_c_try_link LINENO
1683# -----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_link ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  rm -f conftest.$ac_objext conftest$ac_exeext
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>conftest.err
1697  ac_status=$?
1698  if test -s conftest.err; then
1699    grep -v '^ *+' conftest.err >conftest.er1
1700    cat conftest.er1 >&5
1701    mv -f conftest.er1 conftest.err
1702  fi
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && {
1705         test -z "$ac_c_werror_flag" ||
1706         test ! -s conftest.err
1707       } && test -s conftest$ac_exeext && {
1708         test "$cross_compiling" = yes ||
1709         $as_test_x conftest$ac_exeext
1710       }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716        ac_retval=1
1717fi
1718  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720  # interfere with the next link command; also delete a directory that is
1721  # left behind by Apple's compiler.  We do this before executing the actions.
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_link
1727
1728# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729# -------------------------------------------------------
1730# Tests whether HEADER exists and can be compiled using the include files in
1731# INCLUDES, setting the cache variable VAR accordingly.
1732ac_fn_c_check_header_compile ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742$4
1743#include <$2>
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746  eval "$3=yes"
1747else
1748  eval "$3=no"
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751fi
1752eval ac_res=\$$3
1753               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754$as_echo "$ac_res" >&6; }
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757} # ac_fn_c_check_header_compile
1758
1759# ac_fn_c_try_cpp LINENO
1760# ----------------------
1761# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762ac_fn_c_try_cpp ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  if { { ac_try="$ac_cpp conftest.$ac_ext"
1766case "(($ac_try" in
1767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768  *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773  ac_status=$?
1774  if test -s conftest.err; then
1775    grep -v '^ *+' conftest.err >conftest.er1
1776    cat conftest.er1 >&5
1777    mv -f conftest.er1 conftest.err
1778  fi
1779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780  test $ac_status = 0; } > conftest.i && {
1781         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1782         test ! -s conftest.err
1783       }; then :
1784  ac_retval=0
1785else
1786  $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789    ac_retval=1
1790fi
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_cpp
1795
1796# ac_fn_c_try_run LINENO
1797# ----------------------
1798# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1799# that executables *can* be run.
1800ac_fn_c_try_run ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  if { { ac_try="$ac_link"
1804case "(($ac_try" in
1805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806  *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810  (eval "$ac_link") 2>&5
1811  ac_status=$?
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1814  { { case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820  (eval "$ac_try") 2>&5
1821  ac_status=$?
1822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823  test $ac_status = 0; }; }; then :
1824  ac_retval=0
1825else
1826  $as_echo "$as_me: program exited with status $ac_status" >&5
1827       $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830       ac_retval=$ac_status
1831fi
1832  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834  as_fn_set_status $ac_retval
1835
1836} # ac_fn_c_try_run
1837
1838# ac_fn_c_check_func LINENO FUNC VAR
1839# ----------------------------------
1840# Tests whether FUNC exists, setting the cache variable VAR accordingly
1841ac_fn_c_check_func ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
1846if eval \${$3+:} false; then :
1847  $as_echo_n "(cached) " >&6
1848else
1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1853#define $2 innocuous_$2
1854
1855/* System header to define __stub macros and hopefully few prototypes,
1856    which can conflict with char $2 (); below.
1857    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858    <limits.h> exists even on freestanding compilers.  */
1859
1860#ifdef __STDC__
1861# include <limits.h>
1862#else
1863# include <assert.h>
1864#endif
1865
1866#undef $2
1867
1868/* Override any GCC internal prototype to avoid an error.
1869   Use char because int might match the return type of a GCC
1870   builtin and then its argument prototype would still apply.  */
1871#ifdef __cplusplus
1872extern "C"
1873#endif
1874char $2 ();
1875/* The GNU C library defines this for functions which it implements
1876    to always fail with ENOSYS.  Some functions are actually named
1877    something starting with __ and the normal name is an alias.  */
1878#if defined __stub_$2 || defined __stub___$2
1879choke me
1880#endif
1881
1882int
1883main ()
1884{
1885return $2 ();
1886  ;
1887  return 0;
1888}
1889_ACEOF
1890if ac_fn_c_try_link "$LINENO"; then :
1891  eval "$3=yes"
1892else
1893  eval "$3=no"
1894fi
1895rm -f core conftest.err conftest.$ac_objext \
1896    conftest$ac_exeext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903} # ac_fn_c_check_func
1904
1905# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906# -------------------------------------------------------
1907# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908# the include files in INCLUDES and setting the cache variable VAR
1909# accordingly.
1910ac_fn_c_check_header_mongrel ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  if eval \${$3+:} false; then :
1914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917  $as_echo_n "(cached) " >&6
1918fi
1919eval ac_res=\$$3
1920               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922else
1923  # Is the header compilable?
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925$as_echo_n "checking $2 usability... " >&6; }
1926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929#include <$2>
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932  ac_header_compiler=yes
1933else
1934  ac_header_compiler=no
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938$as_echo "$ac_header_compiler" >&6; }
1939
1940# Is the header present?
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942$as_echo_n "checking $2 presence... " >&6; }
1943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_cpp "$LINENO"; then :
1948  ac_header_preproc=yes
1949else
1950  ac_header_preproc=no
1951fi
1952rm -f conftest.err conftest.i conftest.$ac_ext
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954$as_echo "$ac_header_preproc" >&6; }
1955
1956# So?  What about this header?
1957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1958  yes:no: )
1959    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963    ;;
1964  no:yes:* )
1965    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1968$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1969    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1972$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975( $as_echo "## ------------------------------------------------ ##
1976## Report this to dspam-devel@lists.sourceforge.net ##
1977## ------------------------------------------------ ##"
1978     ) | sed "s/^/$as_me: WARNING:     /" >&2
1979    ;;
1980esac
1981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if eval \${$3+:} false; then :
1984  $as_echo_n "(cached) " >&6
1985else
1986  eval "$3=\$ac_header_compiler"
1987fi
1988eval ac_res=\$$3
1989               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991fi
1992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994} # ac_fn_c_check_header_mongrel
1995cat >config.log <<_ACEOF
1996This file contains any messages produced by compilers while
1997running configure, to aid debugging if configure makes a mistake.
1998
1999It was created by dspam $as_me 3.10.2, which was
2000generated by GNU Autoconf 2.68.  Invocation command line was
2001
2002  $ $0 $@
2003
2004_ACEOF
2005exec 5>>config.log
2006{
2007cat <<_ASUNAME
2008## --------- ##
2009## Platform. ##
2010## --------- ##
2011
2012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2013uname -m = `(uname -m) 2>/dev/null || echo unknown`
2014uname -r = `(uname -r) 2>/dev/null || echo unknown`
2015uname -s = `(uname -s) 2>/dev/null || echo unknown`
2016uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017
2018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2019/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2020
2021/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2022/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2024/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2025/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2026/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2027/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2028
2029_ASUNAME
2030
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036    $as_echo "PATH: $as_dir"
2037  done
2038IFS=$as_save_IFS
2039
2040} >&5
2041
2042cat >&5 <<_ACEOF
2043
2044
2045## ----------- ##
2046## Core tests. ##
2047## ----------- ##
2048
2049_ACEOF
2050
2051
2052# Keep a trace of the command line.
2053# Strip out --no-create and --no-recursion so they do not pile up.
2054# Strip out --silent because we don't want to record it for future runs.
2055# Also quote any args containing shell meta-characters.
2056# Make two passes to allow for proper duplicate-argument suppression.
2057ac_configure_args=
2058ac_configure_args0=
2059ac_configure_args1=
2060ac_must_keep_next=false
2061for ac_pass in 1 2
2062do
2063  for ac_arg
2064  do
2065    case $ac_arg in
2066    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068    | -silent | --silent | --silen | --sile | --sil)
2069      continue ;;
2070    *\'*)
2071      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072    esac
2073    case $ac_pass in
2074    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075    2)
2076      as_fn_append ac_configure_args1 " '$ac_arg'"
2077      if test $ac_must_keep_next = true; then
2078        ac_must_keep_next=false # Got value, back to normal.
2079      else
2080        case $ac_arg in
2081          *=* | --config-cache | -C | -disable-* | --disable-* \
2082          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084          | -with-* | --with-* | -without-* | --without-* | --x)
2085            case "$ac_configure_args0 " in
2086              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087            esac
2088            ;;
2089          -* ) ac_must_keep_next=true ;;
2090        esac
2091      fi
2092      as_fn_append ac_configure_args " '$ac_arg'"
2093      ;;
2094    esac
2095  done
2096done
2097{ ac_configure_args0=; unset ac_configure_args0;}
2098{ ac_configure_args1=; unset ac_configure_args1;}
2099
2100# When interrupted or exit'd, cleanup temporary files, and complete
2101# config.log.  We remove comments because anyway the quotes in there
2102# would cause problems or look ugly.
2103# WARNING: Use '\'' to represent an apostrophe within the trap.
2104# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105trap 'exit_status=$?
2106  # Save into config.log some information that might help in debugging.
2107  {
2108    echo
2109
2110    $as_echo "## ---------------- ##
2111## Cache variables. ##
2112## ---------------- ##"
2113    echo
2114    # The following way of writing the cache mishandles newlines in values,
2115(
2116  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117    eval ac_val=\$$ac_var
2118    case $ac_val in #(
2119    *${as_nl}*)
2120      case $ac_var in #(
2121      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2122$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2123      esac
2124      case $ac_var in #(
2125      _ | IFS | as_nl) ;; #(
2126      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2127      *) { eval $ac_var=; unset $ac_var;} ;;
2128      esac ;;
2129    esac
2130  done
2131  (set) 2>&1 |
2132    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133    *${as_nl}ac_space=\ *)
2134      sed -n \
2135        "s/'\''/'\''\\\\'\'''\''/g;
2136          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2137      ;; #(
2138    *)
2139      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2140      ;;
2141    esac |
2142    sort
2143)
2144    echo
2145
2146    $as_echo "## ----------------- ##
2147## Output variables. ##
2148## ----------------- ##"
2149    echo
2150    for ac_var in $ac_subst_vars
2151    do
2152      eval ac_val=\$$ac_var
2153      case $ac_val in
2154      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155      esac
2156      $as_echo "$ac_var='\''$ac_val'\''"
2157    done | sort
2158    echo
2159
2160    if test -n "$ac_subst_files"; then
2161      $as_echo "## ------------------- ##
2162## File substitutions. ##
2163## ------------------- ##"
2164      echo
2165      for ac_var in $ac_subst_files
2166      do
2167        eval ac_val=\$$ac_var
2168        case $ac_val in
2169        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170        esac
2171        $as_echo "$ac_var='\''$ac_val'\''"
2172      done | sort
2173      echo
2174    fi
2175
2176    if test -s confdefs.h; then
2177      $as_echo "## ----------- ##
2178## confdefs.h. ##
2179## ----------- ##"
2180      echo
2181      cat confdefs.h
2182      echo
2183    fi
2184    test "$ac_signal" != 0 &&
2185      $as_echo "$as_me: caught signal $ac_signal"
2186    $as_echo "$as_me: exit $exit_status"
2187  } >&5
2188  rm -f core *.core core.conftest.* &&
2189    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2190    exit $exit_status
2191' 0
2192for ac_signal in 1 2 13 15; do
2193  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2194done
2195ac_signal=0
2196
2197# confdefs.h avoids OS command line length limits that DEFS can exceed.
2198rm -f -r conftest* confdefs.h
2199
2200$as_echo "/* confdefs.h */" > confdefs.h
2201
2202# Predefined preprocessor variables.
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_NAME "$PACKAGE_NAME"
2206_ACEOF
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2210_ACEOF
2211
2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_VERSION "$PACKAGE_VERSION"
2214_ACEOF
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_STRING "$PACKAGE_STRING"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_URL "$PACKAGE_URL"
2226_ACEOF
2227
2228
2229# Let the site file select an alternate cache file if it wants to.
2230# Prefer an explicitly selected file to automatically selected ones.
2231ac_site_file1=NONE
2232ac_site_file2=NONE
2233if test -n "$CONFIG_SITE"; then
2234  # We do not want a PATH search for config.site.
2235  case $CONFIG_SITE in #((
2236    -*)  ac_site_file1=./$CONFIG_SITE;;
2237    */*) ac_site_file1=$CONFIG_SITE;;
2238    *)   ac_site_file1=./$CONFIG_SITE;;
2239  esac
2240elif test "x$prefix" != xNONE; then
2241  ac_site_file1=$prefix/share/config.site
2242  ac_site_file2=$prefix/etc/config.site
2243else
2244  ac_site_file1=$ac_default_prefix/share/config.site
2245  ac_site_file2=$ac_default_prefix/etc/config.site
2246fi
2247for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248do
2249  test "x$ac_site_file" = xNONE && continue
2250  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2253    sed 's/^/| /' "$ac_site_file" >&5
2254    . "$ac_site_file" \
2255      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257as_fn_error $? "failed to load site script $ac_site_file
2258See \`config.log' for more details" "$LINENO" 5; }
2259  fi
2260done
2261
2262if test -r "$cache_file"; then
2263  # Some versions of bash will fail to source /dev/null (special files
2264  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2265  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267$as_echo "$as_me: loading cache $cache_file" >&6;}
2268    case $cache_file in
2269      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270      *)                      . "./$cache_file";;
2271    esac
2272  fi
2273else
2274  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275$as_echo "$as_me: creating cache $cache_file" >&6;}
2276  >$cache_file
2277fi
2278
2279# Check that the precious variables saved in the cache have kept the same
2280# value.
2281ac_cache_corrupted=false
2282for ac_var in $ac_precious_vars; do
2283  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2284  eval ac_new_set=\$ac_env_${ac_var}_set
2285  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2286  eval ac_new_val=\$ac_env_${ac_var}_value
2287  case $ac_old_set,$ac_new_set in
2288    set,)
2289      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2290$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2291      ac_cache_corrupted=: ;;
2292    ,set)
2293      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2294$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2295      ac_cache_corrupted=: ;;
2296    ,);;
2297    *)
2298      if test "x$ac_old_val" != "x$ac_new_val"; then
2299        # differences in whitespace do not lead to failure.
2300        ac_old_val_w=`echo x $ac_old_val`
2301        ac_new_val_w=`echo x $ac_new_val`
2302        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2303          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2304$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2305          ac_cache_corrupted=:
2306        else
2307          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2308$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2309          eval $ac_var=\$ac_old_val
2310        fi
2311        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2312$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2313        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2314$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2315      fi;;
2316  esac
2317  # Pass precious variables to config.status.
2318  if test "$ac_new_set" = set; then
2319    case $ac_new_val in
2320    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2321    *) ac_arg=$ac_var=$ac_new_val ;;
2322    esac
2323    case " $ac_configure_args " in
2324      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2325      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2326    esac
2327  fi
2328done
2329if $ac_cache_corrupted; then
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2333$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2334  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2335fi
2336## -------------------- ##
2337## Main body of script. ##
2338## -------------------- ##
2339
2340ac_ext=c
2341ac_cpp='$CPP $CPPFLAGS'
2342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
2346
2347
2348
2349am__api_version='1.11'
2350
2351ac_aux_dir=
2352for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2353  if test -f "$ac_dir/install-sh"; then
2354    ac_aux_dir=$ac_dir
2355    ac_install_sh="$ac_aux_dir/install-sh -c"
2356    break
2357  elif test -f "$ac_dir/install.sh"; then
2358    ac_aux_dir=$ac_dir
2359    ac_install_sh="$ac_aux_dir/install.sh -c"
2360    break
2361  elif test -f "$ac_dir/shtool"; then
2362    ac_aux_dir=$ac_dir
2363    ac_install_sh="$ac_aux_dir/shtool install -c"
2364    break
2365  fi
2366done
2367if test -z "$ac_aux_dir"; then
2368  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2369fi
2370
2371# These three variables are undocumented and unsupported,
2372# and are intended to be withdrawn in a future Autoconf release.
2373# They can cause serious problems if a builder's source tree is in a directory
2374# whose full name contains unusual characters.
2375ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2376ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2377ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2378
2379
2380# Find a good install program.  We prefer a C program (faster),
2381# so one script is as good as another.  But avoid the broken or
2382# incompatible versions:
2383# SysV /etc/install, /usr/sbin/install
2384# SunOS /usr/etc/install
2385# IRIX /sbin/install
2386# AIX /bin/install
2387# AmigaOS /C/install, which installs bootblocks on floppy discs
2388# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2389# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2390# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2391# OS/2's system install, which has a completely different semantic
2392# ./install, which can be erroneously created by make from ./install.sh.
2393# Reject install programs that cannot install multiple files.
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2395$as_echo_n "checking for a BSD-compatible install... " >&6; }
2396if test -z "$INSTALL"; then
2397if ${ac_cv_path_install+:} false; then :
2398  $as_echo_n "(cached) " >&6
2399else
2400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403  IFS=$as_save_IFS
2404  test -z "$as_dir" && as_dir=.
2405    # Account for people who put trailing slashes in PATH elements.
2406case $as_dir/ in #((
2407  ./ | .// | /[cC]/* | \
2408  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2409  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2410  /usr/ucb/* ) ;;
2411  *)
2412    # OSF1 and SCO ODT 3.0 have their own names for install.
2413    # Don't use installbsd from OSF since it installs stuff as root
2414    # by default.
2415    for ac_prog in ginstall scoinst install; do
2416      for ac_exec_ext in '' $ac_executable_extensions; do
2417        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2418          if test $ac_prog = install &&
2419            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420            # AIX install.  It has an incompatible calling convention.
2421            :
2422          elif test $ac_prog = install &&
2423            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424            # program-specific install script used by HP pwplus--don't use.
2425            :
2426          else
2427            rm -rf conftest.one conftest.two conftest.dir
2428            echo one > conftest.one
2429            echo two > conftest.two
2430            mkdir conftest.dir
2431            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2432              test -s conftest.one && test -s conftest.two &&
2433              test -s conftest.dir/conftest.one &&
2434              test -s conftest.dir/conftest.two
2435            then
2436              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2437              break 3
2438            fi
2439          fi
2440        fi
2441      done
2442    done
2443    ;;
2444esac
2445
2446  done
2447IFS=$as_save_IFS
2448
2449rm -rf conftest.one conftest.two conftest.dir
2450
2451fi
2452  if test "${ac_cv_path_install+set}" = set; then
2453    INSTALL=$ac_cv_path_install
2454  else
2455    # As a last resort, use the slow shell script.  Don't cache a
2456    # value for INSTALL within a source directory, because that will
2457    # break other packages using the cache if that directory is
2458    # removed, or if the value is a relative name.
2459    INSTALL=$ac_install_sh
2460  fi
2461fi
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2463$as_echo "$INSTALL" >&6; }
2464
2465# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2466# It thinks the first close brace ends the variable substitution.
2467test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2468
2469test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2470
2471test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2472
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2474$as_echo_n "checking whether build environment is sane... " >&6; }
2475# Just in case
2476sleep 1
2477echo timestamp > conftest.file
2478# Reject unsafe characters in $srcdir or the absolute working directory
2479# name.  Accept space and tab only in the latter.
2480am_lf='
2481'
2482case `pwd` in
2483  *[\\\"\#\$\&\'\`$am_lf]*)
2484    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2485esac
2486case $srcdir in
2487  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2488    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2489esac
2490
2491# Do `set' in a subshell so we don't clobber the current shell's
2492# arguments.  Must try -L first in case configure is actually a
2493# symlink; some systems play weird games with the mod time of symlinks
2494# (eg FreeBSD returns the mod time of the symlink's containing
2495# directory).
2496if (
2497   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2498   if test "$*" = "X"; then
2499      # -L didn't work.
2500      set X `ls -t "$srcdir/configure" conftest.file`
2501   fi
2502   rm -f conftest.file
2503   if test "$*" != "X $srcdir/configure conftest.file" \
2504      && test "$*" != "X conftest.file $srcdir/configure"; then
2505
2506      # If neither matched, then we have a broken ls.  This can happen
2507      # if, for instance, CONFIG_SHELL is bash and it inherits a
2508      # broken ls alias from the environment.  This has actually
2509      # happened.  Such a system could not be considered "sane".
2510      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2511alias in your environment" "$LINENO" 5
2512   fi
2513
2514   test "$2" = conftest.file
2515   )
2516then
2517   # Ok.
2518   :
2519else
2520   as_fn_error $? "newly created file is older than distributed files!
2521Check your system clock" "$LINENO" 5
2522fi
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2524$as_echo "yes" >&6; }
2525test "$program_prefix" != NONE &&
2526  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2527# Use a double $ so make ignores it.
2528test "$program_suffix" != NONE &&
2529  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2530# Double any \ or $.
2531# By default was `s,x,x', remove it if useless.
2532ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2533program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2534
2535# expand $ac_aux_dir to an absolute path
2536am_aux_dir=`cd $ac_aux_dir && pwd`
2537
2538if test x"${MISSING+set}" != xset; then
2539  case $am_aux_dir in
2540  *\ * | *\     *)
2541    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2542  *)
2543    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2544  esac
2545fi
2546# Use eval to expand $SHELL
2547if eval "$MISSING --run true"; then
2548  am_missing_run="$MISSING --run "
2549else
2550  am_missing_run=
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2552$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2553fi
2554
2555if test x"${install_sh}" != xset; then
2556  case $am_aux_dir in
2557  *\ * | *\     *)
2558    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2559  *)
2560    install_sh="\${SHELL} $am_aux_dir/install-sh"
2561  esac
2562fi
2563
2564# Installed binaries are usually stripped using `strip' when the user
2565# run `make install-strip'.  However `strip' might not be the right
2566# tool to use in cross-compilation environments, therefore Automake
2567# will honor the `STRIP' environment variable to overrule this program.
2568if test "$cross_compiling" != no; then
2569  if test -n "$ac_tool_prefix"; then
2570  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2571set dummy ${ac_tool_prefix}strip; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if ${ac_cv_prog_STRIP+:} false; then :
2575  $as_echo_n "(cached) " >&6
2576else
2577  if test -n "$STRIP"; then
2578  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583  IFS=$as_save_IFS
2584  test -z "$as_dir" && as_dir=.
2585    for ac_exec_ext in '' $ac_executable_extensions; do
2586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589    break 2
2590  fi
2591done
2592  done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597STRIP=$ac_cv_prog_STRIP
2598if test -n "$STRIP"; then
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2600$as_echo "$STRIP" >&6; }
2601else
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606
2607fi
2608if test -z "$ac_cv_prog_STRIP"; then
2609  ac_ct_STRIP=$STRIP
2610  # Extract the first word of "strip", so it can be a program name with args.
2611set dummy strip; ac_word=$2
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613$as_echo_n "checking for $ac_word... " >&6; }
2614if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  if test -n "$ac_ct_STRIP"; then
2618  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2619else
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623  IFS=$as_save_IFS
2624  test -z "$as_dir" && as_dir=.
2625    for ac_exec_ext in '' $ac_executable_extensions; do
2626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627    ac_cv_prog_ac_ct_STRIP="strip"
2628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629    break 2
2630  fi
2631done
2632  done
2633IFS=$as_save_IFS
2634
2635fi
2636fi
2637ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2638if test -n "$ac_ct_STRIP"; then
2639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2640$as_echo "$ac_ct_STRIP" >&6; }
2641else
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643$as_echo "no" >&6; }
2644fi
2645
2646  if test "x$ac_ct_STRIP" = x; then
2647    STRIP=":"
2648  else
2649    case $cross_compiling:$ac_tool_warned in
2650yes:)
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2653ac_tool_warned=yes ;;
2654esac
2655    STRIP=$ac_ct_STRIP
2656  fi
2657else
2658  STRIP="$ac_cv_prog_STRIP"
2659fi
2660
2661fi
2662INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2663
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2665$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2666if test -z "$MKDIR_P"; then
2667  if ${ac_cv_path_mkdir+:} false; then :
2668  $as_echo_n "(cached) " >&6
2669else
2670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2672do
2673  IFS=$as_save_IFS
2674  test -z "$as_dir" && as_dir=.
2675    for ac_prog in mkdir gmkdir; do
2676         for ac_exec_ext in '' $ac_executable_extensions; do
2677           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2678           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2679             'mkdir (GNU coreutils) '* | \
2680             'mkdir (coreutils) '* | \
2681             'mkdir (fileutils) '4.1*)
2682               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2683               break 3;;
2684           esac
2685         done
2686       done
2687  done
2688IFS=$as_save_IFS
2689
2690fi
2691
2692  test -d ./--version && rmdir ./--version
2693  if test "${ac_cv_path_mkdir+set}" = set; then
2694    MKDIR_P="$ac_cv_path_mkdir -p"
2695  else
2696    # As a last resort, use the slow shell script.  Don't cache a
2697    # value for MKDIR_P within a source directory, because that will
2698    # break other packages using the cache if that directory is
2699    # removed, or if the value is a relative name.
2700    MKDIR_P="$ac_install_sh -d"
2701  fi
2702fi
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2704$as_echo "$MKDIR_P" >&6; }
2705
2706mkdir_p="$MKDIR_P"
2707case $mkdir_p in
2708  [\\/$]* | ?:[\\/]*) ;;
2709  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2710esac
2711
2712for ac_prog in gawk mawk nawk awk
2713do
2714  # Extract the first word of "$ac_prog", so it can be a program name with args.
2715set dummy $ac_prog; ac_word=$2
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if ${ac_cv_prog_AWK+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  if test -n "$AWK"; then
2722  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2723else
2724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725for as_dir in $PATH
2726do
2727  IFS=$as_save_IFS
2728  test -z "$as_dir" && as_dir=.
2729    for ac_exec_ext in '' $ac_executable_extensions; do
2730  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731    ac_cv_prog_AWK="$ac_prog"
2732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733    break 2
2734  fi
2735done
2736  done
2737IFS=$as_save_IFS
2738
2739fi
2740fi
2741AWK=$ac_cv_prog_AWK
2742if test -n "$AWK"; then
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2744$as_echo "$AWK" >&6; }
2745else
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747$as_echo "no" >&6; }
2748fi
2749
2750
2751  test -n "$AWK" && break
2752done
2753
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2755$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2756set x ${MAKE-make}
2757ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2758if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2759  $as_echo_n "(cached) " >&6
2760else
2761  cat >conftest.make <<\_ACEOF
2762SHELL = /bin/sh
2763all:
2764        @echo '@@@%%%=$(MAKE)=@@@%%%'
2765_ACEOF
2766# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2767case `${MAKE-make} -f conftest.make 2>/dev/null` in
2768  *@@@%%%=?*=@@@%%%*)
2769    eval ac_cv_prog_make_${ac_make}_set=yes;;
2770  *)
2771    eval ac_cv_prog_make_${ac_make}_set=no;;
2772esac
2773rm -f conftest.make
2774fi
2775if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777$as_echo "yes" >&6; }
2778  SET_MAKE=
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782  SET_MAKE="MAKE=${MAKE-make}"
2783fi
2784
2785rm -rf .tst 2>/dev/null
2786mkdir .tst 2>/dev/null
2787if test -d .tst; then
2788  am__leading_dot=.
2789else
2790  am__leading_dot=_
2791fi
2792rmdir .tst 2>/dev/null
2793
2794if test "`cd $srcdir && pwd`" != "`pwd`"; then
2795  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2796  # is not polluted with repeated "-I."
2797  am__isrc=' -I$(srcdir)'
2798  # test to see if srcdir already configured
2799  if test -f $srcdir/config.status; then
2800    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2801  fi
2802fi
2803
2804# test whether we have cygpath
2805if test -z "$CYGPATH_W"; then
2806  if (cygpath --version) >/dev/null 2>/dev/null; then
2807    CYGPATH_W='cygpath -w'
2808  else
2809    CYGPATH_W=echo
2810  fi
2811fi
2812
2813
2814# Define the identity of the package.
2815 PACKAGE='dspam'
2816 VERSION='3.10.2'
2817
2818
2819cat >>confdefs.h <<_ACEOF
2820#define PACKAGE "$PACKAGE"
2821_ACEOF
2822
2823
2824cat >>confdefs.h <<_ACEOF
2825#define VERSION "$VERSION"
2826_ACEOF
2827
2828# Some tools Automake needs.
2829
2830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2831
2832
2833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2834
2835
2836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2837
2838
2839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2840
2841
2842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2843
2844# We need awk for the "check" target.  The system "awk" is bad on
2845# some platforms.
2846# Always define AMTAR for backward compatibility.
2847
2848AMTAR=${AMTAR-"${am_missing_run}tar"}
2849
2850am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2851
2852
2853
2854
2855
2856
2857# Make sure we can run config.sub.
2858$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2859  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2860
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2862$as_echo_n "checking build system type... " >&6; }
2863if ${ac_cv_build+:} false; then :
2864  $as_echo_n "(cached) " >&6
2865else
2866  ac_build_alias=$build_alias
2867test "x$ac_build_alias" = x &&
2868  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2869test "x$ac_build_alias" = x &&
2870  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2871ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2872  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2873
2874fi
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2876$as_echo "$ac_cv_build" >&6; }
2877case $ac_cv_build in
2878*-*-*) ;;
2879*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2880esac
2881build=$ac_cv_build
2882ac_save_IFS=$IFS; IFS='-'
2883set x $ac_cv_build
2884shift
2885build_cpu=$1
2886build_vendor=$2
2887shift; shift
2888# Remember, the first character of IFS is used to create $*,
2889# except with old shells:
2890build_os=$*
2891IFS=$ac_save_IFS
2892case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2893
2894
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2896$as_echo_n "checking host system type... " >&6; }
2897if ${ac_cv_host+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  if test "x$host_alias" = x; then
2901  ac_cv_host=$ac_cv_build
2902else
2903  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2904    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2905fi
2906
2907fi
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2909$as_echo "$ac_cv_host" >&6; }
2910case $ac_cv_host in
2911*-*-*) ;;
2912*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2913esac
2914host=$ac_cv_host
2915ac_save_IFS=$IFS; IFS='-'
2916set x $ac_cv_host
2917shift
2918host_cpu=$1
2919host_vendor=$2
2920shift; shift
2921# Remember, the first character of IFS is used to create $*,
2922# except with old shells:
2923host_os=$*
2924IFS=$ac_save_IFS
2925case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2926
2927
2928
2929#---------------------------------------------------------
2930#       C language relative
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936
2937ac_ext=c
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942if test -n "$ac_tool_prefix"; then
2943  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2944set dummy ${ac_tool_prefix}gcc; ac_word=$2
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if ${ac_cv_prog_CC+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$CC"; then
2951  ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958    for ac_exec_ext in '' $ac_executable_extensions; do
2959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962    break 2
2963  fi
2964done
2965  done
2966IFS=$as_save_IFS
2967
2968fi
2969fi
2970CC=$ac_cv_prog_CC
2971if test -n "$CC"; then
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973$as_echo "$CC" >&6; }
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977fi
2978
2979
2980fi
2981if test -z "$ac_cv_prog_CC"; then
2982  ac_ct_CC=$CC
2983  # Extract the first word of "gcc", so it can be a program name with args.
2984set dummy gcc; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if ${ac_cv_prog_ac_ct_CC+:} false; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$ac_ct_CC"; then
2991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000    ac_cv_prog_ac_ct_CC="gcc"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011if test -n "$ac_ct_CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3013$as_echo "$ac_ct_CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019  if test "x$ac_ct_CC" = x; then
3020    CC=""
3021  else
3022    case $cross_compiling:$ac_tool_warned in
3023yes:)
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026ac_tool_warned=yes ;;
3027esac
3028    CC=$ac_ct_CC
3029  fi
3030else
3031  CC="$ac_cv_prog_CC"
3032fi
3033
3034if test -z "$CC"; then
3035          if test -n "$ac_tool_prefix"; then
3036    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3037set dummy ${ac_tool_prefix}cc; ac_word=$2
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039$as_echo_n "checking for $ac_word... " >&6; }
3040if ${ac_cv_prog_CC+:} false; then :
3041  $as_echo_n "(cached) " >&6
3042else
3043  if test -n "$CC"; then
3044  ac_cv_prog_CC="$CC" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_CC="${ac_tool_prefix}cc"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057done
3058  done
3059IFS=$as_save_IFS
3060
3061fi
3062fi
3063CC=$ac_cv_prog_CC
3064if test -n "$CC"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066$as_echo "$CC" >&6; }
3067else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070fi
3071
3072
3073  fi
3074fi
3075if test -z "$CC"; then
3076  # Extract the first word of "cc", so it can be a program name with args.
3077set dummy cc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_CC+:} false; then :
3081  $as_echo_n "(cached) " >&6
3082else
3083  if test -n "$CC"; then
3084  ac_cv_prog_CC="$CC" # Let the user override the test.
3085else
3086  ac_prog_rejected=no
3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088for as_dir in $PATH
3089do
3090  IFS=$as_save_IFS
3091  test -z "$as_dir" && as_dir=.
3092    for ac_exec_ext in '' $ac_executable_extensions; do
3093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3095       ac_prog_rejected=yes
3096       continue
3097     fi
3098    ac_cv_prog_CC="cc"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106if test $ac_prog_rejected = yes; then
3107  # We found a bogon in the path, so make sure we never use it.
3108  set dummy $ac_cv_prog_CC
3109  shift
3110  if test $# != 0; then
3111    # We chose a different compiler from the bogus one.
3112    # However, it has the same basename, so the bogon will be chosen
3113    # first if we set CC to just the basename; use the full file name.
3114    shift
3115    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116  fi
3117fi
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123$as_echo "$CC" >&6; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130fi
3131if test -z "$CC"; then
3132  if test -n "$ac_tool_prefix"; then
3133  for ac_prog in cl.exe
3134  do
3135    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_CC+:} false; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$CC"; then
3143  ac_cv_prog_CC="$CC" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162CC=$ac_cv_prog_CC
3163if test -n "$CC"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165$as_echo "$CC" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171
3172    test -n "$CC" && break
3173  done
3174fi
3175if test -z "$CC"; then
3176  ac_ct_CC=$CC
3177  for ac_prog in cl.exe
3178do
3179  # Extract the first word of "$ac_prog", so it can be a program name with args.
3180set dummy $ac_prog; ac_word=$2
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182$as_echo_n "checking for $ac_word... " >&6; }
3183if ${ac_cv_prog_ac_ct_CC+:} false; then :
3184  $as_echo_n "(cached) " >&6
3185else
3186  if test -n "$ac_ct_CC"; then
3187  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192  IFS=$as_save_IFS
3193  test -z "$as_dir" && as_dir=.
3194    for ac_exec_ext in '' $ac_executable_extensions; do
3195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196    ac_cv_prog_ac_ct_CC="$ac_prog"
3197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198    break 2
3199  fi
3200done
3201  done
3202IFS=$as_save_IFS
3203
3204fi
3205fi
3206ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207if test -n "$ac_ct_CC"; then
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209$as_echo "$ac_ct_CC" >&6; }
3210else
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
3213fi
3214
3215
3216  test -n "$ac_ct_CC" && break
3217done
3218
3219  if test "x$ac_ct_CC" = x; then
3220    CC=""
3221  else
3222    case $cross_compiling:$ac_tool_warned in
3223yes:)
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226ac_tool_warned=yes ;;
3227esac
3228    CC=$ac_ct_CC
3229  fi
3230fi
3231
3232fi
3233
3234
3235test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237as_fn_error $? "no acceptable C compiler found in \$PATH
3238See \`config.log' for more details" "$LINENO" 5; }
3239
3240# Provide some information about the compiler.
3241$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3242set X $ac_compile
3243ac_compiler=$2
3244for ac_option in --version -v -V -qversion; do
3245  { { ac_try="$ac_compiler $ac_option >&5"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
3252  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3253  ac_status=$?
3254  if test -s conftest.err; then
3255    sed '10a\
3256... rest of stderr output deleted ...
3257         10q' conftest.err >conftest.er1
3258    cat conftest.er1 >&5
3259  fi
3260  rm -f conftest.er1 conftest.err
3261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262  test $ac_status = 0; }
3263done
3264
3265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266/* end confdefs.h.  */
3267
3268int
3269main ()
3270{
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276ac_clean_files_save=$ac_clean_files
3277ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3278# Try to create an executable without -o first, disregard a.out.
3279# It will help us diagnose broken compilers, and finding out an intuition
3280# of exeext.
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3282$as_echo_n "checking whether the C compiler works... " >&6; }
3283ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3284
3285# The possible output files:
3286ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3287
3288ac_rmfiles=
3289for ac_file in $ac_files
3290do
3291  case $ac_file in
3292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3294  esac
3295done
3296rm -f $ac_rmfiles
3297
3298if { { ac_try="$ac_link_default"
3299case "(($ac_try" in
3300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301  *) ac_try_echo=$ac_try;;
3302esac
3303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304$as_echo "$ac_try_echo"; } >&5
3305  (eval "$ac_link_default") 2>&5
3306  ac_status=$?
3307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308  test $ac_status = 0; }; then :
3309  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3310# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3311# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3312# so that the user can short-circuit this test for compilers unknown to
3313# Autoconf.
3314for ac_file in $ac_files ''
3315do
3316  test -f "$ac_file" || continue
3317  case $ac_file in
3318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3319        ;;
3320    [ab].out )
3321        # We found the default executable, but exeext='' is most
3322        # certainly right.
3323        break;;
3324    *.* )
3325        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3326        then :; else
3327           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328        fi
3329        # We set ac_cv_exeext here because the later test for it is not
3330        # safe: cross compilers may not add the suffix if given an `-o'
3331        # argument, so we may need to know it at that point already.
3332        # Even if this section looks crufty: it has the advantage of
3333        # actually working.
3334        break;;
3335    * )
3336        break;;
3337  esac
3338done
3339test "$ac_cv_exeext" = no && ac_cv_exeext=
3340
3341else
3342  ac_file=''
3343fi
3344if test -z "$ac_file"; then :
3345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346$as_echo "no" >&6; }
3347$as_echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3350{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352as_fn_error 77 "C compiler cannot create executables
3353See \`config.log' for more details" "$LINENO" 5; }
3354else
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3356$as_echo "yes" >&6; }
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3359$as_echo_n "checking for C compiler default output file name... " >&6; }
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3361$as_echo "$ac_file" >&6; }
3362ac_exeext=$ac_cv_exeext
3363
3364rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3365ac_clean_files=$ac_clean_files_save
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3367$as_echo_n "checking for suffix of executables... " >&6; }
3368if { { ac_try="$ac_link"
3369case "(($ac_try" in
3370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371  *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
3375  (eval "$ac_link") 2>&5
3376  ac_status=$?
3377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }; then :
3379  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3380# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3381# work properly (i.e., refer to `conftest.exe'), while it won't with
3382# `rm'.
3383for ac_file in conftest.exe conftest conftest.*; do
3384  test -f "$ac_file" || continue
3385  case $ac_file in
3386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3387    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388          break;;
3389    * ) break;;
3390  esac
3391done
3392else
3393  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3396See \`config.log' for more details" "$LINENO" 5; }
3397fi
3398rm -f conftest conftest$ac_cv_exeext
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3400$as_echo "$ac_cv_exeext" >&6; }
3401
3402rm -f conftest.$ac_ext
3403EXEEXT=$ac_cv_exeext
3404ac_exeext=$EXEEXT
3405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407#include <stdio.h>
3408int
3409main ()
3410{
3411FILE *f = fopen ("conftest.out", "w");
3412 return ferror (f) || fclose (f) != 0;
3413
3414  ;
3415  return 0;
3416}
3417_ACEOF
3418ac_clean_files="$ac_clean_files conftest.out"
3419# Check that the compiler produces executables we can run.  If not, either
3420# the compiler is broken, or we cross compile.
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3422$as_echo_n "checking whether we are cross compiling... " >&6; }
3423if test "$cross_compiling" != yes; then
3424  { { ac_try="$ac_link"
3425case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431  (eval "$ac_link") 2>&5
3432  ac_status=$?
3433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434  test $ac_status = 0; }
3435  if { ac_try='./conftest$ac_cv_exeext'
3436  { { case "(($ac_try" in
3437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438  *) ac_try_echo=$ac_try;;
3439esac
3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441$as_echo "$ac_try_echo"; } >&5
3442  (eval "$ac_try") 2>&5
3443  ac_status=$?
3444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445  test $ac_status = 0; }; }; then
3446    cross_compiling=no
3447  else
3448    if test "$cross_compiling" = maybe; then
3449        cross_compiling=yes
3450    else
3451        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error $? "cannot run C compiled programs.
3454If you meant to cross compile, use \`--host'.
3455See \`config.log' for more details" "$LINENO" 5; }
3456    fi
3457  fi
3458fi
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3460$as_echo "$cross_compiling" >&6; }
3461
3462rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3463ac_clean_files=$ac_clean_files_save
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3465$as_echo_n "checking for suffix of object files... " >&6; }
3466if ${ac_cv_objext+:} false; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471
3472int
3473main ()
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480rm -f conftest.o conftest.obj
3481if { { ac_try="$ac_compile"
3482case "(($ac_try" in
3483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484  *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488  (eval "$ac_compile") 2>&5
3489  ac_status=$?
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }; then :
3492  for ac_file in conftest.o conftest.obj conftest.*; do
3493  test -f "$ac_file" || continue;
3494  case $ac_file in
3495    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3496    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497       break;;
3498  esac
3499done
3500else
3501  $as_echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "cannot compute suffix of object files: cannot compile
3507See \`config.log' for more details" "$LINENO" 5; }
3508fi
3509rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510fi
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3512$as_echo "$ac_cv_objext" >&6; }
3513OBJEXT=$ac_cv_objext
3514ac_objext=$OBJEXT
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3516$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3517if ${ac_cv_c_compiler_gnu+:} false; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h.  */
3522
3523int
3524main ()
3525{
3526#ifndef __GNUC__
3527       choke me
3528#endif
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534if ac_fn_c_try_compile "$LINENO"; then :
3535  ac_compiler_gnu=yes
3536else
3537  ac_compiler_gnu=no
3538fi
3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540ac_cv_c_compiler_gnu=$ac_compiler_gnu
3541
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3544$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3545if test $ac_compiler_gnu = yes; then
3546  GCC=yes
3547else
3548  GCC=
3549fi
3550ac_test_CFLAGS=${CFLAGS+set}
3551ac_save_CFLAGS=$CFLAGS
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3553$as_echo_n "checking whether $CC accepts -g... " >&6; }
3554if ${ac_cv_prog_cc_g+:} false; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557  ac_save_c_werror_flag=$ac_c_werror_flag
3558   ac_c_werror_flag=yes
3559   ac_cv_prog_cc_g=no
3560   CFLAGS="-g"
3561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_compile "$LINENO"; then :
3573  ac_cv_prog_cc_g=yes
3574else
3575  CFLAGS=""
3576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588
3589else
3590  ac_c_werror_flag=$ac_save_c_werror_flag
3591         CFLAGS="-g"
3592         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h.  */
3594
3595int
3596main ()
3597{
3598
3599  ;
3600  return 0;
3601}
3602_ACEOF
3603if ac_fn_c_try_compile "$LINENO"; then :
3604  ac_cv_prog_cc_g=yes
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611   ac_c_werror_flag=$ac_save_c_werror_flag
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3614$as_echo "$ac_cv_prog_cc_g" >&6; }
3615if test "$ac_test_CFLAGS" = set; then
3616  CFLAGS=$ac_save_CFLAGS
3617elif test $ac_cv_prog_cc_g = yes; then
3618  if test "$GCC" = yes; then
3619    CFLAGS="-g -O2"
3620  else
3621    CFLAGS="-g"
3622  fi
3623else
3624  if test "$GCC" = yes; then
3625    CFLAGS="-O2"
3626  else
3627    CFLAGS=
3628  fi
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3631$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3632if ${ac_cv_prog_cc_c89+:} false; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  ac_cv_prog_cc_c89=no
3636ac_save_CC=$CC
3637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h.  */
3639#include <stdarg.h>
3640#include <stdio.h>
3641#include <sys/types.h>
3642#include <sys/stat.h>
3643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3644struct buf { int x; };
3645FILE * (*rcsopen) (struct buf *, struct stat *, int);
3646static char *e (p, i)
3647     char **p;
3648     int i;
3649{
3650  return p[i];
3651}
3652static char *f (char * (*g) (char **, int), char **p, ...)
3653{
3654  char *s;
3655  va_list v;
3656  va_start (v,p);
3657  s = g (p, va_arg (v,int));
3658  va_end (v);
3659  return s;
3660}
3661
3662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3663   function prototypes and stuff, but not '\xHH' hex character constants.
3664   These don't provoke an error unfortunately, instead are silently treated
3665   as 'x'.  The following induces an error, until -std is added to get
3666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3667   array size at least.  It's necessary to write '\x00'==0 to get something
3668   that's true only with -std.  */
3669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670
3671/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3672   inside strings and character constants.  */
3673#define FOO(x) 'x'
3674int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675
3676int test (int i, double x);
3677struct s1 {int (*f) (int a);};
3678struct s2 {int (*f) (double a);};
3679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680int argc;
3681char **argv;
3682int
3683main ()
3684{
3685return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3691        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692do
3693  CC="$ac_save_CC $ac_arg"
3694  if ac_fn_c_try_compile "$LINENO"; then :
3695  ac_cv_prog_cc_c89=$ac_arg
3696fi
3697rm -f core conftest.err conftest.$ac_objext
3698  test "x$ac_cv_prog_cc_c89" != "xno" && break
3699done
3700rm -f conftest.$ac_ext
3701CC=$ac_save_CC
3702
3703fi
3704# AC_CACHE_VAL
3705case "x$ac_cv_prog_cc_c89" in
3706  x)
3707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3708$as_echo "none needed" >&6; } ;;
3709  xno)
3710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3711$as_echo "unsupported" >&6; } ;;
3712  *)
3713    CC="$CC $ac_cv_prog_cc_c89"
3714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3715$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716esac
3717if test "x$ac_cv_prog_cc_c89" != xno; then :
3718
3719fi
3720
3721ac_ext=c
3722ac_cpp='$CPP $CPPFLAGS'
3723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726DEPDIR="${am__leading_dot}deps"
3727
3728ac_config_commands="$ac_config_commands depfiles"
3729
3730
3731am_make=${MAKE-make}
3732cat > confinc << 'END'
3733am__doit:
3734        @echo this is the am__doit target
3735.PHONY: am__doit
3736END
3737# If we don't find an include directive, just comment out the code.
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3739$as_echo_n "checking for style of include used by $am_make... " >&6; }
3740am__include="#"
3741am__quote=
3742_am_result=none
3743# First try GNU make style include.
3744echo "include confinc" > confmf
3745# Ignore all kinds of additional output from `make'.
3746case `$am_make -s -f confmf 2> /dev/null` in #(
3747*the\ am__doit\ target*)
3748  am__include=include
3749  am__quote=
3750  _am_result=GNU
3751  ;;
3752esac
3753# Now try BSD make style include.
3754if test "$am__include" = "#"; then
3755   echo '.include "confinc"' > confmf
3756   case `$am_make -s -f confmf 2> /dev/null` in #(
3757   *the\ am__doit\ target*)
3758     am__include=.include
3759     am__quote="\""
3760     _am_result=BSD
3761     ;;
3762   esac
3763fi
3764
3765
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3767$as_echo "$_am_result" >&6; }
3768rm -f confinc confmf
3769
3770# Check whether --enable-dependency-tracking was given.
3771if test "${enable_dependency_tracking+set}" = set; then :
3772  enableval=$enable_dependency_tracking;
3773fi
3774
3775if test "x$enable_dependency_tracking" != xno; then
3776  am_depcomp="$ac_aux_dir/depcomp"
3777  AMDEPBACKSLASH='\'
3778fi
3779 if test "x$enable_dependency_tracking" != xno; then
3780  AMDEP_TRUE=
3781  AMDEP_FALSE='#'
3782else
3783  AMDEP_TRUE='#'
3784  AMDEP_FALSE=
3785fi
3786
3787
3788
3789depcc="$CC"   am_compiler_list=
3790
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3792$as_echo_n "checking dependency style of $depcc... " >&6; }
3793if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3794  $as_echo_n "(cached) " >&6
3795else
3796  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797  # We make a subdir and do the tests there.  Otherwise we can end up
3798  # making bogus files that we don't know about and never remove.  For
3799  # instance it was reported that on HP-UX the gcc test will end up
3800  # making a dummy file named `D' -- because `-MD' means `put the output
3801  # in D'.
3802  mkdir conftest.dir
3803  # Copy depcomp to subdir because otherwise we won't find it if we're
3804  # using a relative directory.
3805  cp "$am_depcomp" conftest.dir
3806  cd conftest.dir
3807  # We will build objects and dependencies in a subdirectory because
3808  # it helps to detect inapplicable dependency modes.  For instance
3809  # both Tru64's cc and ICC support -MD to output dependencies as a
3810  # side effect of compilation, but ICC will put the dependencies in
3811  # the current directory while Tru64 will put them in the object
3812  # directory.
3813  mkdir sub
3814
3815  am_cv_CC_dependencies_compiler_type=none
3816  if test "$am_compiler_list" = ""; then
3817     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3818  fi
3819  am__universal=false
3820  case " $depcc " in #(
3821     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3822     esac
3823
3824  for depmode in $am_compiler_list; do
3825    # Setup a source with many dependencies, because some compilers
3826    # like to wrap large dependency lists on column 80 (with \), and
3827    # we should not choose a depcomp mode which is confused by this.
3828    #
3829    # We need to recreate these files for each test, as the compiler may
3830    # overwrite some of them when testing with obscure command lines.
3831    # This happens at least with the AIX C compiler.
3832    : > sub/conftest.c
3833    for i in 1 2 3 4 5 6; do
3834      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836      # Solaris 8's {/usr,}/bin/sh.
3837      touch sub/conftst$i.h
3838    done
3839    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840
3841    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3842    # mode.  It turns out that the SunPro C++ compiler does not properly
3843    # handle `-M -o', and we need to detect this.  Also, some Intel
3844    # versions had trouble with output in subdirs
3845    am__obj=sub/conftest.${OBJEXT-o}
3846    am__minus_obj="-o $am__obj"
3847    case $depmode in
3848    gcc)
3849      # This depmode causes a compiler race in universal mode.
3850      test "$am__universal" = false || continue
3851      ;;
3852    nosideeffect)
3853      # after this tag, mechanisms are not by side-effect, so they'll
3854      # only be used when explicitly requested
3855      if test "x$enable_dependency_tracking" = xyes; then
3856        continue
3857      else
3858        break
3859      fi
3860      ;;
3861    msvisualcpp | msvcmsys)
3862      # This compiler won't grok `-c -o', but also, the minuso test has
3863      # not run yet.  These depmodes are late enough in the game, and
3864      # so weak that their functioning should not be impacted.
3865      am__obj=conftest.${OBJEXT-o}
3866      am__minus_obj=
3867      ;;
3868    none) break ;;
3869    esac
3870    if depmode=$depmode \
3871       source=sub/conftest.c object=$am__obj \
3872       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3873       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3874         >/dev/null 2>conftest.err &&
3875       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3876       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3877       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3878       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3879      # icc doesn't choke on unknown options, it will just issue warnings
3880      # or remarks (even with -Werror).  So we grep stderr for any message
3881      # that says an option was ignored or not supported.
3882      # When given -MP, icc 7.0 and 7.1 complain thusly:
3883      #   icc: Command line warning: ignoring option '-M'; no argument required
3884      # The diagnosis changed in icc 8.0:
3885      #   icc: Command line remark: option '-MP' not supported
3886      if (grep 'ignoring option' conftest.err ||
3887          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3888        am_cv_CC_dependencies_compiler_type=$depmode
3889        break
3890      fi
3891    fi
3892  done
3893
3894  cd ..
3895  rm -rf conftest.dir
3896else
3897  am_cv_CC_dependencies_compiler_type=none
3898fi
3899
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3902$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3903CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3904
3905 if
3906  test "x$enable_dependency_tracking" != xno \
3907  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3908  am__fastdepCC_TRUE=
3909  am__fastdepCC_FALSE='#'
3910else
3911  am__fastdepCC_TRUE='#'
3912  am__fastdepCC_FALSE=
3913fi
3914
3915
3916#AC_PROG_CPP
3917case `pwd` in
3918  *\ * | *\     *)
3919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3920$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3921esac
3922
3923
3924
3925macro_version='2.4'
3926macro_revision='1.3293'
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940ltmain="$ac_aux_dir/ltmain.sh"
3941
3942# Backslashify metacharacters that are still active within
3943# double-quoted strings.
3944sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3945
3946# Same as above, but do not quote variable references.
3947double_quote_subst='s/\(["`\\]\)/\\\1/g'
3948
3949# Sed substitution to delay expansion of an escaped shell variable in a
3950# double_quote_subst'ed string.
3951delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3952
3953# Sed substitution to delay expansion of an escaped single quote.
3954delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3955
3956# Sed substitution to avoid accidental globbing in evaled expressions
3957no_glob_subst='s/\*/\\\*/g'
3958
3959ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3960ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3961ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3964$as_echo_n "checking how to print strings... " >&6; }
3965# Test print first, because it will be a builtin if present.
3966if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3967   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3968  ECHO='print -r --'
3969elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3970  ECHO='printf %s\n'
3971else
3972  # Use this function as a fallback that always works.
3973  func_fallback_echo ()
3974  {
3975    eval 'cat <<_LTECHO_EOF
3976$1
3977_LTECHO_EOF'
3978  }
3979  ECHO='func_fallback_echo'
3980fi
3981
3982# func_echo_all arg...
3983# Invoke $ECHO with all args, space-separated.
3984func_echo_all ()
3985{
3986    $ECHO ""
3987}
3988
3989case "$ECHO" in
3990  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3991$as_echo "printf" >&6; } ;;
3992  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3993$as_echo "print -r" >&6; } ;;
3994  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3995$as_echo "cat" >&6; } ;;
3996esac
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4012$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4013if ${ac_cv_path_SED+:} false; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4017     for ac_i in 1 2 3 4 5 6 7; do
4018       ac_script="$ac_script$as_nl$ac_script"
4019     done
4020     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4021     { ac_script=; unset ac_script;}
4022     if test -z "$SED"; then
4023  ac_path_SED_found=false
4024  # Loop through the user's path and test for each of PROGNAME-LIST
4025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_prog in sed gsed; do
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4033      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4034# Check for GNU ac_path_SED and select it if it is found.
4035  # Check for GNU $ac_path_SED
4036case `"$ac_path_SED" --version 2>&1` in
4037*GNU*)
4038  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4039*)
4040  ac_count=0
4041  $as_echo_n 0123456789 >"conftest.in"
4042  while :
4043  do
4044    cat "conftest.in" "conftest.in" >"conftest.tmp"
4045    mv "conftest.tmp" "conftest.in"
4046    cp "conftest.in" "conftest.nl"
4047    $as_echo '' >> "conftest.nl"
4048    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050    as_fn_arith $ac_count + 1 && ac_count=$as_val
4051    if test $ac_count -gt ${ac_path_SED_max-0}; then
4052      # Best one so far, save it but keep looking for a better one
4053      ac_cv_path_SED="$ac_path_SED"
4054      ac_path_SED_max=$ac_count
4055    fi
4056    # 10*(2^10) chars as input seems more than enough
4057    test $ac_count -gt 10 && break
4058  done
4059  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060esac
4061
4062      $ac_path_SED_found && break 3
4063    done
4064  done
4065  done
4066IFS=$as_save_IFS
4067  if test -z "$ac_cv_path_SED"; then
4068    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4069  fi
4070else
4071  ac_cv_path_SED=$SED
4072fi
4073
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4076$as_echo "$ac_cv_path_SED" >&6; }
4077 SED="$ac_cv_path_SED"
4078  rm -f conftest.sed
4079
4080test -z "$SED" && SED=sed
4081Xsed="$SED -e 1s/^X//"
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4094$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4095if ${ac_cv_path_GREP+:} false; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098  if test -z "$GREP"; then
4099  ac_path_GREP_found=false
4100  # Loop through the user's path and test for each of PROGNAME-LIST
4101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    for ac_prog in grep ggrep; do
4107    for ac_exec_ext in '' $ac_executable_extensions; do
4108      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4109      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4110# Check for GNU ac_path_GREP and select it if it is found.
4111  # Check for GNU $ac_path_GREP
4112case `"$ac_path_GREP" --version 2>&1` in
4113*GNU*)
4114  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115*)
4116  ac_count=0
4117  $as_echo_n 0123456789 >"conftest.in"
4118  while :
4119  do
4120    cat "conftest.in" "conftest.in" >"conftest.tmp"
4121    mv "conftest.tmp" "conftest.in"
4122    cp "conftest.in" "conftest.nl"
4123    $as_echo 'GREP' >> "conftest.nl"
4124    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126    as_fn_arith $ac_count + 1 && ac_count=$as_val
4127    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4128      # Best one so far, save it but keep looking for a better one
4129      ac_cv_path_GREP="$ac_path_GREP"
4130      ac_path_GREP_max=$ac_count
4131    fi
4132    # 10*(2^10) chars as input seems more than enough
4133    test $ac_count -gt 10 && break
4134  done
4135  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138      $ac_path_GREP_found && break 3
4139    done
4140  done
4141  done
4142IFS=$as_save_IFS
4143  if test -z "$ac_cv_path_GREP"; then
4144    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145  fi
4146else
4147  ac_cv_path_GREP=$GREP
4148fi
4149
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4152$as_echo "$ac_cv_path_GREP" >&6; }
4153 GREP="$ac_cv_path_GREP"
4154
4155
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4157$as_echo_n "checking for egrep... " >&6; }
4158if ${ac_cv_path_EGREP+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162   then ac_cv_path_EGREP="$GREP -E"
4163   else
4164     if test -z "$EGREP"; then
4165  ac_path_EGREP_found=false
4166  # Loop through the user's path and test for each of PROGNAME-LIST
4167  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4169do
4170  IFS=$as_save_IFS
4171  test -z "$as_dir" && as_dir=.
4172    for ac_prog in egrep; do
4173    for ac_exec_ext in '' $ac_executable_extensions; do
4174      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4176# Check for GNU ac_path_EGREP and select it if it is found.
4177  # Check for GNU $ac_path_EGREP
4178case `"$ac_path_EGREP" --version 2>&1` in
4179*GNU*)
4180  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4181*)
4182  ac_count=0
4183  $as_echo_n 0123456789 >"conftest.in"
4184  while :
4185  do
4186    cat "conftest.in" "conftest.in" >"conftest.tmp"
4187    mv "conftest.tmp" "conftest.in"
4188    cp "conftest.in" "conftest.nl"
4189    $as_echo 'EGREP' >> "conftest.nl"
4190    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192    as_fn_arith $ac_count + 1 && ac_count=$as_val
4193    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194      # Best one so far, save it but keep looking for a better one
4195      ac_cv_path_EGREP="$ac_path_EGREP"
4196      ac_path_EGREP_max=$ac_count
4197    fi
4198    # 10*(2^10) chars as input seems more than enough
4199    test $ac_count -gt 10 && break
4200  done
4201  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202esac
4203
4204      $ac_path_EGREP_found && break 3
4205    done
4206  done
4207  done
4208IFS=$as_save_IFS
4209  if test -z "$ac_cv_path_EGREP"; then
4210    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4211  fi
4212else
4213  ac_cv_path_EGREP=$EGREP
4214fi
4215
4216   fi
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4219$as_echo "$ac_cv_path_EGREP" >&6; }
4220 EGREP="$ac_cv_path_EGREP"
4221
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4224$as_echo_n "checking for fgrep... " >&6; }
4225if ${ac_cv_path_FGREP+:} false; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4229   then ac_cv_path_FGREP="$GREP -F"
4230   else
4231     if test -z "$FGREP"; then
4232  ac_path_FGREP_found=false
4233  # Loop through the user's path and test for each of PROGNAME-LIST
4234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239    for ac_prog in fgrep; do
4240    for ac_exec_ext in '' $ac_executable_extensions; do
4241      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4242      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4243# Check for GNU ac_path_FGREP and select it if it is found.
4244  # Check for GNU $ac_path_FGREP
4245case `"$ac_path_FGREP" --version 2>&1` in
4246*GNU*)
4247  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4248*)
4249  ac_count=0
4250  $as_echo_n 0123456789 >"conftest.in"
4251  while :
4252  do
4253    cat "conftest.in" "conftest.in" >"conftest.tmp"
4254    mv "conftest.tmp" "conftest.in"
4255    cp "conftest.in" "conftest.nl"
4256    $as_echo 'FGREP' >> "conftest.nl"
4257    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4258    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4259    as_fn_arith $ac_count + 1 && ac_count=$as_val
4260    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4261      # Best one so far, save it but keep looking for a better one
4262      ac_cv_path_FGREP="$ac_path_FGREP"
4263      ac_path_FGREP_max=$ac_count
4264    fi
4265    # 10*(2^10) chars as input seems more than enough
4266    test $ac_count -gt 10 && break
4267  done
4268  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4269esac
4270
4271      $ac_path_FGREP_found && break 3
4272    done
4273  done
4274  done
4275IFS=$as_save_IFS
4276  if test -z "$ac_cv_path_FGREP"; then
4277    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4278  fi
4279else
4280  ac_cv_path_FGREP=$FGREP
4281fi
4282
4283   fi
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4286$as_echo "$ac_cv_path_FGREP" >&6; }
4287 FGREP="$ac_cv_path_FGREP"
4288
4289
4290test -z "$GREP" && GREP=grep
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310# Check whether --with-gnu-ld was given.
4311if test "${with_gnu_ld+set}" = set; then :
4312  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4313else
4314  with_gnu_ld=no
4315fi
4316
4317ac_prog=ld
4318if test "$GCC" = yes; then
4319  # Check if gcc -print-prog-name=ld gives a path.
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4321$as_echo_n "checking for ld used by $CC... " >&6; }
4322  case $host in
4323  *-*-mingw*)
4324    # gcc leaves a trailing carriage return which upsets mingw
4325    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4326  *)
4327    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4328  esac
4329  case $ac_prog in
4330    # Accept absolute paths.
4331    [\\/]* | ?:[\\/]*)
4332      re_direlt='/[^/][^/]*/\.\./'
4333      # Canonicalize the pathname of ld
4334      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4335      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4336        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4337      done
4338      test -z "$LD" && LD="$ac_prog"
4339      ;;
4340  "")
4341    # If it fails, then pretend we aren't using GCC.
4342    ac_prog=ld
4343    ;;
4344  *)
4345    # If it is relative, then search for the first ld in PATH.
4346    with_gnu_ld=unknown
4347    ;;
4348  esac
4349elif test "$with_gnu_ld" = yes; then
4350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4351$as_echo_n "checking for GNU ld... " >&6; }
4352else
4353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4354$as_echo_n "checking for non-GNU ld... " >&6; }
4355fi
4356if ${lt_cv_path_LD+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  if test -z "$LD"; then
4360  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4361  for ac_dir in $PATH; do
4362    IFS="$lt_save_ifs"
4363    test -z "$ac_dir" && ac_dir=.
4364    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4365      lt_cv_path_LD="$ac_dir/$ac_prog"
4366      # Check to see if the program is GNU ld.  I'd rather use --version,
4367      # but apparently some variants of GNU ld only accept -v.
4368      # Break only if it was the GNU/non-GNU ld that we prefer.
4369      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4370      *GNU* | *'with BFD'*)
4371        test "$with_gnu_ld" != no && break
4372        ;;
4373      *)
4374        test "$with_gnu_ld" != yes && break
4375        ;;
4376      esac
4377    fi
4378  done
4379  IFS="$lt_save_ifs"
4380else
4381  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4382fi
4383fi
4384
4385LD="$lt_cv_path_LD"
4386if test -n "$LD"; then
4387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4388$as_echo "$LD" >&6; }
4389else
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391$as_echo "no" >&6; }
4392fi
4393test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4395$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4396if ${lt_cv_prog_gnu_ld+:} false; then :
4397  $as_echo_n "(cached) " >&6
4398else
4399  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4400case `$LD -v 2>&1 </dev/null` in
4401*GNU* | *'with BFD'*)
4402  lt_cv_prog_gnu_ld=yes
4403  ;;
4404*)
4405  lt_cv_prog_gnu_ld=no
4406  ;;
4407esac
4408fi
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4410$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4411with_gnu_ld=$lt_cv_prog_gnu_ld
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4422$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4423if ${lt_cv_path_NM+:} false; then :
4424  $as_echo_n "(cached) " >&6
4425else
4426  if test -n "$NM"; then
4427  # Let the user override the test.
4428  lt_cv_path_NM="$NM"
4429else
4430  lt_nm_to_check="${ac_tool_prefix}nm"
4431  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4432    lt_nm_to_check="$lt_nm_to_check nm"
4433  fi
4434  for lt_tmp_nm in $lt_nm_to_check; do
4435    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4436    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4437      IFS="$lt_save_ifs"
4438      test -z "$ac_dir" && ac_dir=.
4439      tmp_nm="$ac_dir/$lt_tmp_nm"
4440      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4441        # Check to see if the nm accepts a BSD-compat flag.
4442        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4443        #   nm: unknown option "B" ignored
4444        # Tru64's nm complains that /dev/null is an invalid object file
4445        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4446        */dev/null* | *'Invalid file or object type'*)
4447          lt_cv_path_NM="$tmp_nm -B"
4448          break
4449          ;;
4450        *)
4451          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4452          */dev/null*)
4453            lt_cv_path_NM="$tmp_nm -p"
4454            break
4455            ;;
4456          *)
4457            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4458            continue # so that we can try to find one that supports BSD flags
4459            ;;
4460          esac
4461          ;;
4462        esac
4463      fi
4464    done
4465    IFS="$lt_save_ifs"
4466  done
4467  : ${lt_cv_path_NM=no}
4468fi
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4471$as_echo "$lt_cv_path_NM" >&6; }
4472if test "$lt_cv_path_NM" != "no"; then
4473  NM="$lt_cv_path_NM"
4474else
4475  # Didn't find any BSD compatible name lister, look for dumpbin.
4476  if test -n "$DUMPBIN"; then :
4477    # Let the user override the test.
4478  else
4479    if test -n "$ac_tool_prefix"; then
4480  for ac_prog in dumpbin "link -dump"
4481  do
4482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485$as_echo_n "checking for $ac_word... " >&6; }
4486if ${ac_cv_prog_DUMPBIN+:} false; then :
4487  $as_echo_n "(cached) " >&6
4488else
4489  if test -n "$DUMPBIN"; then
4490  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4491else
4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH
4494do
4495  IFS=$as_save_IFS
4496  test -z "$as_dir" && as_dir=.
4497    for ac_exec_ext in '' $ac_executable_extensions; do
4498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501    break 2
4502  fi
4503done
4504  done
4505IFS=$as_save_IFS
4506
4507fi
4508fi
4509DUMPBIN=$ac_cv_prog_DUMPBIN
4510if test -n "$DUMPBIN"; then
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4512$as_echo "$DUMPBIN" >&6; }
4513else
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515$as_echo "no" >&6; }
4516fi
4517
4518
4519    test -n "$DUMPBIN" && break
4520  done
4521fi
4522if test -z "$DUMPBIN"; then
4523  ac_ct_DUMPBIN=$DUMPBIN
4524  for ac_prog in dumpbin "link -dump"
4525do
4526  # Extract the first word of "$ac_prog", so it can be a program name with args.
4527set dummy $ac_prog; ac_word=$2
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
4530if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test -n "$ac_ct_DUMPBIN"; then
4534  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541    for ac_exec_ext in '' $ac_executable_extensions; do
4542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545    break 2
4546  fi
4547done
4548  done
4549IFS=$as_save_IFS
4550
4551fi
4552fi
4553ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4554if test -n "$ac_ct_DUMPBIN"; then
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4556$as_echo "$ac_ct_DUMPBIN" >&6; }
4557else
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559$as_echo "no" >&6; }
4560fi
4561
4562
4563  test -n "$ac_ct_DUMPBIN" && break
4564done
4565
4566  if test "x$ac_ct_DUMPBIN" = x; then
4567    DUMPBIN=":"
4568  else
4569    case $cross_compiling:$ac_tool_warned in
4570yes:)
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573ac_tool_warned=yes ;;
4574esac
4575    DUMPBIN=$ac_ct_DUMPBIN
4576  fi
4577fi
4578
4579    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4580    *COFF*)
4581      DUMPBIN="$DUMPBIN -symbols"
4582      ;;
4583    *)
4584      DUMPBIN=:
4585      ;;
4586    esac
4587  fi
4588
4589  if test "$DUMPBIN" != ":"; then
4590    NM="$DUMPBIN"
4591  fi
4592fi
4593test -z "$NM" && NM=nm
4594
4595
4596
4597
4598
4599
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4601$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4602if ${lt_cv_nm_interface+:} false; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  lt_cv_nm_interface="BSD nm"
4606  echo "int some_variable = 0;" > conftest.$ac_ext
4607  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4608  (eval "$ac_compile" 2>conftest.err)
4609  cat conftest.err >&5
4610  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4611  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4612  cat conftest.err >&5
4613  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4614  cat conftest.out >&5
4615  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4616    lt_cv_nm_interface="MS dumpbin"
4617  fi
4618  rm -f conftest*
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4621$as_echo "$lt_cv_nm_interface" >&6; }
4622
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4624$as_echo_n "checking whether ln -s works... " >&6; }
4625LN_S=$as_ln_s
4626if test "$LN_S" = "ln -s"; then
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4628$as_echo "yes" >&6; }
4629else
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4631$as_echo "no, using $LN_S" >&6; }
4632fi
4633
4634# find the maximum length of command line arguments
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4636$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4637if ${lt_cv_sys_max_cmd_len+:} false; then :
4638  $as_echo_n "(cached) " >&6
4639else
4640    i=0
4641  teststring="ABCD"
4642
4643  case $build_os in
4644  msdosdjgpp*)
4645    # On DJGPP, this test can blow up pretty badly due to problems in libc
4646    # (any single argument exceeding 2000 bytes causes a buffer overrun
4647    # during glob expansion).  Even if it were fixed, the result of this
4648    # check would be larger than it should be.
4649    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4650    ;;
4651
4652  gnu*)
4653    # Under GNU Hurd, this test is not required because there is
4654    # no limit to the length of command line arguments.
4655    # Libtool will interpret -1 as no limit whatsoever
4656    lt_cv_sys_max_cmd_len=-1;
4657    ;;
4658
4659  cygwin* | mingw* | cegcc*)
4660    # On Win9x/ME, this test blows up -- it succeeds, but takes
4661    # about 5 minutes as the teststring grows exponentially.
4662    # Worse, since 9x/ME are not pre-emptively multitasking,
4663    # you end up with a "frozen" computer, even though with patience
4664    # the test eventually succeeds (with a max line length of 256k).
4665    # Instead, let's just punt: use the minimum linelength reported by
4666    # all of the supported platforms: 8192 (on NT/2K/XP).
4667    lt_cv_sys_max_cmd_len=8192;
4668    ;;
4669
4670  mint*)
4671    # On MiNT this can take a long time and run out of memory.
4672    lt_cv_sys_max_cmd_len=8192;
4673    ;;
4674
4675  amigaos*)
4676    # On AmigaOS with pdksh, this test takes hours, literally.
4677    # So we just punt and use a minimum line length of 8192.
4678    lt_cv_sys_max_cmd_len=8192;
4679    ;;
4680
4681  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4682    # This has been around since 386BSD, at least.  Likely further.
4683    if test -x /sbin/sysctl; then
4684      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4685    elif test -x /usr/sbin/sysctl; then
4686      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4687    else
4688      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4689    fi
4690    # And add a safety zone
4691    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4692    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4693    ;;
4694
4695  interix*)
4696    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4697    lt_cv_sys_max_cmd_len=196608
4698    ;;
4699
4700  osf*)
4701    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4702    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4703    # nice to cause kernel panics so lets avoid the loop below.
4704    # First set a reasonable default.
4705    lt_cv_sys_max_cmd_len=16384
4706    #
4707    if test -x /sbin/sysconfig; then
4708      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4709        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4710      esac
4711    fi
4712    ;;
4713  sco3.2v5*)
4714    lt_cv_sys_max_cmd_len=102400
4715    ;;
4716  sysv5* | sco5v6* | sysv4.2uw2*)
4717    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4718    if test -n "$kargmax"; then
4719      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4720    else
4721      lt_cv_sys_max_cmd_len=32768
4722    fi
4723    ;;
4724  *)
4725    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4726    if test -n "$lt_cv_sys_max_cmd_len"; then
4727      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4728      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4729    else
4730      # Make teststring a little bigger before we do anything with it.
4731      # a 1K string should be a reasonable start.
4732      for i in 1 2 3 4 5 6 7 8 ; do
4733        teststring=$teststring$teststring
4734      done
4735      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4736      # If test is not a shell built-in, we'll probably end up computing a
4737      # maximum length that is only half of the actual maximum length, but
4738      # we can't tell.
4739      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4740                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4741              test $i != 17 # 1/2 MB should be enough
4742      do
4743        i=`expr $i + 1`
4744        teststring=$teststring$teststring
4745      done
4746      # Only check the string length outside the loop.
4747      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4748      teststring=
4749      # Add a significant safety factor because C++ compilers can tack on
4750      # massive amounts of additional arguments before passing them to the
4751      # linker.  It appears as though 1/2 is a usable value.
4752      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4753    fi
4754    ;;
4755  esac
4756
4757fi
4758
4759if test -n $lt_cv_sys_max_cmd_len ; then
4760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4761$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4762else
4763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4764$as_echo "none" >&6; }
4765fi
4766max_cmd_len=$lt_cv_sys_max_cmd_len
4767
4768
4769
4770
4771
4772
4773: ${CP="cp -f"}
4774: ${MV="mv -f"}
4775: ${RM="rm -f"}
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4778$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4779# Try some XSI features
4780xsi_shell=no
4781( _lt_dummy="a/b/c"
4782  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4783      = c,a/b,b/c, \
4784    && eval 'test $(( 1 + 1 )) -eq 2 \
4785    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4786  && xsi_shell=yes
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4788$as_echo "$xsi_shell" >&6; }
4789
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4792$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4793lt_shell_append=no
4794( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4795    >/dev/null 2>&1 \
4796  && lt_shell_append=yes
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4798$as_echo "$lt_shell_append" >&6; }
4799
4800
4801if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4802  lt_unset=unset
4803else
4804  lt_unset=false
4805fi
4806
4807
4808
4809
4810
4811# test EBCDIC or ASCII
4812case `echo X|tr X '\101'` in
4813 A) # ASCII based system
4814    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4815  lt_SP2NL='tr \040 \012'
4816  lt_NL2SP='tr \015\012 \040\040'
4817  ;;
4818 *) # EBCDIC based system
4819  lt_SP2NL='tr \100 \n'
4820  lt_NL2SP='tr \r\n \100\100'
4821  ;;
4822esac
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4833$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4834if ${lt_cv_to_host_file_cmd+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  case $host in
4838  *-*-mingw* )
4839    case $build in
4840      *-*-mingw* ) # actually msys
4841        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4842        ;;
4843      *-*-cygwin* )
4844        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4845        ;;
4846      * ) # otherwise, assume *nix
4847        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4848        ;;
4849    esac
4850    ;;
4851  *-*-cygwin* )
4852    case $build in
4853      *-*-mingw* ) # actually msys
4854        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4855        ;;
4856      *-*-cygwin* )
4857        lt_cv_to_host_file_cmd=func_convert_file_noop
4858        ;;
4859      * ) # otherwise, assume *nix
4860        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4861        ;;
4862    esac
4863    ;;
4864  * ) # unhandled hosts (and "normal" native builds)
4865    lt_cv_to_host_file_cmd=func_convert_file_noop
4866    ;;
4867esac
4868
4869fi
4870
4871to_host_file_cmd=$lt_cv_to_host_file_cmd
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4873$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4874
4875
4876
4877
4878
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4880$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4881if ${lt_cv_to_tool_file_cmd+:} false; then :
4882  $as_echo_n "(cached) " >&6
4883else
4884  #assume ordinary cross tools, or native build.
4885lt_cv_to_tool_file_cmd=func_convert_file_noop
4886case $host in
4887  *-*-mingw* )
4888    case $build in
4889      *-*-mingw* ) # actually msys
4890        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4891        ;;
4892    esac
4893    ;;
4894esac
4895
4896fi
4897
4898to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4900$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4901
4902
4903
4904
4905
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4907$as_echo_n "checking for $LD option to reload object files... " >&6; }
4908if ${lt_cv_ld_reload_flag+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  lt_cv_ld_reload_flag='-r'
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4914$as_echo "$lt_cv_ld_reload_flag" >&6; }
4915reload_flag=$lt_cv_ld_reload_flag
4916case $reload_flag in
4917"" | " "*) ;;
4918*) reload_flag=" $reload_flag" ;;
4919esac
4920reload_cmds='$LD$reload_flag -o $output$reload_objs'
4921case $host_os in
4922  cygwin* | mingw* | pw32* | cegcc*)
4923    if test "$GCC" != yes; then
4924      reload_cmds=false
4925    fi
4926    ;;
4927  darwin*)
4928    if test "$GCC" = yes; then
4929      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4930    else
4931      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4932    fi
4933    ;;
4934esac
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944if test -n "$ac_tool_prefix"; then
4945  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4946set dummy ${ac_tool_prefix}objdump; ac_word=$2
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948$as_echo_n "checking for $ac_word... " >&6; }
4949if ${ac_cv_prog_OBJDUMP+:} false; then :
4950  $as_echo_n "(cached) " >&6
4951else
4952  if test -n "$OBJDUMP"; then
4953  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958  IFS=$as_save_IFS
4959  test -z "$as_dir" && as_dir=.
4960    for ac_exec_ext in '' $ac_executable_extensions; do
4961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964    break 2
4965  fi
4966done
4967  done
4968IFS=$as_save_IFS
4969
4970fi
4971fi
4972OBJDUMP=$ac_cv_prog_OBJDUMP
4973if test -n "$OBJDUMP"; then
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4975$as_echo "$OBJDUMP" >&6; }
4976else
4977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978$as_echo "no" >&6; }
4979fi
4980
4981
4982fi
4983if test -z "$ac_cv_prog_OBJDUMP"; then
4984  ac_ct_OBJDUMP=$OBJDUMP
4985  # Extract the first word of "objdump", so it can be a program name with args.
4986set dummy objdump; ac_word=$2
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988$as_echo_n "checking for $ac_word... " >&6; }
4989if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  if test -n "$ac_ct_OBJDUMP"; then
4993  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4994else
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998  IFS=$as_save_IFS
4999  test -z "$as_dir" && as_dir=.
5000    for ac_exec_ext in '' $ac_executable_extensions; do
5001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004    break 2
5005  fi
5006done
5007  done
5008IFS=$as_save_IFS
5009
5010fi
5011fi
5012ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5013if test -n "$ac_ct_OBJDUMP"; then
5014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5015$as_echo "$ac_ct_OBJDUMP" >&6; }
5016else
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018$as_echo "no" >&6; }
5019fi
5020
5021  if test "x$ac_ct_OBJDUMP" = x; then
5022    OBJDUMP="false"
5023  else
5024    case $cross_compiling:$ac_tool_warned in
5025yes:)
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5028ac_tool_warned=yes ;;
5029esac
5030    OBJDUMP=$ac_ct_OBJDUMP
5031  fi
5032else
5033  OBJDUMP="$ac_cv_prog_OBJDUMP"
5034fi
5035
5036test -z "$OBJDUMP" && OBJDUMP=objdump
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5047$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5048if ${lt_cv_deplibs_check_method+:} false; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051  lt_cv_file_magic_cmd='$MAGIC_CMD'
5052lt_cv_file_magic_test_file=
5053lt_cv_deplibs_check_method='unknown'
5054# Need to set the preceding variable on all platforms that support
5055# interlibrary dependencies.
5056# 'none' -- dependencies not supported.
5057# `unknown' -- same as none, but documents that we really don't know.
5058# 'pass_all' -- all dependencies passed with no checks.
5059# 'test_compile' -- check by making test program.
5060# 'file_magic [[regex]]' -- check by looking for files in library path
5061# which responds to the $file_magic_cmd with a given extended regex.
5062# If you have `file' or equivalent on your system and you're not sure
5063# whether `pass_all' will *always* work, you probably want this one.
5064
5065case $host_os in
5066aix[4-9]*)
5067  lt_cv_deplibs_check_method=pass_all
5068  ;;
5069
5070beos*)
5071  lt_cv_deplibs_check_method=pass_all
5072  ;;
5073
5074bsdi[45]*)
5075  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5076  lt_cv_file_magic_cmd='/usr/bin/file -L'
5077  lt_cv_file_magic_test_file=/shlib/libc.so
5078  ;;
5079
5080cygwin*)
5081  # func_win32_libid is a shell function defined in ltmain.sh
5082  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5083  lt_cv_file_magic_cmd='func_win32_libid'
5084  ;;
5085
5086mingw* | pw32*)
5087  # Base MSYS/MinGW do not provide the 'file' command needed by
5088  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5089  # unless we find 'file', for example because we are cross-compiling.
5090  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5091  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5092    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5093    lt_cv_file_magic_cmd='func_win32_libid'
5094  else
5095    # Keep this pattern in sync with the one in func_win32_libid.
5096    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5097    lt_cv_file_magic_cmd='$OBJDUMP -f'
5098  fi
5099  ;;
5100
5101cegcc*)
5102  # use the weaker test based on 'objdump'. See mingw*.
5103  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5104  lt_cv_file_magic_cmd='$OBJDUMP -f'
5105  ;;
5106
5107darwin* | rhapsody*)
5108  lt_cv_deplibs_check_method=pass_all
5109  ;;
5110
5111freebsd* | dragonfly*)
5112  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5113    case $host_cpu in
5114    i*86 )
5115      # Not sure whether the presence of OpenBSD here was a mistake.
5116      # Let's accept both of them until this is cleared up.
5117      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5118      lt_cv_file_magic_cmd=/usr/bin/file
5119      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5120      ;;
5121    esac
5122  else
5123    lt_cv_deplibs_check_method=pass_all
5124  fi
5125  ;;
5126
5127gnu*)
5128  lt_cv_deplibs_check_method=pass_all
5129  ;;
5130
5131haiku*)
5132  lt_cv_deplibs_check_method=pass_all
5133  ;;
5134
5135hpux10.20* | hpux11*)
5136  lt_cv_file_magic_cmd=/usr/bin/file
5137  case $host_cpu in
5138  ia64*)
5139    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5140    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5141    ;;
5142  hppa*64*)
5143    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]'
5144    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5145    ;;
5146  *)
5147    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5148    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5149    ;;
5150  esac
5151  ;;
5152
5153interix[3-9]*)
5154  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5155  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5156  ;;
5157
5158irix5* | irix6* | nonstopux*)
5159  case $LD in
5160  *-32|*"-32 ") libmagic=32-bit;;
5161  *-n32|*"-n32 ") libmagic=N32;;
5162  *-64|*"-64 ") libmagic=64-bit;;
5163  *) libmagic=never-match;;
5164  esac
5165  lt_cv_deplibs_check_method=pass_all
5166  ;;
5167
5168# This must be Linux ELF.
5169linux* | k*bsd*-gnu | kopensolaris*-gnu)
5170  lt_cv_deplibs_check_method=pass_all
5171  ;;
5172
5173netbsd*)
5174  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5175    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5176  else
5177    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5178  fi
5179  ;;
5180
5181newos6*)
5182  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5183  lt_cv_file_magic_cmd=/usr/bin/file
5184  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5185  ;;
5186
5187*nto* | *qnx*)
5188  lt_cv_deplibs_check_method=pass_all
5189  ;;
5190
5191openbsd*)
5192  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5193    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5194  else
5195    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5196  fi
5197  ;;
5198
5199osf3* | osf4* | osf5*)
5200  lt_cv_deplibs_check_method=pass_all
5201  ;;
5202
5203rdos*)
5204  lt_cv_deplibs_check_method=pass_all
5205  ;;
5206
5207solaris*)
5208  lt_cv_deplibs_check_method=pass_all
5209  ;;
5210
5211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5212  lt_cv_deplibs_check_method=pass_all
5213  ;;
5214
5215sysv4 | sysv4.3*)
5216  case $host_vendor in
5217  motorola)
5218    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]'
5219    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5220    ;;
5221  ncr)
5222    lt_cv_deplibs_check_method=pass_all
5223    ;;
5224  sequent)
5225    lt_cv_file_magic_cmd='/bin/file'
5226    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5227    ;;
5228  sni)
5229    lt_cv_file_magic_cmd='/bin/file'
5230    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5231    lt_cv_file_magic_test_file=/lib/libc.so
5232    ;;
5233  siemens)
5234    lt_cv_deplibs_check_method=pass_all
5235    ;;
5236  pc)
5237    lt_cv_deplibs_check_method=pass_all
5238    ;;
5239  esac
5240  ;;
5241
5242tpf*)
5243  lt_cv_deplibs_check_method=pass_all
5244  ;;
5245esac
5246
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5249$as_echo "$lt_cv_deplibs_check_method" >&6; }
5250
5251file_magic_glob=
5252want_nocaseglob=no
5253if test "$build" = "$host"; then
5254  case $host_os in
5255  mingw* | pw32*)
5256    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5257      want_nocaseglob=yes
5258    else
5259      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5260    fi
5261    ;;
5262  esac
5263fi
5264
5265file_magic_cmd=$lt_cv_file_magic_cmd
5266deplibs_check_method=$lt_cv_deplibs_check_method
5267test -z "$deplibs_check_method" && deplibs_check_method=unknown
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290if test -n "$ac_tool_prefix"; then
5291  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5292set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294$as_echo_n "checking for $ac_word... " >&6; }
5295if ${ac_cv_prog_DLLTOOL+:} false; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  if test -n "$DLLTOOL"; then
5299  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304  IFS=$as_save_IFS
5305  test -z "$as_dir" && as_dir=.
5306    for ac_exec_ext in '' $ac_executable_extensions; do
5307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310    break 2
5311  fi
5312done
5313  done
5314IFS=$as_save_IFS
5315
5316fi
5317fi
5318DLLTOOL=$ac_cv_prog_DLLTOOL
5319if test -n "$DLLTOOL"; then
5320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5321$as_echo "$DLLTOOL" >&6; }
5322else
5323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326
5327
5328fi
5329if test -z "$ac_cv_prog_DLLTOOL"; then
5330  ac_ct_DLLTOOL=$DLLTOOL
5331  # Extract the first word of "dlltool", so it can be a program name with args.
5332set dummy dlltool; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  if test -n "$ac_ct_DLLTOOL"; then
5339  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344  IFS=$as_save_IFS
5345  test -z "$as_dir" && as_dir=.
5346    for ac_exec_ext in '' $ac_executable_extensions; do
5347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350    break 2
5351  fi
5352done
5353  done
5354IFS=$as_save_IFS
5355
5356fi
5357fi
5358ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5359if test -n "$ac_ct_DLLTOOL"; then
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5361$as_echo "$ac_ct_DLLTOOL" >&6; }
5362else
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365fi
5366
5367  if test "x$ac_ct_DLLTOOL" = x; then
5368    DLLTOOL="false"
5369  else
5370    case $cross_compiling:$ac_tool_warned in
5371yes:)
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374ac_tool_warned=yes ;;
5375esac
5376    DLLTOOL=$ac_ct_DLLTOOL
5377  fi
5378else
5379  DLLTOOL="$ac_cv_prog_DLLTOOL"
5380fi
5381
5382test -z "$DLLTOOL" && DLLTOOL=dlltool
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5394$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5395if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5396  $as_echo_n "(cached) " >&6
5397else
5398  lt_cv_sharedlib_from_linklib_cmd='unknown'
5399
5400case $host_os in
5401cygwin* | mingw* | pw32* | cegcc*)
5402  # two different shell functions defined in ltmain.sh
5403  # decide which to use based on capabilities of $DLLTOOL
5404  case `$DLLTOOL --help 2>&1` in
5405  *--identify-strict*)
5406    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5407    ;;
5408  *)
5409    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5410    ;;
5411  esac
5412  ;;
5413*)
5414  # fallback: assume linklib IS sharedlib
5415  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5416  ;;
5417esac
5418
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5421$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5422sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5423test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5424
5425
5426
5427
5428
5429
5430
5431
5432if test -n "$ac_tool_prefix"; then
5433  for ac_prog in ar
5434  do
5435    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438$as_echo_n "checking for $ac_word... " >&6; }
5439if ${ac_cv_prog_AR+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  if test -n "$AR"; then
5443  ac_cv_prog_AR="$AR" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448  IFS=$as_save_IFS
5449  test -z "$as_dir" && as_dir=.
5450    for ac_exec_ext in '' $ac_executable_extensions; do
5451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454    break 2
5455  fi
5456done
5457  done
5458IFS=$as_save_IFS
5459
5460fi
5461fi
5462AR=$ac_cv_prog_AR
5463if test -n "$AR"; then
5464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5465$as_echo "$AR" >&6; }
5466else
5467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468$as_echo "no" >&6; }
5469fi
5470
5471
5472    test -n "$AR" && break
5473  done
5474fi
5475if test -z "$AR"; then
5476  ac_ct_AR=$AR
5477  for ac_prog in ar
5478do
5479  # Extract the first word of "$ac_prog", so it can be a program name with args.
5480set dummy $ac_prog; ac_word=$2
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482$as_echo_n "checking for $ac_word... " >&6; }
5483if ${ac_cv_prog_ac_ct_AR+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  if test -n "$ac_ct_AR"; then
5487  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492  IFS=$as_save_IFS
5493  test -z "$as_dir" && as_dir=.
5494    for ac_exec_ext in '' $ac_executable_extensions; do
5495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496    ac_cv_prog_ac_ct_AR="$ac_prog"
5497    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498    break 2
5499  fi
5500done
5501  done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506ac_ct_AR=$ac_cv_prog_ac_ct_AR
5507if test -n "$ac_ct_AR"; then
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5509$as_echo "$ac_ct_AR" >&6; }
5510else
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515
5516  test -n "$ac_ct_AR" && break
5517done
5518
5519  if test "x$ac_ct_AR" = x; then
5520    AR="false"
5521  else
5522    case $cross_compiling:$ac_tool_warned in
5523yes:)
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526ac_tool_warned=yes ;;
5527esac
5528    AR=$ac_ct_AR
5529  fi
5530fi
5531
5532: ${AR=ar}
5533: ${AR_FLAGS=cru}
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5546$as_echo_n "checking for archiver @FILE support... " >&6; }
5547if ${lt_cv_ar_at_file+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  lt_cv_ar_at_file=no
5551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553
5554int
5555main ()
5556{
5557
5558  ;
5559  return 0;
5560}
5561_ACEOF
5562if ac_fn_c_try_compile "$LINENO"; then :
5563  echo conftest.$ac_objext > conftest.lst
5564      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5565      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5566  (eval $lt_ar_try) 2>&5
5567  ac_status=$?
5568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569  test $ac_status = 0; }
5570      if test "$ac_status" -eq 0; then
5571        # Ensure the archiver fails upon bogus file names.
5572        rm -f conftest.$ac_objext libconftest.a
5573        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5574  (eval $lt_ar_try) 2>&5
5575  ac_status=$?
5576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577  test $ac_status = 0; }
5578        if test "$ac_status" -ne 0; then
5579          lt_cv_ar_at_file=@
5580        fi
5581      fi
5582      rm -f conftest.* libconftest.a
5583
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5589$as_echo "$lt_cv_ar_at_file" >&6; }
5590
5591if test "x$lt_cv_ar_at_file" = xno; then
5592  archiver_list_spec=
5593else
5594  archiver_list_spec=$lt_cv_ar_at_file
5595fi
5596
5597
5598
5599
5600
5601
5602
5603if test -n "$ac_tool_prefix"; then
5604  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5605set dummy ${ac_tool_prefix}strip; ac_word=$2
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if ${ac_cv_prog_STRIP+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test -n "$STRIP"; then
5612  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617  IFS=$as_save_IFS
5618  test -z "$as_dir" && as_dir=.
5619    for ac_exec_ext in '' $ac_executable_extensions; do
5620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623    break 2
5624  fi
5625done
5626  done
5627IFS=$as_save_IFS
5628
5629fi
5630fi
5631STRIP=$ac_cv_prog_STRIP
5632if test -n "$STRIP"; then
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5634$as_echo "$STRIP" >&6; }
5635else
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638fi
5639
5640
5641fi
5642if test -z "$ac_cv_prog_STRIP"; then
5643  ac_ct_STRIP=$STRIP
5644  # Extract the first word of "strip", so it can be a program name with args.
5645set dummy strip; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  if test -n "$ac_ct_STRIP"; then
5652  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659    for ac_exec_ext in '' $ac_executable_extensions; do
5660  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661    ac_cv_prog_ac_ct_STRIP="strip"
5662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663    break 2
5664  fi
5665done
5666  done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5672if test -n "$ac_ct_STRIP"; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5674$as_echo "$ac_ct_STRIP" >&6; }
5675else
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680  if test "x$ac_ct_STRIP" = x; then
5681    STRIP=":"
5682  else
5683    case $cross_compiling:$ac_tool_warned in
5684yes:)
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687ac_tool_warned=yes ;;
5688esac
5689    STRIP=$ac_ct_STRIP
5690  fi
5691else
5692  STRIP="$ac_cv_prog_STRIP"
5693fi
5694
5695test -z "$STRIP" && STRIP=:
5696
5697
5698
5699
5700
5701
5702if test -n "$ac_tool_prefix"; then
5703  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5704set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706$as_echo_n "checking for $ac_word... " >&6; }
5707if ${ac_cv_prog_RANLIB+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  if test -n "$RANLIB"; then
5711  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716  IFS=$as_save_IFS
5717  test -z "$as_dir" && as_dir=.
5718    for ac_exec_ext in '' $ac_executable_extensions; do
5719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722    break 2
5723  fi
5724done
5725  done
5726IFS=$as_save_IFS
5727
5728fi
5729fi
5730RANLIB=$ac_cv_prog_RANLIB
5731if test -n "$RANLIB"; then
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5733$as_echo "$RANLIB" >&6; }
5734else
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737fi
5738
5739
5740fi
5741if test -z "$ac_cv_prog_RANLIB"; then
5742  ac_ct_RANLIB=$RANLIB
5743  # Extract the first word of "ranlib", so it can be a program name with args.
5744set dummy ranlib; ac_word=$2
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746$as_echo_n "checking for $ac_word... " >&6; }
5747if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  if test -n "$ac_ct_RANLIB"; then
5751  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756  IFS=$as_save_IFS
5757  test -z "$as_dir" && as_dir=.
5758    for ac_exec_ext in '' $ac_executable_extensions; do
5759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760    ac_cv_prog_ac_ct_RANLIB="ranlib"
5761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762    break 2
5763  fi
5764done
5765  done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5771if test -n "$ac_ct_RANLIB"; then
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5773$as_echo "$ac_ct_RANLIB" >&6; }
5774else
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776$as_echo "no" >&6; }
5777fi
5778
5779  if test "x$ac_ct_RANLIB" = x; then
5780    RANLIB=":"
5781  else
5782    case $cross_compiling:$ac_tool_warned in
5783yes:)
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786ac_tool_warned=yes ;;
5787esac
5788    RANLIB=$ac_ct_RANLIB
5789  fi
5790else
5791  RANLIB="$ac_cv_prog_RANLIB"
5792fi
5793
5794test -z "$RANLIB" && RANLIB=:
5795
5796
5797
5798
5799
5800
5801# Determine commands to create old-style static archives.
5802old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5803old_postinstall_cmds='chmod 644 $oldlib'
5804old_postuninstall_cmds=
5805
5806if test -n "$RANLIB"; then
5807  case $host_os in
5808  openbsd*)
5809    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5810    ;;
5811  *)
5812    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5813    ;;
5814  esac
5815  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5816fi
5817
5818case $host_os in
5819  darwin*)
5820    lock_old_archive_extraction=yes ;;
5821  *)
5822    lock_old_archive_extraction=no ;;
5823esac
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863# If no C compiler was specified, use CC.
5864LTCC=${LTCC-"$CC"}
5865
5866# If no C compiler flags were specified, use CFLAGS.
5867LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5868
5869# Allow CC to be a program name with arguments.
5870compiler=$CC
5871
5872
5873# Check for command to grab the raw symbol name followed by C symbol from nm.
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5875$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5876if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879
5880# These are sane defaults that work on at least a few old systems.
5881# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5882
5883# Character class describing NM global symbol codes.
5884symcode='[BCDEGRST]'
5885
5886# Regexp to match symbols that can be accessed directly from C.
5887sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5888
5889# Define system-specific variables.
5890case $host_os in
5891aix*)
5892  symcode='[BCDT]'
5893  ;;
5894cygwin* | mingw* | pw32* | cegcc*)
5895  symcode='[ABCDGISTW]'
5896  ;;
5897hpux*)
5898  if test "$host_cpu" = ia64; then
5899    symcode='[ABCDEGRST]'
5900  fi
5901  ;;
5902irix* | nonstopux*)
5903  symcode='[BCDEGRST]'
5904  ;;
5905osf*)
5906  symcode='[BCDEGQRST]'
5907  ;;
5908solaris*)
5909  symcode='[BDRT]'
5910  ;;
5911sco3.2v5*)
5912  symcode='[DT]'
5913  ;;
5914sysv4.2uw2*)
5915  symcode='[DT]'
5916  ;;
5917sysv5* | sco5v6* | unixware* | OpenUNIX*)
5918  symcode='[ABDT]'
5919  ;;
5920sysv4)
5921  symcode='[DFNSTU]'
5922  ;;
5923esac
5924
5925# If we're using GNU nm, then use its standard symbol codes.
5926case `$NM -V 2>&1` in
5927*GNU* | *'with BFD'*)
5928  symcode='[ABCDGIRSTW]' ;;
5929esac
5930
5931# Transform an extracted symbol line into a proper C declaration.
5932# Some systems (esp. on ia64) link data and code symbols differently,
5933# so use this general approach.
5934lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5935
5936# Transform an extracted symbol line into symbol name and symbol address
5937lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5938lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5939
5940# Handle CRLF in mingw tool chain
5941opt_cr=
5942case $build_os in
5943mingw*)
5944  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5945  ;;
5946esac
5947
5948# Try without a prefix underscore, then with it.
5949for ac_symprfx in "" "_"; do
5950
5951  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5952  symxfrm="\\1 $ac_symprfx\\2 \\2"
5953
5954  # Write the raw and C identifiers.
5955  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956    # Fake it for dumpbin and say T for any non-static function
5957    # and D for any global variable.
5958    # Also find C++ and __fastcall symbols from MSVC++,
5959    # which start with @ or ?.
5960    lt_cv_sys_global_symbol_pipe="$AWK '"\
5961"     {last_section=section; section=\$ 3};"\
5962"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5963"     \$ 0!~/External *\|/{next};"\
5964"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5965"     {if(hide[section]) next};"\
5966"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5967"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5968"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5969"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5970"     ' prfx=^$ac_symprfx"
5971  else
5972    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5973  fi
5974  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5975
5976  # Check to see that the pipe works correctly.
5977  pipe_works=no
5978
5979  rm -f conftest*
5980  cat > conftest.$ac_ext <<_LT_EOF
5981#ifdef __cplusplus
5982extern "C" {
5983#endif
5984char nm_test_var;
5985void nm_test_func(void);
5986void nm_test_func(void){}
5987#ifdef __cplusplus
5988}
5989#endif
5990int main(){nm_test_var='a';nm_test_func();return(0);}
5991_LT_EOF
5992
5993  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5994  (eval $ac_compile) 2>&5
5995  ac_status=$?
5996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5997  test $ac_status = 0; }; then
5998    # Now try to grab the symbols.
5999    nlist=conftest.nm
6000    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6001  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6002  ac_status=$?
6003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004  test $ac_status = 0; } && test -s "$nlist"; then
6005      # Try sorting and uniquifying the output.
6006      if sort "$nlist" | uniq > "$nlist"T; then
6007        mv -f "$nlist"T "$nlist"
6008      else
6009        rm -f "$nlist"T
6010      fi
6011
6012      # Make sure that we snagged all the symbols we need.
6013      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6014        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6015          cat <<_LT_EOF > conftest.$ac_ext
6016/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6017#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6018/* DATA imports from DLLs on WIN32 con't be const, because runtime
6019   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6020# define LT_DLSYM_CONST
6021#elif defined(__osf__)
6022/* This system does not cope well with relocations in const data.  */
6023# define LT_DLSYM_CONST
6024#else
6025# define LT_DLSYM_CONST const
6026#endif
6027
6028#ifdef __cplusplus
6029extern "C" {
6030#endif
6031
6032_LT_EOF
6033          # Now generate the symbol file.
6034          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6035
6036          cat <<_LT_EOF >> conftest.$ac_ext
6037
6038/* The mapping between symbol names and symbols.  */
6039LT_DLSYM_CONST struct {
6040  const char *name;
6041  void       *address;
6042}
6043lt__PROGRAM__LTX_preloaded_symbols[] =
6044{
6045  { "@PROGRAM@", (void *) 0 },
6046_LT_EOF
6047          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6048          cat <<\_LT_EOF >> conftest.$ac_ext
6049  {0, (void *) 0}
6050};
6051
6052/* This works around a problem in FreeBSD linker */
6053#ifdef FREEBSD_WORKAROUND
6054static const void *lt_preloaded_setup() {
6055  return lt__PROGRAM__LTX_preloaded_symbols;
6056}
6057#endif
6058
6059#ifdef __cplusplus
6060}
6061#endif
6062_LT_EOF
6063          # Now try linking the two files.
6064          mv conftest.$ac_objext conftstm.$ac_objext
6065          lt_globsym_save_LIBS=$LIBS
6066          lt_globsym_save_CFLAGS=$CFLAGS
6067          LIBS="conftstm.$ac_objext"
6068          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6069          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6070  (eval $ac_link) 2>&5
6071  ac_status=$?
6072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6073  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6074            pipe_works=yes
6075          fi
6076          LIBS=$lt_globsym_save_LIBS
6077          CFLAGS=$lt_globsym_save_CFLAGS
6078        else
6079          echo "cannot find nm_test_func in $nlist" >&5
6080        fi
6081      else
6082        echo "cannot find nm_test_var in $nlist" >&5
6083      fi
6084    else
6085      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6086    fi
6087  else
6088    echo "$progname: failed program was:" >&5
6089    cat conftest.$ac_ext >&5
6090  fi
6091  rm -rf conftest* conftst*
6092
6093  # Do not use the global_symbol_pipe unless it works.
6094  if test "$pipe_works" = yes; then
6095    break
6096  else
6097    lt_cv_sys_global_symbol_pipe=
6098  fi
6099done
6100
6101fi
6102
6103if test -z "$lt_cv_sys_global_symbol_pipe"; then
6104  lt_cv_sys_global_symbol_to_cdecl=
6105fi
6106if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6108$as_echo "failed" >&6; }
6109else
6110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6111$as_echo "ok" >&6; }
6112fi
6113
6114# Response file support.
6115if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6116  nm_file_list_spec='@'
6117elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6118  nm_file_list_spec='@'
6119fi
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6148$as_echo_n "checking for sysroot... " >&6; }
6149
6150# Check whether --with-sysroot was given.
6151if test "${with_sysroot+set}" = set; then :
6152  withval=$with_sysroot;
6153else
6154  with_sysroot=no
6155fi
6156
6157
6158lt_sysroot=
6159case ${with_sysroot} in #(
6160 yes)
6161   if test "$GCC" = yes; then
6162     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6163   fi
6164   ;; #(
6165 /*)
6166   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6167   ;; #(
6168 no|'')
6169   ;; #(
6170 *)
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6172$as_echo "${with_sysroot}" >&6; }
6173   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6174   ;;
6175esac
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6178$as_echo "${lt_sysroot:-no}" >&6; }
6179
6180
6181
6182
6183
6184# Check whether --enable-libtool-lock was given.
6185if test "${enable_libtool_lock+set}" = set; then :
6186  enableval=$enable_libtool_lock;
6187fi
6188
6189test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6190
6191# Some flags need to be propagated to the compiler or linker for good
6192# libtool support.
6193case $host in
6194ia64-*-hpux*)
6195  # Find out which ABI we are using.
6196  echo 'int i;' > conftest.$ac_ext
6197  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198  (eval $ac_compile) 2>&5
6199  ac_status=$?
6200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201  test $ac_status = 0; }; then
6202    case `/usr/bin/file conftest.$ac_objext` in
6203      *ELF-32*)
6204        HPUX_IA64_MODE="32"
6205        ;;
6206      *ELF-64*)
6207        HPUX_IA64_MODE="64"
6208        ;;
6209    esac
6210  fi
6211  rm -rf conftest*
6212  ;;
6213*-*-irix6*)
6214  # Find out which ABI we are using.
6215  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6216  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6217  (eval $ac_compile) 2>&5
6218  ac_status=$?
6219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220  test $ac_status = 0; }; then
6221    if test "$lt_cv_prog_gnu_ld" = yes; then
6222      case `/usr/bin/file conftest.$ac_objext` in
6223        *32-bit*)
6224          LD="${LD-ld} -melf32bsmip"
6225          ;;
6226        *N32*)
6227          LD="${LD-ld} -melf32bmipn32"
6228          ;;
6229        *64-bit*)
6230          LD="${LD-ld} -melf64bmip"
6231        ;;
6232      esac
6233    else
6234      case `/usr/bin/file conftest.$ac_objext` in
6235        *32-bit*)
6236          LD="${LD-ld} -32"
6237          ;;
6238        *N32*)
6239          LD="${LD-ld} -n32"
6240          ;;
6241        *64-bit*)
6242          LD="${LD-ld} -64"
6243          ;;
6244      esac
6245    fi
6246  fi
6247  rm -rf conftest*
6248  ;;
6249
6250x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6251s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6252  # Find out which ABI we are using.
6253  echo 'int i;' > conftest.$ac_ext
6254  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6255  (eval $ac_compile) 2>&5
6256  ac_status=$?
6257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258  test $ac_status = 0; }; then
6259    case `/usr/bin/file conftest.o` in
6260      *32-bit*)
6261        case $host in
6262          x86_64-*kfreebsd*-gnu)
6263            LD="${LD-ld} -m elf_i386_fbsd"
6264            ;;
6265          x86_64-*linux*)
6266            LD="${LD-ld} -m elf_i386"
6267            ;;
6268          ppc64-*linux*|powerpc64-*linux*)
6269            LD="${LD-ld} -m elf32ppclinux"
6270            ;;
6271          s390x-*linux*)
6272            LD="${LD-ld} -m elf_s390"
6273            ;;
6274          sparc64-*linux*)
6275            LD="${LD-ld} -m elf32_sparc"
6276            ;;
6277        esac
6278        ;;
6279      *64-bit*)
6280        case $host in
6281          x86_64-*kfreebsd*-gnu)
6282            LD="${LD-ld} -m elf_x86_64_fbsd"
6283            ;;
6284          x86_64-*linux*)
6285            LD="${LD-ld} -m elf_x86_64"
6286            ;;
6287          ppc*-*linux*|powerpc*-*linux*)
6288            LD="${LD-ld} -m elf64ppc"
6289            ;;
6290          s390*-*linux*|s390*-*tpf*)
6291            LD="${LD-ld} -m elf64_s390"
6292            ;;
6293          sparc*-*linux*)
6294            LD="${LD-ld} -m elf64_sparc"
6295            ;;
6296        esac
6297        ;;
6298    esac
6299  fi
6300  rm -rf conftest*
6301  ;;
6302
6303*-*-sco3.2v5*)
6304  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6305  SAVE_CFLAGS="$CFLAGS"
6306  CFLAGS="$CFLAGS -belf"
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6308$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6309if ${lt_cv_cc_needs_belf+:} false; then :
6310  $as_echo_n "(cached) " >&6
6311else
6312  ac_ext=c
6313ac_cpp='$CPP $CPPFLAGS'
6314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6316ac_compiler_gnu=$ac_cv_c_compiler_gnu
6317
6318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320
6321int
6322main ()
6323{
6324
6325  ;
6326  return 0;
6327}
6328_ACEOF
6329if ac_fn_c_try_link "$LINENO"; then :
6330  lt_cv_cc_needs_belf=yes
6331else
6332  lt_cv_cc_needs_belf=no
6333fi
6334rm -f core conftest.err conftest.$ac_objext \
6335    conftest$ac_exeext conftest.$ac_ext
6336     ac_ext=c
6337ac_cpp='$CPP $CPPFLAGS'
6338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6344$as_echo "$lt_cv_cc_needs_belf" >&6; }
6345  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6346    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6347    CFLAGS="$SAVE_CFLAGS"
6348  fi
6349  ;;
6350sparc*-*solaris*)
6351  # Find out which ABI we are using.
6352  echo 'int i;' > conftest.$ac_ext
6353  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6354  (eval $ac_compile) 2>&5
6355  ac_status=$?
6356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6357  test $ac_status = 0; }; then
6358    case `/usr/bin/file conftest.o` in
6359    *64-bit*)
6360      case $lt_cv_prog_gnu_ld in
6361      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6362      *)
6363        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6364          LD="${LD-ld} -64"
6365        fi
6366        ;;
6367      esac
6368      ;;
6369    esac
6370  fi
6371  rm -rf conftest*
6372  ;;
6373esac
6374
6375need_locks="$enable_libtool_lock"
6376
6377if test -n "$ac_tool_prefix"; then
6378  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6379set dummy ${ac_tool_prefix}mt; ac_word=$2
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
6382if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  if test -n "$MANIFEST_TOOL"; then
6386  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  test -z "$as_dir" && as_dir=.
6393    for ac_exec_ext in '' $ac_executable_extensions; do
6394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397    break 2
6398  fi
6399done
6400  done
6401IFS=$as_save_IFS
6402
6403fi
6404fi
6405MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6406if test -n "$MANIFEST_TOOL"; then
6407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6408$as_echo "$MANIFEST_TOOL" >&6; }
6409else
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414
6415fi
6416if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6417  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6418  # Extract the first word of "mt", so it can be a program name with args.
6419set dummy mt; ac_word=$2
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421$as_echo_n "checking for $ac_word... " >&6; }
6422if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6423  $as_echo_n "(cached) " >&6
6424else
6425  if test -n "$ac_ct_MANIFEST_TOOL"; then
6426  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431  IFS=$as_save_IFS
6432  test -z "$as_dir" && as_dir=.
6433    for ac_exec_ext in '' $ac_executable_extensions; do
6434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437    break 2
6438  fi
6439done
6440  done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6446if test -n "$ac_ct_MANIFEST_TOOL"; then
6447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6448$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6449else
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452fi
6453
6454  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6455    MANIFEST_TOOL=":"
6456  else
6457    case $cross_compiling:$ac_tool_warned in
6458yes:)
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461ac_tool_warned=yes ;;
6462esac
6463    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6464  fi
6465else
6466  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6467fi
6468
6469test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6471$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6472if ${lt_cv_path_mainfest_tool+:} false; then :
6473  $as_echo_n "(cached) " >&6
6474else
6475  lt_cv_path_mainfest_tool=no
6476  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6477  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6478  cat conftest.err >&5
6479  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6480    lt_cv_path_mainfest_tool=yes
6481  fi
6482  rm -f conftest*
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6485$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6486if test "x$lt_cv_path_mainfest_tool" != xyes; then
6487  MANIFEST_TOOL=:
6488fi
6489
6490
6491
6492
6493
6494
6495  case $host_os in
6496    rhapsody* | darwin*)
6497    if test -n "$ac_tool_prefix"; then
6498  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6499set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501$as_echo_n "checking for $ac_word... " >&6; }
6502if ${ac_cv_prog_DSYMUTIL+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  if test -n "$DSYMUTIL"; then
6506  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511  IFS=$as_save_IFS
6512  test -z "$as_dir" && as_dir=.
6513    for ac_exec_ext in '' $ac_executable_extensions; do
6514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517    break 2
6518  fi
6519done
6520  done
6521IFS=$as_save_IFS
6522
6523fi
6524fi
6525DSYMUTIL=$ac_cv_prog_DSYMUTIL
6526if test -n "$DSYMUTIL"; then
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6528$as_echo "$DSYMUTIL" >&6; }
6529else
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
6533
6534
6535fi
6536if test -z "$ac_cv_prog_DSYMUTIL"; then
6537  ac_ct_DSYMUTIL=$DSYMUTIL
6538  # Extract the first word of "dsymutil", so it can be a program name with args.
6539set dummy dsymutil; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
6542if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  if test -n "$ac_ct_DSYMUTIL"; then
6546  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551  IFS=$as_save_IFS
6552  test -z "$as_dir" && as_dir=.
6553    for ac_exec_ext in '' $ac_executable_extensions; do
6554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557    break 2
6558  fi
6559done
6560  done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6566if test -n "$ac_ct_DSYMUTIL"; then
6567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6568$as_echo "$ac_ct_DSYMUTIL" >&6; }
6569else
6570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574  if test "x$ac_ct_DSYMUTIL" = x; then
6575    DSYMUTIL=":"
6576  else
6577    case $cross_compiling:$ac_tool_warned in
6578yes:)
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581ac_tool_warned=yes ;;
6582esac
6583    DSYMUTIL=$ac_ct_DSYMUTIL
6584  fi
6585else
6586  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6587fi
6588
6589    if test -n "$ac_tool_prefix"; then
6590  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6591set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
6594if ${ac_cv_prog_NMEDIT+:} false; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  if test -n "$NMEDIT"; then
6598  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603  IFS=$as_save_IFS
6604  test -z "$as_dir" && as_dir=.
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617NMEDIT=$ac_cv_prog_NMEDIT
6618if test -n "$NMEDIT"; then
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6620$as_echo "$NMEDIT" >&6; }
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627fi
6628if test -z "$ac_cv_prog_NMEDIT"; then
6629  ac_ct_NMEDIT=$NMEDIT
6630  # Extract the first word of "nmedit", so it can be a program name with args.
6631set dummy nmedit; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  if test -n "$ac_ct_NMEDIT"; then
6638  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643  IFS=$as_save_IFS
6644  test -z "$as_dir" && as_dir=.
6645    for ac_exec_ext in '' $ac_executable_extensions; do
6646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649    break 2
6650  fi
6651done
6652  done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6658if test -n "$ac_ct_NMEDIT"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6660$as_echo "$ac_ct_NMEDIT" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666  if test "x$ac_ct_NMEDIT" = x; then
6667    NMEDIT=":"
6668  else
6669    case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
6675    NMEDIT=$ac_ct_NMEDIT
6676  fi
6677else
6678  NMEDIT="$ac_cv_prog_NMEDIT"
6679fi
6680
6681    if test -n "$ac_tool_prefix"; then
6682  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6683set dummy ${ac_tool_prefix}lipo; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if ${ac_cv_prog_LIPO+:} false; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  if test -n "$LIPO"; then
6690  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695  IFS=$as_save_IFS
6696  test -z "$as_dir" && as_dir=.
6697    for ac_exec_ext in '' $ac_executable_extensions; do
6698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701    break 2
6702  fi
6703done
6704  done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709LIPO=$ac_cv_prog_LIPO
6710if test -n "$LIPO"; then
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6712$as_echo "$LIPO" >&6; }
6713else
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718
6719fi
6720if test -z "$ac_cv_prog_LIPO"; then
6721  ac_ct_LIPO=$LIPO
6722  # Extract the first word of "lipo", so it can be a program name with args.
6723set dummy lipo; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6727  $as_echo_n "(cached) " >&6
6728else
6729  if test -n "$ac_ct_LIPO"; then
6730  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735  IFS=$as_save_IFS
6736  test -z "$as_dir" && as_dir=.
6737    for ac_exec_ext in '' $ac_executable_extensions; do
6738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739    ac_cv_prog_ac_ct_LIPO="lipo"
6740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741    break 2
6742  fi
6743done
6744  done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6750if test -n "$ac_ct_LIPO"; then
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6752$as_echo "$ac_ct_LIPO" >&6; }
6753else
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758  if test "x$ac_ct_LIPO" = x; then
6759    LIPO=":"
6760  else
6761    case $cross_compiling:$ac_tool_warned in
6762yes:)
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765ac_tool_warned=yes ;;
6766esac
6767    LIPO=$ac_ct_LIPO
6768  fi
6769else
6770  LIPO="$ac_cv_prog_LIPO"
6771fi
6772
6773    if test -n "$ac_tool_prefix"; then
6774  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6775set dummy ${ac_tool_prefix}otool; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_prog_OTOOL+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$OTOOL"; then
6782  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789    for ac_exec_ext in '' $ac_executable_extensions; do
6790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793    break 2
6794  fi
6795done
6796  done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801OTOOL=$ac_cv_prog_OTOOL
6802if test -n "$OTOOL"; then
6803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6804$as_echo "$OTOOL" >&6; }
6805else
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810
6811fi
6812if test -z "$ac_cv_prog_OTOOL"; then
6813  ac_ct_OTOOL=$OTOOL
6814  # Extract the first word of "otool", so it can be a program name with args.
6815set dummy otool; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  if test -n "$ac_ct_OTOOL"; then
6822  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827  IFS=$as_save_IFS
6828  test -z "$as_dir" && as_dir=.
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831    ac_cv_prog_ac_ct_OTOOL="otool"
6832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6842if test -n "$ac_ct_OTOOL"; then
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6844$as_echo "$ac_ct_OTOOL" >&6; }
6845else
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850  if test "x$ac_ct_OTOOL" = x; then
6851    OTOOL=":"
6852  else
6853    case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859    OTOOL=$ac_ct_OTOOL
6860  fi
6861else
6862  OTOOL="$ac_cv_prog_OTOOL"
6863fi
6864
6865    if test -n "$ac_tool_prefix"; then
6866  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6867set dummy ${ac_tool_prefix}otool64; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if ${ac_cv_prog_OTOOL64+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  if test -n "$OTOOL64"; then
6874  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879  IFS=$as_save_IFS
6880  test -z "$as_dir" && as_dir=.
6881    for ac_exec_ext in '' $ac_executable_extensions; do
6882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888  done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893OTOOL64=$ac_cv_prog_OTOOL64
6894if test -n "$OTOOL64"; then
6895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6896$as_echo "$OTOOL64" >&6; }
6897else
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903fi
6904if test -z "$ac_cv_prog_OTOOL64"; then
6905  ac_ct_OTOOL64=$OTOOL64
6906  # Extract the first word of "otool64", so it can be a program name with args.
6907set dummy otool64; ac_word=$2
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  if test -n "$ac_ct_OTOOL64"; then
6914  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6915else
6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919  IFS=$as_save_IFS
6920  test -z "$as_dir" && as_dir=.
6921    for ac_exec_ext in '' $ac_executable_extensions; do
6922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923    ac_cv_prog_ac_ct_OTOOL64="otool64"
6924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925    break 2
6926  fi
6927done
6928  done
6929IFS=$as_save_IFS
6930
6931fi
6932fi
6933ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6934if test -n "$ac_ct_OTOOL64"; then
6935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6936$as_echo "$ac_ct_OTOOL64" >&6; }
6937else
6938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939$as_echo "no" >&6; }
6940fi
6941
6942  if test "x$ac_ct_OTOOL64" = x; then
6943    OTOOL64=":"
6944  else
6945    case $cross_compiling:$ac_tool_warned in
6946yes:)
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949ac_tool_warned=yes ;;
6950esac
6951    OTOOL64=$ac_ct_OTOOL64
6952  fi
6953else
6954  OTOOL64="$ac_cv_prog_OTOOL64"
6955fi
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6984$as_echo_n "checking for -single_module linker flag... " >&6; }
6985if ${lt_cv_apple_cc_single_mod+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  lt_cv_apple_cc_single_mod=no
6989      if test -z "${LT_MULTI_MODULE}"; then
6990        # By default we will add the -single_module flag. You can override
6991        # by either setting the environment variable LT_MULTI_MODULE
6992        # non-empty at configure time, or by adding -multi_module to the
6993        # link flags.
6994        rm -rf libconftest.dylib*
6995        echo "int foo(void){return 1;}" > conftest.c
6996        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6997-dynamiclib -Wl,-single_module conftest.c" >&5
6998        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6999          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7000        _lt_result=$?
7001        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7002          lt_cv_apple_cc_single_mod=yes
7003        else
7004          cat conftest.err >&5
7005        fi
7006        rm -rf libconftest.dylib*
7007        rm -f conftest.*
7008      fi
7009fi
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7011$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7013$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7014if ${lt_cv_ld_exported_symbols_list+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  lt_cv_ld_exported_symbols_list=no
7018      save_LDFLAGS=$LDFLAGS
7019      echo "_main" > conftest.sym
7020      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023
7024int
7025main ()
7026{
7027
7028  ;
7029  return 0;
7030}
7031_ACEOF
7032if ac_fn_c_try_link "$LINENO"; then :
7033  lt_cv_ld_exported_symbols_list=yes
7034else
7035  lt_cv_ld_exported_symbols_list=no
7036fi
7037rm -f core conftest.err conftest.$ac_objext \
7038    conftest$ac_exeext conftest.$ac_ext
7039        LDFLAGS="$save_LDFLAGS"
7040
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7043$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7045$as_echo_n "checking for -force_load linker flag... " >&6; }
7046if ${lt_cv_ld_force_load+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  lt_cv_ld_force_load=no
7050      cat > conftest.c << _LT_EOF
7051int forced_loaded() { return 2;}
7052_LT_EOF
7053      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7054      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7055      echo "$AR cru libconftest.a conftest.o" >&5
7056      $AR cru libconftest.a conftest.o 2>&5
7057      echo "$RANLIB libconftest.a" >&5
7058      $RANLIB libconftest.a 2>&5
7059      cat > conftest.c << _LT_EOF
7060int main() { return 0;}
7061_LT_EOF
7062      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7063      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7064      _lt_result=$?
7065      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7066        lt_cv_ld_force_load=yes
7067      else
7068        cat conftest.err >&5
7069      fi
7070        rm -f conftest.err libconftest.a conftest conftest.c
7071        rm -rf conftest.dSYM
7072
7073fi
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7075$as_echo "$lt_cv_ld_force_load" >&6; }
7076    case $host_os in
7077    rhapsody* | darwin1.[012])
7078      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7079    darwin1.*)
7080      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7081    darwin*) # darwin 5.x on
7082      # if running on 10.5 or later, the deployment target defaults
7083      # to the OS version, if on x86, and 10.4, the deployment
7084      # target defaults to 10.4. Don't you love it?
7085      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7086        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7087          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7088        10.[012]*)
7089          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7090        10.*)
7091          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7092      esac
7093    ;;
7094  esac
7095    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7096      _lt_dar_single_mod='$single_module'
7097    fi
7098    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7099      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7100    else
7101      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7102    fi
7103    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7104      _lt_dsymutil='~$DSYMUTIL $lib || :'
7105    else
7106      _lt_dsymutil=
7107    fi
7108    ;;
7109  esac
7110
7111ac_ext=c
7112ac_cpp='$CPP $CPPFLAGS'
7113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115ac_compiler_gnu=$ac_cv_c_compiler_gnu
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7117$as_echo_n "checking how to run the C preprocessor... " >&6; }
7118# On Suns, sometimes $CPP names a directory.
7119if test -n "$CPP" && test -d "$CPP"; then
7120  CPP=
7121fi
7122if test -z "$CPP"; then
7123  if ${ac_cv_prog_CPP+:} false; then :
7124  $as_echo_n "(cached) " >&6
7125else
7126      # Double quotes because CPP needs to be expanded
7127    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7128    do
7129      ac_preproc_ok=false
7130for ac_c_preproc_warn_flag in '' yes
7131do
7132  # Use a header file that comes with gcc, so configuring glibc
7133  # with a fresh cross-compiler works.
7134  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135  # <limits.h> exists even on freestanding compilers.
7136  # On the NeXT, cc -E runs the code through the compiler's parser,
7137  # not just through cpp. "Syntax error" is here to catch this case.
7138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140#ifdef __STDC__
7141# include <limits.h>
7142#else
7143# include <assert.h>
7144#endif
7145                     Syntax error
7146_ACEOF
7147if ac_fn_c_try_cpp "$LINENO"; then :
7148
7149else
7150  # Broken: fails on valid input.
7151continue
7152fi
7153rm -f conftest.err conftest.i conftest.$ac_ext
7154
7155  # OK, works on sane cases.  Now check whether nonexistent headers
7156  # can be detected and how.
7157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159#include <ac_nonexistent.h>
7160_ACEOF
7161if ac_fn_c_try_cpp "$LINENO"; then :
7162  # Broken: success on invalid input.
7163continue
7164else
7165  # Passes both tests.
7166ac_preproc_ok=:
7167break
7168fi
7169rm -f conftest.err conftest.i conftest.$ac_ext
7170
7171done
7172# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7173rm -f conftest.i conftest.err conftest.$ac_ext
7174if $ac_preproc_ok; then :
7175  break
7176fi
7177
7178    done
7179    ac_cv_prog_CPP=$CPP
7180
7181fi
7182  CPP=$ac_cv_prog_CPP
7183else
7184  ac_cv_prog_CPP=$CPP
7185fi
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7187$as_echo "$CPP" >&6; }
7188ac_preproc_ok=false
7189for ac_c_preproc_warn_flag in '' yes
7190do
7191  # Use a header file that comes with gcc, so configuring glibc
7192  # with a fresh cross-compiler works.
7193  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7194  # <limits.h> exists even on freestanding compilers.
7195  # On the NeXT, cc -E runs the code through the compiler's parser,
7196  # not just through cpp. "Syntax error" is here to catch this case.
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199#ifdef __STDC__
7200# include <limits.h>
7201#else
7202# include <assert.h>
7203#endif
7204                     Syntax error
7205_ACEOF
7206if ac_fn_c_try_cpp "$LINENO"; then :
7207
7208else
7209  # Broken: fails on valid input.
7210continue
7211fi
7212rm -f conftest.err conftest.i conftest.$ac_ext
7213
7214  # OK, works on sane cases.  Now check whether nonexistent headers
7215  # can be detected and how.
7216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217/* end confdefs.h.  */
7218#include <ac_nonexistent.h>
7219_ACEOF
7220if ac_fn_c_try_cpp "$LINENO"; then :
7221  # Broken: success on invalid input.
7222continue
7223else
7224  # Passes both tests.
7225ac_preproc_ok=:
7226break
7227fi
7228rm -f conftest.err conftest.i conftest.$ac_ext
7229
7230done
7231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7232rm -f conftest.i conftest.err conftest.$ac_ext
7233if $ac_preproc_ok; then :
7234
7235else
7236  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7238as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7239See \`config.log' for more details" "$LINENO" 5; }
7240fi
7241
7242ac_ext=c
7243ac_cpp='$CPP $CPPFLAGS'
7244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247
7248
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7250$as_echo_n "checking for ANSI C header files... " >&6; }
7251if ${ac_cv_header_stdc+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256#include <stdlib.h>
7257#include <stdarg.h>
7258#include <string.h>
7259#include <float.h>
7260
7261int
7262main ()
7263{
7264
7265  ;
7266  return 0;
7267}
7268_ACEOF
7269if ac_fn_c_try_compile "$LINENO"; then :
7270  ac_cv_header_stdc=yes
7271else
7272  ac_cv_header_stdc=no
7273fi
7274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275
7276if test $ac_cv_header_stdc = yes; then
7277  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280#include <string.h>
7281
7282_ACEOF
7283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284  $EGREP "memchr" >/dev/null 2>&1; then :
7285
7286else
7287  ac_cv_header_stdc=no
7288fi
7289rm -f conftest*
7290
7291fi
7292
7293if test $ac_cv_header_stdc = yes; then
7294  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h.  */
7297#include <stdlib.h>
7298
7299_ACEOF
7300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7301  $EGREP "free" >/dev/null 2>&1; then :
7302
7303else
7304  ac_cv_header_stdc=no
7305fi
7306rm -f conftest*
7307
7308fi
7309
7310if test $ac_cv_header_stdc = yes; then
7311  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7312  if test "$cross_compiling" = yes; then :
7313  :
7314else
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317#include <ctype.h>
7318#include <stdlib.h>
7319#if ((' ' & 0x0FF) == 0x020)
7320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7322#else
7323# define ISLOWER(c) \
7324                   (('a' <= (c) && (c) <= 'i') \
7325                     || ('j' <= (c) && (c) <= 'r') \
7326                     || ('s' <= (c) && (c) <= 'z'))
7327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7328#endif
7329
7330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7331int
7332main ()
7333{
7334  int i;
7335  for (i = 0; i < 256; i++)
7336    if (XOR (islower (i), ISLOWER (i))
7337        || toupper (i) != TOUPPER (i))
7338      return 2;
7339  return 0;
7340}
7341_ACEOF
7342if ac_fn_c_try_run "$LINENO"; then :
7343
7344else
7345  ac_cv_header_stdc=no
7346fi
7347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7348  conftest.$ac_objext conftest.beam conftest.$ac_ext
7349fi
7350
7351fi
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7354$as_echo "$ac_cv_header_stdc" >&6; }
7355if test $ac_cv_header_stdc = yes; then
7356
7357$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7358
7359fi
7360
7361# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7363                  inttypes.h stdint.h unistd.h
7364do :
7365  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7366ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7367"
7368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7369  cat >>confdefs.h <<_ACEOF
7370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7371_ACEOF
7372
7373fi
7374
7375done
7376
7377
7378for ac_header in dlfcn.h
7379do :
7380  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7381"
7382if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7383  cat >>confdefs.h <<_ACEOF
7384#define HAVE_DLFCN_H 1
7385_ACEOF
7386
7387fi
7388
7389done
7390
7391
7392
7393
7394
7395# Set options
7396
7397
7398
7399        enable_dlopen=no
7400
7401
7402  enable_win32_dll=no
7403
7404
7405            # Check whether --enable-shared was given.
7406if test "${enable_shared+set}" = set; then :
7407  enableval=$enable_shared; p=${PACKAGE-default}
7408    case $enableval in
7409    yes) enable_shared=yes ;;
7410    no) enable_shared=no ;;
7411    *)
7412      enable_shared=no
7413      # Look at the argument we got.  We use all the common list separators.
7414      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7415      for pkg in $enableval; do
7416        IFS="$lt_save_ifs"
7417        if test "X$pkg" = "X$p"; then
7418          enable_shared=yes
7419        fi
7420      done
7421      IFS="$lt_save_ifs"
7422      ;;
7423    esac
7424else
7425  enable_shared=yes
7426fi
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436  # Check whether --enable-static was given.
7437if test "${enable_static+set}" = set; then :
7438  enableval=$enable_static; p=${PACKAGE-default}
7439    case $enableval in
7440    yes) enable_static=yes ;;
7441    no) enable_static=no ;;
7442    *)
7443     enable_static=no
7444      # Look at the argument we got.  We use all the common list separators.
7445      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7446      for pkg in $enableval; do
7447        IFS="$lt_save_ifs"
7448        if test "X$pkg" = "X$p"; then
7449          enable_static=yes
7450        fi
7451      done
7452      IFS="$lt_save_ifs"
7453      ;;
7454    esac
7455else
7456  enable_static=yes
7457fi
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468# Check whether --with-pic was given.
7469if test "${with_pic+set}" = set; then :
7470  withval=$with_pic; pic_mode="$withval"
7471else
7472  pic_mode=default
7473fi
7474
7475
7476test -z "$pic_mode" && pic_mode=default
7477
7478
7479
7480
7481
7482
7483
7484  # Check whether --enable-fast-install was given.
7485if test "${enable_fast_install+set}" = set; then :
7486  enableval=$enable_fast_install; p=${PACKAGE-default}
7487    case $enableval in
7488    yes) enable_fast_install=yes ;;
7489    no) enable_fast_install=no ;;
7490    *)
7491      enable_fast_install=no
7492      # Look at the argument we got.  We use all the common list separators.
7493      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7494      for pkg in $enableval; do
7495        IFS="$lt_save_ifs"
7496        if test "X$pkg" = "X$p"; then
7497          enable_fast_install=yes
7498        fi
7499      done
7500      IFS="$lt_save_ifs"
7501      ;;
7502    esac
7503else
7504  enable_fast_install=yes
7505fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517# This can be used to rebuild libtool when needed
7518LIBTOOL_DEPS="$ltmain"
7519
7520# Always use our own libtool.
7521LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548test -z "$LN_S" && LN_S="ln -s"
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563if test -n "${ZSH_VERSION+set}" ; then
7564   setopt NO_GLOB_SUBST
7565fi
7566
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7568$as_echo_n "checking for objdir... " >&6; }
7569if ${lt_cv_objdir+:} false; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  rm -f .libs 2>/dev/null
7573mkdir .libs 2>/dev/null
7574if test -d .libs; then
7575  lt_cv_objdir=.libs
7576else
7577  # MS-DOS does not allow filenames that begin with a dot.
7578  lt_cv_objdir=_libs
7579fi
7580rmdir .libs 2>/dev/null
7581fi
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7583$as_echo "$lt_cv_objdir" >&6; }
7584objdir=$lt_cv_objdir
7585
7586
7587
7588
7589
7590cat >>confdefs.h <<_ACEOF
7591#define LT_OBJDIR "$lt_cv_objdir/"
7592_ACEOF
7593
7594
7595
7596
7597case $host_os in
7598aix3*)
7599  # AIX sometimes has problems with the GCC collect2 program.  For some
7600  # reason, if we set the COLLECT_NAMES environment variable, the problems
7601  # vanish in a puff of smoke.
7602  if test "X${COLLECT_NAMES+set}" != Xset; then
7603    COLLECT_NAMES=
7604    export COLLECT_NAMES
7605  fi
7606  ;;
7607esac
7608
7609# Global variables:
7610ofile=libtool
7611can_build_shared=yes
7612
7613# All known linkers require a `.a' archive for static linking (except MSVC,
7614# which needs '.lib').
7615libext=a
7616
7617with_gnu_ld="$lt_cv_prog_gnu_ld"
7618
7619old_CC="$CC"
7620old_CFLAGS="$CFLAGS"
7621
7622# Set sane defaults for various variables
7623test -z "$CC" && CC=cc
7624test -z "$LTCC" && LTCC=$CC
7625test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7626test -z "$LD" && LD=ld
7627test -z "$ac_objext" && ac_objext=o
7628
7629for cc_temp in $compiler""; do
7630  case $cc_temp in
7631    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7632    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7633    \-*) ;;
7634    *) break;;
7635  esac
7636done
7637cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7638
7639
7640# Only perform the check for file, if the check method requires it
7641test -z "$MAGIC_CMD" && MAGIC_CMD=file
7642case $deplibs_check_method in
7643file_magic*)
7644  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7646$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7647if ${lt_cv_path_MAGIC_CMD+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  case $MAGIC_CMD in
7651[\\/*] |  ?:[\\/]*)
7652  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7653  ;;
7654*)
7655  lt_save_MAGIC_CMD="$MAGIC_CMD"
7656  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7657  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7658  for ac_dir in $ac_dummy; do
7659    IFS="$lt_save_ifs"
7660    test -z "$ac_dir" && ac_dir=.
7661    if test -f $ac_dir/${ac_tool_prefix}file; then
7662      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7663      if test -n "$file_magic_test_file"; then
7664        case $deplibs_check_method in
7665        "file_magic "*)
7666          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7667          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7668          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7669            $EGREP "$file_magic_regex" > /dev/null; then
7670            :
7671          else
7672            cat <<_LT_EOF 1>&2
7673
7674*** Warning: the command libtool uses to detect shared libraries,
7675*** $file_magic_cmd, produces output that libtool cannot recognize.
7676*** The result is that libtool may fail to recognize shared libraries
7677*** as such.  This will affect the creation of libtool libraries that
7678*** depend on shared libraries, but programs linked with such libtool
7679*** libraries will work regardless of this problem.  Nevertheless, you
7680*** may want to report the problem to your system manager and/or to
7681*** bug-libtool@gnu.org
7682
7683_LT_EOF
7684          fi ;;
7685        esac
7686      fi
7687      break
7688    fi
7689  done
7690  IFS="$lt_save_ifs"
7691  MAGIC_CMD="$lt_save_MAGIC_CMD"
7692  ;;
7693esac
7694fi
7695
7696MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7697if test -n "$MAGIC_CMD"; then
7698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7699$as_echo "$MAGIC_CMD" >&6; }
7700else
7701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
7703fi
7704
7705
7706
7707
7708
7709if test -z "$lt_cv_path_MAGIC_CMD"; then
7710  if test -n "$ac_tool_prefix"; then
7711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7712$as_echo_n "checking for file... " >&6; }
7713if ${lt_cv_path_MAGIC_CMD+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  case $MAGIC_CMD in
7717[\\/*] |  ?:[\\/]*)
7718  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7719  ;;
7720*)
7721  lt_save_MAGIC_CMD="$MAGIC_CMD"
7722  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7723  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7724  for ac_dir in $ac_dummy; do
7725    IFS="$lt_save_ifs"
7726    test -z "$ac_dir" && ac_dir=.
7727    if test -f $ac_dir/file; then
7728      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7729      if test -n "$file_magic_test_file"; then
7730        case $deplibs_check_method in
7731        "file_magic "*)
7732          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7733          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7734          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7735            $EGREP "$file_magic_regex" > /dev/null; then
7736            :
7737          else
7738            cat <<_LT_EOF 1>&2
7739
7740*** Warning: the command libtool uses to detect shared libraries,
7741*** $file_magic_cmd, produces output that libtool cannot recognize.
7742*** The result is that libtool may fail to recognize shared libraries
7743*** as such.  This will affect the creation of libtool libraries that
7744*** depend on shared libraries, but programs linked with such libtool
7745*** libraries will work regardless of this problem.  Nevertheless, you
7746*** may want to report the problem to your system manager and/or to
7747*** bug-libtool@gnu.org
7748
7749_LT_EOF
7750          fi ;;
7751        esac
7752      fi
7753      break
7754    fi
7755  done
7756  IFS="$lt_save_ifs"
7757  MAGIC_CMD="$lt_save_MAGIC_CMD"
7758  ;;
7759esac
7760fi
7761
7762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7763if test -n "$MAGIC_CMD"; then
7764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7765$as_echo "$MAGIC_CMD" >&6; }
7766else
7767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
7769fi
7770
7771
7772  else
7773    MAGIC_CMD=:
7774  fi
7775fi
7776
7777  fi
7778  ;;
7779esac
7780
7781# Use C for the default configuration in the libtool script
7782
7783lt_save_CC="$CC"
7784ac_ext=c
7785ac_cpp='$CPP $CPPFLAGS'
7786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7788ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789
7790
7791# Source file extension for C test sources.
7792ac_ext=c
7793
7794# Object file extension for compiled C test sources.
7795objext=o
7796objext=$objext
7797
7798# Code to be used in simple compile tests
7799lt_simple_compile_test_code="int some_variable = 0;"
7800
7801# Code to be used in simple link tests
7802lt_simple_link_test_code='int main(){return(0);}'
7803
7804
7805
7806
7807
7808
7809
7810# If no C compiler was specified, use CC.
7811LTCC=${LTCC-"$CC"}
7812
7813# If no C compiler flags were specified, use CFLAGS.
7814LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7815
7816# Allow CC to be a program name with arguments.
7817compiler=$CC
7818
7819# Save the default compiler, since it gets overwritten when the other
7820# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7821compiler_DEFAULT=$CC
7822
7823# save warnings/boilerplate of simple test code
7824ac_outfile=conftest.$ac_objext
7825echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7826eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7827_lt_compiler_boilerplate=`cat conftest.err`
7828$RM conftest*
7829
7830ac_outfile=conftest.$ac_objext
7831echo "$lt_simple_link_test_code" >conftest.$ac_ext
7832eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7833_lt_linker_boilerplate=`cat conftest.err`
7834$RM -r conftest*
7835
7836
7837## CAVEAT EMPTOR:
7838## There is no encapsulation within the following macros, do not change
7839## the running order or otherwise move them around unless you know exactly
7840## what you are doing...
7841if test -n "$compiler"; then
7842
7843lt_prog_compiler_no_builtin_flag=
7844
7845if test "$GCC" = yes; then
7846  case $cc_basename in
7847  nvcc*)
7848    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7849  *)
7850    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7851  esac
7852
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7854$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7855if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  lt_cv_prog_compiler_rtti_exceptions=no
7859   ac_outfile=conftest.$ac_objext
7860   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7861   lt_compiler_flag="-fno-rtti -fno-exceptions"
7862   # Insert the option either (1) after the last *FLAGS variable, or
7863   # (2) before a word containing "conftest.", or (3) at the end.
7864   # Note that $ac_compile itself does not contain backslashes and begins
7865   # with a dollar sign (not a hyphen), so the echo should work correctly.
7866   # The option is referenced via a variable to avoid confusing sed.
7867   lt_compile=`echo "$ac_compile" | $SED \
7868   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7869   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7870   -e 's:$: $lt_compiler_flag:'`
7871   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7872   (eval "$lt_compile" 2>conftest.err)
7873   ac_status=$?
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   if (exit $ac_status) && test -s "$ac_outfile"; then
7877     # The compiler can only warn and ignore the option if not recognized
7878     # So say no if there are warnings other than the usual output.
7879     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7880     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7881     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7882       lt_cv_prog_compiler_rtti_exceptions=yes
7883     fi
7884   fi
7885   $RM conftest*
7886
7887fi
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7889$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7890
7891if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7892    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7893else
7894    :
7895fi
7896
7897fi
7898
7899
7900
7901
7902
7903
7904  lt_prog_compiler_wl=
7905lt_prog_compiler_pic=
7906lt_prog_compiler_static=
7907
7908
7909  if test "$GCC" = yes; then
7910    lt_prog_compiler_wl='-Wl,'
7911    lt_prog_compiler_static='-static'
7912
7913    case $host_os in
7914      aix*)
7915      # All AIX code is PIC.
7916      if test "$host_cpu" = ia64; then
7917        # AIX 5 now supports IA64 processor
7918        lt_prog_compiler_static='-Bstatic'
7919      fi
7920      ;;
7921
7922    amigaos*)
7923      case $host_cpu in
7924      powerpc)
7925            # see comment about AmigaOS4 .so support
7926            lt_prog_compiler_pic='-fPIC'
7927        ;;
7928      m68k)
7929            # FIXME: we need at least 68020 code to build shared libraries, but
7930            # adding the `-m68020' flag to GCC prevents building anything better,
7931            # like `-m68040'.
7932            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7933        ;;
7934      esac
7935      ;;
7936
7937    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7938      # PIC is the default for these OSes.
7939      ;;
7940
7941    mingw* | cygwin* | pw32* | os2* | cegcc*)
7942      # This hack is so that the source file can tell whether it is being
7943      # built for inclusion in a dll (and should export symbols for example).
7944      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7945      # (--disable-auto-import) libraries
7946      lt_prog_compiler_pic='-DDLL_EXPORT'
7947      ;;
7948
7949    darwin* | rhapsody*)
7950      # PIC is the default on this platform
7951      # Common symbols not allowed in MH_DYLIB files
7952      lt_prog_compiler_pic='-fno-common'
7953      ;;
7954
7955    haiku*)
7956      # PIC is the default for Haiku.
7957      # The "-static" flag exists, but is broken.
7958      lt_prog_compiler_static=
7959      ;;
7960
7961    hpux*)
7962      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7963      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7964      # sets the default TLS model and affects inlining.
7965      case $host_cpu in
7966      hppa*64*)
7967        # +Z the default
7968        ;;
7969      *)
7970        lt_prog_compiler_pic='-fPIC'
7971        ;;
7972      esac
7973      ;;
7974
7975    interix[3-9]*)
7976      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7977      # Instead, we relocate shared libraries at runtime.
7978      ;;
7979
7980    msdosdjgpp*)
7981      # Just because we use GCC doesn't mean we suddenly get shared libraries
7982      # on systems that don't support them.
7983      lt_prog_compiler_can_build_shared=no
7984      enable_shared=no
7985      ;;
7986
7987    *nto* | *qnx*)
7988      # QNX uses GNU C++, but need to define -shared option too, otherwise
7989      # it will coredump.
7990      lt_prog_compiler_pic='-fPIC -shared'
7991      ;;
7992
7993    sysv4*MP*)
7994      if test -d /usr/nec; then
7995        lt_prog_compiler_pic=-Kconform_pic
7996      fi
7997      ;;
7998
7999    *)
8000      lt_prog_compiler_pic='-fPIC'
8001      ;;
8002    esac
8003
8004    case $cc_basename in
8005    nvcc*) # Cuda Compiler Driver 2.2
8006      lt_prog_compiler_wl='-Xlinker '
8007      lt_prog_compiler_pic='-Xcompiler -fPIC'
8008      ;;
8009    esac
8010  else
8011    # PORTME Check for flag to pass linker flags through the system compiler.
8012    case $host_os in
8013    aix*)
8014      lt_prog_compiler_wl='-Wl,'
8015      if test "$host_cpu" = ia64; then
8016        # AIX 5 now supports IA64 processor
8017        lt_prog_compiler_static='-Bstatic'
8018      else
8019        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8020      fi
8021      ;;
8022
8023    mingw* | cygwin* | pw32* | os2* | cegcc*)
8024      # This hack is so that the source file can tell whether it is being
8025      # built for inclusion in a dll (and should export symbols for example).
8026      lt_prog_compiler_pic='-DDLL_EXPORT'
8027      ;;
8028
8029    hpux9* | hpux10* | hpux11*)
8030      lt_prog_compiler_wl='-Wl,'
8031      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8032      # not for PA HP-UX.
8033      case $host_cpu in
8034      hppa*64*|ia64*)
8035        # +Z the default
8036        ;;
8037      *)
8038        lt_prog_compiler_pic='+Z'
8039        ;;
8040      esac
8041      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8042      lt_prog_compiler_static='${wl}-a ${wl}archive'
8043      ;;
8044
8045    irix5* | irix6* | nonstopux*)
8046      lt_prog_compiler_wl='-Wl,'
8047      # PIC (with -KPIC) is the default.
8048      lt_prog_compiler_static='-non_shared'
8049      ;;
8050
8051    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8052      case $cc_basename in
8053      # old Intel for x86_64 which still supported -KPIC.
8054      ecc*)
8055        lt_prog_compiler_wl='-Wl,'
8056        lt_prog_compiler_pic='-KPIC'
8057        lt_prog_compiler_static='-static'
8058        ;;
8059      # icc used to be incompatible with GCC.
8060      # ICC 10 doesn't accept -KPIC any more.
8061      icc* | ifort*)
8062        lt_prog_compiler_wl='-Wl,'
8063        lt_prog_compiler_pic='-fPIC'
8064        lt_prog_compiler_static='-static'
8065        ;;
8066      # Lahey Fortran 8.1.
8067      lf95*)
8068        lt_prog_compiler_wl='-Wl,'
8069        lt_prog_compiler_pic='--shared'
8070        lt_prog_compiler_static='--static'
8071        ;;
8072      nagfor*)
8073        # NAG Fortran compiler
8074        lt_prog_compiler_wl='-Wl,-Wl,,'
8075        lt_prog_compiler_pic='-PIC'
8076        lt_prog_compiler_static='-Bstatic'
8077        ;;
8078      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8079        # Portland Group compilers (*not* the Pentium gcc compiler,
8080        # which looks to be a dead project)
8081        lt_prog_compiler_wl='-Wl,'
8082        lt_prog_compiler_pic='-fpic'
8083        lt_prog_compiler_static='-Bstatic'
8084        ;;
8085      ccc*)
8086        lt_prog_compiler_wl='-Wl,'
8087        # All Alpha code is PIC.
8088        lt_prog_compiler_static='-non_shared'
8089        ;;
8090      xl* | bgxl* | bgf* | mpixl*)
8091        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8092        lt_prog_compiler_wl='-Wl,'
8093        lt_prog_compiler_pic='-qpic'
8094        lt_prog_compiler_static='-qstaticlink'
8095        ;;
8096      *)
8097        case `$CC -V 2>&1 | sed 5q` in
8098        *Sun\ F* | *Sun*Fortran*)
8099          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8100          lt_prog_compiler_pic='-KPIC'
8101          lt_prog_compiler_static='-Bstatic'
8102          lt_prog_compiler_wl=''
8103          ;;
8104        *Sun\ C*)
8105          # Sun C 5.9
8106          lt_prog_compiler_pic='-KPIC'
8107          lt_prog_compiler_static='-Bstatic'
8108          lt_prog_compiler_wl='-Wl,'
8109          ;;
8110        esac
8111        ;;
8112      esac
8113      ;;
8114
8115    newsos6)
8116      lt_prog_compiler_pic='-KPIC'
8117      lt_prog_compiler_static='-Bstatic'
8118      ;;
8119
8120    *nto* | *qnx*)
8121      # QNX uses GNU C++, but need to define -shared option too, otherwise
8122      # it will coredump.
8123      lt_prog_compiler_pic='-fPIC -shared'
8124      ;;
8125
8126    osf3* | osf4* | osf5*)
8127      lt_prog_compiler_wl='-Wl,'
8128      # All OSF/1 code is PIC.
8129      lt_prog_compiler_static='-non_shared'
8130      ;;
8131
8132    rdos*)
8133      lt_prog_compiler_static='-non_shared'
8134      ;;
8135
8136    solaris*)
8137      lt_prog_compiler_pic='-KPIC'
8138      lt_prog_compiler_static='-Bstatic'
8139      case $cc_basename in
8140      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8141        lt_prog_compiler_wl='-Qoption ld ';;
8142      *)
8143        lt_prog_compiler_wl='-Wl,';;
8144      esac
8145      ;;
8146
8147    sunos4*)
8148      lt_prog_compiler_wl='-Qoption ld '
8149      lt_prog_compiler_pic='-PIC'
8150      lt_prog_compiler_static='-Bstatic'
8151      ;;
8152
8153    sysv4 | sysv4.2uw2* | sysv4.3*)
8154      lt_prog_compiler_wl='-Wl,'
8155      lt_prog_compiler_pic='-KPIC'
8156      lt_prog_compiler_static='-Bstatic'
8157      ;;
8158
8159    sysv4*MP*)
8160      if test -d /usr/nec ;then
8161        lt_prog_compiler_pic='-Kconform_pic'
8162        lt_prog_compiler_static='-Bstatic'
8163      fi
8164      ;;
8165
8166    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8167      lt_prog_compiler_wl='-Wl,'
8168      lt_prog_compiler_pic='-KPIC'
8169      lt_prog_compiler_static='-Bstatic'
8170      ;;
8171
8172    unicos*)
8173      lt_prog_compiler_wl='-Wl,'
8174      lt_prog_compiler_can_build_shared=no
8175      ;;
8176
8177    uts4*)
8178      lt_prog_compiler_pic='-pic'
8179      lt_prog_compiler_static='-Bstatic'
8180      ;;
8181
8182    *)
8183      lt_prog_compiler_can_build_shared=no
8184      ;;
8185    esac
8186  fi
8187
8188case $host_os in
8189  # For platforms which do not support PIC, -DPIC is meaningless:
8190  *djgpp*)
8191    lt_prog_compiler_pic=
8192    ;;
8193  *)
8194    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8195    ;;
8196esac
8197
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8199$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8200if ${lt_cv_prog_compiler_pic+:} false; then :
8201  $as_echo_n "(cached) " >&6
8202else
8203  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8204fi
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8206$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8207lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8208
8209#
8210# Check to make sure the PIC flag actually works.
8211#
8212if test -n "$lt_prog_compiler_pic"; then
8213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8214$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8215if ${lt_cv_prog_compiler_pic_works+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  lt_cv_prog_compiler_pic_works=no
8219   ac_outfile=conftest.$ac_objext
8220   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8221   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8222   # Insert the option either (1) after the last *FLAGS variable, or
8223   # (2) before a word containing "conftest.", or (3) at the end.
8224   # Note that $ac_compile itself does not contain backslashes and begins
8225   # with a dollar sign (not a hyphen), so the echo should work correctly.
8226   # The option is referenced via a variable to avoid confusing sed.
8227   lt_compile=`echo "$ac_compile" | $SED \
8228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8230   -e 's:$: $lt_compiler_flag:'`
8231   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8232   (eval "$lt_compile" 2>conftest.err)
8233   ac_status=$?
8234   cat conftest.err >&5
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   if (exit $ac_status) && test -s "$ac_outfile"; then
8237     # The compiler can only warn and ignore the option if not recognized
8238     # So say no if there are warnings other than the usual output.
8239     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8240     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8241     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8242       lt_cv_prog_compiler_pic_works=yes
8243     fi
8244   fi
8245   $RM conftest*
8246
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8249$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8250
8251if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8252    case $lt_prog_compiler_pic in
8253     "" | " "*) ;;
8254     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8255     esac
8256else
8257    lt_prog_compiler_pic=
8258     lt_prog_compiler_can_build_shared=no
8259fi
8260
8261fi
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273#
8274# Check to make sure the static flag actually works.
8275#
8276wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8278$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8279if ${lt_cv_prog_compiler_static_works+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  lt_cv_prog_compiler_static_works=no
8283   save_LDFLAGS="$LDFLAGS"
8284   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8285   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8286   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8287     # The linker can only warn and ignore the option if not recognized
8288     # So say no if there are warnings
8289     if test -s conftest.err; then
8290       # Append any errors to the config.log.
8291       cat conftest.err 1>&5
8292       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8293       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294       if diff conftest.exp conftest.er2 >/dev/null; then
8295         lt_cv_prog_compiler_static_works=yes
8296       fi
8297     else
8298       lt_cv_prog_compiler_static_works=yes
8299     fi
8300   fi
8301   $RM -r conftest*
8302   LDFLAGS="$save_LDFLAGS"
8303
8304fi
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8306$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8307
8308if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8309    :
8310else
8311    lt_prog_compiler_static=
8312fi
8313
8314
8315
8316
8317
8318
8319
8320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8321$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322if ${lt_cv_prog_compiler_c_o+:} false; then :
8323  $as_echo_n "(cached) " >&6
8324else
8325  lt_cv_prog_compiler_c_o=no
8326   $RM -r conftest 2>/dev/null
8327   mkdir conftest
8328   cd conftest
8329   mkdir out
8330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331
8332   lt_compiler_flag="-o out/conftest2.$ac_objext"
8333   # Insert the option either (1) after the last *FLAGS variable, or
8334   # (2) before a word containing "conftest.", or (3) at the end.
8335   # Note that $ac_compile itself does not contain backslashes and begins
8336   # with a dollar sign (not a hyphen), so the echo should work correctly.
8337   lt_compile=`echo "$ac_compile" | $SED \
8338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340   -e 's:$: $lt_compiler_flag:'`
8341   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342   (eval "$lt_compile" 2>out/conftest.err)
8343   ac_status=$?
8344   cat out/conftest.err >&5
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8347   then
8348     # The compiler can only warn and ignore the option if not recognized
8349     # So say no if there are warnings
8350     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8351     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353       lt_cv_prog_compiler_c_o=yes
8354     fi
8355   fi
8356   chmod u+w . 2>&5
8357   $RM conftest*
8358   # SGI C++ compiler will create directory out/ii_files/ for
8359   # template instantiation
8360   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361   $RM out/* && rmdir out
8362   cd ..
8363   $RM -r conftest
8364   $RM conftest*
8365
8366fi
8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8368$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8369
8370
8371
8372
8373
8374
8375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8376$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8377if ${lt_cv_prog_compiler_c_o+:} false; then :
8378  $as_echo_n "(cached) " >&6
8379else
8380  lt_cv_prog_compiler_c_o=no
8381   $RM -r conftest 2>/dev/null
8382   mkdir conftest
8383   cd conftest
8384   mkdir out
8385   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8386
8387   lt_compiler_flag="-o out/conftest2.$ac_objext"
8388   # Insert the option either (1) after the last *FLAGS variable, or
8389   # (2) before a word containing "conftest.", or (3) at the end.
8390   # Note that $ac_compile itself does not contain backslashes and begins
8391   # with a dollar sign (not a hyphen), so the echo should work correctly.
8392   lt_compile=`echo "$ac_compile" | $SED \
8393   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395   -e 's:$: $lt_compiler_flag:'`
8396   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8397   (eval "$lt_compile" 2>out/conftest.err)
8398   ac_status=$?
8399   cat out/conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8402   then
8403     # The compiler can only warn and ignore the option if not recognized
8404     # So say no if there are warnings
8405     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8406     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8407     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8408       lt_cv_prog_compiler_c_o=yes
8409     fi
8410   fi
8411   chmod u+w . 2>&5
8412   $RM conftest*
8413   # SGI C++ compiler will create directory out/ii_files/ for
8414   # template instantiation
8415   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8416   $RM out/* && rmdir out
8417   cd ..
8418   $RM -r conftest
8419   $RM conftest*
8420
8421fi
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8423$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8424
8425
8426
8427
8428hard_links="nottested"
8429if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8430  # do not overwrite the value of need_locks provided by the user
8431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8432$as_echo_n "checking if we can lock with hard links... " >&6; }
8433  hard_links=yes
8434  $RM conftest*
8435  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8436  touch conftest.a
8437  ln conftest.a conftest.b 2>&5 || hard_links=no
8438  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8440$as_echo "$hard_links" >&6; }
8441  if test "$hard_links" = no; then
8442    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8443$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8444    need_locks=warn
8445  fi
8446else
8447  need_locks=no
8448fi
8449
8450
8451
8452
8453
8454
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8456$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8457
8458  runpath_var=
8459  allow_undefined_flag=
8460  always_export_symbols=no
8461  archive_cmds=
8462  archive_expsym_cmds=
8463  compiler_needs_object=no
8464  enable_shared_with_static_runtimes=no
8465  export_dynamic_flag_spec=
8466  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8467  hardcode_automatic=no
8468  hardcode_direct=no
8469  hardcode_direct_absolute=no
8470  hardcode_libdir_flag_spec=
8471  hardcode_libdir_flag_spec_ld=
8472  hardcode_libdir_separator=
8473  hardcode_minus_L=no
8474  hardcode_shlibpath_var=unsupported
8475  inherit_rpath=no
8476  link_all_deplibs=unknown
8477  module_cmds=
8478  module_expsym_cmds=
8479  old_archive_from_new_cmds=
8480  old_archive_from_expsyms_cmds=
8481  thread_safe_flag_spec=
8482  whole_archive_flag_spec=
8483  # include_expsyms should be a list of space-separated symbols to be *always*
8484  # included in the symbol list
8485  include_expsyms=
8486  # exclude_expsyms can be an extended regexp of symbols to exclude
8487  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8488  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8489  # as well as any symbol that contains `d'.
8490  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8491  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8492  # platforms (ab)use it in PIC code, but their linkers get confused if
8493  # the symbol is explicitly referenced.  Since portable code cannot
8494  # rely on this symbol name, it's probably fine to never include it in
8495  # preloaded symbol tables.
8496  # Exclude shared library initialization/finalization symbols.
8497  extract_expsyms_cmds=
8498
8499  case $host_os in
8500  cygwin* | mingw* | pw32* | cegcc*)
8501    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8502    # When not using gcc, we currently assume that we are using
8503    # Microsoft Visual C++.
8504    if test "$GCC" != yes; then
8505      with_gnu_ld=no
8506    fi
8507    ;;
8508  interix*)
8509    # we just hope/assume this is gcc and not c89 (= MSVC++)
8510    with_gnu_ld=yes
8511    ;;
8512  openbsd*)
8513    with_gnu_ld=no
8514    ;;
8515  esac
8516
8517  ld_shlibs=yes
8518
8519  # On some targets, GNU ld is compatible enough with the native linker
8520  # that we're better off using the native interface for both.
8521  lt_use_gnu_ld_interface=no
8522  if test "$with_gnu_ld" = yes; then
8523    case $host_os in
8524      aix*)
8525        # The AIX port of GNU ld has always aspired to compatibility
8526        # with the native linker.  However, as the warning in the GNU ld
8527        # block says, versions before 2.19.5* couldn't really create working
8528        # shared libraries, regardless of the interface used.
8529        case `$LD -v 2>&1` in
8530          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8531          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8532          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8533          *)
8534            lt_use_gnu_ld_interface=yes
8535            ;;
8536        esac
8537        ;;
8538      *)
8539        lt_use_gnu_ld_interface=yes
8540        ;;
8541    esac
8542  fi
8543
8544  if test "$lt_use_gnu_ld_interface" = yes; then
8545    # If archive_cmds runs LD, not CC, wlarc should be empty
8546    wlarc='${wl}'
8547
8548    # Set some defaults for GNU ld with shared library support. These
8549    # are reset later if shared libraries are not supported. Putting them
8550    # here allows them to be overridden if necessary.
8551    runpath_var=LD_RUN_PATH
8552    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8553    export_dynamic_flag_spec='${wl}--export-dynamic'
8554    # ancient GNU ld didn't support --whole-archive et. al.
8555    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8556      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8557    else
8558      whole_archive_flag_spec=
8559    fi
8560    supports_anon_versioning=no
8561    case `$LD -v 2>&1` in
8562      *GNU\ gold*) supports_anon_versioning=yes ;;
8563      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8564      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8565      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8566      *\ 2.11.*) ;; # other 2.11 versions
8567      *) supports_anon_versioning=yes ;;
8568    esac
8569
8570    # See if GNU ld supports shared libraries.
8571    case $host_os in
8572    aix[3-9]*)
8573      # On AIX/PPC, the GNU linker is very broken
8574      if test "$host_cpu" != ia64; then
8575        ld_shlibs=no
8576        cat <<_LT_EOF 1>&2
8577
8578*** Warning: the GNU linker, at least up to release 2.19, is reported
8579*** to be unable to reliably create shared libraries on AIX.
8580*** Therefore, libtool is disabling shared libraries support.  If you
8581*** really care for shared libraries, you may want to install binutils
8582*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8583*** You will then need to restart the configuration process.
8584
8585_LT_EOF
8586      fi
8587      ;;
8588
8589    amigaos*)
8590      case $host_cpu in
8591      powerpc)
8592            # see comment about AmigaOS4 .so support
8593            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594            archive_expsym_cmds=''
8595        ;;
8596      m68k)
8597            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)'
8598            hardcode_libdir_flag_spec='-L$libdir'
8599            hardcode_minus_L=yes
8600        ;;
8601      esac
8602      ;;
8603
8604    beos*)
8605      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8606        allow_undefined_flag=unsupported
8607        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8608        # support --undefined.  This deserves some investigation.  FIXME
8609        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8610      else
8611        ld_shlibs=no
8612      fi
8613      ;;
8614
8615    cygwin* | mingw* | pw32* | cegcc*)
8616      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8617      # as there is no search path for DLLs.
8618      hardcode_libdir_flag_spec='-L$libdir'
8619      export_dynamic_flag_spec='${wl}--export-all-symbols'
8620      allow_undefined_flag=unsupported
8621      always_export_symbols=no
8622      enable_shared_with_static_runtimes=yes
8623      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'
8624      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8625
8626      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8627        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8628        # If the export-symbols file already is a .def file (1st line
8629        # is EXPORTS), use it as is; otherwise, prepend...
8630        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8631          cp $export_symbols $output_objdir/$soname.def;
8632        else
8633          echo EXPORTS > $output_objdir/$soname.def;
8634          cat $export_symbols >> $output_objdir/$soname.def;
8635        fi~
8636        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8637      else
8638        ld_shlibs=no
8639      fi
8640      ;;
8641
8642    haiku*)
8643      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644      link_all_deplibs=yes
8645      ;;
8646
8647    interix[3-9]*)
8648      hardcode_direct=no
8649      hardcode_shlibpath_var=no
8650      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8651      export_dynamic_flag_spec='${wl}-E'
8652      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8653      # Instead, shared libraries are loaded at an image base (0x10000000 by
8654      # default) and relocated if they conflict, which is a slow very memory
8655      # consuming and fragmenting process.  To avoid this, we pick a random,
8656      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8657      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8658      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8659      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'
8660      ;;
8661
8662    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8663      tmp_diet=no
8664      if test "$host_os" = linux-dietlibc; then
8665        case $cc_basename in
8666          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8667        esac
8668      fi
8669      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8670         && test "$tmp_diet" = no
8671      then
8672        tmp_addflag=' $pic_flag'
8673        tmp_sharedflag='-shared'
8674        case $cc_basename,$host_cpu in
8675        pgcc*)                          # Portland Group C compiler
8676          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'
8677          tmp_addflag=' $pic_flag'
8678          ;;
8679        pgf77* | pgf90* | pgf95* | pgfortran*)
8680                                        # Portland Group f77 and f90 compilers
8681          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'
8682          tmp_addflag=' $pic_flag -Mnomain' ;;
8683        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8684          tmp_addflag=' -i_dynamic' ;;
8685        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8686          tmp_addflag=' -i_dynamic -nofor_main' ;;
8687        ifc* | ifort*)                  # Intel Fortran compiler
8688          tmp_addflag=' -nofor_main' ;;
8689        lf95*)                          # Lahey Fortran 8.1
8690          whole_archive_flag_spec=
8691          tmp_sharedflag='--shared' ;;
8692        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8693          tmp_sharedflag='-qmkshrobj'
8694          tmp_addflag= ;;
8695        nvcc*)  # Cuda Compiler Driver 2.2
8696          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'
8697          compiler_needs_object=yes
8698          ;;
8699        esac
8700        case `$CC -V 2>&1 | sed 5q` in
8701        *Sun\ C*)                       # Sun C 5.9
8702          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'
8703          compiler_needs_object=yes
8704          tmp_sharedflag='-G' ;;
8705        *Sun\ F*)                       # Sun Fortran 8.3
8706          tmp_sharedflag='-G' ;;
8707        esac
8708        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709
8710        if test "x$supports_anon_versioning" = xyes; then
8711          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8712            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8713            echo "local: *; };" >> $output_objdir/$libname.ver~
8714            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8715        fi
8716
8717        case $cc_basename in
8718        xlf* | bgf* | bgxlf* | mpixlf*)
8719          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8720          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8721          hardcode_libdir_flag_spec=
8722          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8723          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8724          if test "x$supports_anon_versioning" = xyes; then
8725            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8726              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8727              echo "local: *; };" >> $output_objdir/$libname.ver~
8728              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8729          fi
8730          ;;
8731        esac
8732      else
8733        ld_shlibs=no
8734      fi
8735      ;;
8736
8737    netbsd*)
8738      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8739        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8740        wlarc=
8741      else
8742        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744      fi
8745      ;;
8746
8747    solaris*)
8748      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8749        ld_shlibs=no
8750        cat <<_LT_EOF 1>&2
8751
8752*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8753*** create shared libraries on Solaris systems.  Therefore, libtool
8754*** is disabling shared libraries support.  We urge you to upgrade GNU
8755*** binutils to release 2.9.1 or newer.  Another option is to modify
8756*** your PATH or compiler configuration so that the native linker is
8757*** used, and then restart.
8758
8759_LT_EOF
8760      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8761        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763      else
8764        ld_shlibs=no
8765      fi
8766      ;;
8767
8768    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8769      case `$LD -v 2>&1` in
8770        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8771        ld_shlibs=no
8772        cat <<_LT_EOF 1>&2
8773
8774*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8775*** reliably create shared libraries on SCO systems.  Therefore, libtool
8776*** is disabling shared libraries support.  We urge you to upgrade GNU
8777*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8778*** your PATH or compiler configuration so that the native linker is
8779*** used, and then restart.
8780
8781_LT_EOF
8782        ;;
8783        *)
8784          # For security reasons, it is highly recommended that you always
8785          # use absolute paths for naming shared libraries, and exclude the
8786          # DT_RUNPATH tag from executables and libraries.  But doing so
8787          # requires that you compile everything twice, which is a pain.
8788          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8789            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8790            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8791            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8792          else
8793            ld_shlibs=no
8794          fi
8795        ;;
8796      esac
8797      ;;
8798
8799    sunos4*)
8800      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8801      wlarc=
8802      hardcode_direct=yes
8803      hardcode_shlibpath_var=no
8804      ;;
8805
8806    *)
8807      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8810      else
8811        ld_shlibs=no
8812      fi
8813      ;;
8814    esac
8815
8816    if test "$ld_shlibs" = no; then
8817      runpath_var=
8818      hardcode_libdir_flag_spec=
8819      export_dynamic_flag_spec=
8820      whole_archive_flag_spec=
8821    fi
8822  else
8823    # PORTME fill in a description of your system's linker (not GNU ld)
8824    case $host_os in
8825    aix3*)
8826      allow_undefined_flag=unsupported
8827      always_export_symbols=yes
8828      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'
8829      # Note: this linker hardcodes the directories in LIBPATH if there
8830      # are no directories specified by -L.
8831      hardcode_minus_L=yes
8832      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8833        # Neither direct hardcoding nor static linking is supported with a
8834        # broken collect2.
8835        hardcode_direct=unsupported
8836      fi
8837      ;;
8838
8839    aix[4-9]*)
8840      if test "$host_cpu" = ia64; then
8841        # On IA64, the linker does run time linking by default, so we don't
8842        # have to do anything special.
8843        aix_use_runtimelinking=no
8844        exp_sym_flag='-Bexport'
8845        no_entry_flag=""
8846      else
8847        # If we're using GNU nm, then we don't want the "-C" option.
8848        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8849        # Also, AIX nm treats weak defined symbols like other global
8850        # defined symbols, whereas GNU nm marks them as "W".
8851        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8852          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8853        else
8854          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8855        fi
8856        aix_use_runtimelinking=no
8857
8858        # Test if we are trying to use run time linking or normal
8859        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8860        # need to do runtime linking.
8861        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8862          for ld_flag in $LDFLAGS; do
8863          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8864            aix_use_runtimelinking=yes
8865            break
8866          fi
8867          done
8868          ;;
8869        esac
8870
8871        exp_sym_flag='-bexport'
8872        no_entry_flag='-bnoentry'
8873      fi
8874
8875      # When large executables or shared objects are built, AIX ld can
8876      # have problems creating the table of contents.  If linking a library
8877      # or program results in "error TOC overflow" add -mminimal-toc to
8878      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8879      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8880
8881      archive_cmds=''
8882      hardcode_direct=yes
8883      hardcode_direct_absolute=yes
8884      hardcode_libdir_separator=':'
8885      link_all_deplibs=yes
8886      file_list_spec='${wl}-f,'
8887
8888      if test "$GCC" = yes; then
8889        case $host_os in aix4.[012]|aix4.[012].*)
8890        # We only want to do this on AIX 4.2 and lower, the check
8891        # below for broken collect2 doesn't work under 4.3+
8892          collect2name=`${CC} -print-prog-name=collect2`
8893          if test -f "$collect2name" &&
8894           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8895          then
8896          # We have reworked collect2
8897          :
8898          else
8899          # We have old collect2
8900          hardcode_direct=unsupported
8901          # It fails to find uninstalled libraries when the uninstalled
8902          # path is not listed in the libpath.  Setting hardcode_minus_L
8903          # to unsupported forces relinking
8904          hardcode_minus_L=yes
8905          hardcode_libdir_flag_spec='-L$libdir'
8906          hardcode_libdir_separator=
8907          fi
8908          ;;
8909        esac
8910        shared_flag='-shared'
8911        if test "$aix_use_runtimelinking" = yes; then
8912          shared_flag="$shared_flag "'${wl}-G'
8913        fi
8914      else
8915        # not using gcc
8916        if test "$host_cpu" = ia64; then
8917        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8918        # chokes on -Wl,-G. The following line is correct:
8919          shared_flag='-G'
8920        else
8921          if test "$aix_use_runtimelinking" = yes; then
8922            shared_flag='${wl}-G'
8923          else
8924            shared_flag='${wl}-bM:SRE'
8925          fi
8926        fi
8927      fi
8928
8929      export_dynamic_flag_spec='${wl}-bexpall'
8930      # It seems that -bexpall does not export symbols beginning with
8931      # underscore (_), so it is better to generate a list of symbols to export.
8932      always_export_symbols=yes
8933      if test "$aix_use_runtimelinking" = yes; then
8934        # Warning - without using the other runtime loading flags (-brtl),
8935        # -berok will link without error, but may produce a broken library.
8936        allow_undefined_flag='-berok'
8937        # Determine the default libpath from the value encoded in an
8938        # empty executable.
8939        if test "${lt_cv_aix_libpath+set}" = set; then
8940  aix_libpath=$lt_cv_aix_libpath
8941else
8942  if ${lt_cv_aix_libpath_+:} false; then :
8943  $as_echo_n "(cached) " >&6
8944else
8945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946/* end confdefs.h.  */
8947
8948int
8949main ()
8950{
8951
8952  ;
8953  return 0;
8954}
8955_ACEOF
8956if ac_fn_c_try_link "$LINENO"; then :
8957
8958  lt_aix_libpath_sed='
8959      /Import File Strings/,/^$/ {
8960          /^0/ {
8961              s/^0  *\([^ ]*\) *$/\1/
8962              p
8963          }
8964      }'
8965  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966  # Check for a 64-bit object if we didn't find anything.
8967  if test -z "$lt_cv_aix_libpath_"; then
8968    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969  fi
8970fi
8971rm -f core conftest.err conftest.$ac_objext \
8972    conftest$ac_exeext conftest.$ac_ext
8973  if test -z "$lt_cv_aix_libpath_"; then
8974    lt_cv_aix_libpath_="/usr/lib:/lib"
8975  fi
8976
8977fi
8978
8979  aix_libpath=$lt_cv_aix_libpath_
8980fi
8981
8982        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8983        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8984      else
8985        if test "$host_cpu" = ia64; then
8986          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8987          allow_undefined_flag="-z nodefs"
8988          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"
8989        else
8990         # Determine the default libpath from the value encoded in an
8991         # empty executable.
8992         if test "${lt_cv_aix_libpath+set}" = set; then
8993  aix_libpath=$lt_cv_aix_libpath
8994else
8995  if ${lt_cv_aix_libpath_+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000
9001int
9002main ()
9003{
9004
9005  ;
9006  return 0;
9007}
9008_ACEOF
9009if ac_fn_c_try_link "$LINENO"; then :
9010
9011  lt_aix_libpath_sed='
9012      /Import File Strings/,/^$/ {
9013          /^0/ {
9014              s/^0  *\([^ ]*\) *$/\1/
9015              p
9016          }
9017      }'
9018  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019  # Check for a 64-bit object if we didn't find anything.
9020  if test -z "$lt_cv_aix_libpath_"; then
9021    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022  fi
9023fi
9024rm -f core conftest.err conftest.$ac_objext \
9025    conftest$ac_exeext conftest.$ac_ext
9026  if test -z "$lt_cv_aix_libpath_"; then
9027    lt_cv_aix_libpath_="/usr/lib:/lib"
9028  fi
9029
9030fi
9031
9032  aix_libpath=$lt_cv_aix_libpath_
9033fi
9034
9035         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9036          # Warning - without using the other run time loading flags,
9037          # -berok will link without error, but may produce a broken library.
9038          no_undefined_flag=' ${wl}-bernotok'
9039          allow_undefined_flag=' ${wl}-berok'
9040          if test "$with_gnu_ld" = yes; then
9041            # We only use this code for GNU lds that support --whole-archive.
9042            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9043          else
9044            # Exported symbols can be pulled into shared objects from archives
9045            whole_archive_flag_spec='$convenience'
9046          fi
9047          archive_cmds_need_lc=yes
9048          # This is similar to how AIX traditionally builds its shared libraries.
9049          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9050        fi
9051      fi
9052      ;;
9053
9054    amigaos*)
9055      case $host_cpu in
9056      powerpc)
9057            # see comment about AmigaOS4 .so support
9058            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059            archive_expsym_cmds=''
9060        ;;
9061      m68k)
9062            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)'
9063            hardcode_libdir_flag_spec='-L$libdir'
9064            hardcode_minus_L=yes
9065        ;;
9066      esac
9067      ;;
9068
9069    bsdi[45]*)
9070      export_dynamic_flag_spec=-rdynamic
9071      ;;
9072
9073    cygwin* | mingw* | pw32* | cegcc*)
9074      # When not using gcc, we currently assume that we are using
9075      # Microsoft Visual C++.
9076      # hardcode_libdir_flag_spec is actually meaningless, as there is
9077      # no search path for DLLs.
9078      case $cc_basename in
9079      cl*)
9080        # Native MSVC
9081        hardcode_libdir_flag_spec=' '
9082        allow_undefined_flag=unsupported
9083        always_export_symbols=yes
9084        file_list_spec='@'
9085        # Tell ltmain to make .lib files, not .a files.
9086        libext=lib
9087        # Tell ltmain to make .dll files, not .so files.
9088        shrext_cmds=".dll"
9089        # FIXME: Setting linknames here is a bad hack.
9090        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9091        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9092            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9093          else
9094            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9095          fi~
9096          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9097          linknames='
9098        # The linker will not automatically build a static lib if we build a DLL.
9099        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9100        enable_shared_with_static_runtimes=yes
9101        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9102        # Don't use ranlib
9103        old_postinstall_cmds='chmod 644 $oldlib'
9104        postlink_cmds='lt_outputfile="@OUTPUT@"~
9105          lt_tool_outputfile="@TOOL_OUTPUT@"~
9106          case $lt_outputfile in
9107            *.exe|*.EXE) ;;
9108            *)
9109              lt_outputfile="$lt_outputfile.exe"
9110              lt_tool_outputfile="$lt_tool_outputfile.exe"
9111              ;;
9112          esac~
9113          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9114            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9115            $RM "$lt_outputfile.manifest";
9116          fi'
9117        ;;
9118      *)
9119        # Assume MSVC wrapper
9120        hardcode_libdir_flag_spec=' '
9121        allow_undefined_flag=unsupported
9122        # Tell ltmain to make .lib files, not .a files.
9123        libext=lib
9124        # Tell ltmain to make .dll files, not .so files.
9125        shrext_cmds=".dll"
9126        # FIXME: Setting linknames here is a bad hack.
9127        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9128        # The linker will automatically build a .lib file if we build a DLL.
9129        old_archive_from_new_cmds='true'
9130        # FIXME: Should let the user specify the lib program.
9131        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9132        enable_shared_with_static_runtimes=yes
9133        ;;
9134      esac
9135      ;;
9136
9137    darwin* | rhapsody*)
9138
9139
9140  archive_cmds_need_lc=no
9141  hardcode_direct=no
9142  hardcode_automatic=yes
9143  hardcode_shlibpath_var=unsupported
9144  if test "$lt_cv_ld_force_load" = "yes"; then
9145    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\"`'
9146  else
9147    whole_archive_flag_spec=''
9148  fi
9149  link_all_deplibs=yes
9150  allow_undefined_flag="$_lt_dar_allow_undefined"
9151  case $cc_basename in
9152     ifort*) _lt_dar_can_shared=yes ;;
9153     *) _lt_dar_can_shared=$GCC ;;
9154  esac
9155  if test "$_lt_dar_can_shared" = "yes"; then
9156    output_verbose_link_cmd=func_echo_all
9157    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9158    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9159    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}"
9160    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}"
9161
9162  else
9163  ld_shlibs=no
9164  fi
9165
9166      ;;
9167
9168    dgux*)
9169      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170      hardcode_libdir_flag_spec='-L$libdir'
9171      hardcode_shlibpath_var=no
9172      ;;
9173
9174    freebsd1*)
9175      ld_shlibs=no
9176      ;;
9177
9178    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9179    # support.  Future versions do this automatically, but an explicit c++rt0.o
9180    # does not break anything, and helps significantly (at the cost of a little
9181    # extra space).
9182    freebsd2.2*)
9183      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9184      hardcode_libdir_flag_spec='-R$libdir'
9185      hardcode_direct=yes
9186      hardcode_shlibpath_var=no
9187      ;;
9188
9189    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9190    freebsd2*)
9191      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192      hardcode_direct=yes
9193      hardcode_minus_L=yes
9194      hardcode_shlibpath_var=no
9195      ;;
9196
9197    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9198    freebsd* | dragonfly*)
9199      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200      hardcode_libdir_flag_spec='-R$libdir'
9201      hardcode_direct=yes
9202      hardcode_shlibpath_var=no
9203      ;;
9204
9205    hpux9*)
9206      if test "$GCC" = yes; then
9207        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9208      else
9209        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9210      fi
9211      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9212      hardcode_libdir_separator=:
9213      hardcode_direct=yes
9214
9215      # hardcode_minus_L: Not really in the search PATH,
9216      # but as the default location of the library.
9217      hardcode_minus_L=yes
9218      export_dynamic_flag_spec='${wl}-E'
9219      ;;
9220
9221    hpux10*)
9222      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9223        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9224      else
9225        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9226      fi
9227      if test "$with_gnu_ld" = no; then
9228        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229        hardcode_libdir_flag_spec_ld='+b $libdir'
9230        hardcode_libdir_separator=:
9231        hardcode_direct=yes
9232        hardcode_direct_absolute=yes
9233        export_dynamic_flag_spec='${wl}-E'
9234        # hardcode_minus_L: Not really in the search PATH,
9235        # but as the default location of the library.
9236        hardcode_minus_L=yes
9237      fi
9238      ;;
9239
9240    hpux11*)
9241      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9242        case $host_cpu in
9243        hppa*64*)
9244          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9245          ;;
9246        ia64*)
9247          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9248          ;;
9249        *)
9250          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9251          ;;
9252        esac
9253      else
9254        case $host_cpu in
9255        hppa*64*)
9256          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9257          ;;
9258        ia64*)
9259          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9260          ;;
9261        *)
9262
9263          # Older versions of the 11.00 compiler do not understand -b yet
9264          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9265          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9266$as_echo_n "checking if $CC understands -b... " >&6; }
9267if ${lt_cv_prog_compiler__b+:} false; then :
9268  $as_echo_n "(cached) " >&6
9269else
9270  lt_cv_prog_compiler__b=no
9271   save_LDFLAGS="$LDFLAGS"
9272   LDFLAGS="$LDFLAGS -b"
9273   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9274   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9275     # The linker can only warn and ignore the option if not recognized
9276     # So say no if there are warnings
9277     if test -s conftest.err; then
9278       # Append any errors to the config.log.
9279       cat conftest.err 1>&5
9280       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9281       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9282       if diff conftest.exp conftest.er2 >/dev/null; then
9283         lt_cv_prog_compiler__b=yes
9284       fi
9285     else
9286       lt_cv_prog_compiler__b=yes
9287     fi
9288   fi
9289   $RM -r conftest*
9290   LDFLAGS="$save_LDFLAGS"
9291
9292fi
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9294$as_echo "$lt_cv_prog_compiler__b" >&6; }
9295
9296if test x"$lt_cv_prog_compiler__b" = xyes; then
9297    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298else
9299    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9300fi
9301
9302          ;;
9303        esac
9304      fi
9305      if test "$with_gnu_ld" = no; then
9306        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9307        hardcode_libdir_separator=:
9308
9309        case $host_cpu in
9310        hppa*64*|ia64*)
9311          hardcode_direct=no
9312          hardcode_shlibpath_var=no
9313          ;;
9314        *)
9315          hardcode_direct=yes
9316          hardcode_direct_absolute=yes
9317          export_dynamic_flag_spec='${wl}-E'
9318
9319          # hardcode_minus_L: Not really in the search PATH,
9320          # but as the default location of the library.
9321          hardcode_minus_L=yes
9322          ;;
9323        esac
9324      fi
9325      ;;
9326
9327    irix5* | irix6* | nonstopux*)
9328      if test "$GCC" = yes; then
9329        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'
9330        # Try to use the -exported_symbol ld option, if it does not
9331        # work, assume that -exports_file does not work either and
9332        # implicitly export all symbols.
9333        # This should be the same for all languages, so no per-tag cache variable.
9334        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9335$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9336if ${lt_cv_irix_exported_symbol+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  save_LDFLAGS="$LDFLAGS"
9340           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9341           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343int foo (void) { return 0; }
9344_ACEOF
9345if ac_fn_c_try_link "$LINENO"; then :
9346  lt_cv_irix_exported_symbol=yes
9347else
9348  lt_cv_irix_exported_symbol=no
9349fi
9350rm -f core conftest.err conftest.$ac_objext \
9351    conftest$ac_exeext conftest.$ac_ext
9352           LDFLAGS="$save_LDFLAGS"
9353fi
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9355$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9356        if test "$lt_cv_irix_exported_symbol" = yes; then
9357          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'
9358        fi
9359      else
9360        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'
9361        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'
9362      fi
9363      archive_cmds_need_lc='no'
9364      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9365      hardcode_libdir_separator=:
9366      inherit_rpath=yes
9367      link_all_deplibs=yes
9368      ;;
9369
9370    netbsd*)
9371      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9372        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9373      else
9374        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9375      fi
9376      hardcode_libdir_flag_spec='-R$libdir'
9377      hardcode_direct=yes
9378      hardcode_shlibpath_var=no
9379      ;;
9380
9381    newsos6)
9382      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383      hardcode_direct=yes
9384      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385      hardcode_libdir_separator=:
9386      hardcode_shlibpath_var=no
9387      ;;
9388
9389    *nto* | *qnx*)
9390      ;;
9391
9392    openbsd*)
9393      if test -f /usr/libexec/ld.so; then
9394        hardcode_direct=yes
9395        hardcode_shlibpath_var=no
9396        hardcode_direct_absolute=yes
9397        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9398          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9399          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9400          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9401          export_dynamic_flag_spec='${wl}-E'
9402        else
9403          case $host_os in
9404           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9405             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9406             hardcode_libdir_flag_spec='-R$libdir'
9407             ;;
9408           *)
9409             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9410             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9411             ;;
9412          esac
9413        fi
9414      else
9415        ld_shlibs=no
9416      fi
9417      ;;
9418
9419    os2*)
9420      hardcode_libdir_flag_spec='-L$libdir'
9421      hardcode_minus_L=yes
9422      allow_undefined_flag=unsupported
9423      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9424      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9425      ;;
9426
9427    osf3*)
9428      if test "$GCC" = yes; then
9429        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9430        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'
9431      else
9432        allow_undefined_flag=' -expect_unresolved \*'
9433        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'
9434      fi
9435      archive_cmds_need_lc='no'
9436      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9437      hardcode_libdir_separator=:
9438      ;;
9439
9440    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9441      if test "$GCC" = yes; then
9442        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9443        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'
9444        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445      else
9446        allow_undefined_flag=' -expect_unresolved \*'
9447        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'
9448        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~
9449        $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'
9450
9451        # Both c and cxx compiler support -rpath directly
9452        hardcode_libdir_flag_spec='-rpath $libdir'
9453      fi
9454      archive_cmds_need_lc='no'
9455      hardcode_libdir_separator=:
9456      ;;
9457
9458    solaris*)
9459      no_undefined_flag=' -z defs'
9460      if test "$GCC" = yes; then
9461        wlarc='${wl}'
9462        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9463        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9464          $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'
9465      else
9466        case `$CC -V 2>&1` in
9467        *"Compilers 5.0"*)
9468          wlarc=''
9469          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9471          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9472          ;;
9473        *)
9474          wlarc='${wl}'
9475          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9476          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9477          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9478          ;;
9479        esac
9480      fi
9481      hardcode_libdir_flag_spec='-R$libdir'
9482      hardcode_shlibpath_var=no
9483      case $host_os in
9484      solaris2.[0-5] | solaris2.[0-5].*) ;;
9485      *)
9486        # The compiler driver will combine and reorder linker options,
9487        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9488        # but is careful enough not to reorder.
9489        # Supported since Solaris 2.6 (maybe 2.5.1?)
9490        if test "$GCC" = yes; then
9491          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9492        else
9493          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9494        fi
9495        ;;
9496      esac
9497      link_all_deplibs=yes
9498      ;;
9499
9500    sunos4*)
9501      if test "x$host_vendor" = xsequent; then
9502        # Use $CC to link under sequent, because it throws in some extra .o
9503        # files that make .init and .fini sections work.
9504        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9505      else
9506        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9507      fi
9508      hardcode_libdir_flag_spec='-L$libdir'
9509      hardcode_direct=yes
9510      hardcode_minus_L=yes
9511      hardcode_shlibpath_var=no
9512      ;;
9513
9514    sysv4)
9515      case $host_vendor in
9516        sni)
9517          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518          hardcode_direct=yes # is this really true???
9519        ;;
9520        siemens)
9521          ## LD is ld it makes a PLAMLIB
9522          ## CC just makes a GrossModule.
9523          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9524          reload_cmds='$CC -r -o $output$reload_objs'
9525          hardcode_direct=no
9526        ;;
9527        motorola)
9528          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9530        ;;
9531      esac
9532      runpath_var='LD_RUN_PATH'
9533      hardcode_shlibpath_var=no
9534      ;;
9535
9536    sysv4.3*)
9537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538      hardcode_shlibpath_var=no
9539      export_dynamic_flag_spec='-Bexport'
9540      ;;
9541
9542    sysv4*MP*)
9543      if test -d /usr/nec; then
9544        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545        hardcode_shlibpath_var=no
9546        runpath_var=LD_RUN_PATH
9547        hardcode_runpath_var=yes
9548        ld_shlibs=yes
9549      fi
9550      ;;
9551
9552    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9553      no_undefined_flag='${wl}-z,text'
9554      archive_cmds_need_lc=no
9555      hardcode_shlibpath_var=no
9556      runpath_var='LD_RUN_PATH'
9557
9558      if test "$GCC" = yes; then
9559        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9560        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9561      else
9562        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564      fi
9565      ;;
9566
9567    sysv5* | sco3.2v5* | sco5v6*)
9568      # Note: We can NOT use -z defs as we might desire, because we do not
9569      # link with -lc, and that would cause any symbols used from libc to
9570      # always be unresolved, which means just about no library would
9571      # ever link correctly.  If we're not using GNU ld we use -z text
9572      # though, which does catch some bad symbols but isn't as heavy-handed
9573      # as -z defs.
9574      no_undefined_flag='${wl}-z,text'
9575      allow_undefined_flag='${wl}-z,nodefs'
9576      archive_cmds_need_lc=no
9577      hardcode_shlibpath_var=no
9578      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9579      hardcode_libdir_separator=':'
9580      link_all_deplibs=yes
9581      export_dynamic_flag_spec='${wl}-Bexport'
9582      runpath_var='LD_RUN_PATH'
9583
9584      if test "$GCC" = yes; then
9585        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9586        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587      else
9588        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590      fi
9591      ;;
9592
9593    uts4*)
9594      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595      hardcode_libdir_flag_spec='-L$libdir'
9596      hardcode_shlibpath_var=no
9597      ;;
9598
9599    *)
9600      ld_shlibs=no
9601      ;;
9602    esac
9603
9604    if test x$host_vendor = xsni; then
9605      case $host in
9606      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9607        export_dynamic_flag_spec='${wl}-Blargedynsym'
9608        ;;
9609      esac
9610    fi
9611  fi
9612
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9614$as_echo "$ld_shlibs" >&6; }
9615test "$ld_shlibs" = no && can_build_shared=no
9616
9617with_gnu_ld=$with_gnu_ld
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633#
9634# Do we need to explicitly link libc?
9635#
9636case "x$archive_cmds_need_lc" in
9637x|xyes)
9638  # Assume -lc should be added
9639  archive_cmds_need_lc=yes
9640
9641  if test "$enable_shared" = yes && test "$GCC" = yes; then
9642    case $archive_cmds in
9643    *'~'*)
9644      # FIXME: we may have to deal with multi-command sequences.
9645      ;;
9646    '$CC '*)
9647      # Test whether the compiler implicitly links with -lc since on some
9648      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9649      # to ld, don't add -lc before -lgcc.
9650      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9651$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9652if ${lt_cv_archive_cmds_need_lc+:} false; then :
9653  $as_echo_n "(cached) " >&6
9654else
9655  $RM conftest*
9656        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9657
9658        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9659  (eval $ac_compile) 2>&5
9660  ac_status=$?
9661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9662  test $ac_status = 0; } 2>conftest.err; then
9663          soname=conftest
9664          lib=conftest
9665          libobjs=conftest.$ac_objext
9666          deplibs=
9667          wl=$lt_prog_compiler_wl
9668          pic_flag=$lt_prog_compiler_pic
9669          compiler_flags=-v
9670          linker_flags=-v
9671          verstring=
9672          output_objdir=.
9673          libname=conftest
9674          lt_save_allow_undefined_flag=$allow_undefined_flag
9675          allow_undefined_flag=
9676          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9677  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9678  ac_status=$?
9679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9680  test $ac_status = 0; }
9681          then
9682            lt_cv_archive_cmds_need_lc=no
9683          else
9684            lt_cv_archive_cmds_need_lc=yes
9685          fi
9686          allow_undefined_flag=$lt_save_allow_undefined_flag
9687        else
9688          cat conftest.err 1>&5
9689        fi
9690        $RM conftest*
9691
9692fi
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9694$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9695      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9696      ;;
9697    esac
9698  fi
9699  ;;
9700esac
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
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
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9859$as_echo_n "checking dynamic linker characteristics... " >&6; }
9860
9861if test "$GCC" = yes; then
9862  case $host_os in
9863    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9864    *) lt_awk_arg="/^libraries:/" ;;
9865  esac
9866  case $host_os in
9867    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9868    *) lt_sed_strip_eq="s,=/,/,g" ;;
9869  esac
9870  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9871  case $lt_search_path_spec in
9872  *\;*)
9873    # if the path contains ";" then we assume it to be the separator
9874    # otherwise default to the standard path separator (i.e. ":") - it is
9875    # assumed that no part of a normal pathname contains ";" but that should
9876    # okay in the real world where ";" in dirpaths is itself problematic.
9877    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9878    ;;
9879  *)
9880    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9881    ;;
9882  esac
9883  # Ok, now we have the path, separated by spaces, we can step through it
9884  # and add multilib dir if necessary.
9885  lt_tmp_lt_search_path_spec=
9886  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9887  for lt_sys_path in $lt_search_path_spec; do
9888    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9889      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9890    else
9891      test -d "$lt_sys_path" && \
9892        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9893    fi
9894  done
9895  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9896BEGIN {RS=" "; FS="/|\n";} {
9897  lt_foo="";
9898  lt_count=0;
9899  for (lt_i = NF; lt_i > 0; lt_i--) {
9900    if ($lt_i != "" && $lt_i != ".") {
9901      if ($lt_i == "..") {
9902        lt_count++;
9903      } else {
9904        if (lt_count == 0) {
9905          lt_foo="/" $lt_i lt_foo;
9906        } else {
9907          lt_count--;
9908        }
9909      }
9910    }
9911  }
9912  if (lt_foo != "") { lt_freq[lt_foo]++; }
9913  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9914}'`
9915  # AWK program above erroneously prepends '/' to C:/dos/paths
9916  # for these hosts.
9917  case $host_os in
9918    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9919      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9920  esac
9921  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9922else
9923  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9924fi
9925library_names_spec=
9926libname_spec='lib$name'
9927soname_spec=
9928shrext_cmds=".so"
9929postinstall_cmds=
9930postuninstall_cmds=
9931finish_cmds=
9932finish_eval=
9933shlibpath_var=
9934shlibpath_overrides_runpath=unknown
9935version_type=none
9936dynamic_linker="$host_os ld.so"
9937sys_lib_dlsearch_path_spec="/lib /usr/lib"
9938need_lib_prefix=unknown
9939hardcode_into_libs=no
9940
9941# when you set need_version to no, make sure it does not cause -set_version
9942# flags to be left without arguments
9943need_version=unknown
9944
9945case $host_os in
9946aix3*)
9947  version_type=linux
9948  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9949  shlibpath_var=LIBPATH
9950
9951  # AIX 3 has no versioning support, so we append a major version to the name.
9952  soname_spec='${libname}${release}${shared_ext}$major'
9953  ;;
9954
9955aix[4-9]*)
9956  version_type=linux
9957  need_lib_prefix=no
9958  need_version=no
9959  hardcode_into_libs=yes
9960  if test "$host_cpu" = ia64; then
9961    # AIX 5 supports IA64
9962    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9963    shlibpath_var=LD_LIBRARY_PATH
9964  else
9965    # With GCC up to 2.95.x, collect2 would create an import file
9966    # for dependence libraries.  The import file would start with
9967    # the line `#! .'.  This would cause the generated library to
9968    # depend on `.', always an invalid library.  This was fixed in
9969    # development snapshots of GCC prior to 3.0.
9970    case $host_os in
9971      aix4 | aix4.[01] | aix4.[01].*)
9972      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9973           echo ' yes '
9974           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9975        :
9976      else
9977        can_build_shared=no
9978      fi
9979      ;;
9980    esac
9981    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9982    # soname into executable. Probably we can add versioning support to
9983    # collect2, so additional links can be useful in future.
9984    if test "$aix_use_runtimelinking" = yes; then
9985      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9986      # instead of lib<name>.a to let people know that these are not
9987      # typical AIX shared libraries.
9988      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989    else
9990      # We preserve .a as extension for shared libraries through AIX4.2
9991      # and later when we are not doing run time linking.
9992      library_names_spec='${libname}${release}.a $libname.a'
9993      soname_spec='${libname}${release}${shared_ext}$major'
9994    fi
9995    shlibpath_var=LIBPATH
9996  fi
9997  ;;
9998
9999amigaos*)
10000  case $host_cpu in
10001  powerpc)
10002    # Since July 2007 AmigaOS4 officially supports .so libraries.
10003    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10004    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005    ;;
10006  m68k)
10007    library_names_spec='$libname.ixlibrary $libname.a'
10008    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10009    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10010    ;;
10011  esac
10012  ;;
10013
10014beos*)
10015  library_names_spec='${libname}${shared_ext}'
10016  dynamic_linker="$host_os ld.so"
10017  shlibpath_var=LIBRARY_PATH
10018  ;;
10019
10020bsdi[45]*)
10021  version_type=linux
10022  need_version=no
10023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024  soname_spec='${libname}${release}${shared_ext}$major'
10025  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10026  shlibpath_var=LD_LIBRARY_PATH
10027  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10028  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10029  # the default ld.so.conf also contains /usr/contrib/lib and
10030  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10031  # libtool to hard-code these into programs
10032  ;;
10033
10034cygwin* | mingw* | pw32* | cegcc*)
10035  version_type=windows
10036  shrext_cmds=".dll"
10037  need_version=no
10038  need_lib_prefix=no
10039
10040  case $GCC,$cc_basename in
10041  yes,*)
10042    # gcc
10043    library_names_spec='$libname.dll.a'
10044    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10045    postinstall_cmds='base_file=`basename \${file}`~
10046      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10047      dldir=$destdir/`dirname \$dlpath`~
10048      test -d \$dldir || mkdir -p \$dldir~
10049      $install_prog $dir/$dlname \$dldir/$dlname~
10050      chmod a+x \$dldir/$dlname~
10051      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10052        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10053      fi'
10054    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10055      dlpath=$dir/\$dldll~
10056       $RM \$dlpath'
10057    shlibpath_overrides_runpath=yes
10058
10059    case $host_os in
10060    cygwin*)
10061      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10062      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10063
10064      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10065      ;;
10066    mingw* | cegcc*)
10067      # MinGW DLLs use traditional 'lib' prefix
10068      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10069      ;;
10070    pw32*)
10071      # pw32 DLLs use 'pw' prefix rather than 'lib'
10072      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10073      ;;
10074    esac
10075    dynamic_linker='Win32 ld.exe'
10076    ;;
10077
10078  *,cl*)
10079    # Native MSVC
10080    libname_spec='$name'
10081    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10082    library_names_spec='${libname}.dll.lib'
10083
10084    case $build_os in
10085    mingw*)
10086      sys_lib_search_path_spec=
10087      lt_save_ifs=$IFS
10088      IFS=';'
10089      for lt_path in $LIB
10090      do
10091        IFS=$lt_save_ifs
10092        # Let DOS variable expansion print the short 8.3 style file name.
10093        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10094        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10095      done
10096      IFS=$lt_save_ifs
10097      # Convert to MSYS style.
10098      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10099      ;;
10100    cygwin*)
10101      # Convert to unix form, then to dos form, then back to unix form
10102      # but this time dos style (no spaces!) so that the unix form looks
10103      # like /cygdrive/c/PROGRA~1:/cygdr...
10104      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10105      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10106      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10107      ;;
10108    *)
10109      sys_lib_search_path_spec="$LIB"
10110      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10111        # It is most probably a Windows format PATH.
10112        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10113      else
10114        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10115      fi
10116      # FIXME: find the short name or the path components, as spaces are
10117      # common. (e.g. "Program Files" -> "PROGRA~1")
10118      ;;
10119    esac
10120
10121    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10122    postinstall_cmds='base_file=`basename \${file}`~
10123      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10124      dldir=$destdir/`dirname \$dlpath`~
10125      test -d \$dldir || mkdir -p \$dldir~
10126      $install_prog $dir/$dlname \$dldir/$dlname'
10127    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10128      dlpath=$dir/\$dldll~
10129       $RM \$dlpath'
10130    shlibpath_overrides_runpath=yes
10131    dynamic_linker='Win32 link.exe'
10132    ;;
10133
10134  *)
10135    # Assume MSVC wrapper
10136    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10137    dynamic_linker='Win32 ld.exe'
10138    ;;
10139  esac
10140  # FIXME: first we should search . and the directory the executable is in
10141  shlibpath_var=PATH
10142  ;;
10143
10144darwin* | rhapsody*)
10145  dynamic_linker="$host_os dyld"
10146  version_type=darwin
10147  need_lib_prefix=no
10148  need_version=no
10149  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10150  soname_spec='${libname}${release}${major}$shared_ext'
10151  shlibpath_overrides_runpath=yes
10152  shlibpath_var=DYLD_LIBRARY_PATH
10153  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10154
10155  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10156  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10157  ;;
10158
10159dgux*)
10160  version_type=linux
10161  need_lib_prefix=no
10162  need_version=no
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10164  soname_spec='${libname}${release}${shared_ext}$major'
10165  shlibpath_var=LD_LIBRARY_PATH
10166  ;;
10167
10168freebsd1*)
10169  dynamic_linker=no
10170  ;;
10171
10172freebsd* | dragonfly*)
10173  # DragonFly does not have aout.  When/if they implement a new
10174  # versioning mechanism, adjust this.
10175  if test -x /usr/bin/objformat; then
10176    objformat=`/usr/bin/objformat`
10177  else
10178    case $host_os in
10179    freebsd[123]*) objformat=aout ;;
10180    *) objformat=elf ;;
10181    esac
10182  fi
10183  # Handle Gentoo/FreeBSD as it was Linux
10184  case $host_vendor in
10185    gentoo)
10186      version_type=linux ;;
10187    *)
10188      version_type=freebsd-$objformat ;;
10189  esac
10190
10191  case $version_type in
10192    freebsd-elf*)
10193      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10194      need_version=no
10195      need_lib_prefix=no
10196      ;;
10197    freebsd-*)
10198      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10199      need_version=yes
10200      ;;
10201    linux)
10202      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10203      soname_spec='${libname}${release}${shared_ext}$major'
10204      need_lib_prefix=no
10205      need_version=no
10206      ;;
10207  esac
10208  shlibpath_var=LD_LIBRARY_PATH
10209  case $host_os in
10210  freebsd2*)
10211    shlibpath_overrides_runpath=yes
10212    ;;
10213  freebsd3.[01]* | freebsdelf3.[01]*)
10214    shlibpath_overrides_runpath=yes
10215    hardcode_into_libs=yes
10216    ;;
10217  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10218  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10219    shlibpath_overrides_runpath=no
10220    hardcode_into_libs=yes
10221    ;;
10222  *) # from 4.6 on, and DragonFly
10223    shlibpath_overrides_runpath=yes
10224    hardcode_into_libs=yes
10225    ;;
10226  esac
10227  ;;
10228
10229gnu*)
10230  version_type=linux
10231  need_lib_prefix=no
10232  need_version=no
10233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10234  soname_spec='${libname}${release}${shared_ext}$major'
10235  shlibpath_var=LD_LIBRARY_PATH
10236  hardcode_into_libs=yes
10237  ;;
10238
10239haiku*)
10240  version_type=linux
10241  need_lib_prefix=no
10242  need_version=no
10243  dynamic_linker="$host_os runtime_loader"
10244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10245  soname_spec='${libname}${release}${shared_ext}$major'
10246  shlibpath_var=LIBRARY_PATH
10247  shlibpath_overrides_runpath=yes
10248  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10249  hardcode_into_libs=yes
10250  ;;
10251
10252hpux9* | hpux10* | hpux11*)
10253  # Give a soname corresponding to the major version so that dld.sl refuses to
10254  # link against other versions.
10255  version_type=sunos
10256  need_lib_prefix=no
10257  need_version=no
10258  case $host_cpu in
10259  ia64*)
10260    shrext_cmds='.so'
10261    hardcode_into_libs=yes
10262    dynamic_linker="$host_os dld.so"
10263    shlibpath_var=LD_LIBRARY_PATH
10264    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266    soname_spec='${libname}${release}${shared_ext}$major'
10267    if test "X$HPUX_IA64_MODE" = X32; then
10268      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10269    else
10270      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10271    fi
10272    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10273    ;;
10274  hppa*64*)
10275    shrext_cmds='.sl'
10276    hardcode_into_libs=yes
10277    dynamic_linker="$host_os dld.sl"
10278    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281    soname_spec='${libname}${release}${shared_ext}$major'
10282    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10283    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10284    ;;
10285  *)
10286    shrext_cmds='.sl'
10287    dynamic_linker="$host_os dld.sl"
10288    shlibpath_var=SHLIB_PATH
10289    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291    soname_spec='${libname}${release}${shared_ext}$major'
10292    ;;
10293  esac
10294  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10295  postinstall_cmds='chmod 555 $lib'
10296  # or fails outright, so override atomically:
10297  install_override_mode=555
10298  ;;
10299
10300interix[3-9]*)
10301  version_type=linux
10302  need_lib_prefix=no
10303  need_version=no
10304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10305  soname_spec='${libname}${release}${shared_ext}$major'
10306  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10307  shlibpath_var=LD_LIBRARY_PATH
10308  shlibpath_overrides_runpath=no
10309  hardcode_into_libs=yes
10310  ;;
10311
10312irix5* | irix6* | nonstopux*)
10313  case $host_os in
10314    nonstopux*) version_type=nonstopux ;;
10315    *)
10316        if test "$lt_cv_prog_gnu_ld" = yes; then
10317                version_type=linux
10318        else
10319                version_type=irix
10320        fi ;;
10321  esac
10322  need_lib_prefix=no
10323  need_version=no
10324  soname_spec='${libname}${release}${shared_ext}$major'
10325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10326  case $host_os in
10327  irix5* | nonstopux*)
10328    libsuff= shlibsuff=
10329    ;;
10330  *)
10331    case $LD in # libtool.m4 will add one of these switches to LD
10332    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10333      libsuff= shlibsuff= libmagic=32-bit;;
10334    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10335      libsuff=32 shlibsuff=N32 libmagic=N32;;
10336    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10337      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10338    *) libsuff= shlibsuff= libmagic=never-match;;
10339    esac
10340    ;;
10341  esac
10342  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10343  shlibpath_overrides_runpath=no
10344  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10345  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10346  hardcode_into_libs=yes
10347  ;;
10348
10349# No shared lib support for Linux oldld, aout, or coff.
10350linux*oldld* | linux*aout* | linux*coff*)
10351  dynamic_linker=no
10352  ;;
10353
10354# This must be Linux ELF.
10355linux* | k*bsd*-gnu | kopensolaris*-gnu)
10356  version_type=linux
10357  need_lib_prefix=no
10358  need_version=no
10359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360  soname_spec='${libname}${release}${shared_ext}$major'
10361  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10362  shlibpath_var=LD_LIBRARY_PATH
10363  shlibpath_overrides_runpath=no
10364
10365  # Some binutils ld are patched to set DT_RUNPATH
10366  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10367  $as_echo_n "(cached) " >&6
10368else
10369  lt_cv_shlibpath_overrides_runpath=no
10370    save_LDFLAGS=$LDFLAGS
10371    save_libdir=$libdir
10372    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10373         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10374    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375/* end confdefs.h.  */
10376
10377int
10378main ()
10379{
10380
10381  ;
10382  return 0;
10383}
10384_ACEOF
10385if ac_fn_c_try_link "$LINENO"; then :
10386  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10387  lt_cv_shlibpath_overrides_runpath=yes
10388fi
10389fi
10390rm -f core conftest.err conftest.$ac_objext \
10391    conftest$ac_exeext conftest.$ac_ext
10392    LDFLAGS=$save_LDFLAGS
10393    libdir=$save_libdir
10394
10395fi
10396
10397  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10398
10399  # This implies no fast_install, which is unacceptable.
10400  # Some rework will be needed to allow for fast_install
10401  # before this can be enabled.
10402  hardcode_into_libs=yes
10403
10404  # Append ld.so.conf contents to the search path
10405  if test -f /etc/ld.so.conf; then
10406    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' ' '`
10407    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10408  fi
10409
10410  # We used to test for /lib/ld.so.1 and disable shared libraries on
10411  # powerpc, because MkLinux only supported shared libraries with the
10412  # GNU dynamic linker.  Since this was broken with cross compilers,
10413  # most powerpc-linux boxes support dynamic linking these days and
10414  # people can always --disable-shared, the test was removed, and we
10415  # assume the GNU/Linux dynamic linker is in use.
10416  dynamic_linker='GNU/Linux ld.so'
10417  ;;
10418
10419netbsd*)
10420  version_type=sunos
10421  need_lib_prefix=no
10422  need_version=no
10423  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10425    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10426    dynamic_linker='NetBSD (a.out) ld.so'
10427  else
10428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10429    soname_spec='${libname}${release}${shared_ext}$major'
10430    dynamic_linker='NetBSD ld.elf_so'
10431  fi
10432  shlibpath_var=LD_LIBRARY_PATH
10433  shlibpath_overrides_runpath=yes
10434  hardcode_into_libs=yes
10435  ;;
10436
10437newsos6)
10438  version_type=linux
10439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440  shlibpath_var=LD_LIBRARY_PATH
10441  shlibpath_overrides_runpath=yes
10442  ;;
10443
10444*nto* | *qnx*)
10445  version_type=qnx
10446  need_lib_prefix=no
10447  need_version=no
10448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449  soname_spec='${libname}${release}${shared_ext}$major'
10450  shlibpath_var=LD_LIBRARY_PATH
10451  shlibpath_overrides_runpath=no
10452  hardcode_into_libs=yes
10453  dynamic_linker='ldqnx.so'
10454  ;;
10455
10456openbsd*)
10457  version_type=sunos
10458  sys_lib_dlsearch_path_spec="/usr/lib"
10459  need_lib_prefix=no
10460  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10461  case $host_os in
10462    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10463    *)                          need_version=no  ;;
10464  esac
10465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10467  shlibpath_var=LD_LIBRARY_PATH
10468  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10469    case $host_os in
10470      openbsd2.[89] | openbsd2.[89].*)
10471        shlibpath_overrides_runpath=no
10472        ;;
10473      *)
10474        shlibpath_overrides_runpath=yes
10475        ;;
10476      esac
10477  else
10478    shlibpath_overrides_runpath=yes
10479  fi
10480  ;;
10481
10482os2*)
10483  libname_spec='$name'
10484  shrext_cmds=".dll"
10485  need_lib_prefix=no
10486  library_names_spec='$libname${shared_ext} $libname.a'
10487  dynamic_linker='OS/2 ld.exe'
10488  shlibpath_var=LIBPATH
10489  ;;
10490
10491osf3* | osf4* | osf5*)
10492  version_type=osf
10493  need_lib_prefix=no
10494  need_version=no
10495  soname_spec='${libname}${release}${shared_ext}$major'
10496  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497  shlibpath_var=LD_LIBRARY_PATH
10498  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10499  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10500  ;;
10501
10502rdos*)
10503  dynamic_linker=no
10504  ;;
10505
10506solaris*)
10507  version_type=linux
10508  need_lib_prefix=no
10509  need_version=no
10510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511  soname_spec='${libname}${release}${shared_ext}$major'
10512  shlibpath_var=LD_LIBRARY_PATH
10513  shlibpath_overrides_runpath=yes
10514  hardcode_into_libs=yes
10515  # ldd complains unless libraries are executable
10516  postinstall_cmds='chmod +x $lib'
10517  ;;
10518
10519sunos4*)
10520  version_type=sunos
10521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10522  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10523  shlibpath_var=LD_LIBRARY_PATH
10524  shlibpath_overrides_runpath=yes
10525  if test "$with_gnu_ld" = yes; then
10526    need_lib_prefix=no
10527  fi
10528  need_version=yes
10529  ;;
10530
10531sysv4 | sysv4.3*)
10532  version_type=linux
10533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534  soname_spec='${libname}${release}${shared_ext}$major'
10535  shlibpath_var=LD_LIBRARY_PATH
10536  case $host_vendor in
10537    sni)
10538      shlibpath_overrides_runpath=no
10539      need_lib_prefix=no
10540      runpath_var=LD_RUN_PATH
10541      ;;
10542    siemens)
10543      need_lib_prefix=no
10544      ;;
10545    motorola)
10546      need_lib_prefix=no
10547      need_version=no
10548      shlibpath_overrides_runpath=no
10549      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10550      ;;
10551  esac
10552  ;;
10553
10554sysv4*MP*)
10555  if test -d /usr/nec ;then
10556    version_type=linux
10557    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10558    soname_spec='$libname${shared_ext}.$major'
10559    shlibpath_var=LD_LIBRARY_PATH
10560  fi
10561  ;;
10562
10563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10564  version_type=freebsd-elf
10565  need_lib_prefix=no
10566  need_version=no
10567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10568  soname_spec='${libname}${release}${shared_ext}$major'
10569  shlibpath_var=LD_LIBRARY_PATH
10570  shlibpath_overrides_runpath=yes
10571  hardcode_into_libs=yes
10572  if test "$with_gnu_ld" = yes; then
10573    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10574  else
10575    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10576    case $host_os in
10577      sco3.2v5*)
10578        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10579        ;;
10580    esac
10581  fi
10582  sys_lib_dlsearch_path_spec='/usr/lib'
10583  ;;
10584
10585tpf*)
10586  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10587  version_type=linux
10588  need_lib_prefix=no
10589  need_version=no
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591  shlibpath_var=LD_LIBRARY_PATH
10592  shlibpath_overrides_runpath=no
10593  hardcode_into_libs=yes
10594  ;;
10595
10596uts4*)
10597  version_type=linux
10598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599  soname_spec='${libname}${release}${shared_ext}$major'
10600  shlibpath_var=LD_LIBRARY_PATH
10601  ;;
10602
10603*)
10604  dynamic_linker=no
10605  ;;
10606esac
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10608$as_echo "$dynamic_linker" >&6; }
10609test "$dynamic_linker" = no && can_build_shared=no
10610
10611variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10612if test "$GCC" = yes; then
10613  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10614fi
10615
10616if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10617  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10618fi
10619if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10620  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10621fi
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10715$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10716hardcode_action=
10717if test -n "$hardcode_libdir_flag_spec" ||
10718   test -n "$runpath_var" ||
10719   test "X$hardcode_automatic" = "Xyes" ; then
10720
10721  # We can hardcode non-existent directories.
10722  if test "$hardcode_direct" != no &&
10723     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10724     # have to relink, otherwise we might link with an installed library
10725     # when we should be linking with a yet-to-be-installed one
10726     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10727     test "$hardcode_minus_L" != no; then
10728    # Linking always hardcodes the temporary library directory.
10729    hardcode_action=relink
10730  else
10731    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10732    hardcode_action=immediate
10733  fi
10734else
10735  # We cannot hardcode anything, or else we can only hardcode existing
10736  # directories.
10737  hardcode_action=unsupported
10738fi
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10740$as_echo "$hardcode_action" >&6; }
10741
10742if test "$hardcode_action" = relink ||
10743   test "$inherit_rpath" = yes; then
10744  # Fast installation is not supported
10745  enable_fast_install=no
10746elif test "$shlibpath_overrides_runpath" = yes ||
10747     test "$enable_shared" = no; then
10748  # Fast installation is not necessary
10749  enable_fast_install=needless
10750fi
10751
10752
10753
10754
10755
10756
10757  if test "x$enable_dlopen" != xyes; then
10758  enable_dlopen=unknown
10759  enable_dlopen_self=unknown
10760  enable_dlopen_self_static=unknown
10761else
10762  lt_cv_dlopen=no
10763  lt_cv_dlopen_libs=
10764
10765  case $host_os in
10766  beos*)
10767    lt_cv_dlopen="load_add_on"
10768    lt_cv_dlopen_libs=
10769    lt_cv_dlopen_self=yes
10770    ;;
10771
10772  mingw* | pw32* | cegcc*)
10773    lt_cv_dlopen="LoadLibrary"
10774    lt_cv_dlopen_libs=
10775    ;;
10776
10777  cygwin*)
10778    lt_cv_dlopen="dlopen"
10779    lt_cv_dlopen_libs=
10780    ;;
10781
10782  darwin*)
10783  # if libdl is installed we need to link against it
10784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10785$as_echo_n "checking for dlopen in -ldl... " >&6; }
10786if ${ac_cv_lib_dl_dlopen+:} false; then :
10787  $as_echo_n "(cached) " >&6
10788else
10789  ac_check_lib_save_LIBS=$LIBS
10790LIBS="-ldl  $LIBS"
10791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792/* end confdefs.h.  */
10793
10794/* Override any GCC internal prototype to avoid an error.
10795   Use char because int might match the return type of a GCC
10796   builtin and then its argument prototype would still apply.  */
10797#ifdef __cplusplus
10798extern "C"
10799#endif
10800char dlopen ();
10801int
10802main ()
10803{
10804return dlopen ();
10805  ;
10806  return 0;
10807}
10808_ACEOF
10809if ac_fn_c_try_link "$LINENO"; then :
10810  ac_cv_lib_dl_dlopen=yes
10811else
10812  ac_cv_lib_dl_dlopen=no
10813fi
10814rm -f core conftest.err conftest.$ac_objext \
10815    conftest$ac_exeext conftest.$ac_ext
10816LIBS=$ac_check_lib_save_LIBS
10817fi
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10819$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10820if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10821  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10822else
10823
10824    lt_cv_dlopen="dyld"
10825    lt_cv_dlopen_libs=
10826    lt_cv_dlopen_self=yes
10827
10828fi
10829
10830    ;;
10831
10832  *)
10833    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10834if test "x$ac_cv_func_shl_load" = xyes; then :
10835  lt_cv_dlopen="shl_load"
10836else
10837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10838$as_echo_n "checking for shl_load in -ldld... " >&6; }
10839if ${ac_cv_lib_dld_shl_load+:} false; then :
10840  $as_echo_n "(cached) " >&6
10841else
10842  ac_check_lib_save_LIBS=$LIBS
10843LIBS="-ldld  $LIBS"
10844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845/* end confdefs.h.  */
10846
10847/* Override any GCC internal prototype to avoid an error.
10848   Use char because int might match the return type of a GCC
10849   builtin and then its argument prototype would still apply.  */
10850#ifdef __cplusplus
10851extern "C"
10852#endif
10853char shl_load ();
10854int
10855main ()
10856{
10857return shl_load ();
10858  ;
10859  return 0;
10860}
10861_ACEOF
10862if ac_fn_c_try_link "$LINENO"; then :
10863  ac_cv_lib_dld_shl_load=yes
10864else
10865  ac_cv_lib_dld_shl_load=no
10866fi
10867rm -f core conftest.err conftest.$ac_objext \
10868    conftest$ac_exeext conftest.$ac_ext
10869LIBS=$ac_check_lib_save_LIBS
10870fi
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10872$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10873if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10874  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10875else
10876  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10877if test "x$ac_cv_func_dlopen" = xyes; then :
10878  lt_cv_dlopen="dlopen"
10879else
10880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10881$as_echo_n "checking for dlopen in -ldl... " >&6; }
10882if ${ac_cv_lib_dl_dlopen+:} false; then :
10883  $as_echo_n "(cached) " >&6
10884else
10885  ac_check_lib_save_LIBS=$LIBS
10886LIBS="-ldl  $LIBS"
10887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889
10890/* Override any GCC internal prototype to avoid an error.
10891   Use char because int might match the return type of a GCC
10892   builtin and then its argument prototype would still apply.  */
10893#ifdef __cplusplus
10894extern "C"
10895#endif
10896char dlopen ();
10897int
10898main ()
10899{
10900return dlopen ();
10901  ;
10902  return 0;
10903}
10904_ACEOF
10905if ac_fn_c_try_link "$LINENO"; then :
10906  ac_cv_lib_dl_dlopen=yes
10907else
10908  ac_cv_lib_dl_dlopen=no
10909fi
10910rm -f core conftest.err conftest.$ac_objext \
10911    conftest$ac_exeext conftest.$ac_ext
10912LIBS=$ac_check_lib_save_LIBS
10913fi
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10915$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10916if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10917  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10918else
10919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10920$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10921if ${ac_cv_lib_svld_dlopen+:} false; then :
10922  $as_echo_n "(cached) " >&6
10923else
10924  ac_check_lib_save_LIBS=$LIBS
10925LIBS="-lsvld  $LIBS"
10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h.  */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930   Use char because int might match the return type of a GCC
10931   builtin and then its argument prototype would still apply.  */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char dlopen ();
10936int
10937main ()
10938{
10939return dlopen ();
10940  ;
10941  return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_link "$LINENO"; then :
10945  ac_cv_lib_svld_dlopen=yes
10946else
10947  ac_cv_lib_svld_dlopen=no
10948fi
10949rm -f core conftest.err conftest.$ac_objext \
10950    conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10954$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10955if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10956  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10957else
10958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10959$as_echo_n "checking for dld_link in -ldld... " >&6; }
10960if ${ac_cv_lib_dld_dld_link+:} false; then :
10961  $as_echo_n "(cached) " >&6
10962else
10963  ac_check_lib_save_LIBS=$LIBS
10964LIBS="-ldld  $LIBS"
10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966/* end confdefs.h.  */
10967
10968/* Override any GCC internal prototype to avoid an error.
10969   Use char because int might match the return type of a GCC
10970   builtin and then its argument prototype would still apply.  */
10971#ifdef __cplusplus
10972extern "C"
10973#endif
10974char dld_link ();
10975int
10976main ()
10977{
10978return dld_link ();
10979  ;
10980  return 0;
10981}
10982_ACEOF
10983if ac_fn_c_try_link "$LINENO"; then :
10984  ac_cv_lib_dld_dld_link=yes
10985else
10986  ac_cv_lib_dld_dld_link=no
10987fi
10988rm -f core conftest.err conftest.$ac_objext \
10989    conftest$ac_exeext conftest.$ac_ext
10990LIBS=$ac_check_lib_save_LIBS
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10993$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10994if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10995  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10996fi
10997
10998
10999fi
11000
11001
11002fi
11003
11004
11005fi
11006
11007
11008fi
11009
11010
11011fi
11012
11013    ;;
11014  esac
11015
11016  if test "x$lt_cv_dlopen" != xno; then
11017    enable_dlopen=yes
11018  else
11019    enable_dlopen=no
11020  fi
11021
11022  case $lt_cv_dlopen in
11023  dlopen)
11024    save_CPPFLAGS="$CPPFLAGS"
11025    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11026
11027    save_LDFLAGS="$LDFLAGS"
11028    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11029
11030    save_LIBS="$LIBS"
11031    LIBS="$lt_cv_dlopen_libs $LIBS"
11032
11033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11034$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11035if ${lt_cv_dlopen_self+:} false; then :
11036  $as_echo_n "(cached) " >&6
11037else
11038          if test "$cross_compiling" = yes; then :
11039  lt_cv_dlopen_self=cross
11040else
11041  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11042  lt_status=$lt_dlunknown
11043  cat > conftest.$ac_ext <<_LT_EOF
11044#line $LINENO "configure"
11045#include "confdefs.h"
11046
11047#if HAVE_DLFCN_H
11048#include <dlfcn.h>
11049#endif
11050
11051#include <stdio.h>
11052
11053#ifdef RTLD_GLOBAL
11054#  define LT_DLGLOBAL           RTLD_GLOBAL
11055#else
11056#  ifdef DL_GLOBAL
11057#    define LT_DLGLOBAL         DL_GLOBAL
11058#  else
11059#    define LT_DLGLOBAL         0
11060#  endif
11061#endif
11062
11063/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11064   find out it does not work in some platform. */
11065#ifndef LT_DLLAZY_OR_NOW
11066#  ifdef RTLD_LAZY
11067#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11068#  else
11069#    ifdef DL_LAZY
11070#      define LT_DLLAZY_OR_NOW          DL_LAZY
11071#    else
11072#      ifdef RTLD_NOW
11073#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11074#      else
11075#        ifdef DL_NOW
11076#          define LT_DLLAZY_OR_NOW      DL_NOW
11077#        else
11078#          define LT_DLLAZY_OR_NOW      0
11079#        endif
11080#      endif
11081#    endif
11082#  endif
11083#endif
11084
11085/* When -fvisbility=hidden is used, assume the code has been annotated
11086   correspondingly for the symbols needed.  */
11087#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11088int fnord () __attribute__((visibility("default")));
11089#endif
11090
11091int fnord () { return 42; }
11092int main ()
11093{
11094  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11095  int status = $lt_dlunknown;
11096
11097  if (self)
11098    {
11099      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11100      else
11101        {
11102          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11103          else puts (dlerror ());
11104        }
11105      /* dlclose (self); */
11106    }
11107  else
11108    puts (dlerror ());
11109
11110  return status;
11111}
11112_LT_EOF
11113  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11114  (eval $ac_link) 2>&5
11115  ac_status=$?
11116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11117  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11118    (./conftest; exit; ) >&5 2>/dev/null
11119    lt_status=$?
11120    case x$lt_status in
11121      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11122      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11123      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11124    esac
11125  else :
11126    # compilation failed
11127    lt_cv_dlopen_self=no
11128  fi
11129fi
11130rm -fr conftest*
11131
11132
11133fi
11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11135$as_echo "$lt_cv_dlopen_self" >&6; }
11136
11137    if test "x$lt_cv_dlopen_self" = xyes; then
11138      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11139      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11140$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11141if ${lt_cv_dlopen_self_static+:} false; then :
11142  $as_echo_n "(cached) " >&6
11143else
11144          if test "$cross_compiling" = yes; then :
11145  lt_cv_dlopen_self_static=cross
11146else
11147  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11148  lt_status=$lt_dlunknown
11149  cat > conftest.$ac_ext <<_LT_EOF
11150#line $LINENO "configure"
11151#include "confdefs.h"
11152
11153#if HAVE_DLFCN_H
11154#include <dlfcn.h>
11155#endif
11156
11157#include <stdio.h>
11158
11159#ifdef RTLD_GLOBAL
11160#  define LT_DLGLOBAL           RTLD_GLOBAL
11161#else
11162#  ifdef DL_GLOBAL
11163#    define LT_DLGLOBAL         DL_GLOBAL
11164#  else
11165#    define LT_DLGLOBAL         0
11166#  endif
11167#endif
11168
11169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11170   find out it does not work in some platform. */
11171#ifndef LT_DLLAZY_OR_NOW
11172#  ifdef RTLD_LAZY
11173#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11174#  else
11175#    ifdef DL_LAZY
11176#      define LT_DLLAZY_OR_NOW          DL_LAZY
11177#    else
11178#      ifdef RTLD_NOW
11179#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11180#      else
11181#        ifdef DL_NOW
11182#          define LT_DLLAZY_OR_NOW      DL_NOW
11183#        else
11184#          define LT_DLLAZY_OR_NOW      0
11185#        endif
11186#      endif
11187#    endif
11188#  endif
11189#endif
11190
11191/* When -fvisbility=hidden is used, assume the code has been annotated
11192   correspondingly for the symbols needed.  */
11193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11194int fnord () __attribute__((visibility("default")));
11195#endif
11196
11197int fnord () { return 42; }
11198int main ()
11199{
11200  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11201  int status = $lt_dlunknown;
11202
11203  if (self)
11204    {
11205      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11206      else
11207        {
11208          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11209          else puts (dlerror ());
11210        }
11211      /* dlclose (self); */
11212    }
11213  else
11214    puts (dlerror ());
11215
11216  return status;
11217}
11218_LT_EOF
11219  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11220  (eval $ac_link) 2>&5
11221  ac_status=$?
11222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11223  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11224    (./conftest; exit; ) >&5 2>/dev/null
11225    lt_status=$?
11226    case x$lt_status in
11227      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11228      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11229      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11230    esac
11231  else :
11232    # compilation failed
11233    lt_cv_dlopen_self_static=no
11234  fi
11235fi
11236rm -fr conftest*
11237
11238
11239fi
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11241$as_echo "$lt_cv_dlopen_self_static" >&6; }
11242    fi
11243
11244    CPPFLAGS="$save_CPPFLAGS"
11245    LDFLAGS="$save_LDFLAGS"
11246    LIBS="$save_LIBS"
11247    ;;
11248  esac
11249
11250  case $lt_cv_dlopen_self in
11251  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11252  *) enable_dlopen_self=unknown ;;
11253  esac
11254
11255  case $lt_cv_dlopen_self_static in
11256  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11257  *) enable_dlopen_self_static=unknown ;;
11258  esac
11259fi
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277striplib=
11278old_striplib=
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11280$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11281if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11282  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11283  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11285$as_echo "yes" >&6; }
11286else
11287# FIXME - insert some real tests, host_os isn't really good enough
11288  case $host_os in
11289  darwin*)
11290    if test -n "$STRIP" ; then
11291      striplib="$STRIP -x"
11292      old_striplib="$STRIP -S"
11293      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294$as_echo "yes" >&6; }
11295    else
11296      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297$as_echo "no" >&6; }
11298    fi
11299    ;;
11300  *)
11301    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302$as_echo "no" >&6; }
11303    ;;
11304  esac
11305fi
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318  # Report which library types will actually be built
11319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11320$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11322$as_echo "$can_build_shared" >&6; }
11323
11324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11325$as_echo_n "checking whether to build shared libraries... " >&6; }
11326  test "$can_build_shared" = "no" && enable_shared=no
11327
11328  # On AIX, shared libraries and static libraries use the same namespace, and
11329  # are all built from PIC.
11330  case $host_os in
11331  aix3*)
11332    test "$enable_shared" = yes && enable_static=no
11333    if test -n "$RANLIB"; then
11334      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11335      postinstall_cmds='$RANLIB $lib'
11336    fi
11337    ;;
11338
11339  aix[4-9]*)
11340    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11341      test "$enable_shared" = yes && enable_static=no
11342    fi
11343    ;;
11344  esac
11345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11346$as_echo "$enable_shared" >&6; }
11347
11348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11349$as_echo_n "checking whether to build static libraries... " >&6; }
11350  # Make sure either enable_shared or enable_static is yes.
11351  test "$enable_shared" = yes || enable_static=yes
11352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11353$as_echo "$enable_static" >&6; }
11354
11355
11356
11357
11358fi
11359ac_ext=c
11360ac_cpp='$CPP $CPPFLAGS'
11361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11363ac_compiler_gnu=$ac_cv_c_compiler_gnu
11364
11365CC="$lt_save_CC"
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379        ac_config_commands="$ac_config_commands libtool"
11380
11381
11382
11383
11384# Only expand once:
11385
11386
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11388$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11389set x ${MAKE-make}
11390ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11391if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11392  $as_echo_n "(cached) " >&6
11393else
11394  cat >conftest.make <<\_ACEOF
11395SHELL = /bin/sh
11396all:
11397        @echo '@@@%%%=$(MAKE)=@@@%%%'
11398_ACEOF
11399# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11400case `${MAKE-make} -f conftest.make 2>/dev/null` in
11401  *@@@%%%=?*=@@@%%%*)
11402    eval ac_cv_prog_make_${ac_make}_set=yes;;
11403  *)
11404    eval ac_cv_prog_make_${ac_make}_set=no;;
11405esac
11406rm -f conftest.make
11407fi
11408if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410$as_echo "yes" >&6; }
11411  SET_MAKE=
11412else
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
11415  SET_MAKE="MAKE=${MAKE-make}"
11416fi
11417
11418
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11420$as_echo_n "checking for inline... " >&6; }
11421if ${ac_cv_c_inline+:} false; then :
11422  $as_echo_n "(cached) " >&6
11423else
11424  ac_cv_c_inline=no
11425for ac_kw in inline __inline__ __inline; do
11426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h.  */
11428#ifndef __cplusplus
11429typedef int foo_t;
11430static $ac_kw foo_t static_foo () {return 0; }
11431$ac_kw foo_t foo () {return 0; }
11432#endif
11433
11434_ACEOF
11435if ac_fn_c_try_compile "$LINENO"; then :
11436  ac_cv_c_inline=$ac_kw
11437fi
11438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439  test "$ac_cv_c_inline" != no && break
11440done
11441
11442fi
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11444$as_echo "$ac_cv_c_inline" >&6; }
11445
11446case $ac_cv_c_inline in
11447  inline | yes) ;;
11448  *)
11449    case $ac_cv_c_inline in
11450      no) ac_val=;;
11451      *) ac_val=$ac_cv_c_inline;;
11452    esac
11453    cat >>confdefs.h <<_ACEOF
11454#ifndef __cplusplus
11455#define inline $ac_val
11456#endif
11457_ACEOF
11458    ;;
11459esac
11460
11461
11462
11463cat >>confdefs.h <<_ACEOF
11464#define CONFIGURE_ARGS "$ac_configure_args"
11465_ACEOF
11466
11467
11468# Check for various flavors of varargs macros
11469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
11470$as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
11471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h.  */
11473
11474            int a(int, int, int);
11475#           define call_a(...) a(1,__VA_ARGS__)
11476
11477int
11478main ()
11479{
11480 call_a(2,3);
11481  ;
11482  return 0;
11483}
11484
11485_ACEOF
11486if ac_fn_c_try_compile "$LINENO"; then :
11487
11488        # action if-found
11489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11490$as_echo "yes" >&6; }
11491
11492$as_echo "#define HAVE_ISO_VARARGS 1" >>confdefs.h
11493
11494
11495else
11496
11497        # action if-not-found
11498        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500
11501fi
11502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503
11504#---------------------------------------------------------
11505#   Libc features
11506#
11507for ac_header in string.h
11508do :
11509  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
11510if test "x$ac_cv_header_string_h" = xyes; then :
11511  cat >>confdefs.h <<_ACEOF
11512#define HAVE_STRING_H 1
11513_ACEOF
11514
11515fi
11516
11517done
11518
11519for ac_header in math.h
11520do :
11521  ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
11522if test "x$ac_cv_header_math_h" = xyes; then :
11523  cat >>confdefs.h <<_ACEOF
11524#define HAVE_MATH_H 1
11525_ACEOF
11526
11527fi
11528
11529done
11530
11531for ac_header in sys/time.h
11532do :
11533  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11534if test "x$ac_cv_header_sys_time_h" = xyes; then :
11535  cat >>confdefs.h <<_ACEOF
11536#define HAVE_SYS_TIME_H 1
11537_ACEOF
11538
11539fi
11540
11541done
11542
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11544$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11545if ${ac_cv_header_time+:} false; then :
11546  $as_echo_n "(cached) " >&6
11547else
11548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549/* end confdefs.h.  */
11550#include <sys/types.h>
11551#include <sys/time.h>
11552#include <time.h>
11553
11554int
11555main ()
11556{
11557if ((struct tm *) 0)
11558return 0;
11559  ;
11560  return 0;
11561}
11562_ACEOF
11563if ac_fn_c_try_compile "$LINENO"; then :
11564  ac_cv_header_time=yes
11565else
11566  ac_cv_header_time=no
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11571$as_echo "$ac_cv_header_time" >&6; }
11572if test $ac_cv_header_time = yes; then
11573
11574$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11575
11576fi
11577
11578for ac_func in strlcpy
11579do :
11580  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11581if test "x$ac_cv_func_strlcpy" = xyes; then :
11582  cat >>confdefs.h <<_ACEOF
11583#define HAVE_STRLCPY 1
11584_ACEOF
11585
11586fi
11587done
11588
11589for ac_func in strsep
11590do :
11591  ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
11592if test "x$ac_cv_func_strsep" = xyes; then :
11593  cat >>confdefs.h <<_ACEOF
11594#define HAVE_STRSEP 1
11595_ACEOF
11596
11597fi
11598done
11599
11600for ac_func in strtok_r
11601do :
11602  ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
11603if test "x$ac_cv_func_strtok_r" = xyes; then :
11604  cat >>confdefs.h <<_ACEOF
11605#define HAVE_STRTOK_R 1
11606_ACEOF
11607
11608fi
11609done
11610
11611for ac_func in getpwnam_r
11612do :
11613  ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
11614if test "x$ac_cv_func_getpwnam_r" = xyes; then :
11615  cat >>confdefs.h <<_ACEOF
11616#define HAVE_GETPWNAM_R 1
11617_ACEOF
11618
11619fi
11620done
11621
11622for ac_func in getpwuid_r
11623do :
11624  ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
11625if test "x$ac_cv_func_getpwuid_r" = xyes; then :
11626  cat >>confdefs.h <<_ACEOF
11627#define HAVE_GETPWUID_R 1
11628_ACEOF
11629
11630fi
11631done
11632
11633for ac_func in memcpy memset
11634do :
11635  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11637if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11638  cat >>confdefs.h <<_ACEOF
11639#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11640_ACEOF
11641
11642fi
11643done
11644
11645for ac_func in localtime_r
11646do :
11647  ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
11648if test "x$ac_cv_func_localtime_r" = xyes; then :
11649  cat >>confdefs.h <<_ACEOF
11650#define HAVE_LOCALTIME_R 1
11651_ACEOF
11652
11653fi
11654done
11655
11656
11657ds_includes_arpa_inet="\
11658/* includes start */
11659#ifdef HAVE_SYS_TYPES_H
11660#  include <sys/types.h>
11661#endif
11662#ifdef HAVE_SYS_SOCKET_H
11663#  include <sys/socket.h>
11664#endif
11665#ifdef HAVE_NETINET_IN_H
11666#  include <netinet/in.h>
11667#endif
11668#ifdef HAVE_ARPA_INET_H
11669#  include <arpa/inet.h>
11670#endif
11671/* includes end */"
11672  for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
11673do :
11674  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11675ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ds_includes_arpa_inet
11676"
11677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11678  cat >>confdefs.h <<_ACEOF
11679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11680_ACEOF
11681
11682fi
11683
11684done
11685
11686
11687
11688    #
11689  test_prototyped_inet_ntoa_r="unknown"
11690  test_compiles_inet_ntoa_r="unknown"
11691  test_number_of_arguments_inet_ntoa_r="unknown"
11692  #
11693  for ac_func in inet_ntoa_r
11694do :
11695  ac_fn_c_check_func "$LINENO" "inet_ntoa_r" "ac_cv_func_inet_ntoa_r"
11696if test "x$ac_cv_func_inet_ntoa_r" = xyes; then :
11697  cat >>confdefs.h <<_ACEOF
11698#define HAVE_INET_NTOA_R 1
11699_ACEOF
11700
11701fi
11702done
11703
11704  #
11705  if test "$ac_cv_func_inet_ntoa_r" = "yes"; then
11706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
11707$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
11708    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709/* end confdefs.h.  */
11710
11711      $ds_includes_arpa_inet
11712
11713_ACEOF
11714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11715  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
11716
11717      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11718$as_echo "yes" >&6; }
11719      test_prototyped_inet_ntoa_r="yes"
11720
11721else
11722
11723      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725      test_prototyped_inet_ntoa_r="no"
11726
11727fi
11728rm -f conftest*
11729
11730  fi
11731  #
11732  if test "$test_prototyped_inet_ntoa_r" = "yes"; then
11733    if test "$test_number_of_arguments_inet_ntoa_r" = "unknown"; then
11734      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
11735$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
11736      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737/* end confdefs.h.  */
11738
11739
11740          $ds_includes_arpa_inet
11741
11742int
11743main ()
11744{
11745
11746          struct in_addr addr;
11747          if(0 != inet_ntoa_r(addr, 0))
11748            return 1;
11749
11750  ;
11751  return 0;
11752}
11753
11754_ACEOF
11755if ac_fn_c_try_compile "$LINENO"; then :
11756
11757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758$as_echo "yes" >&6; }
11759        test_compiles_inet_ntoa_r="yes"
11760        test_number_of_arguments_inet_ntoa_r="2"
11761
11762else
11763
11764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
11766        test_compiles_inet_ntoa_r="no"
11767
11768fi
11769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770    fi
11771    if test "$test_number_of_arguments_inet_ntoa_r" = "unknown"; then
11772      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
11773$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
11774      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775/* end confdefs.h.  */
11776
11777
11778          $ds_includes_arpa_inet
11779
11780int
11781main ()
11782{
11783
11784          struct in_addr addr;
11785          if(0 != inet_ntoa_r(addr, 0, 0))
11786            return 1;
11787
11788  ;
11789  return 0;
11790}
11791
11792_ACEOF
11793if ac_fn_c_try_compile "$LINENO"; then :
11794
11795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796$as_echo "yes" >&6; }
11797        test_compiles_inet_ntoa_r="yes"
11798        test_number_of_arguments_inet_ntoa_r="3"
11799
11800else
11801
11802        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803$as_echo "no" >&6; }
11804        test_compiles_inet_ntoa_r="no"
11805
11806fi
11807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11808    fi
11809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
11810$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
11811    if test "$test_compiles_inet_ntoa_r" = "yes"; then
11812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11813$as_echo "yes" >&6; }
11814    else
11815      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
11817    fi
11818  fi
11819  #
11820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
11821$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
11822  if test "$test_prototyped_inet_ntoa_r" = "yes" &&
11823     test "$test_compiles_inet_ntoa_r" = "yes"; then
11824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11825$as_echo "yes" >&6; }
11826
11827cat >>confdefs.h <<_ACEOF
11828#define HAVE_INET_NTOA_R 1
11829_ACEOF
11830
11831            #
11832    if test "$test_number_of_arguments_inet_ntoa_r" -eq "2"; then
11833
11834$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
11835
11836    elif test "$test_number_of_arguments_inet_ntoa_r" -eq "3"; then
11837
11838$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
11839
11840    fi
11841    #
11842    ac_cv_func_inet_ntoa_r="yes"
11843  else
11844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
11846    ac_cv_func_inet_ntoa_r="no"
11847  fi
11848
11849for ac_func in strcasestr
11850do :
11851  ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11852if test "x$ac_cv_func_strcasestr" = xyes; then :
11853  cat >>confdefs.h <<_ACEOF
11854#define HAVE_STRCASESTR 1
11855_ACEOF
11856
11857fi
11858done
11859
11860
11861LIBS=
11862
11863#   Daemon support
11864#
11865# Check whether --enable-daemon was given.
11866if test "${enable_daemon+set}" = set; then :
11867  enableval=$enable_daemon;
11868fi
11869
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable daemon mode" >&5
11871$as_echo_n "checking whether to enable daemon mode... " >&6; }
11872case x"$enable_daemon" in
11873    xyes)   # daemon output enabled explicity
11874            ;;
11875    xno)    # daemon output disabled explicity
11876            ;;
11877    x)      # daemon output disabled by default
11878            enable_daemon=no
11879            ;;
11880    *)      as_fn_error $? "unexpected value $enable_daemon for --{enable,disable}-daemon configure option" "$LINENO" 5
11881            ;;
11882esac
11883if test x"$enable_daemon" != xyes
11884then
11885    enable_daemon=no
11886else
11887    enable_daemon=yes    # overkill, but convenient
11888
11889$as_echo "#define DAEMON 1" >>confdefs.h
11890
11891fi
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_daemon" >&5
11893$as_echo "$enable_daemon" >&6; }
11894
11895#
11896#   Determine how to compile with pthreads support
11897#
11898if test x"$enable_daemon" = xyes
11899then
11900
11901ds_pthreads_save_CPPFLAGS="$CPPFLAGS"
11902ds_pthreads_save_LDFLAGS="$LDFLAGS"
11903ds_pthreads_save_LIBS="$LIBS"
11904
11905ds_pthreads_CPPFLAGS=""
11906ds_pthreads_LDFLAGS=""
11907ds_pthreads_LIBS=""
11908
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how you like your pthreads" >&5
11910$as_echo_n "checking how you like your pthreads... " >&6; }
11911pthreads_success="no"
11912
11913LIBS="$ds_pthreads_save_LIBS -pthread"
11914
11915if test "$cross_compiling" = yes; then :
11916  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11918as_fn_error $? "cannot run test program while cross compiling
11919See \`config.log' for more details" "$LINENO" 5; }
11920else
11921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h.  */
11923
11924 #include <pthread.h>
11925 #include <stdlib.h>
11926
11927 int main() {
11928
11929   pthread_mutex_t m;
11930   pthread_mutex_init(&m, NULL);
11931   pthread_exit(0);
11932   exit(EXIT_FAILURE);
11933 }
11934
11935
11936_ACEOF
11937if ac_fn_c_try_run "$LINENO"; then :
11938
11939    pthreads_success="yes"
11940    ds_pthreads_LIBS="-pthread"
11941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -pthread" >&5
11942$as_echo "-pthread" >&6; }
11943
11944fi
11945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11946  conftest.$ac_objext conftest.beam conftest.$ac_ext
11947fi
11948
11949
11950if test x"$pthreads_success" = xno
11951then
11952  LIBS="$ds_pthreads_save_LIBS -lpthread"
11953
11954if test "$cross_compiling" = yes; then :
11955  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11957as_fn_error $? "cannot run test program while cross compiling
11958See \`config.log' for more details" "$LINENO" 5; }
11959else
11960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961/* end confdefs.h.  */
11962
11963  #include <pthread.h>
11964  #include <stdlib.h>
11965
11966  int main() {
11967    pthread_mutex_t m;
11968    pthread_mutex_init(&m, NULL);
11969    pthread_exit(0);
11970    exit(EXIT_FAILURE);
11971  }
11972
11973
11974_ACEOF
11975if ac_fn_c_try_run "$LINENO"; then :
11976
11977    pthreads_success="yes"
11978    ds_pthreads_LIBS="-lpthread"
11979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lpthread" >&5
11980$as_echo "-lpthread" >&6; }
11981
11982fi
11983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11984  conftest.$ac_objext conftest.beam conftest.$ac_ext
11985fi
11986
11987fi
11988
11989if test x"$pthreads_success" = xno
11990then
11991  LIBS="$ds_pthreads_save_LIBS -lpthread -mt"
11992
11993if test "$cross_compiling" = yes; then :
11994  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11996as_fn_error $? "cannot run test program while cross compiling
11997See \`config.log' for more details" "$LINENO" 5; }
11998else
11999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000/* end confdefs.h.  */
12001
12002  #include <pthread.h>
12003  #include <stdlib.h>
12004
12005  int main() {
12006    pthread_mutex_t m;
12007    pthread_mutex_init(&m, NULL);
12008    pthread_exit(0);
12009    exit(EXIT_FAILURE);
12010  }
12011
12012
12013_ACEOF
12014if ac_fn_c_try_run "$LINENO"; then :
12015
12016    pthreads_success="yes"
12017    ds_pthreads_LIBS="-lpthread -mt"
12018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lpthread -mt" >&5
12019$as_echo "-lpthread -mt" >&6; }
12020
12021fi
12022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12023  conftest.$ac_objext conftest.beam conftest.$ac_ext
12024fi
12025
12026fi
12027
12028if test x"$pthreads_success" = xno
12029then
12030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12031$as_echo "unknown" >&6; }
12032  as_fn_error $? "Unable to determine how to compile with pthreads" "$LINENO" 5
12033fi
12034
12035CPPFLAGS="$ds_pthreads_save_CPPFLAGS"
12036LDFLAGS="$ds_pthreads_save_LDFLAGS"
12037LIBS="$ds_pthreads_save_LIBS"
12038
12039if test x"$pthreads_success" = xyes
12040then
12041    PT_CPPFLAGS="$ds_pthreads_CPPFLAGS"
12042    PT_LDFLAGS="$ds_pthreads_LDFLAGS"
12043    PT_LIBS="$ds_pthreads_LIBS"
12044    success=yes
12045    :
12046else
12047    success=no
12048    :
12049fi
12050
12051  if test x"$success" != xyes
12052  then
12053    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12055as_fn_error $? "unable to determine how to compile with pthreads
12056See \`config.log' for more details" "$LINENO" 5; }
12057  fi
12058fi
12059
12060CPPFLAGS="$CPPFLAGS $PT_CPPFLAGS"
12061LDFLAGS="$LDFLAGS $PT_LDFLAGS"
12062LIBS="$LIBS $PT_LIBS"
12063
12064#
12065#   Network related libraries on Solaris is another game...
12066#   Needed for dspam_ngstat and mysql driver.
12067#
12068for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
12069do :
12070  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12071ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12073  cat >>confdefs.h <<_ACEOF
12074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12075_ACEOF
12076
12077fi
12078
12079done
12080
12081
12082
12083
12084
12085
12086
12087    ds_netlibs_save_LIBS="$LIBS"
12088    LIBS=''
12089    ds_netlibs_success=yes
12090
12091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12092$as_echo_n "checking for library containing inet_ntoa... " >&6; }
12093if ${ac_cv_search_inet_ntoa+:} false; then :
12094  $as_echo_n "(cached) " >&6
12095else
12096  ac_func_search_save_LIBS=$LIBS
12097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h.  */
12099
12100/* Override any GCC internal prototype to avoid an error.
12101   Use char because int might match the return type of a GCC
12102   builtin and then its argument prototype would still apply.  */
12103#ifdef __cplusplus
12104extern "C"
12105#endif
12106char inet_ntoa ();
12107int
12108main ()
12109{
12110return inet_ntoa ();
12111  ;
12112  return 0;
12113}
12114_ACEOF
12115for ac_lib in '' nsl; do
12116  if test -z "$ac_lib"; then
12117    ac_res="none required"
12118  else
12119    ac_res=-l$ac_lib
12120    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12121  fi
12122  if ac_fn_c_try_link "$LINENO"; then :
12123  ac_cv_search_inet_ntoa=$ac_res
12124fi
12125rm -f core conftest.err conftest.$ac_objext \
12126    conftest$ac_exeext
12127  if ${ac_cv_search_inet_ntoa+:} false; then :
12128  break
12129fi
12130done
12131if ${ac_cv_search_inet_ntoa+:} false; then :
12132
12133else
12134  ac_cv_search_inet_ntoa=no
12135fi
12136rm conftest.$ac_ext
12137LIBS=$ac_func_search_save_LIBS
12138fi
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12140$as_echo "$ac_cv_search_inet_ntoa" >&6; }
12141ac_res=$ac_cv_search_inet_ntoa
12142if test "$ac_res" != no; then :
12143  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12144  ds_netlibs_success=yes
12145else
12146  ds_netlibs_success=no
12147fi
12148
12149    if test x"$ds_netlibs_success" = xyes
12150    then
12151        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12152$as_echo_n "checking for library containing socket... " >&6; }
12153if ${ac_cv_search_socket+:} false; then :
12154  $as_echo_n "(cached) " >&6
12155else
12156  ac_func_search_save_LIBS=$LIBS
12157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158/* end confdefs.h.  */
12159
12160/* Override any GCC internal prototype to avoid an error.
12161   Use char because int might match the return type of a GCC
12162   builtin and then its argument prototype would still apply.  */
12163#ifdef __cplusplus
12164extern "C"
12165#endif
12166char socket ();
12167int
12168main ()
12169{
12170return socket ();
12171  ;
12172  return 0;
12173}
12174_ACEOF
12175for ac_lib in '' socket; do
12176  if test -z "$ac_lib"; then
12177    ac_res="none required"
12178  else
12179    ac_res=-l$ac_lib
12180    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12181  fi
12182  if ac_fn_c_try_link "$LINENO"; then :
12183  ac_cv_search_socket=$ac_res
12184fi
12185rm -f core conftest.err conftest.$ac_objext \
12186    conftest$ac_exeext
12187  if ${ac_cv_search_socket+:} false; then :
12188  break
12189fi
12190done
12191if ${ac_cv_search_socket+:} false; then :
12192
12193else
12194  ac_cv_search_socket=no
12195fi
12196rm conftest.$ac_ext
12197LIBS=$ac_func_search_save_LIBS
12198fi
12199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12200$as_echo "$ac_cv_search_socket" >&6; }
12201ac_res=$ac_cv_search_socket
12202if test "$ac_res" != no; then :
12203  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12204  ds_netlibs_success=yes
12205else
12206  ds_netlibs_success=no
12207fi
12208
12209    fi
12210
12211    ds_netlibs_netlibs="$LIBS"
12212    LIBS="$ds_netlibs_save_LIBS"
12213
12214
12215
12216
12217
12218    if test x"$ds_netlibs_success" = xyes
12219    then
12220        NETLIBS="$ds_netlibs_netlibs"
12221        success=yes
12222    else
12223        success=no
12224    fi
12225
12226if test x"$success" != xyes
12227then
12228    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12230as_fn_error $? "required libraries are not found or not usable
12231See \`config.log' for more details" "$LINENO" 5; }
12232fi
12233
12234
12235#
12236#   Dynamic linker libraries (usually -ldl)
12237#
12238
12239
12240
12241
12242
12243    ds_dllibs_save_LIBS="$LIBS"
12244    LIBS=''
12245    ds_dllibs_success=yes
12246
12247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12248$as_echo_n "checking for library containing dlopen... " >&6; }
12249if ${ac_cv_search_dlopen+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  ac_func_search_save_LIBS=$LIBS
12253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254/* end confdefs.h.  */
12255
12256/* Override any GCC internal prototype to avoid an error.
12257   Use char because int might match the return type of a GCC
12258   builtin and then its argument prototype would still apply.  */
12259#ifdef __cplusplus
12260extern "C"
12261#endif
12262char dlopen ();
12263int
12264main ()
12265{
12266return dlopen ();
12267  ;
12268  return 0;
12269}
12270_ACEOF
12271for ac_lib in '' dl; do
12272  if test -z "$ac_lib"; then
12273    ac_res="none required"
12274  else
12275    ac_res=-l$ac_lib
12276    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12277  fi
12278  if ac_fn_c_try_link "$LINENO"; then :
12279  ac_cv_search_dlopen=$ac_res
12280fi
12281rm -f core conftest.err conftest.$ac_objext \
12282    conftest$ac_exeext
12283  if ${ac_cv_search_dlopen+:} false; then :
12284  break
12285fi
12286done
12287if ${ac_cv_search_dlopen+:} false; then :
12288
12289else
12290  ac_cv_search_dlopen=no
12291fi
12292rm conftest.$ac_ext
12293LIBS=$ac_func_search_save_LIBS
12294fi
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12296$as_echo "$ac_cv_search_dlopen" >&6; }
12297ac_res=$ac_cv_search_dlopen
12298if test "$ac_res" != no; then :
12299  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12300  ds_dllibs_success=yes
12301else
12302  ds_dllibs_success=no
12303fi
12304
12305
12306    ds_dllibs_dllibs="$LIBS"
12307    LIBS="$ds_dllibs_save_LIBS"
12308
12309
12310
12311
12312
12313    if test x"$ds_dllibs_success" = xyes
12314    then
12315        DLLIBS="$ds_dllibs_dllibs"
12316        success=yes
12317    else
12318        success=no
12319    fi
12320
12321if test x"$success" != xyes
12322then
12323    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12325as_fn_error $? "required libraries are not found or not usable
12326See \`config.log' for more details" "$LINENO" 5; }
12327fi
12328
12329
12330#---------------------------------------------------------
12331#   DSPAM features
12332#
12333
12334#
12335#  SPLIT_CONFIG -- enable split configuration file support
12336#
12337
12338
12339  # Check whether --enable-split-configuration was given.
12340if test "${enable_split_configuration+set}" = set; then :
12341  enableval=$enable_split_configuration;
12342fi
12343
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable split configuration file support" >&5
12345$as_echo_n "checking whether to enable split configuration file support... " >&6; }
12346  case x"$enable_split_configuration" in
12347      xyes)   # split configuration file enabled explicity
12348              ;;
12349      xno)    # split configuration file disabled explicity
12350              ;;
12351      x)      # split configuration file disabled by default
12352              enable_split_configuration=no
12353              ;;
12354      *)      as_fn_error $? "unexpected value $enable_split_configuration for --{enable,disable}-split-configuration configure option" "$LINENO" 5
12355              ;;
12356  esac
12357  if test x"$enable_split_configuration" != xyes
12358  then
12359      enable_split_configuration=no
12360  else
12361      enable_split_configuration=yes    # overkill, but convenient
12362
12363$as_echo "#define SPLIT_CONFIG 1" >>confdefs.h
12364
12365  fi
12366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_split_configuration" >&5
12367$as_echo "$enable_split_configuration" >&6; }
12368
12369
12370#
12371#  EXT_LOOKUP -- enable external user lookup
12372#
12373
12374
12375  # Check whether --enable-external-lookup was given.
12376if test "${enable_external_lookup+set}" = set; then :
12377  enableval=$enable_external_lookup;
12378fi
12379
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external lookup support" >&5
12381$as_echo_n "checking whether to enable external lookup support... " >&6; }
12382  case x"$enable_external_lookup" in
12383      xyes)   # external lookup enabled explicity
12384              ;;
12385      xno)    # external lookup disabled explicity
12386              ;;
12387      x)      # external lookup disabled by default
12388              enable_external_lookup=no
12389              ;;
12390      *)      as_fn_error $? "unexpected value $enable_external_lookup for --{enable,disable}-external-lookup configure option" "$LINENO" 5
12391              ;;
12392  esac
12393  if test x"$enable_external_lookup" != xyes
12394  then
12395      enable_external_lookup=no
12396      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_lookup" >&5
12397$as_echo "$enable_external_lookup" >&6; }
12398  else
12399      enable_external_lookup=yes    # overkill, but convenient
12400      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_lookup" >&5
12401$as_echo "$enable_external_lookup" >&6; }
12402
12403$as_echo "#define EXT_LOOKUP 1" >>confdefs.h
12404
12405
12406      # Check for LDAP and LDAP version
12407      for ac_header in lber.h ldap.h
12408do :
12409  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12410ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12412  cat >>confdefs.h <<_ACEOF
12413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12414_ACEOF
12415
12416fi
12417
12418done
12419
12420      if test x"$ac_cv_header_ldap_h" = "xyes" -a x"$ac_cv_header_lber_h" = "xyes"
12421          then
12422          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5
12423$as_echo_n "checking for ber_alloc in -llber... " >&6; }
12424if ${ac_cv_lib_lber_ber_alloc+:} false; then :
12425  $as_echo_n "(cached) " >&6
12426else
12427  ac_check_lib_save_LIBS=$LIBS
12428LIBS="-llber  $LIBS"
12429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430/* end confdefs.h.  */
12431
12432/* Override any GCC internal prototype to avoid an error.
12433   Use char because int might match the return type of a GCC
12434   builtin and then its argument prototype would still apply.  */
12435#ifdef __cplusplus
12436extern "C"
12437#endif
12438char ber_alloc ();
12439int
12440main ()
12441{
12442return ber_alloc ();
12443  ;
12444  return 0;
12445}
12446_ACEOF
12447if ac_fn_c_try_link "$LINENO"; then :
12448  ac_cv_lib_lber_ber_alloc=yes
12449else
12450  ac_cv_lib_lber_ber_alloc=no
12451fi
12452rm -f core conftest.err conftest.$ac_objext \
12453    conftest$ac_exeext conftest.$ac_ext
12454LIBS=$ac_check_lib_save_LIBS
12455fi
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5
12457$as_echo "$ac_cv_lib_lber_ber_alloc" >&6; }
12458if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then :
12459
12460$as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
12461
12462fi
12463
12464          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
12465$as_echo_n "checking for ldap_init in -lldap... " >&6; }
12466if ${ac_cv_lib_ldap_ldap_init+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469  ac_check_lib_save_LIBS=$LIBS
12470LIBS="-lldap  $LIBS"
12471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472/* end confdefs.h.  */
12473
12474/* Override any GCC internal prototype to avoid an error.
12475   Use char because int might match the return type of a GCC
12476   builtin and then its argument prototype would still apply.  */
12477#ifdef __cplusplus
12478extern "C"
12479#endif
12480char ldap_init ();
12481int
12482main ()
12483{
12484return ldap_init ();
12485  ;
12486  return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_link "$LINENO"; then :
12490  ac_cv_lib_ldap_ldap_init=yes
12491else
12492  ac_cv_lib_ldap_ldap_init=no
12493fi
12494rm -f core conftest.err conftest.$ac_objext \
12495    conftest$ac_exeext conftest.$ac_ext
12496LIBS=$ac_check_lib_save_LIBS
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
12499$as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
12500if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
12501
12502$as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
12503
12504fi
12505
12506      fi
12507      if test x"$ac_cv_lib_lber_ber_alloc" = "xyes" -a x"$ac_cv_lib_ldap_ldap_init" = "xyes"
12508      then
12509          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP version >= 2.2.0" >&5
12510$as_echo_n "checking for OpenLDAP version >= 2.2.0... " >&6; }
12511          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h.  */
12513
12514
12515              #include <lber.h>
12516              #include <ldap.h>
12517
12518int
12519main ()
12520{
12521
12522              LDAPAPIInfo info;
12523              #ifdef LDAP_API_INFO_VERSION
12524              info.ldapai_info_version = LDAP_API_INFO_VERSION;
12525              #else
12526              info.ldapai_info_version = 1;
12527              #endif
12528              if(ldap_get_option(NULL, LDAP_OPT_API_INFO, &info) != LDAP_SUCCESS)
12529                return 1;
12530              if(info.ldapai_vendor_version != LDAP_VENDOR_VERSION || LDAP_VENDOR_VERSION < 20204)
12531                return 1;
12532              return 0;
12533
12534  ;
12535  return 0;
12536}
12537
12538_ACEOF
12539if ac_fn_c_try_compile "$LINENO"; then :
12540
12541            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12542$as_echo "yes" >&6; }
12543            have_ldap_version=yes
12544
12545else
12546
12547            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548$as_echo "no" >&6; }
12549            have_ldap_version=no
12550
12551fi
12552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553      fi
12554      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LDAP support in external lookup" >&5
12555$as_echo_n "checking whether to enable LDAP support in external lookup... " >&6; }
12556      if test x"$have_ldap_version" != "xyes" ; then
12557          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558$as_echo "no" >&6; }
12559      else
12560          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12561$as_echo "yes" >&6; }
12562          external_lookup_libs="-lldap -llber"
12563
12564
12565$as_echo "#define USE_LDAP 1" >>confdefs.h
12566
12567      fi
12568
12569  fi
12570
12571
12572#
12573#   DSPAM_HOME -- directory where pre-user dictionaries, signatures,
12574#              etc. should be stored.
12575#
12576#   This variable is AC_SUBST'ed, not AC_DEFINE'd because used not only
12577#   for C-code, but for Makefile rules also.
12578#
12579### dspam_home='$(prefix)/var/dspam'
12580dspam_home='$(prefix)/var/dspam'
12581
12582# Check whether --with-dspam_home was given.
12583if test "${with_dspam_home+set}" = set; then :
12584  withval=$with_dspam_home;  dspam_home="$withval"
12585fi
12586
12587
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dspam_home" >&5
12589$as_echo_n "checking for dspam_home... " >&6; }
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dspam_home" >&5
12591$as_echo "$dspam_home" >&6; }
12592
12593if test -d /var/dspam
12594then
12595  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the default location for dspam_home has changed. please be sure to update your configuration or filesystem to reflect this." >&5
12596$as_echo "$as_me: WARNING: the default location for dspam_home has changed. please be sure to update your configuration or filesystem to reflect this." >&2;}
12597fi
12598
12599# DSPAM_HOME ownership
12600
12601# Check whether --with-dspam_home_mode was given.
12602if test "${with_dspam_home_mode+set}" = set; then :
12603  withval=$with_dspam_home_mode;  dspam_home_mode="$withval"
12604else
12605   dspam_home_mode='770'
12606
12607fi
12608
12609
12610# Check whether --with-dspam_home_owner was given.
12611if test "${with_dspam_home_owner+set}" = set; then :
12612  withval=$with_dspam_home_owner;  dspam_home_owner="$withval"
12613else
12614   dspam_home_owner='root'
12615
12616fi
12617
12618
12619# Check whether --with-dspam_home_group was given.
12620if test "${with_dspam_home_group+set}" = set; then :
12621  withval=$with_dspam_home_group;  dspam_home_group="$withval"
12622else
12623   dspam_home_group='mail'
12624
12625fi
12626
12627
12628
12629
12630
12631
12632# Check whether --with-logfile was given.
12633if test "${with_logfile+set}" = set; then :
12634  withval=$with_logfile;
12635cat >>confdefs.h <<_ACEOF
12636#define LOGFILE "$withval"
12637_ACEOF
12638
12639else
12640   logfile=''
12641
12642fi
12643
12644
12645# dspam binary ownership
12646case x"$host" in
12647    *-freebsd*)     default_dspam_mode=4510;;
12648    *)              default_dspam_mode=2510;;
12649esac
12650
12651case "$host" in
12652    *-linux*)       LDFLAGS="$LDFLAGS -rdynamic";;
12653    *-freebsd*)     LDFLAGS="$LDFLAGS -rdynamic";;
12654esac
12655
12656
12657# Check whether --with-dspam_mode was given.
12658if test "${with_dspam_mode+set}" = set; then :
12659  withval=$with_dspam_mode;  dspam_mode="$withval"
12660else
12661   dspam_mode="$default_dspam_mode"
12662
12663fi
12664
12665
12666# Check whether --with-dspam_owner was given.
12667if test "${with_dspam_owner+set}" = set; then :
12668  withval=$with_dspam_owner;  dspam_owner="$withval"
12669else
12670   dspam_owner='root'
12671
12672fi
12673
12674
12675# Check whether --with-dspam_group was given.
12676if test "${with_dspam_group+set}" = set; then :
12677  withval=$with_dspam_group;  dspam_group="$withval"
12678else
12679   dspam_group='mail'
12680
12681fi
12682
12683
12684
12685
12686
12687#
12688#   Local delivery Agent
12689#
12690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which delivery agent to activate in dspam.conf" >&5
12691$as_echo_n "checking which delivery agent to activate in dspam.conf... " >&6; }
12692default_delivery_agent="/usr/bin/procmail"
12693case "$host" in
12694    *-linux*)       default_delivery_agent="/usr/bin/procmail";;
12695    *-freebsd*)     default_delivery_agent="/usr/libexec/mail.local";;
12696    *-solaris2*)    default_delivery_agent="/usr/bin/mail";;
12697    *-cygwin*)      default_delivery_agent="/usr/bin/procmail";;
12698esac
12699
12700# Check whether --with-delivery_agent was given.
12701if test "${with_delivery_agent+set}" = set; then :
12702  withval=$with_delivery_agent;  delivery_agent="$withval"
12703else
12704   delivery_agent="$default_delivery_agent"
12705
12706fi
12707
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $delivery_agent" >&5
12709$as_echo "$delivery_agent" >&6; }
12710
12711
12712#
12713#   Trusted User Security
12714#
12715# Check whether --enable-trusted_user_security was given.
12716if test "${enable_trusted_user_security+set}" = set; then :
12717  enableval=$enable_trusted_user_security;
12718fi
12719
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trusted user security" >&5
12721$as_echo_n "checking whether to enable trusted user security... " >&6; }
12722case x"$enable_trusted_user_security" in
12723    xyes)   # trusted user security enabled explicity
12724            ;;
12725    xno)    # trusted user security disabled explicity
12726            enable_trusted_user_security=no
12727            ;;
12728    x)      # trusted user security enabled by default
12729            enable_trusted_user_security=yes
12730            ;;
12731    *)      as_fn_error $? "unexpected value $enable_trusted_user_security for --{enable,disable}-trusted-user-security configure option" "$LINENO" 5
12732            ;;
12733esac
12734if test x"$enable_trusted_user_security" != xyes
12735then
12736    enable_trusted_user_security=no
12737else
12738    enable_trusted_user_security=yes    # overkill, but convenient
12739
12740$as_echo "#define TRUSTED_USER_SECURITY 1" >>confdefs.h
12741
12742fi
12743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_trusted_user_security" >&5
12744$as_echo "$enable_trusted_user_security" >&6; }
12745
12746#
12747#   Clam/AV Support
12748#
12749# Check whether --enable-clamav was given.
12750if test "${enable_clamav+set}" = set; then :
12751  enableval=$enable_clamav;
12752fi
12753
12754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable clamav" >&5
12755$as_echo_n "checking whether to enable clamav... " >&6; }
12756case x"$enable_clamav" in
12757    xyes)   # clamav output enabled explicity
12758            ;;
12759    xno)    # clamav output disabled explicity
12760            ;;
12761    x)      # clamav output disabled by default
12762            enable_clamav=no
12763            ;;
12764    *)      as_fn_error $? "unexpected value $enable_clamav for --{enable,disable}-clamav configure option" "$LINENO" 5
12765            ;;
12766esac
12767if test x"$enable_clamav" != xyes
12768then
12769    enable_clamav=no
12770else
12771    enable_clamav=yes    # overkill, but convenient
12772
12773$as_echo "#define CLAMAV 1" >>confdefs.h
12774
12775fi
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_clamav" >&5
12777$as_echo "$enable_clamav" >&6; }
12778
12779#
12780#   Debug support
12781#
12782# Check whether --enable-debug was given.
12783if test "${enable_debug+set}" = set; then :
12784  enableval=$enable_debug;
12785fi
12786
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug output" >&5
12788$as_echo_n "checking whether to enable debug output... " >&6; }
12789case x"$enable_debug" in
12790    xyes)   # debug output enabled explicity
12791            ;;
12792    xno)    # debug output disabled explicity
12793            ;;
12794    x)      # debug output disabled by default
12795            enable_debug=no
12796            ;;
12797    *)      as_fn_error $? "unexpected value $enable_debug for --{enable,disable}-debug configure option" "$LINENO" 5
12798            ;;
12799esac
12800if test x"$enable_debug" != xyes
12801then
12802    enable_debug=no
12803else
12804    enable_debug=yes    # overkill, but convenient
12805
12806$as_echo "#define DEBUG 1" >>confdefs.h
12807
12808fi
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
12810$as_echo "$enable_debug" >&6; }
12811
12812#
12813#   Enable syslog
12814#
12815# Check whether --enable-syslog was given.
12816if test "${enable_syslog+set}" = set; then :
12817  enableval=$enable_syslog;
12818fi
12819
12820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable syslog output" >&5
12821$as_echo_n "checking whether to enable syslog output... " >&6; }
12822case x"$enable_syslog" in
12823    xyes)   # enabled explicity
12824            ;;
12825    xno)    # disabled explicity
12826            ;;
12827    x)      # enabled by default
12828            enable_syslog=yes
12829            ;;
12830    *)      as_fn_error $? "unexpected value $enable_syslog for --{enable,disable}-syslog configure option" "$LINENO" 5
12831            ;;
12832esac
12833if test x"$enable_syslog" != xyes
12834then
12835    enable_syslog=no
12836else
12837    enable_syslog=yes    # overkill, but convenient
12838
12839$as_echo "#define USE_SYSLOG 1" >>confdefs.h
12840
12841fi
12842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5
12843$as_echo "$enable_syslog" >&6; }
12844
12845#
12846#   BNR Debug
12847#
12848# Check whether --enable-bnr-debug was given.
12849if test "${enable_bnr_debug+set}" = set; then :
12850  enableval=$enable_bnr_debug;
12851fi
12852
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug output for BNR" >&5
12854$as_echo_n "checking whether to enable debug output for BNR... " >&6; }
12855case x"$enable_bnr_debug" in
12856    xyes)   # enabled explicity
12857            ;;
12858    xno)    # disabled explicity
12859            ;;
12860    x)      # disabled by default
12861            enable_bnr_debug=no
12862            ;;
12863    *)      as_fn_error $? "unexpected value $enable_bnr_debug for --{enable,disable}-bnr-debug configure option" "$LINENO" 5
12864            ;;
12865esac
12866if test x"$enable_bnr_debug" != xyes
12867then
12868    enable_bnr_debug=no
12869else
12870    enable_bnr_debug=yes    # overkill, but convenient
12871
12872$as_echo "#define LIBBNR_DEBUG 1" >>confdefs.h
12873
12874fi
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bnr_debug" >&5
12876$as_echo "$enable_bnr_debug" >&6; }
12877
12878
12879#
12880#   Homedir support
12881#
12882# Check whether --enable-homedir was given.
12883if test "${enable_homedir+set}" = set; then :
12884  enableval=$enable_homedir;
12885fi
12886
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable home directory support" >&5
12888$as_echo_n "checking whether to enable home directory support... " >&6; }
12889case x"$enable_homedir" in
12890    xyes)   # homedir enabled explicity
12891            ;;
12892    xno)    # homedir disabled explicity
12893            ;;
12894    x)      # homedir disabled by default
12895            enable_homedir=no
12896            ;;
12897    *)      as_fn_error $? "unexpected value $enable_homedir for --{enable,disable}-homedir configure option" "$LINENO" 5
12898            ;;
12899esac
12900if test x"$enable_homedir" != xyes
12901then
12902    enable_homedir=no
12903else
12904    enable_homedir=yes    # overkill, but convenient
12905
12906$as_echo "#define HOMEDIR 1" >>confdefs.h
12907
12908fi
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_homedir" >&5
12910$as_echo "$enable_homedir" >&6; }
12911
12912#
12913#   MySQL4 Initialization
12914#
12915# Check whether --enable-mysql4-initialization was given.
12916if test "${enable_mysql4_initialization+set}" = set; then :
12917  enableval=$enable_mysql4_initialization;
12918fi
12919
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MySQL client initialization" >&5
12921$as_echo_n "checking whether to enable MySQL client initialization... " >&6; }
12922case x"$enable_mysql4_initialization" in
12923    xyes)   # enabled explicity
12924            enable_mysql4_initialization=yes
12925            ;;
12926    xno)    # disabled explicity
12927            enable_mysql4_initialization=no
12928            ;;
12929    x)      # disabled by default
12930            enable_mysql4_initialization=yes
12931            ;;
12932    *)      as_fn_error $? "unexpected value $enable_mysql4_initialization for --{enable,disable}-mysql4-initialization configure option" "$LINENO" 5
12933            ;;
12934esac
12935if test x"$enable_mysql4_initialization" != xyes
12936then
12937    enable_mysql4_initialization=no
12938else
12939    enable_mysql4_initialization=yes    # overkill, but convenient
12940
12941$as_echo "#define MYSQL4_INITIALIZATION 1" >>confdefs.h
12942
12943fi
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mysql4_initialization" >&5
12945$as_echo "$enable_mysql4_initialization" >&6; }
12946
12947#
12948#   Preferences Extension
12949#   For storage drivers with preferences extension, the driver's extension is
12950#   used instead of the built-in file-based function
12951#
12952# Check whether --enable-preferences-extension was given.
12953if test "${enable_preferences_extension+set}" = set; then :
12954  enableval=$enable_preferences_extension;
12955fi
12956
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable preferences-extension" >&5
12958$as_echo_n "checking whether to enable preferences-extension... " >&6; }
12959case x"$enable_preferences_extension" in
12960    xyes)   # enabled explicity
12961            ;;
12962    xno)    # disabled explicity
12963            ;;
12964    x)      # disabled by default
12965            enable_preferences_extension=no
12966            ;;
12967    *)      as_fn_error $? "unexpected value $enable_preferences_extension for --{enable,disable}-preferences-extension configure option" "$LINENO" 5
12968            ;;
12969esac
12970if test x"$enable_preferences_extension" != xyes
12971then
12972    enable_preferences_extension=no
12973else
12974    enable_preferences_extension=yes    # overkill, but convenient
12975
12976$as_echo "#define PREFERENCES_EXTENSION 1" >>confdefs.h
12977
12978fi
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_preferences_extension" >&5
12980$as_echo "$enable_preferences_extension" >&6; }
12981
12982#
12983#   Verbose debug output
12984#
12985# Check whether --enable-verbose-debug was given.
12986if test "${enable_verbose_debug+set}" = set; then :
12987  enableval=$enable_verbose_debug;
12988fi
12989
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose debug output" >&5
12991$as_echo_n "checking whether to enable verbose debug output... " >&6; }
12992case x"$enable_verbose_debug" in
12993    xyes)   # debug output enabled explicity
12994            ;;
12995    xno)    # debug output disabled explicity
12996            ;;
12997    x)      # debug output disabled by default
12998            enable_verbose_debug=no
12999            ;;
13000    *)      as_fn_error $? "unexpected value $enable_verbose_debug for --{enable,disable}-verbose-debug configure option" "$LINENO" 5
13001            ;;
13002esac
13003if test x"$enable_verbose_debug" != xyes
13004then
13005    enable_verbose_debug=no
13006else
13007    enable_verbose_debug=yes    # overkill, but convenient
13008
13009$as_echo "#define DEBUG 1" >>confdefs.h
13010
13011
13012$as_echo "#define VERBOSE 1" >>confdefs.h
13013
13014fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_verbose_debug" >&5
13016$as_echo "$enable_verbose_debug" >&6; }
13017
13018#
13019#   Long Usernames
13020#
13021# Check whether --enable-long-usernames was given.
13022if test "${enable_long_usernames+set}" = set; then :
13023  enableval=$enable_long_usernames;
13024fi
13025
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable long usernames" >&5
13027$as_echo_n "checking whether to enable long usernames... " >&6; }
13028case x"$enable_long_usernames" in
13029    xyes)   # debug output enabled explicity
13030            ;;
13031    xno)    # debug output disabled explicity
13032            ;;
13033    x)      # debug output disabled by default
13034            enable_long_usernames=no
13035            ;;
13036    *)      as_fn_error $? "unexpected value $enable_long_usernames for --{enable,disable}-long-usernames configure option" "$LINENO" 5
13037            ;;
13038esac
13039if test x"$enable_long_usernames" != xyes
13040then
13041    enable_long_usernames=no
13042else
13043    enable_long_usernames=yes    # overkill, but convenient
13044
13045$as_echo "#define LONG_USERNAMES 1" >>confdefs.h
13046
13047fi
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_long_usernames" >&5
13049$as_echo "$enable_long_usernames" >&6; }
13050
13051#
13052#   Large scale implementation
13053#
13054# Check whether --enable-large-scale was given.
13055if test "${enable_large_scale+set}" = set; then :
13056  enableval=$enable_large_scale;
13057fi
13058
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large scale implementation" >&5
13060$as_echo_n "checking whether to enable large scale implementation... " >&6; }
13061case x"$enable_large_scale" in
13062    xyes)   # large-scale enabled explicitly
13063            ;;
13064    xno)    # large-scale disabled explicitly
13065            ;;
13066    x)      # large-scale disabled by default
13067            enable_large_scale=no
13068            ;;
13069    *)      as_fn_error $? "unexpected value $enable_large_scale for --{enable,disable}-large-scale configure option" "$LINENO" 5
13070            ;;
13071esac
13072if test x"$enable_large_scale" != xyes
13073then
13074    enable_large_scale=no
13075else
13076    enable_large_scale=yes    # overkill, but convenient
13077
13078$as_echo "#define LARGESCALE 1" >>confdefs.h
13079
13080fi
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_large_scale" >&5
13082$as_echo "$enable_large_scale" >&6; }
13083
13084#
13085#   Domain Scale Filesystem
13086#
13087# Check whether --enable-domain-scale was given.
13088if test "${enable_domain_scale+set}" = set; then :
13089  enableval=$enable_domain_scale;
13090fi
13091
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable domain structure implementation" >&5
13093$as_echo_n "checking whether to enable domain structure implementation... " >&6; }
13094case x"$enable_domain_scale" in
13095    xyes)   # domain-scale enabled explicitly
13096            ;;
13097    xno)    # domain-scale disabled explicitly
13098            ;;
13099    x)      # domain-scale disabled by default
13100            enable_domain_scale=no
13101            ;;
13102    *)      as_fn_error $? "unexpected value $enable_domain_scale for --{enable,disable}-domain-scale configure option" "$LINENO" 5
13103            ;;
13104esac
13105if test x"$enable_domain_scale" != xyes
13106then
13107    enable_domain_scale=no
13108else
13109    enable_domain_scale=yes    # overkill, but convenient
13110
13111$as_echo "#define DOMAINSCALE 1" >>confdefs.h
13112
13113fi
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_domain_scale" >&5
13115$as_echo "$enable_domain_scale" >&6; }
13116
13117if test x"$enable_domain_scale$enable_large_scale" = xyesyes
13118then
13119  as_fn_error $? "you may not have domain-scale and large-scale implemented simultaneously" "$LINENO" 5
13120elif test x"$enable_domain_scale$enable_homedir" = xyesyes
13121then
13122  as_fn_error $? "you may not have domain-scale and homedir implemented simultaneously" "$LINENO" 5
13123elif test x"$enable_large_scale$enable_homedir" = xyesyes
13124then
13125  as_fn_error $? "you may not have large-scale and homedir implemented simultaneously" "$LINENO" 5
13126fi
13127
13128#
13129#   Log Directory
13130#
13131
13132logdir="$dspam_home/log"
13133
13134# Check whether --with-logdir was given.
13135if test "${with_logdir+set}" = set; then :
13136  withval=$with_logdir;  logdir="$withval"
13137fi
13138
13139
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for logdir" >&5
13141$as_echo_n "checking for logdir... " >&6; }
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
13143$as_echo "$logdir" >&6; }
13144
13145#---------------------------------------------------------
13146#   storage driver selection
13147storagedrv=hash_drv
13148storage_drv_subdirs=""
13149active_driver=""
13150static_driver=yes
13151
13152# Check whether --with-storage-driver was given.
13153if test "${with_storage_driver+set}" = set; then :
13154  withval=$with_storage_driver;  storagedrv="$withval"
13155fi
13156
13157
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which storage drivers to build" >&5
13159$as_echo_n "checking which storage drivers to build... " >&6; }
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $storagedrv" >&5
13161$as_echo "$storagedrv" >&6; }
13162
13163#---------------------------------------------------------
13164#   Libraries for storage drivers
13165#
13166
13167ac_save_IFS=$IFS; IFS=,
13168for drv in $storagedrv; do
13169  IFS=$ac_save_IFS
13170
13171  if test x"$active_driver" = x
13172  then
13173    active_driver=$drv
13174
13175  else
13176    static_driver=no
13177  fi
13178
13179if test x"$drv" = xhash_drv
13180then
13181  hash_drv=yes
13182  storage_drv_subdirs="$storage_drv_subdirs tools.hash_drv"
13183fi
13184
13185if test x"$drv" = xmysql_drv
13186then
13187
13188mysql_save_CPPFLAGS="$CPPFLAGS"
13189mysql_save_LDFLAGS="$LDFLAGS"
13190mysql_save_LIBS="$LIBS"
13191
13192mysql_CPPFLAGS=''
13193mysql_LIBS=''
13194
13195mysql_success=yes
13196
13197
13198mysql_headers_save_CPPFLAGS="$CPPFLAGS"
13199mysql_headers_CPPFLAGS=''
13200mysql_headers_success=yes
13201
13202#
13203#   virtual users
13204#
13205# Check whether --enable-virtual-users was given.
13206if test "${enable_virtual_users+set}" = set; then :
13207  enableval=$enable_virtual_users;
13208fi
13209
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable virtual users" >&5
13211$as_echo_n "checking whether to enable virtual users... " >&6; }
13212case x"$enable_virtual_users" in
13213    xyes)   # enabled explicity
13214            ;;
13215    xno)    # disabled explicity
13216            ;;
13217    x)      # disabled by default
13218            enable_virtual_users=no
13219            ;;
13220    *)      as_fn_error $? "unexpected value $enable_virtual_users for --{enable,disable}-virtual-users configure option" "$LINENO" 5
13221            ;;
13222esac
13223if test x"$enable_virtual_users" != xyes
13224then
13225    enable_virtual_users=no
13226else
13227    enable_virtual_users=yes    # overkill, but convenient
13228
13229$as_echo "#define VIRTUAL_USERS 1" >>confdefs.h
13230
13231fi
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_virtual_users" >&5
13233$as_echo "$enable_virtual_users" >&6; }
13234
13235
13236
13237# Check whether --with-mysql-includes was given.
13238if test "${with_mysql_includes+set}" = set; then :
13239  withval=$with_mysql_includes;
13240fi
13241
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find MySQL headers" >&5
13243$as_echo_n "checking where to find MySQL headers... " >&6; }
13244if test x"$with_mysql_includes" = x
13245then
13246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5
13247$as_echo "compiler default paths" >&6; }
13248else
13249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_includes" >&5
13250$as_echo "$with_mysql_includes" >&6; }
13251    if test -d "$with_mysql_includes"
13252    then
13253        :
13254    else
13255        as_fn_error $? "required include path for mysql headers $with_mysql_includes is not a directory" "$LINENO" 5
13256    fi
13257    mysql_headers_CPPFLAGS="-I$with_mysql_includes"
13258    CPPFLAGS="$mysql_headers_CPPFLAGS $CPPFLAGS"
13259fi
13260for ac_header in mysql.h mysqld_error.h errmsg.h
13261do :
13262  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13263ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13264if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13265  cat >>confdefs.h <<_ACEOF
13266#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13267_ACEOF
13268
13269else
13270   mysql_headers_success=no
13271fi
13272
13273done
13274
13275if test x"$mysql_headers_success" = xyes
13276then
13277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h.  */
13279
13280    #include <mysql.h>
13281    #include <mysqld_error.h>
13282    #include <errmsg.h>
13283    #if defined(PROTOCOL_VERSION) && defined(ER_LOCK_DEADLOCK) && defined(ER_LOCK_WAIT_TIMEOUT) && defined(ER_LOCK_OR_ACTIVE_TRANSACTION) && defined(CR_ERROR_FIRST)
13284    /* Success */
13285    #else
13286    #error Unsupported version of MySQL
13287    #endif
13288
13289_ACEOF
13290if ac_fn_c_try_cpp "$LINENO"; then :
13291
13292else
13293
13294                { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13296as_fn_error $? "Unsupported version of MySQL (no PROTOCOL_VERSION or ER_LOCK_DEADLOCK or ER_LOCK_WAIT_TIMEOUT or ER_LOCK_OR_ACTIVE_TRANSACTION or CR_ERROR_FIRST defined)
13297See \`config.log' for more details" "$LINENO" 5; }
13298                mysql_headers_success=no
13299
13300fi
13301rm -f conftest.err conftest.i conftest.$ac_ext
13302fi
13303
13304CPPFLAGS="$mysql_headers_save_CPPFLAGS"
13305if test x"$mysql_headers_success" = xyes
13306then
13307    mysql_CPPFLAGS="$mysql_headers_CPPFLAGS"
13308    :
13309else
13310    mysql_success=no
13311fi
13312
13313
13314if test x"$mysql_success" = xyes
13315then
13316    CPPFLAGS="$mysql_CPPFLAGS $CPPFLAGS"
13317
13318mysql_libs_save_LDFLAGS="$LDFLAGS"
13319mysql_libs_save_LIBS="$LIBS"
13320mysql_libs_LDFLAGS=''
13321mysql_libs_LIBS=''
13322mysql_libs_success=no
13323mysql_libs_netlibs=''
13324
13325success=yes
13326
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
13328$as_echo_n "checking for library containing gzopen... " >&6; }
13329if ${ac_cv_search_gzopen+:} false; then :
13330  $as_echo_n "(cached) " >&6
13331else
13332  ac_func_search_save_LIBS=$LIBS
13333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334/* end confdefs.h.  */
13335
13336/* Override any GCC internal prototype to avoid an error.
13337   Use char because int might match the return type of a GCC
13338   builtin and then its argument prototype would still apply.  */
13339#ifdef __cplusplus
13340extern "C"
13341#endif
13342char gzopen ();
13343int
13344main ()
13345{
13346return gzopen ();
13347  ;
13348  return 0;
13349}
13350_ACEOF
13351for ac_lib in '' z; do
13352  if test -z "$ac_lib"; then
13353    ac_res="none required"
13354  else
13355    ac_res=-l$ac_lib
13356    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13357  fi
13358  if ac_fn_c_try_link "$LINENO"; then :
13359  ac_cv_search_gzopen=$ac_res
13360fi
13361rm -f core conftest.err conftest.$ac_objext \
13362    conftest$ac_exeext
13363  if ${ac_cv_search_gzopen+:} false; then :
13364  break
13365fi
13366done
13367if ${ac_cv_search_gzopen+:} false; then :
13368
13369else
13370  ac_cv_search_gzopen=no
13371fi
13372rm conftest.$ac_ext
13373LIBS=$ac_func_search_save_LIBS
13374fi
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
13376$as_echo "$ac_cv_search_gzopen" >&6; }
13377ac_res=$ac_cv_search_gzopen
13378if test "$ac_res" != no; then :
13379  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13380  success=yes
13381else
13382  success=no
13383fi
13384
13385if test x"$success" = xno
13386then
13387  as_fn_error $? "zlib required for mysql_drv" "$LINENO" 5
13388fi
13389
13390
13391# Check whether --with-mysql-libraries was given.
13392if test "${with_mysql_libraries+set}" = set; then :
13393  withval=$with_mysql_libraries;
13394fi
13395
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find MySQL libraries" >&5
13397$as_echo_n "checking where to find MySQL libraries... " >&6; }
13398if test x"$with_mysql_libraries" = x
13399then
13400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5
13401$as_echo "compiler default paths" >&6; }
13402else
13403    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_libraries" >&5
13404$as_echo "$with_mysql_libraries" >&6; }
13405    if test -d "$with_mysql_libraries"
13406    then
13407        :
13408    else
13409        as_fn_error $? "required path for mysql libraries ($with_mysql_libraries) is not a directory" "$LINENO" 5
13410    fi
13411    mysql_libs_LDFLAGS="-L$with_mysql_libraries"
13412fi
13413
13414
13415
13416
13417
13418
13419    ds_netlibs_save_LIBS="$LIBS"
13420    LIBS=''
13421    ds_netlibs_success=yes
13422
13423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13424$as_echo_n "checking for library containing inet_ntoa... " >&6; }
13425if ${ac_cv_search_inet_ntoa+:} false; then :
13426  $as_echo_n "(cached) " >&6
13427else
13428  ac_func_search_save_LIBS=$LIBS
13429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430/* end confdefs.h.  */
13431
13432/* Override any GCC internal prototype to avoid an error.
13433   Use char because int might match the return type of a GCC
13434   builtin and then its argument prototype would still apply.  */
13435#ifdef __cplusplus
13436extern "C"
13437#endif
13438char inet_ntoa ();
13439int
13440main ()
13441{
13442return inet_ntoa ();
13443  ;
13444  return 0;
13445}
13446_ACEOF
13447for ac_lib in '' nsl; do
13448  if test -z "$ac_lib"; then
13449    ac_res="none required"
13450  else
13451    ac_res=-l$ac_lib
13452    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13453  fi
13454  if ac_fn_c_try_link "$LINENO"; then :
13455  ac_cv_search_inet_ntoa=$ac_res
13456fi
13457rm -f core conftest.err conftest.$ac_objext \
13458    conftest$ac_exeext
13459  if ${ac_cv_search_inet_ntoa+:} false; then :
13460  break
13461fi
13462done
13463if ${ac_cv_search_inet_ntoa+:} false; then :
13464
13465else
13466  ac_cv_search_inet_ntoa=no
13467fi
13468rm conftest.$ac_ext
13469LIBS=$ac_func_search_save_LIBS
13470fi
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13472$as_echo "$ac_cv_search_inet_ntoa" >&6; }
13473ac_res=$ac_cv_search_inet_ntoa
13474if test "$ac_res" != no; then :
13475  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13476  ds_netlibs_success=yes
13477else
13478  ds_netlibs_success=no
13479fi
13480
13481    if test x"$ds_netlibs_success" = xyes
13482    then
13483        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13484$as_echo_n "checking for library containing socket... " >&6; }
13485if ${ac_cv_search_socket+:} false; then :
13486  $as_echo_n "(cached) " >&6
13487else
13488  ac_func_search_save_LIBS=$LIBS
13489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h.  */
13491
13492/* Override any GCC internal prototype to avoid an error.
13493   Use char because int might match the return type of a GCC
13494   builtin and then its argument prototype would still apply.  */
13495#ifdef __cplusplus
13496extern "C"
13497#endif
13498char socket ();
13499int
13500main ()
13501{
13502return socket ();
13503  ;
13504  return 0;
13505}
13506_ACEOF
13507for ac_lib in '' socket; do
13508  if test -z "$ac_lib"; then
13509    ac_res="none required"
13510  else
13511    ac_res=-l$ac_lib
13512    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13513  fi
13514  if ac_fn_c_try_link "$LINENO"; then :
13515  ac_cv_search_socket=$ac_res
13516fi
13517rm -f core conftest.err conftest.$ac_objext \
13518    conftest$ac_exeext
13519  if ${ac_cv_search_socket+:} false; then :
13520  break
13521fi
13522done
13523if ${ac_cv_search_socket+:} false; then :
13524
13525else
13526  ac_cv_search_socket=no
13527fi
13528rm conftest.$ac_ext
13529LIBS=$ac_func_search_save_LIBS
13530fi
13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13532$as_echo "$ac_cv_search_socket" >&6; }
13533ac_res=$ac_cv_search_socket
13534if test "$ac_res" != no; then :
13535  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13536  ds_netlibs_success=yes
13537else
13538  ds_netlibs_success=no
13539fi
13540
13541    fi
13542
13543    ds_netlibs_netlibs="$LIBS"
13544    LIBS="$ds_netlibs_save_LIBS"
13545
13546
13547
13548
13549
13550    if test x"$ds_netlibs_success" = xyes
13551    then
13552        mysql_libs_netlibs="$ds_netlibs_netlibs"
13553        mysql_libs_success=yes
13554    else
13555        mysql_libs_success=no
13556    fi
13557
13558if test x"$mysql_libs_success" = xyes
13559then
13560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
13561$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
13562    mysql_libs_LIBS="-lmysqlclient $mysql_libs_netlibs"
13563    LIBS="$mysql_libs_LIBS $mysql_libs_save_LIBS"
13564    LDFLAGS="$mysql_libs_LDFLAGS $mysql_libs_save_LDFLAGS"
13565
13566    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h.  */
13568
13569            #include <stdlib.h>
13570            #include <mysql.h>
13571
13572int
13573main ()
13574{
13575
13576            MYSQL *mysql = mysql_init(NULL);
13577            mysql_close(mysql);
13578
13579  ;
13580  return 0;
13581}
13582_ACEOF
13583if ac_fn_c_try_link "$LINENO"; then :
13584   mysql_libs_success=yes
13585else
13586   mysql_libs_success=no
13587
13588fi
13589rm -f core conftest.err conftest.$ac_objext \
13590    conftest$ac_exeext conftest.$ac_ext
13591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mysql_libs_success" >&5
13592$as_echo "$mysql_libs_success" >&6; }
13593
13594    if test x"$mysql_libs_success" = xyes
13595    then
13596        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL client version >= 5.0.0" >&5
13597$as_echo_n "checking for MySQL client version >= 5.0.0... " >&6; }
13598        if test "$cross_compiling" = yes; then :
13599  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13601as_fn_error $? "cannot run test program while cross compiling
13602See \`config.log' for more details" "$LINENO" 5; }
13603else
13604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605/* end confdefs.h.  */
13606
13607
13608            #include <stdlib.h>
13609            #include <string.h>
13610            #include <mysql.h>
13611
13612int
13613main ()
13614{
13615
13616            int is_ok = 0;
13617            const char *info = mysql_get_client_info();
13618            char *i = strdup(info);
13619            char *m = strtok(i, ".");
13620            if (m)
13621              if (atoi(m) >= 5)
13622                is_ok = 1;
13623            free (i);
13624            return is_ok ? 0 : 1;
13625
13626  ;
13627  return 0;
13628}
13629
13630_ACEOF
13631if ac_fn_c_try_run "$LINENO"; then :
13632
13633          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634$as_echo "yes" >&6; }
13635
13636else
13637
13638          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639$as_echo "no" >&6; }
13640          mysql_libs_success=no
13641
13642fi
13643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13644  conftest.$ac_objext conftest.beam conftest.$ac_ext
13645fi
13646
13647    fi
13648fi
13649LIBS="$mysql_libs_save_LIBS"
13650LDFLAGS="$mysql_libs_save_LDFLAGS"
13651if test x"$mysql_libs_success" = xyes
13652then
13653    mysql_LDFLAGS="$mysql_libs_LDFLAGS"
13654    mysql_LIBS="$mysql_libs_LIBS"
13655    :
13656else
13657    mysql_success=no
13658fi
13659
13660fi
13661
13662CPPFLAGS="$mysql_save_CPPFLAGS"
13663LDFLAGS="$mysql_save_LDFLAGS"
13664LIBS="$mysql_save_LIBS"
13665
13666if test x"$mysql_success" = xyes
13667then
13668    MYSQL_CPPFLAGS="$mysql_CPPFLAGS"
13669    MYSQL_LDFLAGS="$mysql_LDFLAGS"
13670    MYSQL_LIBS="$mysql_LIBS"
13671    success=yes
13672else
13673    success=no
13674fi
13675
13676    if test x"$success" != xyes
13677    then
13678        as_fn_error $? "Required version of libmysqlclient not found" "$LINENO" 5
13679    fi
13680    libmysql_drv_cppflags="$MYSQL_CPPFLAGS $CPPFLAGS"
13681    libmysql_drv_libs="$MYSQL_LIBS $LIBS"
13682    libmysql_drv_ldflags="$MYSQL_LDFLAGS $LDFLAGS"
13683
13684
13685
13686
13687    mysql_drv=yes
13688    storage_drv_subdirs="$storage_drv_subdirs tools.mysql_drv"
13689fi
13690
13691if test x"$drv" = xpgsql_drv
13692then
13693
13694pgsql_save_CPPFLAGS="$CPPFLAGS"
13695pgsql_save_LDFLAGS="$LDFLAGS"
13696pgsql_save_LIBS="$LIBS"
13697
13698pgsql_CPPFLAGS=''
13699pgsql_LIBS=''
13700
13701pgsql_success=yes
13702
13703
13704pgsql_headers_save_CPPFLAGS="$CPPFLAGS"
13705pgsql_headers_CPPFLAGS=''
13706pgsql_headers_success=yes
13707
13708#
13709#   virtual users
13710#
13711# Check whether --enable-virtual-users was given.
13712if test "${enable_virtual_users+set}" = set; then :
13713  enableval=$enable_virtual_users;
13714fi
13715
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable virtual users" >&5
13717$as_echo_n "checking whether to enable virtual users... " >&6; }
13718case x"$enable_virtual_users" in
13719    xyes)   # enabled explicity
13720            ;;
13721    xno)    # disabled explicity
13722            ;;
13723    x)      # disabled by default
13724            enable_virtual_users=no
13725            ;;
13726    *)      as_fn_error $? "unexpected value $enable_virtual_users for --{enable,disable}-virtual-users configure option" "$LINENO" 5
13727            ;;
13728esac
13729if test x"$enable_virtual_users" != xyes
13730then
13731    enable_virtual_users=no
13732else
13733    enable_virtual_users=yes    # overkill, but convenient
13734
13735$as_echo "#define VIRTUAL_USERS 1" >>confdefs.h
13736
13737fi
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_virtual_users" >&5
13739$as_echo "$enable_virtual_users" >&6; }
13740
13741
13742
13743# Check whether --with-pgsql-includes was given.
13744if test "${with_pgsql_includes+set}" = set; then :
13745  withval=$with_pgsql_includes;
13746fi
13747
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find PostgreSQL headers" >&5
13749$as_echo_n "checking where to find PostgreSQL headers... " >&6; }
13750if test x"$with_pgsql_includes" = x
13751then
13752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5
13753$as_echo "compiler default paths" >&6; }
13754else
13755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pgsql_includes" >&5
13756$as_echo "$with_pgsql_includes" >&6; }
13757    if test -d "$with_pgsql_includes"
13758    then
13759        :
13760    else
13761        as_fn_error $? "required include path for libpq headers $with_pgsql_includes is not a directory" "$LINENO" 5
13762    fi
13763    pgsql_headers_CPPFLAGS="-I$with_pgsql_includes"
13764    CPPFLAGS="$pgsql_headers_CPPFLAGS $CPPFLAGS"
13765fi
13766ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
13767if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
13768
13769else
13770   pgsql_headers_success=no
13771fi
13772
13773
13774if test x"$pgsql_headers_success" = xyes
13775then
13776    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h.  */
13778
13779    #include <libpq-fe.h>
13780    #ifdef LIBPQ_FE_H
13781    /* Success */
13782    #else
13783    #error Unsupported version of PgSQL
13784    #endif
13785
13786_ACEOF
13787if ac_fn_c_try_cpp "$LINENO"; then :
13788
13789else
13790
13791                { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13793as_fn_error $? "Unsupported version of PostgreSQL (no LIBPQ_FE_H defined)
13794See \`config.log' for more details" "$LINENO" 5; }
13795                pgsql_headers_success=no
13796
13797fi
13798rm -f conftest.err conftest.i conftest.$ac_ext
13799fi
13800
13801CPPFLAGS="$pgsql_headers_save_CPPFLAGS"
13802if test x"$pgsql_headers_success" = xyes
13803then
13804    pgsql_CPPFLAGS="$pgsql_headers_CPPFLAGS"
13805    :
13806else
13807    pgsql_success=no
13808fi
13809
13810
13811if test x"$pgsql_success" = xyes
13812then
13813    CPPFLAGS="$pgsql_CPPFLAGS $CPPFLAGS"
13814
13815pgsql_libs_save_LDFLAGS="$LDFLAGS"
13816pgsql_libs_save_LIBS="$LIBS"
13817pgsql_libs_LDFLAGS=''
13818pgsql_libs_LIBS=''
13819pgsql_libs_success=no
13820pgsql_freemem_success=no
13821pgsql_libs_netlibs=''
13822pgsql_version_success=no
13823pgsql_version_major=''
13824pgsql_version_minor=''
13825pgsql_version_micro=''
13826pgsql_version_number=''
13827pgsql_version_req_major=8
13828pgsql_version_req_minor=1
13829pgsql_version_req_micro=0
13830pgsql_version_req_number=''
13831
13832
13833# Check whether --with-pgsql-libraries was given.
13834if test "${with_pgsql_libraries+set}" = set; then :
13835  withval=$with_pgsql_libraries;
13836fi
13837
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find PostgreSQL libraries" >&5
13839$as_echo_n "checking where to find PostgreSQL libraries... " >&6; }
13840if test x"$with_pgsql_libraries" = x
13841then
13842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5
13843$as_echo "compiler default paths" >&6; }
13844else
13845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pgsql_libraries" >&5
13846$as_echo "$with_pgsql_libraries" >&6; }
13847    if test -d "$with_pgsql_libraries"
13848    then
13849        :
13850    else
13851        as_fn_error $? "required path for libpq libraries ($with_pgsql_libraries) is not a directory" "$LINENO" 5
13852    fi
13853    pgsql_libs_LDFLAGS="-L$with_pgsql_libraries"
13854fi
13855
13856
13857
13858
13859
13860
13861    ds_netlibs_save_LIBS="$LIBS"
13862    LIBS=''
13863    ds_netlibs_success=yes
13864
13865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13866$as_echo_n "checking for library containing inet_ntoa... " >&6; }
13867if ${ac_cv_search_inet_ntoa+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  ac_func_search_save_LIBS=$LIBS
13871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873
13874/* Override any GCC internal prototype to avoid an error.
13875   Use char because int might match the return type of a GCC
13876   builtin and then its argument prototype would still apply.  */
13877#ifdef __cplusplus
13878extern "C"
13879#endif
13880char inet_ntoa ();
13881int
13882main ()
13883{
13884return inet_ntoa ();
13885  ;
13886  return 0;
13887}
13888_ACEOF
13889for ac_lib in '' nsl; do
13890  if test -z "$ac_lib"; then
13891    ac_res="none required"
13892  else
13893    ac_res=-l$ac_lib
13894    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13895  fi
13896  if ac_fn_c_try_link "$LINENO"; then :
13897  ac_cv_search_inet_ntoa=$ac_res
13898fi
13899rm -f core conftest.err conftest.$ac_objext \
13900    conftest$ac_exeext
13901  if ${ac_cv_search_inet_ntoa+:} false; then :
13902  break
13903fi
13904done
13905if ${ac_cv_search_inet_ntoa+:} false; then :
13906
13907else
13908  ac_cv_search_inet_ntoa=no
13909fi
13910rm conftest.$ac_ext
13911LIBS=$ac_func_search_save_LIBS
13912fi
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13914$as_echo "$ac_cv_search_inet_ntoa" >&6; }
13915ac_res=$ac_cv_search_inet_ntoa
13916if test "$ac_res" != no; then :
13917  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13918  ds_netlibs_success=yes
13919else
13920  ds_netlibs_success=no
13921fi
13922
13923    if test x"$ds_netlibs_success" = xyes
13924    then
13925        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13926$as_echo_n "checking for library containing socket... " >&6; }
13927if ${ac_cv_search_socket+:} false; then :
13928  $as_echo_n "(cached) " >&6
13929else
13930  ac_func_search_save_LIBS=$LIBS
13931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932/* end confdefs.h.  */
13933
13934/* Override any GCC internal prototype to avoid an error.
13935   Use char because int might match the return type of a GCC
13936   builtin and then its argument prototype would still apply.  */
13937#ifdef __cplusplus
13938extern "C"
13939#endif
13940char socket ();
13941int
13942main ()
13943{
13944return socket ();
13945  ;
13946  return 0;
13947}
13948_ACEOF
13949for ac_lib in '' socket; do
13950  if test -z "$ac_lib"; then
13951    ac_res="none required"
13952  else
13953    ac_res=-l$ac_lib
13954    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13955  fi
13956  if ac_fn_c_try_link "$LINENO"; then :
13957  ac_cv_search_socket=$ac_res
13958fi
13959rm -f core conftest.err conftest.$ac_objext \
13960    conftest$ac_exeext
13961  if ${ac_cv_search_socket+:} false; then :
13962  break
13963fi
13964done
13965if ${ac_cv_search_socket+:} false; then :
13966
13967else
13968  ac_cv_search_socket=no
13969fi
13970rm conftest.$ac_ext
13971LIBS=$ac_func_search_save_LIBS
13972fi
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13974$as_echo "$ac_cv_search_socket" >&6; }
13975ac_res=$ac_cv_search_socket
13976if test "$ac_res" != no; then :
13977  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13978  ds_netlibs_success=yes
13979else
13980  ds_netlibs_success=no
13981fi
13982
13983    fi
13984
13985    ds_netlibs_netlibs="$LIBS"
13986    LIBS="$ds_netlibs_save_LIBS"
13987
13988
13989
13990
13991
13992    if test x"$ds_netlibs_success" = xyes
13993    then
13994        pgsql_libs_netlibs="$ds_netlibs_netlibs"
13995        pgsql_libs_success=yes
13996    else
13997        pgsql_libs_success=no
13998    fi
13999
14000if test x"$pgsql_libs_success" = xyes
14001then
14002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in libpq" >&5
14003$as_echo_n "checking for PQconnectdb in libpq... " >&6; }
14004    pgsql_libs_LIBS="-lpq $pgsql_libs_netlibs"
14005    LIBS="$pgsql_libs_LIBS $pgsql_libs_save_LIBS"
14006    LDFLAGS="$pgsql_libs_LDFLAGS $pgsql_libs_save_LDFLAGS"
14007
14008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009/* end confdefs.h.  */
14010
14011            #include <stdlib.h>
14012            #include <libpq-fe.h>
14013
14014int
14015main ()
14016{
14017
14018            PGconn *pgsql = PQconnectdb(NULL);
14019            PQfinish(pgsql);
14020
14021  ;
14022  return 0;
14023}
14024_ACEOF
14025if ac_fn_c_try_link "$LINENO"; then :
14026   pgsql_libs_success=yes
14027else
14028   pgsql_libs_success=no
14029
14030fi
14031rm -f core conftest.err conftest.$ac_objext \
14032    conftest$ac_exeext conftest.$ac_ext
14033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgsql_libs_success" >&5
14034$as_echo "$pgsql_libs_success" >&6; }
14035
14036fi
14037
14038if test x"$pgsql_libs_success" = xyes
14039then
14040    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this version of Postgres supports PQfreemem" >&5
14041$as_echo_n "checking if this version of Postgres supports PQfreemem... " >&6; }
14042    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043/* end confdefs.h.  */
14044
14045            #include <stdlib.h>
14046            #include <libpq-fe.h>
14047
14048int
14049main ()
14050{
14051
14052            PQfreemem(NULL);
14053
14054  ;
14055  return 0;
14056}
14057_ACEOF
14058if ac_fn_c_try_link "$LINENO"; then :
14059   pgsql_freemem_success=yes
14060else
14061   pgsql_freemem_success=no
14062
14063fi
14064rm -f core conftest.err conftest.$ac_objext \
14065    conftest$ac_exeext conftest.$ac_ext
14066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgsql_freemem_success" >&5
14067$as_echo "$pgsql_freemem_success" >&6; }
14068fi
14069
14070if test x"$pgsql_freemem_success" = xyes
14071then
14072
14073$as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h
14074
14075fi
14076
14077if test x"$pgsql_libs_success" = xyes
14078then
14079  # Extract the first word of "pg_config", so it can be a program name with args.
14080set dummy pg_config; ac_word=$2
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14082$as_echo_n "checking for $ac_word... " >&6; }
14083if ${ac_cv_path_pgsql_pg_config+:} false; then :
14084  $as_echo_n "(cached) " >&6
14085else
14086  case $pgsql_pg_config in
14087  [\\/]* | ?:[\\/]*)
14088  ac_cv_path_pgsql_pg_config="$pgsql_pg_config" # Let the user override the test with a path.
14089  ;;
14090  *)
14091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092for as_dir in $PATH
14093do
14094  IFS=$as_save_IFS
14095  test -z "$as_dir" && as_dir=.
14096    for ac_exec_ext in '' $ac_executable_extensions; do
14097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14098    ac_cv_path_pgsql_pg_config="$as_dir/$ac_word$ac_exec_ext"
14099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14100    break 2
14101  fi
14102done
14103  done
14104IFS=$as_save_IFS
14105
14106  ;;
14107esac
14108fi
14109pgsql_pg_config=$ac_cv_path_pgsql_pg_config
14110if test -n "$pgsql_pg_config"; then
14111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgsql_pg_config" >&5
14112$as_echo "$pgsql_pg_config" >&6; }
14113else
14114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115$as_echo "no" >&6; }
14116fi
14117
14118
14119  if test ! -x "$pgsql_pg_config"
14120  then
14121    pgsql_pg_config="no"
14122    as_fn_error $? "$pgsql_pg_config does not exist or it is not an exectuable file" "$LINENO" 5
14123  fi
14124
14125  if test x"$pgsql_pg_config" != xno
14126  then
14127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL client version >= $pgsql_version_req_major.$pgsql_version_req_minor.$pgsql_version_req_micro" >&5
14128$as_echo_n "checking for PostgreSQL client version >= $pgsql_version_req_major.$pgsql_version_req_minor.$pgsql_version_req_micro... " >&6; }
14129
14130    pgsql_version_req_number=`expr $pgsql_version_req_major \* 1000000 \
14131                              \+ $pgsql_version_req_minor \* 1000 \
14132                              \+ $pgsql_version_req_micro`
14133
14134    pgsql_version=`$pgsql_pg_config --version | sed -e 's:^PostgreSQL ::'`
14135    pgsql_version_major=`expr $pgsql_version : '\([0-9]*\)'`
14136    pgsql_version_minor=`expr $pgsql_version : '[0-9]*\.\([0-9]*\)'`
14137    pgsql_version_micro=`expr $pgsql_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14138    if test "x$pgsql_version_micro" = x
14139    then
14140      pgsql_version_micro='0'
14141    fi
14142
14143    pgsql_version_number=`expr $pgsql_version_major \* 1000000 \
14144                              \+ $pgsql_version_minor \* 1000 \
14145                              \+ $pgsql_version_micro`
14146
14147    pgsql_version_success=`expr $pgsql_version_number \>\= $pgsql_version_req_number`
14148    if test x"$pgsql_version_success" = x1
14149    then
14150      pgsql_version_success='yes'
14151      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14152$as_echo "yes" >&6; }
14153    else
14154      pgsql_version_success='no'
14155      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156$as_echo "no" >&6; }
14157    fi
14158  fi
14159fi
14160
14161if test x"$pgsql_version_success" = xno
14162then
14163  pgsql_libs_success=no
14164fi
14165
14166
14167LIBS="$pgsql_libs_save_LIBS"
14168LDFLAGS="$pgsql_libs_save_LDFLAGS"
14169if test x"$pgsql_libs_success" = xyes
14170then
14171    pgsql_LDFLAGS="$pgsql_libs_LDFLAGS"
14172    pgsql_LIBS="$pgsql_libs_LIBS"
14173    :
14174else
14175    pgsql_success=no
14176fi
14177
14178fi
14179
14180CPPFLAGS="$pgsql_save_CPPFLAGS"
14181LDFLAGS="$pgsql_save_LDFLAGS"
14182LIBS="$pgsql_save_LIBS"
14183
14184if test x"$pgsql_success" = xyes
14185then
14186    PGSQL_CPPFLAGS="$pgsql_CPPFLAGS"
14187    PGSQL_LDFLAGS="$pgsql_LDFLAGS"
14188    PGSQL_LIBS="$pgsql_LIBS"
14189    success=yes
14190else
14191    success=no
14192fi
14193
14194    if test x"$success" != xyes
14195    then
14196        as_fn_error $? "Required version of libpq not found" "$LINENO" 5
14197    fi
14198    libpgsql_drv_cppflags="$PGSQL_CPPFLAGS $CPPFLAGS"
14199    libpgsql_drv_libs="$PGSQL_LIBS $LIBS"
14200    libpgsql_drv_ldflags="$PGSQL_LDFLAGS $LDFLAGS"
14201
14202
14203
14204    pgsql_drv=yes
14205    storage_drv_subdirs="$storage_drv_subdirs tools.pgsql_drv"
14206fi
14207
14208if test x"$drv" = xsqlite_drv
14209then
14210
14211ds_sqlite_save_CPPFLAGS="$CPPFLAGS"
14212ds_sqlite_save_LIBS="$LIBS"
14213ds_sqlite_save_LDFLAGS="$LDFLAGS"
14214
14215ds_sqlite_CPPFLAGS=''
14216ds_sqlite_LIBS=''
14217ds_sqlite_LDFLAGS=''
14218
14219ds_sqlite_success=yes
14220ds_sqlite_version_major=''
14221ds_sqlite_version_minor=''
14222ds_sqlite_version_patchlevel=''
14223
14224
14225
14226
14227ds_sqlite_headers_save_CPPFLAGS="$CPPFLAGS"
14228ds_sqlite_headers_CPPFLAGS=''
14229ds_sqlite_headers_success=yes
14230ds_sqlite_headers_version_major=''
14231ds_sqlite_headers_version_minor=''
14232ds_sqlite_headers_version_patchlevel=''
14233
14234# unistd.h and errno.h are needed for header version check below.
14235for ac_header in unistd.h errno.h
14236do :
14237  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14238ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14240  cat >>confdefs.h <<_ACEOF
14241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14242_ACEOF
14243
14244fi
14245
14246done
14247
14248
14249
14250# Check whether --with-sqlite-includes was given.
14251if test "${with_sqlite_includes+set}" = set; then :
14252  withval=$with_sqlite_includes;
14253fi
14254
14255if test x"$with_sqlite_includes" != x
14256then
14257    if test -d "$with_sqlite_includes"
14258    then
14259        :
14260    else
14261        as_fn_error $? "required include path for sqlite headers ($with_sqlite_includes) is not a directory" "$LINENO" 5
14262    fi
14263    ds_sqlite_headers_CPPFLAGS="-I$with_sqlite_includes"
14264    CPPFLAGS="$ds_sqlite_headers_CPPFLAGS $CPPFLAGS"
14265fi
14266ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
14267if test "x$ac_cv_header_sqlite_h" = xyes; then :
14268
14269else
14270   ds_sqlite_headers_success=no
14271fi
14272
14273
14274if test x"$ds_sqlite_headers_success" = xyes
14275then
14276    # Determine SQLite hearder version
14277    ac_ext=c
14278ac_cpp='$CPP $CPPFLAGS'
14279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281ac_compiler_gnu=$ac_cv_c_compiler_gnu
14282
14283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQLite header version" >&5
14284$as_echo_n "checking SQLite header version... " >&6; }
14285    if test "$cross_compiling" = yes; then :
14286     # cross-compilation
14287            as_fn_error $? "cross-compilation is unsupported, sorry" "$LINENO" 5
14288            ds_sqlite_headers_success=no
14289
14290else
14291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292/* end confdefs.h.  */
14293
14294        #include <sqlite.h>
14295        #include <stdio.h>
14296        #include <stdlib.h>
14297        #ifdef HAVE_UNISTD_H
14298        #   include <unistd.h>
14299        #endif
14300        #ifdef HAVE_ERRNO_H
14301        #   include <errno.h>
14302        #endif
14303
14304        #define OUTFILE "conftest.libsqlitever"
14305
14306        int main(void)
14307        {
14308            FILE* fd;
14309            int rc;
14310
14311            rc = unlink(OUTFILE);   /* avoid symlink attack */
14312            if (rc < 0 && errno != ENOENT)
14313            {
14314                fprintf(stderr, "error unlinking '%s'", OUTFILE);
14315                exit(1);
14316            }
14317
14318            fd = fopen(OUTFILE, "w");
14319            if (!fd)
14320            {
14321                /* Don't try to investigate errno for portability reasons */
14322                fprintf(stderr, "error opening '%s' for writing", OUTFILE);
14323                exit(1);
14324            }
14325
14326            rc = fprintf(fd, "%s", SQLITE_VERSION);
14327            if (rc < 0)
14328            {
14329                fprintf(stderr, "error writing to the '%s'", OUTFILE);
14330                exit(1);
14331            }
14332            exit(0);
14333        }
14334
14335_ACEOF
14336if ac_fn_c_try_run "$LINENO"; then :
14337
14338
14339            ds_sqlite_headers_verstr=`cat conftest.libsqlitever`
14340            ds_sqlite_headers_version_major=`cat conftest.libsqlitever | $AWK -F. '{print $1}'`
14341            ds_sqlite_headers_version_minor=`cat conftest.libsqlitever | $AWK -F. '{print $2}'`
14342            ds_sqlite_headers_version_patchlevel=`cat conftest.libsqlitever | $AWK -F. '{print $3}'`
14343
14344            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&5
14345$as_echo "$ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&6; }
14346
14347else
14348
14349            { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure (unsupported version?)" >&5
14350$as_echo "failure (unsupported version?)" >&6; }
14351            ds_sqlite_headers_success=no
14352
14353fi
14354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355  conftest.$ac_objext conftest.beam conftest.$ac_ext
14356fi
14357
14358    ac_ext=c
14359ac_cpp='$CPP $CPPFLAGS'
14360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14362ac_compiler_gnu=$ac_cv_c_compiler_gnu
14363
14364fi
14365CPPFLAGS="$ds_sqlite_headers_save_CPPFLAGS"
14366if test x"$ds_sqlite_headers_success" = xyes
14367then
14368    ds_sqlite_CPPFLAGS="$ds_sqlite_headers_CPPFLAGS"
14369    ds_sqlite_version_major="$ds_sqlite_headers_version_major"
14370    ds_sqlite_version_minor="$ds_sqlite_headers_version_minor"
14371    ds_sqlite_version_patchlevel="$ds_sqlite_headers_version_patchlevel"
14372    :
14373    :
14374else
14375    ds_sqlite_success=no
14376    :
14377fi
14378
14379
14380if test x"$ds_sqlite_success" = xyes
14381then
14382    CPPFLAGS="$ds_sqlite_CPPFLAGS $CPPFLAGS"
14383
14384ds_sqlite_libs_save_LIBS="$LIBS"
14385ds_sqlite_libs_save_LDFLAGS="$LDFLAGS"
14386ds_sqlite_libs_LIBS=''
14387ds_sqlite_libs_LDFLAGS=''
14388ds_sqlite_libs_success=no
14389
14390ds_sqlite_libs_ver_major="${ds_sqlite_version_major}"
14391ds_sqlite_libs_ver_minor="${ds_sqlite_version_minor}"
14392
14393if test x"$ds_sqlite_libs_ver_major" = x
14394then
14395    as_fn_error $? "DS_SQLITE_LIBS: non-optional argument _ds_sqlite_libs_version_major_in is omited" "$LINENO" 5;
14396fi
14397if test x"$ds_sqlite_libs_ver_minor" = x
14398then
14399    as_fn_error $? "DS_SQLITE_LIBS: non-optional argument _ds_sqlite_libs_version_minor_in is omited" "$LINENO" 5;
14400fi
14401
14402
14403# Check whether --with-sqlite-libraries was given.
14404if test "${with_sqlite_libraries+set}" = set; then :
14405  withval=$with_sqlite_libraries;
14406fi
14407
14408if test x"$with_sqlite_libraries" != x
14409then
14410    if test -d "$with_sqlite_libraries"
14411    then
14412        :
14413    else
14414        as_fn_error $? "required path for sqlite libraries ($with_sqlite_libraries) is not a directory" "$LINENO" 5
14415    fi
14416    ds_sqlite_libs_LDFLAGS="-L$with_sqlite_libraries"
14417fi
14418
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link SQLite libraries" >&5
14420$as_echo_n "checking how to link SQLite libraries... " >&6; }
14421for ds_sqlite_libs_tmp_sqlite in \
14422    "-lsqlite"
14423do
14424    LDFLAGS="$ds_sqlite_libs_LDFLAGS $ds_sqlite_libs_save_LDFLAGS"
14425    for ds_sqlite_libs_tmp_libpth in ''
14426    do
14427        ds_sqlite_libs_LIBS="$ds_sqlite_libs_tmp_sqlite $ds_sqlite_libs_tmp_libpth"
14428        LIBS="$ds_sqlite_libs_LIBS $ds_sqlite_libs_save_LIBS"
14429        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430/* end confdefs.h.  */
14431
14432            #include <sqlite.h>
14433
14434int
14435main ()
14436{
14437
14438              const char *v = 0;
14439              v = sqlite_version;
14440
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445if ac_fn_c_try_link "$LINENO"; then :
14446   ds_sqlite_libs_success=yes
14447else
14448   ds_sqlite_libs_success=no
14449
14450fi
14451rm -f core conftest.err conftest.$ac_objext \
14452    conftest$ac_exeext conftest.$ac_ext
14453
14454        if test x"$ds_sqlite_libs_success" != xyes
14455        then
14456            continue
14457        fi
14458
14459        if test "$cross_compiling" = yes; then :
14460   ds_sqlite_libs_success=yes  # Assume success for cross-compiling
14461
14462else
14463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465
14466            #include <stdio.h>
14467            #include <sqlite.h>
14468            #include <stdlib.h>
14469            #include <string.h>
14470
14471int
14472main ()
14473{
14474
14475                const char *x = sqlite_version;
14476                char *y;
14477                char header_version[16];
14478                int major, minor, patchlevel;
14479                int hmajor, hminor, hpatchlevel;
14480                int is_match;
14481
14482                strcpy(header_version, x);
14483                y = strtok(header_version, ".");
14484                major = atoi(y);
14485                y = strtok(NULL, ".");
14486                minor = atoi(y);
14487                y = strtok(NULL, ".");
14488                patchlevel = atoi(y);
14489
14490                strcpy(header_version, SQLITE_VERSION);
14491                y = strtok(header_version, ".");
14492                hmajor = atoi(y);
14493                y = strtok(NULL, ".");
14494                hminor = atoi(y);
14495                y = strtok(NULL, ".");
14496                hpatchlevel = atoi(y);
14497
14498                fprintf(stderr, "sqlite version from header: %d.%d.%d\n",
14499                        hmajor, hminor, hpatchlevel
14500                        );
14501
14502                fprintf(stderr, "sqlite version from library: %d.%d.%d\n",
14503                        major,
14504                        minor,
14505                        patchlevel
14506                        );
14507                if (major == hmajor
14508                    && minor == hminor
14509                    && patchlevel == hpatchlevel
14510                    )
14511                {
14512                    is_match = 1;
14513                }
14514                else
14515                {
14516                    is_match = 0;
14517                }
14518                return is_match ? 0 : 1;
14519
14520  ;
14521  return 0;
14522}
14523_ACEOF
14524if ac_fn_c_try_run "$LINENO"; then :
14525   ds_sqlite_libs_success=yes
14526else
14527   ds_sqlite_libs_success=no
14528fi
14529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14530  conftest.$ac_objext conftest.beam conftest.$ac_ext
14531fi
14532
14533
14534        if test x"$ds_sqlite_libs_success" = xyes
14535        then
14536            break 2
14537        fi
14538    done
14539done
14540
14541if test x"$ds_sqlite_libs_success" = xyes
14542then
14543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_libs_LIBS" >&5
14544$as_echo "$ds_sqlite_libs_LIBS" >&6; }
14545else
14546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure" >&5
14547$as_echo "failure" >&6; }
14548fi
14549
14550LIBS="$ds_sqlite_libs_save_LIBS"
14551LDFLAGS="$ds_sqlite_libs_save_LDFLAGS"
14552if test x"$ds_sqlite_libs_success" = xyes
14553then
14554    ds_sqlite_LDFLAGS="$ds_sqlite_libs_LDFLAGS"
14555    ds_sqlite_LIBS="$ds_sqlite_libs_LIBS"
14556    :;
14557    :
14558else
14559    ds_sqlite_success=no
14560    :
14561fi
14562
14563fi
14564
14565CPPFLAGS="$ds_sqlite_save_CPPFLAGS"
14566LIBS="$ds_sqlite_save_LIBS"
14567LDFLAGS="$ds_sqlite_save_LDFLAGS"
14568
14569if test x"$ds_sqlite_success" = xyes
14570then
14571    SQLITE_CPPFLAGS="$ds_sqlite_CPPFLAGS"
14572    SQLITE_LDFLAGS="$ds_sqlite_LDFLAGS"
14573    SQLITE_LIBS="$ds_sqlite_LIBS"
14574
14575    sqlite_version_major="$ds_sqlite_version_major"
14576    :
14577    :
14578
14579    success=yes
14580    :
14581else
14582    success=no
14583    :
14584fi
14585
14586    if test x"$success" != xyes
14587    then
14588        as_fn_error $? "Required version of libsqlite not found" "$LINENO" 5
14589    fi
14590    if test x"$sqlite_version_major" != x2
14591    then
14592        as_fn_error $? "Version mismatch: sqlite_drv requires libsqlite version 2" "$LINENO" 5
14593    fi
14594
14595    libsqlite_drv_cppflags="$SQLITE_CPPFLAGS $CPPFLAGS"
14596    libsqlite_drv_libs="$SQLITE_LIBS $LIBS"
14597    libsqlite_drv_ldflags="$SQLITE_LDFLAGS $LDFLAGS"
14598
14599
14600
14601    sqlite_drv=yes
14602    storage_drv_subdirs="$storage_drv_subdirs tools.sqlite_drv"
14603fi
14604
14605if test x"$drv" = xsqlite3_drv
14606then
14607
14608ds_sqlite_save_CPPFLAGS="$CPPFLAGS"
14609ds_sqlite_save_LIBS="$LIBS"
14610ds_sqlite_save_LDFLAGS="$LDFLAGS"
14611
14612ds_sqlite_CPPFLAGS=''
14613ds_sqlite_LIBS=''
14614ds_sqlite_LDFLAGS=''
14615
14616ds_sqlite_success=yes
14617ds_sqlite_version_major=''
14618ds_sqlite_version_minor=''
14619ds_sqlite_version_patchlevel=''
14620
14621
14622
14623
14624ds_sqlite_headers_save_CPPFLAGS="$CPPFLAGS"
14625ds_sqlite_headers_CPPFLAGS=''
14626ds_sqlite_headers_success=yes
14627ds_sqlite_headers_version_major=''
14628ds_sqlite_headers_version_minor=''
14629ds_sqlite_headers_version_patchlevel=''
14630
14631# unistd.h and errno.h are needed for header version check below.
14632for ac_header in unistd.h errno.h
14633do :
14634  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14635ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14636if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14637  cat >>confdefs.h <<_ACEOF
14638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14639_ACEOF
14640
14641fi
14642
14643done
14644
14645
14646
14647# Check whether --with-sqlite-includes was given.
14648if test "${with_sqlite_includes+set}" = set; then :
14649  withval=$with_sqlite_includes;
14650fi
14651
14652if test x"$with_sqlite_includes" != x
14653then
14654    if test -d "$with_sqlite_includes"
14655    then
14656        :
14657    else
14658        as_fn_error $? "required include path for sqlite headers ($with_sqlite_includes) is not a directory" "$LINENO" 5
14659    fi
14660    ds_sqlite_headers_CPPFLAGS="-I$with_sqlite_includes"
14661    CPPFLAGS="$ds_sqlite_headers_CPPFLAGS $CPPFLAGS"
14662fi
14663ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
14664if test "x$ac_cv_header_sqlite3_h" = xyes; then :
14665
14666else
14667   ds_sqlite_headers_success=no
14668fi
14669
14670
14671if test x"$ds_sqlite_headers_success" = xyes
14672then
14673    # Determine SQLite hearder version
14674    ac_ext=c
14675ac_cpp='$CPP $CPPFLAGS'
14676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14678ac_compiler_gnu=$ac_cv_c_compiler_gnu
14679
14680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQLite header version" >&5
14681$as_echo_n "checking SQLite header version... " >&6; }
14682    if test "$cross_compiling" = yes; then :
14683     # cross-compilation
14684            as_fn_error $? "cross-compilation is unsupported, sorry" "$LINENO" 5
14685            ds_sqlite_headers_success=no
14686
14687else
14688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689/* end confdefs.h.  */
14690
14691        #include <sqlite3.h>
14692        #include <stdio.h>
14693        #include <stdlib.h>
14694        #ifdef HAVE_UNISTD_H
14695        #   include <unistd.h>
14696        #endif
14697        #ifdef HAVE_ERRNO_H
14698        #   include <errno.h>
14699        #endif
14700
14701        #define OUTFILE "conftest.libsqlitever"
14702
14703        int main(void)
14704        {
14705            FILE* fd;
14706            int rc;
14707
14708            rc = unlink(OUTFILE);   /* avoid symlink attack */
14709            if (rc < 0 && errno != ENOENT)
14710            {
14711                fprintf(stderr, "error unlinking '%s'", OUTFILE);
14712                exit(1);
14713            }
14714
14715            fd = fopen(OUTFILE, "w");
14716            if (!fd)
14717            {
14718                /* Don't try to investigate errno for portability reasons */
14719                fprintf(stderr, "error opening '%s' for writing", OUTFILE);
14720                exit(1);
14721            }
14722
14723            rc = fprintf(fd, "%s", SQLITE_VERSION);
14724            if (rc < 0)
14725            {
14726                fprintf(stderr, "error writing to the '%s'", OUTFILE);
14727                exit(1);
14728            }
14729            exit(0);
14730        }
14731
14732_ACEOF
14733if ac_fn_c_try_run "$LINENO"; then :
14734
14735
14736            ds_sqlite_headers_verstr=`cat conftest.libsqlitever`
14737            ds_sqlite_headers_version_major=`cat conftest.libsqlitever | $AWK -F. '{print $1}'`
14738            ds_sqlite_headers_version_minor=`cat conftest.libsqlitever | $AWK -F. '{print $2}'`
14739            ds_sqlite_headers_version_patchlevel=`cat conftest.libsqlitever | $AWK -F. '{print $3}'`
14740
14741            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&5
14742$as_echo "$ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&6; }
14743
14744else
14745
14746            { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure (unsupported version?)" >&5
14747$as_echo "failure (unsupported version?)" >&6; }
14748            ds_sqlite_headers_success=no
14749
14750fi
14751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14752  conftest.$ac_objext conftest.beam conftest.$ac_ext
14753fi
14754
14755    ac_ext=c
14756ac_cpp='$CPP $CPPFLAGS'
14757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14759ac_compiler_gnu=$ac_cv_c_compiler_gnu
14760
14761fi
14762CPPFLAGS="$ds_sqlite_headers_save_CPPFLAGS"
14763if test x"$ds_sqlite_headers_success" = xyes
14764then
14765    ds_sqlite_CPPFLAGS="$ds_sqlite_headers_CPPFLAGS"
14766    ds_sqlite_version_major="$ds_sqlite_headers_version_major"
14767    ds_sqlite_version_minor="$ds_sqlite_headers_version_minor"
14768    ds_sqlite_version_patchlevel="$ds_sqlite_headers_version_patchlevel"
14769    :
14770    :
14771else
14772    ds_sqlite_success=no
14773    :
14774fi
14775
14776
14777if test x"$ds_sqlite_success" = xyes
14778then
14779    CPPFLAGS="$ds_sqlite_CPPFLAGS $CPPFLAGS"
14780
14781ds_sqlite_libs_save_LIBS="$LIBS"
14782ds_sqlite_libs_save_LDFLAGS="$LDFLAGS"
14783ds_sqlite_libs_LIBS=''
14784ds_sqlite_libs_LDFLAGS=''
14785ds_sqlite_libs_success=no
14786
14787ds_sqlite_libs_ver_major="${ds_sqlite_version_major}"
14788ds_sqlite_libs_ver_minor="${ds_sqlite_version_minor}"
14789
14790if test x"$ds_sqlite_libs_ver_major" = x
14791then
14792    as_fn_error $? "DS_SQLITE3_LIBS: non-optional argument _ds_sqlite_libs_version_major_in is omited" "$LINENO" 5;
14793fi
14794if test x"$ds_sqlite_libs_ver_minor" = x
14795then
14796    as_fn_error $? "DS_SQLITE3_LIBS: non-optional argument _ds_sqlite_libs_version_minor_in is omited" "$LINENO" 5;
14797fi
14798
14799
14800# Check whether --with-sqlite-libraries was given.
14801if test "${with_sqlite_libraries+set}" = set; then :
14802  withval=$with_sqlite_libraries;
14803fi
14804
14805if test x"$with_sqlite_libraries" != x
14806then
14807    if test -d "$with_sqlite_libraries"
14808    then
14809        :
14810    else
14811        as_fn_error $? "required path for sqlite libraries ($with_sqlite_libraries) is not a directory" "$LINENO" 5
14812    fi
14813    ds_sqlite_libs_LDFLAGS="-L$with_sqlite_libraries"
14814fi
14815
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link SQLite libraries" >&5
14817$as_echo_n "checking how to link SQLite libraries... " >&6; }
14818for ds_sqlite_libs_tmp_sqlite in \
14819    "-lsqlite3"
14820do
14821    LDFLAGS="$ds_sqlite_libs_LDFLAGS $ds_sqlite_libs_save_LDFLAGS"
14822    for ds_sqlite_libs_tmp_libpth in ''
14823    do
14824        ds_sqlite_libs_LIBS="$ds_sqlite_libs_tmp_sqlite $ds_sqlite_libs_tmp_libpth"
14825        LIBS="$ds_sqlite_libs_LIBS $ds_sqlite_libs_save_LIBS"
14826        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828
14829            #include <sqlite3.h>
14830
14831int
14832main ()
14833{
14834
14835              const char *v = 0;
14836              v = sqlite3_version;
14837
14838  ;
14839  return 0;
14840}
14841_ACEOF
14842if ac_fn_c_try_link "$LINENO"; then :
14843   ds_sqlite_libs_success=yes
14844else
14845   ds_sqlite_libs_success=no
14846
14847fi
14848rm -f core conftest.err conftest.$ac_objext \
14849    conftest$ac_exeext conftest.$ac_ext
14850
14851        if test x"$ds_sqlite_libs_success" != xyes
14852        then
14853            continue
14854        fi
14855
14856        if test "$cross_compiling" = yes; then :
14857   ds_sqlite_libs_success=yes  # Assume success for cross-compiling
14858
14859else
14860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861/* end confdefs.h.  */
14862
14863            #include <stdio.h>
14864            #include <sqlite3.h>
14865            #include <stdlib.h>
14866            #include <string.h>
14867
14868int
14869main ()
14870{
14871
14872                const char *x = sqlite3_version;
14873                char *y;
14874                char header_version[16];
14875                int major, minor, patchlevel;
14876                int hmajor, hminor, hpatchlevel;
14877                int is_match;
14878
14879                strcpy(header_version, x);
14880                y = strtok(header_version, ".");
14881                major = atoi(y);
14882                y = strtok(NULL, ".");
14883                minor = atoi(y);
14884                y = strtok(NULL, ".");
14885                patchlevel = atoi(y);
14886
14887                strcpy(header_version, SQLITE_VERSION);
14888                y = strtok(header_version, ".");
14889                hmajor = atoi(y);
14890                y = strtok(NULL, ".");
14891                hminor = atoi(y);
14892                y = strtok(NULL, ".");
14893                hpatchlevel = atoi(y);
14894
14895                fprintf(stderr, "sqlite version from header: %d.%d.%d\n",
14896                        hmajor, hminor, hpatchlevel
14897                        );
14898
14899                fprintf(stderr, "sqlite version from library: %d.%d.%d\n",
14900                        major,
14901                        minor,
14902                        patchlevel
14903                        );
14904                if (major == hmajor
14905                    && minor == hminor
14906                    && patchlevel == hpatchlevel
14907                    )
14908                {
14909                    is_match = 1;
14910                }
14911                else
14912                {
14913                    is_match = 0;
14914                }
14915                return is_match ? 0 : 1;
14916
14917  ;
14918  return 0;
14919}
14920_ACEOF
14921if ac_fn_c_try_run "$LINENO"; then :
14922   ds_sqlite_libs_success=yes
14923else
14924   ds_sqlite_libs_success=no
14925fi
14926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14927  conftest.$ac_objext conftest.beam conftest.$ac_ext
14928fi
14929
14930
14931        if test x"$ds_sqlite_libs_success" = xyes
14932        then
14933            break 2
14934        fi
14935    done
14936done
14937
14938if test x"$ds_sqlite_libs_success" = xyes
14939then
14940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_libs_LIBS" >&5
14941$as_echo "$ds_sqlite_libs_LIBS" >&6; }
14942else
14943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure" >&5
14944$as_echo "failure" >&6; }
14945fi
14946
14947LIBS="$ds_sqlite_libs_save_LIBS"
14948LDFLAGS="$ds_sqlite_libs_save_LDFLAGS"
14949if test x"$ds_sqlite_libs_success" = xyes
14950then
14951    ds_sqlite_LDFLAGS="$ds_sqlite_libs_LDFLAGS"
14952    ds_sqlite_LIBS="$ds_sqlite_libs_LIBS"
14953    :;
14954    :
14955else
14956    ds_sqlite_success=no
14957    :
14958fi
14959
14960fi
14961
14962CPPFLAGS="$ds_sqlite_save_CPPFLAGS"
14963LIBS="$ds_sqlite_save_LIBS"
14964LDFLAGS="$ds_sqlite_save_LDFLAGS"
14965
14966if test x"$ds_sqlite_success" = xyes
14967then
14968    SQLITE3_CPPFLAGS="$ds_sqlite_CPPFLAGS"
14969    SQLITE3_LDFLAGS="$ds_sqlite_LDFLAGS"
14970    SQLITE3_LIBS="$ds_sqlite_LIBS"
14971
14972    sqlite_version_major="$ds_sqlite_version_major"
14973    :
14974    :
14975
14976    success=yes
14977    :
14978else
14979    success=no
14980    :
14981fi
14982
14983    if test x"$success" != xyes
14984    then
14985        as_fn_error $? "Required version of libsqlite not found" "$LINENO" 5
14986    fi
14987    if test x"$sqlite_version_major" != x3
14988    then
14989        as_fn_error $? "Version mismatch: sqlite3_drv requires libsqlite version 3" "$LINENO" 5
14990    fi
14991
14992    libsqlite3_drv_cppflags="$SQLITE3_CPPFLAGS $CPPFLAGS"
14993    libsqlite3_drv_libs="$SQLITE3_LIBS $LIBS"
14994    libsqlite3_drv_ldflags="$SQLITE3_LDFLAGS $LDFLAGS"
14995
14996
14997
14998    sqlite3_drv=yes
14999    storage_drv_subdirs="$storage_drv_subdirs tools.sqlite_drv"
15000fi
15001done
15002
15003 if  test x"$db4_drv" = xyes ; then
15004  BUILD_DB4_DRV_TRUE=
15005  BUILD_DB4_DRV_FALSE='#'
15006else
15007  BUILD_DB4_DRV_TRUE='#'
15008  BUILD_DB4_DRV_FALSE=
15009fi
15010
15011 if  test x"$db3_drv" = xyes ; then
15012  BUILD_DB3_DRV_TRUE=
15013  BUILD_DB3_DRV_FALSE='#'
15014else
15015  BUILD_DB3_DRV_TRUE='#'
15016  BUILD_DB3_DRV_FALSE=
15017fi
15018
15019 if  test x"$hash_drv" = xyes ; then
15020  BUILD_HASH_DRV_TRUE=
15021  BUILD_HASH_DRV_FALSE='#'
15022else
15023  BUILD_HASH_DRV_TRUE='#'
15024  BUILD_HASH_DRV_FALSE=
15025fi
15026
15027 if  test x"$sqlite_drv" = xyes ; then
15028  BUILD_SQLITE_DRV_TRUE=
15029  BUILD_SQLITE_DRV_FALSE='#'
15030else
15031  BUILD_SQLITE_DRV_TRUE='#'
15032  BUILD_SQLITE_DRV_FALSE=
15033fi
15034
15035 if  test x"$sqlite3_drv" = xyes ; then
15036  BUILD_SQLITE3_DRV_TRUE=
15037  BUILD_SQLITE3_DRV_FALSE='#'
15038else
15039  BUILD_SQLITE3_DRV_TRUE='#'
15040  BUILD_SQLITE3_DRV_FALSE=
15041fi
15042
15043 if  test x"$mysql_drv" = xyes ; then
15044  BUILD_MYSQL_DRV_TRUE=
15045  BUILD_MYSQL_DRV_FALSE='#'
15046else
15047  BUILD_MYSQL_DRV_TRUE='#'
15048  BUILD_MYSQL_DRV_FALSE=
15049fi
15050
15051 if  test x"$pgsql_drv" = xyes ; then
15052  BUILD_PGSQL_DRV_TRUE=
15053  BUILD_PGSQL_DRV_FALSE='#'
15054else
15055  BUILD_PGSQL_DRV_TRUE='#'
15056  BUILD_PGSQL_DRV_FALSE=
15057fi
15058
15059 if  test x"$static_driver" = xyes ; then
15060  STATIC_DRIVER_TRUE=
15061  STATIC_DRIVER_FALSE='#'
15062else
15063  STATIC_DRIVER_TRUE='#'
15064  STATIC_DRIVER_FALSE=
15065fi
15066
15067 if  test x"$static_driver" = xno ; then
15068  DYNAMIC_DRIVER_TRUE=
15069  DYNAMIC_DRIVER_FALSE='#'
15070else
15071  DYNAMIC_DRIVER_TRUE='#'
15072  DYNAMIC_DRIVER_FALSE=
15073fi
15074
15075 if  test x"$enable_external_lookup" = xyes ; then
15076  BUILD_EXT_LOOKUP_TRUE=
15077  BUILD_EXT_LOOKUP_FALSE='#'
15078else
15079  BUILD_EXT_LOOKUP_TRUE='#'
15080  BUILD_EXT_LOOKUP_FALSE=
15081fi
15082
15083
15084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building a single, static storage driver" >&5
15085$as_echo_n "checking whether we are building a single, static storage driver... " >&6; }
15086
15087if test x"$static_driver" = xyes
15088then
15089
15090$as_echo "#define STATIC_DRIVER 1" >>confdefs.h
15091
15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15093$as_echo "yes" >&6; }
15094CPPFLAGS="$CPPFLAGS $libmysql_drv_cppflags $libpgsql_drv_cppflags $libsqlite_drv_cppflags $libsqlite3_drv_cppflags $libhash_drv_cppflags"
15095LIBS="$LIBS $libmysql_drv_libs $libpgsql_drv_libs $libsqlite_drv_libs $libsqlite3_drv_libs $libhash_drv_libs"
15096LDFLAGS="$LDFLAGS $libmysql_drv_ldflags $libpgsql_drv_ldflags $libsqlite_drv_ldflags $libsqlite3_drv_ldflags $libhash_drv_ldflags"
15097else
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099$as_echo "no" >&6; }
15100fi
15101
15102
15103
15104if test x"$storage_drv_subdirs" = x
15105then
15106    as_fn_error $? "no valid storage drivers specified" "$LINENO" 5
15107fi
15108
15109if test x"$enable_daemon" = xyes && test x"$mysql_drv" != xyes && test x"$pgsql_drv" != xyes && test x"$hash_drv" != xyes
15110then
15111  as_fn_error $? "daemon mode requires one of the following storage drivers: mysql_drv pgsql_drv hash_drv" "$LINENO" 5
15112fi
15113
15114
15115#---------------------------------------------------------
15116#   Libraries (other)
15117#
15118
15119#---------------------------------------------------------
15120#   Documentation generation tools
15121#
15122### AC_CHECK_PROG([HAVE_DOXYGEN], [doxygen], [yes], [no])
15123### AC_CHECK_PROG([HAVE_DOT], [dot], [yes], [no])
15124### AM_CONDITIONAL([HAVE_DOXYGEN], [ test x"$HAVE_DOXYGEN" = xyes ])
15125
15126#----------------------------------------------------------
15127# final cut
15128#
15129
15130
15131if test x$GCC = xyes
15132then
15133
15134#
15135# Enable Compiler Warnings
15136#
15137
15138# Check whether --enable-warnings was given.
15139if test "${enable_warnings+set}" = set; then :
15140  enableval=$enable_warnings;
15141fi
15142
15143
15144    gcc_param=",$enable_warnings,"
15145    gcc_enable_warnings=`echo $gcc_param|grep ',no,' >/dev/null 2>&1 && echo no || echo yes`
15146    gcc_enable_error=`echo $gcc_param|grep ',error,' >/dev/null 2>&1 && echo yes || echo no`
15147    gcc_enable_strict_proto=`echo $gcc_param|grep ',proto,' >/dev/null 2>&1 && echo yes || echo no`
15148
15149        warn_flags='-Wall -Wmissing-prototypes -Wmissing-declarations'
15150
15151    if test x$gcc_enable_strict_proto != xno
15152    then
15153        warn_flags="$warn_flags -Wstrict-prototypes"
15154    fi
15155
15156    if test x$gcc_enable_error != xno
15157    then
15158        warn_flags="$warn_flags -Werror"
15159    fi
15160
15161    if test x$gcc_enable_warnings != xno
15162    then
15163        CFLAGS="$CFLAGS $warn_flags"
15164        CXXFLAGS="$CXXFLAGS $warn_flags"
15165    fi
15166
15167#
15168#   Enable Profiling Support
15169#
15170# Check whether --enable-profiling was given.
15171if test "${enable_profiling+set}" = set; then :
15172  enableval=$enable_profiling;
15173fi
15174
15175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling output" >&5
15176$as_echo_n "checking whether to enable profiling output... " >&6; }
15177case x"$enable_profiling" in
15178    xyes)   # profiling output enabled explicity
15179            ;;
15180    xno)    # profiling output disabled explicity
15181            ;;
15182    x)      # profiling output disabled by default
15183            enable_profiling=no
15184            ;;
15185    *)      as_fn_error $? "unexpected value $enable_profiling for --{enable,disable}-profiling configure option" "$LINENO" 5
15186            ;;
15187esac
15188if test x"$enable_profiling" != xyes
15189then
15190    enable_profiling=no
15191else
15192    enable_profiling=yes    # overkill, but convenient
15193     CFLAGS="$CFLAGS -pg"
15194     CXXFLAGS="$CXXFLAGS -pg"
15195fi
15196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
15197$as_echo "$enable_profiling" >&6; }
15198
15199# GCC
15200fi
15201
15202
15203
15204ac_config_headers="$ac_config_headers src/auto-config.h"
15205
15206
15207
15208
15209ac_config_files="$ac_config_files Makefile src/tools/Makefile webui/Makefile m4/Makefile"
15210
15211ac_config_files="$ac_config_files src/tools.mysql_drv/Makefile"
15212
15213ac_config_files="$ac_config_files txt/Makefile src/tools.pgsql_drv/Makefile"
15214
15215ac_config_files="$ac_config_files src/Makefile webui/cgi-bin/templates/Makefile"
15216
15217ac_config_files="$ac_config_files webui/cgi-bin/templates/cs/Makefile"
15218
15219ac_config_files="$ac_config_files webui/cgi-bin/templates/de/Makefile"
15220
15221ac_config_files="$ac_config_files webui/cgi-bin/templates/es-es/Makefile"
15222
15223ac_config_files="$ac_config_files webui/cgi-bin/templates/fr/Makefile"
15224
15225ac_config_files="$ac_config_files webui/cgi-bin/templates/he/Makefile"
15226
15227ac_config_files="$ac_config_files webui/cgi-bin/templates/pt-br/Makefile"
15228
15229ac_config_files="$ac_config_files webui/cgi-bin/templates/ro/Makefile"
15230
15231ac_config_files="$ac_config_files webui/cgi-bin/templates/ru/Makefile"
15232
15233ac_config_files="$ac_config_files src/tools.sqlite_drv/Makefile man/Makefile"
15234
15235ac_config_files="$ac_config_files src/dspam.pc src/dspam-uninstalled.pc"
15236
15237ac_config_files="$ac_config_files doc/Makefile src/tools.hash_drv/Makefile"
15238
15239ac_config_files="$ac_config_files webui/cgi-bin/Makefile webui/htdocs/Makefile"
15240
15241ac_config_files="$ac_config_files contrib/Makefile"
15242
15243cat >confcache <<\_ACEOF
15244# This file is a shell script that caches the results of configure
15245# tests run on this system so they can be shared between configure
15246# scripts and configure runs, see configure's option --config-cache.
15247# It is not useful on other systems.  If it contains results you don't
15248# want to keep, you may remove or edit it.
15249#
15250# config.status only pays attention to the cache file if you give it
15251# the --recheck option to rerun configure.
15252#
15253# `ac_cv_env_foo' variables (set or unset) will be overridden when
15254# loading this file, other *unset* `ac_cv_foo' will be assigned the
15255# following values.
15256
15257_ACEOF
15258
15259# The following way of writing the cache mishandles newlines in values,
15260# but we know of no workaround that is simple, portable, and efficient.
15261# So, we kill variables containing newlines.
15262# Ultrix sh set writes to stderr and can't be redirected directly,
15263# and sets the high bit in the cache file unless we assign to the vars.
15264(
15265  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15266    eval ac_val=\$$ac_var
15267    case $ac_val in #(
15268    *${as_nl}*)
15269      case $ac_var in #(
15270      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15272      esac
15273      case $ac_var in #(
15274      _ | IFS | as_nl) ;; #(
15275      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15276      *) { eval $ac_var=; unset $ac_var;} ;;
15277      esac ;;
15278    esac
15279  done
15280
15281  (set) 2>&1 |
15282    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15283    *${as_nl}ac_space=\ *)
15284      # `set' does not quote correctly, so add quotes: double-quote
15285      # substitution turns \\\\ into \\, and sed turns \\ into \.
15286      sed -n \
15287        "s/'/'\\\\''/g;
15288          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15289      ;; #(
15290    *)
15291      # `set' quotes correctly as required by POSIX, so do not add quotes.
15292      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15293      ;;
15294    esac |
15295    sort
15296) |
15297  sed '
15298     /^ac_cv_env_/b end
15299     t clear
15300     :clear
15301     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15302     t end
15303     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15304     :end' >>confcache
15305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15306  if test -w "$cache_file"; then
15307    if test "x$cache_file" != "x/dev/null"; then
15308      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15309$as_echo "$as_me: updating cache $cache_file" >&6;}
15310      if test ! -f "$cache_file" || test -h "$cache_file"; then
15311        cat confcache >"$cache_file"
15312      else
15313        case $cache_file in #(
15314        */* | ?:*)
15315          mv -f confcache "$cache_file"$$ &&
15316          mv -f "$cache_file"$$ "$cache_file" ;; #(
15317        *)
15318          mv -f confcache "$cache_file" ;;
15319        esac
15320      fi
15321    fi
15322  else
15323    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15324$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15325  fi
15326fi
15327rm -f confcache
15328
15329test "x$prefix" = xNONE && prefix=$ac_default_prefix
15330# Let make expand exec_prefix.
15331test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15332
15333DEFS=-DHAVE_CONFIG_H
15334
15335ac_libobjs=
15336ac_ltlibobjs=
15337U=
15338for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15339  # 1. Remove the extension, and $U if already installed.
15340  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15341  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15342  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15343  #    will be set to the directory where LIBOBJS objects are built.
15344  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15345  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15346done
15347LIBOBJS=$ac_libobjs
15348
15349LTLIBOBJS=$ac_ltlibobjs
15350
15351
15352 if test -n "$EXEEXT"; then
15353  am__EXEEXT_TRUE=
15354  am__EXEEXT_FALSE='#'
15355else
15356  am__EXEEXT_TRUE='#'
15357  am__EXEEXT_FALSE=
15358fi
15359
15360if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15361  as_fn_error $? "conditional \"AMDEP\" was never defined.
15362Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363fi
15364if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15365  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15366Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367fi
15368if test -z "${BUILD_DB4_DRV_TRUE}" && test -z "${BUILD_DB4_DRV_FALSE}"; then
15369  as_fn_error $? "conditional \"BUILD_DB4_DRV\" was never defined.
15370Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371fi
15372if test -z "${BUILD_DB3_DRV_TRUE}" && test -z "${BUILD_DB3_DRV_FALSE}"; then
15373  as_fn_error $? "conditional \"BUILD_DB3_DRV\" was never defined.
15374Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375fi
15376if test -z "${BUILD_HASH_DRV_TRUE}" && test -z "${BUILD_HASH_DRV_FALSE}"; then
15377  as_fn_error $? "conditional \"BUILD_HASH_DRV\" was never defined.
15378Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379fi
15380if test -z "${BUILD_SQLITE_DRV_TRUE}" && test -z "${BUILD_SQLITE_DRV_FALSE}"; then
15381  as_fn_error $? "conditional \"BUILD_SQLITE_DRV\" was never defined.
15382Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383fi
15384if test -z "${BUILD_SQLITE3_DRV_TRUE}" && test -z "${BUILD_SQLITE3_DRV_FALSE}"; then
15385  as_fn_error $? "conditional \"BUILD_SQLITE3_DRV\" was never defined.
15386Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387fi
15388if test -z "${BUILD_MYSQL_DRV_TRUE}" && test -z "${BUILD_MYSQL_DRV_FALSE}"; then
15389  as_fn_error $? "conditional \"BUILD_MYSQL_DRV\" was never defined.
15390Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391fi
15392if test -z "${BUILD_PGSQL_DRV_TRUE}" && test -z "${BUILD_PGSQL_DRV_FALSE}"; then
15393  as_fn_error $? "conditional \"BUILD_PGSQL_DRV\" was never defined.
15394Usually this means the macro was only invoked conditionally." "$LINENO" 5
15395fi
15396if test -z "${STATIC_DRIVER_TRUE}" && test -z "${STATIC_DRIVER_FALSE}"; then
15397  as_fn_error $? "conditional \"STATIC_DRIVER\" was never defined.
15398Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399fi
15400if test -z "${DYNAMIC_DRIVER_TRUE}" && test -z "${DYNAMIC_DRIVER_FALSE}"; then
15401  as_fn_error $? "conditional \"DYNAMIC_DRIVER\" was never defined.
15402Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403fi
15404if test -z "${BUILD_EXT_LOOKUP_TRUE}" && test -z "${BUILD_EXT_LOOKUP_FALSE}"; then
15405  as_fn_error $? "conditional \"BUILD_EXT_LOOKUP\" was never defined.
15406Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407fi
15408
15409: "${CONFIG_STATUS=./config.status}"
15410ac_write_fail=0
15411ac_clean_files_save=$ac_clean_files
15412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15413{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15414$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15415as_write_fail=0
15416cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15417#! $SHELL
15418# Generated by $as_me.
15419# Run this file to recreate the current configuration.
15420# Compiler output produced by configure, useful for debugging
15421# configure, is in config.log if it exists.
15422
15423debug=false
15424ac_cs_recheck=false
15425ac_cs_silent=false
15426
15427SHELL=\${CONFIG_SHELL-$SHELL}
15428export SHELL
15429_ASEOF
15430cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15431## -------------------- ##
15432## M4sh Initialization. ##
15433## -------------------- ##
15434
15435# Be more Bourne compatible
15436DUALCASE=1; export DUALCASE # for MKS sh
15437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15438  emulate sh
15439  NULLCMD=:
15440  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15441  # is contrary to our usage.  Disable this feature.
15442  alias -g '${1+"$@"}'='"$@"'
15443  setopt NO_GLOB_SUBST
15444else
15445  case `(set -o) 2>/dev/null` in #(
15446  *posix*) :
15447    set -o posix ;; #(
15448  *) :
15449     ;;
15450esac
15451fi
15452
15453
15454as_nl='
15455'
15456export as_nl
15457# Printing a long string crashes Solaris 7 /usr/bin/printf.
15458as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15461# Prefer a ksh shell builtin over an external printf program on Solaris,
15462# but without wasting forks for bash or zsh.
15463if test -z "$BASH_VERSION$ZSH_VERSION" \
15464    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15465  as_echo='print -r --'
15466  as_echo_n='print -rn --'
15467elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15468  as_echo='printf %s\n'
15469  as_echo_n='printf %s'
15470else
15471  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15472    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15473    as_echo_n='/usr/ucb/echo -n'
15474  else
15475    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15476    as_echo_n_body='eval
15477      arg=$1;
15478      case $arg in #(
15479      *"$as_nl"*)
15480        expr "X$arg" : "X\\(.*\\)$as_nl";
15481        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15482      esac;
15483      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15484    '
15485    export as_echo_n_body
15486    as_echo_n='sh -c $as_echo_n_body as_echo'
15487  fi
15488  export as_echo_body
15489  as_echo='sh -c $as_echo_body as_echo'
15490fi
15491
15492# The user is always right.
15493if test "${PATH_SEPARATOR+set}" != set; then
15494  PATH_SEPARATOR=:
15495  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15496    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15497      PATH_SEPARATOR=';'
15498  }
15499fi
15500
15501
15502# IFS
15503# We need space, tab and new line, in precisely that order.  Quoting is
15504# there to prevent editors from complaining about space-tab.
15505# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15506# splitting by setting IFS to empty value.)
15507IFS=" ""        $as_nl"
15508
15509# Find who we are.  Look in the path if we contain no directory separator.
15510as_myself=
15511case $0 in #((
15512  *[\\/]* ) as_myself=$0 ;;
15513  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15514for as_dir in $PATH
15515do
15516  IFS=$as_save_IFS
15517  test -z "$as_dir" && as_dir=.
15518    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15519  done
15520IFS=$as_save_IFS
15521
15522     ;;
15523esac
15524# We did not find ourselves, most probably we were run as `sh COMMAND'
15525# in which case we are not to be found in the path.
15526if test "x$as_myself" = x; then
15527  as_myself=$0
15528fi
15529if test ! -f "$as_myself"; then
15530  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15531  exit 1
15532fi
15533
15534# Unset variables that we do not need and which cause bugs (e.g. in
15535# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15536# suppresses any "Segmentation fault" message there.  '((' could
15537# trigger a bug in pdksh 5.2.14.
15538for as_var in BASH_ENV ENV MAIL MAILPATH
15539do eval test x\${$as_var+set} = xset \
15540  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15541done
15542PS1='$ '
15543PS2='> '
15544PS4='+ '
15545
15546# NLS nuisances.
15547LC_ALL=C
15548export LC_ALL
15549LANGUAGE=C
15550export LANGUAGE
15551
15552# CDPATH.
15553(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15554
15555
15556# as_fn_error STATUS ERROR [LINENO LOG_FD]
15557# ----------------------------------------
15558# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15559# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15560# script with STATUS, using 1 if that was 0.
15561as_fn_error ()
15562{
15563  as_status=$1; test $as_status -eq 0 && as_status=1
15564  if test "$4"; then
15565    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15566    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15567  fi
15568  $as_echo "$as_me: error: $2" >&2
15569  as_fn_exit $as_status
15570} # as_fn_error
15571
15572
15573# as_fn_set_status STATUS
15574# -----------------------
15575# Set $? to STATUS, without forking.
15576as_fn_set_status ()
15577{
15578  return $1
15579} # as_fn_set_status
15580
15581# as_fn_exit STATUS
15582# -----------------
15583# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15584as_fn_exit ()
15585{
15586  set +e
15587  as_fn_set_status $1
15588  exit $1
15589} # as_fn_exit
15590
15591# as_fn_unset VAR
15592# ---------------
15593# Portably unset VAR.
15594as_fn_unset ()
15595{
15596  { eval $1=; unset $1;}
15597}
15598as_unset=as_fn_unset
15599# as_fn_append VAR VALUE
15600# ----------------------
15601# Append the text in VALUE to the end of the definition contained in VAR. Take
15602# advantage of any shell optimizations that allow amortized linear growth over
15603# repeated appends, instead of the typical quadratic growth present in naive
15604# implementations.
15605if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15606  eval 'as_fn_append ()
15607  {
15608    eval $1+=\$2
15609  }'
15610else
15611  as_fn_append ()
15612  {
15613    eval $1=\$$1\$2
15614  }
15615fi # as_fn_append
15616
15617# as_fn_arith ARG...
15618# ------------------
15619# Perform arithmetic evaluation on the ARGs, and store the result in the
15620# global $as_val. Take advantage of shells that can avoid forks. The arguments
15621# must be portable across $(()) and expr.
15622if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15623  eval 'as_fn_arith ()
15624  {
15625    as_val=$(( $* ))
15626  }'
15627else
15628  as_fn_arith ()
15629  {
15630    as_val=`expr "$@" || test $? -eq 1`
15631  }
15632fi # as_fn_arith
15633
15634
15635if expr a : '\(a\)' >/dev/null 2>&1 &&
15636   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15637  as_expr=expr
15638else
15639  as_expr=false
15640fi
15641
15642if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15643  as_basename=basename
15644else
15645  as_basename=false
15646fi
15647
15648if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15649  as_dirname=dirname
15650else
15651  as_dirname=false
15652fi
15653
15654as_me=`$as_basename -- "$0" ||
15655$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15656         X"$0" : 'X\(//\)$' \| \
15657         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15658$as_echo X/"$0" |
15659    sed '/^.*\/\([^/][^/]*\)\/*$/{
15660            s//\1/
15661            q
15662          }
15663          /^X\/\(\/\/\)$/{
15664            s//\1/
15665            q
15666          }
15667          /^X\/\(\/\).*/{
15668            s//\1/
15669            q
15670          }
15671          s/.*/./; q'`
15672
15673# Avoid depending upon Character Ranges.
15674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15677as_cr_digits='0123456789'
15678as_cr_alnum=$as_cr_Letters$as_cr_digits
15679
15680ECHO_C= ECHO_N= ECHO_T=
15681case `echo -n x` in #(((((
15682-n*)
15683  case `echo 'xy\c'` in
15684  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15685  xy)  ECHO_C='\c';;
15686  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15687       ECHO_T=' ';;
15688  esac;;
15689*)
15690  ECHO_N='-n';;
15691esac
15692
15693rm -f conf$$ conf$$.exe conf$$.file
15694if test -d conf$$.dir; then
15695  rm -f conf$$.dir/conf$$.file
15696else
15697  rm -f conf$$.dir
15698  mkdir conf$$.dir 2>/dev/null
15699fi
15700if (echo >conf$$.file) 2>/dev/null; then
15701  if ln -s conf$$.file conf$$ 2>/dev/null; then
15702    as_ln_s='ln -s'
15703    # ... but there are two gotchas:
15704    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15705    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15706    # In both cases, we have to default to `cp -p'.
15707    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15708      as_ln_s='cp -p'
15709  elif ln conf$$.file conf$$ 2>/dev/null; then
15710    as_ln_s=ln
15711  else
15712    as_ln_s='cp -p'
15713  fi
15714else
15715  as_ln_s='cp -p'
15716fi
15717rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15718rmdir conf$$.dir 2>/dev/null
15719
15720
15721# as_fn_mkdir_p
15722# -------------
15723# Create "$as_dir" as a directory, including parents if necessary.
15724as_fn_mkdir_p ()
15725{
15726
15727  case $as_dir in #(
15728  -*) as_dir=./$as_dir;;
15729  esac
15730  test -d "$as_dir" || eval $as_mkdir_p || {
15731    as_dirs=
15732    while :; do
15733      case $as_dir in #(
15734      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15735      *) as_qdir=$as_dir;;
15736      esac
15737      as_dirs="'$as_qdir' $as_dirs"
15738      as_dir=`$as_dirname -- "$as_dir" ||
15739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15740         X"$as_dir" : 'X\(//\)[^/]' \| \
15741         X"$as_dir" : 'X\(//\)$' \| \
15742         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15743$as_echo X"$as_dir" |
15744    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15745            s//\1/
15746            q
15747          }
15748          /^X\(\/\/\)[^/].*/{
15749            s//\1/
15750            q
15751          }
15752          /^X\(\/\/\)$/{
15753            s//\1/
15754            q
15755          }
15756          /^X\(\/\).*/{
15757            s//\1/
15758            q
15759          }
15760          s/.*/./; q'`
15761      test -d "$as_dir" && break
15762    done
15763    test -z "$as_dirs" || eval "mkdir $as_dirs"
15764  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15765
15766
15767} # as_fn_mkdir_p
15768if mkdir -p . 2>/dev/null; then
15769  as_mkdir_p='mkdir -p "$as_dir"'
15770else
15771  test -d ./-p && rmdir ./-p
15772  as_mkdir_p=false
15773fi
15774
15775if test -x / >/dev/null 2>&1; then
15776  as_test_x='test -x'
15777else
15778  if ls -dL / >/dev/null 2>&1; then
15779    as_ls_L_option=L
15780  else
15781    as_ls_L_option=
15782  fi
15783  as_test_x='
15784    eval sh -c '\''
15785      if test -d "$1"; then
15786        test -d "$1/.";
15787      else
15788        case $1 in #(
15789        -*)set "./$1";;
15790        esac;
15791        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15792        ???[sx]*):;;*)false;;esac;fi
15793    '\'' sh
15794  '
15795fi
15796as_executable_p=$as_test_x
15797
15798# Sed expression to map a string onto a valid CPP name.
15799as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15800
15801# Sed expression to map a string onto a valid variable name.
15802as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15803
15804
15805exec 6>&1
15806## ----------------------------------- ##
15807## Main body of $CONFIG_STATUS script. ##
15808## ----------------------------------- ##
15809_ASEOF
15810test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15811
15812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813# Save the log message, to keep $0 and so on meaningful, and to
15814# report actual input values of CONFIG_FILES etc. instead of their
15815# values after options handling.
15816ac_log="
15817This file was extended by dspam $as_me 3.10.2, which was
15818generated by GNU Autoconf 2.68.  Invocation command line was
15819
15820  CONFIG_FILES    = $CONFIG_FILES
15821  CONFIG_HEADERS  = $CONFIG_HEADERS
15822  CONFIG_LINKS    = $CONFIG_LINKS
15823  CONFIG_COMMANDS = $CONFIG_COMMANDS
15824  $ $0 $@
15825
15826on `(hostname || uname -n) 2>/dev/null | sed 1q`
15827"
15828
15829_ACEOF
15830
15831case $ac_config_files in *"
15832"*) set x $ac_config_files; shift; ac_config_files=$*;;
15833esac
15834
15835case $ac_config_headers in *"
15836"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15837esac
15838
15839
15840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15841# Files that config.status was made for.
15842config_files="$ac_config_files"
15843config_headers="$ac_config_headers"
15844config_commands="$ac_config_commands"
15845
15846_ACEOF
15847
15848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15849ac_cs_usage="\
15850\`$as_me' instantiates files and other configuration actions
15851from templates according to the current configuration.  Unless the files
15852and actions are specified as TAGs, all are instantiated by default.
15853
15854Usage: $0 [OPTION]... [TAG]...
15855
15856  -h, --help       print this help, then exit
15857  -V, --version    print version number and configuration settings, then exit
15858      --config     print configuration, then exit
15859  -q, --quiet, --silent
15860                   do not print progress messages
15861  -d, --debug      don't remove temporary files
15862      --recheck    update $as_me by reconfiguring in the same conditions
15863      --file=FILE[:TEMPLATE]
15864                   instantiate the configuration file FILE
15865      --header=FILE[:TEMPLATE]
15866                   instantiate the configuration header FILE
15867
15868Configuration files:
15869$config_files
15870
15871Configuration headers:
15872$config_headers
15873
15874Configuration commands:
15875$config_commands
15876
15877Report bugs to <dspam-devel@lists.sourceforge.net>."
15878
15879_ACEOF
15880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15881ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15882ac_cs_version="\\
15883dspam config.status 3.10.2
15884configured by $0, generated by GNU Autoconf 2.68,
15885  with options \\"\$ac_cs_config\\"
15886
15887Copyright (C) 2010 Free Software Foundation, Inc.
15888This config.status script is free software; the Free Software Foundation
15889gives unlimited permission to copy, distribute and modify it."
15890
15891ac_pwd='$ac_pwd'
15892srcdir='$srcdir'
15893INSTALL='$INSTALL'
15894MKDIR_P='$MKDIR_P'
15895AWK='$AWK'
15896test -n "\$AWK" || AWK=awk
15897_ACEOF
15898
15899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15900# The default lists apply if the user does not specify any file.
15901ac_need_defaults=:
15902while test $# != 0
15903do
15904  case $1 in
15905  --*=?*)
15906    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15907    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15908    ac_shift=:
15909    ;;
15910  --*=)
15911    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15912    ac_optarg=
15913    ac_shift=:
15914    ;;
15915  *)
15916    ac_option=$1
15917    ac_optarg=$2
15918    ac_shift=shift
15919    ;;
15920  esac
15921
15922  case $ac_option in
15923  # Handling of the options.
15924  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15925    ac_cs_recheck=: ;;
15926  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15927    $as_echo "$ac_cs_version"; exit ;;
15928  --config | --confi | --conf | --con | --co | --c )
15929    $as_echo "$ac_cs_config"; exit ;;
15930  --debug | --debu | --deb | --de | --d | -d )
15931    debug=: ;;
15932  --file | --fil | --fi | --f )
15933    $ac_shift
15934    case $ac_optarg in
15935    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15936    '') as_fn_error $? "missing file argument" ;;
15937    esac
15938    as_fn_append CONFIG_FILES " '$ac_optarg'"
15939    ac_need_defaults=false;;
15940  --header | --heade | --head | --hea )
15941    $ac_shift
15942    case $ac_optarg in
15943    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15944    esac
15945    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15946    ac_need_defaults=false;;
15947  --he | --h)
15948    # Conflict between --help and --header
15949    as_fn_error $? "ambiguous option: \`$1'
15950Try \`$0 --help' for more information.";;
15951  --help | --hel | -h )
15952    $as_echo "$ac_cs_usage"; exit ;;
15953  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15954  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15955    ac_cs_silent=: ;;
15956
15957  # This is an error.
15958  -*) as_fn_error $? "unrecognized option: \`$1'
15959Try \`$0 --help' for more information." ;;
15960
15961  *) as_fn_append ac_config_targets " $1"
15962     ac_need_defaults=false ;;
15963
15964  esac
15965  shift
15966done
15967
15968ac_configure_extra_args=
15969
15970if $ac_cs_silent; then
15971  exec 6>/dev/null
15972  ac_configure_extra_args="$ac_configure_extra_args --silent"
15973fi
15974
15975_ACEOF
15976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15977if \$ac_cs_recheck; then
15978  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15979  shift
15980  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15981  CONFIG_SHELL='$SHELL'
15982  export CONFIG_SHELL
15983  exec "\$@"
15984fi
15985
15986_ACEOF
15987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15988exec 5>>config.log
15989{
15990  echo
15991  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15992## Running $as_me. ##
15993_ASBOX
15994  $as_echo "$ac_log"
15995} >&5
15996
15997_ACEOF
15998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15999#
16000# INIT-COMMANDS
16001#
16002AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16003
16004
16005# The HP-UX ksh and POSIX shell print the target directory to stdout
16006# if CDPATH is set.
16007(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16008
16009sed_quote_subst='$sed_quote_subst'
16010double_quote_subst='$double_quote_subst'
16011delay_variable_subst='$delay_variable_subst'
16012macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16013macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16014enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16015enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16016pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16017enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16018SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16019ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16020host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16021host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16022host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16023build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16024build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16025build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16026SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16027Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16028GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16029EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16030FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16031LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16032NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16033LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16034max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16035ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16036exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16037lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16038lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16039lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16040lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16041lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16042reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16043reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16044OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16045deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16046file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16047file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16048want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16049DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16050sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16051AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16052AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16053archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16054STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16055RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16056old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16057old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16058old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16059lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16060CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16061CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16062compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16063GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16064lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16065lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16066lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16067lt_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"`'
16068nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16069lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16070objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16071MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16072lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16073lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16074lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16075lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16076lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16077need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16078MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16079DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16080NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16081LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16082OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16083OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16084libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16085shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16086extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16087archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16088enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16089export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16090whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16091compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16092old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16093old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16094archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16095archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16096module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16097module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16098with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16099allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16100no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16101hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16102hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16103hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16104hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16105hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16106hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16107hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16108hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16109inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16110link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16111always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16112export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16113exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16114include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16115prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16116postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16117file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16118variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16119need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16120need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16121version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16122runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16123shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16124shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16125libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16126library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16127soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16128install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16129postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16130postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16131finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16132finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16133hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16134sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16135sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16136hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16137enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16138enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16139enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16140old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16141striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16142
16143LTCC='$LTCC'
16144LTCFLAGS='$LTCFLAGS'
16145compiler='$compiler_DEFAULT'
16146
16147# A function that is used when there is no print builtin or printf.
16148func_fallback_echo ()
16149{
16150  eval 'cat <<_LTECHO_EOF
16151\$1
16152_LTECHO_EOF'
16153}
16154
16155# Quote evaled strings.
16156for var in SHELL \
16157ECHO \
16158SED \
16159GREP \
16160EGREP \
16161FGREP \
16162LD \
16163NM \
16164LN_S \
16165lt_SP2NL \
16166lt_NL2SP \
16167reload_flag \
16168OBJDUMP \
16169deplibs_check_method \
16170file_magic_cmd \
16171file_magic_glob \
16172want_nocaseglob \
16173DLLTOOL \
16174sharedlib_from_linklib_cmd \
16175AR \
16176AR_FLAGS \
16177archiver_list_spec \
16178STRIP \
16179RANLIB \
16180CC \
16181CFLAGS \
16182compiler \
16183lt_cv_sys_global_symbol_pipe \
16184lt_cv_sys_global_symbol_to_cdecl \
16185lt_cv_sys_global_symbol_to_c_name_address \
16186lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16187nm_file_list_spec \
16188lt_prog_compiler_no_builtin_flag \
16189lt_prog_compiler_pic \
16190lt_prog_compiler_wl \
16191lt_prog_compiler_static \
16192lt_cv_prog_compiler_c_o \
16193need_locks \
16194MANIFEST_TOOL \
16195DSYMUTIL \
16196NMEDIT \
16197LIPO \
16198OTOOL \
16199OTOOL64 \
16200shrext_cmds \
16201export_dynamic_flag_spec \
16202whole_archive_flag_spec \
16203compiler_needs_object \
16204with_gnu_ld \
16205allow_undefined_flag \
16206no_undefined_flag \
16207hardcode_libdir_flag_spec \
16208hardcode_libdir_flag_spec_ld \
16209hardcode_libdir_separator \
16210exclude_expsyms \
16211include_expsyms \
16212file_list_spec \
16213variables_saved_for_relink \
16214libname_spec \
16215library_names_spec \
16216soname_spec \
16217install_override_mode \
16218finish_eval \
16219old_striplib \
16220striplib; do
16221    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16222    *[\\\\\\\`\\"\\\$]*)
16223      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16224      ;;
16225    *)
16226      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16227      ;;
16228    esac
16229done
16230
16231# Double-quote double-evaled strings.
16232for var in reload_cmds \
16233old_postinstall_cmds \
16234old_postuninstall_cmds \
16235old_archive_cmds \
16236extract_expsyms_cmds \
16237old_archive_from_new_cmds \
16238old_archive_from_expsyms_cmds \
16239archive_cmds \
16240archive_expsym_cmds \
16241module_cmds \
16242module_expsym_cmds \
16243export_symbols_cmds \
16244prelink_cmds \
16245postlink_cmds \
16246postinstall_cmds \
16247postuninstall_cmds \
16248finish_cmds \
16249sys_lib_search_path_spec \
16250sys_lib_dlsearch_path_spec; do
16251    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16252    *[\\\\\\\`\\"\\\$]*)
16253      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16254      ;;
16255    *)
16256      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16257      ;;
16258    esac
16259done
16260
16261ac_aux_dir='$ac_aux_dir'
16262xsi_shell='$xsi_shell'
16263lt_shell_append='$lt_shell_append'
16264
16265# See if we are running on zsh, and set the options which allow our
16266# commands through without removal of \ escapes INIT.
16267if test -n "\${ZSH_VERSION+set}" ; then
16268   setopt NO_GLOB_SUBST
16269fi
16270
16271
16272    PACKAGE='$PACKAGE'
16273    VERSION='$VERSION'
16274    TIMESTAMP='$TIMESTAMP'
16275    RM='$RM'
16276    ofile='$ofile'
16277
16278
16279
16280
16281_ACEOF
16282
16283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284
16285# Handling of arguments.
16286for ac_config_target in $ac_config_targets
16287do
16288  case $ac_config_target in
16289    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16290    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16291    "src/auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/auto-config.h" ;;
16292    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16293    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16294    "webui/Makefile") CONFIG_FILES="$CONFIG_FILES webui/Makefile" ;;
16295    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16296    "src/tools.mysql_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.mysql_drv/Makefile" ;;
16297    "txt/Makefile") CONFIG_FILES="$CONFIG_FILES txt/Makefile" ;;
16298    "src/tools.pgsql_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.pgsql_drv/Makefile" ;;
16299    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16300    "webui/cgi-bin/templates/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/Makefile" ;;
16301    "webui/cgi-bin/templates/cs/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/cs/Makefile" ;;
16302    "webui/cgi-bin/templates/de/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/de/Makefile" ;;
16303    "webui/cgi-bin/templates/es-es/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/es-es/Makefile" ;;
16304    "webui/cgi-bin/templates/fr/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/fr/Makefile" ;;
16305    "webui/cgi-bin/templates/he/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/he/Makefile" ;;
16306    "webui/cgi-bin/templates/pt-br/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/pt-br/Makefile" ;;
16307    "webui/cgi-bin/templates/ro/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/ro/Makefile" ;;
16308    "webui/cgi-bin/templates/ru/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/ru/Makefile" ;;
16309    "src/tools.sqlite_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.sqlite_drv/Makefile" ;;
16310    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16311    "src/dspam.pc") CONFIG_FILES="$CONFIG_FILES src/dspam.pc" ;;
16312    "src/dspam-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/dspam-uninstalled.pc" ;;
16313    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16314    "src/tools.hash_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.hash_drv/Makefile" ;;
16315    "webui/cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/Makefile" ;;
16316    "webui/htdocs/Makefile") CONFIG_FILES="$CONFIG_FILES webui/htdocs/Makefile" ;;
16317    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16318
16319  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16320  esac
16321done
16322
16323
16324# If the user did not use the arguments to specify the items to instantiate,
16325# then the envvar interface is used.  Set only those that are not.
16326# We use the long form for the default assignment because of an extremely
16327# bizarre bug on SunOS 4.1.3.
16328if $ac_need_defaults; then
16329  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16330  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16331  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16332fi
16333
16334# Have a temporary directory for convenience.  Make it in the build tree
16335# simply because there is no reason against having it here, and in addition,
16336# creating and moving files from /tmp can sometimes cause problems.
16337# Hook for its removal unless debugging.
16338# Note that there is a small window in which the directory will not be cleaned:
16339# after its creation but before its name has been assigned to `$tmp'.
16340$debug ||
16341{
16342  tmp= ac_tmp=
16343  trap 'exit_status=$?
16344  : "${ac_tmp:=$tmp}"
16345  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16346' 0
16347  trap 'as_fn_exit 1' 1 2 13 15
16348}
16349# Create a (secure) tmp directory for tmp files.
16350
16351{
16352  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16353  test -d "$tmp"
16354}  ||
16355{
16356  tmp=./conf$$-$RANDOM
16357  (umask 077 && mkdir "$tmp")
16358} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16359ac_tmp=$tmp
16360
16361# Set up the scripts for CONFIG_FILES section.
16362# No need to generate them if there are no CONFIG_FILES.
16363# This happens for instance with `./config.status config.h'.
16364if test -n "$CONFIG_FILES"; then
16365
16366
16367ac_cr=`echo X | tr X '\015'`
16368# On cygwin, bash can eat \r inside `` if the user requested igncr.
16369# But we know of no other shell where ac_cr would be empty at this
16370# point, so we can use a bashism as a fallback.
16371if test "x$ac_cr" = x; then
16372  eval ac_cr=\$\'\\r\'
16373fi
16374ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16375if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16376  ac_cs_awk_cr='\\r'
16377else
16378  ac_cs_awk_cr=$ac_cr
16379fi
16380
16381echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16382_ACEOF
16383
16384
16385{
16386  echo "cat >conf$$subs.awk <<_ACEOF" &&
16387  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16388  echo "_ACEOF"
16389} >conf$$subs.sh ||
16390  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16391ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16392ac_delim='%!_!# '
16393for ac_last_try in false false false false false :; do
16394  . ./conf$$subs.sh ||
16395    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16396
16397  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16398  if test $ac_delim_n = $ac_delim_num; then
16399    break
16400  elif $ac_last_try; then
16401    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16402  else
16403    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16404  fi
16405done
16406rm -f conf$$subs.sh
16407
16408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16409cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16410_ACEOF
16411sed -n '
16412h
16413s/^/S["/; s/!.*/"]=/
16414p
16415g
16416s/^[^!]*!//
16417:repl
16418t repl
16419s/'"$ac_delim"'$//
16420t delim
16421:nl
16422h
16423s/\(.\{148\}\)..*/\1/
16424t more1
16425s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16426p
16427n
16428b repl
16429:more1
16430s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16431p
16432g
16433s/.\{148\}//
16434t nl
16435:delim
16436h
16437s/\(.\{148\}\)..*/\1/
16438t more2
16439s/["\\]/\\&/g; s/^/"/; s/$/"/
16440p
16441b
16442:more2
16443s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16444p
16445g
16446s/.\{148\}//
16447t delim
16448' <conf$$subs.awk | sed '
16449/^[^""]/{
16450  N
16451  s/\n//
16452}
16453' >>$CONFIG_STATUS || ac_write_fail=1
16454rm -f conf$$subs.awk
16455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16456_ACAWK
16457cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16458  for (key in S) S_is_set[key] = 1
16459  FS = ""
16460
16461}
16462{
16463  line = $ 0
16464  nfields = split(line, field, "@")
16465  substed = 0
16466  len = length(field[1])
16467  for (i = 2; i < nfields; i++) {
16468    key = field[i]
16469    keylen = length(key)
16470    if (S_is_set[key]) {
16471      value = S[key]
16472      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16473      len += length(value) + length(field[++i])
16474      substed = 1
16475    } else
16476      len += 1 + keylen
16477  }
16478
16479  print line
16480}
16481
16482_ACAWK
16483_ACEOF
16484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16485if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16486  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16487else
16488  cat
16489fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16490  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16491_ACEOF
16492
16493# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16494# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16495# trailing colons and then remove the whole line if VPATH becomes empty
16496# (actually we leave an empty line to preserve line numbers).
16497if test "x$srcdir" = x.; then
16498  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16499h
16500s///
16501s/^/:/
16502s/[      ]*$/:/
16503s/:\$(srcdir):/:/g
16504s/:\${srcdir}:/:/g
16505s/:@srcdir@:/:/g
16506s/^:*//
16507s/:*$//
16508x
16509s/\(=[   ]*\).*/\1/
16510G
16511s/\n//
16512s/^[^=]*=[       ]*$//
16513}'
16514fi
16515
16516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16517fi # test -n "$CONFIG_FILES"
16518
16519# Set up the scripts for CONFIG_HEADERS section.
16520# No need to generate them if there are no CONFIG_HEADERS.
16521# This happens for instance with `./config.status Makefile'.
16522if test -n "$CONFIG_HEADERS"; then
16523cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16524BEGIN {
16525_ACEOF
16526
16527# Transform confdefs.h into an awk script `defines.awk', embedded as
16528# here-document in config.status, that substitutes the proper values into
16529# config.h.in to produce config.h.
16530
16531# Create a delimiter string that does not exist in confdefs.h, to ease
16532# handling of long lines.
16533ac_delim='%!_!# '
16534for ac_last_try in false false :; do
16535  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16536  if test -z "$ac_tt"; then
16537    break
16538  elif $ac_last_try; then
16539    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16540  else
16541    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16542  fi
16543done
16544
16545# For the awk script, D is an array of macro values keyed by name,
16546# likewise P contains macro parameters if any.  Preserve backslash
16547# newline sequences.
16548
16549ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16550sed -n '
16551s/.\{148\}/&'"$ac_delim"'/g
16552t rset
16553:rset
16554s/^[     ]*#[    ]*define[       ][      ]*/ /
16555t def
16556d
16557:def
16558s/\\$//
16559t bsnl
16560s/["\\]/\\&/g
16561s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16562D["\1"]=" \3"/p
16563s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16564d
16565:bsnl
16566s/["\\]/\\&/g
16567s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16568D["\1"]=" \3\\\\\\n"\\/p
16569t cont
16570s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16571t cont
16572d
16573:cont
16574n
16575s/.\{148\}/&'"$ac_delim"'/g
16576t clear
16577:clear
16578s/\\$//
16579t bsnlc
16580s/["\\]/\\&/g; s/^/"/; s/$/"/p
16581d
16582:bsnlc
16583s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16584b cont
16585' <confdefs.h | sed '
16586s/'"$ac_delim"'/"\\\
16587"/g' >>$CONFIG_STATUS || ac_write_fail=1
16588
16589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16590  for (key in D) D_is_set[key] = 1
16591  FS = ""
16592}
16593/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16594  line = \$ 0
16595  split(line, arg, " ")
16596  if (arg[1] == "#") {
16597    defundef = arg[2]
16598    mac1 = arg[3]
16599  } else {
16600    defundef = substr(arg[1], 2)
16601    mac1 = arg[2]
16602  }
16603  split(mac1, mac2, "(") #)
16604  macro = mac2[1]
16605  prefix = substr(line, 1, index(line, defundef) - 1)
16606  if (D_is_set[macro]) {
16607    # Preserve the white space surrounding the "#".
16608    print prefix "define", macro P[macro] D[macro]
16609    next
16610  } else {
16611    # Replace #undef with comments.  This is necessary, for example,
16612    # in the case of _POSIX_SOURCE, which is predefined and required
16613    # on some systems where configure will not decide to define it.
16614    if (defundef == "undef") {
16615      print "/*", prefix defundef, macro, "*/"
16616      next
16617    }
16618  }
16619}
16620{ print }
16621_ACAWK
16622_ACEOF
16623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16624  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16625fi # test -n "$CONFIG_HEADERS"
16626
16627
16628eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16629shift
16630for ac_tag
16631do
16632  case $ac_tag in
16633  :[FHLC]) ac_mode=$ac_tag; continue;;
16634  esac
16635  case $ac_mode$ac_tag in
16636  :[FHL]*:*);;
16637  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16638  :[FH]-) ac_tag=-:-;;
16639  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16640  esac
16641  ac_save_IFS=$IFS
16642  IFS=:
16643  set x $ac_tag
16644  IFS=$ac_save_IFS
16645  shift
16646  ac_file=$1
16647  shift
16648
16649  case $ac_mode in
16650  :L) ac_source=$1;;
16651  :[FH])
16652    ac_file_inputs=
16653    for ac_f
16654    do
16655      case $ac_f in
16656      -) ac_f="$ac_tmp/stdin";;
16657      *) # Look for the file first in the build tree, then in the source tree
16658         # (if the path is not absolute).  The absolute path cannot be DOS-style,
16659         # because $ac_f cannot contain `:'.
16660         test -f "$ac_f" ||
16661           case $ac_f in
16662           [\\/$]*) false;;
16663           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16664           esac ||
16665           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16666      esac
16667      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16668      as_fn_append ac_file_inputs " '$ac_f'"
16669    done
16670
16671    # Let's still pretend it is `configure' which instantiates (i.e., don't
16672    # use $as_me), people would be surprised to read:
16673    #    /* config.h.  Generated by config.status.  */
16674    configure_input='Generated from '`
16675          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16676        `' by configure.'
16677    if test x"$ac_file" != x-; then
16678      configure_input="$ac_file.  $configure_input"
16679      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16680$as_echo "$as_me: creating $ac_file" >&6;}
16681    fi
16682    # Neutralize special characters interpreted by sed in replacement strings.
16683    case $configure_input in #(
16684    *\&* | *\|* | *\\* )
16685       ac_sed_conf_input=`$as_echo "$configure_input" |
16686       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16687    *) ac_sed_conf_input=$configure_input;;
16688    esac
16689
16690    case $ac_tag in
16691    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16692      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16693    esac
16694    ;;
16695  esac
16696
16697  ac_dir=`$as_dirname -- "$ac_file" ||
16698$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16699         X"$ac_file" : 'X\(//\)[^/]' \| \
16700         X"$ac_file" : 'X\(//\)$' \| \
16701         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16702$as_echo X"$ac_file" |
16703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16704            s//\1/
16705            q
16706          }
16707          /^X\(\/\/\)[^/].*/{
16708            s//\1/
16709            q
16710          }
16711          /^X\(\/\/\)$/{
16712            s//\1/
16713            q
16714          }
16715          /^X\(\/\).*/{
16716            s//\1/
16717            q
16718          }
16719          s/.*/./; q'`
16720  as_dir="$ac_dir"; as_fn_mkdir_p
16721  ac_builddir=.
16722
16723case "$ac_dir" in
16724.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16725*)
16726  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16727  # A ".." for each directory in $ac_dir_suffix.
16728  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16729  case $ac_top_builddir_sub in
16730  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16731  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16732  esac ;;
16733esac
16734ac_abs_top_builddir=$ac_pwd
16735ac_abs_builddir=$ac_pwd$ac_dir_suffix
16736# for backward compatibility:
16737ac_top_builddir=$ac_top_build_prefix
16738
16739case $srcdir in
16740  .)  # We are building in place.
16741    ac_srcdir=.
16742    ac_top_srcdir=$ac_top_builddir_sub
16743    ac_abs_top_srcdir=$ac_pwd ;;
16744  [\\/]* | ?:[\\/]* )  # Absolute name.
16745    ac_srcdir=$srcdir$ac_dir_suffix;
16746    ac_top_srcdir=$srcdir
16747    ac_abs_top_srcdir=$srcdir ;;
16748  *) # Relative name.
16749    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16750    ac_top_srcdir=$ac_top_build_prefix$srcdir
16751    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16752esac
16753ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16754
16755
16756  case $ac_mode in
16757  :F)
16758  #
16759  # CONFIG_FILE
16760  #
16761
16762  case $INSTALL in
16763  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16764  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16765  esac
16766  ac_MKDIR_P=$MKDIR_P
16767  case $MKDIR_P in
16768  [\\/$]* | ?:[\\/]* ) ;;
16769  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16770  esac
16771_ACEOF
16772
16773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16774# If the template does not know about datarootdir, expand it.
16775# FIXME: This hack should be removed a few years after 2.60.
16776ac_datarootdir_hack=; ac_datarootdir_seen=
16777ac_sed_dataroot='
16778/datarootdir/ {
16779  p
16780  q
16781}
16782/@datadir@/p
16783/@docdir@/p
16784/@infodir@/p
16785/@localedir@/p
16786/@mandir@/p'
16787case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16788*datarootdir*) ac_datarootdir_seen=yes;;
16789*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16790  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16791$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16792_ACEOF
16793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794  ac_datarootdir_hack='
16795  s&@datadir@&$datadir&g
16796  s&@docdir@&$docdir&g
16797  s&@infodir@&$infodir&g
16798  s&@localedir@&$localedir&g
16799  s&@mandir@&$mandir&g
16800  s&\\\${datarootdir}&$datarootdir&g' ;;
16801esac
16802_ACEOF
16803
16804# Neutralize VPATH when `$srcdir' = `.'.
16805# Shell code in configure.ac might set extrasub.
16806# FIXME: do we really want to maintain this feature?
16807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16808ac_sed_extra="$ac_vpsub
16809$extrasub
16810_ACEOF
16811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16812:t
16813/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16814s|@configure_input@|$ac_sed_conf_input|;t t
16815s&@top_builddir@&$ac_top_builddir_sub&;t t
16816s&@top_build_prefix@&$ac_top_build_prefix&;t t
16817s&@srcdir@&$ac_srcdir&;t t
16818s&@abs_srcdir@&$ac_abs_srcdir&;t t
16819s&@top_srcdir@&$ac_top_srcdir&;t t
16820s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16821s&@builddir@&$ac_builddir&;t t
16822s&@abs_builddir@&$ac_abs_builddir&;t t
16823s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16824s&@INSTALL@&$ac_INSTALL&;t t
16825s&@MKDIR_P@&$ac_MKDIR_P&;t t
16826$ac_datarootdir_hack
16827"
16828eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16829  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16830
16831test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16832  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16833  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16834      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16835  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16836which seems to be undefined.  Please make sure it is defined" >&5
16837$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16838which seems to be undefined.  Please make sure it is defined" >&2;}
16839
16840  rm -f "$ac_tmp/stdin"
16841  case $ac_file in
16842  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16843  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16844  esac \
16845  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16846 ;;
16847  :H)
16848  #
16849  # CONFIG_HEADER
16850  #
16851  if test x"$ac_file" != x-; then
16852    {
16853      $as_echo "/* $configure_input  */" \
16854      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16855    } >"$ac_tmp/config.h" \
16856      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16857    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16858      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16859$as_echo "$as_me: $ac_file is unchanged" >&6;}
16860    else
16861      rm -f "$ac_file"
16862      mv "$ac_tmp/config.h" "$ac_file" \
16863        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16864    fi
16865  else
16866    $as_echo "/* $configure_input  */" \
16867      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16868      || as_fn_error $? "could not create -" "$LINENO" 5
16869  fi
16870# Compute "$ac_file"'s index in $config_headers.
16871_am_arg="$ac_file"
16872_am_stamp_count=1
16873for _am_header in $config_headers :; do
16874  case $_am_header in
16875    $_am_arg | $_am_arg:* )
16876      break ;;
16877    * )
16878      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16879  esac
16880done
16881echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16882$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16883         X"$_am_arg" : 'X\(//\)[^/]' \| \
16884         X"$_am_arg" : 'X\(//\)$' \| \
16885         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16886$as_echo X"$_am_arg" |
16887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16888            s//\1/
16889            q
16890          }
16891          /^X\(\/\/\)[^/].*/{
16892            s//\1/
16893            q
16894          }
16895          /^X\(\/\/\)$/{
16896            s//\1/
16897            q
16898          }
16899          /^X\(\/\).*/{
16900            s//\1/
16901            q
16902          }
16903          s/.*/./; q'`/stamp-h$_am_stamp_count
16904 ;;
16905
16906  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16907$as_echo "$as_me: executing $ac_file commands" >&6;}
16908 ;;
16909  esac
16910
16911
16912  case $ac_file$ac_mode in
16913    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16914  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16915  # are listed without --file.  Let's play safe and only enable the eval
16916  # if we detect the quoting.
16917  case $CONFIG_FILES in
16918  *\'*) eval set x "$CONFIG_FILES" ;;
16919  *)   set x $CONFIG_FILES ;;
16920  esac
16921  shift
16922  for mf
16923  do
16924    # Strip MF so we end up with the name of the file.
16925    mf=`echo "$mf" | sed -e 's/:.*$//'`
16926    # Check whether this is an Automake generated Makefile or not.
16927    # We used to match only the files named `Makefile.in', but
16928    # some people rename them; so instead we look at the file content.
16929    # Grep'ing the first line is not enough: some people post-process
16930    # each Makefile.in and add a new line on top of each file to say so.
16931    # Grep'ing the whole file is not good either: AIX grep has a line
16932    # limit of 2048, but all sed's we know have understand at least 4000.
16933    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16934      dirpart=`$as_dirname -- "$mf" ||
16935$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16936         X"$mf" : 'X\(//\)[^/]' \| \
16937         X"$mf" : 'X\(//\)$' \| \
16938         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16939$as_echo X"$mf" |
16940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16941            s//\1/
16942            q
16943          }
16944          /^X\(\/\/\)[^/].*/{
16945            s//\1/
16946            q
16947          }
16948          /^X\(\/\/\)$/{
16949            s//\1/
16950            q
16951          }
16952          /^X\(\/\).*/{
16953            s//\1/
16954            q
16955          }
16956          s/.*/./; q'`
16957    else
16958      continue
16959    fi
16960    # Extract the definition of DEPDIR, am__include, and am__quote
16961    # from the Makefile without running `make'.
16962    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16963    test -z "$DEPDIR" && continue
16964    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16965    test -z "am__include" && continue
16966    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16967    # When using ansi2knr, U may be empty or an underscore; expand it
16968    U=`sed -n 's/^U = //p' < "$mf"`
16969    # Find all dependency output files, they are included files with
16970    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16971    # simplest approach to changing $(DEPDIR) to its actual value in the
16972    # expansion.
16973    for file in `sed -n "
16974      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16975         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16976      # Make sure the directory exists.
16977      test -f "$dirpart/$file" && continue
16978      fdir=`$as_dirname -- "$file" ||
16979$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16980         X"$file" : 'X\(//\)[^/]' \| \
16981         X"$file" : 'X\(//\)$' \| \
16982         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16983$as_echo X"$file" |
16984    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16985            s//\1/
16986            q
16987          }
16988          /^X\(\/\/\)[^/].*/{
16989            s//\1/
16990            q
16991          }
16992          /^X\(\/\/\)$/{
16993            s//\1/
16994            q
16995          }
16996          /^X\(\/\).*/{
16997            s//\1/
16998            q
16999          }
17000          s/.*/./; q'`
17001      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17002      # echo "creating $dirpart/$file"
17003      echo '# dummy' > "$dirpart/$file"
17004    done
17005  done
17006}
17007 ;;
17008    "libtool":C)
17009
17010    # See if we are running on zsh, and set the options which allow our
17011    # commands through without removal of \ escapes.
17012    if test -n "${ZSH_VERSION+set}" ; then
17013      setopt NO_GLOB_SUBST
17014    fi
17015
17016    cfgfile="${ofile}T"
17017    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17018    $RM "$cfgfile"
17019
17020    cat <<_LT_EOF >> "$cfgfile"
17021#! $SHELL
17022
17023# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17024# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17025# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17026# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17027#
17028#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17029#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17030#                 Inc.
17031#   Written by Gordon Matzigkeit, 1996
17032#
17033#   This file is part of GNU Libtool.
17034#
17035# GNU Libtool is free software; you can redistribute it and/or
17036# modify it under the terms of the GNU General Public License as
17037# published by the Free Software Foundation; either version 2 of
17038# the License, or (at your option) any later version.
17039#
17040# As a special exception to the GNU General Public License,
17041# if you distribute this file as part of a program or library that
17042# is built using GNU Libtool, you may include this file under the
17043# same distribution terms that you use for the rest of that program.
17044#
17045# GNU Libtool is distributed in the hope that it will be useful,
17046# but WITHOUT ANY WARRANTY; without even the implied warranty of
17047# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17048# GNU General Public License for more details.
17049#
17050# You should have received a copy of the GNU General Public License
17051# along with GNU Libtool; see the file COPYING.  If not, a copy
17052# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17053# obtained by writing to the Free Software Foundation, Inc.,
17054# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17055
17056
17057# The names of the tagged configurations supported by this script.
17058available_tags=""
17059
17060# ### BEGIN LIBTOOL CONFIG
17061
17062# Which release of libtool.m4 was used?
17063macro_version=$macro_version
17064macro_revision=$macro_revision
17065
17066# Whether or not to build shared libraries.
17067build_libtool_libs=$enable_shared
17068
17069# Whether or not to build static libraries.
17070build_old_libs=$enable_static
17071
17072# What type of objects to build.
17073pic_mode=$pic_mode
17074
17075# Whether or not to optimize for fast installation.
17076fast_install=$enable_fast_install
17077
17078# Shell to use when invoking shell scripts.
17079SHELL=$lt_SHELL
17080
17081# An echo program that protects backslashes.
17082ECHO=$lt_ECHO
17083
17084# The host system.
17085host_alias=$host_alias
17086host=$host
17087host_os=$host_os
17088
17089# The build system.
17090build_alias=$build_alias
17091build=$build
17092build_os=$build_os
17093
17094# A sed program that does not truncate output.
17095SED=$lt_SED
17096
17097# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17098Xsed="\$SED -e 1s/^X//"
17099
17100# A grep program that handles long lines.
17101GREP=$lt_GREP
17102
17103# An ERE matcher.
17104EGREP=$lt_EGREP
17105
17106# A literal string matcher.
17107FGREP=$lt_FGREP
17108
17109# A BSD- or MS-compatible name lister.
17110NM=$lt_NM
17111
17112# Whether we need soft or hard links.
17113LN_S=$lt_LN_S
17114
17115# What is the maximum length of a command?
17116max_cmd_len=$max_cmd_len
17117
17118# Object file suffix (normally "o").
17119objext=$ac_objext
17120
17121# Executable file suffix (normally "").
17122exeext=$exeext
17123
17124# whether the shell understands "unset".
17125lt_unset=$lt_unset
17126
17127# turn spaces into newlines.
17128SP2NL=$lt_lt_SP2NL
17129
17130# turn newlines into spaces.
17131NL2SP=$lt_lt_NL2SP
17132
17133# convert \$build file names to \$host format.
17134to_host_file_cmd=$lt_cv_to_host_file_cmd
17135
17136# convert \$build files to toolchain format.
17137to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17138
17139# An object symbol dumper.
17140OBJDUMP=$lt_OBJDUMP
17141
17142# Method to check whether dependent libraries are shared objects.
17143deplibs_check_method=$lt_deplibs_check_method
17144
17145# Command to use when deplibs_check_method = "file_magic".
17146file_magic_cmd=$lt_file_magic_cmd
17147
17148# How to find potential files when deplibs_check_method = "file_magic".
17149file_magic_glob=$lt_file_magic_glob
17150
17151# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17152want_nocaseglob=$lt_want_nocaseglob
17153
17154# DLL creation program.
17155DLLTOOL=$lt_DLLTOOL
17156
17157# Command to associate shared and link libraries.
17158sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17159
17160# The archiver.
17161AR=$lt_AR
17162
17163# Flags to create an archive.
17164AR_FLAGS=$lt_AR_FLAGS
17165
17166# How to feed a file listing to the archiver.
17167archiver_list_spec=$lt_archiver_list_spec
17168
17169# A symbol stripping program.
17170STRIP=$lt_STRIP
17171
17172# Commands used to install an old-style archive.
17173RANLIB=$lt_RANLIB
17174old_postinstall_cmds=$lt_old_postinstall_cmds
17175old_postuninstall_cmds=$lt_old_postuninstall_cmds
17176
17177# Whether to use a lock for old archive extraction.
17178lock_old_archive_extraction=$lock_old_archive_extraction
17179
17180# A C compiler.
17181LTCC=$lt_CC
17182
17183# LTCC compiler flags.
17184LTCFLAGS=$lt_CFLAGS
17185
17186# Take the output of nm and produce a listing of raw symbols and C names.
17187global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17188
17189# Transform the output of nm in a proper C declaration.
17190global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17191
17192# Transform the output of nm in a C name address pair.
17193global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17194
17195# Transform the output of nm in a C name address pair when lib prefix is needed.
17196global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17197
17198# Specify filename containing input files for \$NM.
17199nm_file_list_spec=$lt_nm_file_list_spec
17200
17201# The root where to search for dependent libraries,and in which our libraries should be installed.
17202lt_sysroot=$lt_sysroot
17203
17204# The name of the directory that contains temporary libtool files.
17205objdir=$objdir
17206
17207# Used to examine libraries when file_magic_cmd begins with "file".
17208MAGIC_CMD=$MAGIC_CMD
17209
17210# Must we lock files when doing compilation?
17211need_locks=$lt_need_locks
17212
17213# Manifest tool.
17214MANIFEST_TOOL=$lt_MANIFEST_TOOL
17215
17216# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17217DSYMUTIL=$lt_DSYMUTIL
17218
17219# Tool to change global to local symbols on Mac OS X.
17220NMEDIT=$lt_NMEDIT
17221
17222# Tool to manipulate fat objects and archives on Mac OS X.
17223LIPO=$lt_LIPO
17224
17225# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17226OTOOL=$lt_OTOOL
17227
17228# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17229OTOOL64=$lt_OTOOL64
17230
17231# Old archive suffix (normally "a").
17232libext=$libext
17233
17234# Shared library suffix (normally ".so").
17235shrext_cmds=$lt_shrext_cmds
17236
17237# The commands to extract the exported symbol list from a shared archive.
17238extract_expsyms_cmds=$lt_extract_expsyms_cmds
17239
17240# Variables whose values should be saved in libtool wrapper scripts and
17241# restored at link time.
17242variables_saved_for_relink=$lt_variables_saved_for_relink
17243
17244# Do we need the "lib" prefix for modules?
17245need_lib_prefix=$need_lib_prefix
17246
17247# Do we need a version for libraries?
17248need_version=$need_version
17249
17250# Library versioning type.
17251version_type=$version_type
17252
17253# Shared library runtime path variable.
17254runpath_var=$runpath_var
17255
17256# Shared library path variable.
17257shlibpath_var=$shlibpath_var
17258
17259# Is shlibpath searched before the hard-coded library search path?
17260shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17261
17262# Format of library name prefix.
17263libname_spec=$lt_libname_spec
17264
17265# List of archive names.  First name is the real one, the rest are links.
17266# The last name is the one that the linker finds with -lNAME
17267library_names_spec=$lt_library_names_spec
17268
17269# The coded name of the library, if different from the real name.
17270soname_spec=$lt_soname_spec
17271
17272# Permission mode override for installation of shared libraries.
17273install_override_mode=$lt_install_override_mode
17274
17275# Command to use after installation of a shared archive.
17276postinstall_cmds=$lt_postinstall_cmds
17277
17278# Command to use after uninstallation of a shared archive.
17279postuninstall_cmds=$lt_postuninstall_cmds
17280
17281# Commands used to finish a libtool library installation in a directory.
17282finish_cmds=$lt_finish_cmds
17283
17284# As "finish_cmds", except a single script fragment to be evaled but
17285# not shown.
17286finish_eval=$lt_finish_eval
17287
17288# Whether we should hardcode library paths into libraries.
17289hardcode_into_libs=$hardcode_into_libs
17290
17291# Compile-time system search path for libraries.
17292sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17293
17294# Run-time system search path for libraries.
17295sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17296
17297# Whether dlopen is supported.
17298dlopen_support=$enable_dlopen
17299
17300# Whether dlopen of programs is supported.
17301dlopen_self=$enable_dlopen_self
17302
17303# Whether dlopen of statically linked programs is supported.
17304dlopen_self_static=$enable_dlopen_self_static
17305
17306# Commands to strip libraries.
17307old_striplib=$lt_old_striplib
17308striplib=$lt_striplib
17309
17310
17311# The linker used to build libraries.
17312LD=$lt_LD
17313
17314# How to create reloadable object files.
17315reload_flag=$lt_reload_flag
17316reload_cmds=$lt_reload_cmds
17317
17318# Commands used to build an old-style archive.
17319old_archive_cmds=$lt_old_archive_cmds
17320
17321# A language specific compiler.
17322CC=$lt_compiler
17323
17324# Is the compiler the GNU compiler?
17325with_gcc=$GCC
17326
17327# Compiler flag to turn off builtin functions.
17328no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17329
17330# Additional compiler flags for building library objects.
17331pic_flag=$lt_lt_prog_compiler_pic
17332
17333# How to pass a linker flag through the compiler.
17334wl=$lt_lt_prog_compiler_wl
17335
17336# Compiler flag to prevent dynamic linking.
17337link_static_flag=$lt_lt_prog_compiler_static
17338
17339# Does compiler simultaneously support -c and -o options?
17340compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17341
17342# Whether or not to add -lc for building shared libraries.
17343build_libtool_need_lc=$archive_cmds_need_lc
17344
17345# Whether or not to disallow shared libs when runtime libs are static.
17346allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17347
17348# Compiler flag to allow reflexive dlopens.
17349export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17350
17351# Compiler flag to generate shared objects directly from archives.
17352whole_archive_flag_spec=$lt_whole_archive_flag_spec
17353
17354# Whether the compiler copes with passing no objects directly.
17355compiler_needs_object=$lt_compiler_needs_object
17356
17357# Create an old-style archive from a shared archive.
17358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17359
17360# Create a temporary old-style archive to link instead of a shared archive.
17361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17362
17363# Commands used to build a shared archive.
17364archive_cmds=$lt_archive_cmds
17365archive_expsym_cmds=$lt_archive_expsym_cmds
17366
17367# Commands used to build a loadable module if different from building
17368# a shared archive.
17369module_cmds=$lt_module_cmds
17370module_expsym_cmds=$lt_module_expsym_cmds
17371
17372# Whether we are building with GNU ld or not.
17373with_gnu_ld=$lt_with_gnu_ld
17374
17375# Flag that allows shared libraries with undefined symbols to be built.
17376allow_undefined_flag=$lt_allow_undefined_flag
17377
17378# Flag that enforces no undefined symbols.
17379no_undefined_flag=$lt_no_undefined_flag
17380
17381# Flag to hardcode \$libdir into a binary during linking.
17382# This must work even if \$libdir does not exist
17383hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17384
17385# If ld is used when linking, flag to hardcode \$libdir into a binary
17386# during linking.  This must work even if \$libdir does not exist.
17387hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17388
17389# Whether we need a single "-rpath" flag with a separated argument.
17390hardcode_libdir_separator=$lt_hardcode_libdir_separator
17391
17392# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17393# DIR into the resulting binary.
17394hardcode_direct=$hardcode_direct
17395
17396# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17397# DIR into the resulting binary and the resulting library dependency is
17398# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17399# library is relocated.
17400hardcode_direct_absolute=$hardcode_direct_absolute
17401
17402# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17403# into the resulting binary.
17404hardcode_minus_L=$hardcode_minus_L
17405
17406# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17407# into the resulting binary.
17408hardcode_shlibpath_var=$hardcode_shlibpath_var
17409
17410# Set to "yes" if building a shared library automatically hardcodes DIR
17411# into the library and all subsequent libraries and executables linked
17412# against it.
17413hardcode_automatic=$hardcode_automatic
17414
17415# Set to yes if linker adds runtime paths of dependent libraries
17416# to runtime path list.
17417inherit_rpath=$inherit_rpath
17418
17419# Whether libtool must link a program against all its dependency libraries.
17420link_all_deplibs=$link_all_deplibs
17421
17422# Set to "yes" if exported symbols are required.
17423always_export_symbols=$always_export_symbols
17424
17425# The commands to list exported symbols.
17426export_symbols_cmds=$lt_export_symbols_cmds
17427
17428# Symbols that should not be listed in the preloaded symbols.
17429exclude_expsyms=$lt_exclude_expsyms
17430
17431# Symbols that must always be exported.
17432include_expsyms=$lt_include_expsyms
17433
17434# Commands necessary for linking programs (against libraries) with templates.
17435prelink_cmds=$lt_prelink_cmds
17436
17437# Commands necessary for finishing linking programs.
17438postlink_cmds=$lt_postlink_cmds
17439
17440# Specify filename containing input files.
17441file_list_spec=$lt_file_list_spec
17442
17443# How to hardcode a shared library path into an executable.
17444hardcode_action=$hardcode_action
17445
17446# ### END LIBTOOL CONFIG
17447
17448_LT_EOF
17449
17450  case $host_os in
17451  aix3*)
17452    cat <<\_LT_EOF >> "$cfgfile"
17453# AIX sometimes has problems with the GCC collect2 program.  For some
17454# reason, if we set the COLLECT_NAMES environment variable, the problems
17455# vanish in a puff of smoke.
17456if test "X${COLLECT_NAMES+set}" != Xset; then
17457  COLLECT_NAMES=
17458  export COLLECT_NAMES
17459fi
17460_LT_EOF
17461    ;;
17462  esac
17463
17464
17465ltmain="$ac_aux_dir/ltmain.sh"
17466
17467
17468  # We use sed instead of cat because bash on DJGPP gets confused if
17469  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17470  # text mode, it properly converts lines to CR/LF.  This bash problem
17471  # is reportedly fixed, but why not run on old versions too?
17472  sed '$q' "$ltmain" >> "$cfgfile" \
17473     || (rm -f "$cfgfile"; exit 1)
17474
17475  if test x"$xsi_shell" = xyes; then
17476  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17477func_dirname ()\
17478{\
17479\    case ${1} in\
17480\      */*) func_dirname_result="${1%/*}${2}" ;;\
17481\      *  ) func_dirname_result="${3}" ;;\
17482\    esac\
17483} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17484  && mv -f "$cfgfile.tmp" "$cfgfile" \
17485    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17486test 0 -eq $? || _lt_function_replace_fail=:
17487
17488
17489  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17490func_basename ()\
17491{\
17492\    func_basename_result="${1##*/}"\
17493} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17494  && mv -f "$cfgfile.tmp" "$cfgfile" \
17495    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17496test 0 -eq $? || _lt_function_replace_fail=:
17497
17498
17499  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17500func_dirname_and_basename ()\
17501{\
17502\    case ${1} in\
17503\      */*) func_dirname_result="${1%/*}${2}" ;;\
17504\      *  ) func_dirname_result="${3}" ;;\
17505\    esac\
17506\    func_basename_result="${1##*/}"\
17507} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17508  && mv -f "$cfgfile.tmp" "$cfgfile" \
17509    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17510test 0 -eq $? || _lt_function_replace_fail=:
17511
17512
17513  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17514func_stripname ()\
17515{\
17516\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17517\    # positional parameters, so assign one to ordinary parameter first.\
17518\    func_stripname_result=${3}\
17519\    func_stripname_result=${func_stripname_result#"${1}"}\
17520\    func_stripname_result=${func_stripname_result%"${2}"}\
17521} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17522  && mv -f "$cfgfile.tmp" "$cfgfile" \
17523    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17524test 0 -eq $? || _lt_function_replace_fail=:
17525
17526
17527  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17528func_split_long_opt ()\
17529{\
17530\    func_split_long_opt_name=${1%%=*}\
17531\    func_split_long_opt_arg=${1#*=}\
17532} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17533  && mv -f "$cfgfile.tmp" "$cfgfile" \
17534    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17535test 0 -eq $? || _lt_function_replace_fail=:
17536
17537
17538  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17539func_split_short_opt ()\
17540{\
17541\    func_split_short_opt_arg=${1#??}\
17542\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17543} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17544  && mv -f "$cfgfile.tmp" "$cfgfile" \
17545    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17546test 0 -eq $? || _lt_function_replace_fail=:
17547
17548
17549  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17550func_lo2o ()\
17551{\
17552\    case ${1} in\
17553\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17554\      *)    func_lo2o_result=${1} ;;\
17555\    esac\
17556} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17557  && mv -f "$cfgfile.tmp" "$cfgfile" \
17558    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17559test 0 -eq $? || _lt_function_replace_fail=:
17560
17561
17562  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17563func_xform ()\
17564{\
17565    func_xform_result=${1%.*}.lo\
17566} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17567  && mv -f "$cfgfile.tmp" "$cfgfile" \
17568    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17569test 0 -eq $? || _lt_function_replace_fail=:
17570
17571
17572  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17573func_arith ()\
17574{\
17575    func_arith_result=$(( $* ))\
17576} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17577  && mv -f "$cfgfile.tmp" "$cfgfile" \
17578    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17579test 0 -eq $? || _lt_function_replace_fail=:
17580
17581
17582  sed -e '/^func_len ()$/,/^} # func_len /c\
17583func_len ()\
17584{\
17585    func_len_result=${#1}\
17586} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17587  && mv -f "$cfgfile.tmp" "$cfgfile" \
17588    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17589test 0 -eq $? || _lt_function_replace_fail=:
17590
17591fi
17592
17593if test x"$lt_shell_append" = xyes; then
17594  sed -e '/^func_append ()$/,/^} # func_append /c\
17595func_append ()\
17596{\
17597    eval "${1}+=\\${2}"\
17598} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17599  && mv -f "$cfgfile.tmp" "$cfgfile" \
17600    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17601test 0 -eq $? || _lt_function_replace_fail=:
17602
17603
17604  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17605func_append_quoted ()\
17606{\
17607\    func_quote_for_eval "${2}"\
17608\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17609} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17610  && mv -f "$cfgfile.tmp" "$cfgfile" \
17611    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17612test 0 -eq $? || _lt_function_replace_fail=:
17613
17614
17615  # Save a `func_append' function call where possible by direct use of '+='
17616  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17617    && mv -f "$cfgfile.tmp" "$cfgfile" \
17618      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17619  test 0 -eq $? || _lt_function_replace_fail=:
17620else
17621  # Save a `func_append' function call even when '+=' is not available
17622  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17623    && mv -f "$cfgfile.tmp" "$cfgfile" \
17624      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17625  test 0 -eq $? || _lt_function_replace_fail=:
17626fi
17627
17628if test x"$_lt_function_replace_fail" = x":"; then
17629  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17630$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17631fi
17632
17633
17634   mv -f "$cfgfile" "$ofile" ||
17635    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17636  chmod +x "$ofile"
17637
17638 ;;
17639
17640  esac
17641done # for ac_tag
17642
17643
17644as_fn_exit 0
17645_ACEOF
17646ac_clean_files=$ac_clean_files_save
17647
17648test $ac_write_fail = 0 ||
17649  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17650
17651
17652# configure is writing to config.log, and then calls config.status.
17653# config.status does its own redirection, appending to config.log.
17654# Unfortunately, on DOS this fails, as config.log is still kept open
17655# by configure, so config.status won't be able to write to it; its
17656# output is simply discarded.  So we exec the FD to /dev/null,
17657# effectively closing config.log, so it can be properly (re)opened and
17658# appended to by config.status.  When coming back to configure, we
17659# need to make the FD available again.
17660if test "$no_create" != yes; then
17661  ac_cs_success=:
17662  ac_config_status_args=
17663  test "$silent" = yes &&
17664    ac_config_status_args="$ac_config_status_args --quiet"
17665  exec 5>/dev/null
17666  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17667  exec 5>>config.log
17668  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17669  # would make configure fail if this is the last instruction.
17670  $ac_cs_success || as_fn_exit 1
17671fi
17672if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17673  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17674$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17675fi
17676
Note: See TracBrowser for help on using the repository browser.