masqmail-0.2
view configure @ 188:407874c88cf0
Added tag 0.2.30 for changeset 9c3765e1171b
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 27 Aug 2011 18:50:59 +0200 |
parents | ee2e92148aca |
children | bdd343cc4e19 |
line source
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for masqmail 0.2.30.
4 #
5 # Report bugs to <meillo@marmaro.de>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, 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 ## -------------------- ##
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
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
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
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"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and meillo@marmaro.de
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='masqmail'
562 PACKAGE_TARNAME='masqmail'
563 PACKAGE_VERSION='0.2.30'
564 PACKAGE_STRING='masqmail 0.2.30'
565 PACKAGE_BUGREPORT='meillo@marmaro.de'
566 PACKAGE_URL=''
568 ac_unique_file="src/masqmail.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 with_confdir
610 with_spooldir
611 with_logdir
612 USE_LIBLOCKFILE
613 LOCKFILE_LIBS
614 IDENT_LIBS
615 has_ident
616 MD5_LIBS
617 BASE64_LIBS
618 with_group
619 with_user
620 RESOLV_LIBS
621 GLIB_LIBS
622 GLIB_CFLAGS
623 PKG_CONFIG_LIBDIR
624 PKG_CONFIG_PATH
625 PKG_CONFIG
626 RANLIB
627 EGREP
628 GREP
629 CPP
630 am__fastdepCC_FALSE
631 am__fastdepCC_TRUE
632 CCDEPMODE
633 AMDEPBACKSLASH
634 AMDEP_FALSE
635 AMDEP_TRUE
636 am__quote
637 am__include
638 DEPDIR
639 OBJEXT
640 EXEEXT
641 ac_ct_CC
642 CPPFLAGS
643 LDFLAGS
644 CFLAGS
645 CC
646 am__untar
647 am__tar
648 AMTAR
649 am__leading_dot
650 SET_MAKE
651 AWK
652 mkdir_p
653 MKDIR_P
654 INSTALL_STRIP_PROGRAM
655 STRIP
656 install_sh
657 MAKEINFO
658 AUTOHEADER
659 AUTOMAKE
660 AUTOCONF
661 ACLOCAL
662 VERSION
663 PACKAGE
664 CYGPATH_W
665 am__isrc
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 target_alias
670 host_alias
671 build_alias
672 LIBS
673 ECHO_T
674 ECHO_N
675 ECHO_C
676 DEFS
677 mandir
678 localedir
679 libdir
680 psdir
681 pdfdir
682 dvidir
683 htmldir
684 infodir
685 docdir
686 oldincludedir
687 includedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 enable_dependency_tracking
711 enable_resolver
712 with_user
713 with_group
714 enable_debug
715 with_glib_static
716 enable_smtp_server
717 enable_pop3
718 enable_auth
719 enable_maildir
720 with_libcrypto
721 enable_ident
722 enable_mserver
723 with_liblockfile
724 with_logdir
725 with_spooldir
726 with_confdir
727 '
728 ac_precious_vars='build_alias
729 host_alias
730 target_alias
731 CC
732 CFLAGS
733 LDFLAGS
734 LIBS
735 CPPFLAGS
736 CPP
737 PKG_CONFIG
738 PKG_CONFIG_PATH
739 PKG_CONFIG_LIBDIR
740 GLIB_CFLAGS
741 GLIB_LIBS'
744 # Initialize some variables set by options.
745 ac_init_help=
746 ac_init_version=false
747 ac_unrecognized_opts=
748 ac_unrecognized_sep=
749 # The variables have the same names as the options, with
750 # dashes changed to underlines.
751 cache_file=/dev/null
752 exec_prefix=NONE
753 no_create=
754 no_recursion=
755 prefix=NONE
756 program_prefix=NONE
757 program_suffix=NONE
758 program_transform_name=s,x,x,
759 silent=
760 site=
761 srcdir=
762 verbose=
763 x_includes=NONE
764 x_libraries=NONE
766 # Installation directory options.
767 # These are left unexpanded so users can "make install exec_prefix=/foo"
768 # and all the variables that are supposed to be based on exec_prefix
769 # by default will actually change.
770 # Use braces instead of parens because sh, perl, etc. also accept them.
771 # (The list follows the same order as the GNU Coding Standards.)
772 bindir='${exec_prefix}/bin'
773 sbindir='${exec_prefix}/sbin'
774 libexecdir='${exec_prefix}/libexec'
775 datarootdir='${prefix}/share'
776 datadir='${datarootdir}'
777 sysconfdir='${prefix}/etc'
778 sharedstatedir='${prefix}/com'
779 localstatedir='${prefix}/var'
780 includedir='${prefix}/include'
781 oldincludedir='/usr/include'
782 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
783 infodir='${datarootdir}/info'
784 htmldir='${docdir}'
785 dvidir='${docdir}'
786 pdfdir='${docdir}'
787 psdir='${docdir}'
788 libdir='${exec_prefix}/lib'
789 localedir='${datarootdir}/locale'
790 mandir='${datarootdir}/man'
792 ac_prev=
793 ac_dashdash=
794 for ac_option
795 do
796 # If the previous option needs an argument, assign it.
797 if test -n "$ac_prev"; then
798 eval $ac_prev=\$ac_option
799 ac_prev=
800 continue
801 fi
803 case $ac_option in
804 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 *=) ac_optarg= ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
812 --)
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error $? "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
855 *"
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=no ;;
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
873 -enable-* | --enable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error $? "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
881 *"
882 "enable_$ac_useropt"
883 "*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=\$ac_optarg ;;
889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891 | --exec | --exe | --ex)
892 ac_prev=exec_prefix ;;
893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895 | --exec=* | --exe=* | --ex=*)
896 exec_prefix=$ac_optarg ;;
898 -gas | --gas | --ga | --g)
899 # Obsolete; use --with-gas.
900 with_gas=yes ;;
902 -help | --help | --hel | --he | -h)
903 ac_init_help=long ;;
904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905 ac_init_help=recursive ;;
906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907 ac_init_help=short ;;
909 -host | --host | --hos | --ho)
910 ac_prev=host_alias ;;
911 -host=* | --host=* | --hos=* | --ho=*)
912 host_alias=$ac_optarg ;;
914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915 ac_prev=htmldir ;;
916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917 | --ht=*)
918 htmldir=$ac_optarg ;;
920 -includedir | --includedir | --includedi | --included | --include \
921 | --includ | --inclu | --incl | --inc)
922 ac_prev=includedir ;;
923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924 | --includ=* | --inclu=* | --incl=* | --inc=*)
925 includedir=$ac_optarg ;;
927 -infodir | --infodir | --infodi | --infod | --info | --inf)
928 ac_prev=infodir ;;
929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930 infodir=$ac_optarg ;;
932 -libdir | --libdir | --libdi | --libd)
933 ac_prev=libdir ;;
934 -libdir=* | --libdir=* | --libdi=* | --libd=*)
935 libdir=$ac_optarg ;;
937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938 | --libexe | --libex | --libe)
939 ac_prev=libexecdir ;;
940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941 | --libexe=* | --libex=* | --libe=*)
942 libexecdir=$ac_optarg ;;
944 -localedir | --localedir | --localedi | --localed | --locale)
945 ac_prev=localedir ;;
946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947 localedir=$ac_optarg ;;
949 -localstatedir | --localstatedir | --localstatedi | --localstated \
950 | --localstate | --localstat | --localsta | --localst | --locals)
951 ac_prev=localstatedir ;;
952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954 localstatedir=$ac_optarg ;;
956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957 ac_prev=mandir ;;
958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959 mandir=$ac_optarg ;;
961 -nfp | --nfp | --nf)
962 # Obsolete; use --without-fp.
963 with_fp=no ;;
965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966 | --no-cr | --no-c | -n)
967 no_create=yes ;;
969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971 no_recursion=yes ;;
973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975 | --oldin | --oldi | --old | --ol | --o)
976 ac_prev=oldincludedir ;;
977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980 oldincludedir=$ac_optarg ;;
982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983 ac_prev=prefix ;;
984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985 prefix=$ac_optarg ;;
987 -program-prefix | --program-prefix | --program-prefi | --program-pref \
988 | --program-pre | --program-pr | --program-p)
989 ac_prev=program_prefix ;;
990 -program-prefix=* | --program-prefix=* | --program-prefi=* \
991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992 program_prefix=$ac_optarg ;;
994 -program-suffix | --program-suffix | --program-suffi | --program-suff \
995 | --program-suf | --program-su | --program-s)
996 ac_prev=program_suffix ;;
997 -program-suffix=* | --program-suffix=* | --program-suffi=* \
998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999 program_suffix=$ac_optarg ;;
1001 -program-transform-name | --program-transform-name \
1002 | --program-transform-nam | --program-transform-na \
1003 | --program-transform-n | --program-transform- \
1004 | --program-transform | --program-transfor \
1005 | --program-transfo | --program-transf \
1006 | --program-trans | --program-tran \
1007 | --progr-tra | --program-tr | --program-t)
1008 ac_prev=program_transform_name ;;
1009 -program-transform-name=* | --program-transform-name=* \
1010 | --program-transform-nam=* | --program-transform-na=* \
1011 | --program-transform-n=* | --program-transform-=* \
1012 | --program-transform=* | --program-transfor=* \
1013 | --program-transfo=* | --program-transf=* \
1014 | --program-trans=* | --program-tran=* \
1015 | --progr-tra=* | --program-tr=* | --program-t=*)
1016 program_transform_name=$ac_optarg ;;
1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019 ac_prev=pdfdir ;;
1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021 pdfdir=$ac_optarg ;;
1023 -psdir | --psdir | --psdi | --psd | --ps)
1024 ac_prev=psdir ;;
1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026 psdir=$ac_optarg ;;
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1030 silent=yes ;;
1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033 ac_prev=sbindir ;;
1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035 | --sbi=* | --sb=*)
1036 sbindir=$ac_optarg ;;
1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040 | --sharedst | --shareds | --shared | --share | --shar \
1041 | --sha | --sh)
1042 ac_prev=sharedstatedir ;;
1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046 | --sha=* | --sh=*)
1047 sharedstatedir=$ac_optarg ;;
1049 -site | --site | --sit)
1050 ac_prev=site ;;
1051 -site=* | --site=* | --sit=*)
1052 site=$ac_optarg ;;
1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055 ac_prev=srcdir ;;
1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057 srcdir=$ac_optarg ;;
1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060 | --syscon | --sysco | --sysc | --sys | --sy)
1061 ac_prev=sysconfdir ;;
1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064 sysconfdir=$ac_optarg ;;
1066 -target | --target | --targe | --targ | --tar | --ta | --t)
1067 ac_prev=target_alias ;;
1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069 target_alias=$ac_optarg ;;
1071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072 verbose=yes ;;
1074 -version | --version | --versio | --versi | --vers | -V)
1075 ac_init_version=: ;;
1077 -with-* | --with-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=\$ac_optarg ;;
1093 -without-* | --without-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=no ;;
1109 --x)
1110 # Obsolete; use --with-x.
1111 with_x=yes ;;
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1127 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1128 Try \`$0 --help' for more information"
1129 ;;
1131 *=*)
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 case $ac_envvar in #(
1135 '' | [0-9]* | *[!_$as_cr_alnum]* )
1136 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1137 esac
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1141 *)
1142 # FIXME: should be removed in autoconf 3.0.
1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1147 ;;
1149 esac
1150 done
1152 if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 as_fn_error $? "missing argument to $ac_option"
1155 fi
1157 if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1159 no) ;;
1160 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 esac
1163 fi
1165 # Check all directory arguments for consistency.
1166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
1170 do
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1173 case $ac_val in
1174 */ )
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1177 esac
1178 # Be sure to have absolute directory names.
1179 case $ac_val in
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182 esac
1183 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1184 done
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1189 build=$build_alias
1190 host=$host_alias
1191 target=$target_alias
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1198 If a cross compiler is detected then cross compile mode will be used" >&2
1199 elif test "x$build_alias" != "x$host_alias"; then
1200 cross_compiling=yes
1201 fi
1202 fi
1204 ac_tool_prefix=
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 test "$silent" = yes && exec 6>/dev/null
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 as_fn_error $? "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 as_fn_error $? "pwd does not report name of working directory"
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1225 X"$as_myself" : 'X\(//\)$' \| \
1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\/\)[^/].*/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)$/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\).*/{
1241 s//\1/
1242 q
1243 }
1244 s/.*/./; q'`
1245 srcdir=$ac_confdir
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 srcdir=..
1248 fi
1249 else
1250 ac_srcdir_defaulted=no
1251 fi
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1259 pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 srcdir=.
1263 fi
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1277 #
1278 # Report the --help message.
1279 #
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1283 cat <<_ACEOF
1284 \`configure' configures masqmail 0.2.30 to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1293 Configuration:
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking ...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 [PREFIX]
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/masqmail]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1337 _ACEOF
1339 cat <<\_ACEOF
1341 Program names:
1342 --program-prefix=PREFIX prepend PREFIX to installed program names
1343 --program-suffix=SUFFIX append SUFFIX to installed program names
1344 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1345 _ACEOF
1346 fi
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of masqmail 0.2.30:";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-option-checking ignore unrecognized --enable/--with options
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --disable-dependency-tracking speeds up one-time build
1359 --enable-dependency-tracking do not reject slow dependency extractors
1360 --disable-resolver disable resolver support
1361 --disable-debug disable debugging
1362 --disable-smtp-server disable smtp server support
1363 --disable-pop3 disable pop3 support
1364 --enable-auth enable AUTH (RFC 2554) client support
1365 --enable-maildir enable qmail style maildir support
1366 --enable-ident enable ident (RFC 1413) support
1367 --enable-mserver enable mserver support
1369 Optional Packages:
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-user=USER set user mail
1373 --with-group=GROUP set group trusted
1374 --with-glib-static=path link glib statically (path mandatory!)
1375 --with-libcrypto use libcrypto
1376 --with-liblockfile use liblock (for Debian)
1377 --with-logdir=DIR set log directory /var/masqmail
1378 --with-spooldir=DIR set spool directory /var/spool/masqmail
1379 --with-confdir directory for configuration /etc/masqmail
1381 Some influential environment variables:
1382 CC C compiler command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1385 nonstandard directory <lib dir>
1386 LIBS libraries to pass to the linker, e.g. -l<library>
1387 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
1389 CPP C preprocessor
1390 PKG_CONFIG path to pkg-config utility
1391 PKG_CONFIG_PATH
1392 directories to add to pkg-config's search path
1393 PKG_CONFIG_LIBDIR
1394 path overriding pkg-config's built-in search path
1395 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1396 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1401 Report bugs to <meillo@marmaro.de>.
1402 _ACEOF
1403 ac_status=$?
1404 fi
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
1412 ac_builddir=.
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *)
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1459 fi
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 masqmail configure 0.2.30
1465 generated by GNU Autoconf 2.68
1467 Copyright (C) 2010 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1472 fi
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1482 {
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1498 fi
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1510 fi
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 as_fn_set_status $ac_retval
1514 } # ac_fn_c_try_compile
1516 # ac_fn_c_try_link LINENO
1517 # -----------------------
1518 # Try to link conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_link ()
1520 {
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext conftest$ac_exeext
1523 if { { ac_try="$ac_link"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_link") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest$ac_exeext && {
1542 test "$cross_compiling" = yes ||
1543 $as_test_x conftest$ac_exeext
1544 }; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1550 ac_retval=1
1551 fi
1552 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1553 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1554 # interfere with the next link command; also delete a directory that is
1555 # left behind by Apple's compiler. We do this before executing the actions.
1556 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1560 } # ac_fn_c_try_link
1562 # ac_fn_c_try_cpp LINENO
1563 # ----------------------
1564 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_cpp ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_cpp conftest.$ac_ext"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } > conftest.i && {
1584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 }; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1597 } # ac_fn_c_try_cpp
1599 # ac_fn_c_try_run LINENO
1600 # ----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602 # that executables *can* be run.
1603 ac_fn_c_try_run ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_link"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>&5
1614 ac_status=$?
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617 { { case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_try") 2>&5
1624 ac_status=$?
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; }; }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: program exited with status $ac_status" >&5
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=$ac_status
1634 fi
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_run
1641 # ac_fn_c_check_func LINENO FUNC VAR
1642 # ----------------------------------
1643 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1644 ac_fn_c_check_func ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1651 else
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1654 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1656 #define $2 innocuous_$2
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char $2 (); below.
1660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1661 <limits.h> exists even on freestanding compilers. */
1663 #ifdef __STDC__
1664 # include <limits.h>
1665 #else
1666 # include <assert.h>
1667 #endif
1669 #undef $2
1671 /* Override any GCC internal prototype to avoid an error.
1672 Use char because int might match the return type of a GCC
1673 builtin and then its argument prototype would still apply. */
1674 #ifdef __cplusplus
1675 extern "C"
1676 #endif
1677 char $2 ();
1678 /* The GNU C library defines this for functions which it implements
1679 to always fail with ENOSYS. Some functions are actually named
1680 something starting with __ and the normal name is an alias. */
1681 #if defined __stub_$2 || defined __stub___$2
1682 choke me
1683 #endif
1685 int
1686 main ()
1687 {
1688 return $2 ();
1689 ;
1690 return 0;
1691 }
1692 _ACEOF
1693 if ac_fn_c_try_link "$LINENO"; then :
1694 eval "$3=yes"
1695 else
1696 eval "$3=no"
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext \
1699 conftest$ac_exeext conftest.$ac_ext
1700 fi
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 } # ac_fn_c_check_func
1708 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1711 # the include files in INCLUDES and setting the cache variable VAR
1712 # accordingly.
1713 ac_fn_c_check_header_mongrel ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if eval \${$3+:} false; then :
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721 fi
1722 eval ac_res=\$$3
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 else
1726 # Is the header compilable?
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1728 $as_echo_n "checking $2 usability... " >&6; }
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735 ac_header_compiler=yes
1736 else
1737 ac_header_compiler=no
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1741 $as_echo "$ac_header_compiler" >&6; }
1743 # Is the header present?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1745 $as_echo_n "checking $2 presence... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_cpp "$LINENO"; then :
1751 ac_header_preproc=yes
1752 else
1753 ac_header_preproc=no
1754 fi
1755 rm -f conftest.err conftest.i conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1757 $as_echo "$ac_header_preproc" >&6; }
1759 # So? What about this header?
1760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1761 yes:no: )
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1763 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 ;;
1767 no:yes:* )
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1769 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1771 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1773 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1775 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778 ( $as_echo "## -------------------------------- ##
1779 ## Report this to meillo@marmaro.de ##
1780 ## -------------------------------- ##"
1781 ) | sed "s/^/$as_me: WARNING: /" >&2
1782 ;;
1783 esac
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 eval "$3=\$ac_header_compiler"
1790 fi
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 fi
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_mongrel
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818 else
1819 eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 } # ac_fn_c_check_header_compile
1830 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1831 # -------------------------------------------
1832 # Tests whether TYPE exists after having included INCLUDES, setting cache
1833 # variable VAR accordingly.
1834 ac_fn_c_check_type ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 eval "$3=no"
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $4
1846 int
1847 main ()
1848 {
1849 if (sizeof ($2))
1850 return 0;
1851 ;
1852 return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_compile "$LINENO"; then :
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $4
1859 int
1860 main ()
1861 {
1862 if (sizeof (($2)))
1863 return 0;
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1870 else
1871 eval "$3=yes"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_type
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1887 It was created by masqmail $as_me 0.2.30, which was
1888 generated by GNU Autoconf 2.68. Invocation command line was
1890 $ $0 $@
1892 _ACEOF
1893 exec 5>>config.log
1894 {
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917 _ASUNAME
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 $as_echo "PATH: $as_dir"
1925 done
1926 IFS=$as_save_IFS
1928 } >&5
1930 cat >&5 <<_ACEOF
1933 ## ----------- ##
1934 ## Core tests. ##
1935 ## ----------- ##
1937 _ACEOF
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_configure_args=
1946 ac_configure_args0=
1947 ac_configure_args1=
1948 ac_must_keep_next=false
1949 for ac_pass in 1 2
1950 do
1951 for ac_arg
1952 do
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 esac
1961 case $ac_pass in
1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 2)
1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1976 ;;
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1979 fi
1980 as_fn_append ac_configure_args " '$ac_arg'"
1981 ;;
1982 esac
1983 done
1984 done
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log. We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1998 $as_echo "## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##"
2001 echo
2002 # The following way of writing the cache mishandles newlines in values,
2003 (
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2006 case $ac_val in #(
2007 *${as_nl}*)
2008 case $ac_var in #(
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 esac
2012 case $ac_var in #(
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2016 esac ;;
2017 esac
2018 done
2019 (set) 2>&1 |
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2022 sed -n \
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 ;; #(
2026 *)
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 ;;
2029 esac |
2030 sort
2031 )
2032 echo
2034 $as_echo "## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##"
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2048 if test -n "$ac_subst_files"; then
2049 $as_echo "## ------------------- ##
2050 ## File substitutions. ##
2051 ## ------------------- ##"
2052 echo
2053 for ac_var in $ac_subst_files
2054 do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2062 fi
2064 if test -s confdefs.h; then
2065 $as_echo "## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##"
2068 echo
2069 cat confdefs.h
2070 echo
2071 fi
2072 test "$ac_signal" != 0 &&
2073 $as_echo "$as_me: caught signal $ac_signal"
2074 $as_echo "$as_me: exit $exit_status"
2075 } >&5
2076 rm -f core *.core core.conftest.* &&
2077 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2078 exit $exit_status
2079 ' 0
2080 for ac_signal in 1 2 13 15; do
2081 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082 done
2083 ac_signal=0
2085 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2086 rm -f -r conftest* confdefs.h
2088 $as_echo "/* confdefs.h */" > confdefs.h
2090 # Predefined preprocessor variables.
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_NAME "$PACKAGE_NAME"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2102 _ACEOF
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_STRING "$PACKAGE_STRING"
2106 _ACEOF
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_URL "$PACKAGE_URL"
2114 _ACEOF
2117 # Let the site file select an alternate cache file if it wants to.
2118 # Prefer an explicitly selected file to automatically selected ones.
2119 ac_site_file1=NONE
2120 ac_site_file2=NONE
2121 if test -n "$CONFIG_SITE"; then
2122 # We do not want a PATH search for config.site.
2123 case $CONFIG_SITE in #((
2124 -*) ac_site_file1=./$CONFIG_SITE;;
2125 */*) ac_site_file1=$CONFIG_SITE;;
2126 *) ac_site_file1=./$CONFIG_SITE;;
2127 esac
2128 elif test "x$prefix" != xNONE; then
2129 ac_site_file1=$prefix/share/config.site
2130 ac_site_file2=$prefix/etc/config.site
2131 else
2132 ac_site_file1=$ac_default_prefix/share/config.site
2133 ac_site_file2=$ac_default_prefix/etc/config.site
2134 fi
2135 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 do
2137 test "x$ac_site_file" = xNONE && continue
2138 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141 sed 's/^/| /' "$ac_site_file" >&5
2142 . "$ac_site_file" \
2143 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145 as_fn_error $? "failed to load site script $ac_site_file
2146 See \`config.log' for more details" "$LINENO" 5; }
2147 fi
2148 done
2150 if test -r "$cache_file"; then
2151 # Some versions of bash will fail to source /dev/null (special files
2152 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2153 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2155 $as_echo "$as_me: loading cache $cache_file" >&6;}
2156 case $cache_file in
2157 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2158 *) . "./$cache_file";;
2159 esac
2160 fi
2161 else
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2163 $as_echo "$as_me: creating cache $cache_file" >&6;}
2164 >$cache_file
2165 fi
2167 # Check that the precious variables saved in the cache have kept the same
2168 # value.
2169 ac_cache_corrupted=false
2170 for ac_var in $ac_precious_vars; do
2171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2172 eval ac_new_set=\$ac_env_${ac_var}_set
2173 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2174 eval ac_new_val=\$ac_env_${ac_var}_value
2175 case $ac_old_set,$ac_new_set in
2176 set,)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,set)
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2183 ac_cache_corrupted=: ;;
2184 ,);;
2185 *)
2186 if test "x$ac_old_val" != "x$ac_new_val"; then
2187 # differences in whitespace do not lead to failure.
2188 ac_old_val_w=`echo x $ac_old_val`
2189 ac_new_val_w=`echo x $ac_new_val`
2190 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2192 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2193 ac_cache_corrupted=:
2194 else
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2196 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2197 eval $ac_var=\$ac_old_val
2198 fi
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2200 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2202 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2203 fi;;
2204 esac
2205 # Pass precious variables to config.status.
2206 if test "$ac_new_set" = set; then
2207 case $ac_new_val in
2208 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 *) ac_arg=$ac_var=$ac_new_val ;;
2210 esac
2211 case " $ac_configure_args " in
2212 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2213 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2214 esac
2215 fi
2216 done
2217 if $ac_cache_corrupted; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2221 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2222 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223 fi
2224 ## -------------------- ##
2225 ## Main body of script. ##
2226 ## -------------------- ##
2228 ac_ext=c
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236 ac_config_headers="$ac_config_headers config.h"
2238 am__api_version='1.11'
2240 ac_aux_dir=
2241 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2242 if test -f "$ac_dir/install-sh"; then
2243 ac_aux_dir=$ac_dir
2244 ac_install_sh="$ac_aux_dir/install-sh -c"
2245 break
2246 elif test -f "$ac_dir/install.sh"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/install.sh -c"
2249 break
2250 elif test -f "$ac_dir/shtool"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/shtool install -c"
2253 break
2254 fi
2255 done
2256 if test -z "$ac_aux_dir"; then
2257 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2258 fi
2260 # These three variables are undocumented and unsupported,
2261 # and are intended to be withdrawn in a future Autoconf release.
2262 # They can cause serious problems if a builder's source tree is in a directory
2263 # whose full name contains unusual characters.
2264 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2265 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2266 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2269 # Find a good install program. We prefer a C program (faster),
2270 # so one script is as good as another. But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2275 # AIX /bin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 # Reject install programs that cannot install multiple files.
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2285 if test -z "$INSTALL"; then
2286 if ${ac_cv_path_install+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 # Account for people who put trailing slashes in PATH elements.
2295 case $as_dir/ in #((
2296 ./ | .// | /[cC]/* | \
2297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299 /usr/ucb/* ) ;;
2300 *)
2301 # OSF1 and SCO ODT 3.0 have their own names for install.
2302 # Don't use installbsd from OSF since it installs stuff as root
2303 # by default.
2304 for ac_prog in ginstall scoinst install; do
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2307 if test $ac_prog = install &&
2308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309 # AIX install. It has an incompatible calling convention.
2310 :
2311 elif test $ac_prog = install &&
2312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # program-specific install script used by HP pwplus--don't use.
2314 :
2315 else
2316 rm -rf conftest.one conftest.two conftest.dir
2317 echo one > conftest.one
2318 echo two > conftest.two
2319 mkdir conftest.dir
2320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2321 test -s conftest.one && test -s conftest.two &&
2322 test -s conftest.dir/conftest.one &&
2323 test -s conftest.dir/conftest.two
2324 then
2325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326 break 3
2327 fi
2328 fi
2329 fi
2330 done
2331 done
2332 ;;
2333 esac
2335 done
2336 IFS=$as_save_IFS
2338 rm -rf conftest.one conftest.two conftest.dir
2340 fi
2341 if test "${ac_cv_path_install+set}" = set; then
2342 INSTALL=$ac_cv_path_install
2343 else
2344 # As a last resort, use the slow shell script. Don't cache a
2345 # value for INSTALL within a source directory, because that will
2346 # break other packages using the cache if that directory is
2347 # removed, or if the value is a relative name.
2348 INSTALL=$ac_install_sh
2349 fi
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352 $as_echo "$INSTALL" >&6; }
2354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355 # It thinks the first close brace ends the variable substitution.
2356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363 $as_echo_n "checking whether build environment is sane... " >&6; }
2364 # Just in case
2365 sleep 1
2366 echo timestamp > conftest.file
2367 # Reject unsafe characters in $srcdir or the absolute working directory
2368 # name. Accept space and tab only in the latter.
2369 am_lf='
2370 '
2371 case `pwd` in
2372 *[\\\"\#\$\&\'\`$am_lf]*)
2373 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2374 esac
2375 case $srcdir in
2376 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2377 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2378 esac
2380 # Do `set' in a subshell so we don't clobber the current shell's
2381 # arguments. Must try -L first in case configure is actually a
2382 # symlink; some systems play weird games with the mod time of symlinks
2383 # (eg FreeBSD returns the mod time of the symlink's containing
2384 # directory).
2385 if (
2386 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387 if test "$*" = "X"; then
2388 # -L didn't work.
2389 set X `ls -t "$srcdir/configure" conftest.file`
2390 fi
2391 rm -f conftest.file
2392 if test "$*" != "X $srcdir/configure conftest.file" \
2393 && test "$*" != "X conftest.file $srcdir/configure"; then
2395 # If neither matched, then we have a broken ls. This can happen
2396 # if, for instance, CONFIG_SHELL is bash and it inherits a
2397 # broken ls alias from the environment. This has actually
2398 # happened. Such a system could not be considered "sane".
2399 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2400 alias in your environment" "$LINENO" 5
2401 fi
2403 test "$2" = conftest.file
2404 )
2405 then
2406 # Ok.
2407 :
2408 else
2409 as_fn_error $? "newly created file is older than distributed files!
2410 Check your system clock" "$LINENO" 5
2411 fi
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2413 $as_echo "yes" >&6; }
2414 test "$program_prefix" != NONE &&
2415 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2416 # Use a double $ so make ignores it.
2417 test "$program_suffix" != NONE &&
2418 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2419 # Double any \ or $.
2420 # By default was `s,x,x', remove it if useless.
2421 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2422 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2424 # expand $ac_aux_dir to an absolute path
2425 am_aux_dir=`cd $ac_aux_dir && pwd`
2427 if test x"${MISSING+set}" != xset; then
2428 case $am_aux_dir in
2429 *\ * | *\ *)
2430 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2431 *)
2432 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2433 esac
2434 fi
2435 # Use eval to expand $SHELL
2436 if eval "$MISSING --run true"; then
2437 am_missing_run="$MISSING --run "
2438 else
2439 am_missing_run=
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2441 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2442 fi
2444 if test x"${install_sh}" != xset; then
2445 case $am_aux_dir in
2446 *\ * | *\ *)
2447 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2448 *)
2449 install_sh="\${SHELL} $am_aux_dir/install-sh"
2450 esac
2451 fi
2453 # Installed binaries are usually stripped using `strip' when the user
2454 # run `make install-strip'. However `strip' might not be the right
2455 # tool to use in cross-compilation environments, therefore Automake
2456 # will honor the `STRIP' environment variable to overrule this program.
2457 if test "$cross_compiling" != no; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}strip; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_STRIP+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$STRIP"; then
2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2484 fi
2485 fi
2486 STRIP=$ac_cv_prog_STRIP
2487 if test -n "$STRIP"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2489 $as_echo "$STRIP" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2496 fi
2497 if test -z "$ac_cv_prog_STRIP"; then
2498 ac_ct_STRIP=$STRIP
2499 # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$ac_ct_STRIP"; then
2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_ac_ct_STRIP="strip"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2524 fi
2525 fi
2526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527 if test -n "$ac_ct_STRIP"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2529 $as_echo "$ac_ct_STRIP" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2535 if test "x$ac_ct_STRIP" = x; then
2536 STRIP=":"
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544 STRIP=$ac_ct_STRIP
2545 fi
2546 else
2547 STRIP="$ac_cv_prog_STRIP"
2548 fi
2550 fi
2551 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2554 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2555 if test -z "$MKDIR_P"; then
2556 if ${ac_cv_path_mkdir+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_prog in mkdir gmkdir; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568 'mkdir (GNU coreutils) '* | \
2569 'mkdir (coreutils) '* | \
2570 'mkdir (fileutils) '4.1*)
2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2572 break 3;;
2573 esac
2574 done
2575 done
2576 done
2577 IFS=$as_save_IFS
2579 fi
2581 test -d ./--version && rmdir ./--version
2582 if test "${ac_cv_path_mkdir+set}" = set; then
2583 MKDIR_P="$ac_cv_path_mkdir -p"
2584 else
2585 # As a last resort, use the slow shell script. Don't cache a
2586 # value for MKDIR_P within a source directory, because that will
2587 # break other packages using the cache if that directory is
2588 # removed, or if the value is a relative name.
2589 MKDIR_P="$ac_install_sh -d"
2590 fi
2591 fi
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2593 $as_echo "$MKDIR_P" >&6; }
2595 mkdir_p="$MKDIR_P"
2596 case $mkdir_p in
2597 [\\/$]* | ?:[\\/]*) ;;
2598 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2599 esac
2601 for ac_prog in gawk mawk nawk awk
2602 do
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_AWK+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$AWK"; then
2611 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_AWK="$ac_prog"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2628 fi
2629 fi
2630 AWK=$ac_cv_prog_AWK
2631 if test -n "$AWK"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2633 $as_echo "$AWK" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2640 test -n "$AWK" && break
2641 done
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2644 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2645 set x ${MAKE-make}
2646 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2647 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 cat >conftest.make <<\_ACEOF
2651 SHELL = /bin/sh
2652 all:
2653 @echo '@@@%%%=$(MAKE)=@@@%%%'
2654 _ACEOF
2655 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2656 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2657 *@@@%%%=?*=@@@%%%*)
2658 eval ac_cv_prog_make_${ac_make}_set=yes;;
2659 *)
2660 eval ac_cv_prog_make_${ac_make}_set=no;;
2661 esac
2662 rm -f conftest.make
2663 fi
2664 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2666 $as_echo "yes" >&6; }
2667 SET_MAKE=
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2671 SET_MAKE="MAKE=${MAKE-make}"
2672 fi
2674 rm -rf .tst 2>/dev/null
2675 mkdir .tst 2>/dev/null
2676 if test -d .tst; then
2677 am__leading_dot=.
2678 else
2679 am__leading_dot=_
2680 fi
2681 rmdir .tst 2>/dev/null
2683 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2684 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2685 # is not polluted with repeated "-I."
2686 am__isrc=' -I$(srcdir)'
2687 # test to see if srcdir already configured
2688 if test -f $srcdir/config.status; then
2689 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2690 fi
2691 fi
2693 # test whether we have cygpath
2694 if test -z "$CYGPATH_W"; then
2695 if (cygpath --version) >/dev/null 2>/dev/null; then
2696 CYGPATH_W='cygpath -w'
2697 else
2698 CYGPATH_W=echo
2699 fi
2700 fi
2703 # Define the identity of the package.
2704 PACKAGE='masqmail'
2705 VERSION='0.2.30'
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE "$PACKAGE"
2710 _ACEOF
2713 cat >>confdefs.h <<_ACEOF
2714 #define VERSION "$VERSION"
2715 _ACEOF
2717 # Some tools Automake needs.
2719 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2722 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2725 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2728 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2731 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2733 # We need awk for the "check" target. The system "awk" is bad on
2734 # some platforms.
2735 # Always define AMTAR for backward compatibility.
2737 AMTAR=${AMTAR-"${am_missing_run}tar"}
2739 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 if test -n "$ac_tool_prefix"; then
2754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_CC+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2784 $as_echo "$CC" >&6; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2791 fi
2792 if test -z "$ac_cv_prog_CC"; then
2793 ac_ct_CC=$CC
2794 # Extract the first word of "gcc", so it can be a program name with args.
2795 set dummy gcc; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_ac_ct_CC="gcc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817 IFS=$as_save_IFS
2819 fi
2820 fi
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2830 if test "x$ac_ct_CC" = x; then
2831 CC=""
2832 else
2833 case $cross_compiling:$ac_tool_warned in
2834 yes:)
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837 ac_tool_warned=yes ;;
2838 esac
2839 CC=$ac_ct_CC
2840 fi
2841 else
2842 CC="$ac_cv_prog_CC"
2843 fi
2845 if test -z "$CC"; then
2846 if test -n "$ac_tool_prefix"; then
2847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}cc; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_CC+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_CC="${ac_tool_prefix}cc"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868 done
2869 done
2870 IFS=$as_save_IFS
2872 fi
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 $as_echo "$CC" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881 fi
2884 fi
2885 fi
2886 if test -z "$CC"; then
2887 # Extract the first word of "cc", so it can be a program name with args.
2888 set dummy cc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 ac_prog_rejected=no
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2906 ac_prog_rejected=yes
2907 continue
2908 fi
2909 ac_cv_prog_CC="cc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2917 if test $ac_prog_rejected = yes; then
2918 # We found a bogon in the path, so make sure we never use it.
2919 set dummy $ac_cv_prog_CC
2920 shift
2921 if test $# != 0; then
2922 # We chose a different compiler from the bogus one.
2923 # However, it has the same basename, so the bogon will be chosen
2924 # first if we set CC to just the basename; use the full file name.
2925 shift
2926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 fi
2928 fi
2929 fi
2930 fi
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2941 fi
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 for ac_prog in cl.exe
2945 do
2946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_CC+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2983 test -n "$CC" && break
2984 done
2985 fi
2986 if test -z "$CC"; then
2987 ac_ct_CC=$CC
2988 for ac_prog in cl.exe
2989 do
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_ac_ct_CC="$ac_prog"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3015 fi
3016 fi
3017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018 if test -n "$ac_ct_CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020 $as_echo "$ac_ct_CC" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3027 test -n "$ac_ct_CC" && break
3028 done
3030 if test "x$ac_ct_CC" = x; then
3031 CC=""
3032 else
3033 case $cross_compiling:$ac_tool_warned in
3034 yes:)
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3038 esac
3039 CC=$ac_ct_CC
3040 fi
3041 fi
3043 fi
3046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "no acceptable C compiler found in \$PATH
3049 See \`config.log' for more details" "$LINENO" 5; }
3051 # Provide some information about the compiler.
3052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3053 set X $ac_compile
3054 ac_compiler=$2
3055 for ac_option in --version -v -V -qversion; do
3056 { { ac_try="$ac_compiler $ac_option >&5"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3064 ac_status=$?
3065 if test -s conftest.err; then
3066 sed '10a\
3067 ... rest of stderr output deleted ...
3068 10q' conftest.err >conftest.er1
3069 cat conftest.er1 >&5
3070 fi
3071 rm -f conftest.er1 conftest.err
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }
3074 done
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3079 int
3080 main ()
3081 {
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 ac_clean_files_save=$ac_clean_files
3088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3089 # Try to create an executable without -o first, disregard a.out.
3090 # It will help us diagnose broken compilers, and finding out an intuition
3091 # of exeext.
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3093 $as_echo_n "checking whether the C compiler works... " >&6; }
3094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3096 # The possible output files:
3097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3099 ac_rmfiles=
3100 for ac_file in $ac_files
3101 do
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 esac
3106 done
3107 rm -f $ac_rmfiles
3109 if { { ac_try="$ac_link_default"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115 $as_echo "$ac_try_echo"; } >&5
3116 (eval "$ac_link_default") 2>&5
3117 ac_status=$?
3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; then :
3120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3123 # so that the user can short-circuit this test for compilers unknown to
3124 # Autoconf.
3125 for ac_file in $ac_files ''
3126 do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3130 ;;
3131 [ab].out )
3132 # We found the default executable, but exeext='' is most
3133 # certainly right.
3134 break;;
3135 *.* )
3136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 then :; else
3138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 fi
3140 # We set ac_cv_exeext here because the later test for it is not
3141 # safe: cross compilers may not add the suffix if given an `-o'
3142 # argument, so we may need to know it at that point already.
3143 # Even if this section looks crufty: it has the advantage of
3144 # actually working.
3145 break;;
3146 * )
3147 break;;
3148 esac
3149 done
3150 test "$ac_cv_exeext" = no && ac_cv_exeext=
3152 else
3153 ac_file=''
3154 fi
3155 if test -z "$ac_file"; then :
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 $as_echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error 77 "C compiler cannot create executables
3164 See \`config.log' for more details" "$LINENO" 5; }
3165 else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168 fi
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170 $as_echo_n "checking for C compiler default output file name... " >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3172 $as_echo "$ac_file" >&6; }
3173 ac_exeext=$ac_cv_exeext
3175 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3176 ac_clean_files=$ac_clean_files_save
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3178 $as_echo_n "checking for suffix of executables... " >&6; }
3179 if { { ac_try="$ac_link"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_link") 2>&5
3187 ac_status=$?
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; then :
3190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3191 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3192 # work properly (i.e., refer to `conftest.exe'), while it won't with
3193 # `rm'.
3194 for ac_file in conftest.exe conftest conftest.*; do
3195 test -f "$ac_file" || continue
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3199 break;;
3200 * ) break;;
3201 esac
3202 done
3203 else
3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3207 See \`config.log' for more details" "$LINENO" 5; }
3208 fi
3209 rm -f conftest conftest$ac_cv_exeext
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3211 $as_echo "$ac_cv_exeext" >&6; }
3213 rm -f conftest.$ac_ext
3214 EXEEXT=$ac_cv_exeext
3215 ac_exeext=$EXEEXT
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3218 #include <stdio.h>
3219 int
3220 main ()
3221 {
3222 FILE *f = fopen ("conftest.out", "w");
3223 return ferror (f) || fclose (f) != 0;
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 ac_clean_files="$ac_clean_files conftest.out"
3230 # Check that the compiler produces executables we can run. If not, either
3231 # the compiler is broken, or we cross compile.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3233 $as_echo_n "checking whether we are cross compiling... " >&6; }
3234 if test "$cross_compiling" != yes; then
3235 { { ac_try="$ac_link"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3246 if { ac_try='./conftest$ac_cv_exeext'
3247 { { case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_try") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; }; then
3257 cross_compiling=no
3258 else
3259 if test "$cross_compiling" = maybe; then
3260 cross_compiling=yes
3261 else
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error $? "cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details" "$LINENO" 5; }
3267 fi
3268 fi
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3271 $as_echo "$cross_compiling" >&6; }
3273 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3274 ac_clean_files=$ac_clean_files_save
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3276 $as_echo_n "checking for suffix of object files... " >&6; }
3277 if ${ac_cv_objext+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3283 int
3284 main ()
3285 {
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.o conftest.obj
3292 if { { ac_try="$ac_compile"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_compile") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 for ac_file in conftest.o conftest.obj conftest.*; do
3304 test -f "$ac_file" || continue;
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308 break;;
3309 esac
3310 done
3311 else
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error $? "cannot compute suffix of object files: cannot compile
3318 See \`config.log' for more details" "$LINENO" 5; }
3319 fi
3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3323 $as_echo "$ac_cv_objext" >&6; }
3324 OBJEXT=$ac_cv_objext
3325 ac_objext=$OBJEXT
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3328 if ${ac_cv_c_compiler_gnu+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3334 int
3335 main ()
3336 {
3337 #ifndef __GNUC__
3338 choke me
3339 #endif
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_compiler_gnu=yes
3347 else
3348 ac_compiler_gnu=no
3349 fi
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3356 if test $ac_compiler_gnu = yes; then
3357 GCC=yes
3358 else
3359 GCC=
3360 fi
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3365 if ${ac_cv_prog_cc_g+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3370 ac_cv_prog_cc_g=no
3371 CFLAGS="-g"
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3375 int
3376 main ()
3377 {
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_cv_prog_cc_g=yes
3385 else
3386 CFLAGS=""
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3390 int
3391 main ()
3392 {
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3400 else
3401 ac_c_werror_flag=$ac_save_c_werror_flag
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3406 int
3407 main ()
3408 {
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_g=yes
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 fi
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_c_werror_flag=$ac_save_c_werror_flag
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3425 $as_echo "$ac_cv_prog_cc_g" >&6; }
3426 if test "$ac_test_CFLAGS" = set; then
3427 CFLAGS=$ac_save_CFLAGS
3428 elif test $ac_cv_prog_cc_g = yes; then
3429 if test "$GCC" = yes; then
3430 CFLAGS="-g -O2"
3431 else
3432 CFLAGS="-g"
3433 fi
3434 else
3435 if test "$GCC" = yes; then
3436 CFLAGS="-O2"
3437 else
3438 CFLAGS=
3439 fi
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3443 if ${ac_cv_prog_cc_c89+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 ac_cv_prog_cc_c89=no
3447 ac_save_CC=$CC
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450 #include <stdarg.h>
3451 #include <stdio.h>
3452 #include <sys/types.h>
3453 #include <sys/stat.h>
3454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3455 struct buf { int x; };
3456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457 static char *e (p, i)
3458 char **p;
3459 int i;
3460 {
3461 return p[i];
3462 }
3463 static char *f (char * (*g) (char **, int), char **p, ...)
3464 {
3465 char *s;
3466 va_list v;
3467 va_start (v,p);
3468 s = g (p, va_arg (v,int));
3469 va_end (v);
3470 return s;
3471 }
3473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3474 function prototypes and stuff, but not '\xHH' hex character constants.
3475 These don't provoke an error unfortunately, instead are silently treated
3476 as 'x'. The following induces an error, until -std is added to get
3477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3478 array size at least. It's necessary to write '\x00'==0 to get something
3479 that's true only with -std. */
3480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3483 inside strings and character constants. */
3484 #define FOO(x) 'x'
3485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3487 int test (int i, double x);
3488 struct s1 {int (*f) (int a);};
3489 struct s2 {int (*f) (double a);};
3490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491 int argc;
3492 char **argv;
3493 int
3494 main ()
3495 {
3496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3503 do
3504 CC="$ac_save_CC $ac_arg"
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_prog_cc_c89=$ac_arg
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext
3509 test "x$ac_cv_prog_cc_c89" != "xno" && break
3510 done
3511 rm -f conftest.$ac_ext
3512 CC=$ac_save_CC
3514 fi
3515 # AC_CACHE_VAL
3516 case "x$ac_cv_prog_cc_c89" in
3517 x)
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3519 $as_echo "none needed" >&6; } ;;
3520 xno)
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3522 $as_echo "unsupported" >&6; } ;;
3523 *)
3524 CC="$CC $ac_cv_prog_cc_c89"
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3527 esac
3528 if test "x$ac_cv_prog_cc_c89" != xno; then :
3530 fi
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 DEPDIR="${am__leading_dot}deps"
3539 ac_config_commands="$ac_config_commands depfiles"
3542 am_make=${MAKE-make}
3543 cat > confinc << 'END'
3544 am__doit:
3545 @echo this is the am__doit target
3546 .PHONY: am__doit
3547 END
3548 # If we don't find an include directive, just comment out the code.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3550 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3551 am__include="#"
3552 am__quote=
3553 _am_result=none
3554 # First try GNU make style include.
3555 echo "include confinc" > confmf
3556 # Ignore all kinds of additional output from `make'.
3557 case `$am_make -s -f confmf 2> /dev/null` in #(
3558 *the\ am__doit\ target*)
3559 am__include=include
3560 am__quote=
3561 _am_result=GNU
3562 ;;
3563 esac
3564 # Now try BSD make style include.
3565 if test "$am__include" = "#"; then
3566 echo '.include "confinc"' > confmf
3567 case `$am_make -s -f confmf 2> /dev/null` in #(
3568 *the\ am__doit\ target*)
3569 am__include=.include
3570 am__quote="\""
3571 _am_result=BSD
3572 ;;
3573 esac
3574 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3578 $as_echo "$_am_result" >&6; }
3579 rm -f confinc confmf
3581 # Check whether --enable-dependency-tracking was given.
3582 if test "${enable_dependency_tracking+set}" = set; then :
3583 enableval=$enable_dependency_tracking;
3584 fi
3586 if test "x$enable_dependency_tracking" != xno; then
3587 am_depcomp="$ac_aux_dir/depcomp"
3588 AMDEPBACKSLASH='\'
3589 fi
3590 if test "x$enable_dependency_tracking" != xno; then
3591 AMDEP_TRUE=
3592 AMDEP_FALSE='#'
3593 else
3594 AMDEP_TRUE='#'
3595 AMDEP_FALSE=
3596 fi
3600 depcc="$CC" am_compiler_list=
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3603 $as_echo_n "checking dependency style of $depcc... " >&6; }
3604 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3608 # We make a subdir and do the tests there. Otherwise we can end up
3609 # making bogus files that we don't know about and never remove. For
3610 # instance it was reported that on HP-UX the gcc test will end up
3611 # making a dummy file named `D' -- because `-MD' means `put the output
3612 # in D'.
3613 mkdir conftest.dir
3614 # Copy depcomp to subdir because otherwise we won't find it if we're
3615 # using a relative directory.
3616 cp "$am_depcomp" conftest.dir
3617 cd conftest.dir
3618 # We will build objects and dependencies in a subdirectory because
3619 # it helps to detect inapplicable dependency modes. For instance
3620 # both Tru64's cc and ICC support -MD to output dependencies as a
3621 # side effect of compilation, but ICC will put the dependencies in
3622 # the current directory while Tru64 will put them in the object
3623 # directory.
3624 mkdir sub
3626 am_cv_CC_dependencies_compiler_type=none
3627 if test "$am_compiler_list" = ""; then
3628 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3629 fi
3630 am__universal=false
3631 case " $depcc " in #(
3632 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3633 esac
3635 for depmode in $am_compiler_list; do
3636 # Setup a source with many dependencies, because some compilers
3637 # like to wrap large dependency lists on column 80 (with \), and
3638 # we should not choose a depcomp mode which is confused by this.
3639 #
3640 # We need to recreate these files for each test, as the compiler may
3641 # overwrite some of them when testing with obscure command lines.
3642 # This happens at least with the AIX C compiler.
3643 : > sub/conftest.c
3644 for i in 1 2 3 4 5 6; do
3645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647 # Solaris 8's {/usr,}/bin/sh.
3648 touch sub/conftst$i.h
3649 done
3650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3652 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3653 # mode. It turns out that the SunPro C++ compiler does not properly
3654 # handle `-M -o', and we need to detect this. Also, some Intel
3655 # versions had trouble with output in subdirs
3656 am__obj=sub/conftest.${OBJEXT-o}
3657 am__minus_obj="-o $am__obj"
3658 case $depmode in
3659 gcc)
3660 # This depmode causes a compiler race in universal mode.
3661 test "$am__universal" = false || continue
3662 ;;
3663 nosideeffect)
3664 # after this tag, mechanisms are not by side-effect, so they'll
3665 # only be used when explicitly requested
3666 if test "x$enable_dependency_tracking" = xyes; then
3667 continue
3668 else
3669 break
3670 fi
3671 ;;
3672 msvisualcpp | msvcmsys)
3673 # This compiler won't grok `-c -o', but also, the minuso test has
3674 # not run yet. These depmodes are late enough in the game, and
3675 # so weak that their functioning should not be impacted.
3676 am__obj=conftest.${OBJEXT-o}
3677 am__minus_obj=
3678 ;;
3679 none) break ;;
3680 esac
3681 if depmode=$depmode \
3682 source=sub/conftest.c object=$am__obj \
3683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3684 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3685 >/dev/null 2>conftest.err &&
3686 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3687 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3688 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3689 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3690 # icc doesn't choke on unknown options, it will just issue warnings
3691 # or remarks (even with -Werror). So we grep stderr for any message
3692 # that says an option was ignored or not supported.
3693 # When given -MP, icc 7.0 and 7.1 complain thusly:
3694 # icc: Command line warning: ignoring option '-M'; no argument required
3695 # The diagnosis changed in icc 8.0:
3696 # icc: Command line remark: option '-MP' not supported
3697 if (grep 'ignoring option' conftest.err ||
3698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3699 am_cv_CC_dependencies_compiler_type=$depmode
3700 break
3701 fi
3702 fi
3703 done
3705 cd ..
3706 rm -rf conftest.dir
3707 else
3708 am_cv_CC_dependencies_compiler_type=none
3709 fi
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3713 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3714 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3716 if
3717 test "x$enable_dependency_tracking" != xno \
3718 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3719 am__fastdepCC_TRUE=
3720 am__fastdepCC_FALSE='#'
3721 else
3722 am__fastdepCC_TRUE='#'
3723 am__fastdepCC_FALSE=
3724 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3729 $as_echo_n "checking for library containing strerror... " >&6; }
3730 if ${ac_cv_search_strerror+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 ac_func_search_save_LIBS=$LIBS
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3737 /* Override any GCC internal prototype to avoid an error.
3738 Use char because int might match the return type of a GCC
3739 builtin and then its argument prototype would still apply. */
3740 #ifdef __cplusplus
3741 extern "C"
3742 #endif
3743 char strerror ();
3744 int
3745 main ()
3746 {
3747 return strerror ();
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 for ac_lib in '' cposix; do
3753 if test -z "$ac_lib"; then
3754 ac_res="none required"
3755 else
3756 ac_res=-l$ac_lib
3757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3758 fi
3759 if ac_fn_c_try_link "$LINENO"; then :
3760 ac_cv_search_strerror=$ac_res
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext \
3763 conftest$ac_exeext
3764 if ${ac_cv_search_strerror+:} false; then :
3765 break
3766 fi
3767 done
3768 if ${ac_cv_search_strerror+:} false; then :
3770 else
3771 ac_cv_search_strerror=no
3772 fi
3773 rm conftest.$ac_ext
3774 LIBS=$ac_func_search_save_LIBS
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3777 $as_echo "$ac_cv_search_strerror" >&6; }
3778 ac_res=$ac_cv_search_strerror
3779 if test "$ac_res" != no; then :
3780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3782 fi
3784 ac_ext=c
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3790 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3791 # On Suns, sometimes $CPP names a directory.
3792 if test -n "$CPP" && test -d "$CPP"; then
3793 CPP=
3794 fi
3795 if test -z "$CPP"; then
3796 if ${ac_cv_prog_CPP+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 # Double quotes because CPP needs to be expanded
3800 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3801 do
3802 ac_preproc_ok=false
3803 for ac_c_preproc_warn_flag in '' yes
3804 do
3805 # Use a header file that comes with gcc, so configuring glibc
3806 # with a fresh cross-compiler works.
3807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3808 # <limits.h> exists even on freestanding compilers.
3809 # On the NeXT, cc -E runs the code through the compiler's parser,
3810 # not just through cpp. "Syntax error" is here to catch this case.
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813 #ifdef __STDC__
3814 # include <limits.h>
3815 #else
3816 # include <assert.h>
3817 #endif
3818 Syntax error
3819 _ACEOF
3820 if ac_fn_c_try_cpp "$LINENO"; then :
3822 else
3823 # Broken: fails on valid input.
3824 continue
3825 fi
3826 rm -f conftest.err conftest.i conftest.$ac_ext
3828 # OK, works on sane cases. Now check whether nonexistent headers
3829 # can be detected and how.
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3832 #include <ac_nonexistent.h>
3833 _ACEOF
3834 if ac_fn_c_try_cpp "$LINENO"; then :
3835 # Broken: success on invalid input.
3836 continue
3837 else
3838 # Passes both tests.
3839 ac_preproc_ok=:
3840 break
3841 fi
3842 rm -f conftest.err conftest.i conftest.$ac_ext
3844 done
3845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3846 rm -f conftest.i conftest.err conftest.$ac_ext
3847 if $ac_preproc_ok; then :
3848 break
3849 fi
3851 done
3852 ac_cv_prog_CPP=$CPP
3854 fi
3855 CPP=$ac_cv_prog_CPP
3856 else
3857 ac_cv_prog_CPP=$CPP
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3860 $as_echo "$CPP" >&6; }
3861 ac_preproc_ok=false
3862 for ac_c_preproc_warn_flag in '' yes
3863 do
3864 # Use a header file that comes with gcc, so configuring glibc
3865 # with a fresh cross-compiler works.
3866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867 # <limits.h> exists even on freestanding compilers.
3868 # On the NeXT, cc -E runs the code through the compiler's parser,
3869 # not just through cpp. "Syntax error" is here to catch this case.
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #ifdef __STDC__
3873 # include <limits.h>
3874 #else
3875 # include <assert.h>
3876 #endif
3877 Syntax error
3878 _ACEOF
3879 if ac_fn_c_try_cpp "$LINENO"; then :
3881 else
3882 # Broken: fails on valid input.
3883 continue
3884 fi
3885 rm -f conftest.err conftest.i conftest.$ac_ext
3887 # OK, works on sane cases. Now check whether nonexistent headers
3888 # can be detected and how.
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 #include <ac_nonexistent.h>
3892 _ACEOF
3893 if ac_fn_c_try_cpp "$LINENO"; then :
3894 # Broken: success on invalid input.
3895 continue
3896 else
3897 # Passes both tests.
3898 ac_preproc_ok=:
3899 break
3900 fi
3901 rm -f conftest.err conftest.i conftest.$ac_ext
3903 done
3904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3905 rm -f conftest.i conftest.err conftest.$ac_ext
3906 if $ac_preproc_ok; then :
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3912 See \`config.log' for more details" "$LINENO" 5; }
3913 fi
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3924 if ${ac_cv_path_GREP+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -z "$GREP"; then
3928 ac_path_GREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
3940 # Check for GNU $ac_path_GREP
3941 case `"$ac_path_GREP" --version 2>&1` in
3942 *GNU*)
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3944 *)
3945 ac_count=0
3946 $as_echo_n 0123456789 >"conftest.in"
3947 while :
3948 do
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 $as_echo 'GREP' >> "conftest.nl"
3953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 as_fn_arith $ac_count + 1 && ac_count=$as_val
3956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
3960 fi
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3967 $ac_path_GREP_found && break 3
3968 done
3969 done
3970 done
3971 IFS=$as_save_IFS
3972 if test -z "$ac_cv_path_GREP"; then
3973 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3974 fi
3975 else
3976 ac_cv_path_GREP=$GREP
3977 fi
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3981 $as_echo "$ac_cv_path_GREP" >&6; }
3982 GREP="$ac_cv_path_GREP"
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3986 $as_echo_n "checking for egrep... " >&6; }
3987 if ${ac_cv_path_EGREP+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991 then ac_cv_path_EGREP="$GREP -E"
3992 else
3993 if test -z "$EGREP"; then
3994 ac_path_EGREP_found=false
3995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_prog in egrep; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4005 # Check for GNU ac_path_EGREP and select it if it is found.
4006 # Check for GNU $ac_path_EGREP
4007 case `"$ac_path_EGREP" --version 2>&1` in
4008 *GNU*)
4009 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4010 *)
4011 ac_count=0
4012 $as_echo_n 0123456789 >"conftest.in"
4013 while :
4014 do
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
4018 $as_echo 'EGREP' >> "conftest.nl"
4019 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021 as_fn_arith $ac_count + 1 && ac_count=$as_val
4022 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_EGREP="$ac_path_EGREP"
4025 ac_path_EGREP_max=$ac_count
4026 fi
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4029 done
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 esac
4033 $ac_path_EGREP_found && break 3
4034 done
4035 done
4036 done
4037 IFS=$as_save_IFS
4038 if test -z "$ac_cv_path_EGREP"; then
4039 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4040 fi
4041 else
4042 ac_cv_path_EGREP=$EGREP
4043 fi
4045 fi
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4048 $as_echo "$ac_cv_path_EGREP" >&6; }
4049 EGREP="$ac_cv_path_EGREP"
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4053 $as_echo_n "checking for ANSI C header files... " >&6; }
4054 if ${ac_cv_header_stdc+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #include <stdlib.h>
4060 #include <stdarg.h>
4061 #include <string.h>
4062 #include <float.h>
4064 int
4065 main ()
4066 {
4068 ;
4069 return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_cv_header_stdc=yes
4074 else
4075 ac_cv_header_stdc=no
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 if test $ac_cv_header_stdc = yes; then
4080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #include <string.h>
4085 _ACEOF
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "memchr" >/dev/null 2>&1; then :
4089 else
4090 ac_cv_header_stdc=no
4091 fi
4092 rm -f conftest*
4094 fi
4096 if test $ac_cv_header_stdc = yes; then
4097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <stdlib.h>
4102 _ACEOF
4103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4104 $EGREP "free" >/dev/null 2>&1; then :
4106 else
4107 ac_cv_header_stdc=no
4108 fi
4109 rm -f conftest*
4111 fi
4113 if test $ac_cv_header_stdc = yes; then
4114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4115 if test "$cross_compiling" = yes; then :
4116 :
4117 else
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #include <ctype.h>
4121 #include <stdlib.h>
4122 #if ((' ' & 0x0FF) == 0x020)
4123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4125 #else
4126 # define ISLOWER(c) \
4127 (('a' <= (c) && (c) <= 'i') \
4128 || ('j' <= (c) && (c) <= 'r') \
4129 || ('s' <= (c) && (c) <= 'z'))
4130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4131 #endif
4133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4134 int
4135 main ()
4136 {
4137 int i;
4138 for (i = 0; i < 256; i++)
4139 if (XOR (islower (i), ISLOWER (i))
4140 || toupper (i) != TOUPPER (i))
4141 return 2;
4142 return 0;
4143 }
4144 _ACEOF
4145 if ac_fn_c_try_run "$LINENO"; then :
4147 else
4148 ac_cv_header_stdc=no
4149 fi
4150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4151 conftest.$ac_objext conftest.beam conftest.$ac_ext
4152 fi
4154 fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4157 $as_echo "$ac_cv_header_stdc" >&6; }
4158 if test $ac_cv_header_stdc = yes; then
4160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4162 fi
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_RANLIB+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$RANLIB"; then
4173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186 done
4187 done
4188 IFS=$as_save_IFS
4190 fi
4191 fi
4192 RANLIB=$ac_cv_prog_RANLIB
4193 if test -n "$RANLIB"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4195 $as_echo "$RANLIB" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4202 fi
4203 if test -z "$ac_cv_prog_RANLIB"; then
4204 ac_ct_RANLIB=$RANLIB
4205 # Extract the first word of "ranlib", so it can be a program name with args.
4206 set dummy ranlib; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$ac_ct_RANLIB"; then
4213 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_prog_ac_ct_RANLIB="ranlib"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4230 fi
4231 fi
4232 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4233 if test -n "$ac_ct_RANLIB"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4235 $as_echo "$ac_ct_RANLIB" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4241 if test "x$ac_ct_RANLIB" = x; then
4242 RANLIB=":"
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250 RANLIB=$ac_ct_RANLIB
4251 fi
4252 else
4253 RANLIB="$ac_cv_prog_RANLIB"
4254 fi
4263 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 case $PKG_CONFIG in
4273 [\\/]* | ?:[\\/]*)
4274 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4275 ;;
4276 *)
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4292 ;;
4293 esac
4294 fi
4295 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4296 if test -n "$PKG_CONFIG"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4298 $as_echo "$PKG_CONFIG" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4305 fi
4306 if test -z "$ac_cv_path_PKG_CONFIG"; then
4307 ac_pt_PKG_CONFIG=$PKG_CONFIG
4308 # Extract the first word of "pkg-config", so it can be a program name with args.
4309 set dummy pkg-config; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 case $ac_pt_PKG_CONFIG in
4316 [\\/]* | ?:[\\/]*)
4317 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4318 ;;
4319 *)
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331 done
4332 done
4333 IFS=$as_save_IFS
4335 ;;
4336 esac
4337 fi
4338 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4339 if test -n "$ac_pt_PKG_CONFIG"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4341 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4345 fi
4347 if test "x$ac_pt_PKG_CONFIG" = x; then
4348 PKG_CONFIG=""
4349 else
4350 case $cross_compiling:$ac_tool_warned in
4351 yes:)
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned=yes ;;
4355 esac
4356 PKG_CONFIG=$ac_pt_PKG_CONFIG
4357 fi
4358 else
4359 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4360 fi
4362 fi
4363 if test -n "$PKG_CONFIG"; then
4364 _pkg_min_version=0.9.0
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4366 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4367 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 PKG_CONFIG=""
4374 fi
4375 fi
4377 pkg_failed=no
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
4379 $as_echo_n "checking for GLIB... " >&6; }
4381 if test -n "$GLIB_CFLAGS"; then
4382 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
4383 elif test -n "$PKG_CONFIG"; then
4384 if test -n "$PKG_CONFIG" && \
4385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4386 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4387 ac_status=$?
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }; then
4390 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
4391 else
4392 pkg_failed=yes
4393 fi
4394 else
4395 pkg_failed=untried
4396 fi
4397 if test -n "$GLIB_LIBS"; then
4398 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
4399 elif test -n "$PKG_CONFIG"; then
4400 if test -n "$PKG_CONFIG" && \
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
4402 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
4403 ac_status=$?
4404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405 test $ac_status = 0; }; then
4406 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
4407 else
4408 pkg_failed=yes
4409 fi
4410 else
4411 pkg_failed=untried
4412 fi
4416 if test $pkg_failed = yes; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4420 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4421 _pkg_short_errors_supported=yes
4422 else
4423 _pkg_short_errors_supported=no
4424 fi
4425 if test $_pkg_short_errors_supported = yes; then
4426 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
4427 else
4428 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
4429 fi
4430 # Put the nasty error message in config.log where it belongs
4431 echo "$GLIB_PKG_ERRORS" >&5
4433 as_fn_error $? "Package requirements (glib-2.0) were not met:
4435 $GLIB_PKG_ERRORS
4437 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4438 installed software in a non-standard prefix.
4440 Alternatively, you may set the environment variables GLIB_CFLAGS
4441 and GLIB_LIBS to avoid the need to call pkg-config.
4442 See the pkg-config man page for more details." "$LINENO" 5
4443 elif test $pkg_failed = untried; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4449 is in your PATH or set the PKG_CONFIG environment variable to the full
4450 path to pkg-config.
4452 Alternatively, you may set the environment variables GLIB_CFLAGS
4453 and GLIB_LIBS to avoid the need to call pkg-config.
4454 See the pkg-config man page for more details.
4456 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4457 See \`config.log' for more details" "$LINENO" 5; }
4458 else
4459 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
4460 GLIB_LIBS=$pkg_cv_GLIB_LIBS
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462 $as_echo "yes" >&6; }
4464 fi
4468 # Check whether --enable-resolver was given.
4469 if test "${enable_resolver+set}" = set; then :
4470 enableval=$enable_resolver; if test "$enable_resolver" != 'no'; then
4471 resolver_enabled='yes'
4472 fi
4473 else
4474 resolver_enabled='yes'
4476 fi
4479 if test "$resolver_enabled" = yes; then
4481 $as_echo "#define ENABLE_RESOLVER 1" >>confdefs.h
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lc" >&5
4484 $as_echo_n "checking for res_search in -lc... " >&6; }
4485 if ${ac_cv_lib_c_res_search+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 ac_check_lib_save_LIBS=$LIBS
4489 LIBS="-lc $LIBS"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4493 /* Override any GCC internal prototype to avoid an error.
4494 Use char because int might match the return type of a GCC
4495 builtin and then its argument prototype would still apply. */
4496 #ifdef __cplusplus
4497 extern "C"
4498 #endif
4499 char res_search ();
4500 int
4501 main ()
4502 {
4503 return res_search ();
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 if ac_fn_c_try_link "$LINENO"; then :
4509 ac_cv_lib_c_res_search=yes
4510 else
4511 ac_cv_lib_c_res_search=no
4512 fi
4513 rm -f core conftest.err conftest.$ac_objext \
4514 conftest$ac_exeext conftest.$ac_ext
4515 LIBS=$ac_check_lib_save_LIBS
4516 fi
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_res_search" >&5
4518 $as_echo "$ac_cv_lib_c_res_search" >&6; }
4519 if test "x$ac_cv_lib_c_res_search" = xyes; then :
4520 need_resolv=no
4521 else
4522 need_resolv=yes
4523 fi
4525 if test "$need_resolv" = yes; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
4527 $as_echo_n "checking for res_search in -lresolv... " >&6; }
4528 if ${ac_cv_lib_resolv_res_search+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-lresolv $LIBS"
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4536 /* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
4539 #ifdef __cplusplus
4540 extern "C"
4541 #endif
4542 char res_search ();
4543 int
4544 main ()
4545 {
4546 return res_search ();
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_link "$LINENO"; then :
4552 ac_cv_lib_resolv_res_search=yes
4553 else
4554 ac_cv_lib_resolv_res_search=no
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext \
4557 conftest$ac_exeext conftest.$ac_ext
4558 LIBS=$ac_check_lib_save_LIBS
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
4561 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
4562 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
4563 has_resolv=yes; RESOLV_LIBS="-lresolv"
4564 else
4565 has_resolv=no
4566 fi
4568 if test "$has_resolv" = no; then
4569 saved_LIBS="$LIBS"
4570 LIBS="$LIBS -lresolv"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
4572 $as_echo_n "checking for res_search in -lresolv... " >&6; }
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <resolv.h>
4576 int
4577 main ()
4578 {
4579 res_search (0, 0, 0, 0, 0);
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_link "$LINENO"; then :
4585 RESOLV_LIBS="-lresolv"; has_resolv=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4586 $as_echo "yes" >&6; }
4587 else
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext \
4592 conftest$ac_exeext conftest.$ac_ext;
4593 LIBS="$saved_LIBS"
4594 fi
4595 if test "$has_resolv" = no; then
4596 as_fn_error $? "\"no libresolv\"" "$LINENO" 5
4597 RESOLV_LIBS=''
4598 fi
4599 fi
4600 else
4601 RESOLV_LIBS=''
4602 fi
4605 for ac_func in getline
4606 do :
4607 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
4608 if test "x$ac_cv_func_getline" = xyes; then :
4609 cat >>confdefs.h <<_ACEOF
4610 #define HAVE_GETLINE 1
4611 _ACEOF
4613 fi
4614 done
4617 for ac_func in fdatasync
4618 do :
4619 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
4620 if test "x$ac_cv_func_fdatasync" = xyes; then :
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_FDATASYNC 1
4623 _ACEOF
4625 fi
4626 done
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4630 $as_echo_n "checking for ANSI C header files... " >&6; }
4631 if ${ac_cv_header_stdc+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <stdlib.h>
4637 #include <stdarg.h>
4638 #include <string.h>
4639 #include <float.h>
4641 int
4642 main ()
4643 {
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_header_stdc=yes
4651 else
4652 ac_cv_header_stdc=no
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 if test $ac_cv_header_stdc = yes; then
4657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <string.h>
4662 _ACEOF
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "memchr" >/dev/null 2>&1; then :
4666 else
4667 ac_cv_header_stdc=no
4668 fi
4669 rm -f conftest*
4671 fi
4673 if test $ac_cv_header_stdc = yes; then
4674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #include <stdlib.h>
4679 _ACEOF
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681 $EGREP "free" >/dev/null 2>&1; then :
4683 else
4684 ac_cv_header_stdc=no
4685 fi
4686 rm -f conftest*
4688 fi
4690 if test $ac_cv_header_stdc = yes; then
4691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4692 if test "$cross_compiling" = yes; then :
4693 :
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <ctype.h>
4698 #include <stdlib.h>
4699 #if ((' ' & 0x0FF) == 0x020)
4700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4702 #else
4703 # define ISLOWER(c) \
4704 (('a' <= (c) && (c) <= 'i') \
4705 || ('j' <= (c) && (c) <= 'r') \
4706 || ('s' <= (c) && (c) <= 'z'))
4707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4708 #endif
4710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4711 int
4712 main ()
4713 {
4714 int i;
4715 for (i = 0; i < 256; i++)
4716 if (XOR (islower (i), ISLOWER (i))
4717 || toupper (i) != TOUPPER (i))
4718 return 2;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_run "$LINENO"; then :
4724 else
4725 ac_cv_header_stdc=no
4726 fi
4727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4728 conftest.$ac_objext conftest.beam conftest.$ac_ext
4729 fi
4731 fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4734 $as_echo "$ac_cv_header_stdc" >&6; }
4735 if test $ac_cv_header_stdc = yes; then
4737 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4739 fi
4741 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4743 inttypes.h stdint.h unistd.h
4744 do :
4745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4746 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4747 "
4748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4749 cat >>confdefs.h <<_ACEOF
4750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4751 _ACEOF
4753 fi
4755 done
4758 for ac_header in fcntl.h sys/time.h syslog.h unistd.h
4759 do :
4760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4761 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4762 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4763 cat >>confdefs.h <<_ACEOF
4764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765 _ACEOF
4767 fi
4769 done
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4773 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4774 if ${ac_cv_c_const+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4780 int
4781 main ()
4782 {
4783 /* FIXME: Include the comments suggested by Paul. */
4784 #ifndef __cplusplus
4785 /* Ultrix mips cc rejects this. */
4786 typedef int charset[2];
4787 const charset cs;
4788 /* SunOS 4.1.1 cc rejects this. */
4789 char const *const *pcpcc;
4790 char **ppc;
4791 /* NEC SVR4.0.2 mips cc rejects this. */
4792 struct point {int x, y;};
4793 static struct point const zero = {0,0};
4794 /* AIX XL C 1.02.0.0 rejects this.
4795 It does not let you subtract one const X* pointer from another in
4796 an arm of an if-expression whose if-part is not a constant
4797 expression */
4798 const char *g = "string";
4799 pcpcc = &g + (g ? g-g : 0);
4800 /* HPUX 7.0 cc rejects these. */
4801 ++pcpcc;
4802 ppc = (char**) pcpcc;
4803 pcpcc = (char const *const *) ppc;
4804 { /* SCO 3.2v4 cc rejects this. */
4805 char *t;
4806 char const *s = 0 ? (char *) 0 : (char const *) 0;
4808 *t++ = 0;
4809 if (s) return 0;
4810 }
4811 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4812 int x[] = {25, 17};
4813 const int *foo = &x[0];
4814 ++foo;
4815 }
4816 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4817 typedef const int *iptr;
4818 iptr p = 0;
4819 ++p;
4820 }
4821 { /* AIX XL C 1.02.0.0 rejects this saying
4822 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4823 struct s { int j; const int *ap[3]; };
4824 struct s *b; b->j = 5;
4825 }
4826 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4827 const int foo = 10;
4828 if (!foo) return 0;
4829 }
4830 return !cs[0] && !zero.x;
4831 #endif
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 ac_cv_c_const=yes
4839 else
4840 ac_cv_c_const=no
4841 fi
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4845 $as_echo "$ac_cv_c_const" >&6; }
4846 if test $ac_cv_c_const = no; then
4848 $as_echo "#define const /**/" >>confdefs.h
4850 fi
4852 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4853 if test "x$ac_cv_type_pid_t" = xyes; then :
4855 else
4857 cat >>confdefs.h <<_ACEOF
4858 #define pid_t int
4859 _ACEOF
4861 fi
4863 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4864 if test "x$ac_cv_type_size_t" = xyes; then :
4866 else
4868 cat >>confdefs.h <<_ACEOF
4869 #define size_t unsigned int
4870 _ACEOF
4872 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4875 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4876 if ${ac_cv_header_time+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <sys/types.h>
4882 #include <sys/time.h>
4883 #include <time.h>
4885 int
4886 main ()
4887 {
4888 if ((struct tm *) 0)
4889 return 0;
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895 ac_cv_header_time=yes
4896 else
4897 ac_cv_header_time=no
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4902 $as_echo "$ac_cv_header_time" >&6; }
4903 if test $ac_cv_header_time = yes; then
4905 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4907 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4910 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4911 if ${ac_cv_struct_tm+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <sys/types.h>
4917 #include <time.h>
4919 int
4920 main ()
4921 {
4922 struct tm tm;
4923 int *p = &tm.tm_sec;
4924 return !p;
4925 ;
4926 return 0;
4927 }
4928 _ACEOF
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_struct_tm=time.h
4931 else
4932 ac_cv_struct_tm=sys/time.h
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 fi
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4937 $as_echo "$ac_cv_struct_tm" >&6; }
4938 if test $ac_cv_struct_tm = sys/time.h; then
4940 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4942 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
4946 $as_echo_n "checking for working POSIX fnmatch... " >&6; }
4947 if ${ac_cv_func_fnmatch_works+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 # Some versions of Solaris, SCO, and the GNU C Library
4951 # have a broken or incompatible fnmatch.
4952 # So we run a test program. If we are cross-compiling, take no chance.
4953 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
4954 if test "$cross_compiling" = yes; then :
4955 ac_cv_func_fnmatch_works=cross
4956 else
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 #include <fnmatch.h>
4960 # define y(a, b, c) (fnmatch (a, b, c) == 0)
4961 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
4963 int
4964 main ()
4965 {
4966 return
4967 (!(y ("a*", "abc", 0)
4968 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
4969 && y ("a\\\\bc", "abc", 0)
4970 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
4971 && y ("*x", ".x", 0)
4972 && n ("*x", ".x", FNM_PERIOD)
4973 && 1));
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_c_try_run "$LINENO"; then :
4979 ac_cv_func_fnmatch_works=yes
4980 else
4981 ac_cv_func_fnmatch_works=no
4982 fi
4983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4984 conftest.$ac_objext conftest.beam conftest.$ac_ext
4985 fi
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
4989 $as_echo "$ac_cv_func_fnmatch_works" >&6; }
4990 if test $ac_cv_func_fnmatch_works = yes; then :
4992 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
4994 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4998 $as_echo_n "checking return type of signal handlers... " >&6; }
4999 if ${ac_cv_type_signal+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <sys/types.h>
5005 #include <signal.h>
5007 int
5008 main ()
5009 {
5010 return *(signal (0, 0)) (0) == 1;
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016 ac_cv_type_signal=int
5017 else
5018 ac_cv_type_signal=void
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5023 $as_echo "$ac_cv_type_signal" >&6; }
5025 cat >>confdefs.h <<_ACEOF
5026 #define RETSIGTYPE $ac_cv_type_signal
5027 _ACEOF
5030 for ac_func in strftime
5031 do :
5032 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
5033 if test "x$ac_cv_func_strftime" = xyes; then :
5034 cat >>confdefs.h <<_ACEOF
5035 #define HAVE_STRFTIME 1
5036 _ACEOF
5038 else
5039 # strftime is in -lintl on SCO UNIX.
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
5041 $as_echo_n "checking for strftime in -lintl... " >&6; }
5042 if ${ac_cv_lib_intl_strftime+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 ac_check_lib_save_LIBS=$LIBS
5046 LIBS="-lintl $LIBS"
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5050 /* Override any GCC internal prototype to avoid an error.
5051 Use char because int might match the return type of a GCC
5052 builtin and then its argument prototype would still apply. */
5053 #ifdef __cplusplus
5054 extern "C"
5055 #endif
5056 char strftime ();
5057 int
5058 main ()
5059 {
5060 return strftime ();
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_link "$LINENO"; then :
5066 ac_cv_lib_intl_strftime=yes
5067 else
5068 ac_cv_lib_intl_strftime=no
5069 fi
5070 rm -f core conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
5072 LIBS=$ac_check_lib_save_LIBS
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
5075 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
5076 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
5077 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
5079 LIBS="-lintl $LIBS"
5080 fi
5082 fi
5083 done
5085 for ac_func in vprintf
5086 do :
5087 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5088 if test "x$ac_cv_func_vprintf" = xyes; then :
5089 cat >>confdefs.h <<_ACEOF
5090 #define HAVE_VPRINTF 1
5091 _ACEOF
5093 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5094 if test "x$ac_cv_func__doprnt" = xyes; then :
5096 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5098 fi
5100 fi
5101 done
5104 for ac_func in select socket strerror strstr
5105 do :
5106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5108 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5109 cat >>confdefs.h <<_ACEOF
5110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5111 _ACEOF
5113 fi
5114 done
5118 # Check whether --with-user was given.
5119 if test "${with_user+set}" = set; then :
5120 withval=$with_user;
5121 fi
5123 if test "x$with_user" = 'x'; then
5124 with_user='mail'
5125 fi
5128 # Check whether --with-group was given.
5129 if test "${with_group+set}" = set; then :
5130 withval=$with_group;
5131 fi
5133 if test "x$with_group" = 'x'; then
5134 with_group='trusted'
5135 fi
5137 # Check whether --enable-debug was given.
5138 if test "${enable_debug+set}" = set; then :
5139 enableval=$enable_debug; if test "x$enable_debug" != 'xno'; then
5140 debug_enabled='yes'
5141 fi
5142 else
5143 debug_enabled='yes'
5145 fi
5147 if test "x$debug_enabled" = xyes; then
5149 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
5151 fi
5154 cat >>confdefs.h <<_ACEOF
5155 #define DEF_MAIL_USER "${with_user}"
5156 _ACEOF
5160 cat >>confdefs.h <<_ACEOF
5161 #define DEF_MAIL_GROUP "${with_group}"
5162 _ACEOF
5167 # Check whether --with-glib_static was given.
5168 if test "${with_glib_static+set}" = set; then :
5169 withval=$with_glib_static;
5170 fi
5172 if test "x$with_glib_static" != 'x'; then
5173 GLIB_LIBS=$with_glib_static
5175 fi
5177 MD5_LIBS=''
5178 BASE64_LIBS=''
5180 # Check whether --enable-smtp_server was given.
5181 if test "${enable_smtp_server+set}" = set; then :
5182 enableval=$enable_smtp_server; if test "x$enable_smtp_server" != 'xno'; then
5183 smtp_server_enabled='yes'
5184 fi
5185 else
5186 smtp_server_enabled='yes'
5188 fi
5190 if test "x$smtp_server_enabled" = xyes; then
5192 $as_echo "#define ENABLE_SMTP_SERVER 1" >>confdefs.h
5194 fi
5196 # Check whether --enable-pop3 was given.
5197 if test "${enable_pop3+set}" = set; then :
5198 enableval=$enable_pop3; if test "x$enable_pop3" != 'xno'; then
5199 pop3_enabled='yes'
5200 fi
5201 else
5202 pop3_enabled='yes'
5204 fi
5206 if test "x$pop3_enabled" = xyes; then
5208 $as_echo "#define ENABLE_POP3 1" >>confdefs.h
5210 need_md5='yes'
5211 fi
5213 # Check whether --enable-auth was given.
5214 if test "${enable_auth+set}" = set; then :
5215 enableval=$enable_auth; if test "x$enable_auth" != 'xno'; then
5216 auth_enabled='yes'
5217 fi
5218 fi
5220 if test "x$auth_enabled" = xyes; then
5222 $as_echo "#define ENABLE_AUTH 1" >>confdefs.h
5224 BASE64_LIBS='base64/libbase64.a'
5225 need_md5='yes'
5226 fi
5229 # Check whether --enable-maildir was given.
5230 if test "${enable_maildir+set}" = set; then :
5231 enableval=$enable_maildir; if test "x$enable_maildir" != 'xno'; then
5232 maildir_enabled='yes'
5233 fi
5234 fi
5236 if test "x$maildir_enabled" = xyes; then
5238 $as_echo "#define ENABLE_MAILDIR 1" >>confdefs.h
5240 fi
5243 # Check whether --with-libcrypto was given.
5244 if test "${with_libcrypto+set}" = set; then :
5245 withval=$with_libcrypto;
5246 fi
5248 if test "x$with_libcrypto" != 'xyes'; then
5249 with_libcrypto='no'
5250 fi
5252 if test "x$need_md5" = 'xyes'; then
5253 if test "x$with_libcrypto" = "xyes"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 in -lcrypto" >&5
5255 $as_echo_n "checking for MD5 in -lcrypto... " >&6; }
5256 if ${ac_cv_lib_crypto_MD5+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 ac_check_lib_save_LIBS=$LIBS
5260 LIBS="-lcrypto $LIBS"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5264 /* Override any GCC internal prototype to avoid an error.
5265 Use char because int might match the return type of a GCC
5266 builtin and then its argument prototype would still apply. */
5267 #ifdef __cplusplus
5268 extern "C"
5269 #endif
5270 char MD5 ();
5271 int
5272 main ()
5273 {
5274 return MD5 ();
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_link "$LINENO"; then :
5280 ac_cv_lib_crypto_MD5=yes
5281 else
5282 ac_cv_lib_crypto_MD5=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext \
5285 conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5" >&5
5289 $as_echo "$ac_cv_lib_crypto_MD5" >&6; }
5290 if test "x$ac_cv_lib_crypto_MD5" = xyes; then :
5291 has_crypto='yes'
5292 else
5293 as_fn_error $? "'no libcrypto'" "$LINENO" 5
5294 fi
5296 if test "x$has_crypto" = 'xyes'; then
5298 $as_echo "#define USE_LIB_CRYPTO 1" >>confdefs.h
5300 MD5_LIBS='-lcrypto'
5301 fi
5302 else
5303 MD5_LIBS='md5/libmd5.a'
5304 fi
5305 fi
5308 IDENT_LIBS=''
5309 # Check whether --enable-ident was given.
5310 if test "${enable_ident+set}" = set; then :
5311 enableval=$enable_ident; if test "x$enable_ident" != 'xno'; then
5312 ident_enabled='yes'
5313 fi
5314 fi
5317 if test "x$ident_enabled" = xyes; then
5319 $as_echo "#define ENABLE_IDENT 1" >>confdefs.h
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ident_id in -lident" >&5
5322 $as_echo_n "checking for ident_id in -lident... " >&6; }
5323 if ${ac_cv_lib_ident_ident_id+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 ac_check_lib_save_LIBS=$LIBS
5327 LIBS="-lident $LIBS"
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5331 /* Override any GCC internal prototype to avoid an error.
5332 Use char because int might match the return type of a GCC
5333 builtin and then its argument prototype would still apply. */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 char ident_id ();
5338 int
5339 main ()
5340 {
5341 return ident_id ();
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"; then :
5347 ac_cv_lib_ident_ident_id=yes
5348 else
5349 ac_cv_lib_ident_ident_id=no
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 LIBS=$ac_check_lib_save_LIBS
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ident_ident_id" >&5
5356 $as_echo "$ac_cv_lib_ident_ident_id" >&6; }
5357 if test "x$ac_cv_lib_ident_ident_id" = xyes; then :
5358 IDENT_LIBS='-lident'
5359 else
5360 IDENT_LIBS='libident/libident.a'
5361 fi
5363 fi
5366 # Check whether --enable-mserver was given.
5367 if test "${enable_mserver+set}" = set; then :
5368 enableval=$enable_mserver; if test "x$enable_mserver" != 'xno'; then
5369 mserver_enabled='yes'
5370 fi
5371 fi
5373 if test "x$mserver_enabled" = xyes; then
5375 $as_echo "#define ENABLE_MSERVER 1" >>confdefs.h
5377 fi
5380 # Check whether --with-liblockfile was given.
5381 if test "${with_liblockfile+set}" = set; then :
5382 withval=$with_liblockfile;
5383 fi
5385 if test "x$with_liblockfile" = 'xno'; then
5386 with_liblockfile=''
5387 fi
5388 if test "x$with_liblockfile" != 'x'; then
5389 with_liblockfile='yes'
5390 fi
5391 if test "x$with_liblockfile" = xyes; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
5393 $as_echo_n "checking for maillock in -llockfile... " >&6; }
5394 if ${ac_cv_lib_lockfile_maillock+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-llockfile $LIBS"
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 /* Override any GCC internal prototype to avoid an error.
5403 Use char because int might match the return type of a GCC
5404 builtin and then its argument prototype would still apply. */
5405 #ifdef __cplusplus
5406 extern "C"
5407 #endif
5408 char maillock ();
5409 int
5410 main ()
5411 {
5412 return maillock ();
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_c_try_link "$LINENO"; then :
5418 ac_cv_lib_lockfile_maillock=yes
5419 else
5420 ac_cv_lib_lockfile_maillock=no
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext \
5423 conftest$ac_exeext conftest.$ac_ext
5424 LIBS=$ac_check_lib_save_LIBS
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
5427 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
5428 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
5429 has_lockfile=yes
5430 else
5431 as_fn_error $? "\"no liblockfile\"" "$LINENO" 5
5432 fi
5434 LOCKFILE_LIBS='-llockfile'
5436 $as_echo "#define USE_LIBLOCKFILE 1" >>confdefs.h
5438 else
5439 LOCKFILE_LIBS=''
5440 fi
5445 # Check whether --with-logdir was given.
5446 if test "${with_logdir+set}" = set; then :
5447 withval=$with_logdir;
5448 else
5449 with_logdir='/var/log/masqmail/'
5451 fi
5456 # Check whether --with-spooldir was given.
5457 if test "${with_spooldir+set}" = set; then :
5458 withval=$with_spooldir;
5459 else
5460 with_spooldir='/var/spool/masqmail/'
5462 fi
5467 # Check whether --with-confdir was given.
5468 if test "${with_confdir+set}" = set; then :
5469 withval=$with_confdir;
5470 else
5471 with_confdir='/etc/masqmail'
5473 fi
5476 cat >>confdefs.h <<_ACEOF
5477 #define CONF_DIR "${with_confdir}"
5478 _ACEOF
5482 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5485 cat >>confdefs.h <<_ACEOF
5486 #define DATA_DIR "`eval eval echo $datadir`/masqmail"
5487 _ACEOF
5490 if test "x${exec_prefix}" != 'xNONE'; then
5492 cat >>confdefs.h <<_ACEOF
5493 #define SBINDIR "${exec_prefix}/sbin"
5494 _ACEOF
5496 else
5497 if test "x${prefix}" != 'xNONE'; then
5498 cat >>confdefs.h <<_ACEOF
5499 #define SBINDIR "${prefix}/sbin"
5500 _ACEOF
5502 else
5503 cat >>confdefs.h <<_ACEOF
5504 #define SBINDIR "/usr/sbin"
5505 _ACEOF
5507 fi
5508 fi
5510 ac_config_files="$ac_config_files Makefile src/Makefile src/base64/Makefile src/md5/Makefile src/libident/Makefile man/Makefile"
5512 cat >confcache <<\_ACEOF
5513 # This file is a shell script that caches the results of configure
5514 # tests run on this system so they can be shared between configure
5515 # scripts and configure runs, see configure's option --config-cache.
5516 # It is not useful on other systems. If it contains results you don't
5517 # want to keep, you may remove or edit it.
5518 #
5519 # config.status only pays attention to the cache file if you give it
5520 # the --recheck option to rerun configure.
5521 #
5522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5524 # following values.
5526 _ACEOF
5528 # The following way of writing the cache mishandles newlines in values,
5529 # but we know of no workaround that is simple, portable, and efficient.
5530 # So, we kill variables containing newlines.
5531 # Ultrix sh set writes to stderr and can't be redirected directly,
5532 # and sets the high bit in the cache file unless we assign to the vars.
5533 (
5534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5535 eval ac_val=\$$ac_var
5536 case $ac_val in #(
5537 *${as_nl}*)
5538 case $ac_var in #(
5539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5541 esac
5542 case $ac_var in #(
5543 _ | IFS | as_nl) ;; #(
5544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5545 *) { eval $ac_var=; unset $ac_var;} ;;
5546 esac ;;
5547 esac
5548 done
5550 (set) 2>&1 |
5551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5552 *${as_nl}ac_space=\ *)
5553 # `set' does not quote correctly, so add quotes: double-quote
5554 # substitution turns \\\\ into \\, and sed turns \\ into \.
5555 sed -n \
5556 "s/'/'\\\\''/g;
5557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5558 ;; #(
5559 *)
5560 # `set' quotes correctly as required by POSIX, so do not add quotes.
5561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5562 ;;
5563 esac |
5564 sort
5565 ) |
5566 sed '
5567 /^ac_cv_env_/b end
5568 t clear
5569 :clear
5570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5571 t end
5572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5573 :end' >>confcache
5574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5575 if test -w "$cache_file"; then
5576 if test "x$cache_file" != "x/dev/null"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5578 $as_echo "$as_me: updating cache $cache_file" >&6;}
5579 if test ! -f "$cache_file" || test -h "$cache_file"; then
5580 cat confcache >"$cache_file"
5581 else
5582 case $cache_file in #(
5583 */* | ?:*)
5584 mv -f confcache "$cache_file"$$ &&
5585 mv -f "$cache_file"$$ "$cache_file" ;; #(
5586 *)
5587 mv -f confcache "$cache_file" ;;
5588 esac
5589 fi
5590 fi
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5593 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5594 fi
5595 fi
5596 rm -f confcache
5598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5599 # Let make expand exec_prefix.
5600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5602 DEFS=-DHAVE_CONFIG_H
5604 ac_libobjs=
5605 ac_ltlibobjs=
5606 U=
5607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5608 # 1. Remove the extension, and $U if already installed.
5609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5612 # will be set to the directory where LIBOBJS objects are built.
5613 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5614 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5615 done
5616 LIBOBJS=$ac_libobjs
5618 LTLIBOBJS=$ac_ltlibobjs
5621 if test -n "$EXEEXT"; then
5622 am__EXEEXT_TRUE=
5623 am__EXEEXT_FALSE='#'
5624 else
5625 am__EXEEXT_TRUE='#'
5626 am__EXEEXT_FALSE=
5627 fi
5629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5630 as_fn_error $? "conditional \"AMDEP\" was never defined.
5631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5632 fi
5633 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5634 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5636 fi
5638 : "${CONFIG_STATUS=./config.status}"
5639 ac_write_fail=0
5640 ac_clean_files_save=$ac_clean_files
5641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5644 as_write_fail=0
5645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5646 #! $SHELL
5647 # Generated by $as_me.
5648 # Run this file to recreate the current configuration.
5649 # Compiler output produced by configure, useful for debugging
5650 # configure, is in config.log if it exists.
5652 debug=false
5653 ac_cs_recheck=false
5654 ac_cs_silent=false
5656 SHELL=\${CONFIG_SHELL-$SHELL}
5657 export SHELL
5658 _ASEOF
5659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5660 ## -------------------- ##
5661 ## M4sh Initialization. ##
5662 ## -------------------- ##
5664 # Be more Bourne compatible
5665 DUALCASE=1; export DUALCASE # for MKS sh
5666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5667 emulate sh
5668 NULLCMD=:
5669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5670 # is contrary to our usage. Disable this feature.
5671 alias -g '${1+"$@"}'='"$@"'
5672 setopt NO_GLOB_SUBST
5673 else
5674 case `(set -o) 2>/dev/null` in #(
5675 *posix*) :
5676 set -o posix ;; #(
5677 *) :
5678 ;;
5679 esac
5680 fi
5683 as_nl='
5684 '
5685 export as_nl
5686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5690 # Prefer a ksh shell builtin over an external printf program on Solaris,
5691 # but without wasting forks for bash or zsh.
5692 if test -z "$BASH_VERSION$ZSH_VERSION" \
5693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5694 as_echo='print -r --'
5695 as_echo_n='print -rn --'
5696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5697 as_echo='printf %s\n'
5698 as_echo_n='printf %s'
5699 else
5700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5702 as_echo_n='/usr/ucb/echo -n'
5703 else
5704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5705 as_echo_n_body='eval
5706 arg=$1;
5707 case $arg in #(
5708 *"$as_nl"*)
5709 expr "X$arg" : "X\\(.*\\)$as_nl";
5710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5711 esac;
5712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5713 '
5714 export as_echo_n_body
5715 as_echo_n='sh -c $as_echo_n_body as_echo'
5716 fi
5717 export as_echo_body
5718 as_echo='sh -c $as_echo_body as_echo'
5719 fi
5721 # The user is always right.
5722 if test "${PATH_SEPARATOR+set}" != set; then
5723 PATH_SEPARATOR=:
5724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5726 PATH_SEPARATOR=';'
5727 }
5728 fi
5731 # IFS
5732 # We need space, tab and new line, in precisely that order. Quoting is
5733 # there to prevent editors from complaining about space-tab.
5734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5735 # splitting by setting IFS to empty value.)
5736 IFS=" "" $as_nl"
5738 # Find who we are. Look in the path if we contain no directory separator.
5739 as_myself=
5740 case $0 in #((
5741 *[\\/]* ) as_myself=$0 ;;
5742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5748 done
5749 IFS=$as_save_IFS
5751 ;;
5752 esac
5753 # We did not find ourselves, most probably we were run as `sh COMMAND'
5754 # in which case we are not to be found in the path.
5755 if test "x$as_myself" = x; then
5756 as_myself=$0
5757 fi
5758 if test ! -f "$as_myself"; then
5759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5760 exit 1
5761 fi
5763 # Unset variables that we do not need and which cause bugs (e.g. in
5764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5765 # suppresses any "Segmentation fault" message there. '((' could
5766 # trigger a bug in pdksh 5.2.14.
5767 for as_var in BASH_ENV ENV MAIL MAILPATH
5768 do eval test x\${$as_var+set} = xset \
5769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5770 done
5771 PS1='$ '
5772 PS2='> '
5773 PS4='+ '
5775 # NLS nuisances.
5776 LC_ALL=C
5777 export LC_ALL
5778 LANGUAGE=C
5779 export LANGUAGE
5781 # CDPATH.
5782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5785 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5786 # ----------------------------------------
5787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5789 # script with STATUS, using 1 if that was 0.
5790 as_fn_error ()
5791 {
5792 as_status=$1; test $as_status -eq 0 && as_status=1
5793 if test "$4"; then
5794 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5796 fi
5797 $as_echo "$as_me: error: $2" >&2
5798 as_fn_exit $as_status
5799 } # as_fn_error
5802 # as_fn_set_status STATUS
5803 # -----------------------
5804 # Set $? to STATUS, without forking.
5805 as_fn_set_status ()
5806 {
5807 return $1
5808 } # as_fn_set_status
5810 # as_fn_exit STATUS
5811 # -----------------
5812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5813 as_fn_exit ()
5814 {
5815 set +e
5816 as_fn_set_status $1
5817 exit $1
5818 } # as_fn_exit
5820 # as_fn_unset VAR
5821 # ---------------
5822 # Portably unset VAR.
5823 as_fn_unset ()
5824 {
5825 { eval $1=; unset $1;}
5826 }
5827 as_unset=as_fn_unset
5828 # as_fn_append VAR VALUE
5829 # ----------------------
5830 # Append the text in VALUE to the end of the definition contained in VAR. Take
5831 # advantage of any shell optimizations that allow amortized linear growth over
5832 # repeated appends, instead of the typical quadratic growth present in naive
5833 # implementations.
5834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5835 eval 'as_fn_append ()
5836 {
5837 eval $1+=\$2
5838 }'
5839 else
5840 as_fn_append ()
5841 {
5842 eval $1=\$$1\$2
5843 }
5844 fi # as_fn_append
5846 # as_fn_arith ARG...
5847 # ------------------
5848 # Perform arithmetic evaluation on the ARGs, and store the result in the
5849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5850 # must be portable across $(()) and expr.
5851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5852 eval 'as_fn_arith ()
5853 {
5854 as_val=$(( $* ))
5855 }'
5856 else
5857 as_fn_arith ()
5858 {
5859 as_val=`expr "$@" || test $? -eq 1`
5860 }
5861 fi # as_fn_arith
5864 if expr a : '\(a\)' >/dev/null 2>&1 &&
5865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5866 as_expr=expr
5867 else
5868 as_expr=false
5869 fi
5871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5872 as_basename=basename
5873 else
5874 as_basename=false
5875 fi
5877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5878 as_dirname=dirname
5879 else
5880 as_dirname=false
5881 fi
5883 as_me=`$as_basename -- "$0" ||
5884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5885 X"$0" : 'X\(//\)$' \| \
5886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5887 $as_echo X/"$0" |
5888 sed '/^.*\/\([^/][^/]*\)\/*$/{
5889 s//\1/
5890 q
5891 }
5892 /^X\/\(\/\/\)$/{
5893 s//\1/
5894 q
5895 }
5896 /^X\/\(\/\).*/{
5897 s//\1/
5898 q
5899 }
5900 s/.*/./; q'`
5902 # Avoid depending upon Character Ranges.
5903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5906 as_cr_digits='0123456789'
5907 as_cr_alnum=$as_cr_Letters$as_cr_digits
5909 ECHO_C= ECHO_N= ECHO_T=
5910 case `echo -n x` in #(((((
5911 -n*)
5912 case `echo 'xy\c'` in
5913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5914 xy) ECHO_C='\c';;
5915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5916 ECHO_T=' ';;
5917 esac;;
5918 *)
5919 ECHO_N='-n';;
5920 esac
5922 rm -f conf$$ conf$$.exe conf$$.file
5923 if test -d conf$$.dir; then
5924 rm -f conf$$.dir/conf$$.file
5925 else
5926 rm -f conf$$.dir
5927 mkdir conf$$.dir 2>/dev/null
5928 fi
5929 if (echo >conf$$.file) 2>/dev/null; then
5930 if ln -s conf$$.file conf$$ 2>/dev/null; then
5931 as_ln_s='ln -s'
5932 # ... but there are two gotchas:
5933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5935 # In both cases, we have to default to `cp -p'.
5936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5937 as_ln_s='cp -p'
5938 elif ln conf$$.file conf$$ 2>/dev/null; then
5939 as_ln_s=ln
5940 else
5941 as_ln_s='cp -p'
5942 fi
5943 else
5944 as_ln_s='cp -p'
5945 fi
5946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5947 rmdir conf$$.dir 2>/dev/null
5950 # as_fn_mkdir_p
5951 # -------------
5952 # Create "$as_dir" as a directory, including parents if necessary.
5953 as_fn_mkdir_p ()
5954 {
5956 case $as_dir in #(
5957 -*) as_dir=./$as_dir;;
5958 esac
5959 test -d "$as_dir" || eval $as_mkdir_p || {
5960 as_dirs=
5961 while :; do
5962 case $as_dir in #(
5963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5964 *) as_qdir=$as_dir;;
5965 esac
5966 as_dirs="'$as_qdir' $as_dirs"
5967 as_dir=`$as_dirname -- "$as_dir" ||
5968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5969 X"$as_dir" : 'X\(//\)[^/]' \| \
5970 X"$as_dir" : 'X\(//\)$' \| \
5971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5972 $as_echo X"$as_dir" |
5973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5974 s//\1/
5975 q
5976 }
5977 /^X\(\/\/\)[^/].*/{
5978 s//\1/
5979 q
5980 }
5981 /^X\(\/\/\)$/{
5982 s//\1/
5983 q
5984 }
5985 /^X\(\/\).*/{
5986 s//\1/
5987 q
5988 }
5989 s/.*/./; q'`
5990 test -d "$as_dir" && break
5991 done
5992 test -z "$as_dirs" || eval "mkdir $as_dirs"
5993 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5996 } # as_fn_mkdir_p
5997 if mkdir -p . 2>/dev/null; then
5998 as_mkdir_p='mkdir -p "$as_dir"'
5999 else
6000 test -d ./-p && rmdir ./-p
6001 as_mkdir_p=false
6002 fi
6004 if test -x / >/dev/null 2>&1; then
6005 as_test_x='test -x'
6006 else
6007 if ls -dL / >/dev/null 2>&1; then
6008 as_ls_L_option=L
6009 else
6010 as_ls_L_option=
6011 fi
6012 as_test_x='
6013 eval sh -c '\''
6014 if test -d "$1"; then
6015 test -d "$1/.";
6016 else
6017 case $1 in #(
6018 -*)set "./$1";;
6019 esac;
6020 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6021 ???[sx]*):;;*)false;;esac;fi
6022 '\'' sh
6023 '
6024 fi
6025 as_executable_p=$as_test_x
6027 # Sed expression to map a string onto a valid CPP name.
6028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6030 # Sed expression to map a string onto a valid variable name.
6031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6034 exec 6>&1
6035 ## ----------------------------------- ##
6036 ## Main body of $CONFIG_STATUS script. ##
6037 ## ----------------------------------- ##
6038 _ASEOF
6039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6042 # Save the log message, to keep $0 and so on meaningful, and to
6043 # report actual input values of CONFIG_FILES etc. instead of their
6044 # values after options handling.
6045 ac_log="
6046 This file was extended by masqmail $as_me 0.2.30, which was
6047 generated by GNU Autoconf 2.68. Invocation command line was
6049 CONFIG_FILES = $CONFIG_FILES
6050 CONFIG_HEADERS = $CONFIG_HEADERS
6051 CONFIG_LINKS = $CONFIG_LINKS
6052 CONFIG_COMMANDS = $CONFIG_COMMANDS
6053 $ $0 $@
6055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6056 "
6058 _ACEOF
6060 case $ac_config_files in *"
6061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6062 esac
6064 case $ac_config_headers in *"
6065 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6066 esac
6069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6070 # Files that config.status was made for.
6071 config_files="$ac_config_files"
6072 config_headers="$ac_config_headers"
6073 config_commands="$ac_config_commands"
6075 _ACEOF
6077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6078 ac_cs_usage="\
6079 \`$as_me' instantiates files and other configuration actions
6080 from templates according to the current configuration. Unless the files
6081 and actions are specified as TAGs, all are instantiated by default.
6083 Usage: $0 [OPTION]... [TAG]...
6085 -h, --help print this help, then exit
6086 -V, --version print version number and configuration settings, then exit
6087 --config print configuration, then exit
6088 -q, --quiet, --silent
6089 do not print progress messages
6090 -d, --debug don't remove temporary files
6091 --recheck update $as_me by reconfiguring in the same conditions
6092 --file=FILE[:TEMPLATE]
6093 instantiate the configuration file FILE
6094 --header=FILE[:TEMPLATE]
6095 instantiate the configuration header FILE
6097 Configuration files:
6098 $config_files
6100 Configuration headers:
6101 $config_headers
6103 Configuration commands:
6104 $config_commands
6106 Report bugs to <meillo@marmaro.de>."
6108 _ACEOF
6109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6110 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6111 ac_cs_version="\\
6112 masqmail config.status 0.2.30
6113 configured by $0, generated by GNU Autoconf 2.68,
6114 with options \\"\$ac_cs_config\\"
6116 Copyright (C) 2010 Free Software Foundation, Inc.
6117 This config.status script is free software; the Free Software Foundation
6118 gives unlimited permission to copy, distribute and modify it."
6120 ac_pwd='$ac_pwd'
6121 srcdir='$srcdir'
6122 INSTALL='$INSTALL'
6123 MKDIR_P='$MKDIR_P'
6124 AWK='$AWK'
6125 test -n "\$AWK" || AWK=awk
6126 _ACEOF
6128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6129 # The default lists apply if the user does not specify any file.
6130 ac_need_defaults=:
6131 while test $# != 0
6132 do
6133 case $1 in
6134 --*=?*)
6135 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6136 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6137 ac_shift=:
6138 ;;
6139 --*=)
6140 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6141 ac_optarg=
6142 ac_shift=:
6143 ;;
6144 *)
6145 ac_option=$1
6146 ac_optarg=$2
6147 ac_shift=shift
6148 ;;
6149 esac
6151 case $ac_option in
6152 # Handling of the options.
6153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6154 ac_cs_recheck=: ;;
6155 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6156 $as_echo "$ac_cs_version"; exit ;;
6157 --config | --confi | --conf | --con | --co | --c )
6158 $as_echo "$ac_cs_config"; exit ;;
6159 --debug | --debu | --deb | --de | --d | -d )
6160 debug=: ;;
6161 --file | --fil | --fi | --f )
6162 $ac_shift
6163 case $ac_optarg in
6164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6165 '') as_fn_error $? "missing file argument" ;;
6166 esac
6167 as_fn_append CONFIG_FILES " '$ac_optarg'"
6168 ac_need_defaults=false;;
6169 --header | --heade | --head | --hea )
6170 $ac_shift
6171 case $ac_optarg in
6172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6173 esac
6174 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6175 ac_need_defaults=false;;
6176 --he | --h)
6177 # Conflict between --help and --header
6178 as_fn_error $? "ambiguous option: \`$1'
6179 Try \`$0 --help' for more information.";;
6180 --help | --hel | -h )
6181 $as_echo "$ac_cs_usage"; exit ;;
6182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6183 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6184 ac_cs_silent=: ;;
6186 # This is an error.
6187 -*) as_fn_error $? "unrecognized option: \`$1'
6188 Try \`$0 --help' for more information." ;;
6190 *) as_fn_append ac_config_targets " $1"
6191 ac_need_defaults=false ;;
6193 esac
6194 shift
6195 done
6197 ac_configure_extra_args=
6199 if $ac_cs_silent; then
6200 exec 6>/dev/null
6201 ac_configure_extra_args="$ac_configure_extra_args --silent"
6202 fi
6204 _ACEOF
6205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6206 if \$ac_cs_recheck; then
6207 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6208 shift
6209 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6210 CONFIG_SHELL='$SHELL'
6211 export CONFIG_SHELL
6212 exec "\$@"
6213 fi
6215 _ACEOF
6216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6217 exec 5>>config.log
6218 {
6219 echo
6220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6221 ## Running $as_me. ##
6222 _ASBOX
6223 $as_echo "$ac_log"
6224 } >&5
6226 _ACEOF
6227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6228 #
6229 # INIT-COMMANDS
6230 #
6231 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6233 _ACEOF
6235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6237 # Handling of arguments.
6238 for ac_config_target in $ac_config_targets
6239 do
6240 case $ac_config_target in
6241 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6242 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6243 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6244 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6245 "src/base64/Makefile") CONFIG_FILES="$CONFIG_FILES src/base64/Makefile" ;;
6246 "src/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/md5/Makefile" ;;
6247 "src/libident/Makefile") CONFIG_FILES="$CONFIG_FILES src/libident/Makefile" ;;
6248 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6250 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6251 esac
6252 done
6255 # If the user did not use the arguments to specify the items to instantiate,
6256 # then the envvar interface is used. Set only those that are not.
6257 # We use the long form for the default assignment because of an extremely
6258 # bizarre bug on SunOS 4.1.3.
6259 if $ac_need_defaults; then
6260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6263 fi
6265 # Have a temporary directory for convenience. Make it in the build tree
6266 # simply because there is no reason against having it here, and in addition,
6267 # creating and moving files from /tmp can sometimes cause problems.
6268 # Hook for its removal unless debugging.
6269 # Note that there is a small window in which the directory will not be cleaned:
6270 # after its creation but before its name has been assigned to `$tmp'.
6271 $debug ||
6272 {
6273 tmp= ac_tmp=
6274 trap 'exit_status=$?
6275 : "${ac_tmp:=$tmp}"
6276 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6277 ' 0
6278 trap 'as_fn_exit 1' 1 2 13 15
6279 }
6280 # Create a (secure) tmp directory for tmp files.
6282 {
6283 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6284 test -d "$tmp"
6285 } ||
6286 {
6287 tmp=./conf$$-$RANDOM
6288 (umask 077 && mkdir "$tmp")
6289 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6290 ac_tmp=$tmp
6292 # Set up the scripts for CONFIG_FILES section.
6293 # No need to generate them if there are no CONFIG_FILES.
6294 # This happens for instance with `./config.status config.h'.
6295 if test -n "$CONFIG_FILES"; then
6298 ac_cr=`echo X | tr X '\015'`
6299 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6300 # But we know of no other shell where ac_cr would be empty at this
6301 # point, so we can use a bashism as a fallback.
6302 if test "x$ac_cr" = x; then
6303 eval ac_cr=\$\'\\r\'
6304 fi
6305 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6307 ac_cs_awk_cr='\\r'
6308 else
6309 ac_cs_awk_cr=$ac_cr
6310 fi
6312 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6313 _ACEOF
6316 {
6317 echo "cat >conf$$subs.awk <<_ACEOF" &&
6318 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6319 echo "_ACEOF"
6320 } >conf$$subs.sh ||
6321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6322 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6323 ac_delim='%!_!# '
6324 for ac_last_try in false false false false false :; do
6325 . ./conf$$subs.sh ||
6326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6328 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6329 if test $ac_delim_n = $ac_delim_num; then
6330 break
6331 elif $ac_last_try; then
6332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6333 else
6334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6335 fi
6336 done
6337 rm -f conf$$subs.sh
6339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6340 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6341 _ACEOF
6342 sed -n '
6343 h
6344 s/^/S["/; s/!.*/"]=/
6345 p
6346 g
6347 s/^[^!]*!//
6348 :repl
6349 t repl
6350 s/'"$ac_delim"'$//
6351 t delim
6352 :nl
6353 h
6354 s/\(.\{148\}\)..*/\1/
6355 t more1
6356 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6357 p
6358 n
6359 b repl
6360 :more1
6361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6362 p
6363 g
6364 s/.\{148\}//
6365 t nl
6366 :delim
6367 h
6368 s/\(.\{148\}\)..*/\1/
6369 t more2
6370 s/["\\]/\\&/g; s/^/"/; s/$/"/
6371 p
6372 b
6373 :more2
6374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6375 p
6376 g
6377 s/.\{148\}//
6378 t delim
6379 ' <conf$$subs.awk | sed '
6380 /^[^""]/{
6381 N
6382 s/\n//
6383 }
6384 ' >>$CONFIG_STATUS || ac_write_fail=1
6385 rm -f conf$$subs.awk
6386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6387 _ACAWK
6388 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6389 for (key in S) S_is_set[key] = 1
6390 FS = ""
6392 }
6393 {
6394 line = $ 0
6395 nfields = split(line, field, "@")
6396 substed = 0
6397 len = length(field[1])
6398 for (i = 2; i < nfields; i++) {
6399 key = field[i]
6400 keylen = length(key)
6401 if (S_is_set[key]) {
6402 value = S[key]
6403 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6404 len += length(value) + length(field[++i])
6405 substed = 1
6406 } else
6407 len += 1 + keylen
6408 }
6410 print line
6411 }
6413 _ACAWK
6414 _ACEOF
6415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6418 else
6419 cat
6420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6422 _ACEOF
6424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6426 # trailing colons and then remove the whole line if VPATH becomes empty
6427 # (actually we leave an empty line to preserve line numbers).
6428 if test "x$srcdir" = x.; then
6429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6430 h
6431 s///
6432 s/^/:/
6433 s/[ ]*$/:/
6434 s/:\$(srcdir):/:/g
6435 s/:\${srcdir}:/:/g
6436 s/:@srcdir@:/:/g
6437 s/^:*//
6438 s/:*$//
6439 x
6440 s/\(=[ ]*\).*/\1/
6441 G
6442 s/\n//
6443 s/^[^=]*=[ ]*$//
6444 }'
6445 fi
6447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6448 fi # test -n "$CONFIG_FILES"
6450 # Set up the scripts for CONFIG_HEADERS section.
6451 # No need to generate them if there are no CONFIG_HEADERS.
6452 # This happens for instance with `./config.status Makefile'.
6453 if test -n "$CONFIG_HEADERS"; then
6454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6455 BEGIN {
6456 _ACEOF
6458 # Transform confdefs.h into an awk script `defines.awk', embedded as
6459 # here-document in config.status, that substitutes the proper values into
6460 # config.h.in to produce config.h.
6462 # Create a delimiter string that does not exist in confdefs.h, to ease
6463 # handling of long lines.
6464 ac_delim='%!_!# '
6465 for ac_last_try in false false :; do
6466 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6467 if test -z "$ac_tt"; then
6468 break
6469 elif $ac_last_try; then
6470 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6471 else
6472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6473 fi
6474 done
6476 # For the awk script, D is an array of macro values keyed by name,
6477 # likewise P contains macro parameters if any. Preserve backslash
6478 # newline sequences.
6480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6481 sed -n '
6482 s/.\{148\}/&'"$ac_delim"'/g
6483 t rset
6484 :rset
6485 s/^[ ]*#[ ]*define[ ][ ]*/ /
6486 t def
6487 d
6488 :def
6489 s/\\$//
6490 t bsnl
6491 s/["\\]/\\&/g
6492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6493 D["\1"]=" \3"/p
6494 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6495 d
6496 :bsnl
6497 s/["\\]/\\&/g
6498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6499 D["\1"]=" \3\\\\\\n"\\/p
6500 t cont
6501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6502 t cont
6503 d
6504 :cont
6505 n
6506 s/.\{148\}/&'"$ac_delim"'/g
6507 t clear
6508 :clear
6509 s/\\$//
6510 t bsnlc
6511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6512 d
6513 :bsnlc
6514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6515 b cont
6516 ' <confdefs.h | sed '
6517 s/'"$ac_delim"'/"\\\
6518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6521 for (key in D) D_is_set[key] = 1
6522 FS = ""
6523 }
6524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6525 line = \$ 0
6526 split(line, arg, " ")
6527 if (arg[1] == "#") {
6528 defundef = arg[2]
6529 mac1 = arg[3]
6530 } else {
6531 defundef = substr(arg[1], 2)
6532 mac1 = arg[2]
6533 }
6534 split(mac1, mac2, "(") #)
6535 macro = mac2[1]
6536 prefix = substr(line, 1, index(line, defundef) - 1)
6537 if (D_is_set[macro]) {
6538 # Preserve the white space surrounding the "#".
6539 print prefix "define", macro P[macro] D[macro]
6540 next
6541 } else {
6542 # Replace #undef with comments. This is necessary, for example,
6543 # in the case of _POSIX_SOURCE, which is predefined and required
6544 # on some systems where configure will not decide to define it.
6545 if (defundef == "undef") {
6546 print "/*", prefix defundef, macro, "*/"
6547 next
6548 }
6549 }
6550 }
6551 { print }
6552 _ACAWK
6553 _ACEOF
6554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6555 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6556 fi # test -n "$CONFIG_HEADERS"
6559 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6560 shift
6561 for ac_tag
6562 do
6563 case $ac_tag in
6564 :[FHLC]) ac_mode=$ac_tag; continue;;
6565 esac
6566 case $ac_mode$ac_tag in
6567 :[FHL]*:*);;
6568 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6569 :[FH]-) ac_tag=-:-;;
6570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6571 esac
6572 ac_save_IFS=$IFS
6573 IFS=:
6574 set x $ac_tag
6575 IFS=$ac_save_IFS
6576 shift
6577 ac_file=$1
6578 shift
6580 case $ac_mode in
6581 :L) ac_source=$1;;
6582 :[FH])
6583 ac_file_inputs=
6584 for ac_f
6585 do
6586 case $ac_f in
6587 -) ac_f="$ac_tmp/stdin";;
6588 *) # Look for the file first in the build tree, then in the source tree
6589 # (if the path is not absolute). The absolute path cannot be DOS-style,
6590 # because $ac_f cannot contain `:'.
6591 test -f "$ac_f" ||
6592 case $ac_f in
6593 [\\/$]*) false;;
6594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6595 esac ||
6596 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6597 esac
6598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6599 as_fn_append ac_file_inputs " '$ac_f'"
6600 done
6602 # Let's still pretend it is `configure' which instantiates (i.e., don't
6603 # use $as_me), people would be surprised to read:
6604 # /* config.h. Generated by config.status. */
6605 configure_input='Generated from '`
6606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6607 `' by configure.'
6608 if test x"$ac_file" != x-; then
6609 configure_input="$ac_file. $configure_input"
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6611 $as_echo "$as_me: creating $ac_file" >&6;}
6612 fi
6613 # Neutralize special characters interpreted by sed in replacement strings.
6614 case $configure_input in #(
6615 *\&* | *\|* | *\\* )
6616 ac_sed_conf_input=`$as_echo "$configure_input" |
6617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6618 *) ac_sed_conf_input=$configure_input;;
6619 esac
6621 case $ac_tag in
6622 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6624 esac
6625 ;;
6626 esac
6628 ac_dir=`$as_dirname -- "$ac_file" ||
6629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6630 X"$ac_file" : 'X\(//\)[^/]' \| \
6631 X"$ac_file" : 'X\(//\)$' \| \
6632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6633 $as_echo X"$ac_file" |
6634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6635 s//\1/
6636 q
6637 }
6638 /^X\(\/\/\)[^/].*/{
6639 s//\1/
6640 q
6641 }
6642 /^X\(\/\/\)$/{
6643 s//\1/
6644 q
6645 }
6646 /^X\(\/\).*/{
6647 s//\1/
6648 q
6649 }
6650 s/.*/./; q'`
6651 as_dir="$ac_dir"; as_fn_mkdir_p
6652 ac_builddir=.
6654 case "$ac_dir" in
6655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6656 *)
6657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6658 # A ".." for each directory in $ac_dir_suffix.
6659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6660 case $ac_top_builddir_sub in
6661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6663 esac ;;
6664 esac
6665 ac_abs_top_builddir=$ac_pwd
6666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6667 # for backward compatibility:
6668 ac_top_builddir=$ac_top_build_prefix
6670 case $srcdir in
6671 .) # We are building in place.
6672 ac_srcdir=.
6673 ac_top_srcdir=$ac_top_builddir_sub
6674 ac_abs_top_srcdir=$ac_pwd ;;
6675 [\\/]* | ?:[\\/]* ) # Absolute name.
6676 ac_srcdir=$srcdir$ac_dir_suffix;
6677 ac_top_srcdir=$srcdir
6678 ac_abs_top_srcdir=$srcdir ;;
6679 *) # Relative name.
6680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6681 ac_top_srcdir=$ac_top_build_prefix$srcdir
6682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6683 esac
6684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6687 case $ac_mode in
6688 :F)
6689 #
6690 # CONFIG_FILE
6691 #
6693 case $INSTALL in
6694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6696 esac
6697 ac_MKDIR_P=$MKDIR_P
6698 case $MKDIR_P in
6699 [\\/$]* | ?:[\\/]* ) ;;
6700 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6701 esac
6702 _ACEOF
6704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6705 # If the template does not know about datarootdir, expand it.
6706 # FIXME: This hack should be removed a few years after 2.60.
6707 ac_datarootdir_hack=; ac_datarootdir_seen=
6708 ac_sed_dataroot='
6709 /datarootdir/ {
6710 p
6711 q
6712 }
6713 /@datadir@/p
6714 /@docdir@/p
6715 /@infodir@/p
6716 /@localedir@/p
6717 /@mandir@/p'
6718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6719 *datarootdir*) ac_datarootdir_seen=yes;;
6720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6722 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6723 _ACEOF
6724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6725 ac_datarootdir_hack='
6726 s&@datadir@&$datadir&g
6727 s&@docdir@&$docdir&g
6728 s&@infodir@&$infodir&g
6729 s&@localedir@&$localedir&g
6730 s&@mandir@&$mandir&g
6731 s&\\\${datarootdir}&$datarootdir&g' ;;
6732 esac
6733 _ACEOF
6735 # Neutralize VPATH when `$srcdir' = `.'.
6736 # Shell code in configure.ac might set extrasub.
6737 # FIXME: do we really want to maintain this feature?
6738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6739 ac_sed_extra="$ac_vpsub
6740 $extrasub
6741 _ACEOF
6742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6743 :t
6744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6745 s|@configure_input@|$ac_sed_conf_input|;t t
6746 s&@top_builddir@&$ac_top_builddir_sub&;t t
6747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6748 s&@srcdir@&$ac_srcdir&;t t
6749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6750 s&@top_srcdir@&$ac_top_srcdir&;t t
6751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6752 s&@builddir@&$ac_builddir&;t t
6753 s&@abs_builddir@&$ac_abs_builddir&;t t
6754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6755 s&@INSTALL@&$ac_INSTALL&;t t
6756 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6757 $ac_datarootdir_hack
6758 "
6759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6760 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6765 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6767 which seems to be undefined. Please make sure it is defined" >&5
6768 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6769 which seems to be undefined. Please make sure it is defined" >&2;}
6771 rm -f "$ac_tmp/stdin"
6772 case $ac_file in
6773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6775 esac \
6776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6777 ;;
6778 :H)
6779 #
6780 # CONFIG_HEADER
6781 #
6782 if test x"$ac_file" != x-; then
6783 {
6784 $as_echo "/* $configure_input */" \
6785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6786 } >"$ac_tmp/config.h" \
6787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6790 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6791 else
6792 rm -f "$ac_file"
6793 mv "$ac_tmp/config.h" "$ac_file" \
6794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6795 fi
6796 else
6797 $as_echo "/* $configure_input */" \
6798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6799 || as_fn_error $? "could not create -" "$LINENO" 5
6800 fi
6801 # Compute "$ac_file"'s index in $config_headers.
6802 _am_arg="$ac_file"
6803 _am_stamp_count=1
6804 for _am_header in $config_headers :; do
6805 case $_am_header in
6806 $_am_arg | $_am_arg:* )
6807 break ;;
6808 * )
6809 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6810 esac
6811 done
6812 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6813 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6814 X"$_am_arg" : 'X\(//\)[^/]' \| \
6815 X"$_am_arg" : 'X\(//\)$' \| \
6816 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6817 $as_echo X"$_am_arg" |
6818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6819 s//\1/
6820 q
6821 }
6822 /^X\(\/\/\)[^/].*/{
6823 s//\1/
6824 q
6825 }
6826 /^X\(\/\/\)$/{
6827 s//\1/
6828 q
6829 }
6830 /^X\(\/\).*/{
6831 s//\1/
6832 q
6833 }
6834 s/.*/./; q'`/stamp-h$_am_stamp_count
6835 ;;
6837 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6838 $as_echo "$as_me: executing $ac_file commands" >&6;}
6839 ;;
6840 esac
6843 case $ac_file$ac_mode in
6844 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6845 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6846 # are listed without --file. Let's play safe and only enable the eval
6847 # if we detect the quoting.
6848 case $CONFIG_FILES in
6849 *\'*) eval set x "$CONFIG_FILES" ;;
6850 *) set x $CONFIG_FILES ;;
6851 esac
6852 shift
6853 for mf
6854 do
6855 # Strip MF so we end up with the name of the file.
6856 mf=`echo "$mf" | sed -e 's/:.*$//'`
6857 # Check whether this is an Automake generated Makefile or not.
6858 # We used to match only the files named `Makefile.in', but
6859 # some people rename them; so instead we look at the file content.
6860 # Grep'ing the first line is not enough: some people post-process
6861 # each Makefile.in and add a new line on top of each file to say so.
6862 # Grep'ing the whole file is not good either: AIX grep has a line
6863 # limit of 2048, but all sed's we know have understand at least 4000.
6864 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6865 dirpart=`$as_dirname -- "$mf" ||
6866 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6867 X"$mf" : 'X\(//\)[^/]' \| \
6868 X"$mf" : 'X\(//\)$' \| \
6869 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6870 $as_echo X"$mf" |
6871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6872 s//\1/
6873 q
6874 }
6875 /^X\(\/\/\)[^/].*/{
6876 s//\1/
6877 q
6878 }
6879 /^X\(\/\/\)$/{
6880 s//\1/
6881 q
6882 }
6883 /^X\(\/\).*/{
6884 s//\1/
6885 q
6886 }
6887 s/.*/./; q'`
6888 else
6889 continue
6890 fi
6891 # Extract the definition of DEPDIR, am__include, and am__quote
6892 # from the Makefile without running `make'.
6893 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6894 test -z "$DEPDIR" && continue
6895 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6896 test -z "am__include" && continue
6897 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6898 # When using ansi2knr, U may be empty or an underscore; expand it
6899 U=`sed -n 's/^U = //p' < "$mf"`
6900 # Find all dependency output files, they are included files with
6901 # $(DEPDIR) in their names. We invoke sed twice because it is the
6902 # simplest approach to changing $(DEPDIR) to its actual value in the
6903 # expansion.
6904 for file in `sed -n "
6905 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6906 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6907 # Make sure the directory exists.
6908 test -f "$dirpart/$file" && continue
6909 fdir=`$as_dirname -- "$file" ||
6910 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6911 X"$file" : 'X\(//\)[^/]' \| \
6912 X"$file" : 'X\(//\)$' \| \
6913 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6914 $as_echo X"$file" |
6915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6916 s//\1/
6917 q
6918 }
6919 /^X\(\/\/\)[^/].*/{
6920 s//\1/
6921 q
6922 }
6923 /^X\(\/\/\)$/{
6924 s//\1/
6925 q
6926 }
6927 /^X\(\/\).*/{
6928 s//\1/
6929 q
6930 }
6931 s/.*/./; q'`
6932 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6933 # echo "creating $dirpart/$file"
6934 echo '# dummy' > "$dirpart/$file"
6935 done
6936 done
6937 }
6938 ;;
6940 esac
6941 done # for ac_tag
6944 as_fn_exit 0
6945 _ACEOF
6946 ac_clean_files=$ac_clean_files_save
6948 test $ac_write_fail = 0 ||
6949 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6952 # configure is writing to config.log, and then calls config.status.
6953 # config.status does its own redirection, appending to config.log.
6954 # Unfortunately, on DOS this fails, as config.log is still kept open
6955 # by configure, so config.status won't be able to write to it; its
6956 # output is simply discarded. So we exec the FD to /dev/null,
6957 # effectively closing config.log, so it can be properly (re)opened and
6958 # appended to by config.status. When coming back to configure, we
6959 # need to make the FD available again.
6960 if test "$no_create" != yes; then
6961 ac_cs_success=:
6962 ac_config_status_args=
6963 test "$silent" = yes &&
6964 ac_config_status_args="$ac_config_status_args --quiet"
6965 exec 5>/dev/null
6966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6967 exec 5>>config.log
6968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6969 # would make configure fail if this is the last instruction.
6970 $ac_cs_success || as_fn_exit 1
6971 fi
6972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6975 fi