1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.65 for milter-greylist 4.6.4.
4@%:@
5@%:@ Report bugs to <manu@netbsd.org>.
6@%:@
7@%:@
8@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10@%:@ Inc.
11@%:@
12@%:@
13@%:@ This configure script is free software; the Free Software Foundation
14@%:@ gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in @%:@(
30  *posix*) :
31    set -o posix ;; @%:@(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in @%:@(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in @%:@((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in @%:@(
148  *posix*) :
149    set -o posix ;; @%:@(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in @%:@(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and manu@netbsd.org
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252@%:@ as_fn_unset VAR
253@%:@ ---------------
254@%:@ Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261@%:@ as_fn_set_status STATUS
262@%:@ -----------------------
263@%:@ Set @S|@? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} @%:@ as_fn_set_status
268
269@%:@ as_fn_exit STATUS
270@%:@ -----------------
271@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} @%:@ as_fn_exit
278
279@%:@ as_fn_mkdir_p
280@%:@ -------------
281@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} @%:@ as_fn_mkdir_p
326@%:@ as_fn_append VAR VALUE
327@%:@ ----------------------
328@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
329@%:@ advantage of any shell optimizations that allow amortized linear growth over
330@%:@ repeated appends, instead of the typical quadratic growth present in naive
331@%:@ implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344@%:@ as_fn_arith ARG...
345@%:@ ------------------
346@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
347@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
348@%:@ must be portable across @S|@(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362@%:@ as_fn_error ERROR [LINENO LOG_FD]
363@%:@ ---------------------------------
364@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366@%:@ script with status @S|@?, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&2
375  as_fn_exit $as_status
376} @%:@ as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in @%:@(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in @%:@(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
534
535# Name of the host.
536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
544ac_clean_files=
545ac_config_libobj_dir=.
546LIB@&t@OBJS=
547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
551
552# Identity of this package.
553PACKAGE_NAME='milter-greylist'
554PACKAGE_TARNAME='milter-greylist'
555PACKAGE_VERSION='4.6.4'
556PACKAGE_STRING='milter-greylist 4.6.4'
557PACKAGE_BUGREPORT='manu@netbsd.org'
558PACKAGE_URL=''
559
560ac_unique_file="milter-greylist.c"
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#ifdef HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#ifdef HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#ifdef STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# ifdef HAVE_STDLIB_H
575#  include <stdlib.h>
576# endif
577#endif
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580#  include <memory.h>
581# endif
582# include <string.h>
583#endif
584#ifdef HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#ifdef HAVE_INTTYPES_H
588# include <inttypes.h>
589#endif
590#ifdef HAVE_STDINT_H
591# include <stdint.h>
592#endif
593#ifdef HAVE_UNISTD_H
594# include <unistd.h>
595#endif"
596
597ac_subst_vars='LTLIBOBJS
598DUMPFILE
599CONFFILE
600USER
601MAKE_J1
602LIB@&t@OBJS
603EGREP
604GREP
605CPP
606TOUCH
607TRUE
608SED
609TEST
610MV
611RM
612MKDEP
613INSTALL_DATA
614INSTALL_SCRIPT
615INSTALL_PROGRAM
616YFLAGS
617YACC
618LEXLIB
619LEX_OUTPUT_ROOT
620LEX
621OBJEXT
622EXEEXT
623ac_ct_CC
624CPPFLAGS
625LDFLAGS
626CFLAGS
627CC
628target_alias
629host_alias
630build_alias
631LIBS
632ECHO_T
633ECHO_N
634ECHO_C
635DEFS
636mandir
637localedir
638libdir
639psdir
640pdfdir
641dvidir
642htmldir
643infodir
644docdir
645oldincludedir
646includedir
647localstatedir
648sharedstatedir
649sysconfdir
650datadir
651datarootdir
652libexecdir
653sbindir
654bindir
655program_transform_name
656prefix
657exec_prefix
658PACKAGE_URL
659PACKAGE_BUGREPORT
660PACKAGE_STRING
661PACKAGE_VERSION
662PACKAGE_TARNAME
663PACKAGE_NAME
664PATH_SEPARATOR
665SHELL'
666ac_subst_files=''
667ac_user_opts='
668enable_option_checking
669with_package_name
670with_package_version
671with_package_version_suffix
672with_package_string
673with_package_bugreport
674with_package_url
675with_db
676with_libmilter
677with_libpthread
678with_libbind
679with_openssl
680with_openssl_static
681with_openldap
682with_openldap_static
683with_libcurl
684with_libcurl_static
685with_libGeoIP
686with_libmaxminddb
687with_libdmalloc
688with_libspf2
689with_libspf2_static
690with_libspf2_10
691with_libspf_alt
692with_libspf
693with_libdkim
694with_libopendkim
695enable_parallel_make
696enable_rpath
697enable_stdio_hack
698enable_drac
699enable_p0f
700enable_p0f3
701enable_p0f306
702with_p0f_src
703enable_spamassassin
704with_thread_safe_resolver
705enable_dnsrbl
706enable_mx
707enable_postfix
708with_user
709with_conffile
710with_dumpfile
711with_delay
712with_timeout
713with_autowhite
714with_drac_db
715'
716      ac_precious_vars='build_alias
717host_alias
718target_alias
719CC
720CFLAGS
721LDFLAGS
722LIBS
723CPPFLAGS
724YACC
725YFLAGS
726CPP'
727
728
729# Initialize some variables set by options.
730ac_init_help=
731ac_init_version=false
732ac_unrecognized_opts=
733ac_unrecognized_sep=
734# The variables have the same names as the options, with
735# dashes changed to underlines.
736cache_file=/dev/null
737exec_prefix=NONE
738no_create=
739no_recursion=
740prefix=NONE
741program_prefix=NONE
742program_suffix=NONE
743program_transform_name=s,x,x,
744silent=
745site=
746srcdir=
747verbose=
748x_includes=NONE
749x_libraries=NONE
750
751# Installation directory options.
752# These are left unexpanded so users can "make install exec_prefix=/foo"
753# and all the variables that are supposed to be based on exec_prefix
754# by default will actually change.
755# Use braces instead of parens because sh, perl, etc. also accept them.
756# (The list follows the same order as the GNU Coding Standards.)
757bindir='${exec_prefix}/bin'
758sbindir='${exec_prefix}/sbin'
759libexecdir='${exec_prefix}/libexec'
760datarootdir='${prefix}/share'
761datadir='${datarootdir}'
762sysconfdir='${prefix}/etc'
763sharedstatedir='${prefix}/com'
764localstatedir='${prefix}/var'
765includedir='${prefix}/include'
766oldincludedir='/usr/include'
767docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768infodir='${datarootdir}/info'
769htmldir='${docdir}'
770dvidir='${docdir}'
771pdfdir='${docdir}'
772psdir='${docdir}'
773libdir='${exec_prefix}/lib'
774localedir='${datarootdir}/locale'
775mandir='${datarootdir}/man'
776
777ac_prev=
778ac_dashdash=
779for ac_option
780do
781  # If the previous option needs an argument, assign it.
782  if test -n "$ac_prev"; then
783    eval $ac_prev=\$ac_option
784    ac_prev=
785    continue
786  fi
787
788  case $ac_option in
789  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790  *)	ac_optarg=yes ;;
791  esac
792
793  # Accept the important Cygnus configure options, so we can diagnose typos.
794
795  case $ac_dashdash$ac_option in
796  --)
797    ac_dashdash=yes ;;
798
799  -bindir | --bindir | --bindi | --bind | --bin | --bi)
800    ac_prev=bindir ;;
801  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802    bindir=$ac_optarg ;;
803
804  -build | --build | --buil | --bui | --bu)
805    ac_prev=build_alias ;;
806  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807    build_alias=$ac_optarg ;;
808
809  -cache-file | --cache-file | --cache-fil | --cache-fi \
810  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811    ac_prev=cache_file ;;
812  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814    cache_file=$ac_optarg ;;
815
816  --config-cache | -C)
817    cache_file=config.cache ;;
818
819  -datadir | --datadir | --datadi | --datad)
820    ac_prev=datadir ;;
821  -datadir=* | --datadir=* | --datadi=* | --datad=*)
822    datadir=$ac_optarg ;;
823
824  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825  | --dataroo | --dataro | --datar)
826    ac_prev=datarootdir ;;
827  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829    datarootdir=$ac_optarg ;;
830
831  -disable-* | --disable-*)
832    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833    # Reject names that are not valid shell variable names.
834    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835      as_fn_error "invalid feature name: $ac_useropt"
836    ac_useropt_orig=$ac_useropt
837    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838    case $ac_user_opts in
839      *"
840"enable_$ac_useropt"
841"*) ;;
842      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843	 ac_unrecognized_sep=', ';;
844    esac
845    eval enable_$ac_useropt=no ;;
846
847  -docdir | --docdir | --docdi | --doc | --do)
848    ac_prev=docdir ;;
849  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850    docdir=$ac_optarg ;;
851
852  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853    ac_prev=dvidir ;;
854  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855    dvidir=$ac_optarg ;;
856
857  -enable-* | --enable-*)
858    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859    # Reject names that are not valid shell variable names.
860    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861      as_fn_error "invalid feature name: $ac_useropt"
862    ac_useropt_orig=$ac_useropt
863    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864    case $ac_user_opts in
865      *"
866"enable_$ac_useropt"
867"*) ;;
868      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869	 ac_unrecognized_sep=', ';;
870    esac
871    eval enable_$ac_useropt=\$ac_optarg ;;
872
873  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875  | --exec | --exe | --ex)
876    ac_prev=exec_prefix ;;
877  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879  | --exec=* | --exe=* | --ex=*)
880    exec_prefix=$ac_optarg ;;
881
882  -gas | --gas | --ga | --g)
883    # Obsolete; use --with-gas.
884    with_gas=yes ;;
885
886  -help | --help | --hel | --he | -h)
887    ac_init_help=long ;;
888  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889    ac_init_help=recursive ;;
890  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891    ac_init_help=short ;;
892
893  -host | --host | --hos | --ho)
894    ac_prev=host_alias ;;
895  -host=* | --host=* | --hos=* | --ho=*)
896    host_alias=$ac_optarg ;;
897
898  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899    ac_prev=htmldir ;;
900  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901  | --ht=*)
902    htmldir=$ac_optarg ;;
903
904  -includedir | --includedir | --includedi | --included | --include \
905  | --includ | --inclu | --incl | --inc)
906    ac_prev=includedir ;;
907  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908  | --includ=* | --inclu=* | --incl=* | --inc=*)
909    includedir=$ac_optarg ;;
910
911  -infodir | --infodir | --infodi | --infod | --info | --inf)
912    ac_prev=infodir ;;
913  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914    infodir=$ac_optarg ;;
915
916  -libdir | --libdir | --libdi | --libd)
917    ac_prev=libdir ;;
918  -libdir=* | --libdir=* | --libdi=* | --libd=*)
919    libdir=$ac_optarg ;;
920
921  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922  | --libexe | --libex | --libe)
923    ac_prev=libexecdir ;;
924  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925  | --libexe=* | --libex=* | --libe=*)
926    libexecdir=$ac_optarg ;;
927
928  -localedir | --localedir | --localedi | --localed | --locale)
929    ac_prev=localedir ;;
930  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931    localedir=$ac_optarg ;;
932
933  -localstatedir | --localstatedir | --localstatedi | --localstated \
934  | --localstate | --localstat | --localsta | --localst | --locals)
935    ac_prev=localstatedir ;;
936  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938    localstatedir=$ac_optarg ;;
939
940  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941    ac_prev=mandir ;;
942  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943    mandir=$ac_optarg ;;
944
945  -nfp | --nfp | --nf)
946    # Obsolete; use --without-fp.
947    with_fp=no ;;
948
949  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950  | --no-cr | --no-c | -n)
951    no_create=yes ;;
952
953  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955    no_recursion=yes ;;
956
957  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959  | --oldin | --oldi | --old | --ol | --o)
960    ac_prev=oldincludedir ;;
961  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964    oldincludedir=$ac_optarg ;;
965
966  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967    ac_prev=prefix ;;
968  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969    prefix=$ac_optarg ;;
970
971  -program-prefix | --program-prefix | --program-prefi | --program-pref \
972  | --program-pre | --program-pr | --program-p)
973    ac_prev=program_prefix ;;
974  -program-prefix=* | --program-prefix=* | --program-prefi=* \
975  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976    program_prefix=$ac_optarg ;;
977
978  -program-suffix | --program-suffix | --program-suffi | --program-suff \
979  | --program-suf | --program-su | --program-s)
980    ac_prev=program_suffix ;;
981  -program-suffix=* | --program-suffix=* | --program-suffi=* \
982  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983    program_suffix=$ac_optarg ;;
984
985  -program-transform-name | --program-transform-name \
986  | --program-transform-nam | --program-transform-na \
987  | --program-transform-n | --program-transform- \
988  | --program-transform | --program-transfor \
989  | --program-transfo | --program-transf \
990  | --program-trans | --program-tran \
991  | --progr-tra | --program-tr | --program-t)
992    ac_prev=program_transform_name ;;
993  -program-transform-name=* | --program-transform-name=* \
994  | --program-transform-nam=* | --program-transform-na=* \
995  | --program-transform-n=* | --program-transform-=* \
996  | --program-transform=* | --program-transfor=* \
997  | --program-transfo=* | --program-transf=* \
998  | --program-trans=* | --program-tran=* \
999  | --progr-tra=* | --program-tr=* | --program-t=*)
1000    program_transform_name=$ac_optarg ;;
1001
1002  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003    ac_prev=pdfdir ;;
1004  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005    pdfdir=$ac_optarg ;;
1006
1007  -psdir | --psdir | --psdi | --psd | --ps)
1008    ac_prev=psdir ;;
1009  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010    psdir=$ac_optarg ;;
1011
1012  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013  | -silent | --silent | --silen | --sile | --sil)
1014    silent=yes ;;
1015
1016  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017    ac_prev=sbindir ;;
1018  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019  | --sbi=* | --sb=*)
1020    sbindir=$ac_optarg ;;
1021
1022  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024  | --sharedst | --shareds | --shared | --share | --shar \
1025  | --sha | --sh)
1026    ac_prev=sharedstatedir ;;
1027  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030  | --sha=* | --sh=*)
1031    sharedstatedir=$ac_optarg ;;
1032
1033  -site | --site | --sit)
1034    ac_prev=site ;;
1035  -site=* | --site=* | --sit=*)
1036    site=$ac_optarg ;;
1037
1038  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039    ac_prev=srcdir ;;
1040  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041    srcdir=$ac_optarg ;;
1042
1043  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044  | --syscon | --sysco | --sysc | --sys | --sy)
1045    ac_prev=sysconfdir ;;
1046  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048    sysconfdir=$ac_optarg ;;
1049
1050  -target | --target | --targe | --targ | --tar | --ta | --t)
1051    ac_prev=target_alias ;;
1052  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053    target_alias=$ac_optarg ;;
1054
1055  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056    verbose=yes ;;
1057
1058  -version | --version | --versio | --versi | --vers | -V)
1059    ac_init_version=: ;;
1060
1061  -with-* | --with-*)
1062    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063    # Reject names that are not valid shell variable names.
1064    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065      as_fn_error "invalid package name: $ac_useropt"
1066    ac_useropt_orig=$ac_useropt
1067    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068    case $ac_user_opts in
1069      *"
1070"with_$ac_useropt"
1071"*) ;;
1072      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073	 ac_unrecognized_sep=', ';;
1074    esac
1075    eval with_$ac_useropt=\$ac_optarg ;;
1076
1077  -without-* | --without-*)
1078    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079    # Reject names that are not valid shell variable names.
1080    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081      as_fn_error "invalid package name: $ac_useropt"
1082    ac_useropt_orig=$ac_useropt
1083    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084    case $ac_user_opts in
1085      *"
1086"with_$ac_useropt"
1087"*) ;;
1088      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089	 ac_unrecognized_sep=', ';;
1090    esac
1091    eval with_$ac_useropt=no ;;
1092
1093  --x)
1094    # Obsolete; use --with-x.
1095    with_x=yes ;;
1096
1097  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098  | --x-incl | --x-inc | --x-in | --x-i)
1099    ac_prev=x_includes ;;
1100  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102    x_includes=$ac_optarg ;;
1103
1104  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106    ac_prev=x_libraries ;;
1107  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109    x_libraries=$ac_optarg ;;
1110
1111  -*) as_fn_error "unrecognized option: \`$ac_option'
1112Try \`$0 --help' for more information."
1113    ;;
1114
1115  *=*)
1116    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117    # Reject names that are not valid shell variable names.
1118    case $ac_envvar in #(
1119      '' | [0-9]* | *[!_$as_cr_alnum]* )
1120      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1121    esac
1122    eval $ac_envvar=\$ac_optarg
1123    export $ac_envvar ;;
1124
1125  *)
1126    # FIXME: should be removed in autoconf 3.0.
1127    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1131    ;;
1132
1133  esac
1134done
1135
1136if test -n "$ac_prev"; then
1137  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138  as_fn_error "missing argument to $ac_option"
1139fi
1140
1141if test -n "$ac_unrecognized_opts"; then
1142  case $enable_option_checking in
1143    no) ;;
1144    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1145    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1146  esac
1147fi
1148
1149# Check all directory arguments for consistency.
1150for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151		datadir sysconfdir sharedstatedir localstatedir includedir \
1152		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1153		libdir localedir mandir
1154do
1155  eval ac_val=\$$ac_var
1156  # Remove trailing slashes.
1157  case $ac_val in
1158    */ )
1159      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160      eval $ac_var=\$ac_val;;
1161  esac
1162  # Be sure to have absolute directory names.
1163  case $ac_val in
1164    [\\/$]* | ?:[\\/]* )  continue;;
1165    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1166  esac
1167  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1168done
1169
1170# There might be people who depend on the old broken behavior: `$host'
1171# used to hold the argument of --host etc.
1172# FIXME: To remove some day.
1173build=$build_alias
1174host=$host_alias
1175target=$target_alias
1176
1177# FIXME: To remove some day.
1178if test "x$host_alias" != x; then
1179  if test "x$build_alias" = x; then
1180    cross_compiling=maybe
1181    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1182    If a cross compiler is detected then cross compile mode will be used." >&2
1183  elif test "x$build_alias" != "x$host_alias"; then
1184    cross_compiling=yes
1185  fi
1186fi
1187
1188ac_tool_prefix=
1189test -n "$host_alias" && ac_tool_prefix=$host_alias-
1190
1191test "$silent" = yes && exec 6>/dev/null
1192
1193
1194ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195ac_ls_di=`ls -di .` &&
1196ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1197  as_fn_error "working directory cannot be determined"
1198test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1199  as_fn_error "pwd does not report name of working directory"
1200
1201
1202# Find the source files, if location was not specified.
1203if test -z "$srcdir"; then
1204  ac_srcdir_defaulted=yes
1205  # Try the directory containing this script, then the parent directory.
1206  ac_confdir=`$as_dirname -- "$as_myself" ||
1207$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208	 X"$as_myself" : 'X\(//\)[^/]' \| \
1209	 X"$as_myself" : 'X\(//\)$' \| \
1210	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211$as_echo X"$as_myself" |
1212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213	    s//\1/
1214	    q
1215	  }
1216	  /^X\(\/\/\)[^/].*/{
1217	    s//\1/
1218	    q
1219	  }
1220	  /^X\(\/\/\)$/{
1221	    s//\1/
1222	    q
1223	  }
1224	  /^X\(\/\).*/{
1225	    s//\1/
1226	    q
1227	  }
1228	  s/.*/./; q'`
1229  srcdir=$ac_confdir
1230  if test ! -r "$srcdir/$ac_unique_file"; then
1231    srcdir=..
1232  fi
1233else
1234  ac_srcdir_defaulted=no
1235fi
1236if test ! -r "$srcdir/$ac_unique_file"; then
1237  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1238  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1239fi
1240ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241ac_abs_confdir=`(
1242	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1243	pwd)`
1244# When building in place, set srcdir=.
1245if test "$ac_abs_confdir" = "$ac_pwd"; then
1246  srcdir=.
1247fi
1248# Remove unnecessary trailing slashes from srcdir.
1249# Double slashes in file names in object file debugging info
1250# mess up M-x gdb in Emacs.
1251case $srcdir in
1252*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253esac
1254for ac_var in $ac_precious_vars; do
1255  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1256  eval ac_env_${ac_var}_value=\$${ac_var}
1257  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1258  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259done
1260
1261#
1262# Report the --help message.
1263#
1264if test "$ac_init_help" = "long"; then
1265  # Omit some internal or obsolete options to make the list less imposing.
1266  # This message is too long to be a string in the A/UX 3.1 sh.
1267  cat <<_ACEOF
1268\`configure' configures milter-greylist 4.6.4 to adapt to many kinds of systems.
1269
1270Usage: $0 [OPTION]... [VAR=VALUE]...
1271
1272To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273VAR=VALUE.  See below for descriptions of some of the useful variables.
1274
1275Defaults for the options are specified in brackets.
1276
1277Configuration:
1278  -h, --help              display this help and exit
1279      --help=short        display options specific to this package
1280      --help=recursive    display the short help of all the included packages
1281  -V, --version           display version information and exit
1282  -q, --quiet, --silent   do not print \`checking...' messages
1283      --cache-file=FILE   cache test results in FILE [disabled]
1284  -C, --config-cache      alias for \`--cache-file=config.cache'
1285  -n, --no-create         do not create output files
1286      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1287
1288Installation directories:
1289  --prefix=PREFIX         install architecture-independent files in PREFIX
1290                          @<:@@S|@ac_default_prefix@:>@
1291  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1292                          @<:@PREFIX@:>@
1293
1294By default, \`make install' will install all the files in
1295\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1296an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297for instance \`--prefix=\$HOME'.
1298
1299For better control, use the options below.
1300
1301Fine tuning of the installation directories:
1302  --bindir=DIR            user executables [EPREFIX/bin]
1303  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1304  --libexecdir=DIR        program executables [EPREFIX/libexec]
1305  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1306  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1307  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1308  --libdir=DIR            object code libraries [EPREFIX/lib]
1309  --includedir=DIR        C header files [PREFIX/include]
1310  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1311  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1312  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1313  --infodir=DIR           info documentation [DATAROOTDIR/info]
1314  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1315  --mandir=DIR            man documentation [DATAROOTDIR/man]
1316  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/milter-greylist@:>@
1317  --htmldir=DIR           html documentation [DOCDIR]
1318  --dvidir=DIR            dvi documentation [DOCDIR]
1319  --pdfdir=DIR            pdf documentation [DOCDIR]
1320  --psdir=DIR             ps documentation [DOCDIR]
1321_ACEOF
1322
1323  cat <<\_ACEOF
1324_ACEOF
1325fi
1326
1327if test -n "$ac_init_help"; then
1328  case $ac_init_help in
1329     short | recursive ) echo "Configuration of milter-greylist 4.6.4:";;
1330   esac
1331  cat <<\_ACEOF
1332
1333Optional Features:
1334  --disable-option-checking  ignore unrecognized --enable/--with options
1335  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1336  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1337  --disable-parallel-make   use if your make does not support -j
1338  --disable-rpath	do not hardcode runtime library paths
1339  --enable-stdio-hack   Use workaround for Solaris stdio limitation
1340  --enable-drac	Enable DRAC support
1341  --enable-p0f		Enable p0f support, v2
1342  --enable-p0f3	Enable p0f support, v3.00 to v3.05
1343  --enable-p0f306	Enable p0f support, v3.06 and up
1344  --enable-spamassassin	Enable SpamAssassin support
1345  --enable-dnsrbl	Enable DNSRBL support
1346  --enable-mx      Enable MX support
1347  --enable-postfix	Enable Postfix support
1348
1349Optional Packages:
1350  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1351  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1352  --with-package-name=STRING  Redefine packaging metadata (name)
1353  --with-package-version=STRING  Redefine packaging metadata (version)
1354  --with-package-version-suffix=STRING  Vendor-specific suffix to version or release
1355  --with-package-string=STRING  Redefine packaging metadata (name and version+suffix)
1356  --with-package-bugreport=STRING  Redefine packaging metadata (email)
1357  --with-package-url=STRING  Redefine packaging metadata (distro URL)
1358  --with-db=DIR   Find Berkeley DB in DIR
1359  --with-libmilter=DIR   Find libmilter in DIR
1360  --with-libpthread=DIR  Find libpthread in DIR
1361  --with-libbind=DIR	Find libbind in DIR
1362  --with-openssl(=DIR)  Find OpenSSL in DIR
1363  --with-openssl-static(=DIR)  Find OpenSSL in DIR and link statically
1364  --with-openldap(=DIR)  Find OpenLDAP in DIR
1365  --with-openldap-static(=DIR)  Find OpenLDAP in DIR and link statically
1366  --with-libcurl=DIR  Find libcurl in DIR
1367  --with-libcurl-static=DIR  Find libcurl in DIR and link statically
1368  --with-libGeoIP=DIR  Find libGeoIP in DIR
1369  --with-libmaxminddb=DIR  Find GeoIP2 libmaxminddb in DIR
1370  --with-libdmalloc=DIR  Find libdmalloc in DIR
1371  --with-libspf2=DIR  Find libspf2 in DIR
1372  --with-libspf2-static=DIR  Find libspf2 in DIR and link statically
1373  --with-libspf2_10=DIR  Find libspf2 1.0 in DIR
1374  --with-libspf_alt=DIR  Find libspf_alt in DIR
1375  --with-libspf=DIR  Find libspf in DIR
1376  --with-libdkim=DIR  Find Sendmail's libdkim in DIR
1377  --with-libopendkim=DIR  Find The Trusted Domain Project's libopendkim in DIR
1378  --with-p0f-src=path  p0f sources path
1379  --with-thread-safe-resolver   Resolver is thread-safe
1380  --with-user=USERNAME   The user that will run milter-greylist
1381  --with-conffile=PATH Location of config file
1382  --with-dumpfile=PATH   Location of dump file
1383  --with-delay=VALUE     Delay before accepting mail
1384  --with-timeout=VALUE   Timeout before we forget about a send
1385  --with-autowhite=VALUE How long auto-whitelisting lasts
1386  --with-drac-db=PATH   Where is the DRAC database
1387
1388Some influential environment variables:
1389  CC          C compiler command
1390  CFLAGS      C compiler flags
1391  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1392              nonstandard directory <lib dir>
1393  LIBS        libraries to pass to the linker, e.g. -l<library>
1394  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1395              you have headers in a nonstandard directory <include dir>
1396  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1397              the first program found out of: `bison -y', `byacc', `yacc'.
1398  YFLAGS      The list of arguments that will be passed by default to @S|@YACC.
1399              This script will default YFLAGS to the empty string to avoid a
1400              default value of `-d' given by some make applications.
1401  CPP         C preprocessor
1402
1403Use these variables to override the choices made by `configure' or to help
1404it to find libraries and programs with nonstandard names/locations.
1405
1406Report bugs to <manu@netbsd.org>.
1407_ACEOF
1408ac_status=$?
1409fi
1410
1411if test "$ac_init_help" = "recursive"; then
1412  # If there are subdirs, report their specific --help.
1413  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414    test -d "$ac_dir" ||
1415      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416      continue
1417    ac_builddir=.
1418
1419case "$ac_dir" in
1420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421*)
1422  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423  # A ".." for each directory in $ac_dir_suffix.
1424  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425  case $ac_top_builddir_sub in
1426  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428  esac ;;
1429esac
1430ac_abs_top_builddir=$ac_pwd
1431ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432# for backward compatibility:
1433ac_top_builddir=$ac_top_build_prefix
1434
1435case $srcdir in
1436  .)  # We are building in place.
1437    ac_srcdir=.
1438    ac_top_srcdir=$ac_top_builddir_sub
1439    ac_abs_top_srcdir=$ac_pwd ;;
1440  [\\/]* | ?:[\\/]* )  # Absolute name.
1441    ac_srcdir=$srcdir$ac_dir_suffix;
1442    ac_top_srcdir=$srcdir
1443    ac_abs_top_srcdir=$srcdir ;;
1444  *) # Relative name.
1445    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446    ac_top_srcdir=$ac_top_build_prefix$srcdir
1447    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448esac
1449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450
1451    cd "$ac_dir" || { ac_status=$?; continue; }
1452    # Check for guested configure.
1453    if test -f "$ac_srcdir/configure.gnu"; then
1454      echo &&
1455      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456    elif test -f "$ac_srcdir/configure"; then
1457      echo &&
1458      $SHELL "$ac_srcdir/configure" --help=recursive
1459    else
1460      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461    fi || ac_status=$?
1462    cd "$ac_pwd" || { ac_status=$?; break; }
1463  done
1464fi
1465
1466test -n "$ac_init_help" && exit $ac_status
1467if $ac_init_version; then
1468  cat <<\_ACEOF
1469milter-greylist configure 4.6.4
1470generated by GNU Autoconf 2.65
1471
1472Copyright (C) 2009 Free Software Foundation, Inc.
1473This configure script is free software; the Free Software Foundation
1474gives unlimited permission to copy, distribute and modify it.
1475_ACEOF
1476  exit
1477fi
1478
1479## ------------------------ ##
1480## Autoconf initialization. ##
1481## ------------------------ ##
1482
1483@%:@ ac_fn_c_try_compile LINENO
1484@%:@ --------------------------
1485@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1486ac_fn_c_try_compile ()
1487{
1488  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489  rm -f conftest.$ac_objext
1490  if { { ac_try="$ac_compile"
1491case "(($ac_try" in
1492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493  *) ac_try_echo=$ac_try;;
1494esac
1495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496$as_echo "$ac_try_echo"; } >&5
1497  (eval "$ac_compile") 2>conftest.err
1498  ac_status=$?
1499  if test -s conftest.err; then
1500    grep -v '^ *+' conftest.err >conftest.er1
1501    cat conftest.er1 >&5
1502    mv -f conftest.er1 conftest.err
1503  fi
1504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505  test $ac_status = 0; } && {
1506	 test -z "$ac_c_werror_flag" ||
1507	 test ! -s conftest.err
1508       } && test -s conftest.$ac_objext; then :
1509  ac_retval=0
1510else
1511  $as_echo "$as_me: failed program was:" >&5
1512sed 's/^/| /' conftest.$ac_ext >&5
1513
1514	ac_retval=1
1515fi
1516  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1517  as_fn_set_status $ac_retval
1518
1519} @%:@ ac_fn_c_try_compile
1520
1521@%:@ ac_fn_c_try_link LINENO
1522@%:@ -----------------------
1523@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1524ac_fn_c_try_link ()
1525{
1526  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527  rm -f conftest.$ac_objext conftest$ac_exeext
1528  if { { ac_try="$ac_link"
1529case "(($ac_try" in
1530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531  *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535  (eval "$ac_link") 2>conftest.err
1536  ac_status=$?
1537  if test -s conftest.err; then
1538    grep -v '^ *+' conftest.err >conftest.er1
1539    cat conftest.er1 >&5
1540    mv -f conftest.er1 conftest.err
1541  fi
1542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543  test $ac_status = 0; } && {
1544	 test -z "$ac_c_werror_flag" ||
1545	 test ! -s conftest.err
1546       } && test -s conftest$ac_exeext && {
1547	 test "$cross_compiling" = yes ||
1548	 $as_test_x conftest$ac_exeext
1549       }; then :
1550  ac_retval=0
1551else
1552  $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555	ac_retval=1
1556fi
1557  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1558  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1559  # interfere with the next link command; also delete a directory that is
1560  # left behind by Apple's compiler.  We do this before executing the actions.
1561  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1562  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563  as_fn_set_status $ac_retval
1564
1565} @%:@ ac_fn_c_try_link
1566
1567@%:@ ac_fn_c_try_cpp LINENO
1568@%:@ ----------------------
1569@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1570ac_fn_c_try_cpp ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  if { { ac_try="$ac_cpp conftest.$ac_ext"
1574case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } >/dev/null && {
1589	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590	 test ! -s conftest.err
1591       }; then :
1592  ac_retval=0
1593else
1594  $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
1596
1597    ac_retval=1
1598fi
1599  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600  as_fn_set_status $ac_retval
1601
1602} @%:@ ac_fn_c_try_cpp
1603
1604@%:@ ac_fn_c_try_run LINENO
1605@%:@ ----------------------
1606@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1607@%:@ that executables *can* be run.
1608ac_fn_c_try_run ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  if { { ac_try="$ac_link"
1612case "(($ac_try" in
1613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614  *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618  (eval "$ac_link") 2>&5
1619  ac_status=$?
1620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622  { { case "(($ac_try" in
1623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624  *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627$as_echo "$ac_try_echo"; } >&5
1628  (eval "$ac_try") 2>&5
1629  ac_status=$?
1630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631  test $ac_status = 0; }; }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: program exited with status $ac_status" >&5
1635       $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638       ac_retval=$ac_status
1639fi
1640  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642  as_fn_set_status $ac_retval
1643
1644} @%:@ ac_fn_c_try_run
1645
1646@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647@%:@ -------------------------------------------------------
1648@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649@%:@ the include files in INCLUDES and setting the cache variable VAR
1650@%:@ accordingly.
1651ac_fn_c_check_header_mongrel ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658  $as_echo_n "(cached) " >&6
1659fi
1660eval ac_res=\$$3
1661	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663else
1664  # Is the header compilable?
1665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666$as_echo_n "checking $2 usability... " >&6; }
1667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668/* end confdefs.h.  */
1669$4
1670@%:@include <$2>
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673  ac_header_compiler=yes
1674else
1675  ac_header_compiler=no
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679$as_echo "$ac_header_compiler" >&6; }
1680
1681# Is the header present?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683$as_echo_n "checking $2 presence... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h.  */
1686@%:@include <$2>
1687_ACEOF
1688if ac_fn_c_try_cpp "$LINENO"; then :
1689  ac_header_preproc=yes
1690else
1691  ac_header_preproc=no
1692fi
1693rm -f conftest.err conftest.$ac_ext
1694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695$as_echo "$ac_header_preproc" >&6; }
1696
1697# So?  What about this header?
1698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1699  yes:no: )
1700    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704    ;;
1705  no:yes:* )
1706    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1709$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1713$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1714    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716( cat <<\_ASBOX
1717## ------------------------------ ##
1718## Report this to manu@netbsd.org ##
1719## ------------------------------ ##
1720_ASBOX
1721     ) | sed "s/^/$as_me: WARNING:     /" >&2
1722    ;;
1723esac
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  eval "$3=\$ac_header_compiler"
1730fi
1731eval ac_res=\$$3
1732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734fi
1735  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737} @%:@ ac_fn_c_check_header_mongrel
1738
1739@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740@%:@ -------------------------------------------------------
1741@%:@ Tests whether HEADER exists and can be compiled using the include files in
1742@%:@ INCLUDES, setting the cache variable VAR accordingly.
1743ac_fn_c_check_header_compile ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747$as_echo_n "checking for $2... " >&6; }
1748if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749  $as_echo_n "(cached) " >&6
1750else
1751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h.  */
1753$4
1754@%:@include <$2>
1755_ACEOF
1756if ac_fn_c_try_compile "$LINENO"; then :
1757  eval "$3=yes"
1758else
1759  eval "$3=no"
1760fi
1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762fi
1763eval ac_res=\$$3
1764	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
1766  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767
1768} @%:@ ac_fn_c_check_header_compile
1769
1770@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1771@%:@ -------------------------------------------
1772@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1773@%:@ variable VAR accordingly.
1774ac_fn_c_check_type ()
1775{
1776  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780  $as_echo_n "(cached) " >&6
1781else
1782  eval "$3=no"
1783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h.  */
1785$4
1786int
1787main ()
1788{
1789if (sizeof ($2))
1790	 return 0;
1791  ;
1792  return 0;
1793}
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$4
1799int
1800main ()
1801{
1802if (sizeof (($2)))
1803	    return 0;
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809
1810else
1811  eval "$3=yes"
1812fi
1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816fi
1817eval ac_res=\$$3
1818	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
1820  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821
1822} @%:@ ac_fn_c_check_type
1823
1824@%:@ ac_fn_c_check_func LINENO FUNC VAR
1825@%:@ ----------------------------------
1826@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1827ac_fn_c_check_func ()
1828{
1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833  $as_echo_n "(cached) " >&6
1834else
1835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h.  */
1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1839#define $2 innocuous_$2
1840
1841/* System header to define __stub macros and hopefully few prototypes,
1842    which can conflict with char $2 (); below.
1843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844    <limits.h> exists even on freestanding compilers.  */
1845
1846#ifdef __STDC__
1847# include <limits.h>
1848#else
1849# include <assert.h>
1850#endif
1851
1852#undef $2
1853
1854/* Override any GCC internal prototype to avoid an error.
1855   Use char because int might match the return type of a GCC
1856   builtin and then its argument prototype would still apply.  */
1857#ifdef __cplusplus
1858extern "C"
1859#endif
1860char $2 ();
1861/* The GNU C library defines this for functions which it implements
1862    to always fail with ENOSYS.  Some functions are actually named
1863    something starting with __ and the normal name is an alias.  */
1864#if defined __stub_$2 || defined __stub___$2
1865choke me
1866#endif
1867
1868int
1869main ()
1870{
1871return $2 ();
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_link "$LINENO"; then :
1877  eval "$3=yes"
1878else
1879  eval "$3=no"
1880fi
1881rm -f core conftest.err conftest.$ac_objext \
1882    conftest$ac_exeext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889} @%:@ ac_fn_c_check_func
1890
1891@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1892@%:@ ----------------------------------------------------
1893@%:@ Tries to find if the field MEMBER exists in type AGGR, after including
1894@%:@ INCLUDES, setting cache variable VAR accordingly.
1895ac_fn_c_check_member ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1899$as_echo_n "checking for $2.$3... " >&6; }
1900if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1901  $as_echo_n "(cached) " >&6
1902else
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$5
1906int
1907main ()
1908{
1909static $2 ac_aggr;
1910if (ac_aggr.$3)
1911return 0;
1912  ;
1913  return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917  eval "$4=yes"
1918else
1919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h.  */
1921$5
1922int
1923main ()
1924{
1925static $2 ac_aggr;
1926if (sizeof ac_aggr.$3)
1927return 0;
1928  ;
1929  return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933  eval "$4=yes"
1934else
1935  eval "$4=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$4
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946} @%:@ ac_fn_c_check_member
1947cat >config.log <<_ACEOF
1948This file contains any messages produced by compilers while
1949running configure, to aid debugging if configure makes a mistake.
1950
1951It was created by milter-greylist $as_me 4.6.4, which was
1952generated by GNU Autoconf 2.65.  Invocation command line was
1953
1954  $ $0 $@
1955
1956_ACEOF
1957exec 5>>config.log
1958{
1959cat <<_ASUNAME
1960## --------- ##
1961## Platform. ##
1962## --------- ##
1963
1964hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1972
1973/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1974/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1975/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1977/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1978/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1979/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1980
1981_ASUNAME
1982
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986  IFS=$as_save_IFS
1987  test -z "$as_dir" && as_dir=.
1988    $as_echo "PATH: $as_dir"
1989  done
1990IFS=$as_save_IFS
1991
1992} >&5
1993
1994cat >&5 <<_ACEOF
1995
1996
1997## ----------- ##
1998## Core tests. ##
1999## ----------- ##
2000
2001_ACEOF
2002
2003
2004# Keep a trace of the command line.
2005# Strip out --no-create and --no-recursion so they do not pile up.
2006# Strip out --silent because we don't want to record it for future runs.
2007# Also quote any args containing shell meta-characters.
2008# Make two passes to allow for proper duplicate-argument suppression.
2009ac_configure_args=
2010ac_configure_args0=
2011ac_configure_args1=
2012ac_must_keep_next=false
2013for ac_pass in 1 2
2014do
2015  for ac_arg
2016  do
2017    case $ac_arg in
2018    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020    | -silent | --silent | --silen | --sile | --sil)
2021      continue ;;
2022    *\'*)
2023      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024    esac
2025    case $ac_pass in
2026    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027    2)
2028      as_fn_append ac_configure_args1 " '$ac_arg'"
2029      if test $ac_must_keep_next = true; then
2030	ac_must_keep_next=false # Got value, back to normal.
2031      else
2032	case $ac_arg in
2033	  *=* | --config-cache | -C | -disable-* | --disable-* \
2034	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036	  | -with-* | --with-* | -without-* | --without-* | --x)
2037	    case "$ac_configure_args0 " in
2038	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039	    esac
2040	    ;;
2041	  -* ) ac_must_keep_next=true ;;
2042	esac
2043      fi
2044      as_fn_append ac_configure_args " '$ac_arg'"
2045      ;;
2046    esac
2047  done
2048done
2049{ ac_configure_args0=; unset ac_configure_args0;}
2050{ ac_configure_args1=; unset ac_configure_args1;}
2051
2052# When interrupted or exit'd, cleanup temporary files, and complete
2053# config.log.  We remove comments because anyway the quotes in there
2054# would cause problems or look ugly.
2055# WARNING: Use '\'' to represent an apostrophe within the trap.
2056# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057trap 'exit_status=$?
2058  # Save into config.log some information that might help in debugging.
2059  {
2060    echo
2061
2062    cat <<\_ASBOX
2063## ---------------- ##
2064## Cache variables. ##
2065## ---------------- ##
2066_ASBOX
2067    echo
2068    # The following way of writing the cache mishandles newlines in values,
2069(
2070  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071    eval ac_val=\$$ac_var
2072    case $ac_val in #(
2073    *${as_nl}*)
2074      case $ac_var in #(
2075      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077      esac
2078      case $ac_var in #(
2079      _ | IFS | as_nl) ;; #(
2080      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081      *) { eval $ac_var=; unset $ac_var;} ;;
2082      esac ;;
2083    esac
2084  done
2085  (set) 2>&1 |
2086    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087    *${as_nl}ac_space=\ *)
2088      sed -n \
2089	"s/'\''/'\''\\\\'\'''\''/g;
2090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091      ;; #(
2092    *)
2093      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094      ;;
2095    esac |
2096    sort
2097)
2098    echo
2099
2100    cat <<\_ASBOX
2101## ----------------- ##
2102## Output variables. ##
2103## ----------------- ##
2104_ASBOX
2105    echo
2106    for ac_var in $ac_subst_vars
2107    do
2108      eval ac_val=\$$ac_var
2109      case $ac_val in
2110      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111      esac
2112      $as_echo "$ac_var='\''$ac_val'\''"
2113    done | sort
2114    echo
2115
2116    if test -n "$ac_subst_files"; then
2117      cat <<\_ASBOX
2118## ------------------- ##
2119## File substitutions. ##
2120## ------------------- ##
2121_ASBOX
2122      echo
2123      for ac_var in $ac_subst_files
2124      do
2125	eval ac_val=\$$ac_var
2126	case $ac_val in
2127	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128	esac
2129	$as_echo "$ac_var='\''$ac_val'\''"
2130      done | sort
2131      echo
2132    fi
2133
2134    if test -s confdefs.h; then
2135      cat <<\_ASBOX
2136## ----------- ##
2137## confdefs.h. ##
2138## ----------- ##
2139_ASBOX
2140      echo
2141      cat confdefs.h
2142      echo
2143    fi
2144    test "$ac_signal" != 0 &&
2145      $as_echo "$as_me: caught signal $ac_signal"
2146    $as_echo "$as_me: exit $exit_status"
2147  } >&5
2148  rm -f core *.core core.conftest.* &&
2149    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150    exit $exit_status
2151' 0
2152for ac_signal in 1 2 13 15; do
2153  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154done
2155ac_signal=0
2156
2157# confdefs.h avoids OS command line length limits that DEFS can exceed.
2158rm -f -r conftest* confdefs.h
2159
2160$as_echo "/* confdefs.h */" > confdefs.h
2161
2162# Predefined preprocessor variables.
2163
2164cat >>confdefs.h <<_ACEOF
2165@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170_ACEOF
2171
2172cat >>confdefs.h <<_ACEOF
2173@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2174_ACEOF
2175
2176cat >>confdefs.h <<_ACEOF
2177@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185@%:@define PACKAGE_URL "$PACKAGE_URL"
2186_ACEOF
2187
2188
2189# Let the site file select an alternate cache file if it wants to.
2190# Prefer an explicitly selected file to automatically selected ones.
2191ac_site_file1=NONE
2192ac_site_file2=NONE
2193if test -n "$CONFIG_SITE"; then
2194  ac_site_file1=$CONFIG_SITE
2195elif test "x$prefix" != xNONE; then
2196  ac_site_file1=$prefix/share/config.site
2197  ac_site_file2=$prefix/etc/config.site
2198else
2199  ac_site_file1=$ac_default_prefix/share/config.site
2200  ac_site_file2=$ac_default_prefix/etc/config.site
2201fi
2202for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203do
2204  test "x$ac_site_file" = xNONE && continue
2205  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2206    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208    sed 's/^/| /' "$ac_site_file" >&5
2209    . "$ac_site_file"
2210  fi
2211done
2212
2213if test -r "$cache_file"; then
2214  # Some versions of bash will fail to source /dev/null (special files
2215  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2216  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2217    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218$as_echo "$as_me: loading cache $cache_file" >&6;}
2219    case $cache_file in
2220      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221      *)                      . "./$cache_file";;
2222    esac
2223  fi
2224else
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226$as_echo "$as_me: creating cache $cache_file" >&6;}
2227  >$cache_file
2228fi
2229
2230# Check that the precious variables saved in the cache have kept the same
2231# value.
2232ac_cache_corrupted=false
2233for ac_var in $ac_precious_vars; do
2234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235  eval ac_new_set=\$ac_env_${ac_var}_set
2236  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237  eval ac_new_val=\$ac_env_${ac_var}_value
2238  case $ac_old_set,$ac_new_set in
2239    set,)
2240      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242      ac_cache_corrupted=: ;;
2243    ,set)
2244      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246      ac_cache_corrupted=: ;;
2247    ,);;
2248    *)
2249      if test "x$ac_old_val" != "x$ac_new_val"; then
2250	# differences in whitespace do not lead to failure.
2251	ac_old_val_w=`echo x $ac_old_val`
2252	ac_new_val_w=`echo x $ac_new_val`
2253	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256	  ac_cache_corrupted=:
2257	else
2258	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260	  eval $ac_var=\$ac_old_val
2261	fi
2262	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2263$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2264	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2265$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2266      fi;;
2267  esac
2268  # Pass precious variables to config.status.
2269  if test "$ac_new_set" = set; then
2270    case $ac_new_val in
2271    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272    *) ac_arg=$ac_var=$ac_new_val ;;
2273    esac
2274    case " $ac_configure_args " in
2275      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2276      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277    esac
2278  fi
2279done
2280if $ac_cache_corrupted; then
2281  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286fi
2287## -------------------- ##
2288## Main body of script. ##
2289## -------------------- ##
2290
2291ac_ext=c
2292ac_cpp='$CPP $CPPFLAGS'
2293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298
2299ac_config_headers="$ac_config_headers config.h"
2300
2301
2302# Checks for programs.
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308if test -n "$ac_tool_prefix"; then
2309  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2310set dummy ${ac_tool_prefix}gcc; ac_word=$2
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312$as_echo_n "checking for $ac_word... " >&6; }
2313if test "${ac_cv_prog_CC+set}" = set; then :
2314  $as_echo_n "(cached) " >&6
2315else
2316  if test -n "$CC"; then
2317  ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  test -z "$as_dir" && as_dir=.
2324    for ac_exec_ext in '' $ac_executable_extensions; do
2325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2328    break 2
2329  fi
2330done
2331  done
2332IFS=$as_save_IFS
2333
2334fi
2335fi
2336CC=$ac_cv_prog_CC
2337if test -n "$CC"; then
2338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2339$as_echo "$CC" >&6; }
2340else
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342$as_echo "no" >&6; }
2343fi
2344
2345
2346fi
2347if test -z "$ac_cv_prog_CC"; then
2348  ac_ct_CC=$CC
2349  # Extract the first word of "gcc", so it can be a program name with args.
2350set dummy gcc; ac_word=$2
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
2353if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2354  $as_echo_n "(cached) " >&6
2355else
2356  if test -n "$ac_ct_CC"; then
2357  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    for ac_exec_ext in '' $ac_executable_extensions; do
2365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366    ac_cv_prog_ac_ct_CC="gcc"
2367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368    break 2
2369  fi
2370done
2371  done
2372IFS=$as_save_IFS
2373
2374fi
2375fi
2376ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377if test -n "$ac_ct_CC"; then
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2379$as_echo "$ac_ct_CC" >&6; }
2380else
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382$as_echo "no" >&6; }
2383fi
2384
2385  if test "x$ac_ct_CC" = x; then
2386    CC=""
2387  else
2388    case $cross_compiling:$ac_tool_warned in
2389yes:)
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392ac_tool_warned=yes ;;
2393esac
2394    CC=$ac_ct_CC
2395  fi
2396else
2397  CC="$ac_cv_prog_CC"
2398fi
2399
2400if test -z "$CC"; then
2401          if test -n "$ac_tool_prefix"; then
2402    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}cc; ac_word=$2
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
2406if test "${ac_cv_prog_CC+set}" = set; then :
2407  $as_echo_n "(cached) " >&6
2408else
2409  if test -n "$CC"; then
2410  ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415  IFS=$as_save_IFS
2416  test -z "$as_dir" && as_dir=.
2417    for ac_exec_ext in '' $ac_executable_extensions; do
2418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2419    ac_cv_prog_CC="${ac_tool_prefix}cc"
2420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421    break 2
2422  fi
2423done
2424  done
2425IFS=$as_save_IFS
2426
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
2431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432$as_echo "$CC" >&6; }
2433else
2434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
2436fi
2437
2438
2439  fi
2440fi
2441if test -z "$CC"; then
2442  # Extract the first word of "cc", so it can be a program name with args.
2443set dummy cc; ac_word=$2
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if test "${ac_cv_prog_CC+set}" = set; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  if test -n "$CC"; then
2450  ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452  ac_prog_rejected=no
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458    for ac_exec_ext in '' $ac_executable_extensions; do
2459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2461       ac_prog_rejected=yes
2462       continue
2463     fi
2464    ac_cv_prog_CC="cc"
2465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466    break 2
2467  fi
2468done
2469  done
2470IFS=$as_save_IFS
2471
2472if test $ac_prog_rejected = yes; then
2473  # We found a bogon in the path, so make sure we never use it.
2474  set dummy $ac_cv_prog_CC
2475  shift
2476  if test $@%:@ != 0; then
2477    # We chose a different compiler from the bogus one.
2478    # However, it has the same basename, so the bogon will be chosen
2479    # first if we set CC to just the basename; use the full file name.
2480    shift
2481    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482  fi
2483fi
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489$as_echo "$CC" >&6; }
2490else
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496fi
2497if test -z "$CC"; then
2498  if test -n "$ac_tool_prefix"; then
2499  for ac_prog in cl.exe
2500  do
2501    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if test "${ac_cv_prog_CC+set}" = set; then :
2506  $as_echo_n "(cached) " >&6
2507else
2508  if test -n "$CC"; then
2509  ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514  IFS=$as_save_IFS
2515  test -z "$as_dir" && as_dir=.
2516    for ac_exec_ext in '' $ac_executable_extensions; do
2517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520    break 2
2521  fi
2522done
2523  done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2531$as_echo "$CC" >&6; }
2532else
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534$as_echo "no" >&6; }
2535fi
2536
2537
2538    test -n "$CC" && break
2539  done
2540fi
2541if test -z "$CC"; then
2542  ac_ct_CC=$CC
2543  for ac_prog in cl.exe
2544do
2545  # Extract the first word of "$ac_prog", so it can be a program name with args.
2546set dummy $ac_prog; ac_word=$2
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
2549if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2550  $as_echo_n "(cached) " >&6
2551else
2552  if test -n "$ac_ct_CC"; then
2553  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558  IFS=$as_save_IFS
2559  test -z "$as_dir" && as_dir=.
2560    for ac_exec_ext in '' $ac_executable_extensions; do
2561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562    ac_cv_prog_ac_ct_CC="$ac_prog"
2563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564    break 2
2565  fi
2566done
2567  done
2568IFS=$as_save_IFS
2569
2570fi
2571fi
2572ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573if test -n "$ac_ct_CC"; then
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2575$as_echo "$ac_ct_CC" >&6; }
2576else
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578$as_echo "no" >&6; }
2579fi
2580
2581
2582  test -n "$ac_ct_CC" && break
2583done
2584
2585  if test "x$ac_ct_CC" = x; then
2586    CC=""
2587  else
2588    case $cross_compiling:$ac_tool_warned in
2589yes:)
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592ac_tool_warned=yes ;;
2593esac
2594    CC=$ac_ct_CC
2595  fi
2596fi
2597
2598fi
2599
2600
2601test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603as_fn_error "no acceptable C compiler found in \$PATH
2604See \`config.log' for more details." "$LINENO" 5; }
2605
2606# Provide some information about the compiler.
2607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2608set X $ac_compile
2609ac_compiler=$2
2610for ac_option in --version -v -V -qversion; do
2611  { { ac_try="$ac_compiler $ac_option >&5"
2612case "(($ac_try" in
2613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614  *) ac_try_echo=$ac_try;;
2615esac
2616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617$as_echo "$ac_try_echo"; } >&5
2618  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2619  ac_status=$?
2620  if test -s conftest.err; then
2621    sed '10a\
2622... rest of stderr output deleted ...
2623         10q' conftest.err >conftest.er1
2624    cat conftest.er1 >&5
2625  fi
2626  rm -f conftest.er1 conftest.err
2627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628  test $ac_status = 0; }
2629done
2630
2631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632/* end confdefs.h.  */
2633
2634int
2635main ()
2636{
2637
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642ac_clean_files_save=$ac_clean_files
2643ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2644# Try to create an executable without -o first, disregard a.out.
2645# It will help us diagnose broken compilers, and finding out an intuition
2646# of exeext.
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2648$as_echo_n "checking whether the C compiler works... " >&6; }
2649ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650
2651# The possible output files:
2652ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653
2654ac_rmfiles=
2655for ac_file in $ac_files
2656do
2657  case $ac_file in
2658    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2659    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660  esac
2661done
2662rm -f $ac_rmfiles
2663
2664if { { ac_try="$ac_link_default"
2665case "(($ac_try" in
2666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667  *) ac_try_echo=$ac_try;;
2668esac
2669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670$as_echo "$ac_try_echo"; } >&5
2671  (eval "$ac_link_default") 2>&5
2672  ac_status=$?
2673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674  test $ac_status = 0; }; then :
2675  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2676# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2677# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2678# so that the user can short-circuit this test for compilers unknown to
2679# Autoconf.
2680for ac_file in $ac_files ''
2681do
2682  test -f "$ac_file" || continue
2683  case $ac_file in
2684    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2685	;;
2686    [ab].out )
2687	# We found the default executable, but exeext='' is most
2688	# certainly right.
2689	break;;
2690    *.* )
2691	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692	then :; else
2693	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694	fi
2695	# We set ac_cv_exeext here because the later test for it is not
2696	# safe: cross compilers may not add the suffix if given an `-o'
2697	# argument, so we may need to know it at that point already.
2698	# Even if this section looks crufty: it has the advantage of
2699	# actually working.
2700	break;;
2701    * )
2702	break;;
2703  esac
2704done
2705test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
2707else
2708  ac_file=''
2709fi
2710if test -z "$ac_file"; then :
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713$as_echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718{ as_fn_set_status 77
2719as_fn_error "C compiler cannot create executables
2720See \`config.log' for more details." "$LINENO" 5; }; }
2721else
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723$as_echo "yes" >&6; }
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2726$as_echo_n "checking for C compiler default output file name... " >&6; }
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2728$as_echo "$ac_file" >&6; }
2729ac_exeext=$ac_cv_exeext
2730
2731rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2732ac_clean_files=$ac_clean_files_save
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2734$as_echo_n "checking for suffix of executables... " >&6; }
2735if { { ac_try="$ac_link"
2736case "(($ac_try" in
2737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738  *) ac_try_echo=$ac_try;;
2739esac
2740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741$as_echo "$ac_try_echo"; } >&5
2742  (eval "$ac_link") 2>&5
2743  ac_status=$?
2744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745  test $ac_status = 0; }; then :
2746  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2747# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2748# work properly (i.e., refer to `conftest.exe'), while it won't with
2749# `rm'.
2750for ac_file in conftest.exe conftest conftest.*; do
2751  test -f "$ac_file" || continue
2752  case $ac_file in
2753    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2754    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2755	  break;;
2756    * ) break;;
2757  esac
2758done
2759else
2760  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762as_fn_error "cannot compute suffix of executables: cannot compile and link
2763See \`config.log' for more details." "$LINENO" 5; }
2764fi
2765rm -f conftest conftest$ac_cv_exeext
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2767$as_echo "$ac_cv_exeext" >&6; }
2768
2769rm -f conftest.$ac_ext
2770EXEEXT=$ac_cv_exeext
2771ac_exeext=$EXEEXT
2772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773/* end confdefs.h.  */
2774@%:@include <stdio.h>
2775int
2776main ()
2777{
2778FILE *f = fopen ("conftest.out", "w");
2779 return ferror (f) || fclose (f) != 0;
2780
2781  ;
2782  return 0;
2783}
2784_ACEOF
2785ac_clean_files="$ac_clean_files conftest.out"
2786# Check that the compiler produces executables we can run.  If not, either
2787# the compiler is broken, or we cross compile.
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2789$as_echo_n "checking whether we are cross compiling... " >&6; }
2790if test "$cross_compiling" != yes; then
2791  { { ac_try="$ac_link"
2792case "(($ac_try" in
2793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794  *) ac_try_echo=$ac_try;;
2795esac
2796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2797$as_echo "$ac_try_echo"; } >&5
2798  (eval "$ac_link") 2>&5
2799  ac_status=$?
2800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801  test $ac_status = 0; }
2802  if { ac_try='./conftest$ac_cv_exeext'
2803  { { case "(($ac_try" in
2804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805  *) ac_try_echo=$ac_try;;
2806esac
2807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2808$as_echo "$ac_try_echo"; } >&5
2809  (eval "$ac_try") 2>&5
2810  ac_status=$?
2811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812  test $ac_status = 0; }; }; then
2813    cross_compiling=no
2814  else
2815    if test "$cross_compiling" = maybe; then
2816	cross_compiling=yes
2817    else
2818	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820as_fn_error "cannot run C compiled programs.
2821If you meant to cross compile, use \`--host'.
2822See \`config.log' for more details." "$LINENO" 5; }
2823    fi
2824  fi
2825fi
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2827$as_echo "$cross_compiling" >&6; }
2828
2829rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2830ac_clean_files=$ac_clean_files_save
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2832$as_echo_n "checking for suffix of object files... " >&6; }
2833if test "${ac_cv_objext+set}" = set; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837/* end confdefs.h.  */
2838
2839int
2840main ()
2841{
2842
2843  ;
2844  return 0;
2845}
2846_ACEOF
2847rm -f conftest.o conftest.obj
2848if { { ac_try="$ac_compile"
2849case "(($ac_try" in
2850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851  *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855  (eval "$ac_compile") 2>&5
2856  ac_status=$?
2857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858  test $ac_status = 0; }; then :
2859  for ac_file in conftest.o conftest.obj conftest.*; do
2860  test -f "$ac_file" || continue;
2861  case $ac_file in
2862    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2863    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2864       break;;
2865  esac
2866done
2867else
2868  $as_echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873as_fn_error "cannot compute suffix of object files: cannot compile
2874See \`config.log' for more details." "$LINENO" 5; }
2875fi
2876rm -f conftest.$ac_cv_objext conftest.$ac_ext
2877fi
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2879$as_echo "$ac_cv_objext" >&6; }
2880OBJEXT=$ac_cv_objext
2881ac_objext=$OBJEXT
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2883$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2884if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2885  $as_echo_n "(cached) " >&6
2886else
2887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893#ifndef __GNUC__
2894       choke me
2895#endif
2896
2897  ;
2898  return 0;
2899}
2900_ACEOF
2901if ac_fn_c_try_compile "$LINENO"; then :
2902  ac_compiler_gnu=yes
2903else
2904  ac_compiler_gnu=no
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2911$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912if test $ac_compiler_gnu = yes; then
2913  GCC=yes
2914else
2915  GCC=
2916fi
2917ac_test_CFLAGS=${CFLAGS+set}
2918ac_save_CFLAGS=$CFLAGS
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2920$as_echo_n "checking whether $CC accepts -g... " >&6; }
2921if test "${ac_cv_prog_cc_g+set}" = set; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  ac_save_c_werror_flag=$ac_c_werror_flag
2925   ac_c_werror_flag=yes
2926   ac_cv_prog_cc_g=no
2927   CFLAGS="-g"
2928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h.  */
2930
2931int
2932main ()
2933{
2934
2935  ;
2936  return 0;
2937}
2938_ACEOF
2939if ac_fn_c_try_compile "$LINENO"; then :
2940  ac_cv_prog_cc_g=yes
2941else
2942  CFLAGS=""
2943      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954if ac_fn_c_try_compile "$LINENO"; then :
2955
2956else
2957  ac_c_werror_flag=$ac_save_c_werror_flag
2958	 CFLAGS="-g"
2959	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971  ac_cv_prog_cc_g=yes
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974fi
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976fi
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978   ac_c_werror_flag=$ac_save_c_werror_flag
2979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2981$as_echo "$ac_cv_prog_cc_g" >&6; }
2982if test "$ac_test_CFLAGS" = set; then
2983  CFLAGS=$ac_save_CFLAGS
2984elif test $ac_cv_prog_cc_g = yes; then
2985  if test "$GCC" = yes; then
2986    CFLAGS="-g -O2"
2987  else
2988    CFLAGS="-g"
2989  fi
2990else
2991  if test "$GCC" = yes; then
2992    CFLAGS="-O2"
2993  else
2994    CFLAGS=
2995  fi
2996fi
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2998$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2999if test "${ac_cv_prog_cc_c89+set}" = set; then :
3000  $as_echo_n "(cached) " >&6
3001else
3002  ac_cv_prog_cc_c89=no
3003ac_save_CC=$CC
3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h.  */
3006#include <stdarg.h>
3007#include <stdio.h>
3008#include <sys/types.h>
3009#include <sys/stat.h>
3010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3011struct buf { int x; };
3012FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013static char *e (p, i)
3014     char **p;
3015     int i;
3016{
3017  return p[i];
3018}
3019static char *f (char * (*g) (char **, int), char **p, ...)
3020{
3021  char *s;
3022  va_list v;
3023  va_start (v,p);
3024  s = g (p, va_arg (v,int));
3025  va_end (v);
3026  return s;
3027}
3028
3029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3030   function prototypes and stuff, but not '\xHH' hex character constants.
3031   These don't provoke an error unfortunately, instead are silently treated
3032   as 'x'.  The following induces an error, until -std is added to get
3033   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3034   array size at least.  It's necessary to write '\x00'==0 to get something
3035   that's true only with -std.  */
3036int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3037
3038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039   inside strings and character constants.  */
3040#define FOO(x) 'x'
3041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3042
3043int test (int i, double x);
3044struct s1 {int (*f) (int a);};
3045struct s2 {int (*f) (double a);};
3046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047int argc;
3048char **argv;
3049int
3050main ()
3051{
3052return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3059do
3060  CC="$ac_save_CC $ac_arg"
3061  if ac_fn_c_try_compile "$LINENO"; then :
3062  ac_cv_prog_cc_c89=$ac_arg
3063fi
3064rm -f core conftest.err conftest.$ac_objext
3065  test "x$ac_cv_prog_cc_c89" != "xno" && break
3066done
3067rm -f conftest.$ac_ext
3068CC=$ac_save_CC
3069
3070fi
3071# AC_CACHE_VAL
3072case "x$ac_cv_prog_cc_c89" in
3073  x)
3074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3075$as_echo "none needed" >&6; } ;;
3076  xno)
3077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3078$as_echo "unsupported" >&6; } ;;
3079  *)
3080    CC="$CC $ac_cv_prog_cc_c89"
3081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3083esac
3084if test "x$ac_cv_prog_cc_c89" != xno; then :
3085
3086fi
3087
3088ac_ext=c
3089ac_cpp='$CPP $CPPFLAGS'
3090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093
3094
3095for ac_prog in flex lex
3096do
3097  # Extract the first word of "$ac_prog", so it can be a program name with args.
3098set dummy $ac_prog; ac_word=$2
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100$as_echo_n "checking for $ac_word... " >&6; }
3101if test "${ac_cv_prog_LEX+set}" = set; then :
3102  $as_echo_n "(cached) " >&6
3103else
3104  if test -n "$LEX"; then
3105  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110  IFS=$as_save_IFS
3111  test -z "$as_dir" && as_dir=.
3112    for ac_exec_ext in '' $ac_executable_extensions; do
3113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114    ac_cv_prog_LEX="$ac_prog"
3115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116    break 2
3117  fi
3118done
3119  done
3120IFS=$as_save_IFS
3121
3122fi
3123fi
3124LEX=$ac_cv_prog_LEX
3125if test -n "$LEX"; then
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3127$as_echo "$LEX" >&6; }
3128else
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131fi
3132
3133
3134  test -n "$LEX" && break
3135done
3136test -n "$LEX" || LEX=":"
3137
3138if test "x$LEX" != "x:"; then
3139  cat >conftest.l <<_ACEOF
3140%%
3141a { ECHO; }
3142b { REJECT; }
3143c { yymore (); }
3144d { yyless (1); }
3145e { yyless (input () != 0); }
3146f { unput (yytext[0]); }
3147. { BEGIN INITIAL; }
3148%%
3149#ifdef YYTEXT_POINTER
3150extern char *yytext;
3151#endif
3152int
3153main (void)
3154{
3155  return ! yylex () + ! yywrap ();
3156}
3157_ACEOF
3158{ { ac_try="$LEX conftest.l"
3159case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164$as_echo "$ac_try_echo"; } >&5
3165  (eval "$LEX conftest.l") 2>&5
3166  ac_status=$?
3167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168  test $ac_status = 0; }
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3170$as_echo_n "checking lex output file root... " >&6; }
3171if test "${ac_cv_prog_lex_root+set}" = set; then :
3172  $as_echo_n "(cached) " >&6
3173else
3174
3175if test -f lex.yy.c; then
3176  ac_cv_prog_lex_root=lex.yy
3177elif test -f lexyy.c; then
3178  ac_cv_prog_lex_root=lexyy
3179else
3180  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
3181fi
3182fi
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3184$as_echo "$ac_cv_prog_lex_root" >&6; }
3185LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3186
3187if test -z "${LEXLIB+set}"; then
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3189$as_echo_n "checking lex library... " >&6; }
3190if test "${ac_cv_lib_lex+set}" = set; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193
3194    ac_save_LIBS=$LIBS
3195    ac_cv_lib_lex='none needed'
3196    for ac_lib in '' -lfl -ll; do
3197      LIBS="$ac_lib $ac_save_LIBS"
3198      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199/* end confdefs.h.  */
3200`cat $LEX_OUTPUT_ROOT.c`
3201_ACEOF
3202if ac_fn_c_try_link "$LINENO"; then :
3203  ac_cv_lib_lex=$ac_lib
3204fi
3205rm -f core conftest.err conftest.$ac_objext \
3206    conftest$ac_exeext conftest.$ac_ext
3207      test "$ac_cv_lib_lex" != 'none needed' && break
3208    done
3209    LIBS=$ac_save_LIBS
3210
3211fi
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3213$as_echo "$ac_cv_lib_lex" >&6; }
3214  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3215fi
3216
3217
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3219$as_echo_n "checking whether yytext is a pointer... " >&6; }
3220if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  # POSIX says lex can declare yytext either as a pointer or an array; the
3224# default is implementation-dependent.  Figure out which it is, since
3225# not all implementations provide the %pointer and %array declarations.
3226ac_cv_prog_lex_yytext_pointer=no
3227ac_save_LIBS=$LIBS
3228LIBS="$LEXLIB $ac_save_LIBS"
3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230/* end confdefs.h.  */
3231#define YYTEXT_POINTER 1
3232`cat $LEX_OUTPUT_ROOT.c`
3233_ACEOF
3234if ac_fn_c_try_link "$LINENO"; then :
3235  ac_cv_prog_lex_yytext_pointer=yes
3236fi
3237rm -f core conftest.err conftest.$ac_objext \
3238    conftest$ac_exeext conftest.$ac_ext
3239LIBS=$ac_save_LIBS
3240
3241fi
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3243$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3244if test $ac_cv_prog_lex_yytext_pointer = yes; then
3245
3246$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
3247
3248fi
3249rm -f conftest.l $LEX_OUTPUT_ROOT.c
3250
3251fi
3252for ac_prog in 'bison -y' byacc
3253do
3254  # Extract the first word of "$ac_prog", so it can be a program name with args.
3255set dummy $ac_prog; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if test "${ac_cv_prog_YACC+set}" = set; then :
3259  $as_echo_n "(cached) " >&6
3260else
3261  if test -n "$YACC"; then
3262  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267  IFS=$as_save_IFS
3268  test -z "$as_dir" && as_dir=.
3269    for ac_exec_ext in '' $ac_executable_extensions; do
3270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271    ac_cv_prog_YACC="$ac_prog"
3272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273    break 2
3274  fi
3275done
3276  done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281YACC=$ac_cv_prog_YACC
3282if test -n "$YACC"; then
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3284$as_echo "$YACC" >&6; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291  test -n "$YACC" && break
3292done
3293test -n "$YACC" || YACC="yacc"
3294
3295ac_aux_dir=
3296for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3297  for ac_t in install-sh install.sh shtool; do
3298    if test -f "$ac_dir/$ac_t"; then
3299      ac_aux_dir=$ac_dir
3300      ac_install_sh="$ac_aux_dir/$ac_t -c"
3301      break 2
3302    fi
3303  done
3304done
3305if test -z "$ac_aux_dir"; then
3306  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3307fi
3308
3309# These three variables are undocumented and unsupported,
3310# and are intended to be withdrawn in a future Autoconf release.
3311# They can cause serious problems if a builder's source tree is in a directory
3312# whose full name contains unusual characters.
3313ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3314ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3315ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3316
3317
3318# Find a good install program.  We prefer a C program (faster),
3319# so one script is as good as another.  But avoid the broken or
3320# incompatible versions:
3321# SysV /etc/install, /usr/sbin/install
3322# SunOS /usr/etc/install
3323# IRIX /sbin/install
3324# AIX /bin/install
3325# AmigaOS /C/install, which installs bootblocks on floppy discs
3326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3327# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3329# OS/2's system install, which has a completely different semantic
3330# ./install, which can be erroneously created by make from ./install.sh.
3331# Reject install programs that cannot install multiple files.
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3333$as_echo_n "checking for a BSD-compatible install... " >&6; }
3334if test -z "$INSTALL"; then
3335if test "${ac_cv_path_install+set}" = set; then :
3336  $as_echo_n "(cached) " >&6
3337else
3338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343    # Account for people who put trailing slashes in PATH elements.
3344case $as_dir/ in @%:@((
3345  ./ | .// | /[cC]/* | \
3346  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3347  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3348  /usr/ucb/* ) ;;
3349  *)
3350    # OSF1 and SCO ODT 3.0 have their own names for install.
3351    # Don't use installbsd from OSF since it installs stuff as root
3352    # by default.
3353    for ac_prog in ginstall scoinst install; do
3354      for ac_exec_ext in '' $ac_executable_extensions; do
3355	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3356	  if test $ac_prog = install &&
3357	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3358	    # AIX install.  It has an incompatible calling convention.
3359	    :
3360	  elif test $ac_prog = install &&
3361	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3362	    # program-specific install script used by HP pwplus--don't use.
3363	    :
3364	  else
3365	    rm -rf conftest.one conftest.two conftest.dir
3366	    echo one > conftest.one
3367	    echo two > conftest.two
3368	    mkdir conftest.dir
3369	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3370	      test -s conftest.one && test -s conftest.two &&
3371	      test -s conftest.dir/conftest.one &&
3372	      test -s conftest.dir/conftest.two
3373	    then
3374	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3375	      break 3
3376	    fi
3377	  fi
3378	fi
3379      done
3380    done
3381    ;;
3382esac
3383
3384  done
3385IFS=$as_save_IFS
3386
3387rm -rf conftest.one conftest.two conftest.dir
3388
3389fi
3390  if test "${ac_cv_path_install+set}" = set; then
3391    INSTALL=$ac_cv_path_install
3392  else
3393    # As a last resort, use the slow shell script.  Don't cache a
3394    # value for INSTALL within a source directory, because that will
3395    # break other packages using the cache if that directory is
3396    # removed, or if the value is a relative name.
3397    INSTALL=$ac_install_sh
3398  fi
3399fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3401$as_echo "$INSTALL" >&6; }
3402
3403# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3404# It thinks the first close brace ends the variable substitution.
3405test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3406
3407test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3408
3409test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3410
3411for ac_prog in mkdep
3412do
3413  # Extract the first word of "$ac_prog", so it can be a program name with args.
3414set dummy $ac_prog; ac_word=$2
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416$as_echo_n "checking for $ac_word... " >&6; }
3417if test "${ac_cv_prog_MKDEP+set}" = set; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  if test -n "$MKDEP"; then
3421  ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428    for ac_exec_ext in '' $ac_executable_extensions; do
3429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430    ac_cv_prog_MKDEP="$ac_prog"
3431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435  done
3436IFS=$as_save_IFS
3437
3438fi
3439fi
3440MKDEP=$ac_cv_prog_MKDEP
3441if test -n "$MKDEP"; then
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
3443$as_echo "$MKDEP" >&6; }
3444else
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446$as_echo "no" >&6; }
3447fi
3448
3449
3450  test -n "$MKDEP" && break
3451done
3452
3453for ac_prog in rm
3454do
3455  # Extract the first word of "$ac_prog", so it can be a program name with args.
3456set dummy $ac_prog; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if test "${ac_cv_prog_RM+set}" = set; then :
3460  $as_echo_n "(cached) " >&6
3461else
3462  if test -n "$RM"; then
3463  ac_cv_prog_RM="$RM" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470    for ac_exec_ext in '' $ac_executable_extensions; do
3471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472    ac_cv_prog_RM="$ac_prog"
3473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474    break 2
3475  fi
3476done
3477  done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482RM=$ac_cv_prog_RM
3483if test -n "$RM"; then
3484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3485$as_echo "$RM" >&6; }
3486else
3487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492  test -n "$RM" && break
3493done
3494
3495for ac_prog in mv
3496do
3497  # Extract the first word of "$ac_prog", so it can be a program name with args.
3498set dummy $ac_prog; ac_word=$2
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if test "${ac_cv_prog_MV+set}" = set; then :
3502  $as_echo_n "(cached) " >&6
3503else
3504  if test -n "$MV"; then
3505  ac_cv_prog_MV="$MV" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510  IFS=$as_save_IFS
3511  test -z "$as_dir" && as_dir=.
3512    for ac_exec_ext in '' $ac_executable_extensions; do
3513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514    ac_cv_prog_MV="$ac_prog"
3515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516    break 2
3517  fi
3518done
3519  done
3520IFS=$as_save_IFS
3521
3522fi
3523fi
3524MV=$ac_cv_prog_MV
3525if test -n "$MV"; then
3526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3527$as_echo "$MV" >&6; }
3528else
3529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530$as_echo "no" >&6; }
3531fi
3532
3533
3534  test -n "$MV" && break
3535done
3536
3537for ac_prog in test
3538do
3539  # Extract the first word of "$ac_prog", so it can be a program name with args.
3540set dummy $ac_prog; ac_word=$2
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542$as_echo_n "checking for $ac_word... " >&6; }
3543if test "${ac_cv_prog_TEST+set}" = set; then :
3544  $as_echo_n "(cached) " >&6
3545else
3546  if test -n "$TEST"; then
3547  ac_cv_prog_TEST="$TEST" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552  IFS=$as_save_IFS
3553  test -z "$as_dir" && as_dir=.
3554    for ac_exec_ext in '' $ac_executable_extensions; do
3555  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556    ac_cv_prog_TEST="$ac_prog"
3557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558    break 2
3559  fi
3560done
3561  done
3562IFS=$as_save_IFS
3563
3564fi
3565fi
3566TEST=$ac_cv_prog_TEST
3567if test -n "$TEST"; then
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST" >&5
3569$as_echo "$TEST" >&6; }
3570else
3571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572$as_echo "no" >&6; }
3573fi
3574
3575
3576  test -n "$TEST" && break
3577done
3578
3579for ac_prog in sed
3580do
3581  # Extract the first word of "$ac_prog", so it can be a program name with args.
3582set dummy $ac_prog; ac_word=$2
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584$as_echo_n "checking for $ac_word... " >&6; }
3585if test "${ac_cv_prog_SED+set}" = set; then :
3586  $as_echo_n "(cached) " >&6
3587else
3588  if test -n "$SED"; then
3589  ac_cv_prog_SED="$SED" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594  IFS=$as_save_IFS
3595  test -z "$as_dir" && as_dir=.
3596    for ac_exec_ext in '' $ac_executable_extensions; do
3597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598    ac_cv_prog_SED="$ac_prog"
3599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600    break 2
3601  fi
3602done
3603  done
3604IFS=$as_save_IFS
3605
3606fi
3607fi
3608SED=$ac_cv_prog_SED
3609if test -n "$SED"; then
3610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3611$as_echo "$SED" >&6; }
3612else
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614$as_echo "no" >&6; }
3615fi
3616
3617
3618  test -n "$SED" && break
3619done
3620
3621for ac_prog in true
3622do
3623  # Extract the first word of "$ac_prog", so it can be a program name with args.
3624set dummy $ac_prog; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if test "${ac_cv_prog_TRUE+set}" = set; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  if test -n "$TRUE"; then
3631  ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640    ac_cv_prog_TRUE="$ac_prog"
3641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648fi
3649fi
3650TRUE=$ac_cv_prog_TRUE
3651if test -n "$TRUE"; then
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
3653$as_echo "$TRUE" >&6; }
3654else
3655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656$as_echo "no" >&6; }
3657fi
3658
3659
3660  test -n "$TRUE" && break
3661done
3662
3663for ac_prog in touch
3664do
3665  # Extract the first word of "$ac_prog", so it can be a program name with args.
3666set dummy $ac_prog; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if test "${ac_cv_prog_TOUCH+set}" = set; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  if test -n "$TOUCH"; then
3673  ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678  IFS=$as_save_IFS
3679  test -z "$as_dir" && as_dir=.
3680    for ac_exec_ext in '' $ac_executable_extensions; do
3681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682    ac_cv_prog_TOUCH="$ac_prog"
3683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684    break 2
3685  fi
3686done
3687  done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692TOUCH=$ac_cv_prog_TOUCH
3693if test -n "$TOUCH"; then
3694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
3695$as_echo "$TOUCH" >&6; }
3696else
3697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702  test -n "$TOUCH" && break
3703done
3704
3705
3706
3707# Try to configure for override of packaging metadata
3708_FIX_PACKAGE_NAME=""
3709_FIX_PACKAGE_VERSION=""
3710_FIX_PACKAGE_STRING=""
3711_FIX_PACKAGE_URL=""
3712_FIX_PACKAGE_BUGREPORT=""
3713
3714
3715@%:@ Check whether --with-package-name was given.
3716if test "${with_package_name+set}" = set; then :
3717  withval=$with_package_name; if test x"$withval" = x; then
3718	    echo "ERROR: No PACKAGE_NAME provided, using default" >&2
3719	else
3720	    PACKAGE_NAME="$withval"
3721	    PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION"
3722	    _FIX_PACKAGE_NAME=y
3723            _FIX_PACKAGE_STRING=y
3724	fi
3725fi
3726
3727
3728
3729@%:@ Check whether --with-package-version was given.
3730if test "${with_package_version+set}" = set; then :
3731  withval=$with_package_version; if test x"$withval" = x; then
3732	    echo "ERROR: No PACKAGE_VERSION provided, using default" >&2
3733	else
3734	    PACKAGE_VERSION="$withval"
3735	    PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION"
3736            _FIX_PACKAGE_VERSION=y
3737            _FIX_PACKAGE_STRING=y
3738	fi
3739fi
3740
3741
3742PACKAGE_VERSION_UPSTREAM="$PACKAGE_VERSION"
3743
3744@%:@ Check whether --with-package-version-suffix was given.
3745if test "${with_package_version_suffix+set}" = set; then :
3746  withval=$with_package_version_suffix; if test x"$withval" = x; then
3747	    echo "ERROR: No PACKAGE_VERSION_SUFFIX provided, not appending" >&2
3748	    PACKAGE_VERSION_SUFFIX=""
3749	else
3750	    PACKAGE_VERSION_SUFFIX="$withval"
3751	    PACKAGE_VERSION="$PACKAGE_VERSION_UPSTREAM$PACKAGE_VERSION_SUFFIX"
3752	    PACKAGE_STRING="$PACKAGE_NAME $PACKAGE_VERSION"
3753            _FIX_PACKAGE_VERSION=y
3754            _FIX_PACKAGE_STRING=y
3755	fi
3756fi
3757
3758
3759
3760@%:@ Check whether --with-package-string was given.
3761if test "${with_package_string+set}" = set; then :
3762  withval=$with_package_string; if test x"$withval" = x; then
3763	    echo "ERROR: No PACKAGE_STRING provided, using default" >&2
3764	else
3765	    PACKAGE_STRING="$withval"
3766            _FIX_PACKAGE_STRING=y
3767	fi
3768fi
3769
3770
3771
3772@%:@ Check whether --with-package-bugreport was given.
3773if test "${with_package_bugreport+set}" = set; then :
3774  withval=$with_package_bugreport; if test x"$withval" = x; then
3775	    echo "ERROR: No PACKAGE_BUGREPORT provided, using default" >&2
3776	else
3777	    PACKAGE_BUGREPORT="$withval"
3778            _FIX_PACKAGE_BUGREPORT=y
3779	fi
3780fi
3781
3782
3783
3784@%:@ Check whether --with-package-url was given.
3785if test "${with_package_url+set}" = set; then :
3786  withval=$with_package_url; if test x"$withval" = x; then
3787	    echo "ERROR: No PACKAGE_URL provided, using default" >&2
3788	else
3789	    PACKAGE_URL="$withval"
3790            _FIX_PACKAGE_URL=y
3791	fi
3792fi
3793
3794
3795
3796
3797if test x"$_FIX_PACKAGE_NAME" = xy; then
3798    $as_echo "#ifdef PACKAGE_NAME
3799 #undef PACKAGE_NAME
3800#endif" >>confdefs.h
3801
3802cat >>confdefs.h <<_ACEOF
3803@%:@define PACKAGE_NAME "$PACKAGE_NAME"
3804_ACEOF
3805
3806fi
3807
3808if test x"$_FIX_PACKAGE_VERSION" = xy; then
3809    $as_echo "#ifdef PACKAGE_VERSION
3810 #undef PACKAGE_VERSION
3811#endif" >>confdefs.h
3812
3813cat >>confdefs.h <<_ACEOF
3814@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
3815_ACEOF
3816
3817fi
3818if test x"$_FIX_PACKAGE_STRING" = xy; then
3819    $as_echo "#ifdef PACKAGE_STRING
3820 #undef PACKAGE_STRING
3821#endif" >>confdefs.h
3822
3823cat >>confdefs.h <<_ACEOF
3824@%:@define PACKAGE_STRING "$PACKAGE_STRING"
3825_ACEOF
3826
3827fi
3828if test x"$_FIX_PACKAGE_URL" = xy; then
3829    $as_echo "#ifdef PACKAGE_URL
3830 #undef PACKAGE_URL
3831#endif" >>confdefs.h
3832
3833cat >>confdefs.h <<_ACEOF
3834@%:@define PACKAGE_URL "$PACKAGE_URL"
3835_ACEOF
3836
3837fi
3838if test x"$_FIX_PACKAGE_BUGREPORT" = xy; then
3839    $as_echo "#ifdef PACKAGE_BUGREPORT
3840 #undef PACKAGE_BUGREPORT
3841#endif" >>confdefs.h
3842
3843cat >>confdefs.h <<_ACEOF
3844@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3845_ACEOF
3846
3847fi
3848
3849
3850cat >>confdefs.h <<_ACEOF
3851@%:@define PACKAGE_VERSION_UPSTREAM "$PACKAGE_VERSION_UPSTREAM"
3852_ACEOF
3853
3854
3855cat >>confdefs.h <<_ACEOF
3856@%:@define PACKAGE_VERSION_SUFFIX "$PACKAGE_VERSION_SUFFIX"
3857_ACEOF
3858
3859
3860
3861
3862# Check that the compiler won't bug us for -Wall
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -Wall" >&5
3864$as_echo_n "checking if compiler accepts -Wall... " >&6; }
3865SAVEDCFLAGS=$CFLAGS
3866CFLAGS=$CFLAGS" -Wall"
3867wall="no"
3868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h.  */
3870
3871int
3872main ()
3873{
3874
3875  ;
3876  return 0;
3877}
3878_ACEOF
3879if ac_fn_c_try_link "$LINENO"; then :
3880  wall="yes"; SAVEDCFLAGS=$CFLAGS; efl=$efl" -Wall"
3881fi
3882rm -f core conftest.err conftest.$ac_objext \
3883    conftest$ac_exeext conftest.$ac_ext
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wall" >&5
3885$as_echo "$wall" >&6; }
3886CFLAGS=$SAVEDCFLAGS
3887
3888# Check that the compiler won't bug us for -Werror
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -Werror" >&5
3890$as_echo_n "checking if compiler accepts -Werror... " >&6; }
3891SAVEDCFLAGS=$CFLAGS
3892CFLAGS=$CFLAGS" -Werror"
3893werror="no"
3894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896
3897int
3898main ()
3899{
3900
3901  ;
3902  return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_link "$LINENO"; then :
3906  Werror="yes"; efl=$efl" -Werror"
3907fi
3908rm -f core conftest.err conftest.$ac_objext \
3909    conftest$ac_exeext conftest.$ac_ext
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $werror" >&5
3911$as_echo "$werror" >&6; }
3912CFLAGS=$SAVEDCFLAGS
3913
3914NORPSAVEDLDFLAGS=$LDFLAGS
3915
3916# Any linker will probably accept -L
3917rpath="-L"
3918
3919# Check if the linker accepts -R
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -R" >&5
3921$as_echo_n "checking if ld accepts -R... " >&6; }
3922SAVEDLDFLAGS=$LDFLAGS
3923LDFLAGS=$LDFLAGS" -Wl,-R=/"
3924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h.  */
3926
3927int
3928main ()
3929{
3930
3931  ;
3932  return 0;
3933}
3934_ACEOF
3935if ac_fn_c_try_link "$LINENO"; then :
3936  rpath="-R"; ldrpath=yes
3937else
3938  ldrpath=no
3939fi
3940rm -f core conftest.err conftest.$ac_objext \
3941    conftest$ac_exeext conftest.$ac_ext
3942LDFLAGS=$SAVEDLDFLAGS
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ldrpath" >&5
3944$as_echo "$ldrpath" >&6; }
3945
3946# Check if the linker accepts --rpath
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts --rpath" >&5
3948$as_echo_n "checking if ld accepts --rpath... " >&6; }
3949SAVEDLDFLAGS=$LDFLAGS
3950LDFLAGS=$LDFLAGS" -Wl,--rpath=/"
3951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h.  */
3953
3954int
3955main ()
3956{
3957
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962if ac_fn_c_try_link "$LINENO"; then :
3963  rpath="--rpath="; ldrpath=yes
3964else
3965  ldrpath=no
3966fi
3967rm -f core conftest.err conftest.$ac_objext \
3968    conftest$ac_exeext conftest.$ac_ext
3969LDFLAGS=$SAVEDLDFLAGS
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ldrpath" >&5
3971$as_echo "$ldrpath" >&6; }
3972
3973# Path to required packages
3974
3975@%:@ Check whether --with-db was given.
3976if test "${with_db+set}" = set; then :
3977  withval=$with_db; CFLAGS=$CFLAGS" -I$withval/include"
3978            LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
3979fi
3980
3981
3982@%:@ Check whether --with-libmilter was given.
3983if test "${with_libmilter+set}" = set; then :
3984  withval=$with_libmilter; CFLAGS=$CFLAGS" -I$withval/include"
3985	    LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
3986fi
3987
3988
3989@%:@ Check whether --with-libpthread was given.
3990if test "${with_libpthread+set}" = set; then :
3991  withval=$with_libpthread; CFLAGS=$CFLAGS" -I$withval/include"
3992	    LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
3993fi
3994
3995
3996# Which BIND resolver to use?..
3997use_libbind=no
3998SAVEDLDFLAGS=$LDFLAGS
3999SAVEDCFLAGS=$CFLAGS
4000SAVEDLIBS=$LIBS
4001
4002@%:@ Check whether --with-libbind was given.
4003if test "${with_libbind+set}" = set; then :
4004  withval=$with_libbind; CFLAGS=$CFLAGS" -I$withval/include/bind -I$withval/include"
4005	    LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
4006	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind9_getaddresses in -lbind" >&5
4007$as_echo_n "checking for bind9_getaddresses in -lbind... " >&6; }
4008if test "${ac_cv_lib_bind_bind9_getaddresses+set}" = set; then :
4009  $as_echo_n "(cached) " >&6
4010else
4011  ac_check_lib_save_LIBS=$LIBS
4012LIBS="-lbind  $LIBS"
4013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015
4016/* Override any GCC internal prototype to avoid an error.
4017   Use char because int might match the return type of a GCC
4018   builtin and then its argument prototype would still apply.  */
4019#ifdef __cplusplus
4020extern "C"
4021#endif
4022char bind9_getaddresses ();
4023int
4024main ()
4025{
4026return bind9_getaddresses ();
4027  ;
4028  return 0;
4029}
4030_ACEOF
4031if ac_fn_c_try_link "$LINENO"; then :
4032  ac_cv_lib_bind_bind9_getaddresses=yes
4033else
4034  ac_cv_lib_bind_bind9_getaddresses=no
4035fi
4036rm -f core conftest.err conftest.$ac_objext \
4037    conftest$ac_exeext conftest.$ac_ext
4038LIBS=$ac_check_lib_save_LIBS
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_bind9_getaddresses" >&5
4041$as_echo "$ac_cv_lib_bind_bind9_getaddresses" >&6; }
4042if test "x$ac_cv_lib_bind_bind9_getaddresses" = x""yes; then :
4043
4044		SAVEDLDFLAGS=$LDFLAGS
4045		SAVEDCFLAGS=$CFLAGS
4046		SAVEDLIBS="-lbind $LIBS"
4047		use_libbind=yes
4048
4049else
4050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind9_getaddresses in -lbind9" >&5
4051$as_echo_n "checking for bind9_getaddresses in -lbind9... " >&6; }
4052if test "${ac_cv_lib_bind9_bind9_getaddresses+set}" = set; then :
4053  $as_echo_n "(cached) " >&6
4054else
4055  ac_check_lib_save_LIBS=$LIBS
4056LIBS="-lbind9  $LIBS"
4057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059
4060/* Override any GCC internal prototype to avoid an error.
4061   Use char because int might match the return type of a GCC
4062   builtin and then its argument prototype would still apply.  */
4063#ifdef __cplusplus
4064extern "C"
4065#endif
4066char bind9_getaddresses ();
4067int
4068main ()
4069{
4070return bind9_getaddresses ();
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075if ac_fn_c_try_link "$LINENO"; then :
4076  ac_cv_lib_bind9_bind9_getaddresses=yes
4077else
4078  ac_cv_lib_bind9_bind9_getaddresses=no
4079fi
4080rm -f core conftest.err conftest.$ac_objext \
4081    conftest$ac_exeext conftest.$ac_ext
4082LIBS=$ac_check_lib_save_LIBS
4083fi
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind9_bind9_getaddresses" >&5
4085$as_echo "$ac_cv_lib_bind9_bind9_getaddresses" >&6; }
4086if test "x$ac_cv_lib_bind9_bind9_getaddresses" = x""yes; then :
4087
4088                SAVEDLDFLAGS=$LDFLAGS
4089                SAVEDCFLAGS=$CFLAGS
4090                SAVEDLIBS="-lbind9 $LIBS"
4091                use_libbind=yes
4092
4093else
4094  echo "neither -lbind nor -lbind9 worked. check config.log for details"
4095		exit 1;
4096fi
4097
4098
4099fi
4100
4101
4102fi
4103
4104LDFLAGS=$SAVEDLDFLAGS
4105CFLAGS=$SAVEDCFLAGS
4106LIBS=$SAVEDLIBS
4107
4108# OpenSSL, may be needed by itself and for curl, ldap, dkim/opendkim, ...
4109dir_openssl=""
4110LDFLAGS_openssl=""
4111LIBS_openssl_ssl=""
4112LIBS_openssl_crypto=""
4113LIBS_openssl_ssh2=""
4114SAVEDLDFLAGS=$LDFLAGS
4115SAVEDCFLAGS=$CFLAGS
4116SAVEDLIBS=$LIBS
4117
4118@%:@ Check whether --with-openssl was given.
4119if test "${with_openssl+set}" = set; then :
4120  withval=$with_openssl; if test x"$withval" = xyes; then withval=""; fi
4121	 if test -z "$withval"; then
4122            for _DIR in "/usr/local/ssl" "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do
4123                if test -z "$withval" -a -e "$_DIR/lib/libssl.so"; then
4124                    withval="$_DIR";
4125                    echo "autodetected OpenSSL library directory: $_DIR"
4126                fi
4127            done
4128	fi
4129	if test -z "$withval"; then
4130	    echo "Error: path for OpenSSL libraries not provided and not autodetected!"
4131	    exit 1
4132        fi
4133	LDFLAGS_openssl="-L$withval/lib -Wl,$rpath$withval/lib"
4134	SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openssl"
4135        SAVEDCFLAGS=$CFLAGS" -I$withval/include"
4136	dir_openssl="$withval"
4137	LIBS_openssl_ssl="-lssl"
4138	LIBS_openssl_crypto="-lcrypto"
4139	SAVEDLIBS="$LIBS_openssl_ssl $LIBS_openssl_crypto $LIBS"
4140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc -lssh2" >&5
4141$as_echo_n "checking for main in -lc -lssh2... " >&6; }
4142if test "${ac_cv_lib_c__lssh2_main+set}" = set; then :
4143  $as_echo_n "(cached) " >&6
4144else
4145  ac_check_lib_save_LIBS=$LIBS
4146LIBS="-lc -lssh2  $LIBS"
4147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h.  */
4149
4150
4151int
4152main ()
4153{
4154return main ();
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_link "$LINENO"; then :
4160  ac_cv_lib_c__lssh2_main=yes
4161else
4162  ac_cv_lib_c__lssh2_main=no
4163fi
4164rm -f core conftest.err conftest.$ac_objext \
4165    conftest$ac_exeext conftest.$ac_ext
4166LIBS=$ac_check_lib_save_LIBS
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c__lssh2_main" >&5
4169$as_echo "$ac_cv_lib_c__lssh2_main" >&6; }
4170if test "x$ac_cv_lib_c__lssh2_main" = x""yes; then :
4171
4172	    LIBS_openssl_ssh2="-lssh2 -lz"
4173	    echo "autodetected libssh2: $LIBS_openssl_ssh2"
4174	    SAVEDLIBS="$LIBS_openssl_ssh2 $SAVEDLIBS"
4175fi
4176
4177
4178fi
4179
4180LDFLAGS=$SAVEDLDFLAGS
4181CFLAGS=$SAVEDCFLAGS
4182LIBS=$SAVEDLIBS
4183
4184SAVEDLDFLAGS=$LDFLAGS
4185SAVEDCFLAGS=$CFLAGS
4186SAVEDLIBS=$LIBS
4187
4188@%:@ Check whether --with-openssl-static was given.
4189if test "${with_openssl_static+set}" = set; then :
4190  withval=$with_openssl_static; if test x"$withval" = xyes; then withval=""; fi
4191	if test -z "$withval"; then
4192            for _DIR in "/usr/local/ssl" "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do
4193                if test -z "$withval" -a -e "$_DIR/lib/libssl.a"; then
4194                    withval="$_DIR";
4195                    echo "autodetected OpenSSL-static library directory: $_DIR"
4196                fi
4197            done
4198	fi
4199	if test -z "$withval"; then
4200	    echo "Error: path for OpenSSL static libraries not provided and not autodetected!"
4201	    exit 1
4202        fi
4203	LDFLAGS_openssl=""
4204	SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openssl"
4205	SAVEDCFLAGS=$CFLAGS" -I$withval/include"
4206	dir_openssl="$withval"
4207	LIBS_openssl_ssl="$withval/lib/libssl.a"
4208	LIBS_openssl_crypto="$withval/lib/libcrypto.a"
4209	SAVEDLIBS="$LIBS_openssl_ssl $LIBS_openssl_crypto $LIBS"
4210	_lib_ssh2=""
4211	for _DIR in "/usr/local/ssl" "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do
4212	    if test -z "$_lib_ssh2" -a -e "$_DIR/lib/libssh2.a"; then
4213		_lib_ssh2="$_DIR/lib/libssh2.a"
4214	    fi
4215	done
4216	if test -z "$_lib_ssh2"; then
4217	    _lib_ssh2="-lssh2"
4218	fi
4219	as_ac_Lib=`$as_echo "ac_cv_lib_c $_lib_ssh2''_main" | $as_tr_sh`
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc $_lib_ssh2" >&5
4221$as_echo_n "checking for main in -lc $_lib_ssh2... " >&6; }
4222if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  ac_check_lib_save_LIBS=$LIBS
4226LIBS="-lc $_lib_ssh2  $LIBS"
4227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229
4230
4231int
4232main ()
4233{
4234return main ();
4235  ;
4236  return 0;
4237}
4238_ACEOF
4239if ac_fn_c_try_link "$LINENO"; then :
4240  eval "$as_ac_Lib=yes"
4241else
4242  eval "$as_ac_Lib=no"
4243fi
4244rm -f core conftest.err conftest.$ac_objext \
4245    conftest$ac_exeext conftest.$ac_ext
4246LIBS=$ac_check_lib_save_LIBS
4247fi
4248eval ac_res=\$$as_ac_Lib
4249	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4250$as_echo "$ac_res" >&6; }
4251eval as_val=\$$as_ac_Lib
4252   if test "x$as_val" = x""yes; then :
4253
4254	    LIBS_openssl_ssh2="$_lib_ssh2 -lz"
4255	    echo "autodetected libssh2: $LIBS_openssl_ssh2"
4256	    SAVEDLIBS="$LIBS_openssl_ssh2 $SAVEDLIBS"
4257fi
4258
4259	unset _lib_ssh2
4260
4261fi
4262
4263LDFLAGS=$SAVEDLDFLAGS
4264CFLAGS=$SAVEDCFLAGS
4265LIBS=$SAVEDLIBS
4266
4267# OpenLDAP may be used instead of curl to access multiple
4268# (failover) LDAP catalog servers
4269dir_openldap=""
4270LDFLAGS_openldap=""
4271LIBS_openldap=""
4272SAVEDLDFLAGS=$LDFLAGS
4273SAVEDCFLAGS=$CFLAGS
4274SAVEDLIBS=$LIBS
4275
4276@%:@ Check whether --with-openldap was given.
4277if test "${with_openldap+set}" = set; then :
4278  withval=$with_openldap; if test x"$withval" = xyes; then withval=""; fi
4279        if test -z "$withval"; then
4280            for _DIR in "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do
4281                if test -z "$withval" -a -e "$_DIR/lib/libldap_r-2.4.so" || \
4282		   test -z "$withval" -a -e "$_DIR/lib/libldap_r.so"; then
4283                    withval="$_DIR";
4284                    echo "autodetected OpenLDAP library directory: $_DIR"
4285                fi
4286            done
4287        fi
4288	if test -z "$withval"; then
4289	    echo "Error: path for OpenLDAP libraries not provided and not autodetected!"
4290	    exit 1
4291        fi
4292	    SAVEDCFLAGS=$CFLAGS" -I$withval/include -DUSE_LDAP -DLDAP_DEPRECATED"
4293	    LDFLAGS_openldap="-L$withval/lib -Wl,$rpath$withval/lib"
4294	    SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openldap"
4295	    dir_openldap="$withval"
4296	    if test -d "$dir_openldap/include/openldap"; then
4297		### Promote this include path
4298		SAVEDCFLAGS="-I$dir_openldap/include/openldap $SAVEDCFLAGS"
4299	    fi
4300            ### Pick variants of more important libs that may be needed by LDAP
4301            _ldap_LIBS="-lldap_r-2.4 -llber-2.4"
4302            as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh`
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5
4304$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; }
4305if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4306  $as_echo_n "(cached) " >&6
4307else
4308  ac_check_lib_save_LIBS=$LIBS
4309LIBS="-lc $_ldap_LIBS  $LIBS"
4310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h.  */
4312
4313/* Override any GCC internal prototype to avoid an error.
4314   Use char because int might match the return type of a GCC
4315   builtin and then its argument prototype would still apply.  */
4316#ifdef __cplusplus
4317extern "C"
4318#endif
4319char ldap_search ();
4320int
4321main ()
4322{
4323return ldap_search ();
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328if ac_fn_c_try_link "$LINENO"; then :
4329  eval "$as_ac_Lib=yes"
4330else
4331  eval "$as_ac_Lib=no"
4332fi
4333rm -f core conftest.err conftest.$ac_objext \
4334    conftest$ac_exeext conftest.$ac_ext
4335LIBS=$ac_check_lib_save_LIBS
4336fi
4337eval ac_res=\$$as_ac_Lib
4338	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4339$as_echo "$ac_res" >&6; }
4340eval as_val=\$$as_ac_Lib
4341   if test "x$as_val" = x""yes; then :
4342
4343               SAVEDLIBS="$_ldap_LIBS $LIBS"
4344	       LIBS_openldap="$_ldap_LIBS"
4345
4346else
4347  _ldap_LIBS="-lldap_r -llber"
4348                       as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh`
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5
4350$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; }
4351if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354  ac_check_lib_save_LIBS=$LIBS
4355LIBS="-lc $_ldap_LIBS  $LIBS"
4356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h.  */
4358
4359/* Override any GCC internal prototype to avoid an error.
4360   Use char because int might match the return type of a GCC
4361   builtin and then its argument prototype would still apply.  */
4362#ifdef __cplusplus
4363extern "C"
4364#endif
4365char ldap_search ();
4366int
4367main ()
4368{
4369return ldap_search ();
4370  ;
4371  return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_link "$LINENO"; then :
4375  eval "$as_ac_Lib=yes"
4376else
4377  eval "$as_ac_Lib=no"
4378fi
4379rm -f core conftest.err conftest.$ac_objext \
4380    conftest$ac_exeext conftest.$ac_ext
4381LIBS=$ac_check_lib_save_LIBS
4382fi
4383eval ac_res=\$$as_ac_Lib
4384	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4385$as_echo "$ac_res" >&6; }
4386eval as_val=\$$as_ac_Lib
4387   if test "x$as_val" = x""yes; then :
4388
4389                       SAVEDLIBS="$_ldap_LIBS $LIBS"
4390		       LIBS_openldap="$_ldap_LIBS"
4391
4392else
4393  echo "Error: no OpenLDAP library names located!"; exit 1;
4394fi
4395
4396
4397fi
4398
4399
4400fi
4401
4402LDFLAGS=$SAVEDLDFLAGS
4403CFLAGS=$SAVEDCFLAGS
4404LIBS=$SAVEDLIBS
4405
4406# Try to configure for openldap-static
4407SAVEDLDFLAGS=$LDFLAGS
4408SAVEDCFLAGS=$CFLAGS
4409SAVEDLIBS=$LIBS
4410
4411@%:@ Check whether --with-openldap-static was given.
4412if test "${with_openldap_static+set}" = set; then :
4413  withval=$with_openldap_static; if test x"$withval" = xyes; then withval=""; fi
4414	if test -z "$withval"; then
4415	    for _DIR in "/usr/local" "/usr" "/usr/sfw" "/opt/sfw" "/"; do
4416		if test -z "$withval" -a -e "$_DIR/lib/libldap_r-2.4.a" || \
4417		   test -z "$withval" -a -e "$_DIR/lib/libldap_r.a"; then
4418		    withval="$_DIR";
4419		    echo "autodetected OpenLDAP library directory: $_DIR"
4420		fi
4421	    done
4422	fi
4423	if test -z "$withval"; then
4424	    echo "Error: path for OpenLDAP static libraries not provided and not autodetected!"
4425	    exit 1
4426        fi
4427	   dir_openldap="$withval"
4428	   LDFLAGS_openldap=""
4429	   SAVEDLDFLAGS=$LDFLAGS" $LDFLAGS_openldap"
4430	   SAVEDCFLAGS=$CFLAGS" -I$withval/include -DUSE_LDAP -DLDAP_DEPRECATED"
4431	   SAVEDLIBS="$LIBS"
4432	   if test -d "$dir_openldap/include/openldap"; then
4433		### Promote this include path
4434		SAVEDCFLAGS="-I$dir_openldap/include/openldap $SAVEDCFLAGS"
4435	   fi
4436	   ### Lower-priority variants first; in case of conflicts use the later one
4437	   if test -e "$withval/lib/libldap_r.a"; then
4438		LIBS_openldap="$withval/lib/libldap_r.a $withval/lib/liblber.a"
4439	   fi
4440	   if test -e "$withval/lib/libldap_r-2.4.a"; then
4441		LIBS_openldap="$withval/lib/libldap_r-2.4.a $withval/lib/liblber-2.4.a"
4442	   fi
4443	   if test -z "$LIBS_openldap"; then
4444		echo "Error: searched for OpenLDAP static libraries in dir '$withval/lib', not found"
4445		exit 1
4446	   fi
4447	   LIBS_openldap_add=""
4448	   ### More generic libs
4449	   for L in nsl socket gss dl resolv; do
4450		as_ac_Lib=`$as_echo "ac_cv_lib_c -l$L''_main" | $as_tr_sh`
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc -l$L" >&5
4452$as_echo_n "checking for main in -lc -l$L... " >&6; }
4453if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  ac_check_lib_save_LIBS=$LIBS
4457LIBS="-lc -l$L  $LIBS"
4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h.  */
4460
4461
4462int
4463main ()
4464{
4465return main ();
4466  ;
4467  return 0;
4468}
4469_ACEOF
4470if ac_fn_c_try_link "$LINENO"; then :
4471  eval "$as_ac_Lib=yes"
4472else
4473  eval "$as_ac_Lib=no"
4474fi
4475rm -f core conftest.err conftest.$ac_objext \
4476    conftest$ac_exeext conftest.$ac_ext
4477LIBS=$ac_check_lib_save_LIBS
4478fi
4479eval ac_res=\$$as_ac_Lib
4480	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4481$as_echo "$ac_res" >&6; }
4482eval as_val=\$$as_ac_Lib
4483   if test "x$as_val" = x""yes; then :
4484  LIBS_openldap_add="-l$L $LIBS_openldap_add"
4485fi
4486
4487	   done
4488	   ### Pick variants of more important libs that may be needed by LDAP
4489	   _ldap_LIBS="$LIBS_openldap"
4490           as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh`
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5
4492$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; }
4493if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4494  $as_echo_n "(cached) " >&6
4495else
4496  ac_check_lib_save_LIBS=$LIBS
4497LIBS="-lc $_ldap_LIBS  $LIBS"
4498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500
4501/* Override any GCC internal prototype to avoid an error.
4502   Use char because int might match the return type of a GCC
4503   builtin and then its argument prototype would still apply.  */
4504#ifdef __cplusplus
4505extern "C"
4506#endif
4507char ldap_search ();
4508int
4509main ()
4510{
4511return ldap_search ();
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516if ac_fn_c_try_link "$LINENO"; then :
4517  eval "$as_ac_Lib=yes"
4518else
4519  eval "$as_ac_Lib=no"
4520fi
4521rm -f core conftest.err conftest.$ac_objext \
4522    conftest$ac_exeext conftest.$ac_ext
4523LIBS=$ac_check_lib_save_LIBS
4524fi
4525eval ac_res=\$$as_ac_Lib
4526	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4527$as_echo "$ac_res" >&6; }
4528eval as_val=\$$as_ac_Lib
4529   if test "x$as_val" = x""yes; then :
4530
4531               SAVEDLIBS="$_ldap_LIBS $LIBS"
4532
4533else
4534  _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl"
4535		       as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh`
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5
4537$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; }
4538if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541  ac_check_lib_save_LIBS=$LIBS
4542LIBS="-lc $_ldap_LIBS  $LIBS"
4543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h.  */
4545
4546/* Override any GCC internal prototype to avoid an error.
4547   Use char because int might match the return type of a GCC
4548   builtin and then its argument prototype would still apply.  */
4549#ifdef __cplusplus
4550extern "C"
4551#endif
4552char ldap_search ();
4553int
4554main ()
4555{
4556return ldap_search ();
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561if ac_fn_c_try_link "$LINENO"; then :
4562  eval "$as_ac_Lib=yes"
4563else
4564  eval "$as_ac_Lib=no"
4565fi
4566rm -f core conftest.err conftest.$ac_objext \
4567    conftest$ac_exeext conftest.$ac_ext
4568LIBS=$ac_check_lib_save_LIBS
4569fi
4570eval ac_res=\$$as_ac_Lib
4571	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4572$as_echo "$ac_res" >&6; }
4573eval as_val=\$$as_ac_Lib
4574   if test "x$as_val" = x""yes; then :
4575
4576                       SAVEDLIBS="$_ldap_LIBS $LIBS"
4577
4578else
4579  _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl2"
4580		       as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh`
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5
4582$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; }
4583if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4584  $as_echo_n "(cached) " >&6
4585else
4586  ac_check_lib_save_LIBS=$LIBS
4587LIBS="-lc $_ldap_LIBS  $LIBS"
4588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589/* end confdefs.h.  */
4590
4591/* Override any GCC internal prototype to avoid an error.
4592   Use char because int might match the return type of a GCC
4593   builtin and then its argument prototype would still apply.  */
4594#ifdef __cplusplus
4595extern "C"
4596#endif
4597char ldap_search ();
4598int
4599main ()
4600{
4601return ldap_search ();
4602  ;
4603  return 0;
4604}
4605_ACEOF
4606if ac_fn_c_try_link "$LINENO"; then :
4607  eval "$as_ac_Lib=yes"
4608else
4609  eval "$as_ac_Lib=no"
4610fi
4611rm -f core conftest.err conftest.$ac_objext \
4612    conftest$ac_exeext conftest.$ac_ext
4613LIBS=$ac_check_lib_save_LIBS
4614fi
4615eval ac_res=\$$as_ac_Lib
4616	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4617$as_echo "$ac_res" >&6; }
4618eval as_val=\$$as_ac_Lib
4619   if test "x$as_val" = x""yes; then :
4620
4621                       SAVEDLIBS="$_ldap_LIBS $LIBS"
4622
4623else
4624  _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl $LDFLAGS_openssl $LIBS_openssl_crypto $LIBS_openssl_ssl"
4625		       as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh`
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5
4627$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; }
4628if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  ac_check_lib_save_LIBS=$LIBS
4632LIBS="-lc $_ldap_LIBS  $LIBS"
4633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634/* end confdefs.h.  */
4635
4636/* Override any GCC internal prototype to avoid an error.
4637   Use char because int might match the return type of a GCC
4638   builtin and then its argument prototype would still apply.  */
4639#ifdef __cplusplus
4640extern "C"
4641#endif
4642char ldap_search ();
4643int
4644main ()
4645{
4646return ldap_search ();
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651if ac_fn_c_try_link "$LINENO"; then :
4652  eval "$as_ac_Lib=yes"
4653else
4654  eval "$as_ac_Lib=no"
4655fi
4656rm -f core conftest.err conftest.$ac_objext \
4657    conftest$ac_exeext conftest.$ac_ext
4658LIBS=$ac_check_lib_save_LIBS
4659fi
4660eval ac_res=\$$as_ac_Lib
4661	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4662$as_echo "$ac_res" >&6; }
4663eval as_val=\$$as_ac_Lib
4664   if test "x$as_val" = x""yes; then :
4665
4666                       SAVEDLIBS="$_ldap_LIBS $LIBS"
4667
4668else
4669  _ldap_LIBS="$LIBS_openldap $LIBS_openldap_add -lsasl2 $LDFLAGS_openssl $LIBS_openssl_crypto $LIBS_openssl_ssl"
4670		       as_ac_Lib=`$as_echo "ac_cv_lib_c $_ldap_LIBS''_ldap_search" | $as_tr_sh`
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_search in -lc $_ldap_LIBS" >&5
4672$as_echo_n "checking for ldap_search in -lc $_ldap_LIBS... " >&6; }
4673if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  ac_check_lib_save_LIBS=$LIBS
4677LIBS="-lc $_ldap_LIBS  $LIBS"
4678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680
4681/* Override any GCC internal prototype to avoid an error.
4682   Use char because int might match the return type of a GCC
4683   builtin and then its argument prototype would still apply.  */
4684#ifdef __cplusplus
4685extern "C"
4686#endif
4687char ldap_search ();
4688int
4689main ()
4690{
4691return ldap_search ();
4692  ;
4693  return 0;
4694}
4695_ACEOF
4696if ac_fn_c_try_link "$LINENO"; then :
4697  eval "$as_ac_Lib=yes"
4698else
4699  eval "$as_ac_Lib=no"
4700fi
4701rm -f core conftest.err conftest.$ac_objext \
4702    conftest$ac_exeext conftest.$ac_ext
4703LIBS=$ac_check_lib_save_LIBS
4704fi
4705eval ac_res=\$$as_ac_Lib
4706	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4707$as_echo "$ac_res" >&6; }
4708eval as_val=\$$as_ac_Lib
4709   if test "x$as_val" = x""yes; then :
4710
4711                       SAVEDLIBS="$_ldap_LIBS $LIBS"
4712
4713else
4714  echo "OpenLDAP static libraries libldap_r.a and/or liblber.a, or their shared";
4715		       echo "  dependencies (SASL, OpenSSL, GSS) were not found, check config.log for details";
4716            	       echo "Remove --with-openldap-static to build without LDAP support, or";
4717		       echo "  try --with-openldap for the shared library, or";
4718		       echo "  try --with-curl for an alternate solution";
4719            	       exit 1;
4720fi
4721
4722
4723fi
4724
4725
4726fi
4727
4728
4729fi
4730
4731
4732fi
4733
4734
4735fi
4736
4737LDFLAGS=$SAVEDLDFLAGS
4738CFLAGS=$SAVEDCFLAGS
4739LIBS=$SAVEDLIBS
4740
4741use_libcurl=no
4742
4743@%:@ Check whether --with-libcurl was given.
4744if test "${with_libcurl+set}" = set; then :
4745  withval=$with_libcurl; CFLAGS=$CFLAGS" -I$withval/include -DUSE_CURL"
4746	    LIBS="-lcurl $LIBS"
4747	    LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
4748	    use_libcurl=yes
4749fi
4750
4751
4752# Try to configure for libcurl-static
4753SAVEDLDFLAGS=$LDFLAGS
4754SAVEDCFLAGS=$CFLAGS
4755SAVEDLIBS=$LIBS
4756
4757@%:@ Check whether --with-libcurl-static was given.
4758if test "${with_libcurl_static+set}" = set; then :
4759  withval=$with_libcurl_static; SAVEDLDFLAGS=$LDFLAGS" -L$withval/lib"
4760	   SAVEDCFLAGS=$CFLAGS" -I$withval/include -DUSE_CURL"
4761	   _lib_idn=""
4762	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lidn" >&5
4763$as_echo_n "checking for main in -lidn... " >&6; }
4764if test "${ac_cv_lib_idn_main+set}" = set; then :
4765  $as_echo_n "(cached) " >&6
4766else
4767  ac_check_lib_save_LIBS=$LIBS
4768LIBS="-lidn  $LIBS"
4769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h.  */
4771
4772
4773int
4774main ()
4775{
4776return main ();
4777  ;
4778  return 0;
4779}
4780_ACEOF
4781if ac_fn_c_try_link "$LINENO"; then :
4782  ac_cv_lib_idn_main=yes
4783else
4784  ac_cv_lib_idn_main=no
4785fi
4786rm -f core conftest.err conftest.$ac_objext \
4787    conftest$ac_exeext conftest.$ac_ext
4788LIBS=$ac_check_lib_save_LIBS
4789fi
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_main" >&5
4791$as_echo "$ac_cv_lib_idn_main" >&6; }
4792if test "x$ac_cv_lib_idn_main" = x""yes; then :
4793  echo "autodetected libidn, will use with libcurl"
4794	       _lib_idn="-lidn"
4795	       SAVEDLIBS=" $_lib_idn $LIBS"
4796fi
4797
4798	   LIBS=$SAVEDLIBS
4799           as_ac_Lib=`$as_echo "ac_cv_lib_curl $_lib_idn''_Curl_connect" | $as_tr_sh`
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curl_connect in -lcurl $_lib_idn" >&5
4801$as_echo_n "checking for Curl_connect in -lcurl $_lib_idn... " >&6; }
4802if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  ac_check_lib_save_LIBS=$LIBS
4806LIBS="-lcurl $_lib_idn  $LIBS"
4807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808/* end confdefs.h.  */
4809
4810/* Override any GCC internal prototype to avoid an error.
4811   Use char because int might match the return type of a GCC
4812   builtin and then its argument prototype would still apply.  */
4813#ifdef __cplusplus
4814extern "C"
4815#endif
4816char Curl_connect ();
4817int
4818main ()
4819{
4820return Curl_connect ();
4821  ;
4822  return 0;
4823}
4824_ACEOF
4825if ac_fn_c_try_link "$LINENO"; then :
4826  eval "$as_ac_Lib=yes"
4827else
4828  eval "$as_ac_Lib=no"
4829fi
4830rm -f core conftest.err conftest.$ac_objext \
4831    conftest$ac_exeext conftest.$ac_ext
4832LIBS=$ac_check_lib_save_LIBS
4833fi
4834eval ac_res=\$$as_ac_Lib
4835	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4836$as_echo "$ac_res" >&6; }
4837eval as_val=\$$as_ac_Lib
4838   if test "x$as_val" = x""yes; then :
4839
4840               SAVEDLDFLAGS=$LDFLAGS
4841               SAVEDCFLAGS=$CFLAGS
4842               SAVEDLIBS="$withval/lib/libcurl.a $LIBS"
4843	       use_libcurl=yes
4844
4845else
4846  as_ac_Lib=`$as_echo "ac_cv_lib_curl $_lib_idn $LIBS_openssl_ssh2''_Curl_connect" | $as_tr_sh`
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curl_connect in -lcurl $_lib_idn $LIBS_openssl_ssh2" >&5
4848$as_echo_n "checking for Curl_connect in -lcurl $_lib_idn $LIBS_openssl_ssh2... " >&6; }
4849if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  ac_check_lib_save_LIBS=$LIBS
4853LIBS="-lcurl $_lib_idn $LIBS_openssl_ssh2  $LIBS"
4854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h.  */
4856
4857/* Override any GCC internal prototype to avoid an error.
4858   Use char because int might match the return type of a GCC
4859   builtin and then its argument prototype would still apply.  */
4860#ifdef __cplusplus
4861extern "C"
4862#endif
4863char Curl_connect ();
4864int
4865main ()
4866{
4867return Curl_connect ();
4868  ;
4869  return 0;
4870}
4871_ACEOF
4872if ac_fn_c_try_link "$LINENO"; then :
4873  eval "$as_ac_Lib=yes"
4874else
4875  eval "$as_ac_Lib=no"
4876fi
4877rm -f core conftest.err conftest.$ac_objext \
4878    conftest$ac_exeext conftest.$ac_ext
4879LIBS=$ac_check_lib_save_LIBS
4880fi
4881eval ac_res=\$$as_ac_Lib
4882	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4883$as_echo "$ac_res" >&6; }
4884eval as_val=\$$as_ac_Lib
4885   if test "x$as_val" = x""yes; then :
4886
4887                       SAVEDLDFLAGS=$LDFLAGS
4888                       SAVEDCFLAGS=$CFLAGS
4889                       SAVEDLIBS="$withval/lib/libcurl.a $LIBS_openssl_ssh2 $LIBS"
4890		       use_libcurl=yes
4891
4892else
4893  echo "static library libcurl.a and/or libssh2.a not found, check config.log for details";
4894                   echo "Remove --with-libcurl-static to build without CURL support ";
4895		   echo "  or try --with-libcurl for the shared library";
4896                   exit 1;
4897fi
4898
4899
4900fi
4901
4902
4903fi
4904
4905LDFLAGS=$SAVEDLDFLAGS
4906CFLAGS=$SAVEDCFLAGS
4907LIBS=$SAVEDLIBS
4908
4909
4910@%:@ Check whether --with-libGeoIP was given.
4911if test "${with_libGeoIP+set}" = set; then :
4912  withval=$with_libGeoIP; CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP"
4913	    LIBS="-lGeoIP $LIBS"
4914	    USE_GEOIP="true"
4915	    LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
4916fi
4917
4918
4919@%:@ Check whether --with-libmaxminddb was given.
4920if test "${with_libmaxminddb+set}" = set; then :
4921  withval=$with_libmaxminddb; if test -z "$USE_GEOIP"; then
4922		CFLAGS=$CFLAGS" -I$withval/include -DUSE_GEOIP2"
4923		LIBS="-lmaxminddb $LIBS"
4924		LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
4925	else
4926		echo "--with-libGeoIP and -with-libmaxminddb are mutually exclusive";
4927		exit 1;
4928	fi
4929fi
4930
4931
4932@%:@ Check whether --with-libdmalloc was given.
4933if test "${with_libdmalloc+set}" = set; then :
4934  withval=$with_libdmalloc; CFLAGS=$CFLAGS" -I$withval/include -DUSE_DMALLOC"
4935	    LIBS="-ldmalloc $LIBS"
4936	    LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
4937fi
4938
4939
4940# Checks for header files.
4941ac_ext=c
4942ac_cpp='$CPP $CPPFLAGS'
4943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4947$as_echo_n "checking how to run the C preprocessor... " >&6; }
4948# On Suns, sometimes $CPP names a directory.
4949if test -n "$CPP" && test -d "$CPP"; then
4950  CPP=
4951fi
4952if test -z "$CPP"; then
4953  if test "${ac_cv_prog_CPP+set}" = set; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956      # Double quotes because CPP needs to be expanded
4957    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4958    do
4959      ac_preproc_ok=false
4960for ac_c_preproc_warn_flag in '' yes
4961do
4962  # Use a header file that comes with gcc, so configuring glibc
4963  # with a fresh cross-compiler works.
4964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965  # <limits.h> exists even on freestanding compilers.
4966  # On the NeXT, cc -E runs the code through the compiler's parser,
4967  # not just through cpp. "Syntax error" is here to catch this case.
4968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h.  */
4970@%:@ifdef __STDC__
4971@%:@ include <limits.h>
4972@%:@else
4973@%:@ include <assert.h>
4974@%:@endif
4975		     Syntax error
4976_ACEOF
4977if ac_fn_c_try_cpp "$LINENO"; then :
4978
4979else
4980  # Broken: fails on valid input.
4981continue
4982fi
4983rm -f conftest.err conftest.$ac_ext
4984
4985  # OK, works on sane cases.  Now check whether nonexistent headers
4986  # can be detected and how.
4987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988/* end confdefs.h.  */
4989@%:@include <ac_nonexistent.h>
4990_ACEOF
4991if ac_fn_c_try_cpp "$LINENO"; then :
4992  # Broken: success on invalid input.
4993continue
4994else
4995  # Passes both tests.
4996ac_preproc_ok=:
4997break
4998fi
4999rm -f conftest.err conftest.$ac_ext
5000
5001done
5002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003rm -f conftest.err conftest.$ac_ext
5004if $ac_preproc_ok; then :
5005  break
5006fi
5007
5008    done
5009    ac_cv_prog_CPP=$CPP
5010
5011fi
5012  CPP=$ac_cv_prog_CPP
5013else
5014  ac_cv_prog_CPP=$CPP
5015fi
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5017$as_echo "$CPP" >&6; }
5018ac_preproc_ok=false
5019for ac_c_preproc_warn_flag in '' yes
5020do
5021  # Use a header file that comes with gcc, so configuring glibc
5022  # with a fresh cross-compiler works.
5023  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024  # <limits.h> exists even on freestanding compilers.
5025  # On the NeXT, cc -E runs the code through the compiler's parser,
5026  # not just through cpp. "Syntax error" is here to catch this case.
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029@%:@ifdef __STDC__
5030@%:@ include <limits.h>
5031@%:@else
5032@%:@ include <assert.h>
5033@%:@endif
5034		     Syntax error
5035_ACEOF
5036if ac_fn_c_try_cpp "$LINENO"; then :
5037
5038else
5039  # Broken: fails on valid input.
5040continue
5041fi
5042rm -f conftest.err conftest.$ac_ext
5043
5044  # OK, works on sane cases.  Now check whether nonexistent headers
5045  # can be detected and how.
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048@%:@include <ac_nonexistent.h>
5049_ACEOF
5050if ac_fn_c_try_cpp "$LINENO"; then :
5051  # Broken: success on invalid input.
5052continue
5053else
5054  # Passes both tests.
5055ac_preproc_ok=:
5056break
5057fi
5058rm -f conftest.err conftest.$ac_ext
5059
5060done
5061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062rm -f conftest.err conftest.$ac_ext
5063if $ac_preproc_ok; then :
5064
5065else
5066  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5068as_fn_error "C preprocessor \"$CPP\" fails sanity check
5069See \`config.log' for more details." "$LINENO" 5; }
5070fi
5071
5072ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5080$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5081if test "${ac_cv_path_GREP+set}" = set; then :
5082  $as_echo_n "(cached) " >&6
5083else
5084  if test -z "$GREP"; then
5085  ac_path_GREP_found=false
5086  # Loop through the user's path and test for each of PROGNAME-LIST
5087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089do
5090  IFS=$as_save_IFS
5091  test -z "$as_dir" && as_dir=.
5092    for ac_prog in grep ggrep; do
5093    for ac_exec_ext in '' $ac_executable_extensions; do
5094      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5095      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5096# Check for GNU ac_path_GREP and select it if it is found.
5097  # Check for GNU $ac_path_GREP
5098case `"$ac_path_GREP" --version 2>&1` in
5099*GNU*)
5100  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5101*)
5102  ac_count=0
5103  $as_echo_n 0123456789 >"conftest.in"
5104  while :
5105  do
5106    cat "conftest.in" "conftest.in" >"conftest.tmp"
5107    mv "conftest.tmp" "conftest.in"
5108    cp "conftest.in" "conftest.nl"
5109    $as_echo 'GREP' >> "conftest.nl"
5110    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112    as_fn_arith $ac_count + 1 && ac_count=$as_val
5113    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5114      # Best one so far, save it but keep looking for a better one
5115      ac_cv_path_GREP="$ac_path_GREP"
5116      ac_path_GREP_max=$ac_count
5117    fi
5118    # 10*(2^10) chars as input seems more than enough
5119    test $ac_count -gt 10 && break
5120  done
5121  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122esac
5123
5124      $ac_path_GREP_found && break 3
5125    done
5126  done
5127  done
5128IFS=$as_save_IFS
5129  if test -z "$ac_cv_path_GREP"; then
5130    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5131  fi
5132else
5133  ac_cv_path_GREP=$GREP
5134fi
5135
5136fi
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5138$as_echo "$ac_cv_path_GREP" >&6; }
5139 GREP="$ac_cv_path_GREP"
5140
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5143$as_echo_n "checking for egrep... " >&6; }
5144if test "${ac_cv_path_EGREP+set}" = set; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5148   then ac_cv_path_EGREP="$GREP -E"
5149   else
5150     if test -z "$EGREP"; then
5151  ac_path_EGREP_found=false
5152  # Loop through the user's path and test for each of PROGNAME-LIST
5153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5155do
5156  IFS=$as_save_IFS
5157  test -z "$as_dir" && as_dir=.
5158    for ac_prog in egrep; do
5159    for ac_exec_ext in '' $ac_executable_extensions; do
5160      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5161      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5162# Check for GNU ac_path_EGREP and select it if it is found.
5163  # Check for GNU $ac_path_EGREP
5164case `"$ac_path_EGREP" --version 2>&1` in
5165*GNU*)
5166  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5167*)
5168  ac_count=0
5169  $as_echo_n 0123456789 >"conftest.in"
5170  while :
5171  do
5172    cat "conftest.in" "conftest.in" >"conftest.tmp"
5173    mv "conftest.tmp" "conftest.in"
5174    cp "conftest.in" "conftest.nl"
5175    $as_echo 'EGREP' >> "conftest.nl"
5176    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5177    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5178    as_fn_arith $ac_count + 1 && ac_count=$as_val
5179    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5180      # Best one so far, save it but keep looking for a better one
5181      ac_cv_path_EGREP="$ac_path_EGREP"
5182      ac_path_EGREP_max=$ac_count
5183    fi
5184    # 10*(2^10) chars as input seems more than enough
5185    test $ac_count -gt 10 && break
5186  done
5187  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5188esac
5189
5190      $ac_path_EGREP_found && break 3
5191    done
5192  done
5193  done
5194IFS=$as_save_IFS
5195  if test -z "$ac_cv_path_EGREP"; then
5196    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5197  fi
5198else
5199  ac_cv_path_EGREP=$EGREP
5200fi
5201
5202   fi
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5205$as_echo "$ac_cv_path_EGREP" >&6; }
5206 EGREP="$ac_cv_path_EGREP"
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5210$as_echo_n "checking for ANSI C header files... " >&6; }
5211if test "${ac_cv_header_stdc+set}" = set; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216#include <stdlib.h>
5217#include <stdarg.h>
5218#include <string.h>
5219#include <float.h>
5220
5221int
5222main ()
5223{
5224
5225  ;
5226  return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"; then :
5230  ac_cv_header_stdc=yes
5231else
5232  ac_cv_header_stdc=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235
5236if test $ac_cv_header_stdc = yes; then
5237  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239/* end confdefs.h.  */
5240#include <string.h>
5241
5242_ACEOF
5243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5244  $EGREP "memchr" >/dev/null 2>&1; then :
5245
5246else
5247  ac_cv_header_stdc=no
5248fi
5249rm -f conftest*
5250
5251fi
5252
5253if test $ac_cv_header_stdc = yes; then
5254  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257#include <stdlib.h>
5258
5259_ACEOF
5260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261  $EGREP "free" >/dev/null 2>&1; then :
5262
5263else
5264  ac_cv_header_stdc=no
5265fi
5266rm -f conftest*
5267
5268fi
5269
5270if test $ac_cv_header_stdc = yes; then
5271  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5272  if test "$cross_compiling" = yes; then :
5273  :
5274else
5275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277#include <ctype.h>
5278#include <stdlib.h>
5279#if ((' ' & 0x0FF) == 0x020)
5280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5282#else
5283# define ISLOWER(c) \
5284		   (('a' <= (c) && (c) <= 'i') \
5285		     || ('j' <= (c) && (c) <= 'r') \
5286		     || ('s' <= (c) && (c) <= 'z'))
5287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5288#endif
5289
5290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5291int
5292main ()
5293{
5294  int i;
5295  for (i = 0; i < 256; i++)
5296    if (XOR (islower (i), ISLOWER (i))
5297	|| toupper (i) != TOUPPER (i))
5298      return 2;
5299  return 0;
5300}
5301_ACEOF
5302if ac_fn_c_try_run "$LINENO"; then :
5303
5304else
5305  ac_cv_header_stdc=no
5306fi
5307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5308  conftest.$ac_objext conftest.beam conftest.$ac_ext
5309fi
5310
5311fi
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5314$as_echo "$ac_cv_header_stdc" >&6; }
5315if test $ac_cv_header_stdc = yes; then
5316
5317$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5318
5319fi
5320
5321# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5323		  inttypes.h stdint.h unistd.h
5324do :
5325  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5326ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5327"
5328eval as_val=\$$as_ac_Header
5329   if test "x$as_val" = x""yes; then :
5330  cat >>confdefs.h <<_ACEOF
5331@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5332_ACEOF
5333
5334fi
5335
5336done
5337
5338
5339for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h sys/param.h netdb.h getopt.h sys/cdefs.h arpa/nameser.h stdbool.h sys/queue.h
5340do :
5341  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5343eval as_val=\$$as_ac_Header
5344   if test "x$as_val" = x""yes; then :
5345  cat >>confdefs.h <<_ACEOF
5346@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347_ACEOF
5348
5349fi
5350
5351done
5352
5353
5354# Checks for typedefs, structures, and compiler characteristics.
5355ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5356if test "x$ac_cv_type_pid_t" = x""yes; then :
5357
5358else
5359
5360cat >>confdefs.h <<_ACEOF
5361@%:@define pid_t int
5362_ACEOF
5363
5364fi
5365
5366ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5367if test "x$ac_cv_type_size_t" = x""yes; then :
5368
5369else
5370
5371cat >>confdefs.h <<_ACEOF
5372@%:@define size_t unsigned int
5373_ACEOF
5374
5375fi
5376
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5378$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5379if test "${ac_cv_header_time+set}" = set; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384#include <sys/types.h>
5385#include <sys/time.h>
5386#include <time.h>
5387
5388int
5389main ()
5390{
5391if ((struct tm *) 0)
5392return 0;
5393  ;
5394  return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398  ac_cv_header_time=yes
5399else
5400  ac_cv_header_time=no
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5405$as_echo "$ac_cv_header_time" >&6; }
5406if test $ac_cv_header_time = yes; then
5407
5408$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
5409
5410fi
5411
5412
5413# Do we have res_state type? Tru64 UNIX doesn't have...
5414ac_fn_c_check_type "$LINENO" "res_state" "ac_cv_type_res_state" "
5415		#include <sys/types.h>
5416		#include <netinet/in.h>
5417		#include <arpa/nameser.h>
5418		#include <resolv.h>
5419
5420"
5421if test "x$ac_cv_type_res_state" = x""yes; then :
5422
5423cat >>confdefs.h <<_ACEOF
5424@%:@define HAVE_RES_STATE 1
5425_ACEOF
5426
5427
5428fi
5429
5430
5431# Do we need -lpthread with -lbind?
5432if test $use_libbind = yes ; then
5433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lbind needs -lpthread to link" >&5
5434$as_echo_n "checking if -lbind needs -lpthread to link... " >&6; }
5435	lbind_needs_lpthread=no
5436	SAVEDLIBS=$LIBS
5437	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439
5440int
5441main ()
5442{
5443
5444  ;
5445  return 0;
5446}
5447_ACEOF
5448if ac_fn_c_try_link "$LINENO"; then :
5449
5450else
5451
5452		LIBS="-lpthread $LIBS"
5453		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455
5456int
5457main ()
5458{
5459
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464if ac_fn_c_try_link "$LINENO"; then :
5465  lbind_needs_lpthread=yes
5466fi
5467rm -f core conftest.err conftest.$ac_objext \
5468    conftest$ac_exeext conftest.$ac_ext;
5469
5470fi
5471rm -f core conftest.err conftest.$ac_objext \
5472    conftest$ac_exeext conftest.$ac_ext;
5473	if test $lbind_needs_lpthread = yes ; then
5474		SAVEDLIBS=$LIBS
5475	fi
5476	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lbind_needs_lpthread" >&5
5477$as_echo "$lbind_needs_lpthread" >&6; }
5478	LIBS=$SAVEDLIBS
5479fi
5480
5481# Do we need -lcrypto with -lcurl?
5482if test $use_libcurl = yes ; then
5483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcurl needs -lcrypto to link and run" >&5
5484$as_echo_n "checking if -lcurl needs -lcrypto to link and run... " >&6; }
5485	lcurl_needs_lcrypto=no
5486	SAVEDLIBS=$LIBS
5487	SAVEDLDFLAGS=$LDFLAGS
5488	if test "$cross_compiling" = yes; then :
5489  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5491as_fn_error "cannot run test program while cross compiling
5492See \`config.log' for more details." "$LINENO" 5; }
5493else
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496
5497int
5498main ()
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_run "$LINENO"; then :
5506
5507else
5508  LDFLAGS="$LDFLAGS $LDFLAGS_openssl"
5509		LIBS="$LIBS_openssl_crypto $LIBS"
5510		if test "$cross_compiling" = yes; then :
5511  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5513as_fn_error "cannot run test program while cross compiling
5514See \`config.log' for more details." "$LINENO" 5; }
5515else
5516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518
5519int
5520main ()
5521{
5522
5523  ;
5524  return 0;
5525}
5526_ACEOF
5527if ac_fn_c_try_run "$LINENO"; then :
5528  lcurl_needs_lcrypto=yes
5529		    SAVEDLIBS=$LIBS
5530else
5531  echo "Required libcrypto not found for libcurl.";
5532			 echo "  Use --with-openssl=DIR to provide the OpenSSL installation root.";
5533                	 exit 1;
5534fi
5535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5536  conftest.$ac_objext conftest.beam conftest.$ac_ext
5537fi
5538
5539
5540fi
5541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5542  conftest.$ac_objext conftest.beam conftest.$ac_ext
5543fi
5544
5545	if test $lcurl_needs_lcrypto = yes ; then
5546		SAVEDLIBS=$LIBS
5547		SAVEDLDFLAGS=$LDFLAGS
5548	fi
5549	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lcurl_needs_lcrypto" >&5
5550$as_echo "$lcurl_needs_lcrypto" >&6; }
5551	LIBS=$SAVEDLIBS
5552	LDFLAGS=$SAVEDLDFLAGS
5553fi
5554
5555# Checks for library functions.
5556for ac_header in vfork.h
5557do :
5558  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5559if test "x$ac_cv_header_vfork_h" = x""yes; then :
5560  cat >>confdefs.h <<_ACEOF
5561@%:@define HAVE_VFORK_H 1
5562_ACEOF
5563
5564fi
5565
5566done
5567
5568for ac_func in fork vfork
5569do :
5570  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5572eval as_val=\$$as_ac_var
5573   if test "x$as_val" = x""yes; then :
5574  cat >>confdefs.h <<_ACEOF
5575@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5576_ACEOF
5577
5578fi
5579done
5580
5581if test "x$ac_cv_func_fork" = xyes; then
5582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5583$as_echo_n "checking for working fork... " >&6; }
5584if test "${ac_cv_func_fork_works+set}" = set; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  if test "$cross_compiling" = yes; then :
5588  ac_cv_func_fork_works=cross
5589else
5590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591/* end confdefs.h.  */
5592$ac_includes_default
5593int
5594main ()
5595{
5596
5597	  /* By Ruediger Kuhlmann. */
5598	  return fork () < 0;
5599
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_run "$LINENO"; then :
5605  ac_cv_func_fork_works=yes
5606else
5607  ac_cv_func_fork_works=no
5608fi
5609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5610  conftest.$ac_objext conftest.beam conftest.$ac_ext
5611fi
5612
5613fi
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5615$as_echo "$ac_cv_func_fork_works" >&6; }
5616
5617else
5618  ac_cv_func_fork_works=$ac_cv_func_fork
5619fi
5620if test "x$ac_cv_func_fork_works" = xcross; then
5621  case $host in
5622    *-*-amigaos* | *-*-msdosdjgpp*)
5623      # Override, as these systems have only a dummy fork() stub
5624      ac_cv_func_fork_works=no
5625      ;;
5626    *)
5627      ac_cv_func_fork_works=yes
5628      ;;
5629  esac
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5631$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5632fi
5633ac_cv_func_vfork_works=$ac_cv_func_vfork
5634if test "x$ac_cv_func_vfork" = xyes; then
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5636$as_echo_n "checking for working vfork... " >&6; }
5637if test "${ac_cv_func_vfork_works+set}" = set; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  if test "$cross_compiling" = yes; then :
5641  ac_cv_func_vfork_works=cross
5642else
5643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645/* Thanks to Paul Eggert for this test.  */
5646$ac_includes_default
5647#include <sys/wait.h>
5648#ifdef HAVE_VFORK_H
5649# include <vfork.h>
5650#endif
5651/* On some sparc systems, changes by the child to local and incoming
5652   argument registers are propagated back to the parent.  The compiler
5653   is told about this with #include <vfork.h>, but some compilers
5654   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5655   static variable whose address is put into a register that is
5656   clobbered by the vfork.  */
5657static void
5658#ifdef __cplusplus
5659sparc_address_test (int arg)
5660# else
5661sparc_address_test (arg) int arg;
5662#endif
5663{
5664  static pid_t child;
5665  if (!child) {
5666    child = vfork ();
5667    if (child < 0) {
5668      perror ("vfork");
5669      _exit(2);
5670    }
5671    if (!child) {
5672      arg = getpid();
5673      write(-1, "", 0);
5674      _exit (arg);
5675    }
5676  }
5677}
5678
5679int
5680main ()
5681{
5682  pid_t parent = getpid ();
5683  pid_t child;
5684
5685  sparc_address_test (0);
5686
5687  child = vfork ();
5688
5689  if (child == 0) {
5690    /* Here is another test for sparc vfork register problems.  This
5691       test uses lots of local variables, at least as many local
5692       variables as main has allocated so far including compiler
5693       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5694       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5695       reuse the register of parent for one of the local variables,
5696       since it will think that parent can't possibly be used any more
5697       in this routine.  Assigning to the local variable will thus
5698       munge parent in the parent process.  */
5699    pid_t
5700      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5701      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5702    /* Convince the compiler that p..p7 are live; otherwise, it might
5703       use the same hardware register for all 8 local variables.  */
5704    if (p != p1 || p != p2 || p != p3 || p != p4
5705	|| p != p5 || p != p6 || p != p7)
5706      _exit(1);
5707
5708    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5709       from child file descriptors.  If the child closes a descriptor
5710       before it execs or exits, this munges the parent's descriptor
5711       as well.  Test for this by closing stdout in the child.  */
5712    _exit(close(fileno(stdout)) != 0);
5713  } else {
5714    int status;
5715    struct stat st;
5716
5717    while (wait(&status) != child)
5718      ;
5719    return (
5720	 /* Was there some problem with vforking?  */
5721	 child < 0
5722
5723	 /* Did the child fail?  (This shouldn't happen.)  */
5724	 || status
5725
5726	 /* Did the vfork/compiler bug occur?  */
5727	 || parent != getpid()
5728
5729	 /* Did the file descriptor bug occur?  */
5730	 || fstat(fileno(stdout), &st) != 0
5731	 );
5732  }
5733}
5734_ACEOF
5735if ac_fn_c_try_run "$LINENO"; then :
5736  ac_cv_func_vfork_works=yes
5737else
5738  ac_cv_func_vfork_works=no
5739fi
5740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5741  conftest.$ac_objext conftest.beam conftest.$ac_ext
5742fi
5743
5744fi
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5746$as_echo "$ac_cv_func_vfork_works" >&6; }
5747
5748fi;
5749if test "x$ac_cv_func_fork_works" = xcross; then
5750  ac_cv_func_vfork_works=$ac_cv_func_vfork
5751  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5752$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5753fi
5754
5755if test "x$ac_cv_func_vfork_works" = xyes; then
5756
5757$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
5758
5759else
5760
5761$as_echo "@%:@define vfork fork" >>confdefs.h
5762
5763fi
5764if test "x$ac_cv_func_fork_works" = xyes; then
5765
5766$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
5767
5768fi
5769
5770for ac_func in strftime
5771do :
5772  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
5773if test "x$ac_cv_func_strftime" = x""yes; then :
5774  cat >>confdefs.h <<_ACEOF
5775@%:@define HAVE_STRFTIME 1
5776_ACEOF
5777
5778else
5779  # strftime is in -lintl on SCO UNIX.
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
5781$as_echo_n "checking for strftime in -lintl... " >&6; }
5782if test "${ac_cv_lib_intl_strftime+set}" = set; then :
5783  $as_echo_n "(cached) " >&6
5784else
5785  ac_check_lib_save_LIBS=$LIBS
5786LIBS="-lintl  $LIBS"
5787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789
5790/* Override any GCC internal prototype to avoid an error.
5791   Use char because int might match the return type of a GCC
5792   builtin and then its argument prototype would still apply.  */
5793#ifdef __cplusplus
5794extern "C"
5795#endif
5796char strftime ();
5797int
5798main ()
5799{
5800return strftime ();
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_link "$LINENO"; then :
5806  ac_cv_lib_intl_strftime=yes
5807else
5808  ac_cv_lib_intl_strftime=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext \
5811    conftest$ac_exeext conftest.$ac_ext
5812LIBS=$ac_check_lib_save_LIBS
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
5815$as_echo "$ac_cv_lib_intl_strftime" >&6; }
5816if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
5817  $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
5818
5819LIBS="-lintl $LIBS"
5820fi
5821
5822fi
5823done
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5826$as_echo_n "checking for working memcmp... " >&6; }
5827if test "${ac_cv_func_memcmp_working+set}" = set; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  if test "$cross_compiling" = yes; then :
5831  ac_cv_func_memcmp_working=no
5832else
5833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h.  */
5835$ac_includes_default
5836int
5837main ()
5838{
5839
5840  /* Some versions of memcmp are not 8-bit clean.  */
5841  char c0 = '\100', c1 = '\200', c2 = '\201';
5842  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5843    return 1;
5844
5845  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5846     or more and with at least one buffer not starting on a 4-byte boundary.
5847     William Lewis provided this test program.   */
5848  {
5849    char foo[21];
5850    char bar[21];
5851    int i;
5852    for (i = 0; i < 4; i++)
5853      {
5854	char *a = foo + i;
5855	char *b = bar + i;
5856	strcpy (a, "--------01111111");
5857	strcpy (b, "--------10000000");
5858	if (memcmp (a, b, 16) >= 0)
5859	  return 1;
5860      }
5861    return 0;
5862  }
5863
5864  ;
5865  return 0;
5866}
5867_ACEOF
5868if ac_fn_c_try_run "$LINENO"; then :
5869  ac_cv_func_memcmp_working=yes
5870else
5871  ac_cv_func_memcmp_working=no
5872fi
5873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5874  conftest.$ac_objext conftest.beam conftest.$ac_ext
5875fi
5876
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5879$as_echo "$ac_cv_func_memcmp_working" >&6; }
5880test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
5881  *" memcmp.$ac_objext "* ) ;;
5882  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
5883 ;;
5884esac
5885
5886
5887for ac_header in sys/select.h sys/socket.h
5888do :
5889  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5891eval as_val=\$$as_ac_Header
5892   if test "x$as_val" = x""yes; then :
5893  cat >>confdefs.h <<_ACEOF
5894@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895_ACEOF
5896
5897fi
5898
5899done
5900
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
5902$as_echo_n "checking types of arguments for select... " >&6; }
5903if test "${ac_cv_func_select_args+set}" = set; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5907 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5908  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911$ac_includes_default
5912#ifdef HAVE_SYS_SELECT_H
5913# include <sys/select.h>
5914#endif
5915#ifdef HAVE_SYS_SOCKET_H
5916# include <sys/socket.h>
5917#endif
5918
5919int
5920main ()
5921{
5922extern int select ($ac_arg1,
5923					    $ac_arg234, $ac_arg234, $ac_arg234,
5924					    $ac_arg5);
5925  ;
5926  return 0;
5927}
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"; then :
5930  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933  done
5934 done
5935done
5936# Provide a safe default value.
5937: ${ac_cv_func_select_args='int,int *,struct timeval *'}
5938
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5941$as_echo "$ac_cv_func_select_args" >&6; }
5942ac_save_IFS=$IFS; IFS=','
5943set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5944IFS=$ac_save_IFS
5945shift
5946
5947cat >>confdefs.h <<_ACEOF
5948@%:@define SELECT_TYPE_ARG1 $1
5949_ACEOF
5950
5951
5952cat >>confdefs.h <<_ACEOF
5953@%:@define SELECT_TYPE_ARG234 ($2)
5954_ACEOF
5955
5956
5957cat >>confdefs.h <<_ACEOF
5958@%:@define SELECT_TYPE_ARG5 ($3)
5959_ACEOF
5960
5961rm -f conftest*
5962
5963if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  ac_cv_func_setvbuf_reversed=no
5967fi
5968
5969
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5971$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5972if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  rm -f conftest.sym conftest.file
5976echo >conftest.file
5977if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5978  if test "$cross_compiling" = yes; then :
5979  ac_cv_func_lstat_dereferences_slashed_symlink=no
5980else
5981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982/* end confdefs.h.  */
5983$ac_includes_default
5984int
5985main ()
5986{
5987struct stat sbuf;
5988     /* Linux will dereference the symlink and fail, as required by POSIX.
5989	That is better in the sense that it means we will not
5990	have to compile and use the lstat wrapper.  */
5991     return lstat ("conftest.sym/", &sbuf) == 0;
5992  ;
5993  return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_run "$LINENO"; then :
5997  ac_cv_func_lstat_dereferences_slashed_symlink=yes
5998else
5999  ac_cv_func_lstat_dereferences_slashed_symlink=no
6000fi
6001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6002  conftest.$ac_objext conftest.beam conftest.$ac_ext
6003fi
6004
6005else
6006  # If the `ln -s' command failed, then we probably don't even
6007  # have an lstat function.
6008  ac_cv_func_lstat_dereferences_slashed_symlink=no
6009fi
6010rm -f conftest.sym conftest.file
6011
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6014$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6015
6016test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6017
6018cat >>confdefs.h <<_ACEOF
6019@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6020_ACEOF
6021
6022
6023if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6024  case " $LIB@&t@OBJS " in
6025  *" lstat.$ac_objext "* ) ;;
6026  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
6027 ;;
6028esac
6029
6030fi
6031
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6033$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6034if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6035  $as_echo_n "(cached) " >&6
6036else
6037  if test "$cross_compiling" = yes; then :
6038  ac_cv_func_stat_empty_string_bug=yes
6039else
6040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041/* end confdefs.h.  */
6042$ac_includes_default
6043int
6044main ()
6045{
6046struct stat sbuf;
6047  return stat ("", &sbuf) == 0;
6048  ;
6049  return 0;
6050}
6051_ACEOF
6052if ac_fn_c_try_run "$LINENO"; then :
6053  ac_cv_func_stat_empty_string_bug=no
6054else
6055  ac_cv_func_stat_empty_string_bug=yes
6056fi
6057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6058  conftest.$ac_objext conftest.beam conftest.$ac_ext
6059fi
6060
6061fi
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6063$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6064if test $ac_cv_func_stat_empty_string_bug = yes; then
6065  case " $LIB@&t@OBJS " in
6066  *" stat.$ac_objext "* ) ;;
6067  *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
6068 ;;
6069esac
6070
6071
6072cat >>confdefs.h <<_ACEOF
6073@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
6074_ACEOF
6075
6076fi
6077
6078for ac_func in bzero gettimeofday malloc inet_ntoa strerror select socket initgroups strlcat vsyslog strcasestr getaddrinfo getnameinfo
6079do :
6080  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6081ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6082eval as_val=\$$as_ac_var
6083   if test "x$as_val" = x""yes; then :
6084  cat >>confdefs.h <<_ACEOF
6085@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6086_ACEOF
6087
6088fi
6089done
6090
6091
6092
6093# Check for libpthread. On FreeBSD, the libc_r does the job.
6094# On digitalUNIX, libpthreads (with a trailing s) is the library to use
6095# FIXME: FreeBSD 4.x wants -pthread
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6097$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6098if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  ac_check_lib_save_LIBS=$LIBS
6102LIBS="-lpthread  $LIBS"
6103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105
6106/* Override any GCC internal prototype to avoid an error.
6107   Use char because int might match the return type of a GCC
6108   builtin and then its argument prototype would still apply.  */
6109#ifdef __cplusplus
6110extern "C"
6111#endif
6112char pthread_create ();
6113int
6114main ()
6115{
6116return pthread_create ();
6117  ;
6118  return 0;
6119}
6120_ACEOF
6121if ac_fn_c_try_link "$LINENO"; then :
6122  ac_cv_lib_pthread_pthread_create=yes
6123else
6124  ac_cv_lib_pthread_pthread_create=no
6125fi
6126rm -f core conftest.err conftest.$ac_objext \
6127    conftest$ac_exeext conftest.$ac_ext
6128LIBS=$ac_check_lib_save_LIBS
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6131$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6132if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
6133  LIBS="$LIBS -lpthread"
6134else
6135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
6136$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
6137if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  ac_check_lib_save_LIBS=$LIBS
6141LIBS="-lc_r  $LIBS"
6142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144
6145/* Override any GCC internal prototype to avoid an error.
6146   Use char because int might match the return type of a GCC
6147   builtin and then its argument prototype would still apply.  */
6148#ifdef __cplusplus
6149extern "C"
6150#endif
6151char pthread_create ();
6152int
6153main ()
6154{
6155return pthread_create ();
6156  ;
6157  return 0;
6158}
6159_ACEOF
6160if ac_fn_c_try_link "$LINENO"; then :
6161  ac_cv_lib_c_r_pthread_create=yes
6162else
6163  ac_cv_lib_c_r_pthread_create=no
6164fi
6165rm -f core conftest.err conftest.$ac_objext \
6166    conftest$ac_exeext conftest.$ac_ext
6167LIBS=$ac_check_lib_save_LIBS
6168fi
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
6170$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
6171if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
6172  LIBS="$LIBS -lc_r"
6173else
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads -lpthread" >&5
6175$as_echo_n "checking for pthread_create in -lpthreads -lpthread... " >&6; }
6176if test "${ac_cv_lib_pthreads__lpthread_pthread_create+set}" = set; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  ac_check_lib_save_LIBS=$LIBS
6180LIBS="-lpthreads -lpthread  $LIBS"
6181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182/* end confdefs.h.  */
6183
6184/* Override any GCC internal prototype to avoid an error.
6185   Use char because int might match the return type of a GCC
6186   builtin and then its argument prototype would still apply.  */
6187#ifdef __cplusplus
6188extern "C"
6189#endif
6190char pthread_create ();
6191int
6192main ()
6193{
6194return pthread_create ();
6195  ;
6196  return 0;
6197}
6198_ACEOF
6199if ac_fn_c_try_link "$LINENO"; then :
6200  ac_cv_lib_pthreads__lpthread_pthread_create=yes
6201else
6202  ac_cv_lib_pthreads__lpthread_pthread_create=no
6203fi
6204rm -f core conftest.err conftest.$ac_objext \
6205    conftest$ac_exeext conftest.$ac_ext
6206LIBS=$ac_check_lib_save_LIBS
6207fi
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads__lpthread_pthread_create" >&5
6209$as_echo "$ac_cv_lib_pthreads__lpthread_pthread_create" >&6; }
6210if test "x$ac_cv_lib_pthreads__lpthread_pthread_create" = x""yes; then :
6211  LIBS="$LIBS -lpthreads -lpthread"
6212else
6213  echo "Required libpthread not found. Use --with-libpthread";
6214                 exit 1;
6215fi
6216
6217
6218fi
6219
6220
6221fi
6222
6223
6224# Try to configure for libspf2
6225SAVEDLDFLAGS=$LDFLAGS
6226SAVEDCFLAGS=$CFLAGS
6227
6228@%:@ Check whether --with-libspf2 was given.
6229if test "${with_libspf2+set}" = set; then :
6230  withval=$with_libspf2; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
6231           CFLAGS=$CFLAGS" -I$withval/include"
6232           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2" >&5
6233$as_echo_n "checking for SPF_server_new in -lspf2... " >&6; }
6234if test "${ac_cv_lib_spf2_SPF_server_new+set}" = set; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  ac_check_lib_save_LIBS=$LIBS
6238LIBS="-lspf2  $LIBS"
6239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h.  */
6241
6242/* Override any GCC internal prototype to avoid an error.
6243   Use char because int might match the return type of a GCC
6244   builtin and then its argument prototype would still apply.  */
6245#ifdef __cplusplus
6246extern "C"
6247#endif
6248char SPF_server_new ();
6249int
6250main ()
6251{
6252return SPF_server_new ();
6253  ;
6254  return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_link "$LINENO"; then :
6258  ac_cv_lib_spf2_SPF_server_new=yes
6259else
6260  ac_cv_lib_spf2_SPF_server_new=no
6261fi
6262rm -f core conftest.err conftest.$ac_objext \
6263    conftest$ac_exeext conftest.$ac_ext
6264LIBS=$ac_check_lib_save_LIBS
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2_SPF_server_new" >&5
6267$as_echo "$ac_cv_lib_spf2_SPF_server_new" >&6; }
6268if test "x$ac_cv_lib_spf2_SPF_server_new" = x""yes; then :
6269
6270               SAVEDLDFLAGS=$LDFLAGS
6271               SAVEDCFLAGS=$CFLAGS
6272               LIBS=$LIBS" -lspf2"
6273
6274$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h
6275
6276
6277else
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2 -lintl" >&5
6279$as_echo_n "checking for SPF_server_new in -lspf2 -lintl... " >&6; }
6280if test "${ac_cv_lib_spf2__lintl_SPF_server_new+set}" = set; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  ac_check_lib_save_LIBS=$LIBS
6284LIBS="-lspf2 -lintl  $LIBS"
6285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h.  */
6287
6288/* Override any GCC internal prototype to avoid an error.
6289   Use char because int might match the return type of a GCC
6290   builtin and then its argument prototype would still apply.  */
6291#ifdef __cplusplus
6292extern "C"
6293#endif
6294char SPF_server_new ();
6295int
6296main ()
6297{
6298return SPF_server_new ();
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303if ac_fn_c_try_link "$LINENO"; then :
6304  ac_cv_lib_spf2__lintl_SPF_server_new=yes
6305else
6306  ac_cv_lib_spf2__lintl_SPF_server_new=no
6307fi
6308rm -f core conftest.err conftest.$ac_objext \
6309    conftest$ac_exeext conftest.$ac_ext
6310LIBS=$ac_check_lib_save_LIBS
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2__lintl_SPF_server_new" >&5
6313$as_echo "$ac_cv_lib_spf2__lintl_SPF_server_new" >&6; }
6314if test "x$ac_cv_lib_spf2__lintl_SPF_server_new" = x""yes; then :
6315
6316                       SAVEDLDFLAGS=$LDFLAGS
6317                       SAVEDCFLAGS=$CFLAGS
6318                       LIBS=$LIBS" -lspf2 -lintl"
6319
6320$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h
6321
6322
6323else
6324  echo "libspf2 not found, check config.log for details"
6325                   echo "Remove --with-libspf2 to build without SPF support"
6326                   exit 1;
6327fi
6328
6329
6330fi
6331
6332
6333fi
6334
6335LDFLAGS=$SAVEDLDFLAGS
6336CFLAGS=$SAVEDCFLAGS
6337
6338# Try to configure for libspf2-static
6339SAVEDLDFLAGS=$LDFLAGS
6340SAVEDCFLAGS=$CFLAGS
6341
6342@%:@ Check whether --with-libspf2-static was given.
6343if test "${with_libspf2_static+set}" = set; then :
6344  withval=$with_libspf2_static; LDFLAGS=$LDFLAGS" -L$withval/lib"
6345	   CFLAGS=$CFLAGS" -I$withval/include"
6346           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2" >&5
6347$as_echo_n "checking for SPF_server_new in -lspf2... " >&6; }
6348if test "${ac_cv_lib_spf2_SPF_server_new+set}" = set; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  ac_check_lib_save_LIBS=$LIBS
6352LIBS="-lspf2  $LIBS"
6353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h.  */
6355
6356/* Override any GCC internal prototype to avoid an error.
6357   Use char because int might match the return type of a GCC
6358   builtin and then its argument prototype would still apply.  */
6359#ifdef __cplusplus
6360extern "C"
6361#endif
6362char SPF_server_new ();
6363int
6364main ()
6365{
6366return SPF_server_new ();
6367  ;
6368  return 0;
6369}
6370_ACEOF
6371if ac_fn_c_try_link "$LINENO"; then :
6372  ac_cv_lib_spf2_SPF_server_new=yes
6373else
6374  ac_cv_lib_spf2_SPF_server_new=no
6375fi
6376rm -f core conftest.err conftest.$ac_objext \
6377    conftest$ac_exeext conftest.$ac_ext
6378LIBS=$ac_check_lib_save_LIBS
6379fi
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2_SPF_server_new" >&5
6381$as_echo "$ac_cv_lib_spf2_SPF_server_new" >&6; }
6382if test "x$ac_cv_lib_spf2_SPF_server_new" = x""yes; then :
6383
6384               SAVEDLDFLAGS=$LDFLAGS
6385               SAVEDCFLAGS=$CFLAGS
6386               LIBS=$LIBS" $withval/lib/libspf2.a"
6387
6388$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h
6389
6390
6391else
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_server_new in -lspf2 -lintl" >&5
6393$as_echo_n "checking for SPF_server_new in -lspf2 -lintl... " >&6; }
6394if test "${ac_cv_lib_spf2__lintl_SPF_server_new+set}" = set; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  ac_check_lib_save_LIBS=$LIBS
6398LIBS="-lspf2 -lintl  $LIBS"
6399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401
6402/* Override any GCC internal prototype to avoid an error.
6403   Use char because int might match the return type of a GCC
6404   builtin and then its argument prototype would still apply.  */
6405#ifdef __cplusplus
6406extern "C"
6407#endif
6408char SPF_server_new ();
6409int
6410main ()
6411{
6412return SPF_server_new ();
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417if ac_fn_c_try_link "$LINENO"; then :
6418  ac_cv_lib_spf2__lintl_SPF_server_new=yes
6419else
6420  ac_cv_lib_spf2__lintl_SPF_server_new=no
6421fi
6422rm -f core conftest.err conftest.$ac_objext \
6423    conftest$ac_exeext conftest.$ac_ext
6424LIBS=$ac_check_lib_save_LIBS
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2__lintl_SPF_server_new" >&5
6427$as_echo "$ac_cv_lib_spf2__lintl_SPF_server_new" >&6; }
6428if test "x$ac_cv_lib_spf2__lintl_SPF_server_new" = x""yes; then :
6429
6430                       SAVEDLDFLAGS=$LDFLAGS
6431                       SAVEDCFLAGS=$CFLAGS
6432                       LIBS=$LIBS" $withval/lib/libspf2.a -lintl"
6433
6434$as_echo "@%:@define HAVE_SPF2 /**/" >>confdefs.h
6435
6436
6437else
6438  echo "static library libspf2.a not found, check config.log for details"
6439                   echo "Remove --with-libspf2-static to build without SPF support "
6440		   echo "  or try --with-libspf2 for the shared library"
6441                   exit 1;
6442fi
6443
6444
6445fi
6446
6447
6448fi
6449
6450LDFLAGS=$SAVEDLDFLAGS
6451CFLAGS=$SAVEDCFLAGS
6452
6453# Try to configure for libspf2 1.0
6454SAVEDLDFLAGS=$LDFLAGS
6455SAVEDCFLAGS=$CFLAGS
6456
6457@%:@ Check whether --with-libspf2_10 was given.
6458if test "${with_libspf2_10+set}" = set; then :
6459  withval=$with_libspf2_10; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
6460           CFLAGS=$CFLAGS" -I$withval/include"
6461           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf2" >&5
6462$as_echo_n "checking for SPF_create_config in -lspf2... " >&6; }
6463if test "${ac_cv_lib_spf2_SPF_create_config+set}" = set; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  ac_check_lib_save_LIBS=$LIBS
6467LIBS="-lspf2  $LIBS"
6468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470
6471/* Override any GCC internal prototype to avoid an error.
6472   Use char because int might match the return type of a GCC
6473   builtin and then its argument prototype would still apply.  */
6474#ifdef __cplusplus
6475extern "C"
6476#endif
6477char SPF_create_config ();
6478int
6479main ()
6480{
6481return SPF_create_config ();
6482  ;
6483  return 0;
6484}
6485_ACEOF
6486if ac_fn_c_try_link "$LINENO"; then :
6487  ac_cv_lib_spf2_SPF_create_config=yes
6488else
6489  ac_cv_lib_spf2_SPF_create_config=no
6490fi
6491rm -f core conftest.err conftest.$ac_objext \
6492    conftest$ac_exeext conftest.$ac_ext
6493LIBS=$ac_check_lib_save_LIBS
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2_SPF_create_config" >&5
6496$as_echo "$ac_cv_lib_spf2_SPF_create_config" >&6; }
6497if test "x$ac_cv_lib_spf2_SPF_create_config" = x""yes; then :
6498
6499               SAVEDLDFLAGS=$LDFLAGS
6500               SAVEDCFLAGS=$CFLAGS
6501               LIBS=$LIBS" -lspf2"
6502
6503$as_echo "@%:@define HAVE_SPF2_10 /**/" >>confdefs.h
6504
6505
6506else
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf2 -lintl" >&5
6508$as_echo_n "checking for SPF_create_config in -lspf2 -lintl... " >&6; }
6509if test "${ac_cv_lib_spf2__lintl_SPF_create_config+set}" = set; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512  ac_check_lib_save_LIBS=$LIBS
6513LIBS="-lspf2 -lintl  $LIBS"
6514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516
6517/* Override any GCC internal prototype to avoid an error.
6518   Use char because int might match the return type of a GCC
6519   builtin and then its argument prototype would still apply.  */
6520#ifdef __cplusplus
6521extern "C"
6522#endif
6523char SPF_create_config ();
6524int
6525main ()
6526{
6527return SPF_create_config ();
6528  ;
6529  return 0;
6530}
6531_ACEOF
6532if ac_fn_c_try_link "$LINENO"; then :
6533  ac_cv_lib_spf2__lintl_SPF_create_config=yes
6534else
6535  ac_cv_lib_spf2__lintl_SPF_create_config=no
6536fi
6537rm -f core conftest.err conftest.$ac_objext \
6538    conftest$ac_exeext conftest.$ac_ext
6539LIBS=$ac_check_lib_save_LIBS
6540fi
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf2__lintl_SPF_create_config" >&5
6542$as_echo "$ac_cv_lib_spf2__lintl_SPF_create_config" >&6; }
6543if test "x$ac_cv_lib_spf2__lintl_SPF_create_config" = x""yes; then :
6544
6545                       SAVEDLDFLAGS=$LDFLAGS
6546                       SAVEDCFLAGS=$CFLAGS
6547                       LIBS=$LIBS" -lspf2 -lintl"
6548
6549$as_echo "@%:@define HAVE_SPF2_10 /**/" >>confdefs.h
6550
6551
6552else
6553  echo "libspf2 1.0 not found, check config.log for details"
6554                   echo "Remove --with-libspf2_10 to build without SPF support"
6555                   exit 1;
6556fi
6557
6558
6559fi
6560
6561
6562fi
6563
6564LDFLAGS=$SAVEDLDFLAGS
6565CFLAGS=$SAVEDCFLAGS
6566
6567# Try to configure for libspf_alt
6568SAVEDLDFLAGS=$LDFLAGS
6569SAVEDCFLAGS=$CFLAGS
6570
6571@%:@ Check whether --with-libspf_alt was given.
6572if test "${with_libspf_alt+set}" = set; then :
6573  withval=$with_libspf_alt; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
6574	    CFLAGS=$CFLAGS" -I$withval/include"
6575	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf_alt" >&5
6576$as_echo_n "checking for SPF_create_config in -lspf_alt... " >&6; }
6577if test "${ac_cv_lib_spf_alt_SPF_create_config+set}" = set; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  ac_check_lib_save_LIBS=$LIBS
6581LIBS="-lspf_alt  $LIBS"
6582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584
6585/* Override any GCC internal prototype to avoid an error.
6586   Use char because int might match the return type of a GCC
6587   builtin and then its argument prototype would still apply.  */
6588#ifdef __cplusplus
6589extern "C"
6590#endif
6591char SPF_create_config ();
6592int
6593main ()
6594{
6595return SPF_create_config ();
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600if ac_fn_c_try_link "$LINENO"; then :
6601  ac_cv_lib_spf_alt_SPF_create_config=yes
6602else
6603  ac_cv_lib_spf_alt_SPF_create_config=no
6604fi
6605rm -f core conftest.err conftest.$ac_objext \
6606    conftest$ac_exeext conftest.$ac_ext
6607LIBS=$ac_check_lib_save_LIBS
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf_alt_SPF_create_config" >&5
6610$as_echo "$ac_cv_lib_spf_alt_SPF_create_config" >&6; }
6611if test "x$ac_cv_lib_spf_alt_SPF_create_config" = x""yes; then :
6612
6613		SAVEDLDFLAGS=$LDFLAGS
6614		SAVEDCFLAGS=$CFLAGS
6615		LIBS=$LIBS" -lspf_alt"
6616
6617$as_echo "@%:@define HAVE_SPF_ALT /**/" >>confdefs.h
6618
6619
6620else
6621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_create_config in -lspf_alt -lintl" >&5
6622$as_echo_n "checking for SPF_create_config in -lspf_alt -lintl... " >&6; }
6623if test "${ac_cv_lib_spf_alt__lintl_SPF_create_config+set}" = set; then :
6624  $as_echo_n "(cached) " >&6
6625else
6626  ac_check_lib_save_LIBS=$LIBS
6627LIBS="-lspf_alt -lintl  $LIBS"
6628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h.  */
6630
6631/* Override any GCC internal prototype to avoid an error.
6632   Use char because int might match the return type of a GCC
6633   builtin and then its argument prototype would still apply.  */
6634#ifdef __cplusplus
6635extern "C"
6636#endif
6637char SPF_create_config ();
6638int
6639main ()
6640{
6641return SPF_create_config ();
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_link "$LINENO"; then :
6647  ac_cv_lib_spf_alt__lintl_SPF_create_config=yes
6648else
6649  ac_cv_lib_spf_alt__lintl_SPF_create_config=no
6650fi
6651rm -f core conftest.err conftest.$ac_objext \
6652    conftest$ac_exeext conftest.$ac_ext
6653LIBS=$ac_check_lib_save_LIBS
6654fi
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf_alt__lintl_SPF_create_config" >&5
6656$as_echo "$ac_cv_lib_spf_alt__lintl_SPF_create_config" >&6; }
6657if test "x$ac_cv_lib_spf_alt__lintl_SPF_create_config" = x""yes; then :
6658
6659			SAVEDLDFLAGS=$LDFLAGS
6660			SAVEDCFLAGS=$CFLAGS
6661			LIBS=$LIBS" -lspf_alt -lintl"
6662
6663$as_echo "@%:@define HAVE_SPF_ALT /**/" >>confdefs.h
6664
6665
6666else
6667  echo "libspf_alt not found, check config.log for details"
6668		    echo "Remove --with-libspf_alt to build without SPF support"
6669		    exit 1;
6670fi
6671
6672
6673fi
6674
6675
6676fi
6677
6678LDFLAGS=$SAVEDLDFLAGS
6679CFLAGS=$SAVEDCFLAGS
6680
6681# Try to configure for libspf
6682SAVEDLDFLAGS=$LDFLAGS
6683SAVEDCFLAGS=$CFLAGS
6684
6685@%:@ Check whether --with-libspf was given.
6686if test "${with_libspf+set}" = set; then :
6687  withval=$with_libspf; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
6688	    CFLAGS=$CFLAGS" -I$withval/include"
6689	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPF_init in -lspf" >&5
6690$as_echo_n "checking for SPF_init in -lspf... " >&6; }
6691if test "${ac_cv_lib_spf_SPF_init+set}" = set; then :
6692  $as_echo_n "(cached) " >&6
6693else
6694  ac_check_lib_save_LIBS=$LIBS
6695LIBS="-lspf  $LIBS"
6696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h.  */
6698
6699/* Override any GCC internal prototype to avoid an error.
6700   Use char because int might match the return type of a GCC
6701   builtin and then its argument prototype would still apply.  */
6702#ifdef __cplusplus
6703extern "C"
6704#endif
6705char SPF_init ();
6706int
6707main ()
6708{
6709return SPF_init ();
6710  ;
6711  return 0;
6712}
6713_ACEOF
6714if ac_fn_c_try_link "$LINENO"; then :
6715  ac_cv_lib_spf_SPF_init=yes
6716else
6717  ac_cv_lib_spf_SPF_init=no
6718fi
6719rm -f core conftest.err conftest.$ac_objext \
6720    conftest$ac_exeext conftest.$ac_ext
6721LIBS=$ac_check_lib_save_LIBS
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spf_SPF_init" >&5
6724$as_echo "$ac_cv_lib_spf_SPF_init" >&6; }
6725if test "x$ac_cv_lib_spf_SPF_init" = x""yes; then :
6726
6727		SAVEDLDFLAGS=$LDFLAGS
6728		SAVEDCFLAGS=$CFLAGS
6729		LIBS=$LIBS" -lspf"
6730
6731$as_echo "@%:@define HAVE_SPF /**/" >>confdefs.h
6732
6733
6734else
6735  echo "libspf not found, check config.log for details"
6736		    echo "Remove --with-libspf to build without SPF support"
6737		    exit 1;
6738fi
6739
6740
6741fi
6742
6743LDFLAGS=$SAVEDLDFLAGS
6744CFLAGS=$SAVEDCFLAGS
6745
6746# Try to configure for libdkim
6747SAVEDLDFLAGS=$LDFLAGS
6748SAVEDCFLAGS=$CFLAGS
6749
6750@%:@ Check whether --with-libdkim was given.
6751if test "${with_libdkim+set}" = set; then :
6752  withval=$with_libdkim; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
6753	    CFLAGS=$CFLAGS" -I$withval/include"
6754	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkim_init in -ldkim -lcrypto" >&5
6755$as_echo_n "checking for dkim_init in -ldkim -lcrypto... " >&6; }
6756if test "${ac_cv_lib_dkim__lcrypto_dkim_init+set}" = set; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  ac_check_lib_save_LIBS=$LIBS
6760LIBS="-ldkim -lcrypto  $LIBS"
6761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762/* end confdefs.h.  */
6763
6764/* Override any GCC internal prototype to avoid an error.
6765   Use char because int might match the return type of a GCC
6766   builtin and then its argument prototype would still apply.  */
6767#ifdef __cplusplus
6768extern "C"
6769#endif
6770char dkim_init ();
6771int
6772main ()
6773{
6774return dkim_init ();
6775  ;
6776  return 0;
6777}
6778_ACEOF
6779if ac_fn_c_try_link "$LINENO"; then :
6780  ac_cv_lib_dkim__lcrypto_dkim_init=yes
6781else
6782  ac_cv_lib_dkim__lcrypto_dkim_init=no
6783fi
6784rm -f core conftest.err conftest.$ac_objext \
6785    conftest$ac_exeext conftest.$ac_ext
6786LIBS=$ac_check_lib_save_LIBS
6787fi
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dkim__lcrypto_dkim_init" >&5
6789$as_echo "$ac_cv_lib_dkim__lcrypto_dkim_init" >&6; }
6790if test "x$ac_cv_lib_dkim__lcrypto_dkim_init" = x""yes; then :
6791
6792		SAVEDLDFLAGS=$LDFLAGS
6793		SAVEDCFLAGS=$CFLAGS
6794		LIBS=$LIBS" -ldkim -lcrypto"
6795
6796$as_echo "@%:@define USE_DKIM /**/" >>confdefs.h
6797
6798
6799else
6800  echo "libdkim not found, check config.log for details"
6801		    echo "Remove --with-dkim to build without DKIM support"
6802		    exit 1;
6803fi
6804
6805
6806fi
6807
6808LDFLAGS=$SAVEDLDFLAGS
6809CFLAGS=$SAVEDCFLAGS
6810
6811# Try to configure for libopendkim
6812SAVEDLDFLAGS=$LDFLAGS
6813SAVEDCFLAGS=$CFLAGS
6814
6815@%:@ Check whether --with-libopendkim was given.
6816if test "${with_libopendkim+set}" = set; then :
6817  withval=$with_libopendkim; LDFLAGS=$LDFLAGS" -L$withval/lib -Wl,$rpath$withval/lib"
6818	    dkim_include=""
6819	    for dir in include include/dkim include/opendkim ; do
6820	        test -f $withval/$dir/dkim.h && dkim_include=$dir
6821	    done
6822	    CFLAGS=$CFLAGS" -I$withval/$dkim_include"
6823	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkim_init in -lopendkim -lcrypto" >&5
6824$as_echo_n "checking for dkim_init in -lopendkim -lcrypto... " >&6; }
6825if test "${ac_cv_lib_opendkim__lcrypto_dkim_init+set}" = set; then :
6826  $as_echo_n "(cached) " >&6
6827else
6828  ac_check_lib_save_LIBS=$LIBS
6829LIBS="-lopendkim -lcrypto  $LIBS"
6830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h.  */
6832
6833/* Override any GCC internal prototype to avoid an error.
6834   Use char because int might match the return type of a GCC
6835   builtin and then its argument prototype would still apply.  */
6836#ifdef __cplusplus
6837extern "C"
6838#endif
6839char dkim_init ();
6840int
6841main ()
6842{
6843return dkim_init ();
6844  ;
6845  return 0;
6846}
6847_ACEOF
6848if ac_fn_c_try_link "$LINENO"; then :
6849  ac_cv_lib_opendkim__lcrypto_dkim_init=yes
6850else
6851  ac_cv_lib_opendkim__lcrypto_dkim_init=no
6852fi
6853rm -f core conftest.err conftest.$ac_objext \
6854    conftest$ac_exeext conftest.$ac_ext
6855LIBS=$ac_check_lib_save_LIBS
6856fi
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opendkim__lcrypto_dkim_init" >&5
6858$as_echo "$ac_cv_lib_opendkim__lcrypto_dkim_init" >&6; }
6859if test "x$ac_cv_lib_opendkim__lcrypto_dkim_init" = x""yes; then :
6860
6861		SAVEDLDFLAGS=$LDFLAGS
6862		SAVEDCFLAGS=$CFLAGS
6863		LIBS=$LIBS" -lopendkim -lcrypto"
6864
6865$as_echo "@%:@define USE_DKIM /**/" >>confdefs.h
6866
6867
6868else
6869  echo "libopendkim not found, check config.log for details"
6870		    echo "Remove --with-opendkim to build without DKIM support"
6871		    exit 1;
6872fi
6873
6874
6875fi
6876
6877LDFLAGS=$SAVEDLDFLAGS
6878CFLAGS=$SAVEDCFLAGS
6879
6880# NOTE: Sun CCS make insists on a space "-j 1" instead of "-j1" ok for gmake.
6881@%:@ Check whether --enable-parallel-make was given.
6882if test "${enable_parallel_make+set}" = set; then :
6883  enableval=$enable_parallel_make; if test "x${enable_parallel_make}" = "xyes" ; then
6884		MAKE_J1="-j 1"
6885
6886	 else
6887		MAKE_J1=""
6888
6889	 fi
6890
6891else
6892  MAKE_J1="-j 1"
6893
6894fi
6895
6896
6897@%:@ Check whether --enable-rpath was given.
6898if test "${enable_rpath+set}" = set; then :
6899  enableval=$enable_rpath; if test x$enableval = xno; then
6900		LDFLAGS=$NORPSAVEDLDFLAGS
6901	fi
6902fi
6903
6904
6905# Check for socket functions linking. On Solaris, -lsocket -lnsl is required
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
6907$as_echo_n "checking for socket in -lsocket... " >&6; }
6908if test "${ac_cv_lib_socket_socket+set}" = set; then :
6909  $as_echo_n "(cached) " >&6
6910else
6911  ac_check_lib_save_LIBS=$LIBS
6912LIBS="-lsocket  $LIBS"
6913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h.  */
6915
6916/* Override any GCC internal prototype to avoid an error.
6917   Use char because int might match the return type of a GCC
6918   builtin and then its argument prototype would still apply.  */
6919#ifdef __cplusplus
6920extern "C"
6921#endif
6922char socket ();
6923int
6924main ()
6925{
6926return socket ();
6927  ;
6928  return 0;
6929}
6930_ACEOF
6931if ac_fn_c_try_link "$LINENO"; then :
6932  ac_cv_lib_socket_socket=yes
6933else
6934  ac_cv_lib_socket_socket=no
6935fi
6936rm -f core conftest.err conftest.$ac_objext \
6937    conftest$ac_exeext conftest.$ac_ext
6938LIBS=$ac_check_lib_save_LIBS
6939fi
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6941$as_echo "$ac_cv_lib_socket_socket" >&6; }
6942if test "x$ac_cv_lib_socket_socket" = x""yes; then :
6943  LIBS="$LIBS -lsocket"
6944else
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket -lnsl" >&5
6946$as_echo_n "checking for socket in -lsocket -lnsl... " >&6; }
6947if test "${ac_cv_lib_socket__lnsl_socket+set}" = set; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950  ac_check_lib_save_LIBS=$LIBS
6951LIBS="-lsocket -lnsl  $LIBS"
6952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h.  */
6954
6955/* Override any GCC internal prototype to avoid an error.
6956   Use char because int might match the return type of a GCC
6957   builtin and then its argument prototype would still apply.  */
6958#ifdef __cplusplus
6959extern "C"
6960#endif
6961char socket ();
6962int
6963main ()
6964{
6965return socket ();
6966  ;
6967  return 0;
6968}
6969_ACEOF
6970if ac_fn_c_try_link "$LINENO"; then :
6971  ac_cv_lib_socket__lnsl_socket=yes
6972else
6973  ac_cv_lib_socket__lnsl_socket=no
6974fi
6975rm -f core conftest.err conftest.$ac_objext \
6976    conftest$ac_exeext conftest.$ac_ext
6977LIBS=$ac_check_lib_save_LIBS
6978fi
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket__lnsl_socket" >&5
6980$as_echo "$ac_cv_lib_socket__lnsl_socket" >&6; }
6981if test "x$ac_cv_lib_socket__lnsl_socket" = x""yes; then :
6982  LIBS="$LIBS -lsocket -lnsl"
6983fi
6984
6985
6986fi
6987
6988
6989# Check for inet_aton (libmilter uses it). On solaris, -lresolv is required
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
6991$as_echo_n "checking for inet_aton in -lresolv... " >&6; }
6992if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  ac_check_lib_save_LIBS=$LIBS
6996LIBS="-lresolv  $LIBS"
6997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h.  */
6999
7000/* Override any GCC internal prototype to avoid an error.
7001   Use char because int might match the return type of a GCC
7002   builtin and then its argument prototype would still apply.  */
7003#ifdef __cplusplus
7004extern "C"
7005#endif
7006char inet_aton ();
7007int
7008main ()
7009{
7010return inet_aton ();
7011  ;
7012  return 0;
7013}
7014_ACEOF
7015if ac_fn_c_try_link "$LINENO"; then :
7016  ac_cv_lib_resolv_inet_aton=yes
7017else
7018  ac_cv_lib_resolv_inet_aton=no
7019fi
7020rm -f core conftest.err conftest.$ac_objext \
7021    conftest$ac_exeext conftest.$ac_ext
7022LIBS=$ac_check_lib_save_LIBS
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
7025$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
7026if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
7027  LIBS="$LIBS -lresolv"
7028fi
7029
7030
7031# Check for inet_pton (libmilter uses it). On solaris, -lnsl is required
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lnsl" >&5
7033$as_echo_n "checking for inet_pton in -lnsl... " >&6; }
7034if test "${ac_cv_lib_nsl_inet_pton+set}" = set; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  ac_check_lib_save_LIBS=$LIBS
7038LIBS="-lnsl  $LIBS"
7039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041
7042/* Override any GCC internal prototype to avoid an error.
7043   Use char because int might match the return type of a GCC
7044   builtin and then its argument prototype would still apply.  */
7045#ifdef __cplusplus
7046extern "C"
7047#endif
7048char inet_pton ();
7049int
7050main ()
7051{
7052return inet_pton ();
7053  ;
7054  return 0;
7055}
7056_ACEOF
7057if ac_fn_c_try_link "$LINENO"; then :
7058  ac_cv_lib_nsl_inet_pton=yes
7059else
7060  ac_cv_lib_nsl_inet_pton=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext \
7063    conftest$ac_exeext conftest.$ac_ext
7064LIBS=$ac_check_lib_save_LIBS
7065fi
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_pton" >&5
7067$as_echo "$ac_cv_lib_nsl_inet_pton" >&6; }
7068if test "x$ac_cv_lib_nsl_inet_pton" = x""yes; then :
7069  LIBS="$LIBS -lnsl"
7070fi
7071
7072
7073# Check if we have res_ninit()
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
7075$as_echo_n "checking for res_ninit... " >&6; }
7076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077/* end confdefs.h.  */
7078
7079		#include <sys/types.h>
7080		#include <netinet/in.h>
7081		#include <arpa/nameser.h>
7082		#include <resolv.h>
7083
7084int
7085main ()
7086{
7087
7088		struct __res_state res;
7089		res_ninit(&res);
7090
7091  ;
7092  return 0;
7093}
7094_ACEOF
7095if ac_fn_c_try_link "$LINENO"; then :
7096
7097$as_echo "@%:@define HAVE_RES_NINIT 1" >>confdefs.h
7098 res_ninit=yes
7099else
7100  res_ninit=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext \
7103    conftest$ac_exeext conftest.$ac_ext
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_ninit" >&5
7105$as_echo "$res_ninit" >&6; }
7106
7107# Check if we have res_ndestroy()
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
7109$as_echo_n "checking for res_ndestroy... " >&6; }
7110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111/* end confdefs.h.  */
7112
7113		#include <sys/types.h>
7114		#include <netinet/in.h>
7115		#include <arpa/nameser.h>
7116		#include <resolv.h>
7117
7118int
7119main ()
7120{
7121
7122		struct __res_state res;
7123		res_ndestroy(&res);
7124
7125  ;
7126  return 0;
7127}
7128_ACEOF
7129if ac_fn_c_try_link "$LINENO"; then :
7130
7131$as_echo "@%:@define HAVE_RES_NDESTROY 1" >>confdefs.h
7132 res_ndestroy=yes
7133else
7134  res_ndestroy=no
7135fi
7136rm -f core conftest.err conftest.$ac_objext \
7137    conftest$ac_exeext conftest.$ac_ext
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_ndestroy" >&5
7139$as_echo "$res_ndestroy" >&6; }
7140
7141# Check if we have res_nupdate()
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nupdate" >&5
7143$as_echo_n "checking for res_nupdate... " >&6; }
7144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h.  */
7146
7147		#include <sys/types.h>
7148		#include <netinet/in.h>
7149		#include <arpa/nameser.h>
7150		#include <resolv.h>
7151		#include <res_update.h>
7152
7153int
7154main ()
7155{
7156
7157		struct __res_state res;
7158		ns_updrec updrec;
7159		res_nupdate(&res, &updrec, NULL);
7160
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165if ac_fn_c_try_link "$LINENO"; then :
7166
7167$as_echo "@%:@define HAVE_RES_NUPDATE 1" >>confdefs.h
7168
7169
7170$as_echo "@%:@define USE_NSUPDATE 1" >>confdefs.h
7171
7172	      res_nupdate=yes
7173else
7174  res_nupdate=no
7175fi
7176rm -f core conftest.err conftest.$ac_objext \
7177    conftest$ac_exeext conftest.$ac_ext
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_nupdate" >&5
7179$as_echo "$res_nupdate" >&6; }
7180
7181# Check for getaddrinfo and getnameinfo
7182
7183
7184
7185
7186ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
7187if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
7188    ac_cv_lib_socket_getaddrinfo=no
7189  ac_cv_lib_inet6_getaddrinfo=no
7190
7191else
7192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
7193$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
7194if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  ac_check_lib_save_LIBS=$LIBS
7198LIBS="-lsocket  $LIBS"
7199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h.  */
7201
7202/* Override any GCC internal prototype to avoid an error.
7203   Use char because int might match the return type of a GCC
7204   builtin and then its argument prototype would still apply.  */
7205#ifdef __cplusplus
7206extern "C"
7207#endif
7208char getaddrinfo ();
7209int
7210main ()
7211{
7212return getaddrinfo ();
7213  ;
7214  return 0;
7215}
7216_ACEOF
7217if ac_fn_c_try_link "$LINENO"; then :
7218  ac_cv_lib_socket_getaddrinfo=yes
7219else
7220  ac_cv_lib_socket_getaddrinfo=no
7221fi
7222rm -f core conftest.err conftest.$ac_objext \
7223    conftest$ac_exeext conftest.$ac_ext
7224LIBS=$ac_check_lib_save_LIBS
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
7227$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
7228if test "x$ac_cv_lib_socket_getaddrinfo" = x""yes; then :
7229      LIBS="$LIBS -lsocket"
7230    ac_cv_lib_inet6_getaddrinfo=no
7231
7232else
7233      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
7234$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
7235    if test "${ipv6_cv_dir+set}" = set; then :
7236  $as_echo_n "(cached) " >&6
7237else
7238        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
7239	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
7240	  break
7241	fi
7242      done
7243fi
7244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
7245$as_echo "$ipv6_cv_dir" >&6; }
7246    if test $ipv6_cv_dir = no; then
7247      ac_cv_lib_inet6_getaddrinfo=no
7248    else
7249      if test x$ipv6_libinet6 = x; then
7250	ipv6_libinet6=no
7251	SAVELDFLAGS="$LDFLAGS"
7252	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
7253      fi
7254      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
7255$as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
7256if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  ac_check_lib_save_LIBS=$LIBS
7260LIBS="-linet6  $LIBS"
7261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262/* end confdefs.h.  */
7263
7264/* Override any GCC internal prototype to avoid an error.
7265   Use char because int might match the return type of a GCC
7266   builtin and then its argument prototype would still apply.  */
7267#ifdef __cplusplus
7268extern "C"
7269#endif
7270char getaddrinfo ();
7271int
7272main ()
7273{
7274return getaddrinfo ();
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279if ac_fn_c_try_link "$LINENO"; then :
7280  ac_cv_lib_inet6_getaddrinfo=yes
7281else
7282  ac_cv_lib_inet6_getaddrinfo=no
7283fi
7284rm -f core conftest.err conftest.$ac_objext \
7285    conftest$ac_exeext conftest.$ac_ext
7286LIBS=$ac_check_lib_save_LIBS
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
7289$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
7290if test "x$ac_cv_lib_inet6_getaddrinfo" = x""yes; then :
7291  	if test $ipv6_libinet6 = no; then
7292	  ipv6_libinet6=yes
7293	  LIBS="$LIBS -linet6"
7294	fi
7295fi
7296      if test $ipv6_libinet6 = no; then
7297	LDFLAGS="$SAVELDFLAGS"
7298      fi
7299    fi
7300fi
7301
7302fi
7303ipv6_cv_getaddrinfo=no
7304if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
7305     -o $ac_cv_lib_inet6_getaddrinfo = yes
7306then
7307  ipv6_cv_getaddrinfo=yes
7308fi
7309if test $ipv6_cv_getaddrinfo = no; then
7310  if test getaddrinfo = getaddrinfo; then
7311    for ipv6_cv_pfx in o n; do
7312      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314#include <netdb.h>
7315
7316_ACEOF
7317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318  $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
7319  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
7320ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
7321eval as_val=\$$as_ac_var
7322   if test "x$as_val" = x""yes; then :
7323
7324fi
7325
7326fi
7327rm -f conftest*
7328
7329      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
7330        ipv6_cv_getaddrinfo=yes
7331        break
7332      fi
7333    done
7334  fi
7335fi
7336if test $ipv6_cv_getaddrinfo = yes; then
7337  cat >>confdefs.h <<_ACEOF
7338@%:@define HAVE_GETADDRINFO 1
7339_ACEOF
7340
7341  :
7342else
7343  :
7344fi
7345
7346
7347ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
7348if test "x$ac_cv_func_getnameinfo" = x""yes; then :
7349    ac_cv_lib_socket_getnameinfo=no
7350  ac_cv_lib_inet6_getnameinfo=no
7351
7352else
7353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
7354$as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
7355if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then :
7356  $as_echo_n "(cached) " >&6
7357else
7358  ac_check_lib_save_LIBS=$LIBS
7359LIBS="-lsocket  $LIBS"
7360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362
7363/* Override any GCC internal prototype to avoid an error.
7364   Use char because int might match the return type of a GCC
7365   builtin and then its argument prototype would still apply.  */
7366#ifdef __cplusplus
7367extern "C"
7368#endif
7369char getnameinfo ();
7370int
7371main ()
7372{
7373return getnameinfo ();
7374  ;
7375  return 0;
7376}
7377_ACEOF
7378if ac_fn_c_try_link "$LINENO"; then :
7379  ac_cv_lib_socket_getnameinfo=yes
7380else
7381  ac_cv_lib_socket_getnameinfo=no
7382fi
7383rm -f core conftest.err conftest.$ac_objext \
7384    conftest$ac_exeext conftest.$ac_ext
7385LIBS=$ac_check_lib_save_LIBS
7386fi
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
7388$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
7389if test "x$ac_cv_lib_socket_getnameinfo" = x""yes; then :
7390      LIBS="$LIBS -lsocket"
7391    ac_cv_lib_inet6_getnameinfo=no
7392
7393else
7394      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
7395$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
7396    if test "${ipv6_cv_dir+set}" = set; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
7400	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
7401	  break
7402	fi
7403      done
7404fi
7405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
7406$as_echo "$ipv6_cv_dir" >&6; }
7407    if test $ipv6_cv_dir = no; then
7408      ac_cv_lib_inet6_getnameinfo=no
7409    else
7410      if test x$ipv6_libinet6 = x; then
7411	ipv6_libinet6=no
7412	SAVELDFLAGS="$LDFLAGS"
7413	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
7414      fi
7415      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
7416$as_echo_n "checking for getnameinfo in -linet6... " >&6; }
7417if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  ac_check_lib_save_LIBS=$LIBS
7421LIBS="-linet6  $LIBS"
7422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h.  */
7424
7425/* Override any GCC internal prototype to avoid an error.
7426   Use char because int might match the return type of a GCC
7427   builtin and then its argument prototype would still apply.  */
7428#ifdef __cplusplus
7429extern "C"
7430#endif
7431char getnameinfo ();
7432int
7433main ()
7434{
7435return getnameinfo ();
7436  ;
7437  return 0;
7438}
7439_ACEOF
7440if ac_fn_c_try_link "$LINENO"; then :
7441  ac_cv_lib_inet6_getnameinfo=yes
7442else
7443  ac_cv_lib_inet6_getnameinfo=no
7444fi
7445rm -f core conftest.err conftest.$ac_objext \
7446    conftest$ac_exeext conftest.$ac_ext
7447LIBS=$ac_check_lib_save_LIBS
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
7450$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
7451if test "x$ac_cv_lib_inet6_getnameinfo" = x""yes; then :
7452  	if test $ipv6_libinet6 = no; then
7453	  ipv6_libinet6=yes
7454	  LIBS="$LIBS -linet6"
7455	fi
7456fi
7457      if test $ipv6_libinet6 = no; then
7458	LDFLAGS="$SAVELDFLAGS"
7459      fi
7460    fi
7461fi
7462
7463fi
7464ipv6_cv_getnameinfo=no
7465if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
7466     -o $ac_cv_lib_inet6_getnameinfo = yes
7467then
7468  ipv6_cv_getnameinfo=yes
7469fi
7470if test $ipv6_cv_getnameinfo = no; then
7471  if test getnameinfo = getaddrinfo; then
7472    for ipv6_cv_pfx in o n; do
7473      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h.  */
7475#include <netdb.h>
7476
7477_ACEOF
7478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7479  $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
7480  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
7481ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
7482eval as_val=\$$as_ac_var
7483   if test "x$as_val" = x""yes; then :
7484
7485fi
7486
7487fi
7488rm -f conftest*
7489
7490      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
7491        ipv6_cv_getnameinfo=yes
7492        break
7493      fi
7494    done
7495  fi
7496fi
7497if test $ipv6_cv_getnameinfo = yes; then
7498  cat >>confdefs.h <<_ACEOF
7499@%:@define HAVE_GETNAMEINFO 1
7500_ACEOF
7501
7502  :
7503else
7504  :
7505fi
7506
7507# Check if <time.h> defines timeradd (and timersub)
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <time.h> defines timeradd" >&5
7509$as_echo_n "checking if <time.h> defines timeradd... " >&6; }
7510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h.  */
7512
7513		#if HAVE_TIME_H
7514		#include <time.h>
7515		#endif
7516		#ifdef HAVE_SYS_TIME_H
7517		#include <sys/time.h>
7518		#endif
7519
7520int
7521main ()
7522{
7523
7524		#ifndef timeradd
7525		error timeradd undefined
7526		#endif
7527
7528  ;
7529  return 0;
7530}
7531_ACEOF
7532if ac_fn_c_try_compile "$LINENO"; then :
7533  timeradd=yes
7534else
7535
7536$as_echo "@%:@define HAVE_MISSING_TIMERADD /**/" >>confdefs.h
7537 timeradd=no
7538fi
7539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeradd" >&5
7541$as_echo "$timeradd" >&6; }
7542
7543# Check if -D_REENTRANT is needed for localtime_r, gmtime_r, strtok_r
7544SAVEDCFLAGS=$CFLAGS
7545CFLAGS=$CFLAGS$efl
7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D_REENTRANT is needed to use localtime_r and strtok_r" >&5
7547$as_echo_n "checking if -D_REENTRANT is needed to use localtime_r and strtok_r... " >&6; }
7548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549/* end confdefs.h.  */
7550
7551               #include <time.h>
7552               #include <string.h>
7553               #include <stdio.h>
7554
7555int
7556main ()
7557{
7558
7559
7560               (void)localtime_r(NULL, NULL);
7561	       (void)strtok_r(NULL, NULL, NULL);
7562
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_compile "$LINENO"; then :
7568  dreentrant=no
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572
7573                               #define _REENTRANT
7574                               #include <time.h>
7575                               #include <string.h>
7576                               #include <stdio.h>
7577
7578int
7579main ()
7580{
7581
7582                                (void)localtime_r(NULL, NULL);
7583	       			(void)strtok_r(NULL, NULL, NULL);
7584
7585  ;
7586  return 0;
7587}
7588_ACEOF
7589if ac_fn_c_try_compile "$LINENO"; then :
7590  SAVEDCFLAGS=$SAVEDCFLAGS" -D_REENTRANT";
7591                        dreentrant=yes
7592else
7593  dreentrant=no
7594fi
7595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596
7597fi
7598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dreentrant" >&5
7600$as_echo "$dreentrant" >&6; }
7601CFLAGS=$SAVEDCFLAGS
7602
7603# Check if -D__EXTENSIONS__ is needed for snprintf, getopt, seteuid...
7604SAVEDCFLAGS=$CFLAGS
7605CFLAGS=$CFLAGS$efl
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D__EXTENSIONS__ is needed to use snprintf" >&5
7607$as_echo_n "checking if -D__EXTENSIONS__ is needed to use snprintf... " >&6; }
7608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609/* end confdefs.h.  */
7610
7611		#include <stdio.h>
7612
7613int
7614main ()
7615{
7616
7617		char dst[16 + 1];
7618
7619		snprintf(dst, 16, "test");
7620
7621  ;
7622  return 0;
7623}
7624_ACEOF
7625if ac_fn_c_try_compile "$LINENO"; then :
7626  dextensions=no
7627else
7628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h.  */
7630
7631				#define __EXTENSIONS__
7632				#include <stdio.h>
7633
7634int
7635main ()
7636{
7637
7638				char dst[16 + 1];
7639
7640				snprintf(dst, 16, "test");
7641
7642  ;
7643  return 0;
7644}
7645_ACEOF
7646if ac_fn_c_try_compile "$LINENO"; then :
7647  SAVEDCFLAGS=$SAVEDCFLAGS" -D__EXTENSIONS__";
7648			 dextensions=yes
7649else
7650  dextensions=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653
7654fi
7655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dextensions" >&5
7657$as_echo "$dextensions" >&6; }
7658CFLAGS=$SAVEDCFLAGS
7659
7660# Solaris 256 streams limitation workaround
7661@%:@ Check whether --enable-stdio-hack was given.
7662if test "${enable_stdio_hack+set}" = set; then :
7663  enableval=$enable_stdio_hack; CFLAGS=$CFLAGS" -DUSE_FD_POOL"
7664fi
7665
7666
7667# Check for DRAC
7668@%:@ Check whether --enable-drac was given.
7669if test "${enable_drac+set}" = set; then :
7670  enableval=$enable_drac; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_DRAC"; fi
7671fi
7672
7673@%:@ Check whether --enable-p0f was given.
7674if test "${enable_p0f+set}" = set; then :
7675  enableval=$enable_p0f; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_P0F"; fi
7676fi
7677
7678@%:@ Check whether --enable-p0f3 was given.
7679if test "${enable_p0f3+set}" = set; then :
7680  enableval=$enable_p0f3; if test x$enableval = xyes; then
7681	 CFLAGS=$CFLAGS" -DUSE_P0F -DHAVE_P0F3"; fi
7682fi
7683
7684@%:@ Check whether --enable-p0f306 was given.
7685if test "${enable_p0f306+set}" = set; then :
7686  enableval=$enable_p0f306; if test x$enableval = xyes; then
7687	 CFLAGS=$CFLAGS" -DUSE_P0F -DHAVE_P0F3 -DHAVE_P0F306"; fi
7688fi
7689
7690
7691@%:@ Check whether --with-p0f-src was given.
7692if test "${with_p0f_src+set}" = set; then :
7693  withval=$with_p0f_src; CFLAGS=$CFLAGS" -I$withval -DP0F_QUERY_FROM_P0F_DIST"
7694fi
7695
7696
7697# Check for SpamAssassin
7698@%:@ Check whether --enable-spamassassin was given.
7699if test "${enable_spamassassin+set}" = set; then :
7700  enableval=$enable_spamassassin; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_SPAMD"; fi
7701fi
7702
7703
7704# Check for libmilter. For sendmail-8.12.1, -lsm is required too.
7705# This uses a gross hack on the second AC_CHECK_LIB first argument, but using
7706# [-lsm] in the optionnal 5th argument does not seems to help at all.
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smfi_register in -lmilter" >&5
7708$as_echo_n "checking for smfi_register in -lmilter... " >&6; }
7709if test "${ac_cv_lib_milter_smfi_register+set}" = set; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  ac_check_lib_save_LIBS=$LIBS
7713LIBS="-lmilter  $LIBS"
7714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h.  */
7716
7717/* Override any GCC internal prototype to avoid an error.
7718   Use char because int might match the return type of a GCC
7719   builtin and then its argument prototype would still apply.  */
7720#ifdef __cplusplus
7721extern "C"
7722#endif
7723char smfi_register ();
7724int
7725main ()
7726{
7727return smfi_register ();
7728  ;
7729  return 0;
7730}
7731_ACEOF
7732if ac_fn_c_try_link "$LINENO"; then :
7733  ac_cv_lib_milter_smfi_register=yes
7734else
7735  ac_cv_lib_milter_smfi_register=no
7736fi
7737rm -f core conftest.err conftest.$ac_objext \
7738    conftest$ac_exeext conftest.$ac_ext
7739LIBS=$ac_check_lib_save_LIBS
7740fi
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter_smfi_register" >&5
7742$as_echo "$ac_cv_lib_milter_smfi_register" >&6; }
7743if test "x$ac_cv_lib_milter_smfi_register" = x""yes; then :
7744  LIBS="$LIBS -lmilter"
7745else
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smfi_register in -lmilter -lsm" >&5
7747$as_echo_n "checking for smfi_register in -lmilter -lsm... " >&6; }
7748if test "${ac_cv_lib_milter__lsm_smfi_register+set}" = set; then :
7749  $as_echo_n "(cached) " >&6
7750else
7751  ac_check_lib_save_LIBS=$LIBS
7752LIBS="-lmilter -lsm  $LIBS"
7753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754/* end confdefs.h.  */
7755
7756/* Override any GCC internal prototype to avoid an error.
7757   Use char because int might match the return type of a GCC
7758   builtin and then its argument prototype would still apply.  */
7759#ifdef __cplusplus
7760extern "C"
7761#endif
7762char smfi_register ();
7763int
7764main ()
7765{
7766return smfi_register ();
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771if ac_fn_c_try_link "$LINENO"; then :
7772  ac_cv_lib_milter__lsm_smfi_register=yes
7773else
7774  ac_cv_lib_milter__lsm_smfi_register=no
7775fi
7776rm -f core conftest.err conftest.$ac_objext \
7777    conftest$ac_exeext conftest.$ac_ext
7778LIBS=$ac_check_lib_save_LIBS
7779fi
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter__lsm_smfi_register" >&5
7781$as_echo "$ac_cv_lib_milter__lsm_smfi_register" >&6; }
7782if test "x$ac_cv_lib_milter__lsm_smfi_register" = x""yes; then :
7783  LIBS="$LIBS -lmilter -lsm"
7784else
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smfi_register in -lmilter -lsmutil" >&5
7786$as_echo_n "checking for smfi_register in -lmilter -lsmutil... " >&6; }
7787if test "${ac_cv_lib_milter__lsmutil_smfi_register+set}" = set; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  ac_check_lib_save_LIBS=$LIBS
7791LIBS="-lmilter -lsmutil  $LIBS"
7792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h.  */
7794
7795/* Override any GCC internal prototype to avoid an error.
7796   Use char because int might match the return type of a GCC
7797   builtin and then its argument prototype would still apply.  */
7798#ifdef __cplusplus
7799extern "C"
7800#endif
7801char smfi_register ();
7802int
7803main ()
7804{
7805return smfi_register ();
7806  ;
7807  return 0;
7808}
7809_ACEOF
7810if ac_fn_c_try_link "$LINENO"; then :
7811  ac_cv_lib_milter__lsmutil_smfi_register=yes
7812else
7813  ac_cv_lib_milter__lsmutil_smfi_register=no
7814fi
7815rm -f core conftest.err conftest.$ac_objext \
7816    conftest$ac_exeext conftest.$ac_ext
7817LIBS=$ac_check_lib_save_LIBS
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_milter__lsmutil_smfi_register" >&5
7820$as_echo "$ac_cv_lib_milter__lsmutil_smfi_register" >&6; }
7821if test "x$ac_cv_lib_milter__lsmutil_smfi_register" = x""yes; then :
7822  LIBS="$LIBS -lmilter -lsmutil"
7823else
7824  echo "Required libmilter not found. Use --with-libmilter";
7825                exit 1;
7826fi
7827
7828
7829fi
7830
7831
7832fi
7833
7834
7835ac_fn_c_check_member "$LINENO" "struct smfiDesc" "xxfi_data" "ac_cv_member_struct_smfiDesc_xxfi_data" "#include <libmilter/mfapi.h>
7836"
7837if test "x$ac_cv_member_struct_smfiDesc_xxfi_data" = x""yes; then :
7838  CFLAGS=$CFLAGS" -DHAVE_DATA_CALLBACK"
7839fi
7840
7841
7842# Check if -lpthreads is needed after -lmilter
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lpthread is needed after -lmilter" >&5
7844$as_echo_n "checking if -lpthread is needed after -lmilter... " >&6; }
7845SAVEDLIBS=$LIBS
7846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848
7849		#include <pthread.h>
7850		#include <libmilter/mfapi.h>
7851
7852int
7853main ()
7854{
7855
7856		pthread_self();
7857		smfi_main();
7858
7859  ;
7860  return 0;
7861}
7862_ACEOF
7863if ac_fn_c_try_link "$LINENO"; then :
7864  pthend=no
7865else
7866  LIBS=$LIBS" -lpthread";
7867		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869
7870			#include <pthread.h>
7871			#include <libmilter/mfapi.h>
7872
7873int
7874main ()
7875{
7876
7877			pthread_self();
7878			smfi_main();
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885  pthend=yes; SAVEDLIBS=$LIBS
7886else
7887  pthend=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890    conftest$ac_exeext conftest.$ac_ext
7891
7892fi
7893rm -f core conftest.err conftest.$ac_objext \
7894    conftest$ac_exeext conftest.$ac_ext
7895
7896LIBS=$SAVEDLIBS
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthend" >&5
7898$as_echo "$pthend" >&6; }
7899
7900# Solaris 8 has no <sys/queue.h> at all - headers checked above
7901# Some Linux flavors have an outdated <sys/queue.h>
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <sys/queue.h> is outdated" >&5
7903$as_echo_n "checking if <sys/queue.h> is outdated... " >&6; }
7904oldqueue=no
7905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h.  */
7907
7908		#include <sys/queue.h>
7909
7910int
7911main ()
7912{
7913
7914		#ifndef TAILQ_FIRST
7915		error Your <sys/queue.h> is outdated
7916		#endif
7917		#ifndef SIMPLEQ_REMOVE
7918		error Your <sys/queue.h> is outdated
7919		#endif
7920
7921  ;
7922  return 0;
7923}
7924_ACEOF
7925if ac_fn_c_try_compile "$LINENO"; then :
7926  oldqueue=no
7927else
7928
7929$as_echo "@%:@define HAVE_OLD_QUEUE_H /**/" >>confdefs.h
7930 oldqueue=yes
7931fi
7932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $oldqueue" >&5
7934$as_echo "$oldqueue" >&6; }
7935
7936# Darwin is unable to define two __RCSID in the same file
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __RCSID can be used twice in the same source" >&5
7938$as_echo_n "checking if __RCSID can be used twice in the same source... " >&6; }
7939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h.  */
7941
7942		#include <sys/cdefs.h>
7943		#ifdef __RCSID
7944		__RCSID("Id1");
7945		__RCSID("Id2");
7946		#endif
7947
7948int
7949main ()
7950{
7951
7952		/* nothing */
7953
7954  ;
7955  return 0;
7956}
7957_ACEOF
7958if ac_fn_c_try_compile "$LINENO"; then :
7959  rcsidtwice=yes
7960else
7961
7962$as_echo "@%:@define HAVE_BROKEN_RCSID /**/" >>confdefs.h
7963 rcsidtwice=no
7964fi
7965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rcsidtwice" >&5
7967$as_echo "$rcsidtwice" >&6; }
7968
7969# Digital UNIX's native compiler require -pthread when using libpthread
7970# It also require -D_XOPEN_SOURCE=500 for various reasons I have not
7971# been abe to isolate. Let's define both there.
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <pthreads.h> wants -pthread" >&5
7973$as_echo_n "checking whether <pthreads.h> wants -pthread... " >&6; }
7974SAVEDCFLAGS=$CFLAGS
7975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976/* end confdefs.h.  */
7977#include <pthread.h>
7978int
7979main ()
7980{
7981
7982  ;
7983  return 0;
7984}
7985_ACEOF
7986if ac_fn_c_try_compile "$LINENO"; then :
7987  pthreadfl=no
7988else
7989  CFLAGS=$CFLAGS" -pthread -D_XOPEN_SOURCE=500";
7990	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992#include <pthread.h>
7993int
7994main ()
7995{
7996
7997  ;
7998  return 0;
7999}
8000_ACEOF
8001if ac_fn_c_try_compile "$LINENO"; then :
8002  pthreadfl=yes; SAVEDCFLAGS=$CFLAGS
8003else
8004  pthreadfl=no
8005fi
8006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007
8008fi
8009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010CFLAGS=$SAVEDCFLAGS
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthreadfl" >&5
8012$as_echo "$pthreadfl" >&6; }
8013
8014# Linux requires -D_XOPEN_SOURCE=500 to build with libpthread and -Wall
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you need -D_XOPEN_SOURCE to use libpthread" >&5
8016$as_echo_n "checking whether you need -D_XOPEN_SOURCE to use libpthread... " >&6; }
8017xopen=no
8018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h.  */
8020
8021		#include <sys/types.h>
8022		#include <pthread.h>
8023
8024int
8025main ()
8026{
8027
8028		pthread_rwlock_t lock;
8029
8030  ;
8031  return 0;
8032}
8033_ACEOF
8034if ac_fn_c_try_compile "$LINENO"; then :
8035  xopen=no
8036else
8037  CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"; xopen=yes
8038fi
8039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xopen" >&5
8041$as_echo "$xopen" >&6; }
8042
8043# Tru64 Unix needs -D_OSF_SOURCE for IPV6 support
8044SAVEDCFLAGS=$CFLAGS
8045CFLAGS=$CFLAGS" -D_XOPEN_SOURCE=500 -D_BSD_SOURCE"
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D_OSF_SOURCE is needed for IPV6 support" >&5
8047$as_echo_n "checking if -D_OSF_SOURCE is needed for IPV6 support... " >&6; }
8048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h.  */
8050
8051		#include <sys/types.h>
8052		#include <sys/socket.h>
8053		#include <netinet/in.h>
8054
8055int
8056main ()
8057{
8058
8059		#ifdef AF_INET6
8060		  struct in6_addr s;
8061		#endif
8062
8063  ;
8064  return 0;
8065}
8066_ACEOF
8067if ac_fn_c_try_compile "$LINENO"; then :
8068  dosfsource=no
8069else
8070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h.  */
8072
8073				#define _OSF_SOURCE
8074				#include <sys/socket.h>
8075				#include <netinet/in.h>
8076
8077int
8078main ()
8079{
8080
8081				#ifdef AF_INET6
8082				  struct in6_addr s;
8083				#endif
8084
8085  ;
8086  return 0;
8087}
8088_ACEOF
8089if ac_fn_c_try_compile "$LINENO"; then :
8090  SAVEDCFLAGS=$SAVEDCFLAGS" -D_OSF_SOURCE";
8091			 dosfsource=yes
8092else
8093  dosfsource=no
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096
8097fi
8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dosfsource" >&5
8100$as_echo "$dosfsource" >&6; }
8101CFLAGS=$SAVEDCFLAGS
8102
8103# Linux does not have a sa_len field in sockaddr
8104ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
8105		#include <sys/types.h>
8106		#include <sys/socket.h>
8107
8108"
8109if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
8110
8111$as_echo "@%:@define HAVE_SA_LEN /**/" >>confdefs.h
8112
8113fi
8114
8115
8116# Pre-RFC2553 system does not have a sin6_scope_id field in sockaddr_in6
8117ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
8118		#include <sys/types.h>
8119		#include <sys/socket.h>
8120		#include <netinet/in.h>
8121
8122"
8123if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
8124
8125$as_echo "@%:@define HAVE_SIN6_SCOPE_ID 1" >>confdefs.h
8126
8127fi
8128
8129
8130# Darwin seems to have no definition for socklen_t beyond _BSD_SOCKLEN_T_
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is missing" >&5
8132$as_echo_n "checking if socklen_t is missing... " >&6; }
8133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h.  */
8135
8136		#include <sys/types.h>
8137		#include <sys/socket.h>
8138
8139int
8140main ()
8141{
8142
8143		socklen_t slen;
8144
8145  ;
8146  return 0;
8147}
8148_ACEOF
8149if ac_fn_c_try_compile "$LINENO"; then :
8150  socklen=no
8151else
8152
8153$as_echo "@%:@define HAVE_MISSING_SOCKLEN_T /**/" >>confdefs.h
8154 socklen=yes
8155fi
8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen" >&5
8158$as_echo "$socklen" >&6; }
8159
8160# GNU pth-2.0.0 has a bug with rwlock.
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken rwlock in libpthread" >&5
8162$as_echo_n "checking for broken rwlock in libpthread... " >&6; }
8163brokenpth=yes
8164if test "$cross_compiling" = yes; then :
8165  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8167as_fn_error "cannot run test program while cross compiling
8168See \`config.log' for more details." "$LINENO" 5; }
8169else
8170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h.  */
8172
8173		#if STDC_HEADERS
8174		# include <stdlib.h>
8175		#else
8176		# ifdef __cplusplus
8177		extern "C" void exit (int);
8178		# else
8179		void exit (int);
8180		# endif
8181		#endif
8182
8183		#if HAVE_SYS_TIME_H
8184		# include <sys/time.h>
8185		#else
8186		struct timeval {
8187			long tv_sec;
8188			long tv_usec;
8189		};
8190		#endif
8191
8192		#if HAVE_SYS_TYPES_H
8193		# include <sys/types.h>
8194		#else
8195		#endif
8196
8197		#if HAVE_UNISTD_H
8198		# include <unistd.h>
8199		#else
8200		# ifdef __cplusplus
8201		extern "C" unsigned int exit (unsigned int);
8202		extern "C" int
8203		    select(int, void *, void *, void *, struct timeval *);
8204		# else
8205		unsigned int exit (unsigned int);
8206		int select(int, void *, void *, void *, struct timeval *);
8207		# endif
8208		#endif
8209
8210		#include <pthread.h>
8211		pthread_rwlock_t lock;
8212
8213		#ifdef __cplusplus
8214		extern "C" void testfunc (void *);
8215		extern "C" void yield(void);
8216		#else
8217		void testfunc();
8218		void yeild(void);
8219		#endif
8220
8221		/*
8222		 * On some Linux flavors, using sleep(3) instead
8223		 * of select causes an infinite hang.
8224		 */
8225		void yield (void)
8226		{
8227			struct timeval tv;
8228
8229			tv.tv_sec = 1;
8230			tv.tv_usec = 0;
8231			if (select(0, NULL, NULL, NULL, &tv) != 0)
8232				exit(EXIT_FAILURE);
8233			return;
8234		}
8235
8236		#ifdef __cplusplus
8237		void testfunc (void *dontcare)
8238		#else
8239		void testfunc (dontcare) void *dontcare;
8240		#endif
8241		{
8242			if (pthread_rwlock_rdlock(&lock) != 0)
8243				exit(EXIT_FAILURE);
8244			yield();
8245			if (pthread_rwlock_unlock(&lock) != 0)
8246				exit(EXIT_FAILURE);
8247			return;
8248		}
8249
8250int
8251main ()
8252{
8253
8254		pthread_t tid;
8255
8256		if (pthread_rwlock_init(&lock, NULL) != 0)
8257			exit(EXIT_FAILURE);
8258		if (pthread_create(&tid, NULL, (void *)testfunc, NULL) != 0)
8259			exit(EXIT_FAILURE);
8260		if (pthread_rwlock_rdlock(&lock) != 0)
8261			exit(EXIT_FAILURE);
8262		yield();
8263		if (pthread_rwlock_unlock(&lock) != 0)
8264			exit(EXIT_FAILURE);
8265		if (pthread_join(tid, NULL) != 0)
8266			exit(EXIT_FAILURE);
8267		return 0;
8268
8269  ;
8270  return 0;
8271}
8272_ACEOF
8273if ac_fn_c_try_run "$LINENO"; then :
8274  brokenpth=no
8275else
8276
8277$as_echo "@%:@define HAVE_BROKEN_RWLOCK /**/" >>confdefs.h
8278
8279fi
8280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8281  conftest.$ac_objext conftest.beam conftest.$ac_ext
8282fi
8283
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $brokenpth" >&5
8285$as_echo "$brokenpth" >&6; }
8286
8287# Check is DNS resolver is re-entrant
8288
8289@%:@ Check whether --with-thread-safe-resolver was given.
8290if test "${with_thread_safe_resolver+set}" = set; then :
8291  withval=$with_thread_safe_resolver; rdns=yes
8292else
8293
8294		SAVEDCFLAGS=$CFLAGS
8295		CFLAGS=$CFLAGS$efl
8296		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DNS resolver is re-entrant" >&5
8297$as_echo_n "checking if DNS resolver is re-entrant... " >&6; }
8298		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h.  */
8300
8301				#define _BSD_SOURCE
8302
8303				#include <sys/types.h>
8304				#include <netinet/in.h>
8305				#include <arpa/inet.h>
8306				#include <arpa/nameser.h>
8307				#include <resolv.h>
8308
8309int
8310main ()
8311{
8312
8313				struct __res_state res;
8314
8315				res_ninit(&res);
8316
8317  ;
8318  return 0;
8319}
8320_ACEOF
8321if ac_fn_c_try_compile "$LINENO"; then :
8322  rdns=yes
8323else
8324  rdns=no
8325fi
8326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rdns" >&5
8328$as_echo "$rdns" >&6; }
8329		CFLAGS=$SAVEDCFLAGS
8330
8331fi
8332
8333
8334# Check for DNSRBL
8335@%:@ Check whether --enable-dnsrbl was given.
8336if test "${enable_dnsrbl+set}" = set; then :
8337  enableval=$enable_dnsrbl; if test x$rdns = xyes; then
8338		SAVEDCFLAGS=$CFLAGS" -DUSE_DNSRBL"
8339		# For Debian
8340		CFLAGS=
8341		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h.  */
8343#include <arpa/inet.h>
8344		             #include <arpa/nameser.h>
8345
8346int
8347main ()
8348{
8349 int result = ns_initparse(NULL, 0, NULL);
8350  ;
8351  return 0;
8352}
8353_ACEOF
8354if ac_fn_c_try_link "$LINENO"; then :
8355
8356else
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5
8358$as_echo_n "checking for ns_initparse in -lresolv... " >&6; }
8359if test "${ac_cv_lib_resolv_ns_initparse+set}" = set; then :
8360  $as_echo_n "(cached) " >&6
8361else
8362  ac_check_lib_save_LIBS=$LIBS
8363LIBS="-lresolv  $LIBS"
8364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366
8367/* Override any GCC internal prototype to avoid an error.
8368   Use char because int might match the return type of a GCC
8369   builtin and then its argument prototype would still apply.  */
8370#ifdef __cplusplus
8371extern "C"
8372#endif
8373char ns_initparse ();
8374int
8375main ()
8376{
8377return ns_initparse ();
8378  ;
8379  return 0;
8380}
8381_ACEOF
8382if ac_fn_c_try_link "$LINENO"; then :
8383  ac_cv_lib_resolv_ns_initparse=yes
8384else
8385  ac_cv_lib_resolv_ns_initparse=no
8386fi
8387rm -f core conftest.err conftest.$ac_objext \
8388    conftest$ac_exeext conftest.$ac_ext
8389LIBS=$ac_check_lib_save_LIBS
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5
8392$as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; }
8393if test "x$ac_cv_lib_resolv_ns_initparse" = x""yes; then :
8394  LIBS="$LIBS -lresolv"
8395else
8396
8397				if test -r ${libdir}/libresolv.a; then
8398					LIBS="$LIBS ${libdir}/libresolv.a"
8399				else
8400					{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ns_initparse not found" >&5
8401$as_echo "$as_me: WARNING: ns_initparse not found" >&2;}
8402				fi
8403
8404fi
8405
8406
8407fi
8408rm -f core conftest.err conftest.$ac_objext \
8409    conftest$ac_exeext conftest.$ac_ext
8410		CFLAGS=$SAVEDCFLAGS
8411	 else
8412		echo "--enable-dnsrbl used but DNS resolver is not thread safe";
8413		echo "Try installing BIND9 and using --with-libbind, or if you";
8414		echo "know what you are doing, use --with-thread-safe-resolver";
8415		exit 1;
8416	 fi
8417
8418fi
8419
8420
8421# Check for MX
8422@%:@ Check whether --enable-mx was given.
8423if test "${enable_mx+set}" = set; then :
8424  enableval=$enable_mx; if test x$rdns = xyes; then
8425                SAVEDCFLAGS=$CFLAGS" -DUSE_MX"
8426                # For Debian
8427                CFLAGS=
8428                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430#include <stdio.h>
8431                             #include <arpa/nameser.h>
8432
8433int
8434main ()
8435{
8436 int result = ns_initparse(NULL, 0, NULL);
8437  ;
8438  return 0;
8439}
8440_ACEOF
8441if ac_fn_c_try_link "$LINENO"; then :
8442
8443else
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ns_initparse in -lresolv" >&5
8445$as_echo_n "checking for ns_initparse in -lresolv... " >&6; }
8446if test "${ac_cv_lib_resolv_ns_initparse+set}" = set; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  ac_check_lib_save_LIBS=$LIBS
8450LIBS="-lresolv  $LIBS"
8451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453
8454/* Override any GCC internal prototype to avoid an error.
8455   Use char because int might match the return type of a GCC
8456   builtin and then its argument prototype would still apply.  */
8457#ifdef __cplusplus
8458extern "C"
8459#endif
8460char ns_initparse ();
8461int
8462main ()
8463{
8464return ns_initparse ();
8465  ;
8466  return 0;
8467}
8468_ACEOF
8469if ac_fn_c_try_link "$LINENO"; then :
8470  ac_cv_lib_resolv_ns_initparse=yes
8471else
8472  ac_cv_lib_resolv_ns_initparse=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext \
8475    conftest$ac_exeext conftest.$ac_ext
8476LIBS=$ac_check_lib_save_LIBS
8477fi
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_ns_initparse" >&5
8479$as_echo "$ac_cv_lib_resolv_ns_initparse" >&6; }
8480if test "x$ac_cv_lib_resolv_ns_initparse" = x""yes; then :
8481  LIBS="$LIBS -lresolv"
8482else
8483
8484                                if test -r ${libdir}/libresolv.a; then
8485                                        LIBS="$LIBS ${libdir}/libresolv.a"
8486                                else
8487                                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ns_initparse not found" >&5
8488$as_echo "$as_me: WARNING: ns_initparse not found" >&2;}
8489                                fi
8490
8491fi
8492
8493
8494fi
8495rm -f core conftest.err conftest.$ac_objext \
8496    conftest$ac_exeext conftest.$ac_ext
8497                CFLAGS=$SAVEDCFLAGS
8498         else
8499                echo "--enable-mx defined, but DNS resolver is not thread safe";
8500                echo "Try installing BIND9 and using --with-libbind, or if you";
8501                echo "know what you are doing, use --with-thread-safe-resolver";
8502                exit 1;
8503         fi
8504
8505fi
8506
8507
8508# We enable some features for Postfix
8509@%:@ Check whether --enable-postfix was given.
8510if test "${enable_postfix+set}" = set; then :
8511  enableval=$enable_postfix; if test x$enableval = xyes; then
8512		CFLAGS=$CFLAGS" -DUSE_POSTFIX"
8513	 fi
8514
8515fi
8516
8517
8518# Record the build environnement for milter-greylist -r
8519
8520cat >>confdefs.h <<_ACEOF
8521@%:@define BUILD_ENV "`logname`@`uname -n`:`pwd` `date`"
8522_ACEOF
8523
8524
8525# Options
8526
8527@%:@ Check whether --with-user was given.
8528if test "${with_user+set}" = set; then :
8529  withval=$with_user; USER=$withval
8530
8531else
8532  USER=root
8533
8534fi
8535
8536
8537CONFFILE="\${SYSCONFDIR}/mail/greylist.conf"
8538
8539@%:@ Check whether --with-conffile was given.
8540if test "${with_conffile+set}" = set; then :
8541  withval=$with_conffile; CONFFILE="$withval"
8542fi
8543
8544
8545CFLAGS=$CFLAGS" -DCONFFILE=\\\"\${CONFFILE}\\\""
8546
8547DUMPFILE="\${LOCALSTATEDIR}/milter-greylist/greylist.db"
8548
8549@%:@ Check whether --with-dumpfile was given.
8550if test "${with_dumpfile+set}" = set; then :
8551  withval=$with_dumpfile; DUMPFILE="$withval"
8552fi
8553
8554
8555CFLAGS=$CFLAGS" -DDUMPFILE=\\\"\${DUMPFILE}\\\""
8556
8557
8558@%:@ Check whether --with-delay was given.
8559if test "${with_delay+set}" = set; then :
8560  withval=$with_delay; CFLAGS=$CFLAGS" -DGLDELAY=$withval"
8561fi
8562
8563
8564@%:@ Check whether --with-timeout was given.
8565if test "${with_timeout+set}" = set; then :
8566  withval=$with_timeout; CFLAGS=$CFLAGS" -DTIMEOUT=$withval"
8567fi
8568
8569
8570@%:@ Check whether --with-autowhite was given.
8571if test "${with_autowhite+set}" = set; then :
8572  withval=$with_autowhite; CFLAGS=$CFLAGS" -DAUTOWHITE_DELAY=$withval"
8573fi
8574
8575
8576@%:@ Check whether --with-drac-db was given.
8577if test "${with_drac_db+set}" = set; then :
8578  withval=$with_drac_db; CFLAGS=$CFLAGS" -DDRACDB=\\\"$withval\\\""
8579fi
8580
8581
8582ac_config_files="$ac_config_files Makefile milter-greylist.spec"
8583
8584cat >confcache <<\_ACEOF
8585# This file is a shell script that caches the results of configure
8586# tests run on this system so they can be shared between configure
8587# scripts and configure runs, see configure's option --config-cache.
8588# It is not useful on other systems.  If it contains results you don't
8589# want to keep, you may remove or edit it.
8590#
8591# config.status only pays attention to the cache file if you give it
8592# the --recheck option to rerun configure.
8593#
8594# `ac_cv_env_foo' variables (set or unset) will be overridden when
8595# loading this file, other *unset* `ac_cv_foo' will be assigned the
8596# following values.
8597
8598_ACEOF
8599
8600# The following way of writing the cache mishandles newlines in values,
8601# but we know of no workaround that is simple, portable, and efficient.
8602# So, we kill variables containing newlines.
8603# Ultrix sh set writes to stderr and can't be redirected directly,
8604# and sets the high bit in the cache file unless we assign to the vars.
8605(
8606  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8607    eval ac_val=\$$ac_var
8608    case $ac_val in #(
8609    *${as_nl}*)
8610      case $ac_var in #(
8611      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8612$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8613      esac
8614      case $ac_var in #(
8615      _ | IFS | as_nl) ;; #(
8616      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8617      *) { eval $ac_var=; unset $ac_var;} ;;
8618      esac ;;
8619    esac
8620  done
8621
8622  (set) 2>&1 |
8623    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8624    *${as_nl}ac_space=\ *)
8625      # `set' does not quote correctly, so add quotes: double-quote
8626      # substitution turns \\\\ into \\, and sed turns \\ into \.
8627      sed -n \
8628	"s/'/'\\\\''/g;
8629	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8630      ;; #(
8631    *)
8632      # `set' quotes correctly as required by POSIX, so do not add quotes.
8633      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8634      ;;
8635    esac |
8636    sort
8637) |
8638  sed '
8639     /^ac_cv_env_/b end
8640     t clear
8641     :clear
8642     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8643     t end
8644     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8645     :end' >>confcache
8646if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8647  if test -w "$cache_file"; then
8648    test "x$cache_file" != "x/dev/null" &&
8649      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8650$as_echo "$as_me: updating cache $cache_file" >&6;}
8651    cat confcache >$cache_file
8652  else
8653    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8654$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8655  fi
8656fi
8657rm -f confcache
8658
8659test "x$prefix" = xNONE && prefix=$ac_default_prefix
8660# Let make expand exec_prefix.
8661test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8662
8663DEFS=-DHAVE_CONFIG_H
8664
8665ac_libobjs=
8666ac_ltlibobjs=
8667for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
8668  # 1. Remove the extension, and $U if already installed.
8669  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8670  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8671  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8672  #    will be set to the directory where LIBOBJS objects are built.
8673  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8674  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8675done
8676LIB@&t@OBJS=$ac_libobjs
8677
8678LTLIBOBJS=$ac_ltlibobjs
8679
8680
8681
8682: ${CONFIG_STATUS=./config.status}
8683ac_write_fail=0
8684ac_clean_files_save=$ac_clean_files
8685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8687$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8688as_write_fail=0
8689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8690#! $SHELL
8691# Generated by $as_me.
8692# Run this file to recreate the current configuration.
8693# Compiler output produced by configure, useful for debugging
8694# configure, is in config.log if it exists.
8695
8696debug=false
8697ac_cs_recheck=false
8698ac_cs_silent=false
8699
8700SHELL=\${CONFIG_SHELL-$SHELL}
8701export SHELL
8702_ASEOF
8703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8704## -------------------- ##
8705## M4sh Initialization. ##
8706## -------------------- ##
8707
8708# Be more Bourne compatible
8709DUALCASE=1; export DUALCASE # for MKS sh
8710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8711  emulate sh
8712  NULLCMD=:
8713  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8714  # is contrary to our usage.  Disable this feature.
8715  alias -g '${1+"$@"}'='"$@"'
8716  setopt NO_GLOB_SUBST
8717else
8718  case `(set -o) 2>/dev/null` in @%:@(
8719  *posix*) :
8720    set -o posix ;; @%:@(
8721  *) :
8722     ;;
8723esac
8724fi
8725
8726
8727as_nl='
8728'
8729export as_nl
8730# Printing a long string crashes Solaris 7 /usr/bin/printf.
8731as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8734# Prefer a ksh shell builtin over an external printf program on Solaris,
8735# but without wasting forks for bash or zsh.
8736if test -z "$BASH_VERSION$ZSH_VERSION" \
8737    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8738  as_echo='print -r --'
8739  as_echo_n='print -rn --'
8740elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8741  as_echo='printf %s\n'
8742  as_echo_n='printf %s'
8743else
8744  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8745    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8746    as_echo_n='/usr/ucb/echo -n'
8747  else
8748    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8749    as_echo_n_body='eval
8750      arg=$1;
8751      case $arg in @%:@(
8752      *"$as_nl"*)
8753	expr "X$arg" : "X\\(.*\\)$as_nl";
8754	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8755      esac;
8756      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8757    '
8758    export as_echo_n_body
8759    as_echo_n='sh -c $as_echo_n_body as_echo'
8760  fi
8761  export as_echo_body
8762  as_echo='sh -c $as_echo_body as_echo'
8763fi
8764
8765# The user is always right.
8766if test "${PATH_SEPARATOR+set}" != set; then
8767  PATH_SEPARATOR=:
8768  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8769    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8770      PATH_SEPARATOR=';'
8771  }
8772fi
8773
8774
8775# IFS
8776# We need space, tab and new line, in precisely that order.  Quoting is
8777# there to prevent editors from complaining about space-tab.
8778# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8779# splitting by setting IFS to empty value.)
8780IFS=" ""	$as_nl"
8781
8782# Find who we are.  Look in the path if we contain no directory separator.
8783case $0 in @%:@((
8784  *[\\/]* ) as_myself=$0 ;;
8785  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788  IFS=$as_save_IFS
8789  test -z "$as_dir" && as_dir=.
8790    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8791  done
8792IFS=$as_save_IFS
8793
8794     ;;
8795esac
8796# We did not find ourselves, most probably we were run as `sh COMMAND'
8797# in which case we are not to be found in the path.
8798if test "x$as_myself" = x; then
8799  as_myself=$0
8800fi
8801if test ! -f "$as_myself"; then
8802  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8803  exit 1
8804fi
8805
8806# Unset variables that we do not need and which cause bugs (e.g. in
8807# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8808# suppresses any "Segmentation fault" message there.  '((' could
8809# trigger a bug in pdksh 5.2.14.
8810for as_var in BASH_ENV ENV MAIL MAILPATH
8811do eval test x\${$as_var+set} = xset \
8812  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8813done
8814PS1='$ '
8815PS2='> '
8816PS4='+ '
8817
8818# NLS nuisances.
8819LC_ALL=C
8820export LC_ALL
8821LANGUAGE=C
8822export LANGUAGE
8823
8824# CDPATH.
8825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8826
8827
8828@%:@ as_fn_error ERROR [LINENO LOG_FD]
8829@%:@ ---------------------------------
8830@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8831@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8832@%:@ script with status @S|@?, using 1 if that was 0.
8833as_fn_error ()
8834{
8835  as_status=$?; test $as_status -eq 0 && as_status=1
8836  if test "$3"; then
8837    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8838    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8839  fi
8840  $as_echo "$as_me: error: $1" >&2
8841  as_fn_exit $as_status
8842} @%:@ as_fn_error
8843
8844
8845@%:@ as_fn_set_status STATUS
8846@%:@ -----------------------
8847@%:@ Set @S|@? to STATUS, without forking.
8848as_fn_set_status ()
8849{
8850  return $1
8851} @%:@ as_fn_set_status
8852
8853@%:@ as_fn_exit STATUS
8854@%:@ -----------------
8855@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8856as_fn_exit ()
8857{
8858  set +e
8859  as_fn_set_status $1
8860  exit $1
8861} @%:@ as_fn_exit
8862
8863@%:@ as_fn_unset VAR
8864@%:@ ---------------
8865@%:@ Portably unset VAR.
8866as_fn_unset ()
8867{
8868  { eval $1=; unset $1;}
8869}
8870as_unset=as_fn_unset
8871@%:@ as_fn_append VAR VALUE
8872@%:@ ----------------------
8873@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
8874@%:@ advantage of any shell optimizations that allow amortized linear growth over
8875@%:@ repeated appends, instead of the typical quadratic growth present in naive
8876@%:@ implementations.
8877if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8878  eval 'as_fn_append ()
8879  {
8880    eval $1+=\$2
8881  }'
8882else
8883  as_fn_append ()
8884  {
8885    eval $1=\$$1\$2
8886  }
8887fi # as_fn_append
8888
8889@%:@ as_fn_arith ARG...
8890@%:@ ------------------
8891@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
8892@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
8893@%:@ must be portable across @S|@(()) and expr.
8894if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8895  eval 'as_fn_arith ()
8896  {
8897    as_val=$(( $* ))
8898  }'
8899else
8900  as_fn_arith ()
8901  {
8902    as_val=`expr "$@" || test $? -eq 1`
8903  }
8904fi # as_fn_arith
8905
8906
8907if expr a : '\(a\)' >/dev/null 2>&1 &&
8908   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8909  as_expr=expr
8910else
8911  as_expr=false
8912fi
8913
8914if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8915  as_basename=basename
8916else
8917  as_basename=false
8918fi
8919
8920if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8921  as_dirname=dirname
8922else
8923  as_dirname=false
8924fi
8925
8926as_me=`$as_basename -- "$0" ||
8927$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8928	 X"$0" : 'X\(//\)$' \| \
8929	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8930$as_echo X/"$0" |
8931    sed '/^.*\/\([^/][^/]*\)\/*$/{
8932	    s//\1/
8933	    q
8934	  }
8935	  /^X\/\(\/\/\)$/{
8936	    s//\1/
8937	    q
8938	  }
8939	  /^X\/\(\/\).*/{
8940	    s//\1/
8941	    q
8942	  }
8943	  s/.*/./; q'`
8944
8945# Avoid depending upon Character Ranges.
8946as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8947as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8948as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8949as_cr_digits='0123456789'
8950as_cr_alnum=$as_cr_Letters$as_cr_digits
8951
8952ECHO_C= ECHO_N= ECHO_T=
8953case `echo -n x` in @%:@(((((
8954-n*)
8955  case `echo 'xy\c'` in
8956  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8957  xy)  ECHO_C='\c';;
8958  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8959       ECHO_T='	';;
8960  esac;;
8961*)
8962  ECHO_N='-n';;
8963esac
8964
8965rm -f conf$$ conf$$.exe conf$$.file
8966if test -d conf$$.dir; then
8967  rm -f conf$$.dir/conf$$.file
8968else
8969  rm -f conf$$.dir
8970  mkdir conf$$.dir 2>/dev/null
8971fi
8972if (echo >conf$$.file) 2>/dev/null; then
8973  if ln -s conf$$.file conf$$ 2>/dev/null; then
8974    as_ln_s='ln -s'
8975    # ... but there are two gotchas:
8976    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8977    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8978    # In both cases, we have to default to `cp -p'.
8979    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8980      as_ln_s='cp -p'
8981  elif ln conf$$.file conf$$ 2>/dev/null; then
8982    as_ln_s=ln
8983  else
8984    as_ln_s='cp -p'
8985  fi
8986else
8987  as_ln_s='cp -p'
8988fi
8989rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8990rmdir conf$$.dir 2>/dev/null
8991
8992
8993@%:@ as_fn_mkdir_p
8994@%:@ -------------
8995@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
8996as_fn_mkdir_p ()
8997{
8998
8999  case $as_dir in #(
9000  -*) as_dir=./$as_dir;;
9001  esac
9002  test -d "$as_dir" || eval $as_mkdir_p || {
9003    as_dirs=
9004    while :; do
9005      case $as_dir in #(
9006      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9007      *) as_qdir=$as_dir;;
9008      esac
9009      as_dirs="'$as_qdir' $as_dirs"
9010      as_dir=`$as_dirname -- "$as_dir" ||
9011$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9012	 X"$as_dir" : 'X\(//\)[^/]' \| \
9013	 X"$as_dir" : 'X\(//\)$' \| \
9014	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9015$as_echo X"$as_dir" |
9016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9017	    s//\1/
9018	    q
9019	  }
9020	  /^X\(\/\/\)[^/].*/{
9021	    s//\1/
9022	    q
9023	  }
9024	  /^X\(\/\/\)$/{
9025	    s//\1/
9026	    q
9027	  }
9028	  /^X\(\/\).*/{
9029	    s//\1/
9030	    q
9031	  }
9032	  s/.*/./; q'`
9033      test -d "$as_dir" && break
9034    done
9035    test -z "$as_dirs" || eval "mkdir $as_dirs"
9036  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9037
9038
9039} @%:@ as_fn_mkdir_p
9040if mkdir -p . 2>/dev/null; then
9041  as_mkdir_p='mkdir -p "$as_dir"'
9042else
9043  test -d ./-p && rmdir ./-p
9044  as_mkdir_p=false
9045fi
9046
9047if test -x / >/dev/null 2>&1; then
9048  as_test_x='test -x'
9049else
9050  if ls -dL / >/dev/null 2>&1; then
9051    as_ls_L_option=L
9052  else
9053    as_ls_L_option=
9054  fi
9055  as_test_x='
9056    eval sh -c '\''
9057      if test -d "$1"; then
9058	test -d "$1/.";
9059      else
9060	case $1 in @%:@(
9061	-*)set "./$1";;
9062	esac;
9063	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
9064	???[sx]*):;;*)false;;esac;fi
9065    '\'' sh
9066  '
9067fi
9068as_executable_p=$as_test_x
9069
9070# Sed expression to map a string onto a valid CPP name.
9071as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9072
9073# Sed expression to map a string onto a valid variable name.
9074as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9075
9076
9077exec 6>&1
9078## ----------------------------------- ##
9079## Main body of $CONFIG_STATUS script. ##
9080## ----------------------------------- ##
9081_ASEOF
9082test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9083
9084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9085# Save the log message, to keep $0 and so on meaningful, and to
9086# report actual input values of CONFIG_FILES etc. instead of their
9087# values after options handling.
9088ac_log="
9089This file was extended by milter-greylist $as_me 4.6.4, which was
9090generated by GNU Autoconf 2.65.  Invocation command line was
9091
9092  CONFIG_FILES    = $CONFIG_FILES
9093  CONFIG_HEADERS  = $CONFIG_HEADERS
9094  CONFIG_LINKS    = $CONFIG_LINKS
9095  CONFIG_COMMANDS = $CONFIG_COMMANDS
9096  $ $0 $@
9097
9098on `(hostname || uname -n) 2>/dev/null | sed 1q`
9099"
9100
9101_ACEOF
9102
9103case $ac_config_files in *"
9104"*) set x $ac_config_files; shift; ac_config_files=$*;;
9105esac
9106
9107case $ac_config_headers in *"
9108"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9109esac
9110
9111
9112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9113# Files that config.status was made for.
9114config_files="$ac_config_files"
9115config_headers="$ac_config_headers"
9116
9117_ACEOF
9118
9119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9120ac_cs_usage="\
9121\`$as_me' instantiates files and other configuration actions
9122from templates according to the current configuration.  Unless the files
9123and actions are specified as TAGs, all are instantiated by default.
9124
9125Usage: $0 [OPTION]... [TAG]...
9126
9127  -h, --help       print this help, then exit
9128  -V, --version    print version number and configuration settings, then exit
9129      --config     print configuration, then exit
9130  -q, --quiet, --silent
9131                   do not print progress messages
9132  -d, --debug      don't remove temporary files
9133      --recheck    update $as_me by reconfiguring in the same conditions
9134      --file=FILE[:TEMPLATE]
9135                   instantiate the configuration file FILE
9136      --header=FILE[:TEMPLATE]
9137                   instantiate the configuration header FILE
9138
9139Configuration files:
9140$config_files
9141
9142Configuration headers:
9143$config_headers
9144
9145Report bugs to <manu@netbsd.org>."
9146
9147_ACEOF
9148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9149ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9150ac_cs_version="\\
9151milter-greylist config.status 4.6.4
9152configured by $0, generated by GNU Autoconf 2.65,
9153  with options \\"\$ac_cs_config\\"
9154
9155Copyright (C) 2009 Free Software Foundation, Inc.
9156This config.status script is free software; the Free Software Foundation
9157gives unlimited permission to copy, distribute and modify it."
9158
9159ac_pwd='$ac_pwd'
9160srcdir='$srcdir'
9161INSTALL='$INSTALL'
9162test -n "\$AWK" || AWK=awk
9163_ACEOF
9164
9165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9166# The default lists apply if the user does not specify any file.
9167ac_need_defaults=:
9168while test $# != 0
9169do
9170  case $1 in
9171  --*=*)
9172    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9173    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9174    ac_shift=:
9175    ;;
9176  *)
9177    ac_option=$1
9178    ac_optarg=$2
9179    ac_shift=shift
9180    ;;
9181  esac
9182
9183  case $ac_option in
9184  # Handling of the options.
9185  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9186    ac_cs_recheck=: ;;
9187  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9188    $as_echo "$ac_cs_version"; exit ;;
9189  --config | --confi | --conf | --con | --co | --c )
9190    $as_echo "$ac_cs_config"; exit ;;
9191  --debug | --debu | --deb | --de | --d | -d )
9192    debug=: ;;
9193  --file | --fil | --fi | --f )
9194    $ac_shift
9195    case $ac_optarg in
9196    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9197    esac
9198    as_fn_append CONFIG_FILES " '$ac_optarg'"
9199    ac_need_defaults=false;;
9200  --header | --heade | --head | --hea )
9201    $ac_shift
9202    case $ac_optarg in
9203    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9204    esac
9205    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9206    ac_need_defaults=false;;
9207  --he | --h)
9208    # Conflict between --help and --header
9209    as_fn_error "ambiguous option: \`$1'
9210Try \`$0 --help' for more information.";;
9211  --help | --hel | -h )
9212    $as_echo "$ac_cs_usage"; exit ;;
9213  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9214  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9215    ac_cs_silent=: ;;
9216
9217  # This is an error.
9218  -*) as_fn_error "unrecognized option: \`$1'
9219Try \`$0 --help' for more information." ;;
9220
9221  *) as_fn_append ac_config_targets " $1"
9222     ac_need_defaults=false ;;
9223
9224  esac
9225  shift
9226done
9227
9228ac_configure_extra_args=
9229
9230if $ac_cs_silent; then
9231  exec 6>/dev/null
9232  ac_configure_extra_args="$ac_configure_extra_args --silent"
9233fi
9234
9235_ACEOF
9236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9237if \$ac_cs_recheck; then
9238  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9239  shift
9240  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9241  CONFIG_SHELL='$SHELL'
9242  export CONFIG_SHELL
9243  exec "\$@"
9244fi
9245
9246_ACEOF
9247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9248exec 5>>config.log
9249{
9250  echo
9251  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
9252@%:@@%:@ Running $as_me. @%:@@%:@
9253_ASBOX
9254  $as_echo "$ac_log"
9255} >&5
9256
9257_ACEOF
9258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9259_ACEOF
9260
9261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9262
9263# Handling of arguments.
9264for ac_config_target in $ac_config_targets
9265do
9266  case $ac_config_target in
9267    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9268    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9269    "milter-greylist.spec") CONFIG_FILES="$CONFIG_FILES milter-greylist.spec" ;;
9270
9271  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9272  esac
9273done
9274
9275
9276# If the user did not use the arguments to specify the items to instantiate,
9277# then the envvar interface is used.  Set only those that are not.
9278# We use the long form for the default assignment because of an extremely
9279# bizarre bug on SunOS 4.1.3.
9280if $ac_need_defaults; then
9281  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9282  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9283fi
9284
9285# Have a temporary directory for convenience.  Make it in the build tree
9286# simply because there is no reason against having it here, and in addition,
9287# creating and moving files from /tmp can sometimes cause problems.
9288# Hook for its removal unless debugging.
9289# Note that there is a small window in which the directory will not be cleaned:
9290# after its creation but before its name has been assigned to `$tmp'.
9291$debug ||
9292{
9293  tmp=
9294  trap 'exit_status=$?
9295  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9296' 0
9297  trap 'as_fn_exit 1' 1 2 13 15
9298}
9299# Create a (secure) tmp directory for tmp files.
9300
9301{
9302  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9303  test -n "$tmp" && test -d "$tmp"
9304}  ||
9305{
9306  tmp=./conf$$-$RANDOM
9307  (umask 077 && mkdir "$tmp")
9308} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9309
9310# Set up the scripts for CONFIG_FILES section.
9311# No need to generate them if there are no CONFIG_FILES.
9312# This happens for instance with `./config.status config.h'.
9313if test -n "$CONFIG_FILES"; then
9314
9315
9316ac_cr=`echo X | tr X '\015'`
9317# On cygwin, bash can eat \r inside `` if the user requested igncr.
9318# But we know of no other shell where ac_cr would be empty at this
9319# point, so we can use a bashism as a fallback.
9320if test "x$ac_cr" = x; then
9321  eval ac_cr=\$\'\\r\'
9322fi
9323ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9324if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9325  ac_cs_awk_cr='\r'
9326else
9327  ac_cs_awk_cr=$ac_cr
9328fi
9329
9330echo 'BEGIN {' >"$tmp/subs1.awk" &&
9331_ACEOF
9332
9333
9334{
9335  echo "cat >conf$$subs.awk <<_ACEOF" &&
9336  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9337  echo "_ACEOF"
9338} >conf$$subs.sh ||
9339  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9340ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9341ac_delim='%!_!# '
9342for ac_last_try in false false false false false :; do
9343  . ./conf$$subs.sh ||
9344    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9345
9346  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9347  if test $ac_delim_n = $ac_delim_num; then
9348    break
9349  elif $ac_last_try; then
9350    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9351  else
9352    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9353  fi
9354done
9355rm -f conf$$subs.sh
9356
9357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9358cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9359_ACEOF
9360sed -n '
9361h
9362s/^/S["/; s/!.*/"]=/
9363p
9364g
9365s/^[^!]*!//
9366:repl
9367t repl
9368s/'"$ac_delim"'$//
9369t delim
9370:nl
9371h
9372s/\(.\{148\}\)..*/\1/
9373t more1
9374s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9375p
9376n
9377b repl
9378:more1
9379s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9380p
9381g
9382s/.\{148\}//
9383t nl
9384:delim
9385h
9386s/\(.\{148\}\)..*/\1/
9387t more2
9388s/["\\]/\\&/g; s/^/"/; s/$/"/
9389p
9390b
9391:more2
9392s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9393p
9394g
9395s/.\{148\}//
9396t delim
9397' <conf$$subs.awk | sed '
9398/^[^""]/{
9399  N
9400  s/\n//
9401}
9402' >>$CONFIG_STATUS || ac_write_fail=1
9403rm -f conf$$subs.awk
9404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9405_ACAWK
9406cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9407  for (key in S) S_is_set[key] = 1
9408  FS = ""
9409
9410}
9411{
9412  line = $ 0
9413  nfields = split(line, field, "@")
9414  substed = 0
9415  len = length(field[1])
9416  for (i = 2; i < nfields; i++) {
9417    key = field[i]
9418    keylen = length(key)
9419    if (S_is_set[key]) {
9420      value = S[key]
9421      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9422      len += length(value) + length(field[++i])
9423      substed = 1
9424    } else
9425      len += 1 + keylen
9426  }
9427
9428  print line
9429}
9430
9431_ACAWK
9432_ACEOF
9433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9434if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9435  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9436else
9437  cat
9438fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9439  || as_fn_error "could not setup config files machinery" "$LINENO" 5
9440_ACEOF
9441
9442# VPATH may cause trouble with some makes, so we remove $(srcdir),
9443# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9444# trailing colons and then remove the whole line if VPATH becomes empty
9445# (actually we leave an empty line to preserve line numbers).
9446if test "x$srcdir" = x.; then
9447  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9448s/:*\$(srcdir):*/:/
9449s/:*\${srcdir}:*/:/
9450s/:*@srcdir@:*/:/
9451s/^\([^=]*=[	 ]*\):*/\1/
9452s/:*$//
9453s/^[^=]*=[	 ]*$//
9454}'
9455fi
9456
9457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9458fi # test -n "$CONFIG_FILES"
9459
9460# Set up the scripts for CONFIG_HEADERS section.
9461# No need to generate them if there are no CONFIG_HEADERS.
9462# This happens for instance with `./config.status Makefile'.
9463if test -n "$CONFIG_HEADERS"; then
9464cat >"$tmp/defines.awk" <<\_ACAWK ||
9465BEGIN {
9466_ACEOF
9467
9468# Transform confdefs.h into an awk script `defines.awk', embedded as
9469# here-document in config.status, that substitutes the proper values into
9470# config.h.in to produce config.h.
9471
9472# Create a delimiter string that does not exist in confdefs.h, to ease
9473# handling of long lines.
9474ac_delim='%!_!# '
9475for ac_last_try in false false :; do
9476  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9477  if test -z "$ac_t"; then
9478    break
9479  elif $ac_last_try; then
9480    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9481  else
9482    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9483  fi
9484done
9485
9486# For the awk script, D is an array of macro values keyed by name,
9487# likewise P contains macro parameters if any.  Preserve backslash
9488# newline sequences.
9489
9490ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9491sed -n '
9492s/.\{148\}/&'"$ac_delim"'/g
9493t rset
9494:rset
9495s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9496t def
9497d
9498:def
9499s/\\$//
9500t bsnl
9501s/["\\]/\\&/g
9502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9503D["\1"]=" \3"/p
9504s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9505d
9506:bsnl
9507s/["\\]/\\&/g
9508s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9509D["\1"]=" \3\\\\\\n"\\/p
9510t cont
9511s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9512t cont
9513d
9514:cont
9515n
9516s/.\{148\}/&'"$ac_delim"'/g
9517t clear
9518:clear
9519s/\\$//
9520t bsnlc
9521s/["\\]/\\&/g; s/^/"/; s/$/"/p
9522d
9523:bsnlc
9524s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9525b cont
9526' <confdefs.h | sed '
9527s/'"$ac_delim"'/"\\\
9528"/g' >>$CONFIG_STATUS || ac_write_fail=1
9529
9530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9531  for (key in D) D_is_set[key] = 1
9532  FS = ""
9533}
9534/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9535  line = \$ 0
9536  split(line, arg, " ")
9537  if (arg[1] == "#") {
9538    defundef = arg[2]
9539    mac1 = arg[3]
9540  } else {
9541    defundef = substr(arg[1], 2)
9542    mac1 = arg[2]
9543  }
9544  split(mac1, mac2, "(") #)
9545  macro = mac2[1]
9546  prefix = substr(line, 1, index(line, defundef) - 1)
9547  if (D_is_set[macro]) {
9548    # Preserve the white space surrounding the "#".
9549    print prefix "define", macro P[macro] D[macro]
9550    next
9551  } else {
9552    # Replace #undef with comments.  This is necessary, for example,
9553    # in the case of _POSIX_SOURCE, which is predefined and required
9554    # on some systems where configure will not decide to define it.
9555    if (defundef == "undef") {
9556      print "/*", prefix defundef, macro, "*/"
9557      next
9558    }
9559  }
9560}
9561{ print }
9562_ACAWK
9563_ACEOF
9564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9565  as_fn_error "could not setup config headers machinery" "$LINENO" 5
9566fi # test -n "$CONFIG_HEADERS"
9567
9568
9569eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
9570shift
9571for ac_tag
9572do
9573  case $ac_tag in
9574  :[FHLC]) ac_mode=$ac_tag; continue;;
9575  esac
9576  case $ac_mode$ac_tag in
9577  :[FHL]*:*);;
9578  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9579  :[FH]-) ac_tag=-:-;;
9580  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9581  esac
9582  ac_save_IFS=$IFS
9583  IFS=:
9584  set x $ac_tag
9585  IFS=$ac_save_IFS
9586  shift
9587  ac_file=$1
9588  shift
9589
9590  case $ac_mode in
9591  :L) ac_source=$1;;
9592  :[FH])
9593    ac_file_inputs=
9594    for ac_f
9595    do
9596      case $ac_f in
9597      -) ac_f="$tmp/stdin";;
9598      *) # Look for the file first in the build tree, then in the source tree
9599	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9600	 # because $ac_f cannot contain `:'.
9601	 test -f "$ac_f" ||
9602	   case $ac_f in
9603	   [\\/$]*) false;;
9604	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9605	   esac ||
9606	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9607      esac
9608      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9609      as_fn_append ac_file_inputs " '$ac_f'"
9610    done
9611
9612    # Let's still pretend it is `configure' which instantiates (i.e., don't
9613    # use $as_me), people would be surprised to read:
9614    #    /* config.h.  Generated by config.status.  */
9615    configure_input='Generated from '`
9616	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9617	`' by configure.'
9618    if test x"$ac_file" != x-; then
9619      configure_input="$ac_file.  $configure_input"
9620      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9621$as_echo "$as_me: creating $ac_file" >&6;}
9622    fi
9623    # Neutralize special characters interpreted by sed in replacement strings.
9624    case $configure_input in #(
9625    *\&* | *\|* | *\\* )
9626       ac_sed_conf_input=`$as_echo "$configure_input" |
9627       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9628    *) ac_sed_conf_input=$configure_input;;
9629    esac
9630
9631    case $ac_tag in
9632    *:-:* | *:-) cat >"$tmp/stdin" \
9633      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9634    esac
9635    ;;
9636  esac
9637
9638  ac_dir=`$as_dirname -- "$ac_file" ||
9639$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9640	 X"$ac_file" : 'X\(//\)[^/]' \| \
9641	 X"$ac_file" : 'X\(//\)$' \| \
9642	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9643$as_echo X"$ac_file" |
9644    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9645	    s//\1/
9646	    q
9647	  }
9648	  /^X\(\/\/\)[^/].*/{
9649	    s//\1/
9650	    q
9651	  }
9652	  /^X\(\/\/\)$/{
9653	    s//\1/
9654	    q
9655	  }
9656	  /^X\(\/\).*/{
9657	    s//\1/
9658	    q
9659	  }
9660	  s/.*/./; q'`
9661  as_dir="$ac_dir"; as_fn_mkdir_p
9662  ac_builddir=.
9663
9664case "$ac_dir" in
9665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9666*)
9667  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9668  # A ".." for each directory in $ac_dir_suffix.
9669  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9670  case $ac_top_builddir_sub in
9671  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9672  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9673  esac ;;
9674esac
9675ac_abs_top_builddir=$ac_pwd
9676ac_abs_builddir=$ac_pwd$ac_dir_suffix
9677# for backward compatibility:
9678ac_top_builddir=$ac_top_build_prefix
9679
9680case $srcdir in
9681  .)  # We are building in place.
9682    ac_srcdir=.
9683    ac_top_srcdir=$ac_top_builddir_sub
9684    ac_abs_top_srcdir=$ac_pwd ;;
9685  [\\/]* | ?:[\\/]* )  # Absolute name.
9686    ac_srcdir=$srcdir$ac_dir_suffix;
9687    ac_top_srcdir=$srcdir
9688    ac_abs_top_srcdir=$srcdir ;;
9689  *) # Relative name.
9690    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9691    ac_top_srcdir=$ac_top_build_prefix$srcdir
9692    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9693esac
9694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9695
9696
9697  case $ac_mode in
9698  :F)
9699  #
9700  # CONFIG_FILE
9701  #
9702
9703  case $INSTALL in
9704  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9705  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9706  esac
9707_ACEOF
9708
9709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9710# If the template does not know about datarootdir, expand it.
9711# FIXME: This hack should be removed a few years after 2.60.
9712ac_datarootdir_hack=; ac_datarootdir_seen=
9713ac_sed_dataroot='
9714/datarootdir/ {
9715  p
9716  q
9717}
9718/@datadir@/p
9719/@docdir@/p
9720/@infodir@/p
9721/@localedir@/p
9722/@mandir@/p'
9723case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9724*datarootdir*) ac_datarootdir_seen=yes;;
9725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9726  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9727$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9728_ACEOF
9729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9730  ac_datarootdir_hack='
9731  s&@datadir@&$datadir&g
9732  s&@docdir@&$docdir&g
9733  s&@infodir@&$infodir&g
9734  s&@localedir@&$localedir&g
9735  s&@mandir@&$mandir&g
9736  s&\\\${datarootdir}&$datarootdir&g' ;;
9737esac
9738_ACEOF
9739
9740# Neutralize VPATH when `$srcdir' = `.'.
9741# Shell code in configure.ac might set extrasub.
9742# FIXME: do we really want to maintain this feature?
9743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9744ac_sed_extra="$ac_vpsub
9745$extrasub
9746_ACEOF
9747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9748:t
9749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9750s|@configure_input@|$ac_sed_conf_input|;t t
9751s&@top_builddir@&$ac_top_builddir_sub&;t t
9752s&@top_build_prefix@&$ac_top_build_prefix&;t t
9753s&@srcdir@&$ac_srcdir&;t t
9754s&@abs_srcdir@&$ac_abs_srcdir&;t t
9755s&@top_srcdir@&$ac_top_srcdir&;t t
9756s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9757s&@builddir@&$ac_builddir&;t t
9758s&@abs_builddir@&$ac_abs_builddir&;t t
9759s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9760s&@INSTALL@&$ac_INSTALL&;t t
9761$ac_datarootdir_hack
9762"
9763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9764  || as_fn_error "could not create $ac_file" "$LINENO" 5
9765
9766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9767  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9768  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9769  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9770which seems to be undefined.  Please make sure it is defined." >&5
9771$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9772which seems to be undefined.  Please make sure it is defined." >&2;}
9773
9774  rm -f "$tmp/stdin"
9775  case $ac_file in
9776  -) cat "$tmp/out" && rm -f "$tmp/out";;
9777  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9778  esac \
9779  || as_fn_error "could not create $ac_file" "$LINENO" 5
9780 ;;
9781  :H)
9782  #
9783  # CONFIG_HEADER
9784  #
9785  if test x"$ac_file" != x-; then
9786    {
9787      $as_echo "/* $configure_input  */" \
9788      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9789    } >"$tmp/config.h" \
9790      || as_fn_error "could not create $ac_file" "$LINENO" 5
9791    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9792      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9793$as_echo "$as_me: $ac_file is unchanged" >&6;}
9794    else
9795      rm -f "$ac_file"
9796      mv "$tmp/config.h" "$ac_file" \
9797	|| as_fn_error "could not create $ac_file" "$LINENO" 5
9798    fi
9799  else
9800    $as_echo "/* $configure_input  */" \
9801      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9802      || as_fn_error "could not create -" "$LINENO" 5
9803  fi
9804 ;;
9805
9806
9807  esac
9808
9809done # for ac_tag
9810
9811
9812as_fn_exit 0
9813_ACEOF
9814ac_clean_files=$ac_clean_files_save
9815
9816test $ac_write_fail = 0 ||
9817  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9818
9819
9820# configure is writing to config.log, and then calls config.status.
9821# config.status does its own redirection, appending to config.log.
9822# Unfortunately, on DOS this fails, as config.log is still kept open
9823# by configure, so config.status won't be able to write to it; its
9824# output is simply discarded.  So we exec the FD to /dev/null,
9825# effectively closing config.log, so it can be properly (re)opened and
9826# appended to by config.status.  When coming back to configure, we
9827# need to make the FD available again.
9828if test "$no_create" != yes; then
9829  ac_cs_success=:
9830  ac_config_status_args=
9831  test "$silent" = yes &&
9832    ac_config_status_args="$ac_config_status_args --quiet"
9833  exec 5>/dev/null
9834  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9835  exec 5>>config.log
9836  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9837  # would make configure fail if this is the last instruction.
9838  $ac_cs_success || as_fn_exit $?
9839fi
9840if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9841  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9842$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9843fi
9844
9845