Debian Codegraph @

configure

raw ◀ ▶
1 Debian patch touch this file
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 <[email protected]>.
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
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if 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
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_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.
47 if 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 --'
51 elif (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'
54 else
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'
74 fi
75
76 # The user is always right.
77 if 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 }
83 fi
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.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
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
103 IFS=$as_save_IFS
104
105 ;;
106 esac
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.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
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.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if 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
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test 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
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
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
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
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
211 fi; }
212 IFS=$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+"$@"}
224 fi
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 [email protected] and [email protected]
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
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_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.
272 as_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 "$as_dir" as a directory, including parents if necessary.
282 as_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.
332 if (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 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # 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 $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $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 $?, using 1 if that was 0.
367 as_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
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_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.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_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
455 ECHO_C= ECHO_N= ECHO_T=
456 case `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';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (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
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
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 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_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.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 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.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='milter-greylist'
554 PACKAGE_TARNAME='milter-greylist'
555 PACKAGE_VERSION='4.6.4'
556 PACKAGE_STRING='milter-greylist 4.6.4'
557 PACKAGE_BUGREPORT='[email protected]'
558 PACKAGE_URL=''
559
560 ac_unique_file="milter-greylist.c"
561 # Factoring default headers for most tests.
562 ac_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
597 ac_subst_vars='LTLIBOBJS
598 DUMPFILE
599 CONFFILE
600 USER
601 MAKE_J1
602 LIBOBJS
603 EGREP
604 GREP
605 CPP
606 TOUCH
607 TRUE
608 SED
609 TEST
610 MV
611 RM
612 MKDEP
613 INSTALL_DATA
614 INSTALL_SCRIPT
615 INSTALL_PROGRAM
616 YFLAGS
617 YACC
618 LEXLIB
619 LEX_OUTPUT_ROOT
620 LEX
621 OBJEXT
622 EXEEXT
623 ac_ct_CC
624 CPPFLAGS
625 LDFLAGS
626 CFLAGS
627 CC
628 target_alias
629 host_alias
630 build_alias
631 LIBS
632 ECHO_T
633 ECHO_N
634 ECHO_C
635 DEFS
636 mandir
637 localedir
638 libdir
639 psdir
640 pdfdir
641 dvidir
642 htmldir
643 infodir
644 docdir
645 oldincludedir
646 includedir
647 localstatedir
648 sharedstatedir
649 sysconfdir
650 datadir
651 datarootdir
652 libexecdir
653 sbindir
654 bindir
655 program_transform_name
656 prefix
657 exec_prefix
658 PACKAGE_URL
659 PACKAGE_BUGREPORT
660 PACKAGE_STRING
661 PACKAGE_VERSION
662 PACKAGE_TARNAME
663 PACKAGE_NAME
664 PATH_SEPARATOR
665 SHELL'
666 ac_subst_files=''
667 ac_user_opts='
668 enable_option_checking
669 with_package_name
670 with_package_version
671 with_package_version_suffix
672 with_package_string
673 with_package_bugreport
674 with_package_url
675 with_db
676 with_libmilter
677 with_libpthread
678 with_libbind
679 with_openssl
680 with_openssl_static
681 with_openldap
682 with_openldap_static
683 with_libcurl
684 with_libcurl_static
685 with_libGeoIP
686 with_libmaxminddb
687 with_libdmalloc
688 with_libspf2
689 with_libspf2_static
690 with_libspf2_10
691 with_libspf_alt
692 with_libspf
693 with_libdkim
694 with_libopendkim
695 enable_parallel_make
696 enable_rpath
697 enable_stdio_hack
698 enable_drac
699 enable_p0f
700 enable_p0f3
701 enable_p0f306
702 with_p0f_src
703 enable_spamassassin
704 with_thread_safe_resolver
705 enable_dnsrbl
706 enable_mx
707 enable_postfix
708 with_user
709 with_conffile
710 with_dumpfile
711 with_delay
712 with_timeout
713 with_autowhite
714 with_drac_db
715 '
716 ac_precious_vars='build_alias
717 host_alias
718 target_alias
719 CC
720 CFLAGS
721 LDFLAGS
722 LIBS
723 CPPFLAGS
724 YACC
725 YFLAGS
726 CPP'
727
728
729 # Initialize some variables set by options.
730 ac_init_help=
731 ac_init_version=false
732 ac_unrecognized_opts=
733 ac_unrecognized_sep=
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
736 cache_file=/dev/null
737 exec_prefix=NONE
738 no_create=
739 no_recursion=
740 prefix=NONE
741 program_prefix=NONE
742 program_suffix=NONE
743 program_transform_name=s,x,x,
744 silent=
745 site=
746 srcdir=
747 verbose=
748 x_includes=NONE
749 x_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.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
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'
1112 Try \`$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
1134 done
1135
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 as_fn_error "missing argument to $ac_option"
1139 fi
1140
1141 if 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
1147 fi
1148
1149 # Check all directory arguments for consistency.
1150 for 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
1154 do
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"
1168 done
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.
1173 build=$build_alias
1174 host=$host_alias
1175 target=$target_alias
1176
1177 # FIXME: To remove some day.
1178 if 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
1186 fi
1187
1188 ac_tool_prefix=
1189 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1190
1191 test "$silent" = yes && exec 6>/dev/null
1192
1193
1194 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195 ac_ls_di=`ls -di .` &&
1196 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1197 as_fn_error "working directory cannot be determined"
1198 test "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.
1203 if 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
1233 else
1234 ac_srcdir_defaulted=no
1235 fi
1236 if 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"
1239 fi
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241 ac_abs_confdir=`(
1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1243 pwd)`
1244 # When building in place, set srcdir=.
1245 if test "$ac_abs_confdir" = "$ac_pwd"; then
1246 srcdir=.
1247 fi
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.
1251 case $srcdir in
1252 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253 esac
1254 for 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}
1259 done
1260
1261 #
1262 # Report the --help message.
1263 #
1264 if 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
1270 Usage: $0 [OPTION]... [VAR=VALUE]...
1271
1272 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273 VAR=VALUE. See below for descriptions of some of the useful variables.
1274
1275 Defaults for the options are specified in brackets.
1276
1277 Configuration:
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
1288 Installation directories:
1289 --prefix=PREFIX install architecture-independent files in PREFIX
1290 [$ac_default_prefix]
1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1292 [PREFIX]
1293
1294 By default, \`make install' will install all the files in
1295 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297 for instance \`--prefix=\$HOME'.
1298
1299 For better control, use the options below.
1300
1301 Fine 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
1325 fi
1326
1327 if 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
1333 Optional 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
1349 Optional 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
1388 Some 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 $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
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1405
1406 Report bugs to <[email protected]>.
1407 _ACEOF
1408 ac_status=$?
1409 fi
1410
1411 if 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
1419 case "$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 ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1434
1435 case $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 ;;
1448 esac
1449 ac_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
1464 fi
1465
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468 cat <<\_ACEOF
1469 milter-greylist configure 4.6.4
1470 generated by GNU Autoconf 2.65
1471
1472 Copyright (C) 2009 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1475 _ACEOF
1476 exit
1477 fi
1478
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1482
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_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"
1491 case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494 esac
1495 eval 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
1510 else
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1513
1514 ac_retval=1
1515 fi
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.$ac_ext, and return whether this succeeded.
1524 ac_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"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval 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
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
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.$ac_ext, and return whether this succeeded.
1570 ac_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"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval 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
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
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.$ac_ext, and return whether this succeeded. Assumes
1607 # that executables *can* be run.
1608 ac_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"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval 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;;
1625 esac
1626 eval 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
1633 else
1634 $as_echo "$as_me: program exited with status $ac_status" >&5
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=$ac_status
1639 fi
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.
1651 ac_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; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 else
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; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 ac_header_compiler=yes
1674 else
1675 ac_header_compiler=no
1676 fi
1677 rm -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; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_cpp "$LINENO"; then :
1689 ac_header_preproc=yes
1690 else
1691 ac_header_preproc=no
1692 fi
1693 rm -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?
1698 case $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 [email protected] ##
1719 ## ------------------------------ ##
1720 _ASBOX
1721 ) | sed "s/^/$as_me: WARNING: /" >&2
1722 ;;
1723 esac
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 eval "$3=\$ac_header_compiler"
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 fi
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.
1743 ac_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; }
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 $4
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 eval "$3=yes"
1758 else
1759 eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 fi
1763 eval 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.
1774 ac_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; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 eval "$3=no"
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 int
1787 main ()
1788 {
1789 if (sizeof ($2))
1790 return 0;
1791 ;
1792 return 0;
1793 }
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 int
1800 main ()
1801 {
1802 if (sizeof (($2)))
1803 return 0;
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809
1810 else
1811 eval "$3=yes"
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval 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
1827 ac_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; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834 else
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
1858 extern "C"
1859 #endif
1860 char $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
1865 choke me
1866 #endif
1867
1868 int
1869 main ()
1870 {
1871 return $2 ();
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"; then :
1877 eval "$3=yes"
1878 else
1879 eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext \
1882 conftest$ac_exeext conftest.$ac_ext
1883 fi
1884 eval 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.
1895 ac_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; }
1900 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $5
1906 int
1907 main ()
1908 {
1909 static $2 ac_aggr;
1910 if (ac_aggr.$3)
1911 return 0;
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$4=yes"
1918 else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $5
1922 int
1923 main ()
1924 {
1925 static $2 ac_aggr;
1926 if (sizeof ac_aggr.$3)
1927 return 0;
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$4=yes"
1934 else
1935 eval "$4=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 eval 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
1947 cat >config.log <<_ACEOF
1948 This file contains any messages produced by compilers while
1949 running configure, to aid debugging if configure makes a mistake.
1950
1951 It was created by milter-greylist $as_me 4.6.4, which was
1952 generated by GNU Autoconf 2.65. Invocation command line was
1953
1954 $ $0 $@
1955
1956 _ACEOF
1957 exec 5>>config.log
1958 {
1959 cat <<_ASUNAME
1960 ## --------- ##
1961 ## Platform. ##
1962 ## --------- ##
1963
1964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968 uname -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
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 $as_echo "PATH: $as_dir"
1989 done
1990 IFS=$as_save_IFS
1991
1992 } >&5
1993
1994 cat >&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.
2009 ac_configure_args=
2010 ac_configure_args0=
2011 ac_configure_args1=
2012 ac_must_keep_next=false
2013 for ac_pass in 1 2
2014 do
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
2048 done
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.
2057 trap '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
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2156
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2159
2160 $as_echo "/* confdefs.h */" > confdefs.h
2161
2162 # Predefined preprocessor variables.
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 _ACEOF
2183
2184 cat >>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.
2191 ac_site_file1=NONE
2192 ac_site_file2=NONE
2193 if test -n "$CONFIG_SITE"; then
2194 ac_site_file1=$CONFIG_SITE
2195 elif test "x$prefix" != xNONE; then
2196 ac_site_file1=$prefix/share/config.site
2197 ac_site_file2=$prefix/etc/config.site
2198 else
2199 ac_site_file1=$ac_default_prefix/share/config.site
2200 ac_site_file2=$ac_default_prefix/etc/config.site
2201 fi
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 do
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
2211 done
2212
2213 if 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
2224 else
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
2228 fi
2229
2230 # Check that the precious variables saved in the cache have kept the same
2231 # value.
2232 ac_cache_corrupted=false
2233 for 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
2279 done
2280 if $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
2286 fi
2287 ## -------------------- ##
2288 ## Main body of script. ##
2289 ## -------------------- ##
2290
2291 ac_ext=c
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298
2299 ac_config_headers="$ac_config_headers config.h"
2300
2301
2302 # Checks for programs.
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 if 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.
2310 set 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; }
2313 if test "${ac_cv_prog_CC+set}" = set; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
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
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2339 $as_echo "$CC" >&6; }
2340 else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345
2346 fi
2347 if 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.
2350 set 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; }
2353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
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
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377 if 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; }
2380 else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385 if test "x$ac_ct_CC" = x; then
2386 CC=""
2387 else
2388 case $cross_compiling:$ac_tool_warned in
2389 yes:)
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;}
2392 ac_tool_warned=yes ;;
2393 esac
2394 CC=$ac_ct_CC
2395 fi
2396 else
2397 CC="$ac_cv_prog_CC"
2398 fi
2399
2400 if 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.
2403 set 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; }
2406 if test "${ac_cv_prog_CC+set}" = set; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
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
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 CC=$ac_cv_prog_CC
2430 if test -n "$CC"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432 $as_echo "$CC" >&6; }
2433 else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438
2439 fi
2440 fi
2441 if test -z "$CC"; then
2442 # Extract the first word of "cc", so it can be a program name with args.
2443 set 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; }
2446 if test "${ac_cv_prog_CC+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 ac_prog_rejected=no
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
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
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 if 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
2483 fi
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if 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.
2502 set 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; }
2505 if test "${ac_cv_prog_CC+set}" = set; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
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
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 CC=$ac_cv_prog_CC
2529 if test -n "$CC"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2531 $as_echo "$CC" >&6; }
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537
2538 test -n "$CC" && break
2539 done
2540 fi
2541 if test -z "$CC"; then
2542 ac_ct_CC=$CC
2543 for ac_prog in cl.exe
2544 do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set 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; }
2549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
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
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573 if 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; }
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581
2582 test -n "$ac_ct_CC" && break
2583 done
2584
2585 if test "x$ac_ct_CC" = x; then
2586 CC=""
2587 else
2588 case $cross_compiling:$ac_tool_warned in
2589 yes:)
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;}
2592 ac_tool_warned=yes ;;
2593 esac
2594 CC=$ac_ct_CC
2595 fi
2596 fi
2597
2598 fi
2599
2600
2601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 as_fn_error "no acceptable C compiler found in \$PATH
2604 See \`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
2608 set X $ac_compile
2609 ac_compiler=$2
2610 for ac_option in --version -v -V -qversion; do
2611 { { ac_try="$ac_compiler $ac_option >&5"
2612 case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval 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; }
2629 done
2630
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2633
2634 int
2635 main ()
2636 {
2637
2638 ;
2639 return 0;
2640 }
2641 _ACEOF
2642 ac_clean_files_save=$ac_clean_files
2643 ac_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; }
2649 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650
2651 # The possible output files:
2652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653
2654 ac_rmfiles=
2655 for ac_file in $ac_files
2656 do
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
2661 done
2662 rm -f $ac_rmfiles
2663
2664 if { { ac_try="$ac_link_default"
2665 case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668 esac
2669 eval 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.
2680 for ac_file in $ac_files ''
2681 do
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
2704 done
2705 test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
2707 else
2708 ac_file=''
2709 fi
2710 if 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
2714 sed '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
2719 as_fn_error "C compiler cannot create executables
2720 See \`config.log' for more details." "$LINENO" 5; }; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723 $as_echo "yes" >&6; }
2724 fi
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; }
2729 ac_exeext=$ac_cv_exeext
2730
2731 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2732 ac_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; }
2735 if { { ac_try="$ac_link"
2736 case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739 esac
2740 eval 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'.
2750 for 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
2758 done
2759 else
2760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762 as_fn_error "cannot compute suffix of executables: cannot compile and link
2763 See \`config.log' for more details." "$LINENO" 5; }
2764 fi
2765 rm -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
2769 rm -f conftest.$ac_ext
2770 EXEEXT=$ac_cv_exeext
2771 ac_exeext=$EXEEXT
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2774 #include <stdio.h>
2775 int
2776 main ()
2777 {
2778 FILE *f = fopen ("conftest.out", "w");
2779 return ferror (f) || fclose (f) != 0;
2780
2781 ;
2782 return 0;
2783 }
2784 _ACEOF
2785 ac_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; }
2790 if test "$cross_compiling" != yes; then
2791 { { ac_try="$ac_link"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval 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;;
2806 esac
2807 eval 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;}
2820 as_fn_error "cannot run C compiled programs.
2821 If you meant to cross compile, use \`--host'.
2822 See \`config.log' for more details." "$LINENO" 5; }
2823 fi
2824 fi
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2827 $as_echo "$cross_compiling" >&6; }
2828
2829 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2830 ac_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; }
2833 if test "${ac_cv_objext+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2838
2839 int
2840 main ()
2841 {
2842
2843 ;
2844 return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.o conftest.obj
2848 if { { ac_try="$ac_compile"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval 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
2866 done
2867 else
2868 $as_echo "$as_me: failed program was:" >&5
2869 sed '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;}
2873 as_fn_error "cannot compute suffix of object files: cannot compile
2874 See \`config.log' for more details." "$LINENO" 5; }
2875 fi
2876 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2879 $as_echo "$ac_cv_objext" >&6; }
2880 OBJEXT=$ac_cv_objext
2881 ac_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; }
2884 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2889
2890 int
2891 main ()
2892 {
2893 #ifndef __GNUC__
2894 choke me
2895 #endif
2896
2897 ;
2898 return 0;
2899 }
2900 _ACEOF
2901 if ac_fn_c_try_compile "$LINENO"; then :
2902 ac_compiler_gnu=yes
2903 else
2904 ac_compiler_gnu=no
2905 fi
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2911 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912 if test $ac_compiler_gnu = yes; then
2913 GCC=yes
2914 else
2915 GCC=
2916 fi
2917 ac_test_CFLAGS=${CFLAGS+set}
2918 ac_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; }
2921 if test "${ac_cv_prog_cc_g+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923 else
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
2931 int
2932 main ()
2933 {
2934
2935 ;
2936 return 0;
2937 }
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_cv_prog_cc_g=yes
2941 else
2942 CFLAGS=""
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2945
2946 int
2947 main ()
2948 {
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 if ac_fn_c_try_compile "$LINENO"; then :
2955
2956 else
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
2962 int
2963 main ()
2964 {
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_cv_prog_cc_g=yes
2972 fi
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 fi
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 fi
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979 fi
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2981 $as_echo "$ac_cv_prog_cc_g" >&6; }
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif 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
2990 else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996 fi
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; }
2999 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 ac_cv_prog_cc_c89=no
3003 ac_save_CC=$CC
3004 cat 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. */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3014 char **p;
3015 int i;
3016 {
3017 return p[i];
3018 }
3019 static 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. */
3036 int 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'
3041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3042
3043 int test (int i, double x);
3044 struct s1 {int (*f) (int a);};
3045 struct s2 {int (*f) (double a);};
3046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047 int argc;
3048 char **argv;
3049 int
3050 main ()
3051 {
3052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3059 do
3060 CC="$ac_save_CC $ac_arg"
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_c89=$ac_arg
3063 fi
3064 rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
3066 done
3067 rm -f conftest.$ac_ext
3068 CC=$ac_save_CC
3069
3070 fi
3071 # AC_CACHE_VAL
3072 case "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; } ;;
3083 esac
3084 if test "x$ac_cv_prog_cc_c89" != xno; then :
3085
3086 fi
3087
3088 ac_ext=c
3089 ac_cpp='$CPP $CPPFLAGS'
3090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093
3094
3095 for ac_prog in flex lex
3096 do
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set 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; }
3101 if test "${ac_cv_prog_LEX+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$LEX"; then
3105 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
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
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 LEX=$ac_cv_prog_LEX
3125 if test -n "$LEX"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3127 $as_echo "$LEX" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 test -n "$LEX" && break
3135 done
3136 test -n "$LEX" || LEX=":"
3137
3138 if test "x$LEX" != "x:"; then
3139 cat >conftest.l <<_ACEOF
3140 %%
3141 a { ECHO; }
3142 b { REJECT; }
3143 c { yymore (); }
3144 d { yyless (1); }
3145 e { yyless (input () != 0); }
3146 f { unput (yytext[0]); }
3147 . { BEGIN INITIAL; }
3148 %%
3149 #ifdef YYTEXT_POINTER
3150 extern char *yytext;
3151 #endif
3152 int
3153 main (void)
3154 {
3155 return ! yylex () + ! yywrap ();
3156 }
3157 _ACEOF
3158 { { ac_try="$LEX conftest.l"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval 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; }
3171 if test "${ac_cv_prog_lex_root+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174
3175 if test -f lex.yy.c; then
3176 ac_cv_prog_lex_root=lex.yy
3177 elif test -f lexyy.c; then
3178 ac_cv_prog_lex_root=lexyy
3179 else
3180 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
3181 fi
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3184 $as_echo "$ac_cv_prog_lex_root" >&6; }
3185 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3186
3187 if 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; }
3190 if test "${ac_cv_lib_lex+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
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
3202 if ac_fn_c_try_link "$LINENO"; then :
3203 ac_cv_lib_lex=$ac_lib
3204 fi
3205 rm -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
3211 fi
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
3215 fi
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; }
3220 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3221 $as_echo_n "(cached) " >&6
3222 else
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.
3226 ac_cv_prog_lex_yytext_pointer=no
3227 ac_save_LIBS=$LIBS
3228 LIBS="$LEXLIB $ac_save_LIBS"
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231 #define YYTEXT_POINTER 1
3232 `cat $LEX_OUTPUT_ROOT.c`
3233 _ACEOF
3234 if ac_fn_c_try_link "$LINENO"; then :
3235 ac_cv_prog_lex_yytext_pointer=yes
3236 fi
3237 rm -f core conftest.err conftest.$ac_objext \
3238 conftest$ac_exeext conftest.$ac_ext
3239 LIBS=$ac_save_LIBS
3240
3241 fi
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; }
3244 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3245
3246 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3247
3248 fi
3249 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3250
3251 fi
3252 for ac_prog in 'bison -y' byacc
3253 do
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set 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; }
3258 if test "${ac_cv_prog_YACC+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$YACC"; then
3262 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
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
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 YACC=$ac_cv_prog_YACC
3282 if test -n "$YACC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3284 $as_echo "$YACC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 test -n "$YACC" && break
3292 done
3293 test -n "$YACC" || YACC="yacc"
3294
3295 ac_aux_dir=
3296 for 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
3304 done
3305 if test -z "$ac_aux_dir"; then
3306 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3307 fi
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.
3313 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3314 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3315 ac_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; }
3334 if test -z "$INSTALL"; then
3335 if test "${ac_cv_path_install+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 # Account for people who put trailing slashes in PATH elements.
3344 case $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 ;;
3382 esac
3383
3384 done
3385 IFS=$as_save_IFS
3386
3387 rm -rf conftest.one conftest.two conftest.dir
3388
3389 fi
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
3399 fi
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.
3405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3406
3407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3408
3409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3410
3411 for ac_prog in mkdep
3412 do
3413 # Extract the first word of "$ac_prog", so it can be a program name with args.
3414 set 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; }
3417 if test "${ac_cv_prog_MKDEP+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 if test -n "$MKDEP"; then
3421 ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
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
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 MKDEP=$ac_cv_prog_MKDEP
3441 if test -n "$MKDEP"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
3443 $as_echo "$MKDEP" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 test -n "$MKDEP" && break
3451 done
3452
3453 for ac_prog in rm
3454 do
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set 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; }
3459 if test "${ac_cv_prog_RM+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$RM"; then
3463 ac_cv_prog_RM="$RM" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
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
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 fi
3481 fi
3482 RM=$ac_cv_prog_RM
3483 if test -n "$RM"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3485 $as_echo "$RM" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3489 fi
3490
3491
3492 test -n "$RM" && break
3493 done
3494
3495 for ac_prog in mv
3496 do
3497 # Extract the first word of "$ac_prog", so it can be a program name with args.
3498 set 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; }
3501 if test "${ac_cv_prog_MV+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test -n "$MV"; then
3505 ac_cv_prog_MV="$MV" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
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
3518 done
3519 done
3520 IFS=$as_save_IFS
3521
3522 fi
3523 fi
3524 MV=$ac_cv_prog_MV
3525 if test -n "$MV"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3527 $as_echo "$MV" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 fi
3532
3533
3534 test -n "$MV" && break
3535 done
3536
3537 for ac_prog in test
3538 do
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540 set 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; }
3543 if test "${ac_cv_prog_TEST+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$TEST"; then
3547 ac_cv_prog_TEST="$TEST" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
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
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 TEST=$ac_cv_prog_TEST
3567 if test -n "$TEST"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST" >&5
3569 $as_echo "$TEST" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 fi
3574
3575
3576 test -n "$TEST" && break
3577 done
3578
3579 for ac_prog in sed
3580 do
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set 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; }
3585 if test "${ac_cv_prog_SED+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 if test -n "$SED"; then
3589 ac_cv_prog_SED="$SED" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
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
3602 done
3603 done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 SED=$ac_cv_prog_SED
3609 if test -n "$SED"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3611 $as_echo "$SED" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618 test -n "$SED" && break
3619 done
3620
3621 for ac_prog in true
3622 do
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set 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; }
3627 if test "${ac_cv_prog_TRUE+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if test -n "$TRUE"; then
3631 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
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
3644 done
3645 done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 TRUE=$ac_cv_prog_TRUE
3651 if test -n "$TRUE"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
3653 $as_echo "$TRUE" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 test -n "$TRUE" && break
3661 done
3662
3663 for ac_prog in touch
3664 do
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666 set 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; }
3669 if test "${ac_cv_prog_TOUCH+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -n "$TOUCH"; then
3673 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
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
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 TOUCH=$ac_cv_prog_TOUCH
3693 if test -n "$TOUCH"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
3695 $as_echo "$TOUCH" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 test -n "$TOUCH" && break
3703 done
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.
3716 if 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
3725 fi
3726
3727
3728
3729 # Check whether --with-package-version was given.
3730 if 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
3739 fi
3740
3741
3742 PACKAGE_VERSION_UPSTREAM="$PACKAGE_VERSION"
3743
3744 # Check whether --with-package-version-suffix was given.
3745 if 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
3756 fi
3757
3758
3759
3760 # Check whether --with-package-string was given.
3761 if 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
3768 fi
3769
3770
3771
3772 # Check whether --with-package-bugreport was given.
3773 if 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
3780 fi
3781
3782
3783
3784 # Check whether --with-package-url was given.
3785 if 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
3792 fi
3793
3794
3795
3796
3797 if test x"$_FIX_PACKAGE_NAME" = xy; then
3798 $as_echo "#ifdef PACKAGE_NAME
3799 #undef PACKAGE_NAME
3800 #endif" >>confdefs.h
3801
3802 cat >>confdefs.h <<_ACEOF
3803 #define PACKAGE_NAME "$PACKAGE_NAME"
3804 _ACEOF
3805
3806 fi
3807
3808 if test x"$_FIX_PACKAGE_VERSION" = xy; then
3809 $as_echo "#ifdef PACKAGE_VERSION
3810 #undef PACKAGE_VERSION
3811 #endif" >>confdefs.h
3812
3813 cat >>confdefs.h <<_ACEOF
3814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3815 _ACEOF
3816
3817 fi
3818 if test x"$_FIX_PACKAGE_STRING" = xy; then
3819 $as_echo "#ifdef PACKAGE_STRING
3820 #undef PACKAGE_STRING
3821 #endif" >>confdefs.h
3822
3823 cat >>confdefs.h <<_ACEOF
3824 #define PACKAGE_STRING "$PACKAGE_STRING"
3825 _ACEOF
3826
3827 fi
3828 if test x"$_FIX_PACKAGE_URL" = xy; then
3829 $as_echo "#ifdef PACKAGE_URL
3830 #undef PACKAGE_URL
3831 #endif" >>confdefs.h
3832
3833 cat >>confdefs.h <<_ACEOF
3834 #define PACKAGE_URL "$PACKAGE_URL"
3835 _ACEOF
3836
3837 fi
3838 if test x"$_FIX_PACKAGE_BUGREPORT" = xy; then
3839 $as_echo "#ifdef PACKAGE_BUGREPORT
3840 #undef PACKAGE_BUGREPORT
3841 #endif" >>confdefs.h
3842
3843 cat >>confdefs.h <<_ACEOF
3844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3845 _ACEOF
3846
3847 fi
3848
3849
3850 cat >>confdefs.h <<_ACEOF
3851 #define PACKAGE_VERSION_UPSTREAM "$PACKAGE_VERSION_UPSTREAM"
3852 _ACEOF
3853
3854
3855 cat >>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; }
3865 SAVEDCFLAGS=$CFLAGS
3866 CFLAGS=$CFLAGS" -Wall"
3867 wall="no"
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_link "$LINENO"; then :
3880 wall="yes"; SAVEDCFLAGS=$CFLAGS; efl=$efl" -Wall"
3881 fi
3882 rm -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; }
3886 CFLAGS=$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; }
3891 SAVEDCFLAGS=$CFLAGS
3892 CFLAGS=$CFLAGS" -Werror"
3893 werror="no"
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896
3897 int
3898 main ()
3899 {
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 if ac_fn_c_try_link "$LINENO"; then :
3906 Werror="yes"; efl=$efl" -Werror"
3907 fi
3908 rm -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; }
3912 CFLAGS=$SAVEDCFLAGS
3913
3914 NORPSAVEDLDFLAGS=$LDFLAGS
3915
3916 # Any linker will probably accept -L
3917 rpath="-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; }
3922 SAVEDLDFLAGS=$LDFLAGS
3923 LDFLAGS=$LDFLAGS" -Wl,-R=/"
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926
3927 int
3928 main ()
3929 {
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_link "$LINENO"; then :
3936 rpath="-R"; ldrpath=yes
3937 else
3938 ldrpath=no
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext \
3941 conftest$ac_exeext conftest.$ac_ext
3942 LDFLAGS=$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; }
3949 SAVEDLDFLAGS=$LDFLAGS
3950 LDFLAGS=$LDFLAGS" -Wl,--rpath=/"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953
3954 int
3955 main ()
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_c_try_link "$LINENO"; then :
3963 rpath="--rpath="; ldrpath=yes
3964 else
3965 ldrpath=no
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext \
3968 conftest$ac_exeext conftest.$ac_ext
3969 LDFLAGS=$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.
3976 if 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"
3979 fi
3980
3981
3982 # Check whether --with-libmilter was given.
3983 if 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"
3986 fi
3987
3988
3989 # Check whether --with-libpthread was given.
3990 if 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"
3993 fi
3994
3995
3996 # Which BIND resolver to use?..
3997 use_libbind=no
3998 SAVEDLDFLAGS=$LDFLAGS
3999 SAVEDCFLAGS=$CFLAGS
4000 SAVEDLIBS=$LIBS
4001
4002 # Check whether --with-libbind was given.
4003 if 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; }
4008 if test "${ac_cv_lib_bind_bind9_getaddresses+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 ac_check_lib_save_LIBS=$LIBS
4012 LIBS="-lbind $LIBS"
4013 cat 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
4020 extern "C"
4021 #endif
4022 char bind9_getaddresses ();
4023 int
4024 main ()
4025 {
4026 return bind9_getaddresses ();
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 if ac_fn_c_try_link "$LINENO"; then :
4032 ac_cv_lib_bind_bind9_getaddresses=yes
4033 else
4034 ac_cv_lib_bind_bind9_getaddresses=no
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext \
4037 conftest$ac_exeext conftest.$ac_ext
4038 LIBS=$ac_check_lib_save_LIBS
4039 fi
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; }
4042 if 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
4049 else
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; }
4052 if test "${ac_cv_lib_bind9_bind9_getaddresses+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 ac_check_lib_save_LIBS=$LIBS
4056 LIBS="-lbind9 $LIBS"
4057 cat 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
4064 extern "C"
4065 #endif
4066 char bind9_getaddresses ();
4067 int
4068 main ()
4069 {
4070 return bind9_getaddresses ();
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 if ac_fn_c_try_link "$LINENO"; then :
4076 ac_cv_lib_bind9_bind9_getaddresses=yes
4077 else
4078 ac_cv_lib_bind9_bind9_getaddresses=no
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext \
4081 conftest$ac_exeext conftest.$ac_ext
4082 LIBS=$ac_check_lib_save_LIBS
4083 fi
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; }
4086 if 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
4093 else
4094 echo "neither -lbind nor -lbind9 worked. check config.log for details"
4095 exit 1;
4096 fi
4097
4098
4099 fi
4100
4101
4102 fi
4103
4104 LDFLAGS=$SAVEDLDFLAGS
4105 CFLAGS=$SAVEDCFLAGS
4106 LIBS=$SAVEDLIBS
4107
4108 # OpenSSL, may be needed by itself and for curl, ldap, dkim/opendkim, ...
4109 dir_openssl=""
4110 LDFLAGS_openssl=""
4111 LIBS_openssl_ssl=""
4112 LIBS_openssl_crypto=""
4113 LIBS_openssl_ssh2=""
4114 SAVEDLDFLAGS=$LDFLAGS
4115 SAVEDCFLAGS=$CFLAGS
4116 SAVEDLIBS=$LIBS
4117
4118 # Check whether --with-openssl was given.
4119 if 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; }
4142 if test "${ac_cv_lib_c__lssh2_main+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 ac_check_lib_save_LIBS=$LIBS
4146 LIBS="-lc -lssh2 $LIBS"
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150
4151 int
4152 main ()
4153 {
4154 return main ();
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_link "$LINENO"; then :
4160 ac_cv_lib_c__lssh2_main=yes
4161 else
4162 ac_cv_lib_c__lssh2_main=no
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext \
4165 conftest$ac_exeext conftest.$ac_ext
4166 LIBS=$ac_check_lib_save_LIBS
4167 fi
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; }
4170 if 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"
4175 fi
4176
4177
4178 fi
4179
4180 LDFLAGS=$SAVEDLDFLAGS
4181 CFLAGS=$SAVEDCFLAGS
4182 LIBS=$SAVEDLIBS
4183
4184 SAVEDLDFLAGS=$LDFLAGS
4185 SAVEDCFLAGS=$CFLAGS
4186 SAVEDLIBS=$LIBS
4187
4188 # Check whether --with-openssl-static was given.
4189 if 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; }
4222 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 ac_check_lib_save_LIBS=$LIBS
4226 LIBS="-lc $_lib_ssh2 $LIBS"
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229
4230
4231 int
4232 main ()
4233 {
4234 return main ();
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_link "$LINENO"; then :
4240 eval "$as_ac_Lib=yes"
4241 else
4242 eval "$as_ac_Lib=no"
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext \
4245 conftest$ac_exeext conftest.$ac_ext
4246 LIBS=$ac_check_lib_save_LIBS
4247 fi
4248 eval ac_res=\$$as_ac_Lib
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4250 $as_echo "$ac_res" >&6; }
4251 eval 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"
4257 fi
4258
4259 unset _lib_ssh2
4260
4261 fi
4262
4263 LDFLAGS=$SAVEDLDFLAGS
4264 CFLAGS=$SAVEDCFLAGS
4265 LIBS=$SAVEDLIBS
4266
4267 # OpenLDAP may be used instead of curl to access multiple
4268 # (failover) LDAP catalog servers
4269 dir_openldap=""
4270 LDFLAGS_openldap=""
4271 LIBS_openldap=""
4272 SAVEDLDFLAGS=$LDFLAGS
4273 SAVEDCFLAGS=$CFLAGS
4274 SAVEDLIBS=$LIBS
4275
4276 # Check whether --with-openldap was given.
4277 if 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; }
4305 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 ac_check_lib_save_LIBS=$LIBS
4309 LIBS="-lc $_ldap_LIBS $LIBS"
4310 cat 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
4317 extern "C"
4318 #endif
4319 char ldap_search ();
4320 int
4321 main ()
4322 {
4323 return ldap_search ();
4324 ;
4325 return 0;
4326 }
4327 _ACEOF
4328 if ac_fn_c_try_link "$LINENO"; then :
4329 eval "$as_ac_Lib=yes"
4330 else
4331 eval "$as_ac_Lib=no"
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext \
4334 conftest$ac_exeext conftest.$ac_ext
4335 LIBS=$ac_check_lib_save_LIBS
4336 fi
4337 eval ac_res=\$$as_ac_Lib
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4339 $as_echo "$ac_res" >&6; }
4340 eval 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
4346 else
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; }
4351 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 ac_check_lib_save_LIBS=$LIBS
4355 LIBS="-lc $_ldap_LIBS $LIBS"
4356 cat 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
4363 extern "C"
4364 #endif
4365 char ldap_search ();
4366 int
4367 main ()
4368 {
4369 return ldap_search ();
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_link "$LINENO"; then :
4375 eval "$as_ac_Lib=yes"
4376 else
4377 eval "$as_ac_Lib=no"
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext \
4380 conftest$ac_exeext conftest.$ac_ext
4381 LIBS=$ac_check_lib_save_LIBS
4382 fi
4383 eval ac_res=\$$as_ac_Lib
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4385 $as_echo "$ac_res" >&6; }
4386 eval 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
4392 else
4393 echo "Error: no OpenLDAP library names located!"; exit 1;
4394 fi
4395
4396
4397 fi
4398
4399
4400 fi
4401
4402 LDFLAGS=$SAVEDLDFLAGS
4403 CFLAGS=$SAVEDCFLAGS
4404 LIBS=$SAVEDLIBS
4405
4406 # Try to configure for openldap-static
4407 SAVEDLDFLAGS=$LDFLAGS
4408 SAVEDCFLAGS=$CFLAGS
4409 SAVEDLIBS=$LIBS
4410
4411 # Check whether --with-openldap-static was given.
4412 if 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; }
4453 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 ac_check_lib_save_LIBS=$LIBS
4457 LIBS="-lc -l$L $LIBS"
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460
4461
4462 int
4463 main ()
4464 {
4465 return main ();
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 if ac_fn_c_try_link "$LINENO"; then :
4471 eval "$as_ac_Lib=yes"
4472 else
4473 eval "$as_ac_Lib=no"
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4477 LIBS=$ac_check_lib_save_LIBS
4478 fi
4479 eval ac_res=\$$as_ac_Lib
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4481 $as_echo "$ac_res" >&6; }
4482 eval as_val=\$$as_ac_Lib
4483 if test "x$as_val" = x""yes; then :
4484 LIBS_openldap_add="-l$L $LIBS_openldap_add"
4485 fi
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; }
4493 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 ac_check_lib_save_LIBS=$LIBS
4497 LIBS="-lc $_ldap_LIBS $LIBS"
4498 cat 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
4505 extern "C"
4506 #endif
4507 char ldap_search ();
4508 int
4509 main ()
4510 {
4511 return ldap_search ();
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_c_try_link "$LINENO"; then :
4517 eval "$as_ac_Lib=yes"
4518 else
4519 eval "$as_ac_Lib=no"
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
4523 LIBS=$ac_check_lib_save_LIBS
4524 fi
4525 eval ac_res=\$$as_ac_Lib
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4527 $as_echo "$ac_res" >&6; }
4528 eval as_val=\$$as_ac_Lib
4529 if test "x$as_val" = x""yes; then :
4530
4531 SAVEDLIBS="$_ldap_LIBS $LIBS"
4532
4533 else
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; }
4538 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 ac_check_lib_save_LIBS=$LIBS
4542 LIBS="-lc $_ldap_LIBS $LIBS"
4543 cat 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
4550 extern "C"
4551 #endif
4552 char ldap_search ();
4553 int
4554 main ()
4555 {
4556 return ldap_search ();
4557 ;
4558 return 0;
4559 }
4560 _ACEOF
4561 if ac_fn_c_try_link "$LINENO"; then :
4562 eval "$as_ac_Lib=yes"
4563 else
4564 eval "$as_ac_Lib=no"
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext \
4567 conftest$ac_exeext conftest.$ac_ext
4568 LIBS=$ac_check_lib_save_LIBS
4569 fi
4570 eval ac_res=\$$as_ac_Lib
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4572 $as_echo "$ac_res" >&6; }
4573 eval as_val=\$$as_ac_Lib
4574 if test "x$as_val" = x""yes; then :
4575
4576 SAVEDLIBS="$_ldap_LIBS $LIBS"
4577
4578 else
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; }
4583 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 ac_check_lib_save_LIBS=$LIBS
4587 LIBS="-lc $_ldap_LIBS $LIBS"
4588 cat 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
4595 extern "C"
4596 #endif
4597 char ldap_search ();
4598 int
4599 main ()
4600 {
4601 return ldap_search ();
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_c_try_link "$LINENO"; then :
4607 eval "$as_ac_Lib=yes"
4608 else
4609 eval "$as_ac_Lib=no"
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext \
4612 conftest$ac_exeext conftest.$ac_ext
4613 LIBS=$ac_check_lib_save_LIBS
4614 fi
4615 eval ac_res=\$$as_ac_Lib
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4617 $as_echo "$ac_res" >&6; }
4618 eval as_val=\$$as_ac_Lib
4619 if test "x$as_val" = x""yes; then :
4620
4621 SAVEDLIBS="$_ldap_LIBS $LIBS"
4622
4623 else
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; }
4628 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_check_lib_save_LIBS=$LIBS
4632 LIBS="-lc $_ldap_LIBS $LIBS"
4633 cat 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
4640 extern "C"
4641 #endif
4642 char ldap_search ();
4643 int
4644 main ()
4645 {
4646 return ldap_search ();
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_link "$LINENO"; then :
4652 eval "$as_ac_Lib=yes"
4653 else
4654 eval "$as_ac_Lib=no"
4655 fi
4656 rm -f core conftest.err conftest.$ac_objext \
4657 conftest$ac_exeext conftest.$ac_ext
4658 LIBS=$ac_check_lib_save_LIBS
4659 fi
4660 eval ac_res=\$$as_ac_Lib
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4662 $as_echo "$ac_res" >&6; }
4663 eval as_val=\$$as_ac_Lib
4664 if test "x$as_val" = x""yes; then :
4665
4666 SAVEDLIBS="$_ldap_LIBS $LIBS"
4667
4668 else
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; }
4673 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 ac_check_lib_save_LIBS=$LIBS
4677 LIBS="-lc $_ldap_LIBS $LIBS"
4678 cat 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
4685 extern "C"
4686 #endif
4687 char ldap_search ();
4688 int
4689 main ()
4690 {
4691 return ldap_search ();
4692 ;
4693 return 0;
4694 }
4695 _ACEOF
4696 if ac_fn_c_try_link "$LINENO"; then :
4697 eval "$as_ac_Lib=yes"
4698 else
4699 eval "$as_ac_Lib=no"
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext \
4702 conftest$ac_exeext conftest.$ac_ext
4703 LIBS=$ac_check_lib_save_LIBS
4704 fi
4705 eval ac_res=\$$as_ac_Lib
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4707 $as_echo "$ac_res" >&6; }
4708 eval as_val=\$$as_ac_Lib
4709 if test "x$as_val" = x""yes; then :
4710
4711 SAVEDLIBS="$_ldap_LIBS $LIBS"
4712
4713 else
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;
4720 fi
4721
4722
4723 fi
4724
4725
4726 fi
4727
4728
4729 fi
4730
4731
4732 fi
4733
4734
4735 fi
4736
4737 LDFLAGS=$SAVEDLDFLAGS
4738 CFLAGS=$SAVEDCFLAGS
4739 LIBS=$SAVEDLIBS
4740
4741 use_libcurl=no
4742
4743 # Check whether --with-libcurl was given.
4744 if 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
4749 fi
4750
4751
4752 # Try to configure for libcurl-static
4753 SAVEDLDFLAGS=$LDFLAGS
4754 SAVEDCFLAGS=$CFLAGS
4755 SAVEDLIBS=$LIBS
4756
4757 # Check whether --with-libcurl-static was given.
4758 if 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; }
4764 if test "${ac_cv_lib_idn_main+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 ac_check_lib_save_LIBS=$LIBS
4768 LIBS="-lidn $LIBS"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771
4772
4773 int
4774 main ()
4775 {
4776 return main ();
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_link "$LINENO"; then :
4782 ac_cv_lib_idn_main=yes
4783 else
4784 ac_cv_lib_idn_main=no
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext \
4787 conftest$ac_exeext conftest.$ac_ext
4788 LIBS=$ac_check_lib_save_LIBS
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_main" >&5
4791 $as_echo "$ac_cv_lib_idn_main" >&6; }
4792 if 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"
4796 fi
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; }
4802 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_check_lib_save_LIBS=$LIBS
4806 LIBS="-lcurl $_lib_idn $LIBS"
4807 cat 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
4814 extern "C"
4815 #endif
4816 char Curl_connect ();
4817 int
4818 main ()
4819 {
4820 return Curl_connect ();
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 if ac_fn_c_try_link "$LINENO"; then :
4826 eval "$as_ac_Lib=yes"
4827 else
4828 eval "$as_ac_Lib=no"
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext \
4831 conftest$ac_exeext conftest.$ac_ext
4832 LIBS=$ac_check_lib_save_LIBS
4833 fi
4834 eval ac_res=\$$as_ac_Lib
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4836 $as_echo "$ac_res" >&6; }
4837 eval 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
4845 else
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; }
4849 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 ac_check_lib_save_LIBS=$LIBS
4853 LIBS="-lcurl $_lib_idn $LIBS_openssl_ssh2 $LIBS"
4854 cat 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
4861 extern "C"
4862 #endif
4863 char Curl_connect ();
4864 int
4865 main ()
4866 {
4867 return Curl_connect ();
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 if ac_fn_c_try_link "$LINENO"; then :
4873 eval "$as_ac_Lib=yes"
4874 else
4875 eval "$as_ac_Lib=no"
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext \
4878 conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4880 fi
4881 eval ac_res=\$$as_ac_Lib
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4883 $as_echo "$ac_res" >&6; }
4884 eval 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
4892 else
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;
4897 fi
4898
4899
4900 fi
4901
4902
4903 fi
4904
4905 LDFLAGS=$SAVEDLDFLAGS
4906 CFLAGS=$SAVEDCFLAGS
4907 LIBS=$SAVEDLIBS
4908
4909
4910 # Check whether --with-libGeoIP was given.
4911 if 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"
4916 fi
4917
4918
4919 # Check whether --with-libmaxminddb was given.
4920 if 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
4929 fi
4930
4931
4932 # Check whether --with-libdmalloc was given.
4933 if 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"
4937 fi
4938
4939
4940 # Checks for header files.
4941 ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_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.
4949 if test -n "$CPP" && test -d "$CPP"; then
4950 CPP=
4951 fi
4952 if test -z "$CPP"; then
4953 if test "${ac_cv_prog_CPP+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
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
4960 for ac_c_preproc_warn_flag in '' yes
4961 do
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
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4978
4979 else
4980 # Broken: fails on valid input.
4981 continue
4982 fi
4983 rm -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
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992 # Broken: success on invalid input.
4993 continue
4994 else
4995 # Passes both tests.
4996 ac_preproc_ok=:
4997 break
4998 fi
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 done
5002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003 rm -f conftest.err conftest.$ac_ext
5004 if $ac_preproc_ok; then :
5005 break
5006 fi
5007
5008 done
5009 ac_cv_prog_CPP=$CPP
5010
5011 fi
5012 CPP=$ac_cv_prog_CPP
5013 else
5014 ac_cv_prog_CPP=$CPP
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5017 $as_echo "$CPP" >&6; }
5018 ac_preproc_ok=false
5019 for ac_c_preproc_warn_flag in '' yes
5020 do
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
5036 if ac_fn_c_try_cpp "$LINENO"; then :
5037
5038 else
5039 # Broken: fails on valid input.
5040 continue
5041 fi
5042 rm -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
5050 if ac_fn_c_try_cpp "$LINENO"; then :
5051 # Broken: success on invalid input.
5052 continue
5053 else
5054 # Passes both tests.
5055 ac_preproc_ok=:
5056 break
5057 fi
5058 rm -f conftest.err conftest.$ac_ext
5059
5060 done
5061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062 rm -f conftest.err conftest.$ac_ext
5063 if $ac_preproc_ok; then :
5064
5065 else
5066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5068 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5069 See \`config.log' for more details." "$LINENO" 5; }
5070 fi
5071
5072 ac_ext=c
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_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; }
5081 if test "${ac_cv_path_GREP+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5083 else
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
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 do
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
5098 case `"$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;;
5122 esac
5123
5124 $ac_path_GREP_found && break 3
5125 done
5126 done
5127 done
5128 IFS=$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
5132 else
5133 ac_cv_path_GREP=$GREP
5134 fi
5135
5136 fi
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; }
5144 if test "${ac_cv_path_EGREP+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
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
5154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5155 do
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
5164 case `"$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;;
5188 esac
5189
5190 $ac_path_EGREP_found && break 3
5191 done
5192 done
5193 done
5194 IFS=$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
5198 else
5199 ac_cv_path_EGREP=$EGREP
5200 fi
5201
5202 fi
5203 fi
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; }
5211 if test "${ac_cv_header_stdc+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213 else
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
5221 int
5222 main ()
5223 {
5224
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_compile "$LINENO"; then :
5230 ac_cv_header_stdc=yes
5231 else
5232 ac_cv_header_stdc=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235
5236 if 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
5243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5244 $EGREP "memchr" >/dev/null 2>&1; then :
5245
5246 else
5247 ac_cv_header_stdc=no
5248 fi
5249 rm -f conftest*
5250
5251 fi
5252
5253 if 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
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "free" >/dev/null 2>&1; then :
5262
5263 else
5264 ac_cv_header_stdc=no
5265 fi
5266 rm -f conftest*
5267
5268 fi
5269
5270 if 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 :
5274 else
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)))
5291 int
5292 main ()
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
5302 if ac_fn_c_try_run "$LINENO"; then :
5303
5304 else
5305 ac_cv_header_stdc=no
5306 fi
5307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5308 conftest.$ac_objext conftest.beam conftest.$ac_ext
5309 fi
5310
5311 fi
5312 fi
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5314 $as_echo "$ac_cv_header_stdc" >&6; }
5315 if test $ac_cv_header_stdc = yes; then
5316
5317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5318
5319 fi
5320
5321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5323 inttypes.h stdint.h unistd.h
5324 do :
5325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5326 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5327 "
5328 eval 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
5334 fi
5335
5336 done
5337
5338
5339 for 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
5340 do :
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5343 eval 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
5349 fi
5350
5351 done
5352
5353
5354 # Checks for typedefs, structures, and compiler characteristics.
5355 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5356 if test "x$ac_cv_type_pid_t" = x""yes; then :
5357
5358 else
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define pid_t int
5362 _ACEOF
5363
5364 fi
5365
5366 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5367 if test "x$ac_cv_type_size_t" = x""yes; then :
5368
5369 else
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define size_t unsigned int
5373 _ACEOF
5374
5375 fi
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; }
5379 if test "${ac_cv_header_time+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
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
5388 int
5389 main ()
5390 {
5391 if ((struct tm *) 0)
5392 return 0;
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_header_time=yes
5399 else
5400 ac_cv_header_time=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5405 $as_echo "$ac_cv_header_time" >&6; }
5406 if test $ac_cv_header_time = yes; then
5407
5408 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5409
5410 fi
5411
5412
5413 # Do we have res_state type? Tru64 UNIX doesn't have...
5414 ac_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 "
5421 if test "x$ac_cv_type_res_state" = x""yes; then :
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define HAVE_RES_STATE 1
5425 _ACEOF
5426
5427
5428 fi
5429
5430
5431 # Do we need -lpthread with -lbind?
5432 if 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
5440 int
5441 main ()
5442 {
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"; then :
5449
5450 else
5451
5452 LIBS="-lpthread $LIBS"
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455
5456 int
5457 main ()
5458 {
5459
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_link "$LINENO"; then :
5465 lbind_needs_lpthread=yes
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext \
5468 conftest$ac_exeext conftest.$ac_ext;
5469
5470 fi
5471 rm -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
5479 fi
5480
5481 # Do we need -lcrypto with -lcurl?
5482 if 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;}
5491 as_fn_error "cannot run test program while cross compiling
5492 See \`config.log' for more details." "$LINENO" 5; }
5493 else
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496
5497 int
5498 main ()
5499 {
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_run "$LINENO"; then :
5506
5507 else
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;}
5513 as_fn_error "cannot run test program while cross compiling
5514 See \`config.log' for more details." "$LINENO" 5; }
5515 else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518
5519 int
5520 main ()
5521 {
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_c_try_run "$LINENO"; then :
5528 lcurl_needs_lcrypto=yes
5529 SAVEDLIBS=$LIBS
5530 else
5531 echo "Required libcrypto not found for libcurl.";
5532 echo " Use --with-openssl=DIR to provide the OpenSSL installation root.";
5533 exit 1;
5534 fi
5535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5536 conftest.$ac_objext conftest.beam conftest.$ac_ext
5537 fi
5538
5539
5540 fi
5541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5542 conftest.$ac_objext conftest.beam conftest.$ac_ext
5543 fi
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
5553 fi
5554
5555 # Checks for library functions.
5556 for ac_header in vfork.h
5557 do :
5558 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5559 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5560 cat >>confdefs.h <<_ACEOF
5561 #define HAVE_VFORK_H 1
5562 _ACEOF
5563
5564 fi
5565
5566 done
5567
5568 for ac_func in fork vfork
5569 do :
5570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5572 eval 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
5578 fi
5579 done
5580
5581 if 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; }
5584 if test "${ac_cv_func_fork_works+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test "$cross_compiling" = yes; then :
5588 ac_cv_func_fork_works=cross
5589 else
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 $ac_includes_default
5593 int
5594 main ()
5595 {
5596
5597 /* By Ruediger Kuhlmann. */
5598 return fork () < 0;
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_run "$LINENO"; then :
5605 ac_cv_func_fork_works=yes
5606 else
5607 ac_cv_func_fork_works=no
5608 fi
5609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5610 conftest.$ac_objext conftest.beam conftest.$ac_ext
5611 fi
5612
5613 fi
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
5617 else
5618 ac_cv_func_fork_works=$ac_cv_func_fork
5619 fi
5620 if 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;}
5632 fi
5633 ac_cv_func_vfork_works=$ac_cv_func_vfork
5634 if 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; }
5637 if test "${ac_cv_func_vfork_works+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test "$cross_compiling" = yes; then :
5641 ac_cv_func_vfork_works=cross
5642 else
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. */
5657 static void
5658 #ifdef __cplusplus
5659 sparc_address_test (int arg)
5660 # else
5661 sparc_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
5679 int
5680 main ()
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
5735 if ac_fn_c_try_run "$LINENO"; then :
5736 ac_cv_func_vfork_works=yes
5737 else
5738 ac_cv_func_vfork_works=no
5739 fi
5740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5741 conftest.$ac_objext conftest.beam conftest.$ac_ext
5742 fi
5743
5744 fi
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
5748 fi;
5749 if 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;}
5753 fi
5754
5755 if test "x$ac_cv_func_vfork_works" = xyes; then
5756
5757 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5758
5759 else
5760
5761 $as_echo "#define vfork fork" >>confdefs.h
5762
5763 fi
5764 if test "x$ac_cv_func_fork_works" = xyes; then
5765
5766 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5767
5768 fi
5769
5770 for ac_func in strftime
5771 do :
5772 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
5773 if test "x$ac_cv_func_strftime" = x""yes; then :
5774 cat >>confdefs.h <<_ACEOF
5775 #define HAVE_STRFTIME 1
5776 _ACEOF
5777
5778 else
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; }
5782 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 ac_check_lib_save_LIBS=$LIBS
5786 LIBS="-lintl $LIBS"
5787 cat 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
5794 extern "C"
5795 #endif
5796 char strftime ();
5797 int
5798 main ()
5799 {
5800 return strftime ();
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 ac_cv_lib_intl_strftime=yes
5807 else
5808 ac_cv_lib_intl_strftime=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5812 LIBS=$ac_check_lib_save_LIBS
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
5815 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
5816 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
5817 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
5818
5819 LIBS="-lintl $LIBS"
5820 fi
5821
5822 fi
5823 done
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5826 $as_echo_n "checking for working memcmp... " >&6; }
5827 if test "${ac_cv_func_memcmp_working+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test "$cross_compiling" = yes; then :
5831 ac_cv_func_memcmp_working=no
5832 else
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 $ac_includes_default
5836 int
5837 main ()
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
5868 if ac_fn_c_try_run "$LINENO"; then :
5869 ac_cv_func_memcmp_working=yes
5870 else
5871 ac_cv_func_memcmp_working=no
5872 fi
5873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5874 conftest.$ac_objext conftest.beam conftest.$ac_ext
5875 fi
5876
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5879 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5880 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5881 *" memcmp.$ac_objext "* ) ;;
5882 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5883 ;;
5884 esac
5885
5886
5887 for ac_header in sys/select.h sys/socket.h
5888 do :
5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5891 eval 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
5897 fi
5898
5899 done
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; }
5903 if test "${ac_cv_func_select_args+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
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
5919 int
5920 main ()
5921 {
5922 extern int select ($ac_arg1,
5923 $ac_arg234, $ac_arg234, $ac_arg234,
5924 $ac_arg5);
5925 ;
5926 return 0;
5927 }
5928 _ACEOF
5929 if ac_fn_c_try_compile "$LINENO"; then :
5930 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 done
5934 done
5935 done
5936 # Provide a safe default value.
5937 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5941 $as_echo "$ac_cv_func_select_args" >&6; }
5942 ac_save_IFS=$IFS; IFS=','
5943 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5944 IFS=$ac_save_IFS
5945 shift
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define SELECT_TYPE_ARG1 $1
5949 _ACEOF
5950
5951
5952 cat >>confdefs.h <<_ACEOF
5953 #define SELECT_TYPE_ARG234 ($2)
5954 _ACEOF
5955
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define SELECT_TYPE_ARG5 ($3)
5959 _ACEOF
5960
5961 rm -f conftest*
5962
5963 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 ac_cv_func_setvbuf_reversed=no
5967 fi
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; }
5972 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 rm -f conftest.sym conftest.file
5976 echo >conftest.file
5977 if 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
5980 else
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 $ac_includes_default
5984 int
5985 main ()
5986 {
5987 struct 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
5996 if ac_fn_c_try_run "$LINENO"; then :
5997 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5998 else
5999 ac_cv_func_lstat_dereferences_slashed_symlink=no
6000 fi
6001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6002 conftest.$ac_objext conftest.beam conftest.$ac_ext
6003 fi
6004
6005 else
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
6009 fi
6010 rm -f conftest.sym conftest.file
6011
6012 fi
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
6016 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6020 _ACEOF
6021
6022
6023 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6024 case " $LIBOBJS " in
6025 *" lstat.$ac_objext "* ) ;;
6026 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6027 ;;
6028 esac
6029
6030 fi
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; }
6034 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 if test "$cross_compiling" = yes; then :
6038 ac_cv_func_stat_empty_string_bug=yes
6039 else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 int
6044 main ()
6045 {
6046 struct stat sbuf;
6047 return stat ("", &sbuf) == 0;
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 if ac_fn_c_try_run "$LINENO"; then :
6053 ac_cv_func_stat_empty_string_bug=no
6054 else
6055 ac_cv_func_stat_empty_string_bug=yes
6056 fi
6057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6058 conftest.$ac_objext conftest.beam conftest.$ac_ext
6059 fi
6060
6061 fi
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; }
6064 if test $ac_cv_func_stat_empty_string_bug = yes; then
6065 case " $LIBOBJS " in
6066 *" stat.$ac_objext "* ) ;;
6067 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6068 ;;
6069 esac
6070
6071
6072 cat >>confdefs.h <<_ACEOF
6073 #define HAVE_STAT_EMPTY_STRING_BUG 1
6074 _ACEOF
6075
6076 fi
6077
6078 for ac_func in bzero gettimeofday malloc inet_ntoa strerror select socket initgroups strlcat vsyslog strcasestr getaddrinfo getnameinfo
6079 do :
6080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6082 eval 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
6088 fi
6089 done
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; }
6098 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 ac_check_lib_save_LIBS=$LIBS
6102 LIBS="-lpthread $LIBS"
6103 cat 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
6110 extern "C"
6111 #endif
6112 char pthread_create ();
6113 int
6114 main ()
6115 {
6116 return pthread_create ();
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_link "$LINENO"; then :
6122 ac_cv_lib_pthread_pthread_create=yes
6123 else
6124 ac_cv_lib_pthread_pthread_create=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6129 fi
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; }
6132 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
6133 LIBS="$LIBS -lpthread"
6134 else
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; }
6137 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 ac_check_lib_save_LIBS=$LIBS
6141 LIBS="-lc_r $LIBS"
6142 cat 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
6149 extern "C"
6150 #endif
6151 char pthread_create ();
6152 int
6153 main ()
6154 {
6155 return pthread_create ();
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 if ac_fn_c_try_link "$LINENO"; then :
6161 ac_cv_lib_c_r_pthread_create=yes
6162 else
6163 ac_cv_lib_c_r_pthread_create=no
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext conftest.$ac_ext
6167 LIBS=$ac_check_lib_save_LIBS
6168 fi
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; }
6171 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
6172 LIBS="$LIBS -lc_r"
6173 else
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; }
6176 if test "${ac_cv_lib_pthreads__lpthread_pthread_create+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lpthreads -lpthread $LIBS"
6181 cat 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
6188 extern "C"
6189 #endif
6190 char pthread_create ();
6191 int
6192 main ()
6193 {
6194 return pthread_create ();
6195 ;
6196 return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_link "$LINENO"; then :
6200 ac_cv_lib_pthreads__lpthread_pthread_create=yes
6201 else
6202 ac_cv_lib_pthreads__lpthread_pthread_create=no
6203 fi
6204 rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6207 fi
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; }
6210 if test "x$ac_cv_lib_pthreads__lpthread_pthread_create" = x""yes; then :
6211 LIBS="$LIBS -lpthreads -lpthread"
6212 else
6213 echo "Required libpthread not found. Use --with-libpthread";
6214 exit 1;
6215 fi
6216
6217
6218 fi
6219
6220
6221 fi
6222
6223
6224 # Try to configure for libspf2
6225 SAVEDLDFLAGS=$LDFLAGS
6226 SAVEDCFLAGS=$CFLAGS
6227
6228 # Check whether --with-libspf2 was given.
6229 if 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; }
6234 if test "${ac_cv_lib_spf2_SPF_server_new+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 ac_check_lib_save_LIBS=$LIBS
6238 LIBS="-lspf2 $LIBS"
6239 cat 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
6246 extern "C"
6247 #endif
6248 char SPF_server_new ();
6249 int
6250 main ()
6251 {
6252 return SPF_server_new ();
6253 ;
6254 return 0;
6255 }
6256 _ACEOF
6257 if ac_fn_c_try_link "$LINENO"; then :
6258 ac_cv_lib_spf2_SPF_server_new=yes
6259 else
6260 ac_cv_lib_spf2_SPF_server_new=no
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
6264 LIBS=$ac_check_lib_save_LIBS
6265 fi
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; }
6268 if 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
6277 else
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; }
6280 if test "${ac_cv_lib_spf2__lintl_SPF_server_new+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 ac_check_lib_save_LIBS=$LIBS
6284 LIBS="-lspf2 -lintl $LIBS"
6285 cat 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
6292 extern "C"
6293 #endif
6294 char SPF_server_new ();
6295 int
6296 main ()
6297 {
6298 return SPF_server_new ();
6299 ;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_c_try_link "$LINENO"; then :
6304 ac_cv_lib_spf2__lintl_SPF_server_new=yes
6305 else
6306 ac_cv_lib_spf2__lintl_SPF_server_new=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6311 fi
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; }
6314 if 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
6323 else
6324 echo "libspf2 not found, check config.log for details"
6325 echo "Remove --with-libspf2 to build without SPF support"
6326 exit 1;
6327 fi
6328
6329
6330 fi
6331
6332
6333 fi
6334
6335 LDFLAGS=$SAVEDLDFLAGS
6336 CFLAGS=$SAVEDCFLAGS
6337
6338 # Try to configure for libspf2-static
6339 SAVEDLDFLAGS=$LDFLAGS
6340 SAVEDCFLAGS=$CFLAGS
6341
6342 # Check whether --with-libspf2-static was given.
6343 if 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; }
6348 if test "${ac_cv_lib_spf2_SPF_server_new+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 ac_check_lib_save_LIBS=$LIBS
6352 LIBS="-lspf2 $LIBS"
6353 cat 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
6360 extern "C"
6361 #endif
6362 char SPF_server_new ();
6363 int
6364 main ()
6365 {
6366 return SPF_server_new ();
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_link "$LINENO"; then :
6372 ac_cv_lib_spf2_SPF_server_new=yes
6373 else
6374 ac_cv_lib_spf2_SPF_server_new=no
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext \
6377 conftest$ac_exeext conftest.$ac_ext
6378 LIBS=$ac_check_lib_save_LIBS
6379 fi
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; }
6382 if 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
6391 else
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; }
6394 if test "${ac_cv_lib_spf2__lintl_SPF_server_new+set}" = set; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 ac_check_lib_save_LIBS=$LIBS
6398 LIBS="-lspf2 -lintl $LIBS"
6399 cat 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
6406 extern "C"
6407 #endif
6408 char SPF_server_new ();
6409 int
6410 main ()
6411 {
6412 return SPF_server_new ();
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_link "$LINENO"; then :
6418 ac_cv_lib_spf2__lintl_SPF_server_new=yes
6419 else
6420 ac_cv_lib_spf2__lintl_SPF_server_new=no
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext \
6423 conftest$ac_exeext conftest.$ac_ext
6424 LIBS=$ac_check_lib_save_LIBS
6425 fi
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; }
6428 if 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
6437 else
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;
6442 fi
6443
6444
6445 fi
6446
6447
6448 fi
6449
6450 LDFLAGS=$SAVEDLDFLAGS
6451 CFLAGS=$SAVEDCFLAGS
6452
6453 # Try to configure for libspf2 1.0
6454 SAVEDLDFLAGS=$LDFLAGS
6455 SAVEDCFLAGS=$CFLAGS
6456
6457 # Check whether --with-libspf2_10 was given.
6458 if 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; }
6463 if test "${ac_cv_lib_spf2_SPF_create_config+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 ac_check_lib_save_LIBS=$LIBS
6467 LIBS="-lspf2 $LIBS"
6468 cat 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
6475 extern "C"
6476 #endif
6477 char SPF_create_config ();
6478 int
6479 main ()
6480 {
6481 return SPF_create_config ();
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_link "$LINENO"; then :
6487 ac_cv_lib_spf2_SPF_create_config=yes
6488 else
6489 ac_cv_lib_spf2_SPF_create_config=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6493 LIBS=$ac_check_lib_save_LIBS
6494 fi
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; }
6497 if 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
6506 else
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; }
6509 if test "${ac_cv_lib_spf2__lintl_SPF_create_config+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 ac_check_lib_save_LIBS=$LIBS
6513 LIBS="-lspf2 -lintl $LIBS"
6514 cat 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
6521 extern "C"
6522 #endif
6523 char SPF_create_config ();
6524 int
6525 main ()
6526 {
6527 return SPF_create_config ();
6528 ;
6529 return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_c_try_link "$LINENO"; then :
6533 ac_cv_lib_spf2__lintl_SPF_create_config=yes
6534 else
6535 ac_cv_lib_spf2__lintl_SPF_create_config=no
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 LIBS=$ac_check_lib_save_LIBS
6540 fi
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; }
6543 if 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
6552 else
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;
6556 fi
6557
6558
6559 fi
6560
6561
6562 fi
6563
6564 LDFLAGS=$SAVEDLDFLAGS
6565 CFLAGS=$SAVEDCFLAGS
6566
6567 # Try to configure for libspf_alt
6568 SAVEDLDFLAGS=$LDFLAGS
6569 SAVEDCFLAGS=$CFLAGS
6570
6571 # Check whether --with-libspf_alt was given.
6572 if 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; }
6577 if test "${ac_cv_lib_spf_alt_SPF_create_config+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-lspf_alt $LIBS"
6582 cat 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
6589 extern "C"
6590 #endif
6591 char SPF_create_config ();
6592 int
6593 main ()
6594 {
6595 return SPF_create_config ();
6596 ;
6597 return 0;
6598 }
6599 _ACEOF
6600 if ac_fn_c_try_link "$LINENO"; then :
6601 ac_cv_lib_spf_alt_SPF_create_config=yes
6602 else
6603 ac_cv_lib_spf_alt_SPF_create_config=no
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6607 LIBS=$ac_check_lib_save_LIBS
6608 fi
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; }
6611 if 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
6620 else
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; }
6623 if test "${ac_cv_lib_spf_alt__lintl_SPF_create_config+set}" = set; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 ac_check_lib_save_LIBS=$LIBS
6627 LIBS="-lspf_alt -lintl $LIBS"
6628 cat 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
6635 extern "C"
6636 #endif
6637 char SPF_create_config ();
6638 int
6639 main ()
6640 {
6641 return SPF_create_config ();
6642 ;
6643 return 0;
6644 }
6645 _ACEOF
6646 if ac_fn_c_try_link "$LINENO"; then :
6647 ac_cv_lib_spf_alt__lintl_SPF_create_config=yes
6648 else
6649 ac_cv_lib_spf_alt__lintl_SPF_create_config=no
6650 fi
6651 rm -f core conftest.err conftest.$ac_objext \
6652 conftest$ac_exeext conftest.$ac_ext
6653 LIBS=$ac_check_lib_save_LIBS
6654 fi
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; }
6657 if 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
6666 else
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;
6670 fi
6671
6672
6673 fi
6674
6675
6676 fi
6677
6678 LDFLAGS=$SAVEDLDFLAGS
6679 CFLAGS=$SAVEDCFLAGS
6680
6681 # Try to configure for libspf
6682 SAVEDLDFLAGS=$LDFLAGS
6683 SAVEDCFLAGS=$CFLAGS
6684
6685 # Check whether --with-libspf was given.
6686 if 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; }
6691 if test "${ac_cv_lib_spf_SPF_init+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 ac_check_lib_save_LIBS=$LIBS
6695 LIBS="-lspf $LIBS"
6696 cat 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
6703 extern "C"
6704 #endif
6705 char SPF_init ();
6706 int
6707 main ()
6708 {
6709 return SPF_init ();
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_link "$LINENO"; then :
6715 ac_cv_lib_spf_SPF_init=yes
6716 else
6717 ac_cv_lib_spf_SPF_init=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6721 LIBS=$ac_check_lib_save_LIBS
6722 fi
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; }
6725 if 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
6734 else
6735 echo "libspf not found, check config.log for details"
6736 echo "Remove --with-libspf to build without SPF support"
6737 exit 1;
6738 fi
6739
6740
6741 fi
6742
6743 LDFLAGS=$SAVEDLDFLAGS
6744 CFLAGS=$SAVEDCFLAGS
6745
6746 # Try to configure for libdkim
6747 SAVEDLDFLAGS=$LDFLAGS
6748 SAVEDCFLAGS=$CFLAGS
6749
6750 # Check whether --with-libdkim was given.
6751 if 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; }
6756 if test "${ac_cv_lib_dkim__lcrypto_dkim_init+set}" = set; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 ac_check_lib_save_LIBS=$LIBS
6760 LIBS="-ldkim -lcrypto $LIBS"
6761 cat 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
6768 extern "C"
6769 #endif
6770 char dkim_init ();
6771 int
6772 main ()
6773 {
6774 return dkim_init ();
6775 ;
6776 return 0;
6777 }
6778 _ACEOF
6779 if ac_fn_c_try_link "$LINENO"; then :
6780 ac_cv_lib_dkim__lcrypto_dkim_init=yes
6781 else
6782 ac_cv_lib_dkim__lcrypto_dkim_init=no
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6786 LIBS=$ac_check_lib_save_LIBS
6787 fi
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; }
6790 if 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
6799 else
6800 echo "libdkim not found, check config.log for details"
6801 echo "Remove --with-dkim to build without DKIM support"
6802 exit 1;
6803 fi
6804
6805
6806 fi
6807
6808 LDFLAGS=$SAVEDLDFLAGS
6809 CFLAGS=$SAVEDCFLAGS
6810
6811 # Try to configure for libopendkim
6812 SAVEDLDFLAGS=$LDFLAGS
6813 SAVEDCFLAGS=$CFLAGS
6814
6815 # Check whether --with-libopendkim was given.
6816 if 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; }
6825 if test "${ac_cv_lib_opendkim__lcrypto_dkim_init+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 ac_check_lib_save_LIBS=$LIBS
6829 LIBS="-lopendkim -lcrypto $LIBS"
6830 cat 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
6837 extern "C"
6838 #endif
6839 char dkim_init ();
6840 int
6841 main ()
6842 {
6843 return dkim_init ();
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_link "$LINENO"; then :
6849 ac_cv_lib_opendkim__lcrypto_dkim_init=yes
6850 else
6851 ac_cv_lib_opendkim__lcrypto_dkim_init=no
6852 fi
6853 rm -f core conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6855 LIBS=$ac_check_lib_save_LIBS
6856 fi
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; }
6859 if 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
6868 else
6869 echo "libopendkim not found, check config.log for details"
6870 echo "Remove --with-opendkim to build without DKIM support"
6871 exit 1;
6872 fi
6873
6874
6875 fi
6876
6877 LDFLAGS=$SAVEDLDFLAGS
6878 CFLAGS=$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.
6882 if 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
6891 else
6892 MAKE_J1="-j 1"
6893
6894 fi
6895
6896
6897 # Check whether --enable-rpath was given.
6898 if test "${enable_rpath+set}" = set; then :
6899 enableval=$enable_rpath; if test x$enableval = xno; then
6900 LDFLAGS=$NORPSAVEDLDFLAGS
6901 fi
6902 fi
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; }
6908 if test "${ac_cv_lib_socket_socket+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 ac_check_lib_save_LIBS=$LIBS
6912 LIBS="-lsocket $LIBS"
6913 cat 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
6920 extern "C"
6921 #endif
6922 char socket ();
6923 int
6924 main ()
6925 {
6926 return socket ();
6927 ;
6928 return 0;
6929 }
6930 _ACEOF
6931 if ac_fn_c_try_link "$LINENO"; then :
6932 ac_cv_lib_socket_socket=yes
6933 else
6934 ac_cv_lib_socket_socket=no
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
6938 LIBS=$ac_check_lib_save_LIBS
6939 fi
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6941 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6942 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
6943 LIBS="$LIBS -lsocket"
6944 else
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; }
6947 if test "${ac_cv_lib_socket__lnsl_socket+set}" = set; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 ac_check_lib_save_LIBS=$LIBS
6951 LIBS="-lsocket -lnsl $LIBS"
6952 cat 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
6959 extern "C"
6960 #endif
6961 char socket ();
6962 int
6963 main ()
6964 {
6965 return socket ();
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971 ac_cv_lib_socket__lnsl_socket=yes
6972 else
6973 ac_cv_lib_socket__lnsl_socket=no
6974 fi
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 LIBS=$ac_check_lib_save_LIBS
6978 fi
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; }
6981 if test "x$ac_cv_lib_socket__lnsl_socket" = x""yes; then :
6982 LIBS="$LIBS -lsocket -lnsl"
6983 fi
6984
6985
6986 fi
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; }
6992 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 ac_check_lib_save_LIBS=$LIBS
6996 LIBS="-lresolv $LIBS"
6997 cat 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
7004 extern "C"
7005 #endif
7006 char inet_aton ();
7007 int
7008 main ()
7009 {
7010 return inet_aton ();
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016 ac_cv_lib_resolv_inet_aton=yes
7017 else
7018 ac_cv_lib_resolv_inet_aton=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7022 LIBS=$ac_check_lib_save_LIBS
7023 fi
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; }
7026 if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
7027 LIBS="$LIBS -lresolv"
7028 fi
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; }
7034 if test "${ac_cv_lib_nsl_inet_pton+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 ac_check_lib_save_LIBS=$LIBS
7038 LIBS="-lnsl $LIBS"
7039 cat 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
7046 extern "C"
7047 #endif
7048 char inet_pton ();
7049 int
7050 main ()
7051 {
7052 return inet_pton ();
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 if ac_fn_c_try_link "$LINENO"; then :
7058 ac_cv_lib_nsl_inet_pton=yes
7059 else
7060 ac_cv_lib_nsl_inet_pton=no
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7065 fi
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; }
7068 if test "x$ac_cv_lib_nsl_inet_pton" = x""yes; then :
7069 LIBS="$LIBS -lnsl"
7070 fi
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; }
7076 cat 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
7084 int
7085 main ()
7086 {
7087
7088 struct __res_state res;
7089 res_ninit(&res);
7090
7091 ;
7092 return 0;
7093 }
7094 _ACEOF
7095 if ac_fn_c_try_link "$LINENO"; then :
7096
7097 $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
7098 res_ninit=yes
7099 else
7100 res_ninit=no
7101 fi
7102 rm -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; }
7110 cat 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
7118 int
7119 main ()
7120 {
7121
7122 struct __res_state res;
7123 res_ndestroy(&res);
7124
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_link "$LINENO"; then :
7130
7131 $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
7132 res_ndestroy=yes
7133 else
7134 res_ndestroy=no
7135 fi
7136 rm -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; }
7144 cat 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
7153 int
7154 main ()
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
7165 if 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
7173 else
7174 res_nupdate=no
7175 fi
7176 rm -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
7186 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
7187 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
7188 ac_cv_lib_socket_getaddrinfo=no
7189 ac_cv_lib_inet6_getaddrinfo=no
7190
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
7193 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
7194 if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 ac_check_lib_save_LIBS=$LIBS
7198 LIBS="-lsocket $LIBS"
7199 cat 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
7206 extern "C"
7207 #endif
7208 char getaddrinfo ();
7209 int
7210 main ()
7211 {
7212 return getaddrinfo ();
7213 ;
7214 return 0;
7215 }
7216 _ACEOF
7217 if ac_fn_c_try_link "$LINENO"; then :
7218 ac_cv_lib_socket_getaddrinfo=yes
7219 else
7220 ac_cv_lib_socket_getaddrinfo=no
7221 fi
7222 rm -f core conftest.err conftest.$ac_objext \
7223 conftest$ac_exeext conftest.$ac_ext
7224 LIBS=$ac_check_lib_save_LIBS
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
7227 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
7228 if test "x$ac_cv_lib_socket_getaddrinfo" = x""yes; then :
7229 LIBS="$LIBS -lsocket"
7230 ac_cv_lib_inet6_getaddrinfo=no
7231
7232 else
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
7237 else
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
7243 fi
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; }
7256 if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 ac_check_lib_save_LIBS=$LIBS
7260 LIBS="-linet6 $LIBS"
7261 cat 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
7268 extern "C"
7269 #endif
7270 char getaddrinfo ();
7271 int
7272 main ()
7273 {
7274 return getaddrinfo ();
7275 ;
7276 return 0;
7277 }
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"; then :
7280 ac_cv_lib_inet6_getaddrinfo=yes
7281 else
7282 ac_cv_lib_inet6_getaddrinfo=no
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
7286 LIBS=$ac_check_lib_save_LIBS
7287 fi
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
7289 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
7290 if 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
7295 fi
7296 if test $ipv6_libinet6 = no; then
7297 LDFLAGS="$SAVELDFLAGS"
7298 fi
7299 fi
7300 fi
7301
7302 fi
7303 ipv6_cv_getaddrinfo=no
7304 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
7305 -o $ac_cv_lib_inet6_getaddrinfo = yes
7306 then
7307 ipv6_cv_getaddrinfo=yes
7308 fi
7309 if 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
7317 if (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`
7320 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
7321 eval as_val=\$$as_ac_var
7322 if test "x$as_val" = x""yes; then :
7323
7324 fi
7325
7326 fi
7327 rm -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
7335 fi
7336 if test $ipv6_cv_getaddrinfo = yes; then
7337 cat >>confdefs.h <<_ACEOF
7338 #define HAVE_GETADDRINFO 1
7339 _ACEOF
7340
7341 :
7342 else
7343 :
7344 fi
7345
7346
7347 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
7348 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
7349 ac_cv_lib_socket_getnameinfo=no
7350 ac_cv_lib_inet6_getnameinfo=no
7351
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
7354 $as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
7355 if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 ac_check_lib_save_LIBS=$LIBS
7359 LIBS="-lsocket $LIBS"
7360 cat 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
7367 extern "C"
7368 #endif
7369 char getnameinfo ();
7370 int
7371 main ()
7372 {
7373 return getnameinfo ();
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_c_try_link "$LINENO"; then :
7379 ac_cv_lib_socket_getnameinfo=yes
7380 else
7381 ac_cv_lib_socket_getnameinfo=no
7382 fi
7383 rm -f core conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
7385 LIBS=$ac_check_lib_save_LIBS
7386 fi
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
7388 $as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
7389 if test "x$ac_cv_lib_socket_getnameinfo" = x""yes; then :
7390 LIBS="$LIBS -lsocket"
7391 ac_cv_lib_inet6_getnameinfo=no
7392
7393 else
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
7398 else
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
7404 fi
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; }
7417 if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 ac_check_lib_save_LIBS=$LIBS
7421 LIBS="-linet6 $LIBS"
7422 cat 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
7429 extern "C"
7430 #endif
7431 char getnameinfo ();
7432 int
7433 main ()
7434 {
7435 return getnameinfo ();
7436 ;
7437 return 0;
7438 }
7439 _ACEOF
7440 if ac_fn_c_try_link "$LINENO"; then :
7441 ac_cv_lib_inet6_getnameinfo=yes
7442 else
7443 ac_cv_lib_inet6_getnameinfo=no
7444 fi
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
7450 $as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
7451 if 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
7456 fi
7457 if test $ipv6_libinet6 = no; then
7458 LDFLAGS="$SAVELDFLAGS"
7459 fi
7460 fi
7461 fi
7462
7463 fi
7464 ipv6_cv_getnameinfo=no
7465 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
7466 -o $ac_cv_lib_inet6_getnameinfo = yes
7467 then
7468 ipv6_cv_getnameinfo=yes
7469 fi
7470 if 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
7478 if (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`
7481 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
7482 eval as_val=\$$as_ac_var
7483 if test "x$as_val" = x""yes; then :
7484
7485 fi
7486
7487 fi
7488 rm -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
7496 fi
7497 if test $ipv6_cv_getnameinfo = yes; then
7498 cat >>confdefs.h <<_ACEOF
7499 #define HAVE_GETNAMEINFO 1
7500 _ACEOF
7501
7502 :
7503 else
7504 :
7505 fi
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; }
7510 cat 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
7520 int
7521 main ()
7522 {
7523
7524 #ifndef timeradd
7525 error timeradd undefined
7526 #endif
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 timeradd=yes
7534 else
7535
7536 $as_echo "#define HAVE_MISSING_TIMERADD /**/" >>confdefs.h
7537 timeradd=no
7538 fi
7539 rm -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
7544 SAVEDCFLAGS=$CFLAGS
7545 CFLAGS=$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; }
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550
7551 #include <time.h>
7552 #include <string.h>
7553 #include <stdio.h>
7554
7555 int
7556 main ()
7557 {
7558
7559
7560 (void)localtime_r(NULL, NULL);
7561 (void)strtok_r(NULL, NULL, NULL);
7562
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568 dreentrant=no
7569 else
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
7578 int
7579 main ()
7580 {
7581
7582 (void)localtime_r(NULL, NULL);
7583 (void)strtok_r(NULL, NULL, NULL);
7584
7585 ;
7586 return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 SAVEDCFLAGS=$SAVEDCFLAGS" -D_REENTRANT";
7591 dreentrant=yes
7592 else
7593 dreentrant=no
7594 fi
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596
7597 fi
7598 rm -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; }
7601 CFLAGS=$SAVEDCFLAGS
7602
7603 # Check if -D__EXTENSIONS__ is needed for snprintf, getopt, seteuid...
7604 SAVEDCFLAGS=$CFLAGS
7605 CFLAGS=$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; }
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610
7611 #include <stdio.h>
7612
7613 int
7614 main ()
7615 {
7616
7617 char dst[16 + 1];
7618
7619 snprintf(dst, 16, "test");
7620
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 dextensions=no
7627 else
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630
7631 #define __EXTENSIONS__
7632 #include <stdio.h>
7633
7634 int
7635 main ()
7636 {
7637
7638 char dst[16 + 1];
7639
7640 snprintf(dst, 16, "test");
7641
7642 ;
7643 return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 SAVEDCFLAGS=$SAVEDCFLAGS" -D__EXTENSIONS__";
7648 dextensions=yes
7649 else
7650 dextensions=no
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653
7654 fi
7655 rm -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; }
7658 CFLAGS=$SAVEDCFLAGS
7659
7660 # Solaris 256 streams limitation workaround
7661 # Check whether --enable-stdio-hack was given.
7662 if test "${enable_stdio_hack+set}" = set; then :
7663 enableval=$enable_stdio_hack; CFLAGS=$CFLAGS" -DUSE_FD_POOL"
7664 fi
7665
7666
7667 # Check for DRAC
7668 # Check whether --enable-drac was given.
7669 if test "${enable_drac+set}" = set; then :
7670 enableval=$enable_drac; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_DRAC"; fi
7671 fi
7672
7673 # Check whether --enable-p0f was given.
7674 if test "${enable_p0f+set}" = set; then :
7675 enableval=$enable_p0f; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_P0F"; fi
7676 fi
7677
7678 # Check whether --enable-p0f3 was given.
7679 if test "${enable_p0f3+set}" = set; then :
7680 enableval=$enable_p0f3; if test x$enableval = xyes; then
7681 CFLAGS=$CFLAGS" -DUSE_P0F -DHAVE_P0F3"; fi
7682 fi
7683
7684 # Check whether --enable-p0f306 was given.
7685 if 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
7688 fi
7689
7690
7691 # Check whether --with-p0f-src was given.
7692 if test "${with_p0f_src+set}" = set; then :
7693 withval=$with_p0f_src; CFLAGS=$CFLAGS" -I$withval -DP0F_QUERY_FROM_P0F_DIST"
7694 fi
7695
7696
7697 # Check for SpamAssassin
7698 # Check whether --enable-spamassassin was given.
7699 if test "${enable_spamassassin+set}" = set; then :
7700 enableval=$enable_spamassassin; if test x$enableval = xyes; then CFLAGS=$CFLAGS" -DUSE_SPAMD"; fi
7701 fi
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; }
7709 if test "${ac_cv_lib_milter_smfi_register+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-lmilter $LIBS"
7714 cat 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
7721 extern "C"
7722 #endif
7723 char smfi_register ();
7724 int
7725 main ()
7726 {
7727 return smfi_register ();
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_link "$LINENO"; then :
7733 ac_cv_lib_milter_smfi_register=yes
7734 else
7735 ac_cv_lib_milter_smfi_register=no
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 LIBS=$ac_check_lib_save_LIBS
7740 fi
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; }
7743 if test "x$ac_cv_lib_milter_smfi_register" = x""yes; then :
7744 LIBS="$LIBS -lmilter"
7745 else
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; }
7748 if test "${ac_cv_lib_milter__lsm_smfi_register+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 ac_check_lib_save_LIBS=$LIBS
7752 LIBS="-lmilter -lsm $LIBS"
7753 cat 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
7760 extern "C"
7761 #endif
7762 char smfi_register ();
7763 int
7764 main ()
7765 {
7766 return smfi_register ();
7767 ;
7768 return 0;
7769 }
7770 _ACEOF
7771 if ac_fn_c_try_link "$LINENO"; then :
7772 ac_cv_lib_milter__lsm_smfi_register=yes
7773 else
7774 ac_cv_lib_milter__lsm_smfi_register=no
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7778 LIBS=$ac_check_lib_save_LIBS
7779 fi
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; }
7782 if test "x$ac_cv_lib_milter__lsm_smfi_register" = x""yes; then :
7783 LIBS="$LIBS -lmilter -lsm"
7784 else
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; }
7787 if test "${ac_cv_lib_milter__lsmutil_smfi_register+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 ac_check_lib_save_LIBS=$LIBS
7791 LIBS="-lmilter -lsmutil $LIBS"
7792 cat 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
7799 extern "C"
7800 #endif
7801 char smfi_register ();
7802 int
7803 main ()
7804 {
7805 return smfi_register ();
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_link "$LINENO"; then :
7811 ac_cv_lib_milter__lsmutil_smfi_register=yes
7812 else
7813 ac_cv_lib_milter__lsmutil_smfi_register=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7817 LIBS=$ac_check_lib_save_LIBS
7818 fi
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; }
7821 if test "x$ac_cv_lib_milter__lsmutil_smfi_register" = x""yes; then :
7822 LIBS="$LIBS -lmilter -lsmutil"
7823 else
7824 echo "Required libmilter not found. Use --with-libmilter";
7825 exit 1;
7826 fi
7827
7828
7829 fi
7830
7831
7832 fi
7833
7834
7835 ac_fn_c_check_member "$LINENO" "struct smfiDesc" "xxfi_data" "ac_cv_member_struct_smfiDesc_xxfi_data" "#include <libmilter/mfapi.h>
7836 "
7837 if test "x$ac_cv_member_struct_smfiDesc_xxfi_data" = x""yes; then :
7838 CFLAGS=$CFLAGS" -DHAVE_DATA_CALLBACK"
7839 fi
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; }
7845 SAVEDLIBS=$LIBS
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848
7849 #include <pthread.h>
7850 #include <libmilter/mfapi.h>
7851
7852 int
7853 main ()
7854 {
7855
7856 pthread_self();
7857 smfi_main();
7858
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 pthend=no
7865 else
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
7873 int
7874 main ()
7875 {
7876
7877 pthread_self();
7878 smfi_main();
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 pthend=yes; SAVEDLIBS=$LIBS
7886 else
7887 pthend=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895
7896 LIBS=$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; }
7904 oldqueue=no
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907
7908 #include <sys/queue.h>
7909
7910 int
7911 main ()
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
7925 if ac_fn_c_try_compile "$LINENO"; then :
7926 oldqueue=no
7927 else
7928
7929 $as_echo "#define HAVE_OLD_QUEUE_H /**/" >>confdefs.h
7930 oldqueue=yes
7931 fi
7932 rm -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; }
7939 cat 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
7948 int
7949 main ()
7950 {
7951
7952 /* nothing */
7953
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 rcsidtwice=yes
7960 else
7961
7962 $as_echo "#define HAVE_BROKEN_RCSID /**/" >>confdefs.h
7963 rcsidtwice=no
7964 fi
7965 rm -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; }
7974 SAVEDCFLAGS=$CFLAGS
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 #include <pthread.h>
7978 int
7979 main ()
7980 {
7981
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987 pthreadfl=no
7988 else
7989 CFLAGS=$CFLAGS" -pthread -D_XOPEN_SOURCE=500";
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 #include <pthread.h>
7993 int
7994 main ()
7995 {
7996
7997 ;
7998 return 0;
7999 }
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002 pthreadfl=yes; SAVEDCFLAGS=$CFLAGS
8003 else
8004 pthreadfl=no
8005 fi
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 CFLAGS=$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; }
8017 xopen=no
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8020
8021 #include <sys/types.h>
8022 #include <pthread.h>
8023
8024 int
8025 main ()
8026 {
8027
8028 pthread_rwlock_t lock;
8029
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035 xopen=no
8036 else
8037 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"; xopen=yes
8038 fi
8039 rm -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
8044 SAVEDCFLAGS=$CFLAGS
•8045 CFLAGS=$CFLAGS" -D_XOPEN_SOURCE=500 -D_DEFAULT_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; }
8048 cat 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
8055 int
8056 main ()
8057 {
8058
8059 #ifdef AF_INET6
8060 struct in6_addr s;
8061 #endif
8062
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 dosfsource=no
8069 else
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
8077 int
8078 main ()
8079 {
8080
8081 #ifdef AF_INET6
8082 struct in6_addr s;
8083 #endif
8084
8085 ;
8086 return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 SAVEDCFLAGS=$SAVEDCFLAGS" -D_OSF_SOURCE";
8091 dosfsource=yes
8092 else
8093 dosfsource=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096
8097 fi
8098 rm -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; }
8101 CFLAGS=$SAVEDCFLAGS
8102
8103 # Linux does not have a sa_len field in sockaddr
8104 ac_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 "
8109 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
8110
8111 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
8112
8113 fi
8114
8115
8116 # Pre-RFC2553 system does not have a sin6_scope_id field in sockaddr_in6
8117 ac_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 "
8123 if 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
8127 fi
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; }
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135
8136 #include <sys/types.h>
8137 #include <sys/socket.h>
8138
8139 int
8140 main ()
8141 {
8142
8143 socklen_t slen;
8144
8145 ;
8146 return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150 socklen=no
8151 else
8152
8153 $as_echo "#define HAVE_MISSING_SOCKLEN_T /**/" >>confdefs.h
8154 socklen=yes
8155 fi
8156 rm -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; }
8163 brokenpth=yes
8164 if 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;}
8167 as_fn_error "cannot run test program while cross compiling
8168 See \`config.log' for more details." "$LINENO" 5; }
8169 else
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
8250 int
8251 main ()
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
8273 if ac_fn_c_try_run "$LINENO"; then :
8274 brokenpth=no
8275 else
8276
8277 $as_echo "#define HAVE_BROKEN_RWLOCK /**/" >>confdefs.h
8278
8279 fi
8280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8281 conftest.$ac_objext conftest.beam conftest.$ac_ext
8282 fi
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.
8290 if test "${with_thread_safe_resolver+set}" = set; then :
8291 withval=$with_thread_safe_resolver; rdns=yes
8292 else
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 _DEFAULT_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
8309 int
8310 main ()
8311 {
8312
8313 struct __res_state res;
8314
8315 res_ninit(&res);
8316
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322 rdns=yes
8323 else
8324 rdns=no
8325 fi
8326 rm -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
8331 fi
8332
8333
8334 # Check for DNSRBL
8335 # Check whether --enable-dnsrbl was given.
8336 if 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
8346 int
8347 main ()
8348 {
8349 int result = ns_initparse(NULL, 0, NULL);
8350 ;
8351 return 0;
8352 }
8353 _ACEOF
8354 if ac_fn_c_try_link "$LINENO"; then :
8355
8356 else
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; }
8359 if test "${ac_cv_lib_resolv_ns_initparse+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-lresolv $LIBS"
8364 cat 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
8371 extern "C"
8372 #endif
8373 char ns_initparse ();
8374 int
8375 main ()
8376 {
8377 return ns_initparse ();
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 if ac_fn_c_try_link "$LINENO"; then :
8383 ac_cv_lib_resolv_ns_initparse=yes
8384 else
8385 ac_cv_lib_resolv_ns_initparse=no
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8389 LIBS=$ac_check_lib_save_LIBS
8390 fi
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; }
8393 if test "x$ac_cv_lib_resolv_ns_initparse" = x""yes; then :
8394 LIBS="$LIBS -lresolv"
8395 else
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
8404 fi
8405
8406
8407 fi
8408 rm -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
8418 fi
8419
8420
8421 # Check for MX
8422 # Check whether --enable-mx was given.
8423 if 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
8433 int
8434 main ()
8435 {
8436 int result = ns_initparse(NULL, 0, NULL);
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 if ac_fn_c_try_link "$LINENO"; then :
8442
8443 else
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; }
8446 if test "${ac_cv_lib_resolv_ns_initparse+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 ac_check_lib_save_LIBS=$LIBS
8450 LIBS="-lresolv $LIBS"
8451 cat 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
8458 extern "C"
8459 #endif
8460 char ns_initparse ();
8461 int
8462 main ()
8463 {
8464 return ns_initparse ();
8465 ;
8466 return 0;
8467 }
8468 _ACEOF
8469 if ac_fn_c_try_link "$LINENO"; then :
8470 ac_cv_lib_resolv_ns_initparse=yes
8471 else
8472 ac_cv_lib_resolv_ns_initparse=no
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8477 fi
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; }
8480 if test "x$ac_cv_lib_resolv_ns_initparse" = x""yes; then :
8481 LIBS="$LIBS -lresolv"
8482 else
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
8491 fi
8492
8493
8494 fi
8495 rm -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
8505 fi
8506
8507
8508 # We enable some features for Postfix
8509 # Check whether --enable-postfix was given.
8510 if test "${enable_postfix+set}" = set; then :
8511 enableval=$enable_postfix; if test x$enableval = xyes; then
8512 CFLAGS=$CFLAGS" -DUSE_POSTFIX"
8513 fi
8514
8515 fi
8516
8517
8518 # Record the build environnement for milter-greylist -r
8519
8520 cat >>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.
8528 if test "${with_user+set}" = set; then :
8529 withval=$with_user; USER=$withval
8530
8531 else
8532 USER=root
8533
8534 fi
8535
8536
8537 CONFFILE="\${SYSCONFDIR}/mail/greylist.conf"
8538
8539 # Check whether --with-conffile was given.
8540 if test "${with_conffile+set}" = set; then :
8541 withval=$with_conffile; CONFFILE="$withval"
8542 fi
8543
8544
8545 CFLAGS=$CFLAGS" -DCONFFILE=\\\"\${CONFFILE}\\\""
8546
8547 DUMPFILE="\${LOCALSTATEDIR}/milter-greylist/greylist.db"
8548
8549 # Check whether --with-dumpfile was given.
8550 if test "${with_dumpfile+set}" = set; then :
8551 withval=$with_dumpfile; DUMPFILE="$withval"
8552 fi
8553
8554
8555 CFLAGS=$CFLAGS" -DDUMPFILE=\\\"\${DUMPFILE}\\\""
8556
8557
8558 # Check whether --with-delay was given.
8559 if test "${with_delay+set}" = set; then :
8560 withval=$with_delay; CFLAGS=$CFLAGS" -DGLDELAY=$withval"
8561 fi
8562
8563
8564 # Check whether --with-timeout was given.
8565 if test "${with_timeout+set}" = set; then :
8566 withval=$with_timeout; CFLAGS=$CFLAGS" -DTIMEOUT=$withval"
8567 fi
8568
8569
8570 # Check whether --with-autowhite was given.
8571 if test "${with_autowhite+set}" = set; then :
8572 withval=$with_autowhite; CFLAGS=$CFLAGS" -DAUTOWHITE_DELAY=$withval"
8573 fi
8574
8575
8576 # Check whether --with-drac-db was given.
8577 if test "${with_drac_db+set}" = set; then :
8578 withval=$with_drac_db; CFLAGS=$CFLAGS" -DDRACDB=\\\"$withval\\\""
8579 fi
8580
8581
8582 ac_config_files="$ac_config_files Makefile milter-greylist.spec"
8583
8584 cat >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
8646 if 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
8656 fi
8657 rm -f confcache
8658
8659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8660 # Let make expand exec_prefix.
8661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8662
8663 DEFS=-DHAVE_CONFIG_H
8664
8665 ac_libobjs=
8666 ac_ltlibobjs=
8667 for ac_i in : $LIBOBJS; 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'
8675 done
8676 LIBOBJS=$ac_libobjs
8677
8678 LTLIBOBJS=$ac_ltlibobjs
8679
8680
8681
8682 : ${CONFIG_STATUS=./config.status}
8683 ac_write_fail=0
8684 ac_clean_files_save=$ac_clean_files
8685 ac_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;}
8688 as_write_fail=0
8689 cat >$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
8696 debug=false
8697 ac_cs_recheck=false
8698 ac_cs_silent=false
8699
8700 SHELL=\${CONFIG_SHELL-$SHELL}
8701 export SHELL
8702 _ASEOF
8703 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8704 ## -------------------- ##
8705 ## M4sh Initialization. ##
8706 ## -------------------- ##
8707
8708 # Be more Bourne compatible
8709 DUALCASE=1; export DUALCASE # for MKS sh
8710 if 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
8717 else
8718 case `(set -o) 2>/dev/null` in #(
8719 *posix*) :
8720 set -o posix ;; #(
8721 *) :
8722 ;;
8723 esac
8724 fi
8725
8726
8727 as_nl='
8728 '
8729 export as_nl
8730 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8731 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8733 as_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.
8736 if 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 --'
8740 elif (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'
8743 else
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'
8763 fi
8764
8765 # The user is always right.
8766 if 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 }
8772 fi
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.)
8780 IFS=" "" $as_nl"
8781
8782 # Find who we are. Look in the path if we contain no directory separator.
8783 case $0 in #((
8784 *[\\/]* ) as_myself=$0 ;;
8785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8787 do
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
8792 IFS=$as_save_IFS
8793
8794 ;;
8795 esac
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.
8798 if test "x$as_myself" = x; then
8799 as_myself=$0
8800 fi
8801 if test ! -f "$as_myself"; then
8802 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8803 exit 1
8804 fi
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.
8810 for as_var in BASH_ENV ENV MAIL MAILPATH
8811 do eval test x\${$as_var+set} = xset \
8812 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8813 done
8814 PS1='$ '
8815 PS2='> '
8816 PS4='+ '
8817
8818 # NLS nuisances.
8819 LC_ALL=C
8820 export LC_ALL
8821 LANGUAGE=C
8822 export 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 $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 $?, using 1 if that was 0.
8833 as_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 $? to STATUS, without forking.
8848 as_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.
8856 as_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.
8866 as_fn_unset ()
8867 {
8868 { eval $1=; unset $1;}
8869 }
8870 as_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.
8877 if (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 }'
8882 else
8883 as_fn_append ()
8884 {
8885 eval $1=\$$1\$2
8886 }
8887 fi # 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 $as_val. Take advantage of shells that can avoid forks. The arguments
8893 # must be portable across $(()) and expr.
8894 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8895 eval 'as_fn_arith ()
8896 {
8897 as_val=$(( $* ))
8898 }'
8899 else
8900 as_fn_arith ()
8901 {
8902 as_val=`expr "$@" || test $? -eq 1`
8903 }
8904 fi # as_fn_arith
8905
8906
8907 if expr a : '\(a\)' >/dev/null 2>&1 &&
8908 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8909 as_expr=expr
8910 else
8911 as_expr=false
8912 fi
8913
8914 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8915 as_basename=basename
8916 else
8917 as_basename=false
8918 fi
8919
8920 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8921 as_dirname=dirname
8922 else
8923 as_dirname=false
8924 fi
8925
8926 as_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.
8946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8949 as_cr_digits='0123456789'
8950 as_cr_alnum=$as_cr_Letters$as_cr_digits
8951
8952 ECHO_C= ECHO_N= ECHO_T=
8953 case `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';;
8963 esac
8964
8965 rm -f conf$$ conf$$.exe conf$$.file
8966 if test -d conf$$.dir; then
8967 rm -f conf$$.dir/conf$$.file
8968 else
8969 rm -f conf$$.dir
8970 mkdir conf$$.dir 2>/dev/null
8971 fi
8972 if (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
8986 else
8987 as_ln_s='cp -p'
8988 fi
8989 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8990 rmdir conf$$.dir 2>/dev/null
8991
8992
8993 # as_fn_mkdir_p
8994 # -------------
8995 # Create "$as_dir" as a directory, including parents if necessary.
8996 as_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
9040 if mkdir -p . 2>/dev/null; then
9041 as_mkdir_p='mkdir -p "$as_dir"'
9042 else
9043 test -d ./-p && rmdir ./-p
9044 as_mkdir_p=false
9045 fi
9046
9047 if test -x / >/dev/null 2>&1; then
9048 as_test_x='test -x'
9049 else
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 '
9067 fi
9068 as_executable_p=$as_test_x
9069
9070 # Sed expression to map a string onto a valid CPP name.
9071 as_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.
9074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9075
9076
9077 exec 6>&1
9078 ## ----------------------------------- ##
9079 ## Main body of $CONFIG_STATUS script. ##
9080 ## ----------------------------------- ##
9081 _ASEOF
9082 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9083
9084 cat >>$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.
9088 ac_log="
9089 This file was extended by milter-greylist $as_me 4.6.4, which was
9090 generated 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
9098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9099 "
9100
9101 _ACEOF
9102
9103 case $ac_config_files in *"
9104 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9105 esac
9106
9107 case $ac_config_headers in *"
9108 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9109 esac
9110
9111
9112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9113 # Files that config.status was made for.
9114 config_files="$ac_config_files"
9115 config_headers="$ac_config_headers"
9116
9117 _ACEOF
9118
9119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9120 ac_cs_usage="\
9121 \`$as_me' instantiates files and other configuration actions
9122 from templates according to the current configuration. Unless the files
9123 and actions are specified as TAGs, all are instantiated by default.
9124
9125 Usage: $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
9139 Configuration files:
9140 $config_files
9141
9142 Configuration headers:
9143 $config_headers
9144
9145 Report bugs to <[email protected]>."
9146
9147 _ACEOF
9148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9149 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9150 ac_cs_version="\\
9151 milter-greylist config.status 4.6.4
9152 configured by $0, generated by GNU Autoconf 2.65,
9153 with options \\"\$ac_cs_config\\"
9154
9155 Copyright (C) 2009 Free Software Foundation, Inc.
9156 This config.status script is free software; the Free Software Foundation
9157 gives unlimited permission to copy, distribute and modify it."
9158
9159 ac_pwd='$ac_pwd'
9160 srcdir='$srcdir'
9161 INSTALL='$INSTALL'
9162 test -n "\$AWK" || AWK=awk
9163 _ACEOF
9164
9165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9166 # The default lists apply if the user does not specify any file.
9167 ac_need_defaults=:
9168 while test $# != 0
9169 do
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'
9210 Try \`$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'
9219 Try \`$0 --help' for more information." ;;
9220
9221 *) as_fn_append ac_config_targets " $1"
9222 ac_need_defaults=false ;;
9223
9224 esac
9225 shift
9226 done
9227
9228 ac_configure_extra_args=
9229
9230 if $ac_cs_silent; then
9231 exec 6>/dev/null
9232 ac_configure_extra_args="$ac_configure_extra_args --silent"
9233 fi
9234
9235 _ACEOF
9236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9237 if \$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 "\$@"
9244 fi
9245
9246 _ACEOF
9247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9248 exec 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
9258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9259 _ACEOF
9260
9261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9262
9263 # Handling of arguments.
9264 for ac_config_target in $ac_config_targets
9265 do
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
9273 done
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.
9280 if $ac_need_defaults; then
9281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9283 fi
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'.
9313 if test -n "$CONFIG_FILES"; then
9314
9315
9316 ac_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.
9320 if test "x$ac_cr" = x; then
9321 eval ac_cr=\$\'\\r\'
9322 fi
9323 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9324 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9325 ac_cs_awk_cr='\r'
9326 else
9327 ac_cs_awk_cr=$ac_cr
9328 fi
9329
9330 echo '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
9340 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9341 ac_delim='%!_!# '
9342 for 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
9354 done
9355 rm -f conf$$subs.sh
9356
9357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9358 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9359 _ACEOF
9360 sed -n '
9361 h
9362 s/^/S["/; s/!.*/"]=/
9363 p
9364 g
9365 s/^[^!]*!//
9366 :repl
9367 t repl
9368 s/'"$ac_delim"'$//
9369 t delim
9370 :nl
9371 h
9372 s/\(.\{148\}\)..*/\1/
9373 t more1
9374 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9375 p
9376 n
9377 b repl
9378 :more1
9379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9380 p
9381 g
9382 s/.\{148\}//
9383 t nl
9384 :delim
9385 h
9386 s/\(.\{148\}\)..*/\1/
9387 t more2
9388 s/["\\]/\\&/g; s/^/"/; s/$/"/
9389 p
9390 b
9391 :more2
9392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9393 p
9394 g
9395 s/.\{148\}//
9396 t delim
9397 ' <conf$$subs.awk | sed '
9398 /^[^""]/{
9399 N
9400 s/\n//
9401 }
9402 ' >>$CONFIG_STATUS || ac_write_fail=1
9403 rm -f conf$$subs.awk
9404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9405 _ACAWK
9406 cat >>"\$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
9433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9434 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9435 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9436 else
9437 cat
9438 fi < "$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).
9446 if test "x$srcdir" = x.; then
9447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9448 s/:*\$(srcdir):*/:/
9449 s/:*\${srcdir}:*/:/
9450 s/:*@srcdir@:*/:/
9451 s/^\([^=]*=[ ]*\):*/\1/
9452 s/:*$//
9453 s/^[^=]*=[ ]*$//
9454 }'
9455 fi
9456
9457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9458 fi # 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'.
9463 if test -n "$CONFIG_HEADERS"; then
9464 cat >"$tmp/defines.awk" <<\_ACAWK ||
9465 BEGIN {
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.
9474 ac_delim='%!_!# '
9475 for 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
9484 done
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
9490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9491 sed -n '
9492 s/.\{148\}/&'"$ac_delim"'/g
9493 t rset
9494 :rset
9495 s/^[ ]*#[ ]*define[ ][ ]*/ /
9496 t def
9497 d
9498 :def
9499 s/\\$//
9500 t bsnl
9501 s/["\\]/\\&/g
9502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9503 D["\1"]=" \3"/p
9504 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9505 d
9506 :bsnl
9507 s/["\\]/\\&/g
9508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9509 D["\1"]=" \3\\\\\\n"\\/p
9510 t cont
9511 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9512 t cont
9513 d
9514 :cont
9515 n
9516 s/.\{148\}/&'"$ac_delim"'/g
9517 t clear
9518 :clear
9519 s/\\$//
9520 t bsnlc
9521 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9522 d
9523 :bsnlc
9524 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9525 b cont
9526 ' <confdefs.h | sed '
9527 s/'"$ac_delim"'/"\\\
9528 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9529
9530 cat >>$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
9564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9565 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9566 fi # test -n "$CONFIG_HEADERS"
9567
9568
9569 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9570 shift
9571 for ac_tag
9572 do
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
9664 case "$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 ;;
9674 esac
9675 ac_abs_top_builddir=$ac_pwd
9676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9677 # for backward compatibility:
9678 ac_top_builddir=$ac_top_build_prefix
9679
9680 case $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 ;;
9693 esac
9694 ac_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
9709 cat >>$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.
9712 ac_datarootdir_hack=; ac_datarootdir_seen=
9713 ac_sed_dataroot='
9714 /datarootdir/ {
9715 p
9716 q
9717 }
9718 /@datadir@/p
9719 /@docdir@/p
9720 /@infodir@/p
9721 /@localedir@/p
9722 /@mandir@/p'
9723 case `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
9729 cat >>$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' ;;
9737 esac
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?
9743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9744 ac_sed_extra="$ac_vpsub
9745 $extrasub
9746 _ACEOF
9747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9748 :t
9749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9750 s|@configure_input@|$ac_sed_conf_input|;t t
9751 s&@top_builddir@&$ac_top_builddir_sub&;t t
9752 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9753 s&@srcdir@&$ac_srcdir&;t t
9754 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9755 s&@top_srcdir@&$ac_top_srcdir&;t t
9756 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9757 s&@builddir@&$ac_builddir&;t t
9758 s&@abs_builddir@&$ac_abs_builddir&;t t
9759 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9760 s&@INSTALL@&$ac_INSTALL&;t t
9761 $ac_datarootdir_hack
9762 "
9763 eval 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
9766 test -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'
9770 which 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'
9772 which 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
9809 done # for ac_tag
9810
9811
9812 as_fn_exit 0
9813 _ACEOF
9814 ac_clean_files=$ac_clean_files_save
9815
9816 test $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.
9828 if 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 $?
9839 fi
9840 if 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;}
9843 fi
9844