Annotation of embedaddon/rsync/configure.sh, revision 1.1.1.4
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.4 ! misho 3: # Generated by GNU Autoconf 2.69 for rsync .
1.1 misho 4: #
1.1.1.4 ! misho 5: # Report bugs to <https://rsync.samba.org/bug-tracking.html>.
1.1 misho 6: #
1.1.1.3 misho 7: #
8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1 misho 9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
1.1.1.3 misho 137: # Use a proper internal environment variable to ensure we don't fall
138: # into an infinite loop, continuously re-executing ourselves.
139: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140: _as_can_reexec=no; export _as_can_reexec;
141: # We cannot yet assume a decent shell, so we have to provide a
142: # neutralization value for shells without unset; and this also
143: # works around shells that cannot unset nonexistent variables.
144: # Preserve -v and -x to the replacement shell.
145: BASH_ENV=/dev/null
146: ENV=/dev/null
147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148: case $- in # ((((
149: *v*x* | *x*v* ) as_opts=-vx ;;
150: *v* ) as_opts=-v ;;
151: *x* ) as_opts=-x ;;
152: * ) as_opts= ;;
153: esac
154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155: # Admittedly, this is quite paranoid, since all the known shells bail
156: # out after a failed `exec'.
157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158: as_fn_exit 255
159: fi
160: # We don't want this to propagate to other subprocesses.
161: { _as_can_reexec=; unset _as_can_reexec;}
1.1 misho 162: if test "x$CONFIG_SHELL" = x; then
163: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164: emulate sh
165: NULLCMD=:
166: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167: # is contrary to our usage. Disable this feature.
168: alias -g '\${1+\"\$@\"}'='\"\$@\"'
169: setopt NO_GLOB_SUBST
170: else
171: case \`(set -o) 2>/dev/null\` in #(
172: *posix*) :
173: set -o posix ;; #(
174: *) :
175: ;;
176: esac
177: fi
178: "
179: as_required="as_fn_return () { (exit \$1); }
180: as_fn_success () { as_fn_return 0; }
181: as_fn_failure () { as_fn_return 1; }
182: as_fn_ret_success () { return 0; }
183: as_fn_ret_failure () { return 1; }
184:
185: exitcode=0
186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191:
192: else
193: exitcode=1; echo positional parameters were not saved.
194: fi
1.1.1.3 misho 195: test x\$exitcode = x0 || exit 1
196: test -x / || exit 1"
1.1 misho 197: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201: test \$(( 1 + 1 )) = 2 || exit 1"
202: if (eval "$as_required") 2>/dev/null; then :
203: as_have_required=yes
204: else
205: as_have_required=no
206: fi
207: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208:
209: else
210: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211: as_found=false
212: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213: do
214: IFS=$as_save_IFS
215: test -z "$as_dir" && as_dir=.
216: as_found=:
217: case $as_dir in #(
218: /*)
219: for as_base in sh bash ksh sh5; do
220: # Try only shells that exist, to save several forks.
221: as_shell=$as_dir/$as_base
222: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224: CONFIG_SHELL=$as_shell as_have_required=yes
225: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226: break 2
227: fi
228: fi
229: done;;
230: esac
231: as_found=false
232: done
233: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235: CONFIG_SHELL=$SHELL as_have_required=yes
236: fi; }
237: IFS=$as_save_IFS
238:
239:
240: if test "x$CONFIG_SHELL" != x; then :
1.1.1.3 misho 241: export CONFIG_SHELL
242: # We cannot yet assume a decent shell, so we have to provide a
243: # neutralization value for shells without unset; and this also
244: # works around shells that cannot unset nonexistent variables.
245: # Preserve -v and -x to the replacement shell.
246: BASH_ENV=/dev/null
247: ENV=/dev/null
248: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249: case $- in # ((((
250: *v*x* | *x*v* ) as_opts=-vx ;;
251: *v* ) as_opts=-v ;;
252: *x* ) as_opts=-x ;;
253: * ) as_opts= ;;
254: esac
255: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256: # Admittedly, this is quite paranoid, since all the known shells bail
257: # out after a failed `exec'.
258: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259: exit 255
1.1 misho 260: fi
261:
262: if test x$as_have_required = xno; then :
263: $as_echo "$0: This script requires a shell more modern than all"
264: $as_echo "$0: the shells that I found on your system."
265: if test x${ZSH_VERSION+set} = xset ; then
266: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268: else
1.1.1.3 misho 269: $as_echo "$0: Please tell bug-autoconf@gnu.org and
1.1.1.4 ! misho 270: $0: https://rsync.samba.org/bug-tracking.html about your
! 271: $0: system, including any error possibly output before this
1.1 misho 272: $0: message. Then install a modern shell, or manually run
273: $0: the script under such a shell if you do have one."
274: fi
275: exit 1
276: fi
277: fi
278: fi
279: SHELL=${CONFIG_SHELL-/bin/sh}
280: export SHELL
281: # Unset more variables known to interfere with behavior of common tools.
282: CLICOLOR_FORCE= GREP_OPTIONS=
283: unset CLICOLOR_FORCE GREP_OPTIONS
284:
285: ## --------------------- ##
286: ## M4sh Shell Functions. ##
287: ## --------------------- ##
288: # as_fn_unset VAR
289: # ---------------
290: # Portably unset VAR.
291: as_fn_unset ()
292: {
293: { eval $1=; unset $1;}
294: }
295: as_unset=as_fn_unset
296:
297: # as_fn_set_status STATUS
298: # -----------------------
299: # Set $? to STATUS, without forking.
300: as_fn_set_status ()
301: {
302: return $1
303: } # as_fn_set_status
304:
305: # as_fn_exit STATUS
306: # -----------------
307: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308: as_fn_exit ()
309: {
310: set +e
311: as_fn_set_status $1
312: exit $1
313: } # as_fn_exit
314:
315: # as_fn_mkdir_p
316: # -------------
317: # Create "$as_dir" as a directory, including parents if necessary.
318: as_fn_mkdir_p ()
319: {
320:
321: case $as_dir in #(
322: -*) as_dir=./$as_dir;;
323: esac
324: test -d "$as_dir" || eval $as_mkdir_p || {
325: as_dirs=
326: while :; do
327: case $as_dir in #(
328: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329: *) as_qdir=$as_dir;;
330: esac
331: as_dirs="'$as_qdir' $as_dirs"
332: as_dir=`$as_dirname -- "$as_dir" ||
333: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334: X"$as_dir" : 'X\(//\)[^/]' \| \
335: X"$as_dir" : 'X\(//\)$' \| \
336: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337: $as_echo X"$as_dir" |
338: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339: s//\1/
340: q
341: }
342: /^X\(\/\/\)[^/].*/{
343: s//\1/
344: q
345: }
346: /^X\(\/\/\)$/{
347: s//\1/
348: q
349: }
350: /^X\(\/\).*/{
351: s//\1/
352: q
353: }
354: s/.*/./; q'`
355: test -d "$as_dir" && break
356: done
357: test -z "$as_dirs" || eval "mkdir $as_dirs"
358: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359:
360:
361: } # as_fn_mkdir_p
1.1.1.3 misho 362:
363: # as_fn_executable_p FILE
364: # -----------------------
365: # Test if FILE is an executable regular file.
366: as_fn_executable_p ()
367: {
368: test -f "$1" && test -x "$1"
369: } # as_fn_executable_p
1.1 misho 370: # as_fn_append VAR VALUE
371: # ----------------------
372: # Append the text in VALUE to the end of the definition contained in VAR. Take
373: # advantage of any shell optimizations that allow amortized linear growth over
374: # repeated appends, instead of the typical quadratic growth present in naive
375: # implementations.
376: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377: eval 'as_fn_append ()
378: {
379: eval $1+=\$2
380: }'
381: else
382: as_fn_append ()
383: {
384: eval $1=\$$1\$2
385: }
386: fi # as_fn_append
387:
388: # as_fn_arith ARG...
389: # ------------------
390: # Perform arithmetic evaluation on the ARGs, and store the result in the
391: # global $as_val. Take advantage of shells that can avoid forks. The arguments
392: # must be portable across $(()) and expr.
393: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394: eval 'as_fn_arith ()
395: {
396: as_val=$(( $* ))
397: }'
398: else
399: as_fn_arith ()
400: {
401: as_val=`expr "$@" || test $? -eq 1`
402: }
403: fi # as_fn_arith
404:
405:
406: # as_fn_error STATUS ERROR [LINENO LOG_FD]
407: # ----------------------------------------
408: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410: # script with STATUS, using 1 if that was 0.
411: as_fn_error ()
412: {
413: as_status=$1; test $as_status -eq 0 && as_status=1
414: if test "$4"; then
415: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417: fi
418: $as_echo "$as_me: error: $2" >&2
419: as_fn_exit $as_status
420: } # as_fn_error
421:
422: if expr a : '\(a\)' >/dev/null 2>&1 &&
423: test "X`expr 00001 : '.*\(...\)'`" = X001; then
424: as_expr=expr
425: else
426: as_expr=false
427: fi
428:
429: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430: as_basename=basename
431: else
432: as_basename=false
433: fi
434:
435: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436: as_dirname=dirname
437: else
438: as_dirname=false
439: fi
440:
441: as_me=`$as_basename -- "$0" ||
442: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443: X"$0" : 'X\(//\)$' \| \
444: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445: $as_echo X/"$0" |
446: sed '/^.*\/\([^/][^/]*\)\/*$/{
447: s//\1/
448: q
449: }
450: /^X\/\(\/\/\)$/{
451: s//\1/
452: q
453: }
454: /^X\/\(\/\).*/{
455: s//\1/
456: q
457: }
458: s/.*/./; q'`
459:
460: # Avoid depending upon Character Ranges.
461: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464: as_cr_digits='0123456789'
465: as_cr_alnum=$as_cr_Letters$as_cr_digits
466:
467:
468: as_lineno_1=$LINENO as_lineno_1a=$LINENO
469: as_lineno_2=$LINENO as_lineno_2a=$LINENO
470: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473: sed -n '
474: p
475: /[$]LINENO/=
476: ' <$as_myself |
477: sed '
478: s/[$]LINENO.*/&-/
479: t lineno
480: b
481: :lineno
482: N
483: :loop
484: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485: t loop
486: s/-\n.*//
487: ' >$as_me.lineno &&
488: chmod +x "$as_me.lineno" ||
489: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490:
1.1.1.3 misho 491: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492: # already done that, so ensure we don't try to do so again and fall
493: # in an infinite loop. This has already happened in practice.
494: _as_can_reexec=no; export _as_can_reexec
1.1 misho 495: # Don't try to exec as it changes $[0], causing all sort of problems
496: # (the dirname of $[0] is not the place where we might find the
497: # original and so on. Autoconf is especially sensitive to this).
498: . "./$as_me.lineno"
499: # Exit status is that of the last command.
500: exit
501: }
502:
503: ECHO_C= ECHO_N= ECHO_T=
504: case `echo -n x` in #(((((
505: -n*)
506: case `echo 'xy\c'` in
507: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508: xy) ECHO_C='\c';;
509: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510: ECHO_T=' ';;
511: esac;;
512: *)
513: ECHO_N='-n';;
514: esac
515:
516: rm -f conf$$ conf$$.exe conf$$.file
517: if test -d conf$$.dir; then
518: rm -f conf$$.dir/conf$$.file
519: else
520: rm -f conf$$.dir
521: mkdir conf$$.dir 2>/dev/null
522: fi
523: if (echo >conf$$.file) 2>/dev/null; then
524: if ln -s conf$$.file conf$$ 2>/dev/null; then
525: as_ln_s='ln -s'
526: # ... but there are two gotchas:
527: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3 misho 529: # In both cases, we have to default to `cp -pR'.
1.1 misho 530: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 misho 531: as_ln_s='cp -pR'
1.1 misho 532: elif ln conf$$.file conf$$ 2>/dev/null; then
533: as_ln_s=ln
534: else
1.1.1.3 misho 535: as_ln_s='cp -pR'
1.1 misho 536: fi
537: else
1.1.1.3 misho 538: as_ln_s='cp -pR'
1.1 misho 539: fi
540: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541: rmdir conf$$.dir 2>/dev/null
542:
543: if mkdir -p . 2>/dev/null; then
544: as_mkdir_p='mkdir -p "$as_dir"'
545: else
546: test -d ./-p && rmdir ./-p
547: as_mkdir_p=false
548: fi
549:
1.1.1.3 misho 550: as_test_x='test -x'
551: as_executable_p=as_fn_executable_p
1.1 misho 552:
553: # Sed expression to map a string onto a valid CPP name.
554: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555:
556: # Sed expression to map a string onto a valid variable name.
557: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558:
559:
560: test -n "$DJDIR" || exec 7<&0 </dev/null
561: exec 6>&1
562:
563: # Name of the host.
564: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565: # so uname gets run too.
566: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567:
568: #
569: # Initializations.
570: #
571: ac_default_prefix=/usr/local
572: ac_clean_files=
573: ac_config_libobj_dir=.
574: LIBOBJS=
575: cross_compiling=no
576: subdirs=
577: MFLAGS=
578: MAKEFLAGS=
579:
580: # Identity of this package.
1.1.1.3 misho 581: PACKAGE_NAME='rsync'
582: PACKAGE_TARNAME='rsync'
1.1.1.4 ! misho 583: PACKAGE_VERSION=' '
! 584: PACKAGE_STRING='rsync '
! 585: PACKAGE_BUGREPORT='https://rsync.samba.org/bug-tracking.html'
1.1.1.3 misho 586: PACKAGE_URL=''
1.1 misho 587:
588: ac_unique_file="byteorder.h"
1.1.1.3 misho 589: ac_config_libobj_dir=lib
1.1 misho 590: # Factoring default headers for most tests.
591: ac_includes_default="\
592: #include <stdio.h>
593: #ifdef HAVE_SYS_TYPES_H
594: # include <sys/types.h>
595: #endif
596: #ifdef HAVE_SYS_STAT_H
597: # include <sys/stat.h>
598: #endif
599: #ifdef STDC_HEADERS
600: # include <stdlib.h>
601: # include <stddef.h>
602: #else
603: # ifdef HAVE_STDLIB_H
604: # include <stdlib.h>
605: # endif
606: #endif
607: #ifdef HAVE_STRING_H
608: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609: # include <memory.h>
610: # endif
611: # include <string.h>
612: #endif
613: #ifdef HAVE_STRINGS_H
614: # include <strings.h>
615: #endif
616: #ifdef HAVE_INTTYPES_H
617: # include <inttypes.h>
618: #endif
619: #ifdef HAVE_STDINT_H
620: # include <stdint.h>
621: #endif
622: #ifdef HAVE_UNISTD_H
623: # include <unistd.h>
624: #endif"
625:
626: ac_header_list=
627: ac_subst_vars='LTLIBOBJS
1.1.1.4 ! misho 628: MYSQL_CONFIG
1.1 misho 629: MAKE_MAN
1.1.1.2 misho 630: BUILD_ZLIB
1.1 misho 631: BUILD_POPT
632: CC_SHOBJ_FLAG
633: OBJ_RESTORE
634: OBJ_SAVE
1.1.1.4 ! misho 635: SLPOBJ
! 636: LIBSLP
1.1 misho 637: ALLOCA
638: LIBOBJS
1.1.1.4 ! misho 639: ASM
! 640: NOEXECSTACK
! 641: SIMD
1.1.1.2 misho 642: FAKEROOT_PATH
643: SHELL_PATH
1.1 misho 644: HAVE_REMSH
1.1.1.4 ! misho 645: PYTHON3
1.1.1.3 misho 646: PERL
1.1.1.2 misho 647: MKDIR_P
1.1 misho 648: INSTALL_DATA
649: INSTALL_SCRIPT
650: INSTALL_PROGRAM
651: EGREP
652: GREP
1.1.1.4 ! misho 653: AWK
! 654: ac_ct_CXX
! 655: CXXFLAGS
! 656: CXX
1.1 misho 657: CPP
658: OBJEXT
659: EXEEXT
660: ac_ct_CC
661: CPPFLAGS
662: LDFLAGS
663: CFLAGS
664: CC
665: host_os
666: host_vendor
667: host_cpu
668: host
669: build_os
670: build_vendor
671: build_cpu
672: build
673: target_alias
674: host_alias
675: build_alias
676: LIBS
677: ECHO_T
678: ECHO_N
679: ECHO_C
680: DEFS
681: mandir
682: localedir
683: libdir
684: psdir
685: pdfdir
686: dvidir
687: htmldir
688: infodir
689: docdir
690: oldincludedir
691: includedir
1.1.1.4 ! misho 692: runstatedir
1.1 misho 693: localstatedir
694: sharedstatedir
695: sysconfdir
696: datadir
697: datarootdir
698: libexecdir
699: sbindir
700: bindir
701: program_transform_name
702: prefix
703: exec_prefix
704: PACKAGE_URL
705: PACKAGE_BUGREPORT
706: PACKAGE_STRING
707: PACKAGE_VERSION
708: PACKAGE_TARNAME
709: PACKAGE_NAME
710: PATH_SEPARATOR
711: SHELL'
712: ac_subst_files=''
713: ac_user_opts='
714: enable_option_checking
715: enable_debug
716: enable_profile
1.1.1.4 ! misho 717: enable_md2man
1.1 misho 718: enable_maintainer_mode
719: with_included_popt
1.1.1.2 misho 720: with_included_zlib
721: with_protected_args
1.1 misho 722: with_rsync_path
723: with_rsyncd_conf
724: with_rsh
725: with_nobody_group
1.1.1.4 ! misho 726: enable_simd
! 727: enable_asm
1.1 misho 728: enable_largefile
729: enable_ipv6
730: enable_locale
1.1.1.4 ! misho 731: enable_openssl
! 732: enable_xxhash
! 733: enable_zstd
! 734: enable_lz4
1.1 misho 735: enable_iconv_open
736: enable_iconv
1.1.1.4 ! misho 737: with_gssapi
1.1 misho 738: enable_acl_support
739: enable_xattr_support
1.1.1.4 ! misho 740: enable_mysql
! 741: enable_sqlite
1.1 misho 742: '
743: ac_precious_vars='build_alias
744: host_alias
745: target_alias
746: CC
747: CFLAGS
748: LDFLAGS
749: LIBS
750: CPPFLAGS
1.1.1.4 ! misho 751: CPP
! 752: CXX
! 753: CXXFLAGS
! 754: CCC'
1.1 misho 755:
756:
757: # Initialize some variables set by options.
758: ac_init_help=
759: ac_init_version=false
760: ac_unrecognized_opts=
761: ac_unrecognized_sep=
762: # The variables have the same names as the options, with
763: # dashes changed to underlines.
764: cache_file=/dev/null
765: exec_prefix=NONE
766: no_create=
767: no_recursion=
768: prefix=NONE
769: program_prefix=NONE
770: program_suffix=NONE
771: program_transform_name=s,x,x,
772: silent=
773: site=
774: srcdir=
775: verbose=
776: x_includes=NONE
777: x_libraries=NONE
778:
779: # Installation directory options.
780: # These are left unexpanded so users can "make install exec_prefix=/foo"
781: # and all the variables that are supposed to be based on exec_prefix
782: # by default will actually change.
783: # Use braces instead of parens because sh, perl, etc. also accept them.
784: # (The list follows the same order as the GNU Coding Standards.)
785: bindir='${exec_prefix}/bin'
786: sbindir='${exec_prefix}/sbin'
787: libexecdir='${exec_prefix}/libexec'
788: datarootdir='${prefix}/share'
789: datadir='${datarootdir}'
790: sysconfdir='${prefix}/etc'
791: sharedstatedir='${prefix}/com'
792: localstatedir='${prefix}/var'
1.1.1.4 ! misho 793: runstatedir='${localstatedir}/run'
1.1 misho 794: includedir='${prefix}/include'
795: oldincludedir='/usr/include'
1.1.1.3 misho 796: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1.1 misho 797: infodir='${datarootdir}/info'
798: htmldir='${docdir}'
799: dvidir='${docdir}'
800: pdfdir='${docdir}'
801: psdir='${docdir}'
802: libdir='${exec_prefix}/lib'
803: localedir='${datarootdir}/locale'
804: mandir='${datarootdir}/man'
805:
806: ac_prev=
807: ac_dashdash=
808: for ac_option
809: do
810: # If the previous option needs an argument, assign it.
811: if test -n "$ac_prev"; then
812: eval $ac_prev=\$ac_option
813: ac_prev=
814: continue
815: fi
816:
817: case $ac_option in
818: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819: *=) ac_optarg= ;;
820: *) ac_optarg=yes ;;
821: esac
822:
823: # Accept the important Cygnus configure options, so we can diagnose typos.
824:
825: case $ac_dashdash$ac_option in
826: --)
827: ac_dashdash=yes ;;
828:
829: -bindir | --bindir | --bindi | --bind | --bin | --bi)
830: ac_prev=bindir ;;
831: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832: bindir=$ac_optarg ;;
833:
834: -build | --build | --buil | --bui | --bu)
835: ac_prev=build_alias ;;
836: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837: build_alias=$ac_optarg ;;
838:
839: -cache-file | --cache-file | --cache-fil | --cache-fi \
840: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841: ac_prev=cache_file ;;
842: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844: cache_file=$ac_optarg ;;
845:
846: --config-cache | -C)
847: cache_file=config.cache ;;
848:
849: -datadir | --datadir | --datadi | --datad)
850: ac_prev=datadir ;;
851: -datadir=* | --datadir=* | --datadi=* | --datad=*)
852: datadir=$ac_optarg ;;
853:
854: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855: | --dataroo | --dataro | --datar)
856: ac_prev=datarootdir ;;
857: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859: datarootdir=$ac_optarg ;;
860:
861: -disable-* | --disable-*)
862: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863: # Reject names that are not valid shell variable names.
864: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865: as_fn_error $? "invalid feature name: $ac_useropt"
866: ac_useropt_orig=$ac_useropt
867: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868: case $ac_user_opts in
869: *"
870: "enable_$ac_useropt"
871: "*) ;;
872: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873: ac_unrecognized_sep=', ';;
874: esac
875: eval enable_$ac_useropt=no ;;
876:
877: -docdir | --docdir | --docdi | --doc | --do)
878: ac_prev=docdir ;;
879: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880: docdir=$ac_optarg ;;
881:
882: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883: ac_prev=dvidir ;;
884: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885: dvidir=$ac_optarg ;;
886:
887: -enable-* | --enable-*)
888: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889: # Reject names that are not valid shell variable names.
890: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891: as_fn_error $? "invalid feature name: $ac_useropt"
892: ac_useropt_orig=$ac_useropt
893: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894: case $ac_user_opts in
895: *"
896: "enable_$ac_useropt"
897: "*) ;;
898: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899: ac_unrecognized_sep=', ';;
900: esac
901: eval enable_$ac_useropt=\$ac_optarg ;;
902:
903: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905: | --exec | --exe | --ex)
906: ac_prev=exec_prefix ;;
907: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909: | --exec=* | --exe=* | --ex=*)
910: exec_prefix=$ac_optarg ;;
911:
912: -gas | --gas | --ga | --g)
913: # Obsolete; use --with-gas.
914: with_gas=yes ;;
915:
916: -help | --help | --hel | --he | -h)
917: ac_init_help=long ;;
918: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919: ac_init_help=recursive ;;
920: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921: ac_init_help=short ;;
922:
923: -host | --host | --hos | --ho)
924: ac_prev=host_alias ;;
925: -host=* | --host=* | --hos=* | --ho=*)
926: host_alias=$ac_optarg ;;
927:
928: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929: ac_prev=htmldir ;;
930: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931: | --ht=*)
932: htmldir=$ac_optarg ;;
933:
934: -includedir | --includedir | --includedi | --included | --include \
935: | --includ | --inclu | --incl | --inc)
936: ac_prev=includedir ;;
937: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938: | --includ=* | --inclu=* | --incl=* | --inc=*)
939: includedir=$ac_optarg ;;
940:
941: -infodir | --infodir | --infodi | --infod | --info | --inf)
942: ac_prev=infodir ;;
943: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944: infodir=$ac_optarg ;;
945:
946: -libdir | --libdir | --libdi | --libd)
947: ac_prev=libdir ;;
948: -libdir=* | --libdir=* | --libdi=* | --libd=*)
949: libdir=$ac_optarg ;;
950:
951: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952: | --libexe | --libex | --libe)
953: ac_prev=libexecdir ;;
954: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955: | --libexe=* | --libex=* | --libe=*)
956: libexecdir=$ac_optarg ;;
957:
958: -localedir | --localedir | --localedi | --localed | --locale)
959: ac_prev=localedir ;;
960: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961: localedir=$ac_optarg ;;
962:
963: -localstatedir | --localstatedir | --localstatedi | --localstated \
964: | --localstate | --localstat | --localsta | --localst | --locals)
965: ac_prev=localstatedir ;;
966: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968: localstatedir=$ac_optarg ;;
969:
970: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971: ac_prev=mandir ;;
972: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973: mandir=$ac_optarg ;;
974:
975: -nfp | --nfp | --nf)
976: # Obsolete; use --without-fp.
977: with_fp=no ;;
978:
979: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980: | --no-cr | --no-c | -n)
981: no_create=yes ;;
982:
983: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985: no_recursion=yes ;;
986:
987: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989: | --oldin | --oldi | --old | --ol | --o)
990: ac_prev=oldincludedir ;;
991: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994: oldincludedir=$ac_optarg ;;
995:
996: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997: ac_prev=prefix ;;
998: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999: prefix=$ac_optarg ;;
1000:
1001: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002: | --program-pre | --program-pr | --program-p)
1003: ac_prev=program_prefix ;;
1004: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006: program_prefix=$ac_optarg ;;
1007:
1008: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009: | --program-suf | --program-su | --program-s)
1010: ac_prev=program_suffix ;;
1011: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013: program_suffix=$ac_optarg ;;
1014:
1015: -program-transform-name | --program-transform-name \
1016: | --program-transform-nam | --program-transform-na \
1017: | --program-transform-n | --program-transform- \
1018: | --program-transform | --program-transfor \
1019: | --program-transfo | --program-transf \
1020: | --program-trans | --program-tran \
1021: | --progr-tra | --program-tr | --program-t)
1022: ac_prev=program_transform_name ;;
1023: -program-transform-name=* | --program-transform-name=* \
1024: | --program-transform-nam=* | --program-transform-na=* \
1025: | --program-transform-n=* | --program-transform-=* \
1026: | --program-transform=* | --program-transfor=* \
1027: | --program-transfo=* | --program-transf=* \
1028: | --program-trans=* | --program-tran=* \
1029: | --progr-tra=* | --program-tr=* | --program-t=*)
1030: program_transform_name=$ac_optarg ;;
1031:
1032: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033: ac_prev=pdfdir ;;
1034: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035: pdfdir=$ac_optarg ;;
1036:
1037: -psdir | --psdir | --psdi | --psd | --ps)
1038: ac_prev=psdir ;;
1039: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040: psdir=$ac_optarg ;;
1041:
1042: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043: | -silent | --silent | --silen | --sile | --sil)
1044: silent=yes ;;
1045:
1.1.1.4 ! misho 1046: -runstatedir | --runstatedir | --runstatedi | --runstated \
! 1047: | --runstate | --runstat | --runsta | --runst | --runs \
! 1048: | --run | --ru | --r)
! 1049: ac_prev=runstatedir ;;
! 1050: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
! 1051: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
! 1052: | --run=* | --ru=* | --r=*)
! 1053: runstatedir=$ac_optarg ;;
! 1054:
1.1 misho 1055: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056: ac_prev=sbindir ;;
1057: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058: | --sbi=* | --sb=*)
1059: sbindir=$ac_optarg ;;
1060:
1061: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063: | --sharedst | --shareds | --shared | --share | --shar \
1064: | --sha | --sh)
1065: ac_prev=sharedstatedir ;;
1066: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069: | --sha=* | --sh=*)
1070: sharedstatedir=$ac_optarg ;;
1071:
1072: -site | --site | --sit)
1073: ac_prev=site ;;
1074: -site=* | --site=* | --sit=*)
1075: site=$ac_optarg ;;
1076:
1077: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078: ac_prev=srcdir ;;
1079: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080: srcdir=$ac_optarg ;;
1081:
1082: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083: | --syscon | --sysco | --sysc | --sys | --sy)
1084: ac_prev=sysconfdir ;;
1085: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087: sysconfdir=$ac_optarg ;;
1088:
1089: -target | --target | --targe | --targ | --tar | --ta | --t)
1090: ac_prev=target_alias ;;
1091: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092: target_alias=$ac_optarg ;;
1093:
1094: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095: verbose=yes ;;
1096:
1097: -version | --version | --versio | --versi | --vers | -V)
1098: ac_init_version=: ;;
1099:
1100: -with-* | --with-*)
1101: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102: # Reject names that are not valid shell variable names.
1103: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104: as_fn_error $? "invalid package name: $ac_useropt"
1105: ac_useropt_orig=$ac_useropt
1106: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107: case $ac_user_opts in
1108: *"
1109: "with_$ac_useropt"
1110: "*) ;;
1111: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112: ac_unrecognized_sep=', ';;
1113: esac
1114: eval with_$ac_useropt=\$ac_optarg ;;
1115:
1116: -without-* | --without-*)
1117: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118: # Reject names that are not valid shell variable names.
1119: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120: as_fn_error $? "invalid package name: $ac_useropt"
1121: ac_useropt_orig=$ac_useropt
1122: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123: case $ac_user_opts in
1124: *"
1125: "with_$ac_useropt"
1126: "*) ;;
1127: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128: ac_unrecognized_sep=', ';;
1129: esac
1130: eval with_$ac_useropt=no ;;
1131:
1132: --x)
1133: # Obsolete; use --with-x.
1134: with_x=yes ;;
1135:
1136: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137: | --x-incl | --x-inc | --x-in | --x-i)
1138: ac_prev=x_includes ;;
1139: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141: x_includes=$ac_optarg ;;
1142:
1143: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145: ac_prev=x_libraries ;;
1146: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148: x_libraries=$ac_optarg ;;
1149:
1150: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1151: Try \`$0 --help' for more information"
1152: ;;
1153:
1154: *=*)
1155: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156: # Reject names that are not valid shell variable names.
1157: case $ac_envvar in #(
1158: '' | [0-9]* | *[!_$as_cr_alnum]* )
1159: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1160: esac
1161: eval $ac_envvar=\$ac_optarg
1162: export $ac_envvar ;;
1163:
1164: *)
1165: # FIXME: should be removed in autoconf 3.0.
1166: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1170: ;;
1171:
1172: esac
1173: done
1174:
1175: if test -n "$ac_prev"; then
1176: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177: as_fn_error $? "missing argument to $ac_option"
1178: fi
1179:
1180: if test -n "$ac_unrecognized_opts"; then
1181: case $enable_option_checking in
1182: no) ;;
1183: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1184: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185: esac
1186: fi
1187:
1188: # Check all directory arguments for consistency.
1189: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190: datadir sysconfdir sharedstatedir localstatedir includedir \
1191: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.1.1.4 ! misho 1192: libdir localedir mandir runstatedir
1.1 misho 1193: do
1194: eval ac_val=\$$ac_var
1195: # Remove trailing slashes.
1196: case $ac_val in
1197: */ )
1198: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199: eval $ac_var=\$ac_val;;
1200: esac
1201: # Be sure to have absolute directory names.
1202: case $ac_val in
1203: [\\/$]* | ?:[\\/]* ) continue;;
1204: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205: esac
1206: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207: done
1208:
1209: # There might be people who depend on the old broken behavior: `$host'
1210: # used to hold the argument of --host etc.
1211: # FIXME: To remove some day.
1212: build=$build_alias
1213: host=$host_alias
1214: target=$target_alias
1215:
1216: # FIXME: To remove some day.
1217: if test "x$host_alias" != x; then
1218: if test "x$build_alias" = x; then
1219: cross_compiling=maybe
1220: elif test "x$build_alias" != "x$host_alias"; then
1221: cross_compiling=yes
1222: fi
1223: fi
1224:
1225: ac_tool_prefix=
1226: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227:
1228: test "$silent" = yes && exec 6>/dev/null
1229:
1230:
1231: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232: ac_ls_di=`ls -di .` &&
1233: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234: as_fn_error $? "working directory cannot be determined"
1235: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236: as_fn_error $? "pwd does not report name of working directory"
1237:
1238:
1239: # Find the source files, if location was not specified.
1240: if test -z "$srcdir"; then
1241: ac_srcdir_defaulted=yes
1242: # Try the directory containing this script, then the parent directory.
1243: ac_confdir=`$as_dirname -- "$as_myself" ||
1244: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245: X"$as_myself" : 'X\(//\)[^/]' \| \
1246: X"$as_myself" : 'X\(//\)$' \| \
1247: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248: $as_echo X"$as_myself" |
1249: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250: s//\1/
1251: q
1252: }
1253: /^X\(\/\/\)[^/].*/{
1254: s//\1/
1255: q
1256: }
1257: /^X\(\/\/\)$/{
1258: s//\1/
1259: q
1260: }
1261: /^X\(\/\).*/{
1262: s//\1/
1263: q
1264: }
1265: s/.*/./; q'`
1266: srcdir=$ac_confdir
1267: if test ! -r "$srcdir/$ac_unique_file"; then
1268: srcdir=..
1269: fi
1270: else
1271: ac_srcdir_defaulted=no
1272: fi
1273: if test ! -r "$srcdir/$ac_unique_file"; then
1274: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276: fi
1277: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278: ac_abs_confdir=`(
1279: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280: pwd)`
1281: # When building in place, set srcdir=.
1282: if test "$ac_abs_confdir" = "$ac_pwd"; then
1283: srcdir=.
1284: fi
1285: # Remove unnecessary trailing slashes from srcdir.
1286: # Double slashes in file names in object file debugging info
1287: # mess up M-x gdb in Emacs.
1288: case $srcdir in
1289: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290: esac
1291: for ac_var in $ac_precious_vars; do
1292: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293: eval ac_env_${ac_var}_value=\$${ac_var}
1294: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296: done
1297:
1298: #
1299: # Report the --help message.
1300: #
1301: if test "$ac_init_help" = "long"; then
1302: # Omit some internal or obsolete options to make the list less imposing.
1303: # This message is too long to be a string in the A/UX 3.1 sh.
1304: cat <<_ACEOF
1.1.1.4 ! misho 1305: \`configure' configures rsync to adapt to many kinds of systems.
1.1 misho 1306:
1307: Usage: $0 [OPTION]... [VAR=VALUE]...
1308:
1309: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310: VAR=VALUE. See below for descriptions of some of the useful variables.
1311:
1312: Defaults for the options are specified in brackets.
1313:
1314: Configuration:
1315: -h, --help display this help and exit
1316: --help=short display options specific to this package
1317: --help=recursive display the short help of all the included packages
1318: -V, --version display version information and exit
1319: -q, --quiet, --silent do not print \`checking ...' messages
1320: --cache-file=FILE cache test results in FILE [disabled]
1321: -C, --config-cache alias for \`--cache-file=config.cache'
1322: -n, --no-create do not create output files
1323: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324:
1325: Installation directories:
1326: --prefix=PREFIX install architecture-independent files in PREFIX
1327: [$ac_default_prefix]
1328: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329: [PREFIX]
1330:
1331: By default, \`make install' will install all the files in
1332: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334: for instance \`--prefix=\$HOME'.
1335:
1336: For better control, use the options below.
1337:
1338: Fine tuning of the installation directories:
1339: --bindir=DIR user executables [EPREFIX/bin]
1340: --sbindir=DIR system admin executables [EPREFIX/sbin]
1341: --libexecdir=DIR program executables [EPREFIX/libexec]
1342: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.1.1.4 ! misho 1345: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 misho 1346: --libdir=DIR object code libraries [EPREFIX/lib]
1347: --includedir=DIR C header files [PREFIX/include]
1348: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351: --infodir=DIR info documentation [DATAROOTDIR/info]
1352: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353: --mandir=DIR man documentation [DATAROOTDIR/man]
1.1.1.3 misho 1354: --docdir=DIR documentation root [DATAROOTDIR/doc/rsync]
1.1 misho 1355: --htmldir=DIR html documentation [DOCDIR]
1356: --dvidir=DIR dvi documentation [DOCDIR]
1357: --pdfdir=DIR pdf documentation [DOCDIR]
1358: --psdir=DIR ps documentation [DOCDIR]
1359: _ACEOF
1360:
1361: cat <<\_ACEOF
1362:
1363: System types:
1364: --build=BUILD configure for building on BUILD [guessed]
1365: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366: _ACEOF
1367: fi
1368:
1369: if test -n "$ac_init_help"; then
1.1.1.3 misho 1370: case $ac_init_help in
1.1.1.4 ! misho 1371: short | recursive ) echo "Configuration of rsync :";;
1.1.1.3 misho 1372: esac
1.1 misho 1373: cat <<\_ACEOF
1374:
1375: Optional Features:
1376: --disable-option-checking ignore unrecognized --enable/--with options
1377: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1379: --disable-debug disable debugging symbols and features
1380: --enable-profile turn on CPU profiling
1.1.1.4 ! misho 1381: --disable-md2man disable md2man for man page creation
1.1 misho 1382: --enable-maintainer-mode
1383: turn on extra debug features
1.1.1.4 ! misho 1384: --disable-simd disable SIMD optimizations (requires c++)
! 1385: --disable-asm disable ASM optimizations
1.1 misho 1386: --disable-largefile omit support for large files
1.1.1.4 ! misho 1387: --disable-ipv6 turn off IPv6 support
1.1 misho 1388: --disable-locale disable locale features
1.1.1.4 ! misho 1389: --disable-openssl disable openssl crypto library
! 1390: --disable-xxhash disable xxhash checksums
! 1391: --disable-zstd disable zstd compression
! 1392: --disable-lz4 disable LZ4 compression
1.1 misho 1393: --disable-iconv-open disable all use of iconv_open() function
1394: --disable-iconv disable rsync's --iconv option
1.1.1.4 ! misho 1395: --disable-slp turn off SLP support, defaults to on
1.1 misho 1396: --disable-acl-support disable ACL support
1397: --disable-xattr-support disable extended attributes
1.1.1.4 ! misho 1398: --disable-mysql disable mysql DB support
! 1399: --disable-sqlite disable sqlite DB support
1.1 misho 1400:
1401: Optional Packages:
1402: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404: --with-included-popt use bundled popt library, not from system
1.1.1.2 misho 1405: --with-included-zlib use bundled zlib library, not from system
1406: --with-protected-args make --protected-args option the default
1.1 misho 1407: --with-rsync-path=PATH set default --rsync-path to PATH (default: rsync)
1408: --with-rsyncd-conf=PATH set configuration file for rsync server to PATH
1409: (default: /etc/rsyncd.conf)
1410: --with-rsh=CMD set remote shell command to CMD (default: ssh)
1411: --with-nobody-group=GROUP
1412: set the default unprivileged group (default nobody
1413: or nogroup)
1.1.1.4 ! misho 1414: --with-gssapi support GSSAPI authentication [default=check]
1.1 misho 1415:
1416: Some influential environment variables:
1417: CC C compiler command
1418: CFLAGS C compiler flags
1419: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420: nonstandard directory <lib dir>
1421: LIBS libraries to pass to the linker, e.g. -l<library>
1422: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423: you have headers in a nonstandard directory <include dir>
1424: CPP C preprocessor
1.1.1.4 ! misho 1425: CXX C++ compiler command
! 1426: CXXFLAGS C++ compiler flags
1.1 misho 1427:
1428: Use these variables to override the choices made by `configure' or to help
1429: it to find libraries and programs with nonstandard names/locations.
1430:
1.1.1.4 ! misho 1431: Report bugs to <https://rsync.samba.org/bug-tracking.html>.
1.1 misho 1432: _ACEOF
1433: ac_status=$?
1434: fi
1435:
1436: if test "$ac_init_help" = "recursive"; then
1437: # If there are subdirs, report their specific --help.
1438: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439: test -d "$ac_dir" ||
1440: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441: continue
1442: ac_builddir=.
1443:
1444: case "$ac_dir" in
1445: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446: *)
1447: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448: # A ".." for each directory in $ac_dir_suffix.
1449: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450: case $ac_top_builddir_sub in
1451: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453: esac ;;
1454: esac
1455: ac_abs_top_builddir=$ac_pwd
1456: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457: # for backward compatibility:
1458: ac_top_builddir=$ac_top_build_prefix
1459:
1460: case $srcdir in
1461: .) # We are building in place.
1462: ac_srcdir=.
1463: ac_top_srcdir=$ac_top_builddir_sub
1464: ac_abs_top_srcdir=$ac_pwd ;;
1465: [\\/]* | ?:[\\/]* ) # Absolute name.
1466: ac_srcdir=$srcdir$ac_dir_suffix;
1467: ac_top_srcdir=$srcdir
1468: ac_abs_top_srcdir=$srcdir ;;
1469: *) # Relative name.
1470: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471: ac_top_srcdir=$ac_top_build_prefix$srcdir
1472: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473: esac
1474: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475:
1476: cd "$ac_dir" || { ac_status=$?; continue; }
1477: # Check for guested configure.
1478: if test -f "$ac_srcdir/configure.gnu"; then
1479: echo &&
1480: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481: elif test -f "$ac_srcdir/configure"; then
1482: echo &&
1483: $SHELL "$ac_srcdir/configure" --help=recursive
1484: else
1485: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486: fi || ac_status=$?
1487: cd "$ac_pwd" || { ac_status=$?; break; }
1488: done
1489: fi
1490:
1491: test -n "$ac_init_help" && exit $ac_status
1492: if $ac_init_version; then
1493: cat <<\_ACEOF
1.1.1.4 ! misho 1494: rsync configure
1.1.1.3 misho 1495: generated by GNU Autoconf 2.69
1.1 misho 1496:
1.1.1.3 misho 1497: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 1498: This configure script is free software; the Free Software Foundation
1499: gives unlimited permission to copy, distribute and modify it.
1500: _ACEOF
1501: exit
1502: fi
1503:
1504: ## ------------------------ ##
1505: ## Autoconf initialization. ##
1506: ## ------------------------ ##
1507:
1508: # ac_fn_c_try_compile LINENO
1509: # --------------------------
1510: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511: ac_fn_c_try_compile ()
1512: {
1513: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514: rm -f conftest.$ac_objext
1515: if { { ac_try="$ac_compile"
1516: case "(($ac_try" in
1517: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518: *) ac_try_echo=$ac_try;;
1519: esac
1520: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521: $as_echo "$ac_try_echo"; } >&5
1522: (eval "$ac_compile") 2>conftest.err
1523: ac_status=$?
1524: if test -s conftest.err; then
1525: grep -v '^ *+' conftest.err >conftest.er1
1526: cat conftest.er1 >&5
1527: mv -f conftest.er1 conftest.err
1528: fi
1529: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530: test $ac_status = 0; } && {
1531: test -z "$ac_c_werror_flag" ||
1532: test ! -s conftest.err
1533: } && test -s conftest.$ac_objext; then :
1534: ac_retval=0
1535: else
1536: $as_echo "$as_me: failed program was:" >&5
1537: sed 's/^/| /' conftest.$ac_ext >&5
1538:
1539: ac_retval=1
1540: fi
1541: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542: as_fn_set_status $ac_retval
1543:
1544: } # ac_fn_c_try_compile
1545:
1546: # ac_fn_c_try_cpp LINENO
1547: # ----------------------
1548: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549: ac_fn_c_try_cpp ()
1550: {
1551: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552: if { { ac_try="$ac_cpp conftest.$ac_ext"
1553: case "(($ac_try" in
1554: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555: *) ac_try_echo=$ac_try;;
1556: esac
1557: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558: $as_echo "$ac_try_echo"; } >&5
1559: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560: ac_status=$?
1561: if test -s conftest.err; then
1562: grep -v '^ *+' conftest.err >conftest.er1
1563: cat conftest.er1 >&5
1564: mv -f conftest.er1 conftest.err
1565: fi
1566: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567: test $ac_status = 0; } > conftest.i && {
1568: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569: test ! -s conftest.err
1570: }; then :
1571: ac_retval=0
1572: else
1573: $as_echo "$as_me: failed program was:" >&5
1574: sed 's/^/| /' conftest.$ac_ext >&5
1575:
1576: ac_retval=1
1577: fi
1578: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579: as_fn_set_status $ac_retval
1580:
1581: } # ac_fn_c_try_cpp
1582:
1.1.1.4 ! misho 1583: # ac_fn_cxx_try_compile LINENO
! 1584: # ----------------------------
! 1585: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1586: ac_fn_cxx_try_compile ()
! 1587: {
! 1588: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1589: rm -f conftest.$ac_objext
! 1590: if { { ac_try="$ac_compile"
! 1591: case "(($ac_try" in
! 1592: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1593: *) ac_try_echo=$ac_try;;
! 1594: esac
! 1595: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1596: $as_echo "$ac_try_echo"; } >&5
! 1597: (eval "$ac_compile") 2>conftest.err
! 1598: ac_status=$?
! 1599: if test -s conftest.err; then
! 1600: grep -v '^ *+' conftest.err >conftest.er1
! 1601: cat conftest.er1 >&5
! 1602: mv -f conftest.er1 conftest.err
! 1603: fi
! 1604: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1605: test $ac_status = 0; } && {
! 1606: test -z "$ac_cxx_werror_flag" ||
! 1607: test ! -s conftest.err
! 1608: } && test -s conftest.$ac_objext; then :
! 1609: ac_retval=0
! 1610: else
! 1611: $as_echo "$as_me: failed program was:" >&5
! 1612: sed 's/^/| /' conftest.$ac_ext >&5
! 1613:
! 1614: ac_retval=1
! 1615: fi
! 1616: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1617: as_fn_set_status $ac_retval
! 1618:
! 1619: } # ac_fn_cxx_try_compile
! 1620:
! 1621: # ac_fn_cxx_try_run LINENO
! 1622: # ------------------------
! 1623: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
! 1624: # that executables *can* be run.
! 1625: ac_fn_cxx_try_run ()
! 1626: {
! 1627: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1628: if { { ac_try="$ac_link"
! 1629: case "(($ac_try" in
! 1630: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1631: *) ac_try_echo=$ac_try;;
! 1632: esac
! 1633: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1634: $as_echo "$ac_try_echo"; } >&5
! 1635: (eval "$ac_link") 2>&5
! 1636: ac_status=$?
! 1637: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1638: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 1639: { { case "(($ac_try" in
! 1640: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1641: *) ac_try_echo=$ac_try;;
! 1642: esac
! 1643: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1644: $as_echo "$ac_try_echo"; } >&5
! 1645: (eval "$ac_try") 2>&5
! 1646: ac_status=$?
! 1647: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1648: test $ac_status = 0; }; }; then :
! 1649: ac_retval=0
! 1650: else
! 1651: $as_echo "$as_me: program exited with status $ac_status" >&5
! 1652: $as_echo "$as_me: failed program was:" >&5
! 1653: sed 's/^/| /' conftest.$ac_ext >&5
! 1654:
! 1655: ac_retval=$ac_status
! 1656: fi
! 1657: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1658: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1659: as_fn_set_status $ac_retval
! 1660:
! 1661: } # ac_fn_cxx_try_run
! 1662:
1.1 misho 1663: # ac_fn_c_try_run LINENO
1664: # ----------------------
1665: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666: # that executables *can* be run.
1667: ac_fn_c_try_run ()
1668: {
1669: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670: if { { ac_try="$ac_link"
1671: case "(($ac_try" in
1672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673: *) ac_try_echo=$ac_try;;
1674: esac
1675: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676: $as_echo "$ac_try_echo"; } >&5
1677: (eval "$ac_link") 2>&5
1678: ac_status=$?
1679: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681: { { case "(($ac_try" in
1682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683: *) ac_try_echo=$ac_try;;
1684: esac
1685: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686: $as_echo "$ac_try_echo"; } >&5
1687: (eval "$ac_try") 2>&5
1688: ac_status=$?
1689: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690: test $ac_status = 0; }; }; then :
1691: ac_retval=0
1692: else
1693: $as_echo "$as_me: program exited with status $ac_status" >&5
1694: $as_echo "$as_me: failed program was:" >&5
1695: sed 's/^/| /' conftest.$ac_ext >&5
1696:
1697: ac_retval=$ac_status
1698: fi
1699: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701: as_fn_set_status $ac_retval
1702:
1703: } # ac_fn_c_try_run
1704:
1705: # ac_fn_c_try_link LINENO
1706: # -----------------------
1707: # Try to link conftest.$ac_ext, and return whether this succeeded.
1708: ac_fn_c_try_link ()
1709: {
1710: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711: rm -f conftest.$ac_objext conftest$ac_exeext
1712: if { { ac_try="$ac_link"
1713: case "(($ac_try" in
1714: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715: *) ac_try_echo=$ac_try;;
1716: esac
1717: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718: $as_echo "$ac_try_echo"; } >&5
1719: (eval "$ac_link") 2>conftest.err
1720: ac_status=$?
1721: if test -s conftest.err; then
1722: grep -v '^ *+' conftest.err >conftest.er1
1723: cat conftest.er1 >&5
1724: mv -f conftest.er1 conftest.err
1725: fi
1726: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727: test $ac_status = 0; } && {
1728: test -z "$ac_c_werror_flag" ||
1729: test ! -s conftest.err
1730: } && test -s conftest$ac_exeext && {
1731: test "$cross_compiling" = yes ||
1.1.1.3 misho 1732: test -x conftest$ac_exeext
1.1 misho 1733: }; then :
1734: ac_retval=0
1735: else
1736: $as_echo "$as_me: failed program was:" >&5
1737: sed 's/^/| /' conftest.$ac_ext >&5
1738:
1739: ac_retval=1
1740: fi
1741: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743: # interfere with the next link command; also delete a directory that is
1744: # left behind by Apple's compiler. We do this before executing the actions.
1745: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747: as_fn_set_status $ac_retval
1748:
1749: } # ac_fn_c_try_link
1750:
1751: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752: # -------------------------------------------------------
1753: # Tests whether HEADER exists and can be compiled using the include files in
1754: # INCLUDES, setting the cache variable VAR accordingly.
1755: ac_fn_c_check_header_compile ()
1756: {
1757: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759: $as_echo_n "checking for $2... " >&6; }
1760: if eval \${$3+:} false; then :
1761: $as_echo_n "(cached) " >&6
1762: else
1763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764: /* end confdefs.h. */
1765: $4
1766: #include <$2>
1767: _ACEOF
1768: if ac_fn_c_try_compile "$LINENO"; then :
1769: eval "$3=yes"
1770: else
1771: eval "$3=no"
1772: fi
1773: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774: fi
1775: eval ac_res=\$$3
1776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777: $as_echo "$ac_res" >&6; }
1778: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779:
1780: } # ac_fn_c_check_header_compile
1781:
1782: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783: # -------------------------------------------------------
1784: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785: # the include files in INCLUDES and setting the cache variable VAR
1786: # accordingly.
1787: ac_fn_c_check_header_mongrel ()
1788: {
1789: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790: if eval \${$3+:} false; then :
1791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792: $as_echo_n "checking for $2... " >&6; }
1793: if eval \${$3+:} false; then :
1794: $as_echo_n "(cached) " >&6
1795: fi
1796: eval ac_res=\$$3
1797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798: $as_echo "$ac_res" >&6; }
1799: else
1800: # Is the header compilable?
1801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802: $as_echo_n "checking $2 usability... " >&6; }
1803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804: /* end confdefs.h. */
1805: $4
1806: #include <$2>
1807: _ACEOF
1808: if ac_fn_c_try_compile "$LINENO"; then :
1809: ac_header_compiler=yes
1810: else
1811: ac_header_compiler=no
1812: fi
1813: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815: $as_echo "$ac_header_compiler" >&6; }
1816:
1817: # Is the header present?
1818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819: $as_echo_n "checking $2 presence... " >&6; }
1820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821: /* end confdefs.h. */
1822: #include <$2>
1823: _ACEOF
1824: if ac_fn_c_try_cpp "$LINENO"; then :
1825: ac_header_preproc=yes
1826: else
1827: ac_header_preproc=no
1828: fi
1829: rm -f conftest.err conftest.i conftest.$ac_ext
1830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831: $as_echo "$ac_header_preproc" >&6; }
1832:
1833: # So? What about this header?
1834: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835: yes:no: )
1836: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840: ;;
1841: no:yes:* )
1842: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1.1.1.4 ! misho 1852: ( $as_echo "## -------------------------------------------------------- ##
! 1853: ## Report this to https://rsync.samba.org/bug-tracking.html ##
! 1854: ## -------------------------------------------------------- ##"
1.1.1.3 misho 1855: ) | sed "s/^/$as_me: WARNING: /" >&2
1.1 misho 1856: ;;
1857: esac
1858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859: $as_echo_n "checking for $2... " >&6; }
1860: if eval \${$3+:} false; then :
1861: $as_echo_n "(cached) " >&6
1862: else
1863: eval "$3=\$ac_header_compiler"
1864: fi
1865: eval ac_res=\$$3
1866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867: $as_echo "$ac_res" >&6; }
1868: fi
1869: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870:
1871: } # ac_fn_c_check_header_mongrel
1872:
1873: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1874: # --------------------------------------------
1875: # Tries to find the compile-time value of EXPR in a program that includes
1876: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1877: # computed
1878: ac_fn_c_compute_int ()
1879: {
1880: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881: if test "$cross_compiling" = yes; then
1882: # Depending upon the size, compute the lo and hi bounds.
1883: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884: /* end confdefs.h. */
1885: $4
1886: int
1887: main ()
1888: {
1889: static int test_array [1 - 2 * !(($2) >= 0)];
1.1.1.3 misho 1890: test_array [0] = 0;
1891: return test_array [0];
1.1 misho 1892:
1893: ;
1894: return 0;
1895: }
1896: _ACEOF
1897: if ac_fn_c_try_compile "$LINENO"; then :
1898: ac_lo=0 ac_mid=0
1899: while :; do
1900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901: /* end confdefs.h. */
1902: $4
1903: int
1904: main ()
1905: {
1906: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.3 misho 1907: test_array [0] = 0;
1908: return test_array [0];
1.1 misho 1909:
1910: ;
1911: return 0;
1912: }
1913: _ACEOF
1914: if ac_fn_c_try_compile "$LINENO"; then :
1915: ac_hi=$ac_mid; break
1916: else
1917: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1918: if test $ac_lo -le $ac_mid; then
1919: ac_lo= ac_hi=
1920: break
1921: fi
1922: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1923: fi
1924: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925: done
1926: else
1927: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928: /* end confdefs.h. */
1929: $4
1930: int
1931: main ()
1932: {
1933: static int test_array [1 - 2 * !(($2) < 0)];
1.1.1.3 misho 1934: test_array [0] = 0;
1935: return test_array [0];
1.1 misho 1936:
1937: ;
1938: return 0;
1939: }
1940: _ACEOF
1941: if ac_fn_c_try_compile "$LINENO"; then :
1942: ac_hi=-1 ac_mid=-1
1943: while :; do
1944: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945: /* end confdefs.h. */
1946: $4
1947: int
1948: main ()
1949: {
1950: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1.1.1.3 misho 1951: test_array [0] = 0;
1952: return test_array [0];
1.1 misho 1953:
1954: ;
1955: return 0;
1956: }
1957: _ACEOF
1958: if ac_fn_c_try_compile "$LINENO"; then :
1959: ac_lo=$ac_mid; break
1960: else
1961: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1962: if test $ac_mid -le $ac_hi; then
1963: ac_lo= ac_hi=
1964: break
1965: fi
1966: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1967: fi
1968: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969: done
1970: else
1971: ac_lo= ac_hi=
1972: fi
1973: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974: fi
1975: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976: # Binary search between lo and hi bounds.
1977: while test "x$ac_lo" != "x$ac_hi"; do
1978: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980: /* end confdefs.h. */
1981: $4
1982: int
1983: main ()
1984: {
1985: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.3 misho 1986: test_array [0] = 0;
1987: return test_array [0];
1.1 misho 1988:
1989: ;
1990: return 0;
1991: }
1992: _ACEOF
1993: if ac_fn_c_try_compile "$LINENO"; then :
1994: ac_hi=$ac_mid
1995: else
1996: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1997: fi
1998: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999: done
2000: case $ac_lo in #((
2001: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2002: '') ac_retval=1 ;;
2003: esac
2004: else
2005: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006: /* end confdefs.h. */
2007: $4
2008: static long int longval () { return $2; }
2009: static unsigned long int ulongval () { return $2; }
2010: #include <stdio.h>
2011: #include <stdlib.h>
2012: int
2013: main ()
2014: {
2015:
2016: FILE *f = fopen ("conftest.val", "w");
2017: if (! f)
2018: return 1;
2019: if (($2) < 0)
2020: {
2021: long int i = longval ();
2022: if (i != ($2))
2023: return 1;
2024: fprintf (f, "%ld", i);
2025: }
2026: else
2027: {
2028: unsigned long int i = ulongval ();
2029: if (i != ($2))
2030: return 1;
2031: fprintf (f, "%lu", i);
2032: }
2033: /* Do not output a trailing newline, as this causes \r\n confusion
2034: on some platforms. */
2035: return ferror (f) || fclose (f) != 0;
2036:
2037: ;
2038: return 0;
2039: }
2040: _ACEOF
2041: if ac_fn_c_try_run "$LINENO"; then :
2042: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2043: else
2044: ac_retval=1
2045: fi
2046: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2047: conftest.$ac_objext conftest.beam conftest.$ac_ext
2048: rm -f conftest.val
2049:
2050: fi
2051: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052: as_fn_set_status $ac_retval
2053:
2054: } # ac_fn_c_compute_int
2055:
2056: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057: # -------------------------------------------
2058: # Tests whether TYPE exists after having included INCLUDES, setting cache
2059: # variable VAR accordingly.
2060: ac_fn_c_check_type ()
2061: {
2062: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064: $as_echo_n "checking for $2... " >&6; }
2065: if eval \${$3+:} false; then :
2066: $as_echo_n "(cached) " >&6
2067: else
2068: eval "$3=no"
2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
2072: int
2073: main ()
2074: {
2075: if (sizeof ($2))
2076: return 0;
2077: ;
2078: return 0;
2079: }
2080: _ACEOF
2081: if ac_fn_c_try_compile "$LINENO"; then :
2082: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083: /* end confdefs.h. */
2084: $4
2085: int
2086: main ()
2087: {
2088: if (sizeof (($2)))
2089: return 0;
2090: ;
2091: return 0;
2092: }
2093: _ACEOF
2094: if ac_fn_c_try_compile "$LINENO"; then :
2095:
2096: else
2097: eval "$3=yes"
2098: fi
2099: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100: fi
2101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102: fi
2103: eval ac_res=\$$3
2104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105: $as_echo "$ac_res" >&6; }
2106: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107:
2108: } # ac_fn_c_check_type
2109:
2110: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2111: # ----------------------------------------------------
2112: # Tries to find if the field MEMBER exists in type AGGR, after including
2113: # INCLUDES, setting cache variable VAR accordingly.
2114: ac_fn_c_check_member ()
2115: {
2116: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2118: $as_echo_n "checking for $2.$3... " >&6; }
2119: if eval \${$4+:} false; then :
2120: $as_echo_n "(cached) " >&6
2121: else
2122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123: /* end confdefs.h. */
2124: $5
2125: int
2126: main ()
2127: {
2128: static $2 ac_aggr;
2129: if (ac_aggr.$3)
2130: return 0;
2131: ;
2132: return 0;
2133: }
2134: _ACEOF
2135: if ac_fn_c_try_compile "$LINENO"; then :
2136: eval "$4=yes"
2137: else
2138: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139: /* end confdefs.h. */
2140: $5
2141: int
2142: main ()
2143: {
2144: static $2 ac_aggr;
2145: if (sizeof ac_aggr.$3)
2146: return 0;
2147: ;
2148: return 0;
2149: }
2150: _ACEOF
2151: if ac_fn_c_try_compile "$LINENO"; then :
2152: eval "$4=yes"
2153: else
2154: eval "$4=no"
2155: fi
2156: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157: fi
2158: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159: fi
2160: eval ac_res=\$$4
2161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162: $as_echo "$ac_res" >&6; }
2163: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164:
2165: } # ac_fn_c_check_member
2166:
2167: # ac_fn_c_check_func LINENO FUNC VAR
2168: # ----------------------------------
2169: # Tests whether FUNC exists, setting the cache variable VAR accordingly
2170: ac_fn_c_check_func ()
2171: {
2172: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174: $as_echo_n "checking for $2... " >&6; }
2175: if eval \${$3+:} false; then :
2176: $as_echo_n "(cached) " >&6
2177: else
2178: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179: /* end confdefs.h. */
2180: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2181: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2182: #define $2 innocuous_$2
2183:
2184: /* System header to define __stub macros and hopefully few prototypes,
2185: which can conflict with char $2 (); below.
2186: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2187: <limits.h> exists even on freestanding compilers. */
2188:
2189: #ifdef __STDC__
2190: # include <limits.h>
2191: #else
2192: # include <assert.h>
2193: #endif
2194:
2195: #undef $2
2196:
2197: /* Override any GCC internal prototype to avoid an error.
2198: Use char because int might match the return type of a GCC
2199: builtin and then its argument prototype would still apply. */
2200: #ifdef __cplusplus
2201: extern "C"
2202: #endif
2203: char $2 ();
2204: /* The GNU C library defines this for functions which it implements
2205: to always fail with ENOSYS. Some functions are actually named
2206: something starting with __ and the normal name is an alias. */
2207: #if defined __stub_$2 || defined __stub___$2
2208: choke me
2209: #endif
2210:
2211: int
2212: main ()
2213: {
2214: return $2 ();
2215: ;
2216: return 0;
2217: }
2218: _ACEOF
2219: if ac_fn_c_try_link "$LINENO"; then :
2220: eval "$3=yes"
2221: else
2222: eval "$3=no"
2223: fi
2224: rm -f core conftest.err conftest.$ac_objext \
2225: conftest$ac_exeext conftest.$ac_ext
2226: fi
2227: eval ac_res=\$$3
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229: $as_echo "$ac_res" >&6; }
2230: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231:
2232: } # ac_fn_c_check_func
2233: cat >config.log <<_ACEOF
2234: This file contains any messages produced by compilers while
2235: running configure, to aid debugging if configure makes a mistake.
2236:
1.1.1.4 ! misho 2237: It was created by rsync $as_me , which was
1.1.1.3 misho 2238: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 2239:
2240: $ $0 $@
2241:
2242: _ACEOF
2243: exec 5>>config.log
2244: {
2245: cat <<_ASUNAME
2246: ## --------- ##
2247: ## Platform. ##
2248: ## --------- ##
2249:
2250: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2251: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2252: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2253: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2254: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2255:
2256: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2257: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2258:
2259: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2260: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2261: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2262: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2263: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2264: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2265: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2266:
2267: _ASUNAME
2268:
2269: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270: for as_dir in $PATH
2271: do
2272: IFS=$as_save_IFS
2273: test -z "$as_dir" && as_dir=.
2274: $as_echo "PATH: $as_dir"
2275: done
2276: IFS=$as_save_IFS
2277:
2278: } >&5
2279:
2280: cat >&5 <<_ACEOF
2281:
2282:
2283: ## ----------- ##
2284: ## Core tests. ##
2285: ## ----------- ##
2286:
2287: _ACEOF
2288:
2289:
2290: # Keep a trace of the command line.
2291: # Strip out --no-create and --no-recursion so they do not pile up.
2292: # Strip out --silent because we don't want to record it for future runs.
2293: # Also quote any args containing shell meta-characters.
2294: # Make two passes to allow for proper duplicate-argument suppression.
2295: ac_configure_args=
2296: ac_configure_args0=
2297: ac_configure_args1=
2298: ac_must_keep_next=false
2299: for ac_pass in 1 2
2300: do
2301: for ac_arg
2302: do
2303: case $ac_arg in
2304: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2305: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2306: | -silent | --silent | --silen | --sile | --sil)
2307: continue ;;
2308: *\'*)
2309: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2310: esac
2311: case $ac_pass in
2312: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2313: 2)
2314: as_fn_append ac_configure_args1 " '$ac_arg'"
2315: if test $ac_must_keep_next = true; then
2316: ac_must_keep_next=false # Got value, back to normal.
2317: else
2318: case $ac_arg in
2319: *=* | --config-cache | -C | -disable-* | --disable-* \
2320: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2321: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2322: | -with-* | --with-* | -without-* | --without-* | --x)
2323: case "$ac_configure_args0 " in
2324: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2325: esac
2326: ;;
2327: -* ) ac_must_keep_next=true ;;
2328: esac
2329: fi
2330: as_fn_append ac_configure_args " '$ac_arg'"
2331: ;;
2332: esac
2333: done
2334: done
2335: { ac_configure_args0=; unset ac_configure_args0;}
2336: { ac_configure_args1=; unset ac_configure_args1;}
2337:
2338: # When interrupted or exit'd, cleanup temporary files, and complete
2339: # config.log. We remove comments because anyway the quotes in there
2340: # would cause problems or look ugly.
2341: # WARNING: Use '\'' to represent an apostrophe within the trap.
2342: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2343: trap 'exit_status=$?
2344: # Save into config.log some information that might help in debugging.
2345: {
2346: echo
2347:
2348: $as_echo "## ---------------- ##
2349: ## Cache variables. ##
2350: ## ---------------- ##"
2351: echo
2352: # The following way of writing the cache mishandles newlines in values,
2353: (
2354: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2355: eval ac_val=\$$ac_var
2356: case $ac_val in #(
2357: *${as_nl}*)
2358: case $ac_var in #(
2359: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2360: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2361: esac
2362: case $ac_var in #(
2363: _ | IFS | as_nl) ;; #(
2364: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2365: *) { eval $ac_var=; unset $ac_var;} ;;
2366: esac ;;
2367: esac
2368: done
2369: (set) 2>&1 |
2370: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2371: *${as_nl}ac_space=\ *)
2372: sed -n \
2373: "s/'\''/'\''\\\\'\'''\''/g;
2374: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2375: ;; #(
2376: *)
2377: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2378: ;;
2379: esac |
2380: sort
2381: )
2382: echo
2383:
2384: $as_echo "## ----------------- ##
2385: ## Output variables. ##
2386: ## ----------------- ##"
2387: echo
2388: for ac_var in $ac_subst_vars
2389: do
2390: eval ac_val=\$$ac_var
2391: case $ac_val in
2392: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393: esac
2394: $as_echo "$ac_var='\''$ac_val'\''"
2395: done | sort
2396: echo
2397:
2398: if test -n "$ac_subst_files"; then
2399: $as_echo "## ------------------- ##
2400: ## File substitutions. ##
2401: ## ------------------- ##"
2402: echo
2403: for ac_var in $ac_subst_files
2404: do
2405: eval ac_val=\$$ac_var
2406: case $ac_val in
2407: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408: esac
2409: $as_echo "$ac_var='\''$ac_val'\''"
2410: done | sort
2411: echo
2412: fi
2413:
2414: if test -s confdefs.h; then
2415: $as_echo "## ----------- ##
2416: ## confdefs.h. ##
2417: ## ----------- ##"
2418: echo
2419: cat confdefs.h
2420: echo
2421: fi
2422: test "$ac_signal" != 0 &&
2423: $as_echo "$as_me: caught signal $ac_signal"
2424: $as_echo "$as_me: exit $exit_status"
2425: } >&5
2426: rm -f core *.core core.conftest.* &&
2427: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2428: exit $exit_status
2429: ' 0
2430: for ac_signal in 1 2 13 15; do
2431: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2432: done
2433: ac_signal=0
2434:
2435: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2436: rm -f -r conftest* confdefs.h
2437:
2438: $as_echo "/* confdefs.h */" > confdefs.h
2439:
2440: # Predefined preprocessor variables.
2441:
2442: cat >>confdefs.h <<_ACEOF
2443: #define PACKAGE_NAME "$PACKAGE_NAME"
2444: _ACEOF
2445:
2446: cat >>confdefs.h <<_ACEOF
2447: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2448: _ACEOF
2449:
2450: cat >>confdefs.h <<_ACEOF
2451: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2452: _ACEOF
2453:
2454: cat >>confdefs.h <<_ACEOF
2455: #define PACKAGE_STRING "$PACKAGE_STRING"
2456: _ACEOF
2457:
2458: cat >>confdefs.h <<_ACEOF
2459: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2460: _ACEOF
2461:
2462: cat >>confdefs.h <<_ACEOF
2463: #define PACKAGE_URL "$PACKAGE_URL"
2464: _ACEOF
2465:
2466:
2467: # Let the site file select an alternate cache file if it wants to.
2468: # Prefer an explicitly selected file to automatically selected ones.
2469: ac_site_file1=NONE
2470: ac_site_file2=NONE
2471: if test -n "$CONFIG_SITE"; then
2472: # We do not want a PATH search for config.site.
2473: case $CONFIG_SITE in #((
2474: -*) ac_site_file1=./$CONFIG_SITE;;
2475: */*) ac_site_file1=$CONFIG_SITE;;
2476: *) ac_site_file1=./$CONFIG_SITE;;
2477: esac
2478: elif test "x$prefix" != xNONE; then
2479: ac_site_file1=$prefix/share/config.site
2480: ac_site_file2=$prefix/etc/config.site
2481: else
2482: ac_site_file1=$ac_default_prefix/share/config.site
2483: ac_site_file2=$ac_default_prefix/etc/config.site
2484: fi
2485: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2486: do
2487: test "x$ac_site_file" = xNONE && continue
2488: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2489: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2490: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2491: sed 's/^/| /' "$ac_site_file" >&5
2492: . "$ac_site_file" \
2493: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495: as_fn_error $? "failed to load site script $ac_site_file
2496: See \`config.log' for more details" "$LINENO" 5; }
2497: fi
2498: done
2499:
2500: if test -r "$cache_file"; then
2501: # Some versions of bash will fail to source /dev/null (special files
2502: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2503: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2504: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2505: $as_echo "$as_me: loading cache $cache_file" >&6;}
2506: case $cache_file in
2507: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2508: *) . "./$cache_file";;
2509: esac
2510: fi
2511: else
2512: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2513: $as_echo "$as_me: creating cache $cache_file" >&6;}
2514: >$cache_file
2515: fi
2516:
2517: as_fn_append ac_header_list " utime.h"
2518: # Check that the precious variables saved in the cache have kept the same
2519: # value.
2520: ac_cache_corrupted=false
2521: for ac_var in $ac_precious_vars; do
2522: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523: eval ac_new_set=\$ac_env_${ac_var}_set
2524: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525: eval ac_new_val=\$ac_env_${ac_var}_value
2526: case $ac_old_set,$ac_new_set in
2527: set,)
2528: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530: ac_cache_corrupted=: ;;
2531: ,set)
2532: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534: ac_cache_corrupted=: ;;
2535: ,);;
2536: *)
2537: if test "x$ac_old_val" != "x$ac_new_val"; then
2538: # differences in whitespace do not lead to failure.
2539: ac_old_val_w=`echo x $ac_old_val`
2540: ac_new_val_w=`echo x $ac_new_val`
2541: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544: ac_cache_corrupted=:
2545: else
2546: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548: eval $ac_var=\$ac_old_val
2549: fi
2550: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2552: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2554: fi;;
2555: esac
2556: # Pass precious variables to config.status.
2557: if test "$ac_new_set" = set; then
2558: case $ac_new_val in
2559: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560: *) ac_arg=$ac_var=$ac_new_val ;;
2561: esac
2562: case " $ac_configure_args " in
2563: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2565: esac
2566: fi
2567: done
2568: if $ac_cache_corrupted; then
2569: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2574: fi
2575: ## -------------------- ##
2576: ## Main body of script. ##
2577: ## -------------------- ##
2578:
2579: ac_ext=c
2580: ac_cpp='$CPP $CPPFLAGS'
2581: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584:
2585:
2586:
1.1.1.3 misho 2587:
2588:
1.1 misho 2589: ac_config_headers="$ac_config_headers config.h"
2590:
2591:
2592:
1.1.1.4 ! misho 2593: PACKAGE_VERSION=`sed 's/.*"\(.*\)".*/\1/' <$srcdir/version.h`
1.1 misho 2594:
1.1.1.3 misho 2595: { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring rsync $PACKAGE_VERSION" >&5
2596: $as_echo "$as_me: Configuring rsync $PACKAGE_VERSION" >&6;}
1.1 misho 2597:
2598: LDFLAGS=${LDFLAGS-""}
2599:
2600: ac_aux_dir=
2601: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2602: if test -f "$ac_dir/install-sh"; then
2603: ac_aux_dir=$ac_dir
2604: ac_install_sh="$ac_aux_dir/install-sh -c"
2605: break
2606: elif test -f "$ac_dir/install.sh"; then
2607: ac_aux_dir=$ac_dir
2608: ac_install_sh="$ac_aux_dir/install.sh -c"
2609: break
2610: elif test -f "$ac_dir/shtool"; then
2611: ac_aux_dir=$ac_dir
2612: ac_install_sh="$ac_aux_dir/shtool install -c"
2613: break
2614: fi
2615: done
2616: if test -z "$ac_aux_dir"; then
2617: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2618: fi
2619:
2620: # These three variables are undocumented and unsupported,
2621: # and are intended to be withdrawn in a future Autoconf release.
2622: # They can cause serious problems if a builder's source tree is in a directory
2623: # whose full name contains unusual characters.
2624: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2625: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2626: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2627:
2628:
2629: # Make sure we can run config.sub.
2630: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2631: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632:
2633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2634: $as_echo_n "checking build system type... " >&6; }
2635: if ${ac_cv_build+:} false; then :
2636: $as_echo_n "(cached) " >&6
2637: else
2638: ac_build_alias=$build_alias
2639: test "x$ac_build_alias" = x &&
2640: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2641: test "x$ac_build_alias" = x &&
2642: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2643: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2645:
2646: fi
2647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2648: $as_echo "$ac_cv_build" >&6; }
2649: case $ac_cv_build in
2650: *-*-*) ;;
2651: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2652: esac
2653: build=$ac_cv_build
2654: ac_save_IFS=$IFS; IFS='-'
2655: set x $ac_cv_build
2656: shift
2657: build_cpu=$1
2658: build_vendor=$2
2659: shift; shift
2660: # Remember, the first character of IFS is used to create $*,
2661: # except with old shells:
2662: build_os=$*
2663: IFS=$ac_save_IFS
2664: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2665:
2666:
2667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2668: $as_echo_n "checking host system type... " >&6; }
2669: if ${ac_cv_host+:} false; then :
2670: $as_echo_n "(cached) " >&6
2671: else
2672: if test "x$host_alias" = x; then
2673: ac_cv_host=$ac_cv_build
2674: else
2675: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2676: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2677: fi
2678:
2679: fi
2680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2681: $as_echo "$ac_cv_host" >&6; }
2682: case $ac_cv_host in
2683: *-*-*) ;;
2684: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2685: esac
2686: host=$ac_cv_host
2687: ac_save_IFS=$IFS; IFS='-'
2688: set x $ac_cv_host
2689: shift
2690: host_cpu=$1
2691: host_vendor=$2
2692: shift; shift
2693: # Remember, the first character of IFS is used to create $*,
2694: # except with old shells:
2695: host_os=$*
2696: IFS=$ac_save_IFS
2697: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2698:
2699:
2700:
1.1.1.3 misho 2701:
2702:
1.1 misho 2703: # We must decide this before testing the compiler.
2704:
2705: # Please allow this to default to yes, so that your users have more
2706: # chance of getting a useful stack trace if problems occur.
2707:
2708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
2709: $as_echo_n "checking whether to include debugging symbols... " >&6; }
2710: # Check whether --enable-debug was given.
2711: if test "${enable_debug+set}" = set; then :
2712: enableval=$enable_debug;
2713: fi
2714:
2715:
2716: if test x"$enable_debug" = x"no"; then
2717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718: $as_echo "no" >&6; }
2719: ac_cv_prog_cc_g=no
2720: else
2721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722: $as_echo "yes" >&6; }
2723: # leave ac_cv_prog_cc_g alone; AC_PROG_CC will try to include -g if it can
2724: fi
2725:
2726: ac_ext=c
2727: ac_cpp='$CPP $CPPFLAGS'
2728: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731: if test -n "$ac_tool_prefix"; then
2732: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2733: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735: $as_echo_n "checking for $ac_word... " >&6; }
2736: if ${ac_cv_prog_CC+:} false; then :
2737: $as_echo_n "(cached) " >&6
2738: else
2739: if test -n "$CC"; then
2740: ac_cv_prog_CC="$CC" # Let the user override the test.
2741: else
2742: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743: for as_dir in $PATH
2744: do
2745: IFS=$as_save_IFS
2746: test -z "$as_dir" && as_dir=.
2747: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 2748: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2749: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2750: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751: break 2
2752: fi
2753: done
2754: done
2755: IFS=$as_save_IFS
2756:
2757: fi
2758: fi
2759: CC=$ac_cv_prog_CC
2760: if test -n "$CC"; then
2761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762: $as_echo "$CC" >&6; }
2763: else
2764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765: $as_echo "no" >&6; }
2766: fi
2767:
2768:
2769: fi
2770: if test -z "$ac_cv_prog_CC"; then
2771: ac_ct_CC=$CC
2772: # Extract the first word of "gcc", so it can be a program name with args.
2773: set dummy gcc; ac_word=$2
2774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775: $as_echo_n "checking for $ac_word... " >&6; }
2776: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777: $as_echo_n "(cached) " >&6
2778: else
2779: if test -n "$ac_ct_CC"; then
2780: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781: else
2782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783: for as_dir in $PATH
2784: do
2785: IFS=$as_save_IFS
2786: test -z "$as_dir" && as_dir=.
2787: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 2788: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2789: ac_cv_prog_ac_ct_CC="gcc"
2790: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791: break 2
2792: fi
2793: done
2794: done
2795: IFS=$as_save_IFS
2796:
2797: fi
2798: fi
2799: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800: if test -n "$ac_ct_CC"; then
2801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802: $as_echo "$ac_ct_CC" >&6; }
2803: else
2804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805: $as_echo "no" >&6; }
2806: fi
2807:
2808: if test "x$ac_ct_CC" = x; then
2809: CC=""
2810: else
2811: case $cross_compiling:$ac_tool_warned in
2812: yes:)
2813: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815: ac_tool_warned=yes ;;
2816: esac
2817: CC=$ac_ct_CC
2818: fi
2819: else
2820: CC="$ac_cv_prog_CC"
2821: fi
2822:
2823: if test -z "$CC"; then
2824: if test -n "$ac_tool_prefix"; then
2825: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826: set dummy ${ac_tool_prefix}cc; ac_word=$2
2827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828: $as_echo_n "checking for $ac_word... " >&6; }
2829: if ${ac_cv_prog_CC+:} false; then :
2830: $as_echo_n "(cached) " >&6
2831: else
2832: if test -n "$CC"; then
2833: ac_cv_prog_CC="$CC" # Let the user override the test.
2834: else
2835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836: for as_dir in $PATH
2837: do
2838: IFS=$as_save_IFS
2839: test -z "$as_dir" && as_dir=.
2840: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 2841: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2842: ac_cv_prog_CC="${ac_tool_prefix}cc"
2843: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844: break 2
2845: fi
2846: done
2847: done
2848: IFS=$as_save_IFS
2849:
2850: fi
2851: fi
2852: CC=$ac_cv_prog_CC
2853: if test -n "$CC"; then
2854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855: $as_echo "$CC" >&6; }
2856: else
2857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858: $as_echo "no" >&6; }
2859: fi
2860:
2861:
2862: fi
2863: fi
2864: if test -z "$CC"; then
2865: # Extract the first word of "cc", so it can be a program name with args.
2866: set dummy cc; ac_word=$2
2867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868: $as_echo_n "checking for $ac_word... " >&6; }
2869: if ${ac_cv_prog_CC+:} false; then :
2870: $as_echo_n "(cached) " >&6
2871: else
2872: if test -n "$CC"; then
2873: ac_cv_prog_CC="$CC" # Let the user override the test.
2874: else
2875: ac_prog_rejected=no
2876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877: for as_dir in $PATH
2878: do
2879: IFS=$as_save_IFS
2880: test -z "$as_dir" && as_dir=.
2881: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 2882: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2883: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884: ac_prog_rejected=yes
2885: continue
2886: fi
2887: ac_cv_prog_CC="cc"
2888: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889: break 2
2890: fi
2891: done
2892: done
2893: IFS=$as_save_IFS
2894:
2895: if test $ac_prog_rejected = yes; then
2896: # We found a bogon in the path, so make sure we never use it.
2897: set dummy $ac_cv_prog_CC
2898: shift
2899: if test $# != 0; then
2900: # We chose a different compiler from the bogus one.
2901: # However, it has the same basename, so the bogon will be chosen
2902: # first if we set CC to just the basename; use the full file name.
2903: shift
2904: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905: fi
2906: fi
2907: fi
2908: fi
2909: CC=$ac_cv_prog_CC
2910: if test -n "$CC"; then
2911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912: $as_echo "$CC" >&6; }
2913: else
2914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915: $as_echo "no" >&6; }
2916: fi
2917:
2918:
2919: fi
2920: if test -z "$CC"; then
2921: if test -n "$ac_tool_prefix"; then
2922: for ac_prog in cl.exe
2923: do
2924: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927: $as_echo_n "checking for $ac_word... " >&6; }
2928: if ${ac_cv_prog_CC+:} false; then :
2929: $as_echo_n "(cached) " >&6
2930: else
2931: if test -n "$CC"; then
2932: ac_cv_prog_CC="$CC" # Let the user override the test.
2933: else
2934: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935: for as_dir in $PATH
2936: do
2937: IFS=$as_save_IFS
2938: test -z "$as_dir" && as_dir=.
2939: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 2940: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2941: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2942: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943: break 2
2944: fi
2945: done
2946: done
2947: IFS=$as_save_IFS
2948:
2949: fi
2950: fi
2951: CC=$ac_cv_prog_CC
2952: if test -n "$CC"; then
2953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954: $as_echo "$CC" >&6; }
2955: else
2956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957: $as_echo "no" >&6; }
2958: fi
2959:
2960:
2961: test -n "$CC" && break
2962: done
2963: fi
2964: if test -z "$CC"; then
2965: ac_ct_CC=$CC
2966: for ac_prog in cl.exe
2967: do
2968: # Extract the first word of "$ac_prog", so it can be a program name with args.
2969: set dummy $ac_prog; ac_word=$2
2970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971: $as_echo_n "checking for $ac_word... " >&6; }
2972: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973: $as_echo_n "(cached) " >&6
2974: else
2975: if test -n "$ac_ct_CC"; then
2976: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977: else
2978: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979: for as_dir in $PATH
2980: do
2981: IFS=$as_save_IFS
2982: test -z "$as_dir" && as_dir=.
2983: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 2984: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 2985: ac_cv_prog_ac_ct_CC="$ac_prog"
2986: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987: break 2
2988: fi
2989: done
2990: done
2991: IFS=$as_save_IFS
2992:
2993: fi
2994: fi
2995: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996: if test -n "$ac_ct_CC"; then
2997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998: $as_echo "$ac_ct_CC" >&6; }
2999: else
3000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001: $as_echo "no" >&6; }
3002: fi
3003:
3004:
3005: test -n "$ac_ct_CC" && break
3006: done
3007:
3008: if test "x$ac_ct_CC" = x; then
3009: CC=""
3010: else
3011: case $cross_compiling:$ac_tool_warned in
3012: yes:)
3013: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015: ac_tool_warned=yes ;;
3016: esac
3017: CC=$ac_ct_CC
3018: fi
3019: fi
3020:
3021: fi
3022:
3023:
3024: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026: as_fn_error $? "no acceptable C compiler found in \$PATH
3027: See \`config.log' for more details" "$LINENO" 5; }
3028:
3029: # Provide some information about the compiler.
3030: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3031: set X $ac_compile
3032: ac_compiler=$2
3033: for ac_option in --version -v -V -qversion; do
3034: { { ac_try="$ac_compiler $ac_option >&5"
3035: case "(($ac_try" in
3036: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037: *) ac_try_echo=$ac_try;;
3038: esac
3039: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040: $as_echo "$ac_try_echo"; } >&5
3041: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042: ac_status=$?
3043: if test -s conftest.err; then
3044: sed '10a\
3045: ... rest of stderr output deleted ...
3046: 10q' conftest.err >conftest.er1
3047: cat conftest.er1 >&5
3048: fi
3049: rm -f conftest.er1 conftest.err
3050: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051: test $ac_status = 0; }
3052: done
3053:
3054: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055: /* end confdefs.h. */
3056:
3057: int
3058: main ()
3059: {
3060:
3061: ;
3062: return 0;
3063: }
3064: _ACEOF
3065: ac_clean_files_save=$ac_clean_files
3066: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3067: # Try to create an executable without -o first, disregard a.out.
3068: # It will help us diagnose broken compilers, and finding out an intuition
3069: # of exeext.
3070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3071: $as_echo_n "checking whether the C compiler works... " >&6; }
3072: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073:
3074: # The possible output files:
3075: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3076:
3077: ac_rmfiles=
3078: for ac_file in $ac_files
3079: do
3080: case $ac_file in
3081: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083: esac
3084: done
3085: rm -f $ac_rmfiles
3086:
3087: if { { ac_try="$ac_link_default"
3088: case "(($ac_try" in
3089: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090: *) ac_try_echo=$ac_try;;
3091: esac
3092: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093: $as_echo "$ac_try_echo"; } >&5
3094: (eval "$ac_link_default") 2>&5
3095: ac_status=$?
3096: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097: test $ac_status = 0; }; then :
3098: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101: # so that the user can short-circuit this test for compilers unknown to
3102: # Autoconf.
3103: for ac_file in $ac_files ''
3104: do
3105: test -f "$ac_file" || continue
3106: case $ac_file in
3107: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3108: ;;
3109: [ab].out )
3110: # We found the default executable, but exeext='' is most
3111: # certainly right.
3112: break;;
3113: *.* )
3114: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115: then :; else
3116: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117: fi
3118: # We set ac_cv_exeext here because the later test for it is not
3119: # safe: cross compilers may not add the suffix if given an `-o'
3120: # argument, so we may need to know it at that point already.
3121: # Even if this section looks crufty: it has the advantage of
3122: # actually working.
3123: break;;
3124: * )
3125: break;;
3126: esac
3127: done
3128: test "$ac_cv_exeext" = no && ac_cv_exeext=
3129:
3130: else
3131: ac_file=''
3132: fi
3133: if test -z "$ac_file"; then :
3134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135: $as_echo "no" >&6; }
3136: $as_echo "$as_me: failed program was:" >&5
3137: sed 's/^/| /' conftest.$ac_ext >&5
3138:
3139: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141: as_fn_error 77 "C compiler cannot create executables
3142: See \`config.log' for more details" "$LINENO" 5; }
3143: else
3144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145: $as_echo "yes" >&6; }
3146: fi
3147: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3148: $as_echo_n "checking for C compiler default output file name... " >&6; }
3149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3150: $as_echo "$ac_file" >&6; }
3151: ac_exeext=$ac_cv_exeext
3152:
3153: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3154: ac_clean_files=$ac_clean_files_save
3155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3156: $as_echo_n "checking for suffix of executables... " >&6; }
3157: if { { ac_try="$ac_link"
3158: case "(($ac_try" in
3159: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160: *) ac_try_echo=$ac_try;;
3161: esac
3162: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163: $as_echo "$ac_try_echo"; } >&5
3164: (eval "$ac_link") 2>&5
3165: ac_status=$?
3166: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167: test $ac_status = 0; }; then :
3168: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3169: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3170: # work properly (i.e., refer to `conftest.exe'), while it won't with
3171: # `rm'.
3172: for ac_file in conftest.exe conftest conftest.*; do
3173: test -f "$ac_file" || continue
3174: case $ac_file in
3175: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3176: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177: break;;
3178: * ) break;;
3179: esac
3180: done
3181: else
3182: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3185: See \`config.log' for more details" "$LINENO" 5; }
3186: fi
3187: rm -f conftest conftest$ac_cv_exeext
3188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3189: $as_echo "$ac_cv_exeext" >&6; }
3190:
3191: rm -f conftest.$ac_ext
3192: EXEEXT=$ac_cv_exeext
3193: ac_exeext=$EXEEXT
3194: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195: /* end confdefs.h. */
3196: #include <stdio.h>
3197: int
3198: main ()
3199: {
3200: FILE *f = fopen ("conftest.out", "w");
3201: return ferror (f) || fclose (f) != 0;
3202:
3203: ;
3204: return 0;
3205: }
3206: _ACEOF
3207: ac_clean_files="$ac_clean_files conftest.out"
3208: # Check that the compiler produces executables we can run. If not, either
3209: # the compiler is broken, or we cross compile.
3210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3211: $as_echo_n "checking whether we are cross compiling... " >&6; }
3212: if test "$cross_compiling" != yes; then
3213: { { ac_try="$ac_link"
3214: case "(($ac_try" in
3215: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216: *) ac_try_echo=$ac_try;;
3217: esac
3218: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219: $as_echo "$ac_try_echo"; } >&5
3220: (eval "$ac_link") 2>&5
3221: ac_status=$?
3222: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223: test $ac_status = 0; }
3224: if { ac_try='./conftest$ac_cv_exeext'
3225: { { case "(($ac_try" in
3226: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227: *) ac_try_echo=$ac_try;;
3228: esac
3229: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230: $as_echo "$ac_try_echo"; } >&5
3231: (eval "$ac_try") 2>&5
3232: ac_status=$?
3233: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234: test $ac_status = 0; }; }; then
3235: cross_compiling=no
3236: else
3237: if test "$cross_compiling" = maybe; then
3238: cross_compiling=yes
3239: else
3240: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242: as_fn_error $? "cannot run C compiled programs.
3243: If you meant to cross compile, use \`--host'.
3244: See \`config.log' for more details" "$LINENO" 5; }
3245: fi
3246: fi
3247: fi
3248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3249: $as_echo "$cross_compiling" >&6; }
3250:
3251: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3252: ac_clean_files=$ac_clean_files_save
3253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254: $as_echo_n "checking for suffix of object files... " >&6; }
3255: if ${ac_cv_objext+:} false; then :
3256: $as_echo_n "(cached) " >&6
3257: else
3258: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259: /* end confdefs.h. */
3260:
3261: int
3262: main ()
3263: {
3264:
3265: ;
3266: return 0;
3267: }
3268: _ACEOF
3269: rm -f conftest.o conftest.obj
3270: if { { ac_try="$ac_compile"
3271: case "(($ac_try" in
3272: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273: *) ac_try_echo=$ac_try;;
3274: esac
3275: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276: $as_echo "$ac_try_echo"; } >&5
3277: (eval "$ac_compile") 2>&5
3278: ac_status=$?
3279: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280: test $ac_status = 0; }; then :
3281: for ac_file in conftest.o conftest.obj conftest.*; do
3282: test -f "$ac_file" || continue;
3283: case $ac_file in
3284: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286: break;;
3287: esac
3288: done
3289: else
3290: $as_echo "$as_me: failed program was:" >&5
3291: sed 's/^/| /' conftest.$ac_ext >&5
3292:
3293: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295: as_fn_error $? "cannot compute suffix of object files: cannot compile
3296: See \`config.log' for more details" "$LINENO" 5; }
3297: fi
3298: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299: fi
3300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3301: $as_echo "$ac_cv_objext" >&6; }
3302: OBJEXT=$ac_cv_objext
3303: ac_objext=$OBJEXT
3304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3305: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3306: if ${ac_cv_c_compiler_gnu+:} false; then :
3307: $as_echo_n "(cached) " >&6
3308: else
3309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310: /* end confdefs.h. */
3311:
3312: int
3313: main ()
3314: {
3315: #ifndef __GNUC__
3316: choke me
3317: #endif
3318:
3319: ;
3320: return 0;
3321: }
3322: _ACEOF
3323: if ac_fn_c_try_compile "$LINENO"; then :
3324: ac_compiler_gnu=yes
3325: else
3326: ac_compiler_gnu=no
3327: fi
3328: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330:
3331: fi
3332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3333: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3334: if test $ac_compiler_gnu = yes; then
3335: GCC=yes
3336: else
3337: GCC=
3338: fi
3339: ac_test_CFLAGS=${CFLAGS+set}
3340: ac_save_CFLAGS=$CFLAGS
3341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3342: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3343: if ${ac_cv_prog_cc_g+:} false; then :
3344: $as_echo_n "(cached) " >&6
3345: else
3346: ac_save_c_werror_flag=$ac_c_werror_flag
3347: ac_c_werror_flag=yes
3348: ac_cv_prog_cc_g=no
3349: CFLAGS="-g"
3350: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351: /* end confdefs.h. */
3352:
3353: int
3354: main ()
3355: {
3356:
3357: ;
3358: return 0;
3359: }
3360: _ACEOF
3361: if ac_fn_c_try_compile "$LINENO"; then :
3362: ac_cv_prog_cc_g=yes
3363: else
3364: CFLAGS=""
3365: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366: /* end confdefs.h. */
3367:
3368: int
3369: main ()
3370: {
3371:
3372: ;
3373: return 0;
3374: }
3375: _ACEOF
3376: if ac_fn_c_try_compile "$LINENO"; then :
3377:
3378: else
3379: ac_c_werror_flag=$ac_save_c_werror_flag
3380: CFLAGS="-g"
3381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382: /* end confdefs.h. */
3383:
3384: int
3385: main ()
3386: {
3387:
3388: ;
3389: return 0;
3390: }
3391: _ACEOF
3392: if ac_fn_c_try_compile "$LINENO"; then :
3393: ac_cv_prog_cc_g=yes
3394: fi
3395: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396: fi
3397: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398: fi
3399: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400: ac_c_werror_flag=$ac_save_c_werror_flag
3401: fi
3402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3403: $as_echo "$ac_cv_prog_cc_g" >&6; }
3404: if test "$ac_test_CFLAGS" = set; then
3405: CFLAGS=$ac_save_CFLAGS
3406: elif test $ac_cv_prog_cc_g = yes; then
3407: if test "$GCC" = yes; then
3408: CFLAGS="-g -O2"
3409: else
3410: CFLAGS="-g"
3411: fi
3412: else
3413: if test "$GCC" = yes; then
3414: CFLAGS="-O2"
3415: else
3416: CFLAGS=
3417: fi
3418: fi
3419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3420: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3421: if ${ac_cv_prog_cc_c89+:} false; then :
3422: $as_echo_n "(cached) " >&6
3423: else
3424: ac_cv_prog_cc_c89=no
3425: ac_save_CC=$CC
3426: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427: /* end confdefs.h. */
3428: #include <stdarg.h>
3429: #include <stdio.h>
1.1.1.3 misho 3430: struct stat;
1.1 misho 3431: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3432: struct buf { int x; };
3433: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3434: static char *e (p, i)
3435: char **p;
3436: int i;
3437: {
3438: return p[i];
3439: }
3440: static char *f (char * (*g) (char **, int), char **p, ...)
3441: {
3442: char *s;
3443: va_list v;
3444: va_start (v,p);
3445: s = g (p, va_arg (v,int));
3446: va_end (v);
3447: return s;
3448: }
3449:
3450: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3451: function prototypes and stuff, but not '\xHH' hex character constants.
3452: These don't provoke an error unfortunately, instead are silently treated
3453: as 'x'. The following induces an error, until -std is added to get
3454: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3455: array size at least. It's necessary to write '\x00'==0 to get something
3456: that's true only with -std. */
3457: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3458:
3459: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3460: inside strings and character constants. */
3461: #define FOO(x) 'x'
3462: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3463:
3464: int test (int i, double x);
3465: struct s1 {int (*f) (int a);};
3466: struct s2 {int (*f) (double a);};
3467: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3468: int argc;
3469: char **argv;
3470: int
3471: main ()
3472: {
3473: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3474: ;
3475: return 0;
3476: }
3477: _ACEOF
3478: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3479: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3480: do
3481: CC="$ac_save_CC $ac_arg"
3482: if ac_fn_c_try_compile "$LINENO"; then :
3483: ac_cv_prog_cc_c89=$ac_arg
3484: fi
3485: rm -f core conftest.err conftest.$ac_objext
3486: test "x$ac_cv_prog_cc_c89" != "xno" && break
3487: done
3488: rm -f conftest.$ac_ext
3489: CC=$ac_save_CC
3490:
3491: fi
3492: # AC_CACHE_VAL
3493: case "x$ac_cv_prog_cc_c89" in
3494: x)
3495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3496: $as_echo "none needed" >&6; } ;;
3497: xno)
3498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3499: $as_echo "unsupported" >&6; } ;;
3500: *)
3501: CC="$CC $ac_cv_prog_cc_c89"
3502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3503: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3504: esac
3505: if test "x$ac_cv_prog_cc_c89" != xno; then :
3506:
3507: fi
3508:
3509: ac_ext=c
3510: ac_cpp='$CPP $CPPFLAGS'
3511: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514:
3515: ac_ext=c
3516: ac_cpp='$CPP $CPPFLAGS'
3517: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3521: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3522: # On Suns, sometimes $CPP names a directory.
3523: if test -n "$CPP" && test -d "$CPP"; then
3524: CPP=
3525: fi
3526: if test -z "$CPP"; then
3527: if ${ac_cv_prog_CPP+:} false; then :
3528: $as_echo_n "(cached) " >&6
3529: else
3530: # Double quotes because CPP needs to be expanded
3531: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3532: do
3533: ac_preproc_ok=false
3534: for ac_c_preproc_warn_flag in '' yes
3535: do
3536: # Use a header file that comes with gcc, so configuring glibc
3537: # with a fresh cross-compiler works.
3538: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539: # <limits.h> exists even on freestanding compilers.
3540: # On the NeXT, cc -E runs the code through the compiler's parser,
3541: # not just through cpp. "Syntax error" is here to catch this case.
3542: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543: /* end confdefs.h. */
3544: #ifdef __STDC__
3545: # include <limits.h>
3546: #else
3547: # include <assert.h>
3548: #endif
3549: Syntax error
3550: _ACEOF
3551: if ac_fn_c_try_cpp "$LINENO"; then :
3552:
3553: else
3554: # Broken: fails on valid input.
3555: continue
3556: fi
3557: rm -f conftest.err conftest.i conftest.$ac_ext
3558:
3559: # OK, works on sane cases. Now check whether nonexistent headers
3560: # can be detected and how.
3561: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562: /* end confdefs.h. */
3563: #include <ac_nonexistent.h>
3564: _ACEOF
3565: if ac_fn_c_try_cpp "$LINENO"; then :
3566: # Broken: success on invalid input.
3567: continue
3568: else
3569: # Passes both tests.
3570: ac_preproc_ok=:
3571: break
3572: fi
3573: rm -f conftest.err conftest.i conftest.$ac_ext
3574:
3575: done
3576: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577: rm -f conftest.i conftest.err conftest.$ac_ext
3578: if $ac_preproc_ok; then :
3579: break
3580: fi
3581:
3582: done
3583: ac_cv_prog_CPP=$CPP
3584:
3585: fi
3586: CPP=$ac_cv_prog_CPP
3587: else
3588: ac_cv_prog_CPP=$CPP
3589: fi
3590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3591: $as_echo "$CPP" >&6; }
3592: ac_preproc_ok=false
3593: for ac_c_preproc_warn_flag in '' yes
3594: do
3595: # Use a header file that comes with gcc, so configuring glibc
3596: # with a fresh cross-compiler works.
3597: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598: # <limits.h> exists even on freestanding compilers.
3599: # On the NeXT, cc -E runs the code through the compiler's parser,
3600: # not just through cpp. "Syntax error" is here to catch this case.
3601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602: /* end confdefs.h. */
3603: #ifdef __STDC__
3604: # include <limits.h>
3605: #else
3606: # include <assert.h>
3607: #endif
3608: Syntax error
3609: _ACEOF
3610: if ac_fn_c_try_cpp "$LINENO"; then :
3611:
3612: else
3613: # Broken: fails on valid input.
3614: continue
3615: fi
3616: rm -f conftest.err conftest.i conftest.$ac_ext
3617:
3618: # OK, works on sane cases. Now check whether nonexistent headers
3619: # can be detected and how.
3620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621: /* end confdefs.h. */
3622: #include <ac_nonexistent.h>
3623: _ACEOF
3624: if ac_fn_c_try_cpp "$LINENO"; then :
3625: # Broken: success on invalid input.
3626: continue
3627: else
3628: # Passes both tests.
3629: ac_preproc_ok=:
3630: break
3631: fi
3632: rm -f conftest.err conftest.i conftest.$ac_ext
3633:
3634: done
3635: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636: rm -f conftest.i conftest.err conftest.$ac_ext
3637: if $ac_preproc_ok; then :
3638:
3639: else
3640: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3643: See \`config.log' for more details" "$LINENO" 5; }
3644: fi
3645:
3646: ac_ext=c
3647: ac_cpp='$CPP $CPPFLAGS'
3648: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651:
1.1.1.4 ! misho 3652: ac_ext=cpp
! 3653: ac_cpp='$CXXCPP $CPPFLAGS'
! 3654: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3655: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3656: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 3657: if test -z "$CXX"; then
! 3658: if test -n "$CCC"; then
! 3659: CXX=$CCC
! 3660: else
! 3661: if test -n "$ac_tool_prefix"; then
! 3662: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
! 3663: do
! 3664: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 3665: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 3666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3667: $as_echo_n "checking for $ac_word... " >&6; }
! 3668: if ${ac_cv_prog_CXX+:} false; then :
1.1 misho 3669: $as_echo_n "(cached) " >&6
3670: else
1.1.1.4 ! misho 3671: if test -n "$CXX"; then
! 3672: ac_cv_prog_CXX="$CXX" # Let the user override the test.
! 3673: else
! 3674: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3675: for as_dir in $PATH
1.1 misho 3676: do
3677: IFS=$as_save_IFS
3678: test -z "$as_dir" && as_dir=.
3679: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3680: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3681: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 3682: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3683: break 2
! 3684: fi
! 3685: done
1.1 misho 3686: done
3687: IFS=$as_save_IFS
3688:
3689: fi
1.1.1.4 ! misho 3690: fi
! 3691: CXX=$ac_cv_prog_CXX
! 3692: if test -n "$CXX"; then
! 3693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
! 3694: $as_echo "$CXX" >&6; }
! 3695: else
! 3696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3697: $as_echo "no" >&6; }
! 3698: fi
1.1 misho 3699:
3700:
1.1.1.4 ! misho 3701: test -n "$CXX" && break
! 3702: done
! 3703: fi
! 3704: if test -z "$CXX"; then
! 3705: ac_ct_CXX=$CXX
! 3706: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
! 3707: do
! 3708: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 3709: set dummy $ac_prog; ac_word=$2
! 3710: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3711: $as_echo_n "checking for $ac_word... " >&6; }
! 3712: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.1 misho 3713: $as_echo_n "(cached) " >&6
3714: else
1.1.1.4 ! misho 3715: if test -n "$ac_ct_CXX"; then
! 3716: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
! 3717: else
! 3718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3719: for as_dir in $PATH
1.1 misho 3720: do
3721: IFS=$as_save_IFS
3722: test -z "$as_dir" && as_dir=.
3723: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3724: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3725: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 3726: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3727: break 2
! 3728: fi
! 3729: done
1.1 misho 3730: done
3731: IFS=$as_save_IFS
1.1.1.4 ! misho 3732:
! 3733: fi
! 3734: fi
! 3735: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
! 3736: if test -n "$ac_ct_CXX"; then
! 3737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
! 3738: $as_echo "$ac_ct_CXX" >&6; }
1.1 misho 3739: else
1.1.1.4 ! misho 3740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3741: $as_echo "no" >&6; }
1.1 misho 3742: fi
3743:
3744:
1.1.1.4 ! misho 3745: test -n "$ac_ct_CXX" && break
! 3746: done
1.1 misho 3747:
1.1.1.4 ! misho 3748: if test "x$ac_ct_CXX" = x; then
! 3749: CXX="g++"
! 3750: else
! 3751: case $cross_compiling:$ac_tool_warned in
! 3752: yes:)
! 3753: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3754: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3755: ac_tool_warned=yes ;;
! 3756: esac
! 3757: CXX=$ac_ct_CXX
! 3758: fi
! 3759: fi
! 3760:
! 3761: fi
! 3762: fi
! 3763: # Provide some information about the compiler.
! 3764: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
! 3765: set X $ac_compile
! 3766: ac_compiler=$2
! 3767: for ac_option in --version -v -V -qversion; do
! 3768: { { ac_try="$ac_compiler $ac_option >&5"
! 3769: case "(($ac_try" in
! 3770: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3771: *) ac_try_echo=$ac_try;;
! 3772: esac
! 3773: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3774: $as_echo "$ac_try_echo"; } >&5
! 3775: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
! 3776: ac_status=$?
! 3777: if test -s conftest.err; then
! 3778: sed '10a\
! 3779: ... rest of stderr output deleted ...
! 3780: 10q' conftest.err >conftest.er1
! 3781: cat conftest.er1 >&5
! 3782: fi
! 3783: rm -f conftest.er1 conftest.err
! 3784: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3785: test $ac_status = 0; }
! 3786: done
! 3787:
! 3788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
! 3789: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
! 3790: if ${ac_cv_cxx_compiler_gnu+:} false; then :
! 3791: $as_echo_n "(cached) " >&6
! 3792: else
! 3793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3794: /* end confdefs.h. */
! 3795:
! 3796: int
! 3797: main ()
! 3798: {
! 3799: #ifndef __GNUC__
! 3800: choke me
! 3801: #endif
! 3802:
! 3803: ;
! 3804: return 0;
! 3805: }
! 3806: _ACEOF
! 3807: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3808: ac_compiler_gnu=yes
! 3809: else
! 3810: ac_compiler_gnu=no
! 3811: fi
! 3812: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3813: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
! 3814:
! 3815: fi
! 3816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
! 3817: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
! 3818: if test $ac_compiler_gnu = yes; then
! 3819: GXX=yes
! 3820: else
! 3821: GXX=
! 3822: fi
! 3823: ac_test_CXXFLAGS=${CXXFLAGS+set}
! 3824: ac_save_CXXFLAGS=$CXXFLAGS
! 3825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
! 3826: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
! 3827: if ${ac_cv_prog_cxx_g+:} false; then :
! 3828: $as_echo_n "(cached) " >&6
! 3829: else
! 3830: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
! 3831: ac_cxx_werror_flag=yes
! 3832: ac_cv_prog_cxx_g=no
! 3833: CXXFLAGS="-g"
! 3834: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3835: /* end confdefs.h. */
! 3836:
! 3837: int
! 3838: main ()
! 3839: {
! 3840:
! 3841: ;
! 3842: return 0;
! 3843: }
! 3844: _ACEOF
! 3845: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3846: ac_cv_prog_cxx_g=yes
! 3847: else
! 3848: CXXFLAGS=""
! 3849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3850: /* end confdefs.h. */
! 3851:
! 3852: int
! 3853: main ()
! 3854: {
! 3855:
! 3856: ;
! 3857: return 0;
! 3858: }
! 3859: _ACEOF
! 3860: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3861:
! 3862: else
! 3863: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3864: CXXFLAGS="-g"
! 3865: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3866: /* end confdefs.h. */
! 3867:
! 3868: int
! 3869: main ()
! 3870: {
! 3871:
! 3872: ;
! 3873: return 0;
! 3874: }
! 3875: _ACEOF
! 3876: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3877: ac_cv_prog_cxx_g=yes
! 3878: fi
! 3879: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3880: fi
! 3881: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3882: fi
! 3883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3884: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3885: fi
! 3886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
! 3887: $as_echo "$ac_cv_prog_cxx_g" >&6; }
! 3888: if test "$ac_test_CXXFLAGS" = set; then
! 3889: CXXFLAGS=$ac_save_CXXFLAGS
! 3890: elif test $ac_cv_prog_cxx_g = yes; then
! 3891: if test "$GXX" = yes; then
! 3892: CXXFLAGS="-g -O2"
! 3893: else
! 3894: CXXFLAGS="-g"
! 3895: fi
! 3896: else
! 3897: if test "$GXX" = yes; then
! 3898: CXXFLAGS="-O2"
! 3899: else
! 3900: CXXFLAGS=
! 3901: fi
! 3902: fi
! 3903: ac_ext=c
! 3904: ac_cpp='$CPP $CPPFLAGS'
! 3905: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3906: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3907: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3908:
! 3909: for ac_prog in gawk mawk nawk awk
! 3910: do
! 3911: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 3912: set dummy $ac_prog; ac_word=$2
! 3913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3914: $as_echo_n "checking for $ac_word... " >&6; }
! 3915: if ${ac_cv_prog_AWK+:} false; then :
! 3916: $as_echo_n "(cached) " >&6
! 3917: else
! 3918: if test -n "$AWK"; then
! 3919: ac_cv_prog_AWK="$AWK" # Let the user override the test.
! 3920: else
! 3921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3922: for as_dir in $PATH
! 3923: do
! 3924: IFS=$as_save_IFS
! 3925: test -z "$as_dir" && as_dir=.
! 3926: for ac_exec_ext in '' $ac_executable_extensions; do
! 3927: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3928: ac_cv_prog_AWK="$ac_prog"
! 3929: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3930: break 2
! 3931: fi
! 3932: done
! 3933: done
! 3934: IFS=$as_save_IFS
! 3935:
! 3936: fi
! 3937: fi
! 3938: AWK=$ac_cv_prog_AWK
! 3939: if test -n "$AWK"; then
! 3940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 3941: $as_echo "$AWK" >&6; }
! 3942: else
! 3943: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3944: $as_echo "no" >&6; }
! 3945: fi
! 3946:
! 3947:
! 3948: test -n "$AWK" && break
! 3949: done
! 3950:
! 3951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 3952: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
! 3953: if ${ac_cv_path_GREP+:} false; then :
! 3954: $as_echo_n "(cached) " >&6
! 3955: else
! 3956: if test -z "$GREP"; then
! 3957: ac_path_GREP_found=false
! 3958: # Loop through the user's path and test for each of PROGNAME-LIST
! 3959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3960: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3961: do
! 3962: IFS=$as_save_IFS
! 3963: test -z "$as_dir" && as_dir=.
! 3964: for ac_prog in grep ggrep; do
! 3965: for ac_exec_ext in '' $ac_executable_extensions; do
! 3966: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 3967: as_fn_executable_p "$ac_path_GREP" || continue
! 3968: # Check for GNU ac_path_GREP and select it if it is found.
! 3969: # Check for GNU $ac_path_GREP
! 3970: case `"$ac_path_GREP" --version 2>&1` in
! 3971: *GNU*)
! 3972: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 3973: *)
! 3974: ac_count=0
! 3975: $as_echo_n 0123456789 >"conftest.in"
! 3976: while :
! 3977: do
! 3978: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3979: mv "conftest.tmp" "conftest.in"
! 3980: cp "conftest.in" "conftest.nl"
! 3981: $as_echo 'GREP' >> "conftest.nl"
! 3982: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3983: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3984: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 3985: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 3986: # Best one so far, save it but keep looking for a better one
! 3987: ac_cv_path_GREP="$ac_path_GREP"
! 3988: ac_path_GREP_max=$ac_count
! 3989: fi
! 3990: # 10*(2^10) chars as input seems more than enough
! 3991: test $ac_count -gt 10 && break
! 3992: done
! 3993: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3994: esac
! 3995:
! 3996: $ac_path_GREP_found && break 3
! 3997: done
! 3998: done
! 3999: done
! 4000: IFS=$as_save_IFS
! 4001: if test -z "$ac_cv_path_GREP"; then
! 4002: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4003: fi
! 4004: else
! 4005: ac_cv_path_GREP=$GREP
! 4006: fi
! 4007:
! 4008: fi
! 4009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 4010: $as_echo "$ac_cv_path_GREP" >&6; }
! 4011: GREP="$ac_cv_path_GREP"
! 4012:
! 4013:
! 4014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 4015: $as_echo_n "checking for egrep... " >&6; }
! 4016: if ${ac_cv_path_EGREP+:} false; then :
! 4017: $as_echo_n "(cached) " >&6
! 4018: else
! 4019: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 4020: then ac_cv_path_EGREP="$GREP -E"
! 4021: else
! 4022: if test -z "$EGREP"; then
! 4023: ac_path_EGREP_found=false
! 4024: # Loop through the user's path and test for each of PROGNAME-LIST
! 4025: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4026: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4027: do
! 4028: IFS=$as_save_IFS
! 4029: test -z "$as_dir" && as_dir=.
! 4030: for ac_prog in egrep; do
! 4031: for ac_exec_ext in '' $ac_executable_extensions; do
! 4032: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4033: as_fn_executable_p "$ac_path_EGREP" || continue
! 4034: # Check for GNU ac_path_EGREP and select it if it is found.
! 4035: # Check for GNU $ac_path_EGREP
! 4036: case `"$ac_path_EGREP" --version 2>&1` in
! 4037: *GNU*)
! 4038: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 4039: *)
! 4040: ac_count=0
! 4041: $as_echo_n 0123456789 >"conftest.in"
! 4042: while :
! 4043: do
! 4044: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4045: mv "conftest.tmp" "conftest.in"
! 4046: cp "conftest.in" "conftest.nl"
! 4047: $as_echo 'EGREP' >> "conftest.nl"
! 4048: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4049: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4050: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4051: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 4052: # Best one so far, save it but keep looking for a better one
! 4053: ac_cv_path_EGREP="$ac_path_EGREP"
! 4054: ac_path_EGREP_max=$ac_count
! 4055: fi
! 4056: # 10*(2^10) chars as input seems more than enough
! 4057: test $ac_count -gt 10 && break
! 4058: done
! 4059: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4060: esac
! 4061:
! 4062: $ac_path_EGREP_found && break 3
! 4063: done
! 4064: done
! 4065: done
! 4066: IFS=$as_save_IFS
! 4067: if test -z "$ac_cv_path_EGREP"; then
! 4068: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4069: fi
! 4070: else
! 4071: ac_cv_path_EGREP=$EGREP
! 4072: fi
! 4073:
! 4074: fi
! 4075: fi
! 4076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 4077: $as_echo "$ac_cv_path_EGREP" >&6; }
! 4078: EGREP="$ac_cv_path_EGREP"
! 4079:
! 4080:
! 4081: # Find a good install program. We prefer a C program (faster),
! 4082: # so one script is as good as another. But avoid the broken or
! 4083: # incompatible versions:
! 4084: # SysV /etc/install, /usr/sbin/install
! 4085: # SunOS /usr/etc/install
! 4086: # IRIX /sbin/install
! 4087: # AIX /bin/install
! 4088: # AmigaOS /C/install, which installs bootblocks on floppy discs
! 4089: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
! 4090: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
! 4091: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
! 4092: # OS/2's system install, which has a completely different semantic
! 4093: # ./install, which can be erroneously created by make from ./install.sh.
! 4094: # Reject install programs that cannot install multiple files.
! 4095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
! 4096: $as_echo_n "checking for a BSD-compatible install... " >&6; }
! 4097: if test -z "$INSTALL"; then
! 4098: if ${ac_cv_path_install+:} false; then :
! 4099: $as_echo_n "(cached) " >&6
! 4100: else
! 4101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4102: for as_dir in $PATH
! 4103: do
! 4104: IFS=$as_save_IFS
! 4105: test -z "$as_dir" && as_dir=.
! 4106: # Account for people who put trailing slashes in PATH elements.
! 4107: case $as_dir/ in #((
! 4108: ./ | .// | /[cC]/* | \
! 4109: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 4110: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
! 4111: /usr/ucb/* ) ;;
! 4112: *)
! 4113: # OSF1 and SCO ODT 3.0 have their own names for install.
1.1 misho 4114: # Don't use installbsd from OSF since it installs stuff as root
4115: # by default.
4116: for ac_prog in ginstall scoinst install; do
4117: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 4118: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misho 4119: if test $ac_prog = install &&
4120: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4121: # AIX install. It has an incompatible calling convention.
4122: :
4123: elif test $ac_prog = install &&
4124: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4125: # program-specific install script used by HP pwplus--don't use.
4126: :
4127: else
4128: rm -rf conftest.one conftest.two conftest.dir
4129: echo one > conftest.one
4130: echo two > conftest.two
4131: mkdir conftest.dir
4132: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4133: test -s conftest.one && test -s conftest.two &&
4134: test -s conftest.dir/conftest.one &&
4135: test -s conftest.dir/conftest.two
4136: then
4137: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4138: break 3
4139: fi
4140: fi
4141: fi
4142: done
4143: done
4144: ;;
4145: esac
4146:
4147: done
4148: IFS=$as_save_IFS
4149:
4150: rm -rf conftest.one conftest.two conftest.dir
4151:
4152: fi
4153: if test "${ac_cv_path_install+set}" = set; then
4154: INSTALL=$ac_cv_path_install
4155: else
4156: # As a last resort, use the slow shell script. Don't cache a
4157: # value for INSTALL within a source directory, because that will
4158: # break other packages using the cache if that directory is
4159: # removed, or if the value is a relative name.
4160: INSTALL=$ac_install_sh
4161: fi
4162: fi
4163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4164: $as_echo "$INSTALL" >&6; }
4165:
4166: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167: # It thinks the first close brace ends the variable substitution.
4168: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4169:
4170: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4171:
4172: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4173:
1.1.1.2 misho 4174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4175: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4176: if test -z "$MKDIR_P"; then
4177: if ${ac_cv_path_mkdir+:} false; then :
4178: $as_echo_n "(cached) " >&6
4179: else
4180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4182: do
4183: IFS=$as_save_IFS
4184: test -z "$as_dir" && as_dir=.
4185: for ac_prog in mkdir gmkdir; do
4186: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 4187: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.1.1.2 misho 4188: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4189: 'mkdir (GNU coreutils) '* | \
4190: 'mkdir (coreutils) '* | \
4191: 'mkdir (fileutils) '4.1*)
4192: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4193: break 3;;
4194: esac
4195: done
4196: done
4197: done
4198: IFS=$as_save_IFS
4199:
4200: fi
4201:
4202: test -d ./--version && rmdir ./--version
4203: if test "${ac_cv_path_mkdir+set}" = set; then
4204: MKDIR_P="$ac_cv_path_mkdir -p"
4205: else
4206: # As a last resort, use the slow shell script. Don't cache a
4207: # value for MKDIR_P within a source directory, because that will
4208: # break other packages using the cache if that directory is
4209: # removed, or if the value is a relative name.
4210: MKDIR_P="$ac_install_sh -d"
4211: fi
4212: fi
4213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4214: $as_echo "$MKDIR_P" >&6; }
4215:
1.1 misho 4216: case $ac_cv_prog_cc_stdc in #(
4217: no) :
4218: ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4219: *) :
4220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4221: $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4222: if ${ac_cv_prog_cc_c99+:} false; then :
4223: $as_echo_n "(cached) " >&6
4224: else
4225: ac_cv_prog_cc_c99=no
4226: ac_save_CC=$CC
4227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228: /* end confdefs.h. */
4229: #include <stdarg.h>
4230: #include <stdbool.h>
4231: #include <stdlib.h>
4232: #include <wchar.h>
4233: #include <stdio.h>
4234:
4235: // Check varargs macros. These examples are taken from C99 6.10.3.5.
4236: #define debug(...) fprintf (stderr, __VA_ARGS__)
4237: #define showlist(...) puts (#__VA_ARGS__)
4238: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4239: static void
4240: test_varargs_macros (void)
4241: {
4242: int x = 1234;
4243: int y = 5678;
4244: debug ("Flag");
4245: debug ("X = %d\n", x);
4246: showlist (The first, second, and third items.);
4247: report (x>y, "x is %d but y is %d", x, y);
4248: }
4249:
4250: // Check long long types.
4251: #define BIG64 18446744073709551615ull
4252: #define BIG32 4294967295ul
4253: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4254: #if !BIG_OK
4255: your preprocessor is broken;
4256: #endif
4257: #if BIG_OK
4258: #else
4259: your preprocessor is broken;
4260: #endif
4261: static long long int bignum = -9223372036854775807LL;
4262: static unsigned long long int ubignum = BIG64;
4263:
4264: struct incomplete_array
4265: {
4266: int datasize;
4267: double data[];
4268: };
4269:
4270: struct named_init {
4271: int number;
4272: const wchar_t *name;
4273: double average;
4274: };
4275:
4276: typedef const char *ccp;
4277:
4278: static inline int
4279: test_restrict (ccp restrict text)
4280: {
4281: // See if C++-style comments work.
4282: // Iterate through items via the restricted pointer.
4283: // Also check for declarations in for loops.
4284: for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4285: continue;
4286: return 0;
4287: }
4288:
4289: // Check varargs and va_copy.
4290: static void
4291: test_varargs (const char *format, ...)
4292: {
4293: va_list args;
4294: va_start (args, format);
4295: va_list args_copy;
4296: va_copy (args_copy, args);
4297:
4298: const char *str;
4299: int number;
4300: float fnumber;
4301:
4302: while (*format)
4303: {
4304: switch (*format++)
4305: {
4306: case 's': // string
4307: str = va_arg (args_copy, const char *);
4308: break;
4309: case 'd': // int
4310: number = va_arg (args_copy, int);
4311: break;
4312: case 'f': // float
4313: fnumber = va_arg (args_copy, double);
4314: break;
4315: default:
4316: break;
4317: }
4318: }
4319: va_end (args_copy);
4320: va_end (args);
4321: }
4322:
4323: int
4324: main ()
4325: {
4326:
4327: // Check bool.
4328: _Bool success = false;
4329:
4330: // Check restrict.
4331: if (test_restrict ("String literal") == 0)
4332: success = true;
4333: char *restrict newvar = "Another string";
4334:
4335: // Check varargs.
4336: test_varargs ("s, d' f .", "string", 65, 34.234);
4337: test_varargs_macros ();
4338:
4339: // Check flexible array members.
4340: struct incomplete_array *ia =
4341: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4342: ia->datasize = 10;
4343: for (int i = 0; i < ia->datasize; ++i)
4344: ia->data[i] = i * 1.234;
4345:
4346: // Check named initializers.
4347: struct named_init ni = {
4348: .number = 34,
4349: .name = L"Test wide string",
4350: .average = 543.34343,
4351: };
4352:
4353: ni.number = 58;
4354:
4355: int dynamic_array[ni.number];
4356: dynamic_array[ni.number - 1] = 543;
4357:
4358: // work around unused variable warnings
4359: return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4360: || dynamic_array[ni.number - 1] != 543);
4361:
4362: ;
4363: return 0;
4364: }
4365: _ACEOF
1.1.1.3 misho 4366: for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
1.1 misho 4367: do
4368: CC="$ac_save_CC $ac_arg"
4369: if ac_fn_c_try_compile "$LINENO"; then :
4370: ac_cv_prog_cc_c99=$ac_arg
4371: fi
4372: rm -f core conftest.err conftest.$ac_objext
4373: test "x$ac_cv_prog_cc_c99" != "xno" && break
4374: done
4375: rm -f conftest.$ac_ext
4376: CC=$ac_save_CC
4377:
4378: fi
4379: # AC_CACHE_VAL
4380: case "x$ac_cv_prog_cc_c99" in
4381: x)
4382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4383: $as_echo "none needed" >&6; } ;;
4384: xno)
4385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4386: $as_echo "unsupported" >&6; } ;;
4387: *)
4388: CC="$CC $ac_cv_prog_cc_c99"
4389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4390: $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4391: esac
4392: if test "x$ac_cv_prog_cc_c99" != xno; then :
4393: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4394: else
4395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4396: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4397: if ${ac_cv_prog_cc_c89+:} false; then :
4398: $as_echo_n "(cached) " >&6
4399: else
4400: ac_cv_prog_cc_c89=no
4401: ac_save_CC=$CC
4402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403: /* end confdefs.h. */
4404: #include <stdarg.h>
4405: #include <stdio.h>
1.1.1.3 misho 4406: struct stat;
1.1 misho 4407: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4408: struct buf { int x; };
4409: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4410: static char *e (p, i)
4411: char **p;
4412: int i;
4413: {
4414: return p[i];
4415: }
4416: static char *f (char * (*g) (char **, int), char **p, ...)
4417: {
4418: char *s;
4419: va_list v;
4420: va_start (v,p);
4421: s = g (p, va_arg (v,int));
4422: va_end (v);
4423: return s;
4424: }
4425:
4426: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4427: function prototypes and stuff, but not '\xHH' hex character constants.
4428: These don't provoke an error unfortunately, instead are silently treated
4429: as 'x'. The following induces an error, until -std is added to get
4430: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4431: array size at least. It's necessary to write '\x00'==0 to get something
4432: that's true only with -std. */
4433: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4434:
4435: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4436: inside strings and character constants. */
4437: #define FOO(x) 'x'
4438: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4439:
4440: int test (int i, double x);
4441: struct s1 {int (*f) (int a);};
4442: struct s2 {int (*f) (double a);};
4443: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4444: int argc;
4445: char **argv;
4446: int
4447: main ()
4448: {
4449: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4450: ;
4451: return 0;
4452: }
4453: _ACEOF
4454: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4455: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4456: do
4457: CC="$ac_save_CC $ac_arg"
4458: if ac_fn_c_try_compile "$LINENO"; then :
4459: ac_cv_prog_cc_c89=$ac_arg
4460: fi
4461: rm -f core conftest.err conftest.$ac_objext
4462: test "x$ac_cv_prog_cc_c89" != "xno" && break
4463: done
4464: rm -f conftest.$ac_ext
4465: CC=$ac_save_CC
4466:
4467: fi
4468: # AC_CACHE_VAL
4469: case "x$ac_cv_prog_cc_c89" in
4470: x)
4471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4472: $as_echo "none needed" >&6; } ;;
4473: xno)
4474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4475: $as_echo "unsupported" >&6; } ;;
4476: *)
4477: CC="$CC $ac_cv_prog_cc_c89"
4478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4479: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4480: esac
4481: if test "x$ac_cv_prog_cc_c89" != xno; then :
4482: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4483: else
4484: ac_cv_prog_cc_stdc=no
4485: fi
4486:
4487: fi
4488: ;;
4489: esac
4490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4491: $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4492: if ${ac_cv_prog_cc_stdc+:} false; then :
4493: $as_echo_n "(cached) " >&6
4494: fi
4495:
4496: case $ac_cv_prog_cc_stdc in #(
4497: no) :
4498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4499: $as_echo "unsupported" >&6; } ;; #(
4500: '') :
4501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4502: $as_echo "none needed" >&6; } ;; #(
4503: *) :
4504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4505: $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4506: esac
4507:
4508:
1.1.1.3 misho 4509: # Extract the first word of "perl", so it can be a program name with args.
4510: set dummy perl; ac_word=$2
4511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512: $as_echo_n "checking for $ac_word... " >&6; }
4513: if ${ac_cv_path_PERL+:} false; then :
4514: $as_echo_n "(cached) " >&6
4515: else
4516: case $PERL in
4517: [\\/]* | ?:[\\/]*)
4518: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4519: ;;
4520: *)
4521: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522: for as_dir in $PATH
4523: do
4524: IFS=$as_save_IFS
4525: test -z "$as_dir" && as_dir=.
4526: for ac_exec_ext in '' $ac_executable_extensions; do
4527: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4529: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530: break 2
4531: fi
4532: done
4533: done
4534: IFS=$as_save_IFS
4535:
4536: ;;
4537: esac
4538: fi
4539: PERL=$ac_cv_path_PERL
4540: if test -n "$PERL"; then
4541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4542: $as_echo "$PERL" >&6; }
4543: else
4544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545: $as_echo "no" >&6; }
4546: fi
4547:
4548:
1.1.1.4 ! misho 4549: # Extract the first word of "python3", so it can be a program name with args.
! 4550: set dummy python3; ac_word=$2
! 4551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4552: $as_echo_n "checking for $ac_word... " >&6; }
! 4553: if ${ac_cv_path_PYTHON3+:} false; then :
! 4554: $as_echo_n "(cached) " >&6
! 4555: else
! 4556: case $PYTHON3 in
! 4557: [\\/]* | ?:[\\/]*)
! 4558: ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
! 4559: ;;
! 4560: *)
! 4561: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4562: for as_dir in $PATH
! 4563: do
! 4564: IFS=$as_save_IFS
! 4565: test -z "$as_dir" && as_dir=.
! 4566: for ac_exec_ext in '' $ac_executable_extensions; do
! 4567: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4568: ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
! 4569: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4570: break 2
! 4571: fi
! 4572: done
! 4573: done
! 4574: IFS=$as_save_IFS
! 4575:
! 4576: ;;
! 4577: esac
! 4578: fi
! 4579: PYTHON3=$ac_cv_path_PYTHON3
! 4580: if test -n "$PYTHON3"; then
! 4581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
! 4582: $as_echo "$PYTHON3" >&6; }
! 4583: else
! 4584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4585: $as_echo "no" >&6; }
! 4586: fi
! 4587:
! 4588:
1.1 misho 4589:
4590:
4591: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4592:
4593:
4594: if test x"$ac_cv_prog_cc_stdc" = x"no"; then
4595: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&5
4596: $as_echo "$as_me: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&2;}
4597: fi
4598:
1.1.1.4 ! misho 4599: no_lib=''
! 4600: err_msg=''
! 4601: nl='
! 4602: '
! 4603:
1.1 misho 4604: # Check whether --enable-profile was given.
4605: if test "${enable_profile+set}" = set; then :
4606: enableval=$enable_profile;
4607: fi
4608:
4609: if test x"$enable_profile" = x"yes"; then
4610: CFLAGS="$CFLAGS -pg"
4611: fi
4612:
1.1.1.4 ! misho 4613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if md2man can create man pages" >&5
! 4614: $as_echo_n "checking if md2man can create man pages... " >&6; }
! 4615: if test x"$ac_cv_path_PYTHON3" = x; then
! 4616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - python3 not found" >&5
! 4617: $as_echo "no - python3 not found" >&6; }
! 4618: md2man_works=no
! 4619: else
! 4620: md2man_out=`"$srcdir/md2man" --test "$srcdir/rsync-ssl.1.md" 2>&1`
! 4621: if test $? = 0; then
! 4622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 4623: $as_echo "yes" >&6; }
! 4624: md2man_works=yes
! 4625: else
! 4626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4627: $as_echo "no" >&6; }
! 4628: md2man_works=no
! 4629: echo "$md2man_out"
! 4630: fi
! 4631: fi
! 4632:
! 4633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we require man-page building" >&5
! 4634: $as_echo_n "checking if we require man-page building... " >&6; }
! 4635: # Check whether --enable-md2man was given.
! 4636: if test "${enable_md2man+set}" = set; then :
! 4637: enableval=$enable_md2man;
! 4638: fi
! 4639:
! 4640: if test x"$enable_md2man" != x"no"; then
! 4641: if test -f "$srcdir/rsync.1"; then
! 4642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: optional" >&5
! 4643: $as_echo "optional" >&6; }
! 4644: else
! 4645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: required" >&5
! 4646: $as_echo "required" >&6; }
! 4647: if test x"$md2man_works" = x"no"; then
! 4648: err_msg="$err_msg$nl- You need python3 and either the cmarkgfm OR commonmark python3 lib in order"
! 4649: err_msg="$err_msg$nl to build man pages based on the git source (man pages are included in the"
! 4650: err_msg="$err_msg$nl official release tar files)."
! 4651: no_lib="$no_lib md2man"
! 4652: fi
! 4653: fi
! 4654: MAKE_MAN=man
! 4655: else
! 4656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4657: $as_echo "no" >&6; }
! 4658: MAKE_MAN=''
! 4659: fi
1.1 misho 4660:
4661: # Specifically, this turns on panic_action handling.
4662: # Check whether --enable-maintainer-mode was given.
4663: if test "${enable_maintainer_mode+set}" = set; then :
4664: enableval=$enable_maintainer_mode;
4665: fi
4666:
4667: if test x"$enable_maintainer_mode" = x"yes"; then
4668: CFLAGS="$CFLAGS -DMAINTAINER_MODE"
4669: fi
4670:
4671: # This is needed for our included version of popt. Kind of silly, but
4672: # I don't want our version too far out of sync.
4673: CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
4674:
4675: # If GCC, turn on warnings.
4676: if test x"$GCC" = x"yes"; then
4677: CFLAGS="$CFLAGS -Wall -W"
4678: fi
4679:
4680:
4681: # Check whether --with-included-popt was given.
4682: if test "${with_included_popt+set}" = set; then :
4683: withval=$with_included_popt;
4684: fi
4685:
4686:
4687:
1.1.1.2 misho 4688: # Check whether --with-included-zlib was given.
4689: if test "${with_included_zlib+set}" = set; then :
4690: withval=$with_included_zlib;
4691: fi
4692:
4693:
4694:
4695: # Check whether --with-protected-args was given.
4696: if test "${with_protected_args+set}" = set; then :
4697: withval=$with_protected_args;
4698: fi
4699:
4700: if test x"$with_protected_args" = x"yes"; then
4701:
4702: cat >>confdefs.h <<_ACEOF
4703: #define RSYNC_USE_PROTECTED_ARGS 1
4704: _ACEOF
4705:
4706: fi
4707:
4708:
1.1 misho 4709: # Check whether --with-rsync-path was given.
4710: if test "${with_rsync_path+set}" = set; then :
4711: withval=$with_rsync_path; RSYNC_PATH="$with_rsync_path"
4712: else
4713: RSYNC_PATH="rsync"
4714: fi
4715:
4716:
4717:
4718: cat >>confdefs.h <<_ACEOF
4719: #define RSYNC_PATH "$RSYNC_PATH"
4720: _ACEOF
4721:
4722:
4723:
4724: # Check whether --with-rsyncd-conf was given.
4725: if test "${with_rsyncd_conf+set}" = set; then :
4726: withval=$with_rsyncd_conf; if test ! -z "$with_rsyncd_conf" ; then
4727: case $with_rsyncd_conf in
4728: yes|no)
4729: RSYNCD_SYSCONF="/etc/rsyncd.conf"
4730: ;;
4731: /*)
4732: RSYNCD_SYSCONF="$with_rsyncd_conf"
4733: ;;
4734: *)
4735: as_fn_error $? "You must specify an absolute path to --with-rsyncd-conf=PATH" "$LINENO" 5
4736: ;;
4737: esac
4738: else
4739: RSYNCD_SYSCONF="/etc/rsyncd.conf"
4740: fi
4741: else
4742: RSYNCD_SYSCONF="/etc/rsyncd.conf"
4743: fi
4744:
4745:
4746:
4747: cat >>confdefs.h <<_ACEOF
4748: #define RSYNCD_SYSCONF "$RSYNCD_SYSCONF"
4749: _ACEOF
4750:
4751:
4752:
4753: # Check whether --with-rsh was given.
4754: if test "${with_rsh+set}" = set; then :
4755: withval=$with_rsh;
4756: fi
4757:
4758:
4759: # Extract the first word of "remsh", so it can be a program name with args.
4760: set dummy remsh; ac_word=$2
4761: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762: $as_echo_n "checking for $ac_word... " >&6; }
4763: if ${ac_cv_prog_HAVE_REMSH+:} false; then :
4764: $as_echo_n "(cached) " >&6
4765: else
4766: if test -n "$HAVE_REMSH"; then
4767: ac_cv_prog_HAVE_REMSH="$HAVE_REMSH" # Let the user override the test.
4768: else
4769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770: for as_dir in $PATH
4771: do
4772: IFS=$as_save_IFS
4773: test -z "$as_dir" && as_dir=.
4774: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 4775: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 4776: ac_cv_prog_HAVE_REMSH="1"
4777: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778: break 2
4779: fi
4780: done
4781: done
4782: IFS=$as_save_IFS
4783:
4784: test -z "$ac_cv_prog_HAVE_REMSH" && ac_cv_prog_HAVE_REMSH="0"
4785: fi
4786: fi
4787: HAVE_REMSH=$ac_cv_prog_HAVE_REMSH
4788: if test -n "$HAVE_REMSH"; then
4789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_REMSH" >&5
4790: $as_echo "$HAVE_REMSH" >&6; }
4791: else
4792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793: $as_echo "no" >&6; }
4794: fi
4795:
4796:
4797: if test x$HAVE_REMSH = x1; then
4798:
4799: $as_echo "#define HAVE_REMSH 1" >>confdefs.h
4800:
4801: fi
4802:
4803: if test x"$with_rsh" != x; then
4804: RSYNC_RSH="$with_rsh"
4805: else
4806: RSYNC_RSH="ssh"
4807: fi
4808:
4809: cat >>confdefs.h <<_ACEOF
4810: #define RSYNC_RSH "$RSYNC_RSH"
4811: _ACEOF
4812:
4813:
1.1.1.2 misho 4814: # Some programs on solaris are only found in /usr/xpg4/bin (or work better than others versions).
4815: # Extract the first word of "sh", so it can be a program name with args.
4816: set dummy sh; ac_word=$2
4817: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818: $as_echo_n "checking for $ac_word... " >&6; }
4819: if ${ac_cv_path_SHELL_PATH+:} false; then :
4820: $as_echo_n "(cached) " >&6
4821: else
4822: case $SHELL_PATH in
4823: [\\/]* | ?:[\\/]*)
4824: ac_cv_path_SHELL_PATH="$SHELL_PATH" # Let the user override the test with a path.
4825: ;;
4826: *)
4827: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828: for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
4829: do
4830: IFS=$as_save_IFS
4831: test -z "$as_dir" && as_dir=.
4832: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 4833: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 4834: ac_cv_path_SHELL_PATH="$as_dir/$ac_word$ac_exec_ext"
4835: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836: break 2
4837: fi
4838: done
4839: done
4840: IFS=$as_save_IFS
4841:
4842: test -z "$ac_cv_path_SHELL_PATH" && ac_cv_path_SHELL_PATH="/bin/sh"
4843: ;;
4844: esac
4845: fi
4846: SHELL_PATH=$ac_cv_path_SHELL_PATH
4847: if test -n "$SHELL_PATH"; then
4848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL_PATH" >&5
4849: $as_echo "$SHELL_PATH" >&6; }
4850: else
4851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852: $as_echo "no" >&6; }
1.1 misho 4853: fi
4854:
4855:
1.1.1.2 misho 4856: # Extract the first word of "fakeroot", so it can be a program name with args.
4857: set dummy fakeroot; ac_word=$2
4858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859: $as_echo_n "checking for $ac_word... " >&6; }
4860: if ${ac_cv_path_FAKEROOT_PATH+:} false; then :
4861: $as_echo_n "(cached) " >&6
4862: else
4863: case $FAKEROOT_PATH in
4864: [\\/]* | ?:[\\/]*)
4865: ac_cv_path_FAKEROOT_PATH="$FAKEROOT_PATH" # Let the user override the test with a path.
4866: ;;
4867: *)
4868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869: for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
4870: do
4871: IFS=$as_save_IFS
4872: test -z "$as_dir" && as_dir=.
4873: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 misho 4874: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2 misho 4875: ac_cv_path_FAKEROOT_PATH="$as_dir/$ac_word$ac_exec_ext"
4876: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877: break 2
4878: fi
4879: done
4880: done
4881: IFS=$as_save_IFS
4882:
4883: test -z "$ac_cv_path_FAKEROOT_PATH" && ac_cv_path_FAKEROOT_PATH="/usr/bin/fakeroot"
4884: ;;
4885: esac
4886: fi
4887: FAKEROOT_PATH=$ac_cv_path_FAKEROOT_PATH
4888: if test -n "$FAKEROOT_PATH"; then
4889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FAKEROOT_PATH" >&5
4890: $as_echo "$FAKEROOT_PATH" >&6; }
4891: else
4892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893: $as_echo "no" >&6; }
4894: fi
4895:
4896:
4897:
4898:
1.1 misho 4899: # Check whether --with-nobody-group was given.
4900: if test "${with_nobody_group+set}" = set; then :
4901: withval=$with_nobody_group; NOBODY_GROUP="$with_nobody_group"
4902: fi
4903:
4904:
4905: if test x"$with_nobody_group" = x; then
4906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the group for user \"nobody\"" >&5
4907: $as_echo_n "checking the group for user \"nobody\"... " >&6; }
4908: if grep '^nobody:' /etc/group >/dev/null 2>&1; then
4909: NOBODY_GROUP=nobody
4910: elif grep '^nogroup:' /etc/group >/dev/null 2>&1; then
4911: NOBODY_GROUP=nogroup
4912: else
4913: NOBODY_GROUP=nobody # test for others?
4914: fi
4915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOBODY_GROUP" >&5
4916: $as_echo "$NOBODY_GROUP" >&6; }
4917: fi
4918:
4919:
4920: cat >>confdefs.h <<_ACEOF
4921: #define NOBODY_USER "nobody"
4922: _ACEOF
4923:
4924:
1.1.1.4 ! misho 4925: cat >>confdefs.h <<_ACEOF
! 4926: #define NOBODY_GROUP "$NOBODY_GROUP"
! 4927: _ACEOF
! 4928:
! 4929:
! 4930: # SIMD optimizations
! 4931: SIMD=
! 4932:
! 4933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SIMD optimizations" >&5
! 4934: $as_echo_n "checking whether to enable SIMD optimizations... " >&6; }
! 4935: # Check whether --enable-simd was given.
! 4936: if test "${enable_simd+set}" = set; then :
! 4937: enableval=$enable_simd;
! 4938: fi
! 4939:
! 4940:
! 4941: # Clag is crashing with -g -O2, so we'll get rid of -g for now.
! 4942: CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g //'`
! 4943:
! 4944: if test x"$enable_simd" != x"no"; then
! 4945: # For x86-64 SIMD, g++ >=5 or clang++ >=7 is required
! 4946: if test x"$build_cpu" = x"x86_64"; then
! 4947: ac_ext=cpp
! 4948: ac_cpp='$CXXCPP $CPPFLAGS'
! 4949: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4950: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4951: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 4952:
! 4953:
! 4954: if test "$cross_compiling" = yes; then :
! 4955: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4956: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 4957: as_fn_error $? "cannot run test program while cross compiling
! 4958: See \`config.log' for more details" "$LINENO" 5; }
! 4959: else
! 4960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4961: /* end confdefs.h. */
! 4962: #include <stdio.h>
! 4963: #include <immintrin.h>
! 4964: __attribute__ ((target("default"))) int test_ssse3(int x) { return x; }
! 4965: __attribute__ ((target("default"))) int test_sse2(int x) { return x; }
! 4966: __attribute__ ((target("default"))) int test_avx2(int x) { return x; }
! 4967: __attribute__ ((target("ssse3"))) int test_ssse3(int x) { return x; }
! 4968: __attribute__ ((target("sse2"))) int test_sse2(int x) { return x; }
! 4969: __attribute__ ((target("avx2"))) int test_avx2(int x) { return x; }
! 4970: typedef long long __m128i_u __attribute__((__vector_size__(16), __may_alias__, __aligned__(1)));
! 4971: typedef long long __m256i_u __attribute__((__vector_size__(32), __may_alias__, __aligned__(1)));
! 4972: __attribute__ ((target("default"))) void more_testing(char* buf, int len) { }
! 4973: __attribute__ ((target("ssse3"))) void more_testing(char* buf, int len)
! 4974: {
! 4975: int i;
! 4976: for (i = 0; i < (len-32); i+=32) {
! 4977: __m128i in8_1, in8_2;
! 4978: in8_1 = _mm_lddqu_si128((__m128i_u*)&buf[i]);
! 4979: in8_2 = _mm_lddqu_si128((__m128i_u*)&buf[i + 16]);
! 4980: }
! 4981: }
! 4982:
! 4983: int
! 4984: main ()
! 4985: {
! 4986: if (test_ssse3(42) != 42 || test_sse2(42) != 42 || test_avx2(42) != 42) exit(1);
! 4987: ;
! 4988: return 0;
! 4989: }
! 4990: _ACEOF
! 4991: if ac_fn_cxx_try_run "$LINENO"; then :
! 4992: CXX_OK=yes
! 4993: else
! 4994: CXX_OK=no
! 4995: fi
! 4996: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 4997: conftest.$ac_objext conftest.beam conftest.$ac_ext
! 4998: fi
! 4999:
! 5000: ac_ext=c
! 5001: ac_cpp='$CPP $CPPFLAGS'
! 5002: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5003: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5004: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 5005:
! 5006: if test x"$CXX_OK" = x"yes"; then
! 5007: # AC_MSG_RESULT() is called below.
! 5008: SIMD="x86_64"
! 5009: elif test x"$enable_simd" = x"yes"; then
! 5010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
! 5011: $as_echo "error" >&6; }
! 5012: as_fn_error $? "The SIMD compilation test failed.
! 5013: Omit --enable-simd to continue without it." "$LINENO" 5
! 5014: fi
! 5015: elif test x"$enable_simd" = x"yes"; then
! 5016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
! 5017: $as_echo "unavailable" >&6; }
! 5018: as_fn_error $? "The SIMD optimizations are currently x86_64 only.
! 5019: Omit --enable-simd to continue without it." "$LINENO" 5
! 5020: fi
! 5021: fi
! 5022:
! 5023: if test x"$SIMD" != x""; then
! 5024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($SIMD)" >&5
! 5025: $as_echo "yes ($SIMD)" >&6; }
! 5026:
! 5027: $as_echo "#define HAVE_SIMD 1" >>confdefs.h
! 5028:
! 5029: SIMD='$(SIMD_'"$SIMD)"
! 5030: # We only use c++ for its target attribute dispatching, disable unneeded bulky features
! 5031: CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
! 5032: # Apple often has "g++" as a symlink for clang. Try to find out the truth.
! 5033: CXX_VERSION=`$CXX --version 2>/dev/null | head -n 2`
! 5034: case "$CXX_VERSION" in
! 5035: *clang*) CXXFLAGS="$CXXFLAGS -fno-slp-vectorize" ;; # avoid a performance hit
! 5036: esac
! 5037: else
! 5038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5039: $as_echo "no" >&6; }
! 5040: fi
! 5041:
! 5042:
! 5043:
! 5044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler accepts noexecstack" >&5
! 5045: $as_echo_n "checking if assembler accepts noexecstack... " >&6; }
! 5046: OLD_CFLAGS="$CFLAGS"
! 5047: CFLAGS="$CFLAGS -Wa,--noexecstack"
! 5048:
! 5049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5050: /* end confdefs.h. */
! 5051:
! 5052: int
! 5053: main ()
! 5054: {
! 5055: return 0;
! 5056: ;
! 5057: return 0;
! 5058: }
! 5059: _ACEOF
! 5060: if ac_fn_c_try_compile "$LINENO"; then :
! 5061: NOEXECSTACK='-Wa,--noexecstack' ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5062: $as_echo "yes" >&6; }
! 5063: else
! 5064: NOEXECSTACK='' ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5065: $as_echo "no" >&6; }
! 5066: fi
! 5067: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5068: CFLAGS="$OLD_CFLAGS"
! 5069:
! 5070:
! 5071: ASM=
! 5072:
! 5073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ASM optimizations" >&5
! 5074: $as_echo_n "checking whether to enable ASM optimizations... " >&6; }
! 5075: # Check whether --enable-asm was given.
! 5076: if test "${enable_asm+set}" = set; then :
! 5077: enableval=$enable_asm;
! 5078: fi
! 5079:
! 5080:
! 5081: if test x"$enable_asm" != x"no"; then
! 5082: if test x"$build_cpu" = x"x86_64"; then
! 5083: ASM="$build_cpu"
! 5084: elif test x"$enable_asm" = x"yes"; then
! 5085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
! 5086: $as_echo "unavailable" >&6; }
! 5087: as_fn_error $? "The ASM optimizations are currently x86_64 only.
! 5088: Omit --enable-asm to continue without it." "$LINENO" 5
! 5089: fi
! 5090: fi
! 5091:
! 5092: if test x"$ASM" != x""; then
! 5093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ASM)" >&5
! 5094: $as_echo "yes ($ASM)" >&6; }
! 5095:
! 5096: $as_echo "#define HAVE_ASM 1" >>confdefs.h
! 5097:
! 5098: ASM='$(ASM_'"$ASM)"
! 5099: else
! 5100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5101: $as_echo "no" >&6; }
! 5102: fi
! 5103:
1.1 misho 5104:
5105:
5106: # arrgh. libc in some old debian version screwed up the largefile
5107: # stuff, getting byte range locking wrong
5108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken largefile support" >&5
5109: $as_echo_n "checking for broken largefile support... " >&6; }
5110: if ${rsync_cv_HAVE_BROKEN_LARGEFILE+:} false; then :
5111: $as_echo_n "(cached) " >&6
5112: else
5113:
5114: if test "$cross_compiling" = yes; then :
5115: rsync_cv_HAVE_BROKEN_LARGEFILE=cross
5116: else
5117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118: /* end confdefs.h. */
5119:
5120: #define _FILE_OFFSET_BITS 64
5121: #include <stdio.h>
5122: #include <fcntl.h>
5123: #include <sys/types.h>
5124: #include <sys/wait.h>
1.1.1.4 ! misho 5125: #if HAVE_UNISTD_H
! 5126: #include <unistd.h>
! 5127: #endif
1.1 misho 5128:
5129: int main(void)
5130: {
5131: struct flock lock;
5132: int status;
5133: char tpl[32] = "/tmp/locktest.XXXXXX";
5134: int fd = mkstemp(tpl);
5135: if (fd < 0) {
5136: strcpy(tpl, "conftest.dat");
5137: fd = open(tpl, O_CREAT|O_RDWR, 0600);
5138: }
5139:
5140: lock.l_type = F_WRLCK;
5141: lock.l_whence = SEEK_SET;
5142: lock.l_start = 0;
5143: lock.l_len = 1;
5144: lock.l_pid = 0;
5145: fcntl(fd,F_SETLK,&lock);
5146: if (fork() == 0) {
5147: lock.l_start = 1;
5148: _exit(fcntl(fd,F_SETLK,&lock) == 0);
5149: }
5150: wait(&status);
5151: unlink(tpl);
1.1.1.4 ! misho 5152: return WEXITSTATUS(status);
1.1 misho 5153: }
5154:
5155: _ACEOF
5156: if ac_fn_c_try_run "$LINENO"; then :
5157: rsync_cv_HAVE_BROKEN_LARGEFILE=yes
5158: else
5159: rsync_cv_HAVE_BROKEN_LARGEFILE=no
5160: fi
5161: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5162: conftest.$ac_objext conftest.beam conftest.$ac_ext
5163: fi
5164:
5165: fi
5166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_LARGEFILE" >&5
5167: $as_echo "$rsync_cv_HAVE_BROKEN_LARGEFILE" >&6; }
5168: if test x"$rsync_cv_HAVE_BROKEN_LARGEFILE" != x"yes"; then
5169: # Check whether --enable-largefile was given.
5170: if test "${enable_largefile+set}" = set; then :
5171: enableval=$enable_largefile;
5172: fi
5173:
5174: if test "$enable_largefile" != no; then
5175:
5176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5177: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5178: if ${ac_cv_sys_largefile_CC+:} false; then :
5179: $as_echo_n "(cached) " >&6
5180: else
5181: ac_cv_sys_largefile_CC=no
5182: if test "$GCC" != yes; then
5183: ac_save_CC=$CC
5184: while :; do
5185: # IRIX 6.2 and later do not support large files by default,
5186: # so use the C compiler's -n32 option if that helps.
5187: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188: /* end confdefs.h. */
5189: #include <sys/types.h>
5190: /* Check that off_t can represent 2**63 - 1 correctly.
5191: We can't simply define LARGE_OFF_T to be 9223372036854775807,
5192: since some C++ compilers masquerading as C compilers
5193: incorrectly reject 9223372036854775807. */
1.1.1.3 misho 5194: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1 misho 5195: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5196: && LARGE_OFF_T % 2147483647 == 1)
5197: ? 1 : -1];
5198: int
5199: main ()
5200: {
5201:
5202: ;
5203: return 0;
5204: }
5205: _ACEOF
5206: if ac_fn_c_try_compile "$LINENO"; then :
5207: break
5208: fi
5209: rm -f core conftest.err conftest.$ac_objext
5210: CC="$CC -n32"
5211: if ac_fn_c_try_compile "$LINENO"; then :
5212: ac_cv_sys_largefile_CC=' -n32'; break
5213: fi
5214: rm -f core conftest.err conftest.$ac_objext
5215: break
5216: done
5217: CC=$ac_save_CC
5218: rm -f conftest.$ac_ext
5219: fi
5220: fi
5221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5222: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5223: if test "$ac_cv_sys_largefile_CC" != no; then
5224: CC=$CC$ac_cv_sys_largefile_CC
5225: fi
5226:
5227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5228: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5229: if ${ac_cv_sys_file_offset_bits+:} false; then :
5230: $as_echo_n "(cached) " >&6
5231: else
5232: while :; do
5233: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234: /* end confdefs.h. */
5235: #include <sys/types.h>
5236: /* Check that off_t can represent 2**63 - 1 correctly.
5237: We can't simply define LARGE_OFF_T to be 9223372036854775807,
5238: since some C++ compilers masquerading as C compilers
5239: incorrectly reject 9223372036854775807. */
1.1.1.3 misho 5240: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1 misho 5241: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5242: && LARGE_OFF_T % 2147483647 == 1)
5243: ? 1 : -1];
5244: int
5245: main ()
5246: {
5247:
5248: ;
5249: return 0;
5250: }
5251: _ACEOF
5252: if ac_fn_c_try_compile "$LINENO"; then :
5253: ac_cv_sys_file_offset_bits=no; break
5254: fi
5255: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257: /* end confdefs.h. */
5258: #define _FILE_OFFSET_BITS 64
5259: #include <sys/types.h>
5260: /* Check that off_t can represent 2**63 - 1 correctly.
5261: We can't simply define LARGE_OFF_T to be 9223372036854775807,
5262: since some C++ compilers masquerading as C compilers
5263: incorrectly reject 9223372036854775807. */
1.1.1.3 misho 5264: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1 misho 5265: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5266: && LARGE_OFF_T % 2147483647 == 1)
5267: ? 1 : -1];
5268: int
5269: main ()
5270: {
5271:
5272: ;
5273: return 0;
5274: }
5275: _ACEOF
5276: if ac_fn_c_try_compile "$LINENO"; then :
5277: ac_cv_sys_file_offset_bits=64; break
5278: fi
5279: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280: ac_cv_sys_file_offset_bits=unknown
5281: break
5282: done
5283: fi
5284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5285: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5286: case $ac_cv_sys_file_offset_bits in #(
5287: no | unknown) ;;
5288: *)
5289: cat >>confdefs.h <<_ACEOF
5290: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5291: _ACEOF
5292: ;;
5293: esac
5294: rm -rf conftest*
5295: if test $ac_cv_sys_file_offset_bits = unknown; then
5296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5297: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5298: if ${ac_cv_sys_large_files+:} false; then :
5299: $as_echo_n "(cached) " >&6
5300: else
5301: while :; do
5302: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303: /* end confdefs.h. */
5304: #include <sys/types.h>
5305: /* Check that off_t can represent 2**63 - 1 correctly.
5306: We can't simply define LARGE_OFF_T to be 9223372036854775807,
5307: since some C++ compilers masquerading as C compilers
5308: incorrectly reject 9223372036854775807. */
1.1.1.3 misho 5309: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1 misho 5310: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5311: && LARGE_OFF_T % 2147483647 == 1)
5312: ? 1 : -1];
5313: int
5314: main ()
5315: {
5316:
5317: ;
5318: return 0;
5319: }
5320: _ACEOF
5321: if ac_fn_c_try_compile "$LINENO"; then :
5322: ac_cv_sys_large_files=no; break
5323: fi
5324: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326: /* end confdefs.h. */
5327: #define _LARGE_FILES 1
5328: #include <sys/types.h>
5329: /* Check that off_t can represent 2**63 - 1 correctly.
5330: We can't simply define LARGE_OFF_T to be 9223372036854775807,
5331: since some C++ compilers masquerading as C compilers
5332: incorrectly reject 9223372036854775807. */
1.1.1.3 misho 5333: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1 misho 5334: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5335: && LARGE_OFF_T % 2147483647 == 1)
5336: ? 1 : -1];
5337: int
5338: main ()
5339: {
5340:
5341: ;
5342: return 0;
5343: }
5344: _ACEOF
5345: if ac_fn_c_try_compile "$LINENO"; then :
5346: ac_cv_sys_large_files=1; break
5347: fi
5348: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349: ac_cv_sys_large_files=unknown
5350: break
5351: done
5352: fi
5353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5354: $as_echo "$ac_cv_sys_large_files" >&6; }
5355: case $ac_cv_sys_large_files in #(
5356: no | unknown) ;;
5357: *)
5358: cat >>confdefs.h <<_ACEOF
5359: #define _LARGE_FILES $ac_cv_sys_large_files
5360: _ACEOF
5361: ;;
5362: esac
5363: rm -rf conftest*
5364: fi
1.1.1.3 misho 5365:
5366:
1.1 misho 5367: fi
5368:
5369: fi
5370:
5371: ipv6type=unknown
5372: ipv6lib=none
5373: ipv6trylibc=yes
5374:
5375: # Check whether --enable-ipv6 was given.
5376: if test "${enable_ipv6+set}" = set; then :
5377: enableval=$enable_ipv6;
5378: fi
5379:
5380: if test x"$enable_ipv6" != x"no"; then
5381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
5382: $as_echo_n "checking ipv6 stack type... " >&6; }
1.1.1.4 ! misho 5383: for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin TANDEM; do
1.1 misho 5384: case $i in
5385: inria)
5386: # http://www.kame.net/
5387:
5388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389: /* end confdefs.h. */
5390:
5391: #include <netinet/in.h>
5392: #ifdef IPV6_INRIA_VERSION
5393: yes
5394: #endif
5395: _ACEOF
5396: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397: $EGREP "yes" >/dev/null 2>&1; then :
5398: ipv6type=$i;
5399:
5400: $as_echo "#define INET6 1" >>confdefs.h
5401:
5402:
5403: fi
5404: rm -f conftest*
5405:
5406: ;;
5407: kame)
5408: # http://www.kame.net/
5409: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410: /* end confdefs.h. */
5411:
5412: #include <netinet/in.h>
5413: #ifdef __KAME__
5414: yes
5415: #endif
5416: _ACEOF
5417: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418: $EGREP "yes" >/dev/null 2>&1; then :
5419: ipv6type=$i;
5420:
5421: $as_echo "#define INET6 1" >>confdefs.h
5422:
5423: fi
5424: rm -f conftest*
5425:
5426: ;;
5427: linux-glibc)
5428: # http://www.v6.linux.or.jp/
5429: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430: /* end confdefs.h. */
5431:
5432: #include <features.h>
5433: #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5434: yes
5435: #endif
5436: _ACEOF
5437: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5438: $EGREP "yes" >/dev/null 2>&1; then :
5439: ipv6type=$i;
5440:
5441: $as_echo "#define INET6 1" >>confdefs.h
5442:
5443: fi
5444: rm -f conftest*
5445:
5446: ;;
5447: linux-inet6)
5448: # http://www.v6.linux.or.jp/
5449: if test -d /usr/inet6 -o -f /usr/inet6/lib/libinet6.a; then
5450: ipv6type=$i
5451: ipv6lib=inet6
5452: ipv6libdir=/usr/inet6/lib
5453: ipv6trylibc=yes;
5454:
5455: $as_echo "#define INET6 1" >>confdefs.h
5456:
5457: CFLAGS="-I/usr/inet6/include $CFLAGS"
5458: fi
5459: ;;
5460: solaris)
5461: # http://www.sun.com
5462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463: /* end confdefs.h. */
5464:
5465: #include <netinet/ip6.h>
5466: #ifdef __sun
5467: yes
5468: #endif
5469: _ACEOF
5470: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5471: $EGREP "yes" >/dev/null 2>&1; then :
5472: ipv6type=$i;
5473:
5474: $as_echo "#define INET6 1" >>confdefs.h
5475:
5476: fi
5477: rm -f conftest*
5478:
5479: ;;
5480: toshiba)
5481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482: /* end confdefs.h. */
5483:
5484: #include <sys/param.h>
5485: #ifdef _TOSHIBA_INET6
5486: yes
5487: #endif
5488: _ACEOF
5489: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5490: $EGREP "yes" >/dev/null 2>&1; then :
5491: ipv6type=$i;
5492: ipv6lib=inet6;
5493: ipv6libdir=/usr/local/v6/lib;
5494:
5495: $as_echo "#define INET6 1" >>confdefs.h
5496:
5497: fi
5498: rm -f conftest*
5499:
5500: ;;
5501: v6d)
5502: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503: /* end confdefs.h. */
5504:
5505: #include </usr/local/v6/include/sys/v6config.h>
5506: #ifdef __V6D__
5507: yes
5508: #endif
5509: _ACEOF
5510: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511: $EGREP "yes" >/dev/null 2>&1; then :
5512: ipv6type=$i;
5513: ipv6lib=v6;
5514: ipv6libdir=/usr/local/v6/lib;
5515:
5516: $as_echo "#define INET6 1" >>confdefs.h
5517:
5518: fi
5519: rm -f conftest*
5520:
5521: ;;
5522: zeta)
5523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524: /* end confdefs.h. */
5525:
5526: #include <sys/param.h>
5527: #ifdef _ZETA_MINAMI_INET6
5528: yes
5529: #endif
5530: _ACEOF
5531: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532: $EGREP "yes" >/dev/null 2>&1; then :
5533: ipv6type=$i;
5534: ipv6lib=inet6;
5535: ipv6libdir=/usr/local/v6/lib;
5536:
5537: $as_echo "#define INET6 1" >>confdefs.h
5538:
5539: fi
5540: rm -f conftest*
5541:
5542: ;;
5543: cygwin)
5544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545: /* end confdefs.h. */
5546:
5547: #include <netinet/in.h>
5548: #ifdef _CYGWIN_IN6_H
5549: yes
5550: #endif
5551: _ACEOF
5552: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553: $EGREP "yes" >/dev/null 2>&1; then :
5554: ipv6type=$i;
5555:
5556: $as_echo "#define INET6 1" >>confdefs.h
5557:
5558: fi
5559: rm -f conftest*
5560:
5561: ;;
1.1.1.4 ! misho 5562: TANDEM)
! 5563: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5564: /* end confdefs.h. */
! 5565:
! 5566: #include <netinet/ip6.h>
! 5567: #ifdef __TANDEM
! 5568: yes
! 5569: #endif
! 5570: _ACEOF
! 5571: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5572: $EGREP "yes" >/dev/null 2>&1; then :
! 5573: ipv6type=$i;
! 5574:
! 5575: $as_echo "#define INET6 1" >>confdefs.h
! 5576:
! 5577: fi
! 5578: rm -f conftest*
! 5579:
! 5580: ;;
1.1 misho 5581: esac
5582: if test "$ipv6type" != "unknown"; then
5583: break
5584: fi
5585: done
5586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
5587: $as_echo "$ipv6type" >&6; }
5588:
5589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5590: $as_echo_n "checking for library containing getaddrinfo... " >&6; }
5591: if ${ac_cv_search_getaddrinfo+:} false; then :
5592: $as_echo_n "(cached) " >&6
5593: else
5594: ac_func_search_save_LIBS=$LIBS
5595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596: /* end confdefs.h. */
5597:
5598: /* Override any GCC internal prototype to avoid an error.
5599: Use char because int might match the return type of a GCC
5600: builtin and then its argument prototype would still apply. */
5601: #ifdef __cplusplus
5602: extern "C"
5603: #endif
5604: char getaddrinfo ();
5605: int
5606: main ()
5607: {
5608: return getaddrinfo ();
5609: ;
5610: return 0;
5611: }
5612: _ACEOF
5613: for ac_lib in '' inet6; do
5614: if test -z "$ac_lib"; then
5615: ac_res="none required"
5616: else
5617: ac_res=-l$ac_lib
5618: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5619: fi
5620: if ac_fn_c_try_link "$LINENO"; then :
5621: ac_cv_search_getaddrinfo=$ac_res
5622: fi
5623: rm -f core conftest.err conftest.$ac_objext \
5624: conftest$ac_exeext
5625: if ${ac_cv_search_getaddrinfo+:} false; then :
5626: break
5627: fi
5628: done
5629: if ${ac_cv_search_getaddrinfo+:} false; then :
5630:
5631: else
5632: ac_cv_search_getaddrinfo=no
5633: fi
5634: rm conftest.$ac_ext
5635: LIBS=$ac_func_search_save_LIBS
5636: fi
5637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
5638: $as_echo "$ac_cv_search_getaddrinfo" >&6; }
5639: ac_res=$ac_cv_search_getaddrinfo
5640: if test "$ac_res" != no; then :
5641: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5642:
5643: fi
5644:
5645: fi
5646:
5647: # Check whether --enable-locale was given.
5648: if test "${enable_locale+set}" = set; then :
5649: enableval=$enable_locale;
5650: fi
5651:
5652:
5653: if test x"$enable_locale" != x"no"; then
5654: $as_echo "#define CONFIG_LOCALE 1" >>confdefs.h
5655:
5656: fi
5657:
5658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to call shutdown on all sockets" >&5
5659: $as_echo_n "checking whether to call shutdown on all sockets... " >&6; }
5660: case $host_os in
5661: *cygwin* ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5662: $as_echo "yes" >&6; }
5663:
5664: $as_echo "#define SHUTDOWN_ALL_SOCKETS 1" >>confdefs.h
5665:
5666: ;;
5667: * ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668: $as_echo "no" >&6; };;
5669: esac
5670:
5671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5672: $as_echo_n "checking for ANSI C header files... " >&6; }
5673: if ${ac_cv_header_stdc+:} false; then :
5674: $as_echo_n "(cached) " >&6
5675: else
5676: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677: /* end confdefs.h. */
5678: #include <stdlib.h>
5679: #include <stdarg.h>
5680: #include <string.h>
5681: #include <float.h>
5682:
5683: int
5684: main ()
5685: {
5686:
5687: ;
5688: return 0;
5689: }
5690: _ACEOF
5691: if ac_fn_c_try_compile "$LINENO"; then :
5692: ac_cv_header_stdc=yes
5693: else
5694: ac_cv_header_stdc=no
5695: fi
5696: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697:
5698: if test $ac_cv_header_stdc = yes; then
5699: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5700: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701: /* end confdefs.h. */
5702: #include <string.h>
5703:
5704: _ACEOF
5705: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5706: $EGREP "memchr" >/dev/null 2>&1; then :
5707:
5708: else
5709: ac_cv_header_stdc=no
5710: fi
5711: rm -f conftest*
5712:
5713: fi
5714:
5715: if test $ac_cv_header_stdc = yes; then
5716: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718: /* end confdefs.h. */
5719: #include <stdlib.h>
5720:
5721: _ACEOF
5722: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723: $EGREP "free" >/dev/null 2>&1; then :
5724:
5725: else
5726: ac_cv_header_stdc=no
5727: fi
5728: rm -f conftest*
5729:
5730: fi
5731:
5732: if test $ac_cv_header_stdc = yes; then
5733: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5734: if test "$cross_compiling" = yes; then :
5735: :
5736: else
5737: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738: /* end confdefs.h. */
5739: #include <ctype.h>
5740: #include <stdlib.h>
5741: #if ((' ' & 0x0FF) == 0x020)
5742: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5743: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5744: #else
5745: # define ISLOWER(c) \
5746: (('a' <= (c) && (c) <= 'i') \
5747: || ('j' <= (c) && (c) <= 'r') \
5748: || ('s' <= (c) && (c) <= 'z'))
5749: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5750: #endif
5751:
5752: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5753: int
5754: main ()
5755: {
5756: int i;
5757: for (i = 0; i < 256; i++)
5758: if (XOR (islower (i), ISLOWER (i))
5759: || toupper (i) != TOUPPER (i))
5760: return 2;
5761: return 0;
5762: }
5763: _ACEOF
5764: if ac_fn_c_try_run "$LINENO"; then :
5765:
5766: else
5767: ac_cv_header_stdc=no
5768: fi
5769: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5770: conftest.$ac_objext conftest.beam conftest.$ac_ext
5771: fi
5772:
5773: fi
5774: fi
5775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5776: $as_echo "$ac_cv_header_stdc" >&6; }
5777: if test $ac_cv_header_stdc = yes; then
5778:
5779: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5780:
5781: fi
5782:
5783: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5784: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5785: inttypes.h stdint.h unistd.h
5786: do :
5787: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5788: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5789: "
5790: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5791: cat >>confdefs.h <<_ACEOF
5792: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793: _ACEOF
5794:
5795: fi
5796:
5797: done
5798:
5799:
5800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5801: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5802: if ${ac_cv_c_bigendian+:} false; then :
5803: $as_echo_n "(cached) " >&6
5804: else
5805: ac_cv_c_bigendian=unknown
5806: # See if we're dealing with a universal compiler.
5807: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808: /* end confdefs.h. */
5809: #ifndef __APPLE_CC__
5810: not a universal capable compiler
5811: #endif
5812: typedef int dummy;
5813:
5814: _ACEOF
5815: if ac_fn_c_try_compile "$LINENO"; then :
5816:
5817: # Check for potential -arch flags. It is not universal unless
5818: # there are at least two -arch flags with different values.
5819: ac_arch=
5820: ac_prev=
5821: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5822: if test -n "$ac_prev"; then
5823: case $ac_word in
5824: i?86 | x86_64 | ppc | ppc64)
5825: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5826: ac_arch=$ac_word
5827: else
5828: ac_cv_c_bigendian=universal
5829: break
5830: fi
5831: ;;
5832: esac
5833: ac_prev=
5834: elif test "x$ac_word" = "x-arch"; then
5835: ac_prev=arch
5836: fi
5837: done
5838: fi
5839: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840: if test $ac_cv_c_bigendian = unknown; then
5841: # See if sys/param.h defines the BYTE_ORDER macro.
5842: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843: /* end confdefs.h. */
5844: #include <sys/types.h>
5845: #include <sys/param.h>
5846:
5847: int
5848: main ()
5849: {
5850: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5851: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5852: && LITTLE_ENDIAN)
5853: bogus endian macros
5854: #endif
5855:
5856: ;
5857: return 0;
5858: }
5859: _ACEOF
5860: if ac_fn_c_try_compile "$LINENO"; then :
5861: # It does; now see whether it defined to BIG_ENDIAN or not.
5862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863: /* end confdefs.h. */
5864: #include <sys/types.h>
5865: #include <sys/param.h>
5866:
5867: int
5868: main ()
5869: {
5870: #if BYTE_ORDER != BIG_ENDIAN
5871: not big endian
5872: #endif
5873:
5874: ;
5875: return 0;
5876: }
5877: _ACEOF
5878: if ac_fn_c_try_compile "$LINENO"; then :
5879: ac_cv_c_bigendian=yes
5880: else
5881: ac_cv_c_bigendian=no
5882: fi
5883: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884: fi
5885: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886: fi
5887: if test $ac_cv_c_bigendian = unknown; then
5888: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5889: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890: /* end confdefs.h. */
5891: #include <limits.h>
5892:
5893: int
5894: main ()
5895: {
5896: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5897: bogus endian macros
5898: #endif
5899:
5900: ;
5901: return 0;
5902: }
5903: _ACEOF
5904: if ac_fn_c_try_compile "$LINENO"; then :
5905: # It does; now see whether it defined to _BIG_ENDIAN or not.
5906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907: /* end confdefs.h. */
5908: #include <limits.h>
5909:
5910: int
5911: main ()
5912: {
5913: #ifndef _BIG_ENDIAN
5914: not big endian
5915: #endif
5916:
5917: ;
5918: return 0;
5919: }
5920: _ACEOF
5921: if ac_fn_c_try_compile "$LINENO"; then :
5922: ac_cv_c_bigendian=yes
5923: else
5924: ac_cv_c_bigendian=no
5925: fi
5926: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927: fi
5928: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929: fi
5930: if test $ac_cv_c_bigendian = unknown; then
5931: # Compile a test program.
5932: if test "$cross_compiling" = yes; then :
5933: # Try to guess by grepping values from an object file.
5934: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935: /* end confdefs.h. */
5936: short int ascii_mm[] =
5937: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5938: short int ascii_ii[] =
5939: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5940: int use_ascii (int i) {
5941: return ascii_mm[i] + ascii_ii[i];
5942: }
5943: short int ebcdic_ii[] =
5944: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5945: short int ebcdic_mm[] =
5946: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5947: int use_ebcdic (int i) {
5948: return ebcdic_mm[i] + ebcdic_ii[i];
5949: }
5950: extern int foo;
5951:
5952: int
5953: main ()
5954: {
5955: return use_ascii (foo) == use_ebcdic (foo);
5956: ;
5957: return 0;
5958: }
5959: _ACEOF
5960: if ac_fn_c_try_compile "$LINENO"; then :
5961: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5962: ac_cv_c_bigendian=yes
5963: fi
5964: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5965: if test "$ac_cv_c_bigendian" = unknown; then
5966: ac_cv_c_bigendian=no
5967: else
5968: # finding both strings is unlikely to happen, but who knows?
5969: ac_cv_c_bigendian=unknown
5970: fi
5971: fi
5972: fi
5973: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974: else
5975: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976: /* end confdefs.h. */
5977: $ac_includes_default
5978: int
5979: main ()
5980: {
5981:
5982: /* Are we little or big endian? From Harbison&Steele. */
5983: union
5984: {
5985: long int l;
5986: char c[sizeof (long int)];
5987: } u;
5988: u.l = 1;
5989: return u.c[sizeof (long int) - 1] == 1;
5990:
5991: ;
5992: return 0;
5993: }
5994: _ACEOF
5995: if ac_fn_c_try_run "$LINENO"; then :
5996: ac_cv_c_bigendian=no
5997: else
5998: ac_cv_c_bigendian=yes
5999: fi
6000: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6001: conftest.$ac_objext conftest.beam conftest.$ac_ext
6002: fi
6003:
6004: fi
6005: fi
6006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6007: $as_echo "$ac_cv_c_bigendian" >&6; }
6008: case $ac_cv_c_bigendian in #(
6009: yes)
6010: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6011: ;; #(
6012: no)
6013: ;; #(
6014: universal)
6015:
6016: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6017:
6018: ;; #(
6019: *)
6020: as_fn_error $? "unknown endianness
6021: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6022: esac
6023:
6024: ac_header_dirent=no
6025: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6026: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6028: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6029: if eval \${$as_ac_Header+:} false; then :
6030: $as_echo_n "(cached) " >&6
6031: else
6032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033: /* end confdefs.h. */
6034: #include <sys/types.h>
6035: #include <$ac_hdr>
6036:
6037: int
6038: main ()
6039: {
6040: if ((DIR *) 0)
6041: return 0;
6042: ;
6043: return 0;
6044: }
6045: _ACEOF
6046: if ac_fn_c_try_compile "$LINENO"; then :
6047: eval "$as_ac_Header=yes"
6048: else
6049: eval "$as_ac_Header=no"
6050: fi
6051: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052: fi
6053: eval ac_res=\$$as_ac_Header
6054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6055: $as_echo "$ac_res" >&6; }
6056: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6057: cat >>confdefs.h <<_ACEOF
6058: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6059: _ACEOF
6060:
6061: ac_header_dirent=$ac_hdr; break
6062: fi
6063:
6064: done
6065: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6066: if test $ac_header_dirent = dirent.h; then
6067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6068: $as_echo_n "checking for library containing opendir... " >&6; }
6069: if ${ac_cv_search_opendir+:} false; then :
6070: $as_echo_n "(cached) " >&6
6071: else
6072: ac_func_search_save_LIBS=$LIBS
6073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074: /* end confdefs.h. */
6075:
6076: /* Override any GCC internal prototype to avoid an error.
6077: Use char because int might match the return type of a GCC
6078: builtin and then its argument prototype would still apply. */
6079: #ifdef __cplusplus
6080: extern "C"
6081: #endif
6082: char opendir ();
6083: int
6084: main ()
6085: {
6086: return opendir ();
6087: ;
6088: return 0;
6089: }
6090: _ACEOF
6091: for ac_lib in '' dir; do
6092: if test -z "$ac_lib"; then
6093: ac_res="none required"
6094: else
6095: ac_res=-l$ac_lib
6096: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6097: fi
6098: if ac_fn_c_try_link "$LINENO"; then :
6099: ac_cv_search_opendir=$ac_res
6100: fi
6101: rm -f core conftest.err conftest.$ac_objext \
6102: conftest$ac_exeext
6103: if ${ac_cv_search_opendir+:} false; then :
6104: break
6105: fi
6106: done
6107: if ${ac_cv_search_opendir+:} false; then :
6108:
6109: else
6110: ac_cv_search_opendir=no
6111: fi
6112: rm conftest.$ac_ext
6113: LIBS=$ac_func_search_save_LIBS
6114: fi
6115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6116: $as_echo "$ac_cv_search_opendir" >&6; }
6117: ac_res=$ac_cv_search_opendir
6118: if test "$ac_res" != no; then :
6119: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6120:
6121: fi
6122:
6123: else
6124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6125: $as_echo_n "checking for library containing opendir... " >&6; }
6126: if ${ac_cv_search_opendir+:} false; then :
6127: $as_echo_n "(cached) " >&6
6128: else
6129: ac_func_search_save_LIBS=$LIBS
6130: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131: /* end confdefs.h. */
6132:
6133: /* Override any GCC internal prototype to avoid an error.
6134: Use char because int might match the return type of a GCC
6135: builtin and then its argument prototype would still apply. */
6136: #ifdef __cplusplus
6137: extern "C"
6138: #endif
6139: char opendir ();
6140: int
6141: main ()
6142: {
6143: return opendir ();
6144: ;
6145: return 0;
6146: }
6147: _ACEOF
6148: for ac_lib in '' x; do
6149: if test -z "$ac_lib"; then
6150: ac_res="none required"
6151: else
6152: ac_res=-l$ac_lib
6153: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6154: fi
6155: if ac_fn_c_try_link "$LINENO"; then :
6156: ac_cv_search_opendir=$ac_res
6157: fi
6158: rm -f core conftest.err conftest.$ac_objext \
6159: conftest$ac_exeext
6160: if ${ac_cv_search_opendir+:} false; then :
6161: break
6162: fi
6163: done
6164: if ${ac_cv_search_opendir+:} false; then :
6165:
6166: else
6167: ac_cv_search_opendir=no
6168: fi
6169: rm conftest.$ac_ext
6170: LIBS=$ac_func_search_save_LIBS
6171: fi
6172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6173: $as_echo "$ac_cv_search_opendir" >&6; }
6174: ac_res=$ac_cv_search_opendir
6175: if test "$ac_res" != no; then :
6176: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6177:
6178: fi
6179:
6180: fi
6181:
6182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6183: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6184: if ${ac_cv_header_time+:} false; then :
6185: $as_echo_n "(cached) " >&6
6186: else
6187: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188: /* end confdefs.h. */
6189: #include <sys/types.h>
6190: #include <sys/time.h>
6191: #include <time.h>
6192:
6193: int
6194: main ()
6195: {
6196: if ((struct tm *) 0)
6197: return 0;
6198: ;
6199: return 0;
6200: }
6201: _ACEOF
6202: if ac_fn_c_try_compile "$LINENO"; then :
6203: ac_cv_header_time=yes
6204: else
6205: ac_cv_header_time=no
6206: fi
6207: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208: fi
6209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6210: $as_echo "$ac_cv_header_time" >&6; }
6211: if test $ac_cv_header_time = yes; then
6212:
6213: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6214:
6215: fi
6216:
6217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6218: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6219: if ${ac_cv_header_sys_wait_h+:} false; then :
6220: $as_echo_n "(cached) " >&6
6221: else
6222: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223: /* end confdefs.h. */
6224: #include <sys/types.h>
6225: #include <sys/wait.h>
6226: #ifndef WEXITSTATUS
6227: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6228: #endif
6229: #ifndef WIFEXITED
6230: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6231: #endif
6232:
6233: int
6234: main ()
6235: {
6236: int s;
6237: wait (&s);
6238: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6239: ;
6240: return 0;
6241: }
6242: _ACEOF
6243: if ac_fn_c_try_compile "$LINENO"; then :
6244: ac_cv_header_sys_wait_h=yes
6245: else
6246: ac_cv_header_sys_wait_h=no
6247: fi
6248: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249: fi
6250: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6251: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6252: if test $ac_cv_header_sys_wait_h = yes; then
6253:
6254: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6255:
6256: fi
6257:
6258: for ac_header in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
6259: unistd.h utime.h grp.h compat.h sys/param.h ctype.h sys/wait.h \
6260: sys/ioctl.h sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h \
6261: sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \
1.1.1.4 ! misho 6262: mysql/mysql.h sqlite3.h \
1.1 misho 6263: netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
1.1.1.4 ! misho 6264: sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h dl.h \
1.1.1.2 misho 6265: popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
1.1.1.4 ! misho 6266: zlib.h xxhash.h openssl/md4.h openssl/md5.h zstd.h lz4.h sys/file.h
1.1 misho 6267: do :
6268: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6269: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6270: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6271: cat >>confdefs.h <<_ACEOF
6272: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6273: _ACEOF
6274:
6275: fi
6276:
6277: done
6278:
6279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
6280: $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6281: if ${ac_cv_header_sys_types_h_makedev+:} false; then :
6282: $as_echo_n "(cached) " >&6
6283: else
6284: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285: /* end confdefs.h. */
6286: #include <sys/types.h>
6287: int
6288: main ()
6289: {
1.1.1.4 ! misho 6290: return makedev(0, 0);
! 6291: ;
! 6292: return 0;
! 6293: }
! 6294: _ACEOF
! 6295: if ac_fn_c_try_link "$LINENO"; then :
! 6296: if grep sys/sysmacros.h conftest.err >/dev/null; then
! 6297: ac_cv_header_sys_types_h_makedev=no
! 6298: else
! 6299: ac_cv_header_sys_types_h_makedev=yes
! 6300: fi
! 6301: else
! 6302: ac_cv_header_sys_types_h_makedev=no
! 6303: fi
! 6304: rm -f core conftest.err conftest.$ac_objext \
! 6305: conftest$ac_exeext conftest.$ac_ext
! 6306:
! 6307: fi
! 6308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
! 6309: $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
! 6310:
! 6311: if test $ac_cv_header_sys_types_h_makedev = no; then
! 6312: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
! 6313: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
! 6314:
! 6315: $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
! 6316:
! 6317: fi
! 6318:
! 6319:
! 6320:
! 6321: if test $ac_cv_header_sys_mkdev_h = no; then
! 6322: ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
! 6323: if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
! 6324:
! 6325: $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
! 6326:
! 6327: fi
! 6328:
! 6329:
! 6330: fi
! 6331: fi
! 6332:
! 6333:
! 6334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable use of openssl crypto library" >&5
! 6335: $as_echo_n "checking whether to enable use of openssl crypto library... " >&6; }
! 6336: # Check whether --enable-openssl was given.
! 6337: if test "${enable_openssl+set}" = set; then :
! 6338: enableval=$enable_openssl;
! 6339: fi
! 6340:
! 6341:
! 6342: if test x"$enable_openssl" != x"no"; then
! 6343: if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
! 6344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6345: $as_echo "yes" >&6; }
! 6346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
! 6347: $as_echo_n "checking for library containing MD5_Init... " >&6; }
! 6348: if ${ac_cv_search_MD5_Init+:} false; then :
! 6349: $as_echo_n "(cached) " >&6
! 6350: else
! 6351: ac_func_search_save_LIBS=$LIBS
! 6352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 6353: /* end confdefs.h. */
! 6354:
! 6355: /* Override any GCC internal prototype to avoid an error.
! 6356: Use char because int might match the return type of a GCC
! 6357: builtin and then its argument prototype would still apply. */
! 6358: #ifdef __cplusplus
! 6359: extern "C"
! 6360: #endif
! 6361: char MD5_Init ();
! 6362: int
! 6363: main ()
! 6364: {
! 6365: return MD5_Init ();
! 6366: ;
! 6367: return 0;
! 6368: }
! 6369: _ACEOF
! 6370: for ac_lib in '' crypto; do
! 6371: if test -z "$ac_lib"; then
! 6372: ac_res="none required"
! 6373: else
! 6374: ac_res=-l$ac_lib
! 6375: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 6376: fi
! 6377: if ac_fn_c_try_link "$LINENO"; then :
! 6378: ac_cv_search_MD5_Init=$ac_res
! 6379: fi
! 6380: rm -f core conftest.err conftest.$ac_objext \
! 6381: conftest$ac_exeext
! 6382: if ${ac_cv_search_MD5_Init+:} false; then :
! 6383: break
! 6384: fi
! 6385: done
! 6386: if ${ac_cv_search_MD5_Init+:} false; then :
! 6387:
! 6388: else
! 6389: ac_cv_search_MD5_Init=no
! 6390: fi
! 6391: rm conftest.$ac_ext
! 6392: LIBS=$ac_func_search_save_LIBS
! 6393: fi
! 6394: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5_Init" >&5
! 6395: $as_echo "$ac_cv_search_MD5_Init" >&6; }
! 6396: ac_res=$ac_cv_search_MD5_Init
! 6397: if test "$ac_res" != no; then :
! 6398: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 6399: $as_echo "#define USE_OPENSSL 1" >>confdefs.h
! 6400:
! 6401: else
! 6402: err_msg="$err_msg$nl- Failed to find MD5_Init function in openssl crypto lib.";
! 6403: no_lib="$no_lib openssl"
! 6404: fi
! 6405:
! 6406: else
! 6407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6408: $as_echo "no" >&6; }
! 6409: err_msg="$err_msg$nl- Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support."
! 6410: no_lib="$no_lib openssl"
! 6411: fi
! 6412: else
! 6413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6414: $as_echo "no" >&6; }
! 6415: fi
! 6416:
! 6417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable xxhash checksum support" >&5
! 6418: $as_echo_n "checking whether to enable xxhash checksum support... " >&6; }
! 6419: # Check whether --enable-xxhash was given.
! 6420: if test "${enable_xxhash+set}" = set; then :
! 6421: enableval=$enable_xxhash;
! 6422: fi
! 6423:
! 6424:
! 6425: if test x"$enable_xxhash" != x"no"; then
! 6426: if test x"$ac_cv_header_xxhash_h" = x"yes"; then
! 6427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6428: $as_echo "yes" >&6; }
! 6429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XXH64_createState" >&5
! 6430: $as_echo_n "checking for library containing XXH64_createState... " >&6; }
! 6431: if ${ac_cv_search_XXH64_createState+:} false; then :
! 6432: $as_echo_n "(cached) " >&6
! 6433: else
! 6434: ac_func_search_save_LIBS=$LIBS
! 6435: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 6436: /* end confdefs.h. */
! 6437:
! 6438: /* Override any GCC internal prototype to avoid an error.
! 6439: Use char because int might match the return type of a GCC
! 6440: builtin and then its argument prototype would still apply. */
! 6441: #ifdef __cplusplus
! 6442: extern "C"
! 6443: #endif
! 6444: char XXH64_createState ();
! 6445: int
! 6446: main ()
! 6447: {
! 6448: return XXH64_createState ();
! 6449: ;
! 6450: return 0;
! 6451: }
! 6452: _ACEOF
! 6453: for ac_lib in '' xxhash; do
! 6454: if test -z "$ac_lib"; then
! 6455: ac_res="none required"
! 6456: else
! 6457: ac_res=-l$ac_lib
! 6458: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 6459: fi
! 6460: if ac_fn_c_try_link "$LINENO"; then :
! 6461: ac_cv_search_XXH64_createState=$ac_res
! 6462: fi
! 6463: rm -f core conftest.err conftest.$ac_objext \
! 6464: conftest$ac_exeext
! 6465: if ${ac_cv_search_XXH64_createState+:} false; then :
! 6466: break
! 6467: fi
! 6468: done
! 6469: if ${ac_cv_search_XXH64_createState+:} false; then :
! 6470:
! 6471: else
! 6472: ac_cv_search_XXH64_createState=no
! 6473: fi
! 6474: rm conftest.$ac_ext
! 6475: LIBS=$ac_func_search_save_LIBS
! 6476: fi
! 6477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XXH64_createState" >&5
! 6478: $as_echo "$ac_cv_search_XXH64_createState" >&6; }
! 6479: ac_res=$ac_cv_search_XXH64_createState
! 6480: if test "$ac_res" != no; then :
! 6481: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 6482: $as_echo "#define SUPPORT_XXHASH 1" >>confdefs.h
! 6483:
! 6484: else
! 6485: err_msg="$err_msg$nl- Failed to find XXH64_createState function in xxhash lib.";
! 6486: no_lib="$no_lib xxhash"
! 6487: fi
! 6488:
! 6489: else
! 6490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6491: $as_echo "no" >&6; }
! 6492: err_msg="$err_msg$nl- Failed to find xxhash.h for xxhash checksum support.";
! 6493: no_lib="$no_lib xxhash"
! 6494: fi
! 6495: else
! 6496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6497: $as_echo "no" >&6; }
! 6498: fi
! 6499:
! 6500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zstd compression" >&5
! 6501: $as_echo_n "checking whether to enable zstd compression... " >&6; }
! 6502: # Check whether --enable-zstd was given.
! 6503: if test "${enable_zstd+set}" = set; then :
! 6504: enableval=$enable_zstd;
! 6505: fi
! 6506:
! 6507:
! 6508: if test x"$enable_zstd" != x"no"; then
! 6509: if test x"$ac_cv_header_zstd_h" = x"yes"; then
! 6510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6511: $as_echo "yes" >&6; }
! 6512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_minCLevel" >&5
! 6513: $as_echo_n "checking for library containing ZSTD_minCLevel... " >&6; }
! 6514: if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
! 6515: $as_echo_n "(cached) " >&6
! 6516: else
! 6517: ac_func_search_save_LIBS=$LIBS
! 6518: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 6519: /* end confdefs.h. */
! 6520:
! 6521: /* Override any GCC internal prototype to avoid an error.
! 6522: Use char because int might match the return type of a GCC
! 6523: builtin and then its argument prototype would still apply. */
! 6524: #ifdef __cplusplus
! 6525: extern "C"
! 6526: #endif
! 6527: char ZSTD_minCLevel ();
! 6528: int
! 6529: main ()
! 6530: {
! 6531: return ZSTD_minCLevel ();
! 6532: ;
! 6533: return 0;
! 6534: }
! 6535: _ACEOF
! 6536: for ac_lib in '' zstd; do
! 6537: if test -z "$ac_lib"; then
! 6538: ac_res="none required"
! 6539: else
! 6540: ac_res=-l$ac_lib
! 6541: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 6542: fi
! 6543: if ac_fn_c_try_link "$LINENO"; then :
! 6544: ac_cv_search_ZSTD_minCLevel=$ac_res
! 6545: fi
! 6546: rm -f core conftest.err conftest.$ac_objext \
! 6547: conftest$ac_exeext
! 6548: if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
! 6549: break
! 6550: fi
! 6551: done
! 6552: if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
! 6553:
! 6554: else
! 6555: ac_cv_search_ZSTD_minCLevel=no
! 6556: fi
! 6557: rm conftest.$ac_ext
! 6558: LIBS=$ac_func_search_save_LIBS
! 6559: fi
! 6560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_minCLevel" >&5
! 6561: $as_echo "$ac_cv_search_ZSTD_minCLevel" >&6; }
! 6562: ac_res=$ac_cv_search_ZSTD_minCLevel
! 6563: if test "$ac_res" != no; then :
! 6564: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 6565: $as_echo "#define SUPPORT_ZSTD 1" >>confdefs.h
! 6566:
! 6567: else
! 6568: err_msg="$err_msg$nl- Failed to find ZSTD_minCLevel function in zstd lib.";
! 6569: no_lib="$no_lib zstd"
! 6570: fi
! 6571:
! 6572: else
! 6573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6574: $as_echo "no" >&6; }
! 6575: err_msg="$err_msg$nl- Failed to find zstd.h for zstd compression support.";
! 6576: no_lib="$no_lib zstd"
! 6577: fi
! 6578: else
! 6579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6580: $as_echo "no" >&6; }
! 6581: fi
! 6582:
! 6583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LZ4 compression" >&5
! 6584: $as_echo_n "checking whether to enable LZ4 compression... " >&6; }
! 6585: # Check whether --enable-lz4 was given.
! 6586: if test "${enable_lz4+set}" = set; then :
! 6587: enableval=$enable_lz4;
! 6588: fi
! 6589:
! 6590:
! 6591: if test x"$enable_lz4" != x"no"; then
! 6592: if test x"$ac_cv_header_lz4_h" = x"yes"; then
! 6593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6594: $as_echo "yes" >&6; }
! 6595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing LZ4_compress_default" >&5
! 6596: $as_echo_n "checking for library containing LZ4_compress_default... " >&6; }
! 6597: if ${ac_cv_search_LZ4_compress_default+:} false; then :
! 6598: $as_echo_n "(cached) " >&6
! 6599: else
! 6600: ac_func_search_save_LIBS=$LIBS
! 6601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 6602: /* end confdefs.h. */
! 6603:
! 6604: /* Override any GCC internal prototype to avoid an error.
! 6605: Use char because int might match the return type of a GCC
! 6606: builtin and then its argument prototype would still apply. */
! 6607: #ifdef __cplusplus
! 6608: extern "C"
! 6609: #endif
! 6610: char LZ4_compress_default ();
! 6611: int
! 6612: main ()
! 6613: {
! 6614: return LZ4_compress_default ();
1.1 misho 6615: ;
6616: return 0;
6617: }
6618: _ACEOF
1.1.1.4 ! misho 6619: for ac_lib in '' lz4; do
! 6620: if test -z "$ac_lib"; then
! 6621: ac_res="none required"
! 6622: else
! 6623: ac_res=-l$ac_lib
! 6624: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 6625: fi
! 6626: if ac_fn_c_try_link "$LINENO"; then :
! 6627: ac_cv_search_LZ4_compress_default=$ac_res
1.1 misho 6628: fi
6629: rm -f core conftest.err conftest.$ac_objext \
1.1.1.4 ! misho 6630: conftest$ac_exeext
! 6631: if ${ac_cv_search_LZ4_compress_default+:} false; then :
! 6632: break
1.1 misho 6633: fi
1.1.1.4 ! misho 6634: done
! 6635: if ${ac_cv_search_LZ4_compress_default+:} false; then :
1.1 misho 6636:
1.1.1.4 ! misho 6637: else
! 6638: ac_cv_search_LZ4_compress_default=no
1.1 misho 6639: fi
1.1.1.4 ! misho 6640: rm conftest.$ac_ext
! 6641: LIBS=$ac_func_search_save_LIBS
1.1 misho 6642: fi
1.1.1.4 ! misho 6643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_LZ4_compress_default" >&5
! 6644: $as_echo "$ac_cv_search_LZ4_compress_default" >&6; }
! 6645: ac_res=$ac_cv_search_LZ4_compress_default
! 6646: if test "$ac_res" != no; then :
! 6647: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 6648: $as_echo "#define SUPPORT_LZ4 1" >>confdefs.h
1.1 misho 6649:
1.1.1.4 ! misho 6650: else
! 6651: err_msg="$err_msg$nl- Failed to find LZ4_compress_default function in lz4 lib.";
! 6652: no_lib="$no_lib lz4"
! 6653: fi
1.1 misho 6654:
1.1.1.4 ! misho 6655: else
! 6656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6657: $as_echo "no" >&6; }
! 6658: err_msg="$err_msg$nl- Failed to find lz4.h for lz4 compression support."
! 6659: no_lib="$no_lib lz4"
! 6660: fi
! 6661: else
! 6662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6663: $as_echo "no" >&6; }
1.1 misho 6664: fi
6665:
1.1.1.4 ! misho 6666: if test x"$no_lib" != x; then
! 6667: echo ""
! 6668: echo "Configure found the following issues:"
! 6669: echo "$err_msg"
! 6670: echo ""
! 6671: echo "See the INSTALL file for hints on how to install the missing libraries and/or"
! 6672: echo "how to generate (or fetch) man pages:"
! 6673: echo " https://github.com/WayneD/rsync/blob/master/INSTALL.md"
! 6674: echo ""
! 6675: echo "To disable one or more features, the relevant configure options are:"
! 6676: for lib in $no_lib; do
! 6677: echo " --disable-$lib"
! 6678: done
! 6679: echo ""
! 6680: as_fn_error $? "Aborting configure run" "$LINENO" 5
! 6681: fi
1.1 misho 6682:
6683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if makedev takes 3 args" >&5
6684: $as_echo_n "checking if makedev takes 3 args... " >&6; }
6685: if ${rsync_cv_MAKEDEV_TAKES_3_ARGS+:} false; then :
6686: $as_echo_n "(cached) " >&6
6687: else
6688:
6689: if test "$cross_compiling" = yes; then :
6690: rsync_cv_MAKEDEV_TAKES_3_ARGS=no
6691: else
6692: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693: /* end confdefs.h. */
6694:
6695: #include <sys/types.h>
6696: #ifdef MAJOR_IN_MKDEV
6697: #include <sys/mkdev.h>
6698: # if !defined makedev && (defined mkdev || defined _WIN32 || defined __WIN32__)
6699: # define makedev mkdev
6700: # endif
6701: #elif defined MAJOR_IN_SYSMACROS
6702: #include <sys/sysmacros.h>
6703: #endif
6704:
6705: int main(void)
6706: {
6707: dev_t dev = makedev(0, 5, 7);
6708: if (major(dev) != 5 || minor(dev) != 7)
1.1.1.4 ! misho 6709: return 1;
1.1 misho 6710: return 0;
6711: }
6712:
6713: _ACEOF
6714: if ac_fn_c_try_run "$LINENO"; then :
6715: rsync_cv_MAKEDEV_TAKES_3_ARGS=yes
6716: else
6717: rsync_cv_MAKEDEV_TAKES_3_ARGS=no
6718: fi
6719: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6720: conftest.$ac_objext conftest.beam conftest.$ac_ext
6721: fi
6722:
6723: fi
6724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MAKEDEV_TAKES_3_ARGS" >&5
6725: $as_echo "$rsync_cv_MAKEDEV_TAKES_3_ARGS" >&6; }
6726: if test x"$rsync_cv_MAKEDEV_TAKES_3_ARGS" = x"yes"; then
6727:
6728: $as_echo "#define MAKEDEV_TAKES_3_ARGS 1" >>confdefs.h
6729:
6730: fi
6731:
6732: # The cast to long int works around a bug in the HP C Compiler
6733: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6734: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6735: # This bug is HP SR number 8606223364.
6736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6737: $as_echo_n "checking size of int... " >&6; }
6738: if ${ac_cv_sizeof_int+:} false; then :
6739: $as_echo_n "(cached) " >&6
6740: else
6741: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6742:
6743: else
6744: if test "$ac_cv_type_int" = yes; then
6745: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6746: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6747: as_fn_error 77 "cannot compute sizeof (int)
6748: See \`config.log' for more details" "$LINENO" 5; }
6749: else
6750: ac_cv_sizeof_int=0
6751: fi
6752: fi
6753:
6754: fi
6755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6756: $as_echo "$ac_cv_sizeof_int" >&6; }
6757:
6758:
6759:
6760: cat >>confdefs.h <<_ACEOF
6761: #define SIZEOF_INT $ac_cv_sizeof_int
6762: _ACEOF
6763:
6764:
6765: # The cast to long int works around a bug in the HP C Compiler
6766: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6767: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6768: # This bug is HP SR number 8606223364.
6769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6770: $as_echo_n "checking size of long... " >&6; }
6771: if ${ac_cv_sizeof_long+:} false; then :
6772: $as_echo_n "(cached) " >&6
6773: else
6774: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6775:
6776: else
6777: if test "$ac_cv_type_long" = yes; then
6778: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6779: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6780: as_fn_error 77 "cannot compute sizeof (long)
6781: See \`config.log' for more details" "$LINENO" 5; }
6782: else
6783: ac_cv_sizeof_long=0
6784: fi
6785: fi
6786:
6787: fi
6788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6789: $as_echo "$ac_cv_sizeof_long" >&6; }
6790:
6791:
6792:
6793: cat >>confdefs.h <<_ACEOF
6794: #define SIZEOF_LONG $ac_cv_sizeof_long
6795: _ACEOF
6796:
6797:
6798: # The cast to long int works around a bug in the HP C Compiler
6799: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6800: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6801: # This bug is HP SR number 8606223364.
6802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6803: $as_echo_n "checking size of long long... " >&6; }
6804: if ${ac_cv_sizeof_long_long+:} false; then :
6805: $as_echo_n "(cached) " >&6
6806: else
6807: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6808:
6809: else
6810: if test "$ac_cv_type_long_long" = yes; then
6811: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6812: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6813: as_fn_error 77 "cannot compute sizeof (long long)
6814: See \`config.log' for more details" "$LINENO" 5; }
6815: else
6816: ac_cv_sizeof_long_long=0
6817: fi
6818: fi
6819:
6820: fi
6821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6822: $as_echo "$ac_cv_sizeof_long_long" >&6; }
6823:
6824:
6825:
6826: cat >>confdefs.h <<_ACEOF
6827: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6828: _ACEOF
6829:
6830:
6831: # The cast to long int works around a bug in the HP C Compiler
6832: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6833: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6834: # This bug is HP SR number 8606223364.
6835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6836: $as_echo_n "checking size of short... " >&6; }
6837: if ${ac_cv_sizeof_short+:} false; then :
6838: $as_echo_n "(cached) " >&6
6839: else
6840: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6841:
6842: else
6843: if test "$ac_cv_type_short" = yes; then
6844: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6845: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6846: as_fn_error 77 "cannot compute sizeof (short)
6847: See \`config.log' for more details" "$LINENO" 5; }
6848: else
6849: ac_cv_sizeof_short=0
6850: fi
6851: fi
6852:
6853: fi
6854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6855: $as_echo "$ac_cv_sizeof_short" >&6; }
6856:
6857:
6858:
6859: cat >>confdefs.h <<_ACEOF
6860: #define SIZEOF_SHORT $ac_cv_sizeof_short
6861: _ACEOF
6862:
6863:
6864: # The cast to long int works around a bug in the HP C Compiler
6865: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6866: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6867: # This bug is HP SR number 8606223364.
6868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
6869: $as_echo_n "checking size of int16_t... " >&6; }
6870: if ${ac_cv_sizeof_int16_t+:} false; then :
6871: $as_echo_n "(cached) " >&6
6872: else
6873: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
6874:
6875: else
6876: if test "$ac_cv_type_int16_t" = yes; then
6877: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6878: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6879: as_fn_error 77 "cannot compute sizeof (int16_t)
6880: See \`config.log' for more details" "$LINENO" 5; }
6881: else
6882: ac_cv_sizeof_int16_t=0
6883: fi
6884: fi
6885:
6886: fi
6887: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
6888: $as_echo "$ac_cv_sizeof_int16_t" >&6; }
6889:
6890:
6891:
6892: cat >>confdefs.h <<_ACEOF
6893: #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
6894: _ACEOF
6895:
6896:
6897: # The cast to long int works around a bug in the HP C Compiler
6898: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6899: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6900: # This bug is HP SR number 8606223364.
6901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
6902: $as_echo_n "checking size of uint16_t... " >&6; }
6903: if ${ac_cv_sizeof_uint16_t+:} false; then :
6904: $as_echo_n "(cached) " >&6
6905: else
6906: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
6907:
6908: else
6909: if test "$ac_cv_type_uint16_t" = yes; then
6910: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6911: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6912: as_fn_error 77 "cannot compute sizeof (uint16_t)
6913: See \`config.log' for more details" "$LINENO" 5; }
6914: else
6915: ac_cv_sizeof_uint16_t=0
6916: fi
6917: fi
6918:
6919: fi
6920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
6921: $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
6922:
6923:
6924:
6925: cat >>confdefs.h <<_ACEOF
6926: #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
6927: _ACEOF
6928:
6929:
6930: # The cast to long int works around a bug in the HP C Compiler
6931: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6932: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6933: # This bug is HP SR number 8606223364.
6934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
6935: $as_echo_n "checking size of int32_t... " >&6; }
6936: if ${ac_cv_sizeof_int32_t+:} false; then :
6937: $as_echo_n "(cached) " >&6
6938: else
6939: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
6940:
6941: else
6942: if test "$ac_cv_type_int32_t" = yes; then
6943: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6944: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6945: as_fn_error 77 "cannot compute sizeof (int32_t)
6946: See \`config.log' for more details" "$LINENO" 5; }
6947: else
6948: ac_cv_sizeof_int32_t=0
6949: fi
6950: fi
6951:
6952: fi
6953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
6954: $as_echo "$ac_cv_sizeof_int32_t" >&6; }
6955:
6956:
6957:
6958: cat >>confdefs.h <<_ACEOF
6959: #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
6960: _ACEOF
6961:
6962:
6963: # The cast to long int works around a bug in the HP C Compiler
6964: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6965: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6966: # This bug is HP SR number 8606223364.
6967: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
6968: $as_echo_n "checking size of uint32_t... " >&6; }
6969: if ${ac_cv_sizeof_uint32_t+:} false; then :
6970: $as_echo_n "(cached) " >&6
6971: else
6972: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
6973:
6974: else
6975: if test "$ac_cv_type_uint32_t" = yes; then
6976: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6977: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6978: as_fn_error 77 "cannot compute sizeof (uint32_t)
6979: See \`config.log' for more details" "$LINENO" 5; }
6980: else
6981: ac_cv_sizeof_uint32_t=0
6982: fi
6983: fi
6984:
6985: fi
6986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
6987: $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
6988:
6989:
6990:
6991: cat >>confdefs.h <<_ACEOF
6992: #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
6993: _ACEOF
6994:
6995:
6996: # The cast to long int works around a bug in the HP C Compiler
6997: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6998: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6999: # This bug is HP SR number 8606223364.
7000: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
7001: $as_echo_n "checking size of int64_t... " >&6; }
7002: if ${ac_cv_sizeof_int64_t+:} false; then :
7003: $as_echo_n "(cached) " >&6
7004: else
7005: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
7006:
7007: else
7008: if test "$ac_cv_type_int64_t" = yes; then
7009: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7010: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7011: as_fn_error 77 "cannot compute sizeof (int64_t)
7012: See \`config.log' for more details" "$LINENO" 5; }
7013: else
7014: ac_cv_sizeof_int64_t=0
7015: fi
7016: fi
7017:
7018: fi
7019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
7020: $as_echo "$ac_cv_sizeof_int64_t" >&6; }
7021:
7022:
7023:
7024: cat >>confdefs.h <<_ACEOF
7025: #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7026: _ACEOF
7027:
7028:
7029: # The cast to long int works around a bug in the HP C Compiler
7030: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7031: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7032: # This bug is HP SR number 8606223364.
7033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7034: $as_echo_n "checking size of off_t... " >&6; }
7035: if ${ac_cv_sizeof_off_t+:} false; then :
7036: $as_echo_n "(cached) " >&6
7037: else
7038: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
7039:
7040: else
7041: if test "$ac_cv_type_off_t" = yes; then
7042: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7043: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7044: as_fn_error 77 "cannot compute sizeof (off_t)
7045: See \`config.log' for more details" "$LINENO" 5; }
7046: else
7047: ac_cv_sizeof_off_t=0
7048: fi
7049: fi
7050:
7051: fi
7052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7053: $as_echo "$ac_cv_sizeof_off_t" >&6; }
7054:
7055:
7056:
7057: cat >>confdefs.h <<_ACEOF
7058: #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
7059: _ACEOF
7060:
7061:
7062: # The cast to long int works around a bug in the HP C Compiler
7063: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7064: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7065: # This bug is HP SR number 8606223364.
7066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
7067: $as_echo_n "checking size of off64_t... " >&6; }
7068: if ${ac_cv_sizeof_off64_t+:} false; then :
7069: $as_echo_n "(cached) " >&6
7070: else
7071: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"; then :
7072:
7073: else
7074: if test "$ac_cv_type_off64_t" = yes; then
7075: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7076: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7077: as_fn_error 77 "cannot compute sizeof (off64_t)
7078: See \`config.log' for more details" "$LINENO" 5; }
7079: else
7080: ac_cv_sizeof_off64_t=0
7081: fi
7082: fi
7083:
7084: fi
7085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
7086: $as_echo "$ac_cv_sizeof_off64_t" >&6; }
7087:
7088:
7089:
7090: cat >>confdefs.h <<_ACEOF
7091: #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
7092: _ACEOF
7093:
7094:
7095: # The cast to long int works around a bug in the HP C Compiler
7096: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7097: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7098: # This bug is HP SR number 8606223364.
7099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
7100: $as_echo_n "checking size of time_t... " >&6; }
7101: if ${ac_cv_sizeof_time_t+:} false; then :
7102: $as_echo_n "(cached) " >&6
7103: else
7104: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
7105:
7106: else
7107: if test "$ac_cv_type_time_t" = yes; then
7108: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7109: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7110: as_fn_error 77 "cannot compute sizeof (time_t)
7111: See \`config.log' for more details" "$LINENO" 5; }
7112: else
7113: ac_cv_sizeof_time_t=0
7114: fi
7115: fi
7116:
7117: fi
7118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
7119: $as_echo "$ac_cv_sizeof_time_t" >&6; }
7120:
7121:
7122:
7123: cat >>confdefs.h <<_ACEOF
7124: #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
7125: _ACEOF
7126:
7127:
1.1.1.4 ! misho 7128: # The cast to long int works around a bug in the HP C Compiler
! 7129: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 7130: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 7131: # This bug is HP SR number 8606223364.
! 7132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
! 7133: $as_echo_n "checking size of char*... " >&6; }
! 7134: if ${ac_cv_sizeof_charp+:} false; then :
! 7135: $as_echo_n "(cached) " >&6
! 7136: else
! 7137: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
! 7138:
! 7139: else
! 7140: if test "$ac_cv_type_charp" = yes; then
! 7141: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 7142: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 7143: as_fn_error 77 "cannot compute sizeof (char*)
! 7144: See \`config.log' for more details" "$LINENO" 5; }
! 7145: else
! 7146: ac_cv_sizeof_charp=0
! 7147: fi
! 7148: fi
! 7149:
! 7150: fi
! 7151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
! 7152: $as_echo "$ac_cv_sizeof_charp" >&6; }
! 7153:
! 7154:
! 7155:
! 7156: cat >>confdefs.h <<_ACEOF
! 7157: #define SIZEOF_CHARP $ac_cv_sizeof_charp
! 7158: _ACEOF
! 7159:
! 7160:
1.1 misho 7161:
7162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7163: $as_echo_n "checking for inline... " >&6; }
7164: if ${ac_cv_c_inline+:} false; then :
7165: $as_echo_n "(cached) " >&6
7166: else
7167: ac_cv_c_inline=no
7168: for ac_kw in inline __inline__ __inline; do
7169: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170: /* end confdefs.h. */
7171: #ifndef __cplusplus
7172: typedef int foo_t;
7173: static $ac_kw foo_t static_foo () {return 0; }
7174: $ac_kw foo_t foo () {return 0; }
7175: #endif
7176:
7177: _ACEOF
7178: if ac_fn_c_try_compile "$LINENO"; then :
7179: ac_cv_c_inline=$ac_kw
7180: fi
7181: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182: test "$ac_cv_c_inline" != no && break
7183: done
7184:
7185: fi
7186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7187: $as_echo "$ac_cv_c_inline" >&6; }
7188:
7189: case $ac_cv_c_inline in
7190: inline | yes) ;;
7191: *)
7192: case $ac_cv_c_inline in
7193: no) ac_val=;;
7194: *) ac_val=$ac_cv_c_inline;;
7195: esac
7196: cat >>confdefs.h <<_ACEOF
7197: #ifndef __cplusplus
7198: #define inline $ac_val
7199: #endif
7200: _ACEOF
7201: ;;
7202: esac
7203:
7204:
7205:
7206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
7207: $as_echo_n "checking for long double with more range or precision than double... " >&6; }
7208: if ${ac_cv_type_long_double_wider+:} false; then :
7209: $as_echo_n "(cached) " >&6
7210: else
7211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212: /* end confdefs.h. */
7213: #include <float.h>
7214: long double const a[] =
7215: {
7216: 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
7217: LDBL_MIN, LDBL_MAX, LDBL_EPSILON
7218: };
7219: long double
7220: f (long double x)
7221: {
7222: return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
7223: + (x ? f (x) : 'c'));
7224: }
7225:
7226: int
7227: main ()
7228: {
7229: static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
7230: + (DBL_MANT_DIG < LDBL_MANT_DIG)
7231: - (LDBL_MAX_EXP < DBL_MAX_EXP)
7232: - (LDBL_MANT_DIG < DBL_MANT_DIG)))
7233: && (int) LDBL_EPSILON == 0
7234: )];
1.1.1.3 misho 7235: test_array [0] = 0;
7236: return test_array [0];
1.1 misho 7237:
7238: ;
7239: return 0;
7240: }
7241: _ACEOF
7242: if ac_fn_c_try_compile "$LINENO"; then :
7243: ac_cv_type_long_double_wider=yes
7244: else
7245: ac_cv_type_long_double_wider=no
7246: fi
7247: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248: fi
7249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
7250: $as_echo "$ac_cv_type_long_double_wider" >&6; }
7251: if test $ac_cv_type_long_double_wider = yes; then
7252:
7253: $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
7254:
7255: fi
7256:
1.1.1.3 misho 7257: ac_cv_c_long_double=$ac_cv_type_long_double_wider
7258: if test $ac_cv_c_long_double = yes; then
1.1 misho 7259:
7260: $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7261:
7262: fi
7263:
7264: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7265: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7266: if ${ac_cv_type_uid_t+:} false; then :
7267: $as_echo_n "(cached) " >&6
7268: else
7269: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270: /* end confdefs.h. */
7271: #include <sys/types.h>
7272:
7273: _ACEOF
7274: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7275: $EGREP "uid_t" >/dev/null 2>&1; then :
7276: ac_cv_type_uid_t=yes
7277: else
7278: ac_cv_type_uid_t=no
7279: fi
7280: rm -f conftest*
7281:
7282: fi
7283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7284: $as_echo "$ac_cv_type_uid_t" >&6; }
7285: if test $ac_cv_type_uid_t = no; then
7286:
7287: $as_echo "#define uid_t int" >>confdefs.h
7288:
7289:
7290: $as_echo "#define gid_t int" >>confdefs.h
7291:
7292: fi
7293:
7294: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7295: if test "x$ac_cv_type_mode_t" = xyes; then :
7296:
7297: cat >>confdefs.h <<_ACEOF
7298: #define HAVE_MODE_T 1
7299: _ACEOF
7300:
7301:
7302: fi
7303: ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7304: if test "x$ac_cv_type_off_t" = xyes; then :
7305:
7306: cat >>confdefs.h <<_ACEOF
7307: #define HAVE_OFF_T 1
7308: _ACEOF
7309:
7310:
7311: fi
7312: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7313: if test "x$ac_cv_type_size_t" = xyes; then :
7314:
7315: cat >>confdefs.h <<_ACEOF
7316: #define HAVE_SIZE_T 1
7317: _ACEOF
7318:
7319:
7320: fi
7321: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7322: if test "x$ac_cv_type_pid_t" = xyes; then :
7323:
7324: cat >>confdefs.h <<_ACEOF
7325: #define HAVE_PID_T 1
7326: _ACEOF
7327:
7328:
7329: fi
7330: ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
7331: if test "x$ac_cv_type_id_t" = xyes; then :
7332:
7333: cat >>confdefs.h <<_ACEOF
7334: #define HAVE_ID_T 1
7335: _ACEOF
7336:
7337:
7338: fi
7339:
7340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7341: $as_echo_n "checking type of array argument to getgroups... " >&6; }
7342: if ${ac_cv_type_getgroups+:} false; then :
7343: $as_echo_n "(cached) " >&6
7344: else
7345: if test "$cross_compiling" = yes; then :
7346: ac_cv_type_getgroups=cross
7347: else
7348: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349: /* end confdefs.h. */
7350: /* Thanks to Mike Rendell for this test. */
7351: $ac_includes_default
7352: #define NGID 256
7353: #undef MAX
7354: #define MAX(x, y) ((x) > (y) ? (x) : (y))
7355:
7356: int
7357: main ()
7358: {
7359: gid_t gidset[NGID];
7360: int i, n;
7361: union { gid_t gval; long int lval; } val;
7362:
7363: val.lval = -1;
7364: for (i = 0; i < NGID; i++)
7365: gidset[i] = val.gval;
7366: n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7367: gidset);
7368: /* Exit non-zero if getgroups seems to require an array of ints. This
7369: happens when gid_t is short int but getgroups modifies an array
7370: of ints. */
7371: return n > 0 && gidset[n] != val.gval;
7372: }
7373: _ACEOF
7374: if ac_fn_c_try_run "$LINENO"; then :
7375: ac_cv_type_getgroups=gid_t
7376: else
7377: ac_cv_type_getgroups=int
7378: fi
7379: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7380: conftest.$ac_objext conftest.beam conftest.$ac_ext
7381: fi
7382:
7383: if test $ac_cv_type_getgroups = cross; then
7384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385: /* end confdefs.h. */
7386: #include <unistd.h>
7387:
7388: _ACEOF
7389: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7390: $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
7391: ac_cv_type_getgroups=gid_t
7392: else
7393: ac_cv_type_getgroups=int
7394: fi
7395: rm -f conftest*
7396:
7397: fi
7398: fi
7399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7400: $as_echo "$ac_cv_type_getgroups" >&6; }
7401:
7402: cat >>confdefs.h <<_ACEOF
7403: #define GETGROUPS_T $ac_cv_type_getgroups
7404: _ACEOF
7405:
7406:
1.1.1.2 misho 7407: ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "
7408: #ifdef HAVE_SYS_TYPES_H
7409: #include <sys/types.h>
7410: #endif
7411: #ifdef HAVE_SYS_STAT_H
7412: #include <sys/stat.h>
7413: #endif
7414: #ifdef HAVE_UNISTD_H
7415: #include <unistd.h>
7416: #endif
7417: "
1.1 misho 7418: if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7419:
7420: cat >>confdefs.h <<_ACEOF
7421: #define HAVE_STRUCT_STAT_ST_RDEV 1
7422: _ACEOF
7423:
7424:
7425: fi
1.1.1.2 misho 7426: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
7427: #ifdef HAVE_SYS_TYPES_H
7428: #include <sys/types.h>
7429: #endif
7430: #ifdef HAVE_SYS_STAT_H
7431: #include <sys/stat.h>
7432: #endif
7433: #ifdef HAVE_UNISTD_H
7434: #include <unistd.h>
7435: #endif
7436: "
7437: if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
7438:
7439: cat >>confdefs.h <<_ACEOF
7440: #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7441: _ACEOF
7442:
7443:
7444: fi
1.1.1.4 ! misho 7445: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "
! 7446: #ifdef HAVE_SYS_TYPES_H
! 7447: #include <sys/types.h>
! 7448: #endif
! 7449: #ifdef HAVE_SYS_STAT_H
! 7450: #include <sys/stat.h>
! 7451: #endif
! 7452: #ifdef HAVE_UNISTD_H
! 7453: #include <unistd.h>
! 7454: #endif
! 7455: "
! 7456: if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
! 7457:
! 7458: cat >>confdefs.h <<_ACEOF
! 7459: #define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
! 7460: _ACEOF
! 7461:
! 7462:
! 7463: fi
1.1.1.2 misho 7464: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
7465: #ifdef HAVE_SYS_TYPES_H
7466: #include <sys/types.h>
7467: #endif
7468: #ifdef HAVE_SYS_STAT_H
7469: #include <sys/stat.h>
7470: #endif
7471: #ifdef HAVE_UNISTD_H
7472: #include <unistd.h>
7473: #endif
7474: "
7475: if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
7476:
7477: cat >>confdefs.h <<_ACEOF
7478: #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
7479: _ACEOF
7480:
7481:
7482: fi
1.1 misho 7483:
7484:
7485:
7486: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7487: #include <sys/socket.h>
7488: "
7489: if test "x$ac_cv_type_socklen_t" = xyes; then :
7490:
7491: else
7492:
7493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
7494: $as_echo_n "checking for socklen_t equivalent... " >&6; }
7495: if ${rsync_cv_socklen_t_equiv+:} false; then :
7496: $as_echo_n "(cached) " >&6
7497: else
7498:
7499: # Systems have either "struct sockaddr *" or
7500: # "void *" as the second argument to getpeername
7501: rsync_cv_socklen_t_equiv=
7502: for arg2 in "struct sockaddr" void; do
7503: for t in int size_t unsigned long "unsigned long"; do
7504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505: /* end confdefs.h. */
7506:
7507: #include <sys/types.h>
7508: #include <sys/socket.h>
7509:
7510: int getpeername (int, $arg2 *, $t *);
7511:
7512: int
7513: main ()
7514: {
7515:
7516: $t len;
7517: getpeername(0,0,&len);
7518:
7519: ;
7520: return 0;
7521: }
7522: _ACEOF
7523: if ac_fn_c_try_compile "$LINENO"; then :
7524:
7525: rsync_cv_socklen_t_equiv="$t"
7526: break
7527:
7528: fi
7529: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530: done
7531: done
7532:
7533: if test "x$rsync_cv_socklen_t_equiv" = x; then
7534: as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
7535: fi
7536:
7537: fi
7538:
7539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
7540: $as_echo "$rsync_cv_socklen_t_equiv" >&6; }
7541:
7542: cat >>confdefs.h <<_ACEOF
7543: #define socklen_t $rsync_cv_socklen_t_equiv
7544: _ACEOF
7545:
7546: fi
7547:
7548:
7549:
7550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno in errno.h" >&5
7551: $as_echo_n "checking for errno in errno.h... " >&6; }
7552: if ${rsync_cv_errno+:} false; then :
7553: $as_echo_n "(cached) " >&6
7554: else
7555:
7556: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557: /* end confdefs.h. */
7558: #include <errno.h>
7559: int
7560: main ()
7561: {
7562: int i = errno
7563: ;
7564: return 0;
7565: }
7566: _ACEOF
7567: if ac_fn_c_try_compile "$LINENO"; then :
7568: rsync_cv_errno=yes
7569: else
7570: rsync_cv_have_errno_decl=no
7571: fi
7572: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573: fi
7574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_errno" >&5
7575: $as_echo "$rsync_cv_errno" >&6; }
7576: if test x"$rsync_cv_errno" = x"yes"; then
7577:
7578: $as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h
7579:
7580: fi
7581:
7582: # The following test taken from the cvs sources
7583: # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
7584: # These need checks to be before checks for any other functions that
7585: # might be in the same libraries.
7586: # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
7587: # libsocket.so which has a bad implementation of gethostbyname (it
7588: # only looks in /etc/hosts), so we only look for -lsocket if we need
7589: # it.
7590: for ac_func in connect
7591: do :
7592: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7593: if test "x$ac_cv_func_connect" = xyes; then :
7594: cat >>confdefs.h <<_ACEOF
7595: #define HAVE_CONNECT 1
7596: _ACEOF
7597:
7598: fi
7599: done
7600:
7601: if test x"$ac_cv_func_connect" = x"no"; then
7602: case "$LIBS" in
7603: *-lnsl*) ;;
7604: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl_s" >&5
7605: $as_echo_n "checking for printf in -lnsl_s... " >&6; }
7606: if ${ac_cv_lib_nsl_s_printf+:} false; then :
7607: $as_echo_n "(cached) " >&6
7608: else
7609: ac_check_lib_save_LIBS=$LIBS
7610: LIBS="-lnsl_s $LIBS"
7611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612: /* end confdefs.h. */
7613:
7614: /* Override any GCC internal prototype to avoid an error.
7615: Use char because int might match the return type of a GCC
7616: builtin and then its argument prototype would still apply. */
7617: #ifdef __cplusplus
7618: extern "C"
7619: #endif
7620: char printf ();
7621: int
7622: main ()
7623: {
7624: return printf ();
7625: ;
7626: return 0;
7627: }
7628: _ACEOF
7629: if ac_fn_c_try_link "$LINENO"; then :
7630: ac_cv_lib_nsl_s_printf=yes
7631: else
7632: ac_cv_lib_nsl_s_printf=no
7633: fi
7634: rm -f core conftest.err conftest.$ac_objext \
7635: conftest$ac_exeext conftest.$ac_ext
7636: LIBS=$ac_check_lib_save_LIBS
7637: fi
7638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_printf" >&5
7639: $as_echo "$ac_cv_lib_nsl_s_printf" >&6; }
7640: if test "x$ac_cv_lib_nsl_s_printf" = xyes; then :
7641: cat >>confdefs.h <<_ACEOF
7642: #define HAVE_LIBNSL_S 1
7643: _ACEOF
7644:
7645: LIBS="-lnsl_s $LIBS"
7646:
7647: fi
7648: ;;
7649: esac
7650: case "$LIBS" in
7651: *-lnsl*) ;;
7652: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl" >&5
7653: $as_echo_n "checking for printf in -lnsl... " >&6; }
7654: if ${ac_cv_lib_nsl_printf+:} false; then :
7655: $as_echo_n "(cached) " >&6
7656: else
7657: ac_check_lib_save_LIBS=$LIBS
7658: LIBS="-lnsl $LIBS"
7659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660: /* end confdefs.h. */
7661:
7662: /* Override any GCC internal prototype to avoid an error.
7663: Use char because int might match the return type of a GCC
7664: builtin and then its argument prototype would still apply. */
7665: #ifdef __cplusplus
7666: extern "C"
7667: #endif
7668: char printf ();
7669: int
7670: main ()
7671: {
7672: return printf ();
7673: ;
7674: return 0;
7675: }
7676: _ACEOF
7677: if ac_fn_c_try_link "$LINENO"; then :
7678: ac_cv_lib_nsl_printf=yes
7679: else
7680: ac_cv_lib_nsl_printf=no
7681: fi
7682: rm -f core conftest.err conftest.$ac_objext \
7683: conftest$ac_exeext conftest.$ac_ext
7684: LIBS=$ac_check_lib_save_LIBS
7685: fi
7686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_printf" >&5
7687: $as_echo "$ac_cv_lib_nsl_printf" >&6; }
7688: if test "x$ac_cv_lib_nsl_printf" = xyes; then :
7689: cat >>confdefs.h <<_ACEOF
7690: #define HAVE_LIBNSL 1
7691: _ACEOF
7692:
7693: LIBS="-lnsl $LIBS"
7694:
7695: fi
7696: ;;
7697: esac
7698: case "$LIBS" in
7699: *-lsocket*) ;;
7700: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7701: $as_echo_n "checking for connect in -lsocket... " >&6; }
7702: if ${ac_cv_lib_socket_connect+:} false; then :
7703: $as_echo_n "(cached) " >&6
7704: else
7705: ac_check_lib_save_LIBS=$LIBS
7706: LIBS="-lsocket $LIBS"
7707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708: /* end confdefs.h. */
7709:
7710: /* Override any GCC internal prototype to avoid an error.
7711: Use char because int might match the return type of a GCC
7712: builtin and then its argument prototype would still apply. */
7713: #ifdef __cplusplus
7714: extern "C"
7715: #endif
7716: char connect ();
7717: int
7718: main ()
7719: {
7720: return connect ();
7721: ;
7722: return 0;
7723: }
7724: _ACEOF
7725: if ac_fn_c_try_link "$LINENO"; then :
7726: ac_cv_lib_socket_connect=yes
7727: else
7728: ac_cv_lib_socket_connect=no
7729: fi
7730: rm -f core conftest.err conftest.$ac_objext \
7731: conftest$ac_exeext conftest.$ac_ext
7732: LIBS=$ac_check_lib_save_LIBS
7733: fi
7734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7735: $as_echo "$ac_cv_lib_socket_connect" >&6; }
7736: if test "x$ac_cv_lib_socket_connect" = xyes; then :
7737: cat >>confdefs.h <<_ACEOF
7738: #define HAVE_LIBSOCKET 1
7739: _ACEOF
7740:
7741: LIBS="-lsocket $LIBS"
7742:
7743: fi
7744: ;;
7745: esac
7746: case "$LIBS" in
7747: *-linet*) ;;
7748: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -linet" >&5
7749: $as_echo_n "checking for connect in -linet... " >&6; }
7750: if ${ac_cv_lib_inet_connect+:} false; then :
7751: $as_echo_n "(cached) " >&6
7752: else
7753: ac_check_lib_save_LIBS=$LIBS
7754: LIBS="-linet $LIBS"
7755: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756: /* end confdefs.h. */
7757:
7758: /* Override any GCC internal prototype to avoid an error.
7759: Use char because int might match the return type of a GCC
7760: builtin and then its argument prototype would still apply. */
7761: #ifdef __cplusplus
7762: extern "C"
7763: #endif
7764: char connect ();
7765: int
7766: main ()
7767: {
7768: return connect ();
7769: ;
7770: return 0;
7771: }
7772: _ACEOF
7773: if ac_fn_c_try_link "$LINENO"; then :
7774: ac_cv_lib_inet_connect=yes
7775: else
7776: ac_cv_lib_inet_connect=no
7777: fi
7778: rm -f core conftest.err conftest.$ac_objext \
7779: conftest$ac_exeext conftest.$ac_ext
7780: LIBS=$ac_check_lib_save_LIBS
7781: fi
7782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_connect" >&5
7783: $as_echo "$ac_cv_lib_inet_connect" >&6; }
7784: if test "x$ac_cv_lib_inet_connect" = xyes; then :
7785: cat >>confdefs.h <<_ACEOF
7786: #define HAVE_LIBINET 1
7787: _ACEOF
7788:
7789: LIBS="-linet $LIBS"
7790:
7791: fi
7792: ;;
7793: esac
7794: if test x"$ac_cv_lib_socket_connect" = x"yes" ||
7795: test x"$ac_cv_lib_inet_connect" = x"yes"; then
7796: # ac_cv_func_connect=yes
7797: # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
7798:
7799: $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
7800:
7801: fi
7802: fi
7803:
7804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
7805: $as_echo_n "checking for library containing inet_ntop... " >&6; }
7806: if ${ac_cv_search_inet_ntop+:} false; then :
7807: $as_echo_n "(cached) " >&6
7808: else
7809: ac_func_search_save_LIBS=$LIBS
7810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811: /* end confdefs.h. */
7812:
7813: /* Override any GCC internal prototype to avoid an error.
7814: Use char because int might match the return type of a GCC
7815: builtin and then its argument prototype would still apply. */
7816: #ifdef __cplusplus
7817: extern "C"
7818: #endif
7819: char inet_ntop ();
7820: int
7821: main ()
7822: {
7823: return inet_ntop ();
7824: ;
7825: return 0;
7826: }
7827: _ACEOF
7828: for ac_lib in '' resolv; do
7829: if test -z "$ac_lib"; then
7830: ac_res="none required"
7831: else
7832: ac_res=-l$ac_lib
7833: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7834: fi
7835: if ac_fn_c_try_link "$LINENO"; then :
7836: ac_cv_search_inet_ntop=$ac_res
7837: fi
7838: rm -f core conftest.err conftest.$ac_objext \
7839: conftest$ac_exeext
7840: if ${ac_cv_search_inet_ntop+:} false; then :
7841: break
7842: fi
7843: done
7844: if ${ac_cv_search_inet_ntop+:} false; then :
7845:
7846: else
7847: ac_cv_search_inet_ntop=no
7848: fi
7849: rm conftest.$ac_ext
7850: LIBS=$ac_func_search_save_LIBS
7851: fi
7852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
7853: $as_echo "$ac_cv_search_inet_ntop" >&6; }
7854: ac_res=$ac_cv_search_inet_ntop
7855: if test "$ac_res" != no; then :
7856: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7857:
7858: fi
7859:
7860:
7861: # For OS X, Solaris, HP-UX, etc.: figure out if -liconv is needed. We'll
7862: # accept either iconv_open or libiconv_open, since some include files map
7863: # the former to the latter.
7864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
7865: $as_echo_n "checking for library containing iconv_open... " >&6; }
7866: if ${ac_cv_search_iconv_open+:} false; then :
7867: $as_echo_n "(cached) " >&6
7868: else
7869: ac_func_search_save_LIBS=$LIBS
7870: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871: /* end confdefs.h. */
7872:
7873: /* Override any GCC internal prototype to avoid an error.
7874: Use char because int might match the return type of a GCC
7875: builtin and then its argument prototype would still apply. */
7876: #ifdef __cplusplus
7877: extern "C"
7878: #endif
7879: char iconv_open ();
7880: int
7881: main ()
7882: {
7883: return iconv_open ();
7884: ;
7885: return 0;
7886: }
7887: _ACEOF
7888: for ac_lib in '' iconv; do
7889: if test -z "$ac_lib"; then
7890: ac_res="none required"
7891: else
7892: ac_res=-l$ac_lib
7893: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7894: fi
7895: if ac_fn_c_try_link "$LINENO"; then :
7896: ac_cv_search_iconv_open=$ac_res
7897: fi
7898: rm -f core conftest.err conftest.$ac_objext \
7899: conftest$ac_exeext
7900: if ${ac_cv_search_iconv_open+:} false; then :
7901: break
7902: fi
7903: done
7904: if ${ac_cv_search_iconv_open+:} false; then :
7905:
7906: else
7907: ac_cv_search_iconv_open=no
7908: fi
7909: rm conftest.$ac_ext
7910: LIBS=$ac_func_search_save_LIBS
7911: fi
7912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
7913: $as_echo "$ac_cv_search_iconv_open" >&6; }
7914: ac_res=$ac_cv_search_iconv_open
7915: if test "$ac_res" != no; then :
7916: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7917:
7918: fi
7919:
7920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
7921: $as_echo_n "checking for library containing libiconv_open... " >&6; }
7922: if ${ac_cv_search_libiconv_open+:} false; then :
7923: $as_echo_n "(cached) " >&6
7924: else
7925: ac_func_search_save_LIBS=$LIBS
7926: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927: /* end confdefs.h. */
7928:
7929: /* Override any GCC internal prototype to avoid an error.
7930: Use char because int might match the return type of a GCC
7931: builtin and then its argument prototype would still apply. */
7932: #ifdef __cplusplus
7933: extern "C"
7934: #endif
7935: char libiconv_open ();
7936: int
7937: main ()
7938: {
7939: return libiconv_open ();
7940: ;
7941: return 0;
7942: }
7943: _ACEOF
7944: for ac_lib in '' iconv; do
7945: if test -z "$ac_lib"; then
7946: ac_res="none required"
7947: else
7948: ac_res=-l$ac_lib
7949: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7950: fi
7951: if ac_fn_c_try_link "$LINENO"; then :
7952: ac_cv_search_libiconv_open=$ac_res
7953: fi
7954: rm -f core conftest.err conftest.$ac_objext \
7955: conftest$ac_exeext
7956: if ${ac_cv_search_libiconv_open+:} false; then :
7957: break
7958: fi
7959: done
7960: if ${ac_cv_search_libiconv_open+:} false; then :
7961:
7962: else
7963: ac_cv_search_libiconv_open=no
7964: fi
7965: rm conftest.$ac_ext
7966: LIBS=$ac_func_search_save_LIBS
7967: fi
7968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
7969: $as_echo "$ac_cv_search_libiconv_open" >&6; }
7970: ac_res=$ac_cv_search_libiconv_open
7971: if test "$ac_res" != no; then :
7972: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7973:
7974: fi
7975:
7976:
7977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7978: $as_echo_n "checking for iconv declaration... " >&6; }
7979: if ${am_cv_proto_iconv+:} false; then :
7980: $as_echo_n "(cached) " >&6
7981: else
7982:
7983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984: /* end confdefs.h. */
7985:
7986: #include <stdlib.h>
7987: #include <iconv.h>
7988: extern
7989: #ifdef __cplusplus
7990: "C"
7991: #endif
7992: #if defined(__STDC__) || defined(__cplusplus)
7993: size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7994: #else
7995: size_t iconv();
7996: #endif
7997:
7998: int
7999: main ()
8000: {
8001:
8002: ;
8003: return 0;
8004: }
8005: _ACEOF
8006: if ac_fn_c_try_compile "$LINENO"; then :
8007: am_cv_proto_iconv_arg1=""
8008: else
8009: am_cv_proto_iconv_arg1="const"
8010: fi
8011: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012: am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8013: fi
8014:
1.1.1.4 ! misho 8015: am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed 's/( /(/'`
1.1 misho 8016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8017: }$am_cv_proto_iconv" >&5
8018: $as_echo "${ac_t:-
8019: }$am_cv_proto_iconv" >&6; }
8020:
8021: cat >>confdefs.h <<_ACEOF
8022: #define ICONV_CONST $am_cv_proto_iconv_arg1
8023: _ACEOF
8024:
8025:
8026:
1.1.1.3 misho 8027: ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
1.1 misho 8028: if test "x$ac_cv_func_inet_ntop" = xyes; then :
1.1.1.3 misho 8029: $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
1.1 misho 8030:
8031: else
8032: case " $LIBOBJS " in
1.1.1.3 misho 8033: *" inet_ntop.$ac_objext "* ) ;;
8034: *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
1.1 misho 8035: ;;
8036: esac
8037:
8038: fi
8039:
1.1.1.3 misho 8040: ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
1.1 misho 8041: if test "x$ac_cv_func_inet_pton" = xyes; then :
1.1.1.3 misho 8042: $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
1.1 misho 8043:
8044: else
8045: case " $LIBOBJS " in
1.1.1.3 misho 8046: *" inet_pton.$ac_objext "* ) ;;
8047: *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
1.1 misho 8048: ;;
8049: esac
8050:
8051: fi
1.1.1.3 misho 8052:
1.1 misho 8053:
8054:
8055:
8056:
8057: cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
8058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
8059: $as_echo_n "checking for struct addrinfo... " >&6; }
8060: if eval \${ac_cv_type_$cv+:} false; then :
8061: $as_echo_n "(cached) " >&6
8062: else
8063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064: /* end confdefs.h. */
8065:
8066: $ac_includes_default
8067: #include <netdb.h>
8068: int
8069: main ()
8070: {
8071: struct addrinfo foo;
8072: ;
8073: return 0;
8074: }
8075: _ACEOF
8076: if ac_fn_c_try_compile "$LINENO"; then :
8077: eval "ac_cv_type_$cv=yes"
8078: else
8079: eval "ac_cv_type_$cv=no"
8080: fi
8081: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082: fi
8083: ac_foo=`eval echo \\$ac_cv_type_$cv`
8084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
8085: $as_echo "$ac_foo" >&6; }
8086: if test "$ac_foo" = yes; then
8087: ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
8088: if false; then
8089: ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
8090: if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
8091:
8092: cat >>confdefs.h <<_ACEOF
8093: #define HAVE_STRUCT_ADDRINFO 1
8094: _ACEOF
8095:
8096:
8097: fi
8098:
8099: fi
8100:
8101: cat >>confdefs.h <<_ACEOF
8102: #define $ac_tr_hdr 1
8103: _ACEOF
8104:
8105: fi
8106:
8107:
8108:
8109: cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
8110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
8111: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
8112: if eval \${ac_cv_type_$cv+:} false; then :
8113: $as_echo_n "(cached) " >&6
8114: else
8115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116: /* end confdefs.h. */
8117:
8118: $ac_includes_default
8119: #include <sys/types.h>
8120: #include <sys/socket.h>
8121: int
8122: main ()
8123: {
8124: struct sockaddr_storage foo;
8125: ;
8126: return 0;
8127: }
8128: _ACEOF
8129: if ac_fn_c_try_compile "$LINENO"; then :
8130: eval "ac_cv_type_$cv=yes"
8131: else
8132: eval "ac_cv_type_$cv=no"
8133: fi
8134: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135: fi
8136: ac_foo=`eval echo \\$ac_cv_type_$cv`
8137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
8138: $as_echo "$ac_foo" >&6; }
8139: if test "$ac_foo" = yes; then
8140: ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
8141: if false; then
8142: ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
8143: if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
8144:
8145: cat >>confdefs.h <<_ACEOF
8146: #define HAVE_STRUCT_SOCKADDR_STORAGE 1
8147: _ACEOF
8148:
8149:
8150: fi
8151:
8152: fi
8153:
8154: cat >>confdefs.h <<_ACEOF
8155: #define $ac_tr_hdr 1
8156: _ACEOF
8157:
8158: fi
8159:
8160:
8161: # Irix 6.5 has getaddrinfo but not the corresponding defines, so use
8162: # builtin getaddrinfo if one of the defines don't exist
8163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines needed by getaddrinfo exist" >&5
8164: $as_echo_n "checking whether defines needed by getaddrinfo exist... " >&6; }
8165: if ${rsync_cv_HAVE_GETADDR_DEFINES+:} false; then :
8166: $as_echo_n "(cached) " >&6
8167: else
8168:
8169: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170: /* end confdefs.h. */
8171:
8172: #include <sys/types.h>
8173: #include <sys/socket.h>
8174: #include <netdb.h>
8175: #ifdef AI_PASSIVE
8176: yes
8177: #endif
8178: _ACEOF
8179: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8180: $EGREP "yes" >/dev/null 2>&1; then :
8181: rsync_cv_HAVE_GETADDR_DEFINES=yes
8182: else
8183: rsync_cv_HAVE_GETADDR_DEFINES=no
8184: fi
8185: rm -f conftest*
8186:
8187: fi
8188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETADDR_DEFINES" >&5
8189: $as_echo "$rsync_cv_HAVE_GETADDR_DEFINES" >&6; }
1.1.1.3 misho 8190: if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then :
8191:
1.1 misho 8192: # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
8193: # something else so we must include <netdb.h> to get the
8194: # redefinition.
8195: for ac_func in getaddrinfo
8196: do :
8197: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
8198: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
8199: cat >>confdefs.h <<_ACEOF
8200: #define HAVE_GETADDRINFO 1
8201: _ACEOF
8202:
8203: else
8204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo by including <netdb.h>" >&5
8205: $as_echo_n "checking for getaddrinfo by including <netdb.h>... " >&6; }
8206: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207: /* end confdefs.h. */
8208: #include <sys/types.h>
8209: #include <sys/socket.h>
8210: #include <netdb.h>
8211: int
8212: main ()
8213: {
8214: getaddrinfo(NULL, NULL, NULL, NULL);
8215: ;
8216: return 0;
8217: }
8218: _ACEOF
8219: if ac_fn_c_try_link "$LINENO"; then :
8220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8221: $as_echo "yes" >&6; }
8222:
8223: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
8224:
8225: else
8226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227: $as_echo "no" >&6; }
8228: case " $LIBOBJS " in
1.1.1.3 misho 8229: *" getaddrinfo.$ac_objext "* ) ;;
8230: *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
1.1 misho 8231: ;;
8232: esac
8233:
8234: fi
8235: rm -f core conftest.err conftest.$ac_objext \
8236: conftest$ac_exeext conftest.$ac_ext
8237: fi
8238: done
8239:
1.1.1.3 misho 8240:
1.1 misho 8241: else
1.1.1.3 misho 8242: case " $LIBOBJS " in
8243: *" getaddrinfo.$ac_objext "* ) ;;
8244: *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
1.1 misho 8245: ;;
8246: esac
8247:
8248: fi
8249:
8250: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
8251: #include <sys/types.h>
8252: #include <sys/socket.h>
8253:
8254: "
8255: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
8256:
8257: $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
8258:
8259: fi
8260:
8261:
8262: ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
8263: #include <sys/types.h>
8264: #include <sys/socket.h>
8265: #include <netinet/in.h>
8266:
8267: "
8268: if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
8269:
8270: $as_echo "#define HAVE_SOCKADDR_IN_LEN 1" >>confdefs.h
8271:
8272: fi
8273:
8274:
8275: ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
8276: #include <sys/types.h>
8277: #include <sys/socket.h>
8278: #include <netinet/in.h>
8279:
8280: "
8281: if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
8282:
8283: $as_echo "#define HAVE_SOCKADDR_UN_LEN 1" >>confdefs.h
8284:
8285: fi
8286:
8287:
8288: ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
8289: #include <sys/types.h>
8290: #include <sys/socket.h>
8291: #include <netinet/in.h>
8292:
8293: "
8294: if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
8295:
8296: $as_echo "#define HAVE_SOCKADDR_IN6_SCOPE_ID 1" >>confdefs.h
8297:
8298: fi
8299:
8300:
8301:
8302:
8303: cv=`echo "struct stat64" | sed 'y%./+- %__p__%'`
8304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
8305: $as_echo_n "checking for struct stat64... " >&6; }
8306: if eval \${ac_cv_type_$cv+:} false; then :
8307: $as_echo_n "(cached) " >&6
8308: else
8309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310: /* end confdefs.h. */
8311:
8312: $ac_includes_default
8313: #include <stdio.h>
8314: #if HAVE_SYS_TYPES_H
8315: # include <sys/types.h>
8316: #endif
8317: #if HAVE_SYS_STAT_H
8318: # include <sys/stat.h>
8319: #endif
8320: #if STDC_HEADERS
8321: # include <stdlib.h>
8322: # include <stddef.h>
8323: #else
8324: # if HAVE_STDLIB_H
8325: # include <stdlib.h>
8326: # endif
8327: #endif
8328:
8329: int
8330: main ()
8331: {
8332: struct stat64 foo;
8333: ;
8334: return 0;
8335: }
8336: _ACEOF
8337: if ac_fn_c_try_compile "$LINENO"; then :
8338: eval "ac_cv_type_$cv=yes"
8339: else
8340: eval "ac_cv_type_$cv=no"
8341: fi
8342: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343: fi
8344: ac_foo=`eval echo \\$ac_cv_type_$cv`
8345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
8346: $as_echo "$ac_foo" >&6; }
8347: if test "$ac_foo" = yes; then
8348: ac_tr_hdr=HAVE_`echo struct stat64 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
8349: if false; then
8350: ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "$ac_includes_default"
8351: if test "x$ac_cv_type_struct_stat64" = xyes; then :
8352:
8353: cat >>confdefs.h <<_ACEOF
8354: #define HAVE_STRUCT_STAT64 1
8355: _ACEOF
8356:
8357:
8358: fi
8359:
8360: fi
8361:
8362: cat >>confdefs.h <<_ACEOF
8363: #define $ac_tr_hdr 1
8364: _ACEOF
8365:
8366: fi
8367:
8368:
8369: # if we can't find strcasecmp, look in -lresolv (for Unixware at least)
8370: #
8371: for ac_func in strcasecmp
8372: do :
8373: ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8374: if test "x$ac_cv_func_strcasecmp" = xyes; then :
8375: cat >>confdefs.h <<_ACEOF
8376: #define HAVE_STRCASECMP 1
8377: _ACEOF
8378:
8379: fi
8380: done
8381:
8382: if test x"$ac_cv_func_strcasecmp" = x"no"; then
8383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8384: $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8385: if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8386: $as_echo_n "(cached) " >&6
8387: else
8388: ac_check_lib_save_LIBS=$LIBS
8389: LIBS="-lresolv $LIBS"
8390: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391: /* end confdefs.h. */
8392:
8393: /* Override any GCC internal prototype to avoid an error.
8394: Use char because int might match the return type of a GCC
8395: builtin and then its argument prototype would still apply. */
8396: #ifdef __cplusplus
8397: extern "C"
8398: #endif
8399: char strcasecmp ();
8400: int
8401: main ()
8402: {
8403: return strcasecmp ();
8404: ;
8405: return 0;
8406: }
8407: _ACEOF
8408: if ac_fn_c_try_link "$LINENO"; then :
8409: ac_cv_lib_resolv_strcasecmp=yes
8410: else
8411: ac_cv_lib_resolv_strcasecmp=no
8412: fi
8413: rm -f core conftest.err conftest.$ac_objext \
8414: conftest$ac_exeext conftest.$ac_ext
8415: LIBS=$ac_check_lib_save_LIBS
8416: fi
8417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8418: $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8419: if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8420: cat >>confdefs.h <<_ACEOF
8421: #define HAVE_LIBRESOLV 1
8422: _ACEOF
8423:
8424: LIBS="-lresolv $LIBS"
8425:
8426: fi
8427:
8428: fi
8429:
8430: for ac_func in aclsort
8431: do :
8432: ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
8433: if test "x$ac_cv_func_aclsort" = xyes; then :
8434: cat >>confdefs.h <<_ACEOF
8435: #define HAVE_ACLSORT 1
8436: _ACEOF
8437:
8438: fi
8439: done
8440:
8441: if test x"$ac_cv_func_aclsort" = x"no"; then
8442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aclsort in -lsec" >&5
8443: $as_echo_n "checking for aclsort in -lsec... " >&6; }
8444: if ${ac_cv_lib_sec_aclsort+:} false; then :
8445: $as_echo_n "(cached) " >&6
8446: else
8447: ac_check_lib_save_LIBS=$LIBS
8448: LIBS="-lsec $LIBS"
8449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450: /* end confdefs.h. */
8451:
8452: /* Override any GCC internal prototype to avoid an error.
8453: Use char because int might match the return type of a GCC
8454: builtin and then its argument prototype would still apply. */
8455: #ifdef __cplusplus
8456: extern "C"
8457: #endif
8458: char aclsort ();
8459: int
8460: main ()
8461: {
8462: return aclsort ();
8463: ;
8464: return 0;
8465: }
8466: _ACEOF
8467: if ac_fn_c_try_link "$LINENO"; then :
8468: ac_cv_lib_sec_aclsort=yes
8469: else
8470: ac_cv_lib_sec_aclsort=no
8471: fi
8472: rm -f core conftest.err conftest.$ac_objext \
8473: conftest$ac_exeext conftest.$ac_ext
8474: LIBS=$ac_check_lib_save_LIBS
8475: fi
8476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_aclsort" >&5
8477: $as_echo "$ac_cv_lib_sec_aclsort" >&6; }
8478: if test "x$ac_cv_lib_sec_aclsort" = xyes; then :
8479: cat >>confdefs.h <<_ACEOF
8480: #define HAVE_LIBSEC 1
8481: _ACEOF
8482:
8483: LIBS="-lsec $LIBS"
8484:
8485: fi
8486:
8487: fi
8488:
8489:
8490:
8491:
8492:
8493: for ac_header in $ac_header_list
8494: do :
8495: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8496: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8497: "
8498: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8499: cat >>confdefs.h <<_ACEOF
8500: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8501: _ACEOF
8502:
8503: fi
8504:
8505: done
8506:
8507:
8508:
8509:
8510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
8511: $as_echo_n "checking whether utime accepts a null argument... " >&6; }
8512: if ${ac_cv_func_utime_null+:} false; then :
8513: $as_echo_n "(cached) " >&6
8514: else
8515: rm -f conftest.data; >conftest.data
8516: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
8517: if test "$cross_compiling" = yes; then :
8518: ac_cv_func_utime_null='guessing yes'
8519: else
8520: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521: /* end confdefs.h. */
8522: $ac_includes_default
8523: #ifdef HAVE_UTIME_H
8524: # include <utime.h>
8525: #endif
8526: int
8527: main ()
8528: {
8529: struct stat s, t;
8530: return ! (stat ("conftest.data", &s) == 0
8531: && utime ("conftest.data", 0) == 0
8532: && stat ("conftest.data", &t) == 0
8533: && t.st_mtime >= s.st_mtime
8534: && t.st_mtime - s.st_mtime < 120);
8535: ;
8536: return 0;
8537: }
8538: _ACEOF
8539: if ac_fn_c_try_run "$LINENO"; then :
8540: ac_cv_func_utime_null=yes
8541: else
8542: ac_cv_func_utime_null=no
8543: fi
8544: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8545: conftest.$ac_objext conftest.beam conftest.$ac_ext
8546: fi
8547:
8548: fi
8549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
8550: $as_echo "$ac_cv_func_utime_null" >&6; }
8551: if test "x$ac_cv_func_utime_null" != xno; then
8552: ac_cv_func_utime_null=yes
8553:
8554: $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
8555:
8556: fi
8557: rm -f conftest.data
8558:
8559: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8560: if test "x$ac_cv_type_size_t" = xyes; then :
8561:
8562: else
8563:
8564: cat >>confdefs.h <<_ACEOF
8565: #define size_t unsigned int
8566: _ACEOF
8567:
8568: fi
8569:
8570: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8571: # for constant arguments. Useless!
8572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8573: $as_echo_n "checking for working alloca.h... " >&6; }
8574: if ${ac_cv_working_alloca_h+:} false; then :
8575: $as_echo_n "(cached) " >&6
8576: else
8577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578: /* end confdefs.h. */
8579: #include <alloca.h>
8580: int
8581: main ()
8582: {
8583: char *p = (char *) alloca (2 * sizeof (int));
8584: if (p) return 0;
8585: ;
8586: return 0;
8587: }
8588: _ACEOF
8589: if ac_fn_c_try_link "$LINENO"; then :
8590: ac_cv_working_alloca_h=yes
8591: else
8592: ac_cv_working_alloca_h=no
8593: fi
8594: rm -f core conftest.err conftest.$ac_objext \
8595: conftest$ac_exeext conftest.$ac_ext
8596: fi
8597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8598: $as_echo "$ac_cv_working_alloca_h" >&6; }
8599: if test $ac_cv_working_alloca_h = yes; then
8600:
8601: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8602:
8603: fi
8604:
8605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8606: $as_echo_n "checking for alloca... " >&6; }
8607: if ${ac_cv_func_alloca_works+:} false; then :
8608: $as_echo_n "(cached) " >&6
8609: else
8610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611: /* end confdefs.h. */
8612: #ifdef __GNUC__
8613: # define alloca __builtin_alloca
8614: #else
8615: # ifdef _MSC_VER
8616: # include <malloc.h>
8617: # define alloca _alloca
8618: # else
8619: # ifdef HAVE_ALLOCA_H
8620: # include <alloca.h>
8621: # else
8622: # ifdef _AIX
8623: #pragma alloca
8624: # else
8625: # ifndef alloca /* predefined by HP cc +Olibcalls */
8626: void *alloca (size_t);
8627: # endif
8628: # endif
8629: # endif
8630: # endif
8631: #endif
8632:
8633: int
8634: main ()
8635: {
8636: char *p = (char *) alloca (1);
8637: if (p) return 0;
8638: ;
8639: return 0;
8640: }
8641: _ACEOF
8642: if ac_fn_c_try_link "$LINENO"; then :
8643: ac_cv_func_alloca_works=yes
8644: else
8645: ac_cv_func_alloca_works=no
8646: fi
8647: rm -f core conftest.err conftest.$ac_objext \
8648: conftest$ac_exeext conftest.$ac_ext
8649: fi
8650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8651: $as_echo "$ac_cv_func_alloca_works" >&6; }
8652:
8653: if test $ac_cv_func_alloca_works = yes; then
8654:
8655: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8656:
8657: else
8658: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8659: # that cause trouble. Some versions do not even contain alloca or
8660: # contain a buggy version. If you still want to use their alloca,
8661: # use ar to extract alloca.o from them instead of compiling alloca.c.
8662:
8663: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8664:
8665: $as_echo "#define C_ALLOCA 1" >>confdefs.h
8666:
8667:
8668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8669: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8670: if ${ac_cv_os_cray+:} false; then :
8671: $as_echo_n "(cached) " >&6
8672: else
8673: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674: /* end confdefs.h. */
8675: #if defined CRAY && ! defined CRAY2
8676: webecray
8677: #else
8678: wenotbecray
8679: #endif
8680:
8681: _ACEOF
8682: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8683: $EGREP "webecray" >/dev/null 2>&1; then :
8684: ac_cv_os_cray=yes
8685: else
8686: ac_cv_os_cray=no
8687: fi
8688: rm -f conftest*
8689:
8690: fi
8691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8692: $as_echo "$ac_cv_os_cray" >&6; }
8693: if test $ac_cv_os_cray = yes; then
8694: for ac_func in _getb67 GETB67 getb67; do
8695: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8696: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8697: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8698:
8699: cat >>confdefs.h <<_ACEOF
8700: #define CRAY_STACKSEG_END $ac_func
8701: _ACEOF
8702:
8703: break
8704: fi
8705:
8706: done
8707: fi
8708:
8709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8710: $as_echo_n "checking stack direction for C alloca... " >&6; }
8711: if ${ac_cv_c_stack_direction+:} false; then :
8712: $as_echo_n "(cached) " >&6
8713: else
8714: if test "$cross_compiling" = yes; then :
8715: ac_cv_c_stack_direction=0
8716: else
8717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718: /* end confdefs.h. */
8719: $ac_includes_default
8720: int
1.1.1.3 misho 8721: find_stack_direction (int *addr, int depth)
1.1 misho 8722: {
1.1.1.3 misho 8723: int dir, dummy = 0;
8724: if (! addr)
8725: addr = &dummy;
8726: *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8727: dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8728: return dir + dummy;
1.1 misho 8729: }
8730:
8731: int
1.1.1.3 misho 8732: main (int argc, char **argv)
1.1 misho 8733: {
1.1.1.3 misho 8734: return find_stack_direction (0, argc + !argv + 20) < 0;
1.1 misho 8735: }
8736: _ACEOF
8737: if ac_fn_c_try_run "$LINENO"; then :
8738: ac_cv_c_stack_direction=1
8739: else
8740: ac_cv_c_stack_direction=-1
8741: fi
8742: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8743: conftest.$ac_objext conftest.beam conftest.$ac_ext
8744: fi
8745:
8746: fi
8747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8748: $as_echo "$ac_cv_c_stack_direction" >&6; }
8749: cat >>confdefs.h <<_ACEOF
8750: #define STACK_DIRECTION $ac_cv_c_stack_direction
8751: _ACEOF
8752:
8753:
8754: fi
8755:
1.1.1.4 ! misho 8756: for ac_func in waitpid wait4 getcwd chown chmod lchmod mknod mkfifo \
1.1 misho 8757: fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \
1.1.1.4 ! misho 8758: chflags getattrlist mktime innetgr linkat \
1.1 misho 8759: memmove lchown vsnprintf snprintf vasprintf asprintf setsid strpbrk \
8760: strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \
8761: setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
8762: seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
1.1.1.2 misho 8763: extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
1.1.1.4 ! misho 8764: initgroups utimensat posix_fallocate attropen setvbuf nanosleep usleep
1.1 misho 8765: do :
8766: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8767: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8768: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8769: cat >>confdefs.h <<_ACEOF
8770: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8771: _ACEOF
8772:
8773: fi
8774: done
8775:
8776:
8777: if test x"$ac_cv_func_iconv_open" != x"yes"; then
8778: ac_fn_c_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
8779: if test "x$ac_cv_func_libiconv_open" = xyes; then :
8780: ac_cv_func_iconv_open=yes; $as_echo "#define HAVE_ICONV_OPEN 1" >>confdefs.h
8781:
8782: fi
8783:
8784: fi
8785:
1.1.1.2 misho 8786:
8787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for useable fallocate" >&5
8788: $as_echo_n "checking for useable fallocate... " >&6; }
8789: if ${rsync_cv_have_fallocate+:} false; then :
8790: $as_echo_n "(cached) " >&6
8791: else
8792:
8793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794: /* end confdefs.h. */
8795: #include <fcntl.h>
8796: #include <sys/types.h>
8797: int
8798: main ()
8799: {
8800: fallocate(0, 0, 0, 0);
8801: ;
8802: return 0;
8803: }
8804: _ACEOF
8805: if ac_fn_c_try_link "$LINENO"; then :
8806: rsync_cv_have_fallocate=yes
8807: else
8808: rsync_cv_have_fallocate=no
8809: fi
8810: rm -f core conftest.err conftest.$ac_objext \
8811: conftest$ac_exeext conftest.$ac_ext
8812: fi
8813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_fallocate" >&5
8814: $as_echo "$rsync_cv_have_fallocate" >&6; }
8815: if test x"$rsync_cv_have_fallocate" = x"yes"; then
8816:
8817: $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
8818:
8819: fi
8820:
1.1.1.4 ! misho 8821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_PUNCH_HOLE" >&5
! 8822: $as_echo_n "checking for FALLOC_FL_PUNCH_HOLE... " >&6; }
! 8823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 8824: /* end confdefs.h. */
! 8825:
! 8826: #define _GNU_SOURCE 1
! 8827: #include <linux/falloc.h>
! 8828: #ifndef FALLOC_FL_PUNCH_HOLE
! 8829: #error FALLOC_FL_PUNCH_HOLE is missing
! 8830: #endif
! 8831:
! 8832: _ACEOF
! 8833: if ac_fn_c_try_cpp "$LINENO"; then :
! 8834:
! 8835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 8836: $as_echo "yes" >&6; }
! 8837:
! 8838: $as_echo "#define HAVE_FALLOC_FL_PUNCH_HOLE 1" >>confdefs.h
! 8839:
! 8840:
! 8841: else
! 8842:
! 8843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8844: $as_echo "no" >&6; }
! 8845:
! 8846:
! 8847: fi
! 8848: rm -f conftest.err conftest.i conftest.$ac_ext
! 8849:
! 8850: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_ZERO_RANGE" >&5
! 8851: $as_echo_n "checking for FALLOC_FL_ZERO_RANGE... " >&6; }
! 8852: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 8853: /* end confdefs.h. */
! 8854:
! 8855: #define _GNU_SOURCE 1
! 8856: #include <linux/falloc.h>
! 8857: #ifndef FALLOC_FL_ZERO_RANGE
! 8858: #error FALLOC_FL_ZERO_RANGE is missing
! 8859: #endif
! 8860:
! 8861: _ACEOF
! 8862: if ac_fn_c_try_cpp "$LINENO"; then :
! 8863:
! 8864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 8865: $as_echo "yes" >&6; }
! 8866:
! 8867: $as_echo "#define HAVE_FALLOC_FL_ZERO_RANGE 1" >>confdefs.h
! 8868:
! 8869:
! 8870: else
! 8871:
! 8872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8873: $as_echo "no" >&6; }
! 8874:
! 8875:
! 8876: fi
! 8877: rm -f conftest.err conftest.i conftest.$ac_ext
! 8878:
1.1.1.2 misho 8879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
8880: $as_echo_n "checking for SYS_fallocate... " >&6; }
8881: if ${rsync_cv_have_sys_fallocate+:} false; then :
8882: $as_echo_n "(cached) " >&6
8883: else
8884:
8885: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886: /* end confdefs.h. */
8887: #include <sys/syscall.h>
1.1.1.4 ! misho 8888: #include <unistd.h>
1.1.1.2 misho 8889: #include <sys/types.h>
8890: int
8891: main ()
8892: {
8893: syscall(SYS_fallocate, 0, 0, (loff_t)0, (loff_t)0);
8894: ;
8895: return 0;
8896: }
8897: _ACEOF
8898: if ac_fn_c_try_compile "$LINENO"; then :
8899: rsync_cv_have_sys_fallocate=yes
8900: else
8901: rsync_cv_have_sys_fallocate=no
8902: fi
8903: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904: fi
8905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_sys_fallocate" >&5
8906: $as_echo "$rsync_cv_have_sys_fallocate" >&6; }
8907: if test x"$rsync_cv_have_sys_fallocate" = x"yes"; then
8908:
8909: $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
8910:
8911: fi
8912:
8913: if test x"$ac_cv_func_posix_fallocate" = x"yes"; then
8914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_fallocate is efficient" >&5
8915: $as_echo_n "checking whether posix_fallocate is efficient... " >&6; }
8916: case $host_os in
8917: *cygwin*)
8918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8919: $as_echo "yes" >&6; }
8920:
8921: $as_echo "#define HAVE_EFFICIENT_POSIX_FALLOCATE 1" >>confdefs.h
8922:
8923: ;;
8924: *)
8925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926: $as_echo "no" >&6; }
8927: ;;
8928: esac
8929: fi
8930:
8931:
1.1 misho 8932: for ac_func in getpgrp tcgetpgrp
8933: do :
8934: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8935: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8936: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8937: cat >>confdefs.h <<_ACEOF
8938: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8939: _ACEOF
8940:
8941: fi
8942: done
8943:
8944: if test $ac_cv_func_getpgrp = yes; then
8945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
8946: $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
8947: if ${ac_cv_func_getpgrp_void+:} false; then :
8948: $as_echo_n "(cached) " >&6
8949: else
8950: # Use it with a single arg.
8951: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952: /* end confdefs.h. */
8953: $ac_includes_default
8954: int
8955: main ()
8956: {
8957: getpgrp (0);
8958: ;
8959: return 0;
8960: }
8961: _ACEOF
8962: if ac_fn_c_try_compile "$LINENO"; then :
8963: ac_cv_func_getpgrp_void=no
8964: else
8965: ac_cv_func_getpgrp_void=yes
8966: fi
8967: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968:
8969: fi
8970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
8971: $as_echo "$ac_cv_func_getpgrp_void" >&6; }
8972: if test $ac_cv_func_getpgrp_void = yes; then
8973:
8974: $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
8975:
8976: fi
8977:
8978: fi
8979:
8980: # Check whether --enable-iconv-open was given.
8981: if test "${enable_iconv_open+set}" = set; then :
8982: enableval=$enable_iconv_open;
8983: else
8984: enable_iconv_open=$ac_cv_func_iconv_open
8985: fi
8986:
8987:
8988: if test x"$enable_iconv_open" != x"no"; then
8989:
8990: $as_echo "#define USE_ICONV_OPEN 1" >>confdefs.h
8991:
8992: fi
8993:
8994: # Check whether --enable-iconv was given.
8995: if test "${enable_iconv+set}" = set; then :
8996: enableval=$enable_iconv;
8997: else
8998: enable_iconv=$enable_iconv_open
8999: fi
9000:
9001:
9002: if test x"$enable_iconv" != x"no"; then
9003: if test x"$enable_iconv" = x"yes"; then
9004: $as_echo "#define ICONV_OPTION NULL" >>confdefs.h
9005:
9006: else
9007: cat >>confdefs.h <<_ACEOF
9008: #define ICONV_OPTION "$enable_iconv"
9009: _ACEOF
9010:
9011: fi
9012:
9013: $as_echo "#define UTF8_CHARSET \"UTF-8\"" >>confdefs.h
9014:
9015: fi
9016:
1.1.1.4 ! misho 9017:
! 9018: # Check whether --with-gssapi was given.
! 9019: if test "${with_gssapi+set}" = set; then :
! 9020: withval=$with_gssapi;
! 9021: else
! 9022: with_gssapi=check
! 9023: fi
! 9024:
! 9025:
! 9026:
! 9027:
! 9028: if test "x$with_gssapi" != xno; then :
! 9029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_import_name" >&5
! 9030: $as_echo_n "checking for library containing gss_import_name... " >&6; }
! 9031: if ${ac_cv_search_gss_import_name+:} false; then :
! 9032: $as_echo_n "(cached) " >&6
! 9033: else
! 9034: ac_func_search_save_LIBS=$LIBS
! 9035: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 9036: /* end confdefs.h. */
! 9037:
! 9038: /* Override any GCC internal prototype to avoid an error.
! 9039: Use char because int might match the return type of a GCC
! 9040: builtin and then its argument prototype would still apply. */
! 9041: #ifdef __cplusplus
! 9042: extern "C"
! 9043: #endif
! 9044: char gss_import_name ();
! 9045: int
! 9046: main ()
! 9047: {
! 9048: return gss_import_name ();
! 9049: ;
! 9050: return 0;
! 9051: }
! 9052: _ACEOF
! 9053: for ac_lib in '' gss gssapi_krb5 ; do
! 9054: if test -z "$ac_lib"; then
! 9055: ac_res="none required"
! 9056: else
! 9057: ac_res=-l$ac_lib
! 9058: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 9059: fi
! 9060: if ac_fn_c_try_link "$LINENO"; then :
! 9061: ac_cv_search_gss_import_name=$ac_res
! 9062: fi
! 9063: rm -f core conftest.err conftest.$ac_objext \
! 9064: conftest$ac_exeext
! 9065: if ${ac_cv_search_gss_import_name+:} false; then :
! 9066: break
! 9067: fi
! 9068: done
! 9069: if ${ac_cv_search_gss_import_name+:} false; then :
! 9070:
! 9071: else
! 9072: ac_cv_search_gss_import_name=no
! 9073: fi
! 9074: rm conftest.$ac_ext
! 9075: LIBS=$ac_func_search_save_LIBS
! 9076: fi
! 9077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_import_name" >&5
! 9078: $as_echo "$ac_cv_search_gss_import_name" >&6; }
! 9079: ac_res=$ac_cv_search_gss_import_name
! 9080: if test "$ac_res" != no; then :
! 9081: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 9082: for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
! 9083: do :
! 9084: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 9085: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
! 9086: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 9087: cat >>confdefs.h <<_ACEOF
! 9088: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 9089: _ACEOF
! 9090:
! 9091: fi
! 9092:
! 9093: done
! 9094:
! 9095: $as_echo "#define GSSAPI_OPTION 1" >>confdefs.h
! 9096:
! 9097:
! 9098: else
! 9099: if test "x$with_gssapi" = xcheck; then
! 9100: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 9101: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 9102: as_fn_error $? "--with-gssapi was given, but test for function failed
! 9103: See \`config.log' for more details" "$LINENO" 5; }
! 9104: fi
! 9105:
! 9106: fi
! 9107:
! 9108:
! 9109: fi
! 9110:
! 9111: if test x"$enable_gssapi" != x"no"; then
! 9112: $as_echo "#define GSSAPI_OPTION 1" >>confdefs.h
! 9113:
! 9114: fi
! 9115:
1.1 misho 9116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown() modifies symlinks" >&5
9117: $as_echo_n "checking whether chown() modifies symlinks... " >&6; }
9118: if ${rsync_cv_chown_modifies_symlink+:} false; then :
9119: $as_echo_n "(cached) " >&6
9120: else
9121:
9122: if test "$cross_compiling" = yes; then :
9123: rsync_cv_chown_modifies_symlink=no
9124: else
9125: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126: /* end confdefs.h. */
9127:
9128: #if HAVE_UNISTD_H
9129: # include <unistd.h>
9130: #endif
9131: #include <stdlib.h>
9132: #include <errno.h>
1.1.1.4 ! misho 9133: int main(void) {
1.1 misho 9134: char const *dangling_symlink = "conftest.dangle";
9135: unlink(dangling_symlink);
9136: if (symlink("conftest.no-such", dangling_symlink) < 0) abort();
1.1.1.4 ! misho 9137: if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) return 1;
! 9138: return 0;
1.1 misho 9139: }
9140: _ACEOF
9141: if ac_fn_c_try_run "$LINENO"; then :
9142: rsync_cv_chown_modifies_symlink=yes
9143: else
9144: rsync_cv_chown_modifies_symlink=no
9145: fi
9146: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9147: conftest.$ac_objext conftest.beam conftest.$ac_ext
9148: fi
9149:
9150: fi
9151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_chown_modifies_symlink" >&5
9152: $as_echo "$rsync_cv_chown_modifies_symlink" >&6; }
9153: if test $rsync_cv_chown_modifies_symlink = yes; then
9154:
9155: $as_echo "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
9156:
9157: fi
9158:
9159: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link symlinks" >&5
9160: $as_echo_n "checking whether link() can hard-link symlinks... " >&6; }
9161: if ${rsync_cv_can_hardlink_symlink+:} false; then :
9162: $as_echo_n "(cached) " >&6
9163: else
9164:
9165: if test "$cross_compiling" = yes; then :
9166: rsync_cv_can_hardlink_symlink=no
9167: else
9168: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169: /* end confdefs.h. */
9170:
1.1.1.4 ! misho 9171: #ifdef HAVE_FCNTL_H
! 9172: # include <fcntl.h>
! 9173: #elif defined HAVE_SYS_FCNTL_H
! 9174: # include <sys/fcntl.h>
! 9175: #endif
1.1 misho 9176: #if HAVE_UNISTD_H
9177: # include <unistd.h>
9178: #endif
9179: #include <stdlib.h>
9180: #include <errno.h>
9181: #define FILENAME "conftest.dangle"
1.1.1.4 ! misho 9182: int main(void) {
1.1 misho 9183: unlink(FILENAME);
9184: if (symlink("conftest.no-such", FILENAME) < 0) abort();
1.1.1.3 misho 9185: unlink(FILENAME "2");
1.1.1.4 ! misho 9186: #ifdef HAVE_LINKAT
! 9187: if (linkat(AT_FDCWD, FILENAME, AT_FDCWD, FILENAME "2", 0) < 0) return 1;
! 9188: #else
! 9189: if (link(FILENAME, FILENAME "2") < 0) return 1;
! 9190: #endif
! 9191: return 0;
1.1 misho 9192: }
9193: _ACEOF
9194: if ac_fn_c_try_run "$LINENO"; then :
9195: rsync_cv_can_hardlink_symlink=yes
9196: else
9197: rsync_cv_can_hardlink_symlink=no
9198: fi
9199: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9200: conftest.$ac_objext conftest.beam conftest.$ac_ext
9201: fi
9202:
9203: fi
9204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_symlink" >&5
9205: $as_echo "$rsync_cv_can_hardlink_symlink" >&6; }
9206: if test $rsync_cv_can_hardlink_symlink = yes; then
9207:
9208: $as_echo "#define CAN_HARDLINK_SYMLINK 1" >>confdefs.h
9209:
9210: fi
9211:
9212: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link special files" >&5
9213: $as_echo_n "checking whether link() can hard-link special files... " >&6; }
9214: if ${rsync_cv_can_hardlink_special+:} false; then :
9215: $as_echo_n "(cached) " >&6
9216: else
9217:
9218: if test "$cross_compiling" = yes; then :
9219: rsync_cv_can_hardlink_special=no
9220: else
9221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222: /* end confdefs.h. */
9223:
1.1.1.4 ! misho 9224: #if HAVE_UNISTD_H
! 9225: # include <unistd.h>
! 9226: #endif
! 9227: #ifdef HAVE_SYS_STAT_H
! 9228: #include <sys/stat.h>
! 9229: #endif
! 9230: #include <stdlib.h>
! 9231: #include <errno.h>
! 9232: #define FILENAME "conftest.fifi"
! 9233: int main(void) {
! 9234: unlink(FILENAME);
! 9235: if (mkfifo(FILENAME, 0777) < 0) abort();
! 9236: unlink(FILENAME "2");
! 9237: if (link(FILENAME, FILENAME "2") < 0) return 1;
! 9238: return 0;
! 9239: }
! 9240: _ACEOF
! 9241: if ac_fn_c_try_run "$LINENO"; then :
! 9242: rsync_cv_can_hardlink_special=yes
! 9243: else
! 9244: rsync_cv_can_hardlink_special=no
! 9245: fi
! 9246: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 9247: conftest.$ac_objext conftest.beam conftest.$ac_ext
! 9248: fi
! 9249:
! 9250: fi
! 9251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_special" >&5
! 9252: $as_echo "$rsync_cv_can_hardlink_special" >&6; }
! 9253: if test $rsync_cv_can_hardlink_special = yes; then
! 9254:
! 9255: $as_echo "#define CAN_HARDLINK_SPECIAL 1" >>confdefs.h
! 9256:
! 9257: fi
! 9258:
! 9259: # Check whether --enable-slp was given.
! 9260: if test "${enable_slp+set}" = set; then :
! 9261: enableval=$enable_slp;
! 9262: fi
! 9263:
! 9264:
! 9265: # Check whether --with-openslp-libs was given.
! 9266: if test "${with_openslp_libs+set}" = set; then :
! 9267: withval=$with_openslp_libs; LDFLAGS="-L$withval $LDFLAGS"
! 9268: DSOFLAGS="-L$withval $DSOFLAGS"
! 9269: fi
! 9270:
! 9271:
! 9272: # Check whether --with-openslp-includes was given.
! 9273: if test "${with_openslp_includes+set}" = set; then :
! 9274: withval=$with_openslp_includes; CFLAGS="-I$withval $CFLAGS"
! 9275: CXXFLAGS="-I$withval $CXXFLAGS"
! 9276: CPPFLAGS="-I$withval $CPPFLAGS"
! 9277: fi
! 9278:
! 9279:
! 9280: LIBSLP=""
! 9281: SLPOBJ=""
! 9282:
! 9283: if test x$enable_slp != xno; then
! 9284: ac_fn_c_check_header_mongrel "$LINENO" "slp.h" "ac_cv_header_slp_h" "$ac_includes_default"
! 9285: if test "x$ac_cv_header_slp_h" = xyes; then :
! 9286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
! 9287: $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
! 9288: if ${ac_cv_lib_slp_SLPOpen+:} false; then :
! 9289: $as_echo_n "(cached) " >&6
! 9290: else
! 9291: ac_check_lib_save_LIBS=$LIBS
! 9292: LIBS="-lslp $LIBS"
! 9293: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 9294: /* end confdefs.h. */
! 9295:
! 9296: /* Override any GCC internal prototype to avoid an error.
! 9297: Use char because int might match the return type of a GCC
! 9298: builtin and then its argument prototype would still apply. */
! 9299: #ifdef __cplusplus
! 9300: extern "C"
1.1 misho 9301: #endif
1.1.1.4 ! misho 9302: char SLPOpen ();
! 9303: int
! 9304: main ()
! 9305: {
! 9306: return SLPOpen ();
! 9307: ;
! 9308: return 0;
! 9309: }
1.1 misho 9310: _ACEOF
1.1.1.4 ! misho 9311: if ac_fn_c_try_link "$LINENO"; then :
! 9312: ac_cv_lib_slp_SLPOpen=yes
1.1 misho 9313: else
1.1.1.4 ! misho 9314: ac_cv_lib_slp_SLPOpen=no
1.1 misho 9315: fi
1.1.1.4 ! misho 9316: rm -f core conftest.err conftest.$ac_objext \
! 9317: conftest$ac_exeext conftest.$ac_ext
! 9318: LIBS=$ac_check_lib_save_LIBS
! 9319: fi
! 9320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
! 9321: $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
! 9322: if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
! 9323:
! 9324: $as_echo "#define HAVE_LIBSLP 1" >>confdefs.h
! 9325:
! 9326: SLPOBJ="srvreg.o srvloc.o"
! 9327: LIBSLP="-lslp"
1.1 misho 9328: fi
9329:
9330: fi
9331:
9332:
9333: fi
9334:
1.1.1.4 ! misho 9335:
! 9336:
! 9337:
1.1 misho 9338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working socketpair" >&5
9339: $as_echo_n "checking for working socketpair... " >&6; }
9340: if ${rsync_cv_HAVE_SOCKETPAIR+:} false; then :
9341: $as_echo_n "(cached) " >&6
9342: else
9343:
9344: if test "$cross_compiling" = yes; then :
9345: rsync_cv_HAVE_SOCKETPAIR=cross
9346: else
9347: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348: /* end confdefs.h. */
9349:
9350: #include <sys/types.h>
9351: #include <sys/socket.h>
9352:
1.1.1.4 ! misho 9353: int main(void) {
1.1 misho 9354: int fd[2];
1.1.1.4 ! misho 9355: return (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1;
1.1 misho 9356: }
9357: _ACEOF
9358: if ac_fn_c_try_run "$LINENO"; then :
9359: rsync_cv_HAVE_SOCKETPAIR=yes
9360: else
9361: rsync_cv_HAVE_SOCKETPAIR=no
9362: fi
9363: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9364: conftest.$ac_objext conftest.beam conftest.$ac_ext
9365: fi
9366:
9367: fi
9368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SOCKETPAIR" >&5
9369: $as_echo "$rsync_cv_HAVE_SOCKETPAIR" >&6; }
9370: if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then
9371:
9372: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
9373:
9374: fi
9375:
1.1.1.3 misho 9376: ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
1.1.1.2 misho 9377: if test "x$ac_cv_func_getpass" = xyes; then :
1.1.1.3 misho 9378: $as_echo "#define HAVE_GETPASS 1" >>confdefs.h
1.1.1.2 misho 9379:
9380: else
9381: case " $LIBOBJS " in
1.1.1.3 misho 9382: *" getpass.$ac_objext "* ) ;;
9383: *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
1.1.1.2 misho 9384: ;;
9385: esac
9386:
9387: fi
1.1.1.3 misho 9388:
1.1.1.2 misho 9389:
9390:
1.1 misho 9391: if test x"$with_included_popt" != x"yes"; then
9392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
9393: $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
9394: if ${ac_cv_lib_popt_poptGetContext+:} false; then :
9395: $as_echo_n "(cached) " >&6
9396: else
9397: ac_check_lib_save_LIBS=$LIBS
9398: LIBS="-lpopt $LIBS"
9399: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400: /* end confdefs.h. */
9401:
9402: /* Override any GCC internal prototype to avoid an error.
9403: Use char because int might match the return type of a GCC
9404: builtin and then its argument prototype would still apply. */
9405: #ifdef __cplusplus
9406: extern "C"
9407: #endif
9408: char poptGetContext ();
9409: int
9410: main ()
9411: {
9412: return poptGetContext ();
9413: ;
9414: return 0;
9415: }
9416: _ACEOF
9417: if ac_fn_c_try_link "$LINENO"; then :
9418: ac_cv_lib_popt_poptGetContext=yes
9419: else
9420: ac_cv_lib_popt_poptGetContext=no
9421: fi
9422: rm -f core conftest.err conftest.$ac_objext \
9423: conftest$ac_exeext conftest.$ac_ext
9424: LIBS=$ac_check_lib_save_LIBS
9425: fi
9426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
9427: $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
9428: if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
9429: cat >>confdefs.h <<_ACEOF
9430: #define HAVE_LIBPOPT 1
9431: _ACEOF
9432:
9433: LIBS="-lpopt $LIBS"
9434:
9435: else
9436: with_included_popt=yes
9437: fi
9438:
9439: fi
9440: if test x"$ac_cv_header_popt_popt_h" = x"yes"; then
9441: # If the system has /usr/include/popt/popt.h, we enable the
9442: # included popt because an attempt to "#include <popt/popt.h>"
9443: # would use our included header file anyway (due to -I.), and
9444: # might conflict with the system popt.
9445: with_included_popt=yes
9446: elif test x"$ac_cv_header_popt_h" != x"yes"; then
9447: with_included_popt=yes
9448: fi
9449:
9450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included libpopt" >&5
9451: $as_echo_n "checking whether to use included libpopt... " >&6; }
9452: if test x"$with_included_popt" = x"yes"; then
9453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/popt" >&5
9454: $as_echo "$srcdir/popt" >&6; }
9455: BUILD_POPT='$(popt_OBJS)'
1.1.1.3 misho 9456: CFLAGS="-I$srcdir/popt $CFLAGS"
1.1 misho 9457: if test x"$ALLOCA" != x
9458: then
9459: # this can be removed when/if we add an included alloca.c;
9460: # see autoconf documentation on AC_FUNC_ALLOCA
9461: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&5
9462: $as_echo "$as_me: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&2;}
9463: fi
9464: else
9465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466: $as_echo "no" >&6; }
9467: fi
9468:
1.1.1.2 misho 9469: # We default to using our zlib unless --with-included-zlib=no is given.
9470: if test x"$with_included_zlib" != x"no"; then
9471: with_included_zlib=yes
9472: elif test x"$ac_cv_header_zlib_h" != x"yes"; then
9473: with_included_zlib=yes
9474: fi
9475: if test x"$with_included_zlib" != x"yes"; then
9476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateParams in -lz" >&5
9477: $as_echo_n "checking for deflateParams in -lz... " >&6; }
9478: if ${ac_cv_lib_z_deflateParams+:} false; then :
9479: $as_echo_n "(cached) " >&6
9480: else
9481: ac_check_lib_save_LIBS=$LIBS
9482: LIBS="-lz $LIBS"
9483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484: /* end confdefs.h. */
9485:
9486: /* Override any GCC internal prototype to avoid an error.
9487: Use char because int might match the return type of a GCC
9488: builtin and then its argument prototype would still apply. */
9489: #ifdef __cplusplus
9490: extern "C"
9491: #endif
9492: char deflateParams ();
9493: int
9494: main ()
9495: {
9496: return deflateParams ();
9497: ;
9498: return 0;
9499: }
9500: _ACEOF
9501: if ac_fn_c_try_link "$LINENO"; then :
9502: ac_cv_lib_z_deflateParams=yes
9503: else
9504: ac_cv_lib_z_deflateParams=no
9505: fi
9506: rm -f core conftest.err conftest.$ac_objext \
9507: conftest$ac_exeext conftest.$ac_ext
9508: LIBS=$ac_check_lib_save_LIBS
9509: fi
9510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateParams" >&5
9511: $as_echo "$ac_cv_lib_z_deflateParams" >&6; }
9512: if test "x$ac_cv_lib_z_deflateParams" = xyes; then :
9513: cat >>confdefs.h <<_ACEOF
9514: #define HAVE_LIBZ 1
9515: _ACEOF
9516:
9517: LIBS="-lz $LIBS"
9518:
9519: else
9520: with_included_zlib=yes
9521: fi
9522:
9523: fi
9524:
9525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included zlib" >&5
9526: $as_echo_n "checking whether to use included zlib... " >&6; }
9527: if test x"$with_included_zlib" = x"yes"; then
9528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/zlib" >&5
9529: $as_echo "$srcdir/zlib" >&6; }
9530: BUILD_ZLIB='$(zlib_OBJS)'
1.1.1.3 misho 9531: CFLAGS="-I$srcdir/zlib $CFLAGS"
1.1.1.2 misho 9532: else
1.1.1.3 misho 9533:
9534: $as_echo "#define EXTERNAL_ZLIB 1" >>confdefs.h
9535:
1.1.1.2 misho 9536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537: $as_echo "no" >&6; }
9538: fi
9539:
1.1 misho 9540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned char" >&5
9541: $as_echo_n "checking for unsigned char... " >&6; }
9542: if ${rsync_cv_SIGNED_CHAR_OK+:} false; then :
9543: $as_echo_n "(cached) " >&6
9544: else
9545:
9546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547: /* end confdefs.h. */
9548:
9549: int
9550: main ()
9551: {
9552: signed char *s = ""
9553: ;
9554: return 0;
9555: }
9556: _ACEOF
9557: if ac_fn_c_try_compile "$LINENO"; then :
9558: rsync_cv_SIGNED_CHAR_OK=yes
9559: else
9560: rsync_cv_SIGNED_CHAR_OK=no
9561: fi
9562: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563: fi
9564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_SIGNED_CHAR_OK" >&5
9565: $as_echo "$rsync_cv_SIGNED_CHAR_OK" >&6; }
9566: if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then
9567:
9568: $as_echo "#define SIGNED_CHAR_OK 1" >>confdefs.h
9569:
9570: fi
9571:
9572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken readdir" >&5
9573: $as_echo_n "checking for broken readdir... " >&6; }
9574: if ${rsync_cv_HAVE_BROKEN_READDIR+:} false; then :
9575: $as_echo_n "(cached) " >&6
9576: else
9577:
9578: if test "$cross_compiling" = yes; then :
9579: rsync_cv_HAVE_BROKEN_READDIR=cross
9580: else
9581: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582: /* end confdefs.h. */
9583: #include <sys/types.h>
9584: #include <dirent.h>
1.1.1.4 ! misho 9585: int main(void) { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
1.1 misho 9586: if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
1.1.1.4 ! misho 9587: di->d_name[0] == 0) return 0; return 1;}
1.1 misho 9588: _ACEOF
9589: if ac_fn_c_try_run "$LINENO"; then :
9590: rsync_cv_HAVE_BROKEN_READDIR=yes
9591: else
9592: rsync_cv_HAVE_BROKEN_READDIR=no
9593: fi
9594: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9595: conftest.$ac_objext conftest.beam conftest.$ac_ext
9596: fi
9597:
9598: fi
9599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_READDIR" >&5
9600: $as_echo "$rsync_cv_HAVE_BROKEN_READDIR" >&6; }
9601: if test x"$rsync_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9602:
9603: $as_echo "#define HAVE_BROKEN_READDIR 1" >>confdefs.h
9604:
9605: fi
9606:
9607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimbuf" >&5
9608: $as_echo_n "checking for utimbuf... " >&6; }
9609: if ${rsync_cv_HAVE_STRUCT_UTIMBUF+:} false; then :
9610: $as_echo_n "(cached) " >&6
9611: else
9612:
9613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614: /* end confdefs.h. */
9615: #include <sys/types.h>
9616: #include <utime.h>
9617: int
9618: main ()
9619: {
1.1.1.4 ! misho 9620: struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; return utime("foo.c",&tbuf);
1.1 misho 9621: ;
9622: return 0;
9623: }
9624: _ACEOF
9625: if ac_fn_c_try_compile "$LINENO"; then :
9626: rsync_cv_HAVE_STRUCT_UTIMBUF=yes
9627: else
9628: rsync_cv_HAVE_STRUCT_UTIMBUF=no
9629: fi
9630: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631: fi
9632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_STRUCT_UTIMBUF" >&5
9633: $as_echo "$rsync_cv_HAVE_STRUCT_UTIMBUF" >&6; }
9634: if test x"$rsync_cv_HAVE_STRUCT_UTIMBUF" = x"yes"; then
9635:
9636: $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9637:
9638: fi
9639:
9640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gettimeofday takes tz argument" >&5
9641: $as_echo_n "checking if gettimeofday takes tz argument... " >&6; }
9642: if ${rsync_cv_HAVE_GETTIMEOFDAY_TZ+:} false; then :
9643: $as_echo_n "(cached) " >&6
9644: else
9645:
9646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647: /* end confdefs.h. */
9648: #include <sys/time.h>
9649: #include <unistd.h>
9650: int
9651: main ()
9652: {
1.1.1.4 ! misho 9653: struct timeval tv; return gettimeofday(&tv, NULL);
1.1 misho 9654: ;
9655: return 0;
9656: }
9657: _ACEOF
9658: if ac_fn_c_try_compile "$LINENO"; then :
9659: rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes
9660: else
9661: rsync_cv_HAVE_GETTIMEOFDAY_TZ=no
9662: fi
9663: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664: fi
9665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&5
9666: $as_echo "$rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
9667: if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
9668:
9669: $as_echo "#define HAVE_GETTIMEOFDAY_TZ 1" >>confdefs.h
9670:
9671: fi
9672:
9673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
9674: $as_echo_n "checking for C99 vsnprintf... " >&6; }
9675: if ${rsync_cv_HAVE_C99_VSNPRINTF+:} false; then :
9676: $as_echo_n "(cached) " >&6
9677: else
9678:
9679: if test "$cross_compiling" = yes; then :
9680: rsync_cv_HAVE_C99_VSNPRINTF=cross
9681: else
9682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683: /* end confdefs.h. */
9684:
9685: #include <sys/types.h>
9686: #include <stdarg.h>
1.1.1.4 ! misho 9687: #include <stdio.h>
! 9688: #include <stdlib.h>
! 9689: #include <string.h>
1.1 misho 9690: void foo(const char *format, ...) {
9691: va_list ap;
9692: int len;
1.1.1.4 ! misho 9693: static char buf[] = "12345678901234567890";
1.1 misho 9694:
9695: va_start(ap, format);
9696: len = vsnprintf(0, 0, format, ap);
9697: va_end(ap);
9698: if (len != 5) exit(1);
9699:
9700: if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9701: }
1.1.1.4 ! misho 9702: int main(void) { foo("hello"); return 0; }
1.1 misho 9703:
9704: _ACEOF
9705: if ac_fn_c_try_run "$LINENO"; then :
9706: rsync_cv_HAVE_C99_VSNPRINTF=yes
9707: else
9708: rsync_cv_HAVE_C99_VSNPRINTF=no
9709: fi
9710: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9711: conftest.$ac_objext conftest.beam conftest.$ac_ext
9712: fi
9713:
9714: fi
9715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_C99_VSNPRINTF" >&5
9716: $as_echo "$rsync_cv_HAVE_C99_VSNPRINTF" >&6; }
9717: if test x"$rsync_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9718:
9719: $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
9720:
9721: fi
9722:
9723:
9724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for secure mkstemp" >&5
9725: $as_echo_n "checking for secure mkstemp... " >&6; }
9726: if ${rsync_cv_HAVE_SECURE_MKSTEMP+:} false; then :
9727: $as_echo_n "(cached) " >&6
9728: else
9729:
9730: if test "$cross_compiling" = yes; then :
9731: rsync_cv_HAVE_SECURE_MKSTEMP=cross
9732: else
9733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734: /* end confdefs.h. */
9735: #include <stdlib.h>
9736: #include <sys/types.h>
9737: #include <sys/stat.h>
9738: #include <unistd.h>
1.1.1.4 ! misho 9739: int main(void) {
1.1 misho 9740: struct stat st;
9741: char tpl[20]="/tmp/test.XXXXXX";
9742: int fd = mkstemp(tpl);
1.1.1.4 ! misho 9743: if (fd == -1) return 1;
1.1 misho 9744: unlink(tpl);
1.1.1.4 ! misho 9745: if (fstat(fd, &st) != 0) return 1;
! 9746: if ((st.st_mode & 0777) != 0600) return 1;
! 9747: return 0;
1.1 misho 9748: }
9749: _ACEOF
9750: if ac_fn_c_try_run "$LINENO"; then :
9751: rsync_cv_HAVE_SECURE_MKSTEMP=yes
9752: else
9753: rsync_cv_HAVE_SECURE_MKSTEMP=no
9754: fi
9755: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9756: conftest.$ac_objext conftest.beam conftest.$ac_ext
9757: fi
9758:
9759: fi
9760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SECURE_MKSTEMP" >&5
9761: $as_echo "$rsync_cv_HAVE_SECURE_MKSTEMP" >&6; }
9762: if test x"$rsync_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
9763: case $host_os in
9764: hpux*)
9765: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&5
9766: $as_echo "$as_me: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&2;}
9767: ;;
9768: *)
9769:
9770: $as_echo "#define HAVE_SECURE_MKSTEMP 1" >>confdefs.h
9771:
9772: ;;
9773: esac
9774: fi
9775:
9776:
9777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates FIFOs" >&5
9778: $as_echo_n "checking if mknod creates FIFOs... " >&6; }
9779: if ${rsync_cv_MKNOD_CREATES_FIFOS+:} false; then :
9780: $as_echo_n "(cached) " >&6
9781: else
9782:
9783: if test "$cross_compiling" = yes; then :
9784: rsync_cv_MKNOD_CREATES_FIFOS=cross
9785: else
9786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787: /* end confdefs.h. */
9788:
9789: #include <stdio.h>
9790: #include <sys/stat.h>
9791: #include <errno.h>
1.1.1.4 ! misho 9792: #if HAVE_UNISTD_H
! 9793: # include <unistd.h>
! 9794: #endif
! 9795: int main(void) { int rc, ec; char *fn = "fifo-test";
1.1 misho 9796: unlink(fn); rc = mknod(fn,S_IFIFO,0600); ec = errno; unlink(fn);
9797: if (rc) {printf("(%d %d) ",rc,ec); return ec;}
9798: return 0;}
9799: _ACEOF
9800: if ac_fn_c_try_run "$LINENO"; then :
9801: rsync_cv_MKNOD_CREATES_FIFOS=yes
9802: else
9803: rsync_cv_MKNOD_CREATES_FIFOS=no
9804: fi
9805: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9806: conftest.$ac_objext conftest.beam conftest.$ac_ext
9807: fi
9808:
9809: fi
9810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_FIFOS" >&5
9811: $as_echo "$rsync_cv_MKNOD_CREATES_FIFOS" >&6; }
9812: if test x"$rsync_cv_MKNOD_CREATES_FIFOS" = x"yes"; then
9813:
9814: $as_echo "#define MKNOD_CREATES_FIFOS 1" >>confdefs.h
9815:
9816: fi
9817:
9818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates sockets" >&5
9819: $as_echo_n "checking if mknod creates sockets... " >&6; }
9820: if ${rsync_cv_MKNOD_CREATES_SOCKETS+:} false; then :
9821: $as_echo_n "(cached) " >&6
9822: else
9823:
9824: if test "$cross_compiling" = yes; then :
9825: rsync_cv_MKNOD_CREATES_SOCKETS=cross
9826: else
9827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828: /* end confdefs.h. */
9829:
9830: #include <stdio.h>
9831: #include <sys/stat.h>
9832: #include <errno.h>
1.1.1.4 ! misho 9833: #if HAVE_UNISTD_H
! 9834: # include <unistd.h>
! 9835: #endif
! 9836: int main(void) { int rc, ec; char *fn = "sock-test";
1.1 misho 9837: unlink(fn); rc = mknod(fn,S_IFSOCK,0600); ec = errno; unlink(fn);
9838: if (rc) {printf("(%d %d) ",rc,ec); return ec;}
9839: return 0;}
9840: _ACEOF
9841: if ac_fn_c_try_run "$LINENO"; then :
9842: rsync_cv_MKNOD_CREATES_SOCKETS=yes
9843: else
9844: rsync_cv_MKNOD_CREATES_SOCKETS=no
9845: fi
9846: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9847: conftest.$ac_objext conftest.beam conftest.$ac_ext
9848: fi
9849:
9850: fi
9851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_SOCKETS" >&5
9852: $as_echo "$rsync_cv_MKNOD_CREATES_SOCKETS" >&6; }
9853: if test x"$rsync_cv_MKNOD_CREATES_SOCKETS" = x"yes"; then
9854:
9855: $as_echo "#define MKNOD_CREATES_SOCKETS 1" >>confdefs.h
9856:
9857: fi
9858:
9859: #
9860: # The following test was mostly taken from the tcl/tk plus patches
9861: #
9862: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -c -o works" >&5
9863: $as_echo_n "checking whether -c -o works... " >&6; }
9864: if ${rsync_cv_DASHC_WORKS_WITH_DASHO+:} false; then :
9865: $as_echo_n "(cached) " >&6
9866: else
9867:
9868: rm -rf conftest*
9869: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! misho 9870: int main(void) { return 0; }
1.1 misho 9871: EOF
9872: ${CC-cc} -c -o conftest..o conftest.$ac_ext
9873: if test -f conftest..o; then
9874: rsync_cv_DASHC_WORKS_WITH_DASHO=yes
9875: else
9876: rsync_cv_DASHC_WORKS_WITH_DASHO=no
9877: fi
9878: rm -rf conftest*
9879:
9880: fi
9881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_DASHC_WORKS_WITH_DASHO" >&5
9882: $as_echo "$rsync_cv_DASHC_WORKS_WITH_DASHO" >&6; }
9883: if test x"$rsync_cv_DASHC_WORKS_WITH_DASHO" = x"yes"; then
9884: OBJ_SAVE="#"
9885: OBJ_RESTORE="#"
9886: CC_SHOBJ_FLAG='-o $@'
9887: else
9888: OBJ_SAVE=' @b=`basename $@ .o`;rm -f $$b.o.sav;if test -f $$b.o; then mv $$b.o $$b.o.sav;fi;'
9889: OBJ_RESTORE=' @b=`basename $@ .o`;if test "$$b.o" != "$@"; then mv $$b.o $@; if test -f $$b.o.sav; then mv $$b.o.sav $$b.o; fi; fi'
9890: CC_SHOBJ_FLAG=""
9891: fi
9892:
9893:
9894:
9895:
9896:
9897:
9898:
1.1.1.2 misho 9899:
1.1 misho 9900: for ac_func in _acl __acl _facl __facl
9901: do :
9902: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9903: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9904: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9905: cat >>confdefs.h <<_ACEOF
9906: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9907: _ACEOF
9908:
9909: fi
9910: done
9911:
9912: #################################################
9913: # check for ACL support
9914:
9915: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ACLs" >&5
9916: $as_echo_n "checking whether to support ACLs... " >&6; }
9917: # Check whether --enable-acl-support was given.
9918: if test "${enable_acl_support+set}" = set; then :
9919: enableval=$enable_acl_support;
9920: fi
9921:
9922:
9923: if test x"$enable_acl_support" = x"no"; then
9924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925: $as_echo "no" >&6; }
9926: else
9927: case "$host_os" in
9928: *sysv5*)
9929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using UnixWare ACLs" >&5
9930: $as_echo "Using UnixWare ACLs" >&6; }
9931:
9932: $as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
9933:
9934:
9935: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9936:
9937: ;;
1.1.1.4 ! misho 9938: solaris*)
1.1 misho 9939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5
9940: $as_echo "Using solaris ACLs" >&6; }
9941:
9942: $as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
9943:
9944: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9945:
9946: ;;
9947: *irix*)
9948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using IRIX ACLs" >&5
9949: $as_echo "Using IRIX ACLs" >&6; }
9950:
9951: $as_echo "#define HAVE_IRIX_ACLS 1" >>confdefs.h
9952:
9953: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9954:
9955: ;;
9956: *aix*)
9957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using AIX ACLs" >&5
9958: $as_echo "Using AIX ACLs" >&6; }
9959:
9960: $as_echo "#define HAVE_AIX_ACLS 1" >>confdefs.h
9961:
9962: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9963:
9964: ;;
9965: *osf*)
9966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tru64 ACLs" >&5
9967: $as_echo "Using Tru64 ACLs" >&6; }
9968:
9969: $as_echo "#define HAVE_TRU64_ACLS 1" >>confdefs.h
9970:
9971: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9972:
9973: LIBS="$LIBS -lpacl"
9974: ;;
9975: darwin*)
9976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X ACLs" >&5
9977: $as_echo "Using OS X ACLs" >&6; }
9978:
9979: $as_echo "#define HAVE_OSX_ACLS 1" >>confdefs.h
9980:
9981: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9982:
9983: ;;
1.1.1.4 ! misho 9984: *hpux*|*nsk*)
! 9985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using HPUX ACLs" >&5
! 9986: $as_echo "Using HPUX ACLs" >&6; }
! 9987:
! 9988: $as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h
! 9989:
! 9990: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
! 9991:
! 9992: ;;
1.1 misho 9993: *)
9994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: running tests:" >&5
9995: $as_echo "running tests:" >&6; }
9996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
9997: $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
9998: if ${ac_cv_lib_acl_acl_get_file+:} false; then :
9999: $as_echo_n "(cached) " >&6
10000: else
10001: ac_check_lib_save_LIBS=$LIBS
10002: LIBS="-lacl $LIBS"
10003: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004: /* end confdefs.h. */
10005:
10006: /* Override any GCC internal prototype to avoid an error.
10007: Use char because int might match the return type of a GCC
10008: builtin and then its argument prototype would still apply. */
10009: #ifdef __cplusplus
10010: extern "C"
10011: #endif
10012: char acl_get_file ();
10013: int
10014: main ()
10015: {
10016: return acl_get_file ();
10017: ;
10018: return 0;
10019: }
10020: _ACEOF
10021: if ac_fn_c_try_link "$LINENO"; then :
10022: ac_cv_lib_acl_acl_get_file=yes
10023: else
10024: ac_cv_lib_acl_acl_get_file=no
10025: fi
10026: rm -f core conftest.err conftest.$ac_objext \
10027: conftest$ac_exeext conftest.$ac_ext
10028: LIBS=$ac_check_lib_save_LIBS
10029: fi
10030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
10031: $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
10032: if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
10033: cat >>confdefs.h <<_ACEOF
10034: #define HAVE_LIBACL 1
10035: _ACEOF
10036:
10037: LIBS="-lacl $LIBS"
10038:
10039: fi
10040:
1.1.1.3 misho 10041: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
1.1 misho 10042: $as_echo_n "checking for ACL support... " >&6; }
10043: if ${samba_cv_HAVE_POSIX_ACLS+:} false; then :
10044: $as_echo_n "(cached) " >&6
10045: else
10046:
10047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048: /* end confdefs.h. */
10049: #include <sys/types.h>
10050: #include <sys/acl.h>
10051: int
10052: main ()
10053: {
10054: acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
10055: ;
10056: return 0;
10057: }
10058: _ACEOF
10059: if ac_fn_c_try_link "$LINENO"; then :
10060: samba_cv_HAVE_POSIX_ACLS=yes
10061: else
10062: samba_cv_HAVE_POSIX_ACLS=no
10063: fi
10064: rm -f core conftest.err conftest.$ac_objext \
10065: conftest$ac_exeext conftest.$ac_ext
10066: fi
10067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_POSIX_ACLS" >&5
10068: $as_echo "$samba_cv_HAVE_POSIX_ACLS" >&6; }
10069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACL test results" >&5
10070: $as_echo_n "checking ACL test results... " >&6; }
10071: if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
10072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using posix ACLs" >&5
10073: $as_echo "Using posix ACLs" >&6; }
10074:
10075: $as_echo "#define HAVE_POSIX_ACLS 1" >>confdefs.h
10076:
10077: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
10078:
10079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_perm_np" >&5
10080: $as_echo_n "checking for acl_get_perm_np... " >&6; }
10081: if ${samba_cv_HAVE_ACL_GET_PERM_NP+:} false; then :
10082: $as_echo_n "(cached) " >&6
10083: else
10084:
10085: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086: /* end confdefs.h. */
10087: #include <sys/types.h>
10088: #include <sys/acl.h>
10089: int
10090: main ()
10091: {
10092: acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
10093: ;
10094: return 0;
10095: }
10096: _ACEOF
10097: if ac_fn_c_try_link "$LINENO"; then :
10098: samba_cv_HAVE_ACL_GET_PERM_NP=yes
10099: else
10100: samba_cv_HAVE_ACL_GET_PERM_NP=no
10101: fi
10102: rm -f core conftest.err conftest.$ac_objext \
10103: conftest$ac_exeext conftest.$ac_ext
10104: fi
10105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
10106: $as_echo "$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
10107: if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
10108:
10109: $as_echo "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
10110:
10111: fi
10112: else
10113: if test x"$enable_acl_support" = x"yes"; then
10114: as_fn_error $? "Failed to find ACL support" "$LINENO" 5
10115: else
10116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: No ACL support found" >&5
10117: $as_echo "No ACL support found" >&6; }
10118: fi
10119: fi
10120: ;;
10121: esac
10122: fi
10123:
10124: #################################################
10125: # check for extended attribute support
10126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support extended attributes" >&5
10127: $as_echo_n "checking whether to support extended attributes... " >&6; }
10128: # Check whether --enable-xattr-support was given.
10129: if test "${enable_xattr_support+set}" = set; then :
10130: enableval=$enable_xattr_support;
10131: else
1.1.1.2 misho 10132: case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link$ac_cv_func_attropen" in
1.1 misho 10133: *yes*) enable_xattr_support=maybe ;;
10134: *) enable_xattr_support=no ;;
10135: esac
10136: fi
10137:
10138:
10139: if test x"$enable_xattr_support" = x"no"; then
10140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141: $as_echo "no" >&6; }
10142: else
10143: case "$host_os" in
1.1.1.4 ! misho 10144: *linux*|*netbsd*|*cygwin*)
1.1 misho 10145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Linux xattrs" >&5
10146: $as_echo "Using Linux xattrs" >&6; }
10147:
10148: $as_echo "#define HAVE_LINUX_XATTRS 1" >>confdefs.h
10149:
10150: $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
10151:
1.1.1.2 misho 10152:
10153: $as_echo "#define NO_SYMLINK_USER_XATTRS 1" >>confdefs.h
10154:
1.1.1.3 misho 10155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
10156: $as_echo_n "checking for getxattr in -lattr... " >&6; }
10157: if ${ac_cv_lib_attr_getxattr+:} false; then :
10158: $as_echo_n "(cached) " >&6
10159: else
10160: ac_check_lib_save_LIBS=$LIBS
10161: LIBS="-lattr $LIBS"
10162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163: /* end confdefs.h. */
10164:
10165: /* Override any GCC internal prototype to avoid an error.
10166: Use char because int might match the return type of a GCC
10167: builtin and then its argument prototype would still apply. */
10168: #ifdef __cplusplus
10169: extern "C"
10170: #endif
10171: char getxattr ();
10172: int
10173: main ()
10174: {
10175: return getxattr ();
10176: ;
10177: return 0;
10178: }
10179: _ACEOF
10180: if ac_fn_c_try_link "$LINENO"; then :
10181: ac_cv_lib_attr_getxattr=yes
10182: else
10183: ac_cv_lib_attr_getxattr=no
10184: fi
10185: rm -f core conftest.err conftest.$ac_objext \
10186: conftest$ac_exeext conftest.$ac_ext
10187: LIBS=$ac_check_lib_save_LIBS
10188: fi
10189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
10190: $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
10191: if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
10192: cat >>confdefs.h <<_ACEOF
10193: #define HAVE_LIBATTR 1
10194: _ACEOF
10195:
10196: LIBS="-lattr $LIBS"
10197:
10198: fi
10199:
1.1 misho 10200: ;;
10201: darwin*)
10202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X xattrs" >&5
10203: $as_echo "Using OS X xattrs" >&6; }
10204:
10205: $as_echo "#define HAVE_OSX_XATTRS 1" >>confdefs.h
10206:
10207: $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
10208:
10209:
10210: $as_echo "#define NO_DEVICE_XATTRS 1" >>confdefs.h
10211:
10212:
10213: $as_echo "#define NO_SPECIAL_XATTRS 1" >>confdefs.h
10214:
10215: ;;
10216: freebsd*)
10217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using FreeBSD extattrs" >&5
10218: $as_echo "Using FreeBSD extattrs" >&6; }
10219:
10220: $as_echo "#define HAVE_FREEBSD_XATTRS 1" >>confdefs.h
10221:
10222: $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
10223:
10224: ;;
10225: solaris*)
1.1.1.2 misho 10226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Solaris xattrs" >&5
10227: $as_echo "Using Solaris xattrs" >&6; }
10228:
10229: $as_echo "#define HAVE_SOLARIS_XATTRS 1" >>confdefs.h
10230:
10231: $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
10232:
1.1 misho 10233:
10234: $as_echo "#define NO_SYMLINK_XATTRS 1" >>confdefs.h
10235:
10236: ;;
10237: *)
10238: if test x"$enable_xattr_support" = x"yes"; then
10239: as_fn_error $? "Failed to find extended attribute support" "$LINENO" 5
10240: else
10241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: No extended attribute support found" >&5
10242: $as_echo "No extended attribute support found" >&6; }
10243: fi
10244: ;;
10245: esac
10246: fi
10247:
10248: if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x"$enable_iconv" = x"no"; then
10249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
10250: $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
10251: OLD_CFLAGS="$CFLAGS"
10252: CFLAGS="$CFLAGS -Wno-unused-parameter"
10253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254: /* end confdefs.h. */
10255: #include <stdio.h>
10256: int
10257: main ()
10258: {
10259: printf("hello\n");
10260: ;
10261: return 0;
10262: }
10263: _ACEOF
10264: if ac_fn_c_try_link "$LINENO"; then :
10265: rsync_warn_flag=yes
10266: else
10267: rsync_warn_flag=no
10268: fi
10269: rm -f core conftest.err conftest.$ac_objext \
10270: conftest$ac_exeext conftest.$ac_ext
10271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_warn_flag" >&5
10272: $as_echo "$rsync_warn_flag" >&6; }
10273: if test x"$rsync_warn_flag" = x"no"; then
10274: CFLAGS="$OLD_CFLAGS"
10275: fi
10276: fi
10277:
1.1.1.4 ! misho 10278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mysql DB support" >&5
! 10279: $as_echo_n "checking whether to include mysql DB support... " >&6; }
! 10280: # Check whether --enable-mysql was given.
! 10281: if test "${enable_mysql+set}" = set; then :
! 10282: enableval=$enable_mysql;
! 10283: fi
! 10284:
! 10285:
! 10286: if test x"$enable_mysql" = x"no"; then
! 10287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10288: $as_echo "no" >&6; }
! 10289: else
! 10290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 10291: $as_echo "yes" >&6; }
! 10292: # Extract the first word of "mysql_config", so it can be a program name with args.
! 10293: set dummy mysql_config; ac_word=$2
! 10294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10295: $as_echo_n "checking for $ac_word... " >&6; }
! 10296: if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
! 10297: $as_echo_n "(cached) " >&6
! 10298: else
! 10299: if test -n "$MYSQL_CONFIG"; then
! 10300: ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
! 10301: else
! 10302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 10303: for as_dir in $PATH
! 10304: do
! 10305: IFS=$as_save_IFS
! 10306: test -z "$as_dir" && as_dir=.
! 10307: for ac_exec_ext in '' $ac_executable_extensions; do
! 10308: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 10309: ac_cv_prog_MYSQL_CONFIG="1"
! 10310: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 10311: break 2
! 10312: fi
! 10313: done
! 10314: done
! 10315: IFS=$as_save_IFS
! 10316:
! 10317: test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="0"
! 10318: fi
! 10319: fi
! 10320: MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
! 10321: if test -n "$MYSQL_CONFIG"; then
! 10322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
! 10323: $as_echo "$MYSQL_CONFIG" >&6; }
! 10324: else
! 10325: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10326: $as_echo "no" >&6; }
! 10327: fi
! 10328:
! 10329:
! 10330: if test x$MYSQL_CONFIG = x1; then
! 10331: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql version >= 4" >&5
! 10332: $as_echo_n "checking for mysql version >= 4... " >&6; }
! 10333: mysql_version=`mysql_config --version`
! 10334: mysql_major_version=`echo $mysql_version | sed 's/\..*//'`
! 10335: if test $mysql_major_version -lt 4; then
! 10336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no.. skipping MySQL" >&5
! 10337: $as_echo "no.. skipping MySQL" >&6; }
! 10338: else
! 10339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 10340: $as_echo "yes" >&6; }
! 10341:
! 10342: MYSQL_CFLAGS=`mysql_config --cflags`
! 10343: MYSQL_LIBS=`mysql_config --libs`
! 10344:
! 10345: CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
! 10346: LIBS="$MYSQL_LIBS $LIBS"
! 10347:
! 10348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
! 10349: $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
! 10350: if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
! 10351: $as_echo_n "(cached) " >&6
! 10352: else
! 10353: ac_check_lib_save_LIBS=$LIBS
! 10354: LIBS="-lmysqlclient $LIBS"
! 10355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 10356: /* end confdefs.h. */
! 10357:
! 10358: /* Override any GCC internal prototype to avoid an error.
! 10359: Use char because int might match the return type of a GCC
! 10360: builtin and then its argument prototype would still apply. */
! 10361: #ifdef __cplusplus
! 10362: extern "C"
! 10363: #endif
! 10364: char mysql_init ();
! 10365: int
! 10366: main ()
! 10367: {
! 10368: return mysql_init ();
! 10369: ;
! 10370: return 0;
! 10371: }
! 10372: _ACEOF
! 10373: if ac_fn_c_try_link "$LINENO"; then :
! 10374: ac_cv_lib_mysqlclient_mysql_init=yes
! 10375: else
! 10376: ac_cv_lib_mysqlclient_mysql_init=no
! 10377: fi
! 10378: rm -f core conftest.err conftest.$ac_objext \
! 10379: conftest$ac_exeext conftest.$ac_ext
! 10380: LIBS=$ac_check_lib_save_LIBS
! 10381: fi
! 10382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
! 10383: $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
! 10384: if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
! 10385: cat >>confdefs.h <<_ACEOF
! 10386: #define HAVE_LIBMYSQLCLIENT 1
! 10387: _ACEOF
! 10388:
! 10389: LIBS="-lmysqlclient $LIBS"
! 10390:
! 10391: fi
! 10392:
! 10393: fi
! 10394: fi
! 10395: fi
! 10396:
! 10397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include sqlite DB support" >&5
! 10398: $as_echo_n "checking whether to include sqlite DB support... " >&6; }
! 10399: # Check whether --enable-sqlite was given.
! 10400: if test "${enable_sqlite+set}" = set; then :
! 10401: enableval=$enable_sqlite;
! 10402: fi
! 10403:
! 10404:
! 10405: if test x"$enable_sqlite" = x"no"; then
! 10406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10407: $as_echo "no" >&6; }
! 10408: else
! 10409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
! 10410: $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
! 10411: if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
! 10412: $as_echo_n "(cached) " >&6
! 10413: else
! 10414: ac_check_lib_save_LIBS=$LIBS
! 10415: LIBS="-lsqlite3 $LIBS"
! 10416: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 10417: /* end confdefs.h. */
! 10418:
! 10419: /* Override any GCC internal prototype to avoid an error.
! 10420: Use char because int might match the return type of a GCC
! 10421: builtin and then its argument prototype would still apply. */
! 10422: #ifdef __cplusplus
! 10423: extern "C"
! 10424: #endif
! 10425: char sqlite3_open ();
! 10426: int
! 10427: main ()
! 10428: {
! 10429: return sqlite3_open ();
! 10430: ;
! 10431: return 0;
! 10432: }
! 10433: _ACEOF
! 10434: if ac_fn_c_try_link "$LINENO"; then :
! 10435: ac_cv_lib_sqlite3_sqlite3_open=yes
! 10436: else
! 10437: ac_cv_lib_sqlite3_sqlite3_open=no
! 10438: fi
! 10439: rm -f core conftest.err conftest.$ac_objext \
! 10440: conftest$ac_exeext conftest.$ac_ext
! 10441: LIBS=$ac_check_lib_save_LIBS
! 10442: fi
! 10443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
! 10444: $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
! 10445: if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
! 10446: cat >>confdefs.h <<_ACEOF
! 10447: #define HAVE_LIBSQLITE3 1
! 10448: _ACEOF
! 10449:
! 10450: LIBS="-lsqlite3 $LIBS"
! 10451:
! 10452: fi
! 10453:
! 10454: for ac_func in sqlite3_open_v2 sqlite3_prepare_v2
! 10455: do :
! 10456: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 10457: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 10458: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 10459: cat >>confdefs.h <<_ACEOF
! 10460: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 10461: _ACEOF
! 10462:
! 10463: fi
! 10464: done
! 10465:
! 10466: fi
! 10467:
1.1 misho 10468: case "$CC" in
10469: ' checker'*|checker*)
10470:
10471: $as_echo "#define FORCE_FD_ZERO_MEMSET 1" >>confdefs.h
10472:
10473: ;;
10474: esac
10475:
10476: ac_config_files="$ac_config_files Makefile lib/dummy zlib/dummy popt/dummy shconfig"
10477:
10478: cat >confcache <<\_ACEOF
10479: # This file is a shell script that caches the results of configure
10480: # tests run on this system so they can be shared between configure
10481: # scripts and configure runs, see configure's option --config-cache.
10482: # It is not useful on other systems. If it contains results you don't
10483: # want to keep, you may remove or edit it.
10484: #
10485: # config.status only pays attention to the cache file if you give it
10486: # the --recheck option to rerun configure.
10487: #
10488: # `ac_cv_env_foo' variables (set or unset) will be overridden when
10489: # loading this file, other *unset* `ac_cv_foo' will be assigned the
10490: # following values.
10491:
10492: _ACEOF
10493:
10494: # The following way of writing the cache mishandles newlines in values,
10495: # but we know of no workaround that is simple, portable, and efficient.
10496: # So, we kill variables containing newlines.
10497: # Ultrix sh set writes to stderr and can't be redirected directly,
10498: # and sets the high bit in the cache file unless we assign to the vars.
10499: (
10500: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10501: eval ac_val=\$$ac_var
10502: case $ac_val in #(
10503: *${as_nl}*)
10504: case $ac_var in #(
10505: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10506: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10507: esac
10508: case $ac_var in #(
10509: _ | IFS | as_nl) ;; #(
10510: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10511: *) { eval $ac_var=; unset $ac_var;} ;;
10512: esac ;;
10513: esac
10514: done
10515:
10516: (set) 2>&1 |
10517: case $as_nl`(ac_space=' '; set) 2>&1` in #(
10518: *${as_nl}ac_space=\ *)
10519: # `set' does not quote correctly, so add quotes: double-quote
10520: # substitution turns \\\\ into \\, and sed turns \\ into \.
10521: sed -n \
10522: "s/'/'\\\\''/g;
10523: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10524: ;; #(
10525: *)
10526: # `set' quotes correctly as required by POSIX, so do not add quotes.
10527: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10528: ;;
10529: esac |
10530: sort
10531: ) |
10532: sed '
10533: /^ac_cv_env_/b end
10534: t clear
10535: :clear
10536: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10537: t end
10538: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10539: :end' >>confcache
10540: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10541: if test -w "$cache_file"; then
10542: if test "x$cache_file" != "x/dev/null"; then
10543: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10544: $as_echo "$as_me: updating cache $cache_file" >&6;}
10545: if test ! -f "$cache_file" || test -h "$cache_file"; then
10546: cat confcache >"$cache_file"
10547: else
10548: case $cache_file in #(
10549: */* | ?:*)
10550: mv -f confcache "$cache_file"$$ &&
10551: mv -f "$cache_file"$$ "$cache_file" ;; #(
10552: *)
10553: mv -f confcache "$cache_file" ;;
10554: esac
10555: fi
10556: fi
10557: else
10558: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10559: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10560: fi
10561: fi
10562: rm -f confcache
10563:
10564: test "x$prefix" = xNONE && prefix=$ac_default_prefix
10565: # Let make expand exec_prefix.
10566: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10567:
10568: DEFS=-DHAVE_CONFIG_H
10569:
10570: ac_libobjs=
10571: ac_ltlibobjs=
10572: U=
10573: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10574: # 1. Remove the extension, and $U if already installed.
10575: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10576: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10577: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10578: # will be set to the directory where LIBOBJS objects are built.
10579: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10580: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10581: done
10582: LIBOBJS=$ac_libobjs
10583:
10584: LTLIBOBJS=$ac_ltlibobjs
10585:
10586:
10587:
10588:
10589: : "${CONFIG_STATUS=./config.status}"
10590: ac_write_fail=0
10591: ac_clean_files_save=$ac_clean_files
10592: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10593: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10594: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10595: as_write_fail=0
10596: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10597: #! $SHELL
10598: # Generated by $as_me.
10599: # Run this file to recreate the current configuration.
10600: # Compiler output produced by configure, useful for debugging
10601: # configure, is in config.log if it exists.
10602:
10603: debug=false
10604: ac_cs_recheck=false
10605: ac_cs_silent=false
10606:
10607: SHELL=\${CONFIG_SHELL-$SHELL}
10608: export SHELL
10609: _ASEOF
10610: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10611: ## -------------------- ##
10612: ## M4sh Initialization. ##
10613: ## -------------------- ##
10614:
10615: # Be more Bourne compatible
10616: DUALCASE=1; export DUALCASE # for MKS sh
10617: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10618: emulate sh
10619: NULLCMD=:
10620: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10621: # is contrary to our usage. Disable this feature.
10622: alias -g '${1+"$@"}'='"$@"'
10623: setopt NO_GLOB_SUBST
10624: else
10625: case `(set -o) 2>/dev/null` in #(
10626: *posix*) :
10627: set -o posix ;; #(
10628: *) :
10629: ;;
10630: esac
10631: fi
10632:
10633:
10634: as_nl='
10635: '
10636: export as_nl
10637: # Printing a long string crashes Solaris 7 /usr/bin/printf.
10638: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10639: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10640: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10641: # Prefer a ksh shell builtin over an external printf program on Solaris,
10642: # but without wasting forks for bash or zsh.
10643: if test -z "$BASH_VERSION$ZSH_VERSION" \
10644: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10645: as_echo='print -r --'
10646: as_echo_n='print -rn --'
10647: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10648: as_echo='printf %s\n'
10649: as_echo_n='printf %s'
10650: else
10651: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10652: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10653: as_echo_n='/usr/ucb/echo -n'
10654: else
10655: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10656: as_echo_n_body='eval
10657: arg=$1;
10658: case $arg in #(
10659: *"$as_nl"*)
10660: expr "X$arg" : "X\\(.*\\)$as_nl";
10661: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10662: esac;
10663: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10664: '
10665: export as_echo_n_body
10666: as_echo_n='sh -c $as_echo_n_body as_echo'
10667: fi
10668: export as_echo_body
10669: as_echo='sh -c $as_echo_body as_echo'
10670: fi
10671:
10672: # The user is always right.
10673: if test "${PATH_SEPARATOR+set}" != set; then
10674: PATH_SEPARATOR=:
10675: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10676: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10677: PATH_SEPARATOR=';'
10678: }
10679: fi
10680:
10681:
10682: # IFS
10683: # We need space, tab and new line, in precisely that order. Quoting is
10684: # there to prevent editors from complaining about space-tab.
10685: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10686: # splitting by setting IFS to empty value.)
10687: IFS=" "" $as_nl"
10688:
10689: # Find who we are. Look in the path if we contain no directory separator.
10690: as_myself=
10691: case $0 in #((
10692: *[\\/]* ) as_myself=$0 ;;
10693: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694: for as_dir in $PATH
10695: do
10696: IFS=$as_save_IFS
10697: test -z "$as_dir" && as_dir=.
10698: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10699: done
10700: IFS=$as_save_IFS
10701:
10702: ;;
10703: esac
10704: # We did not find ourselves, most probably we were run as `sh COMMAND'
10705: # in which case we are not to be found in the path.
10706: if test "x$as_myself" = x; then
10707: as_myself=$0
10708: fi
10709: if test ! -f "$as_myself"; then
10710: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10711: exit 1
10712: fi
10713:
10714: # Unset variables that we do not need and which cause bugs (e.g. in
10715: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10716: # suppresses any "Segmentation fault" message there. '((' could
10717: # trigger a bug in pdksh 5.2.14.
10718: for as_var in BASH_ENV ENV MAIL MAILPATH
10719: do eval test x\${$as_var+set} = xset \
10720: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10721: done
10722: PS1='$ '
10723: PS2='> '
10724: PS4='+ '
10725:
10726: # NLS nuisances.
10727: LC_ALL=C
10728: export LC_ALL
10729: LANGUAGE=C
10730: export LANGUAGE
10731:
10732: # CDPATH.
10733: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10734:
10735:
10736: # as_fn_error STATUS ERROR [LINENO LOG_FD]
10737: # ----------------------------------------
10738: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10739: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10740: # script with STATUS, using 1 if that was 0.
10741: as_fn_error ()
10742: {
10743: as_status=$1; test $as_status -eq 0 && as_status=1
10744: if test "$4"; then
10745: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10746: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10747: fi
10748: $as_echo "$as_me: error: $2" >&2
10749: as_fn_exit $as_status
10750: } # as_fn_error
10751:
10752:
10753: # as_fn_set_status STATUS
10754: # -----------------------
10755: # Set $? to STATUS, without forking.
10756: as_fn_set_status ()
10757: {
10758: return $1
10759: } # as_fn_set_status
10760:
10761: # as_fn_exit STATUS
10762: # -----------------
10763: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10764: as_fn_exit ()
10765: {
10766: set +e
10767: as_fn_set_status $1
10768: exit $1
10769: } # as_fn_exit
10770:
10771: # as_fn_unset VAR
10772: # ---------------
10773: # Portably unset VAR.
10774: as_fn_unset ()
10775: {
10776: { eval $1=; unset $1;}
10777: }
10778: as_unset=as_fn_unset
10779: # as_fn_append VAR VALUE
10780: # ----------------------
10781: # Append the text in VALUE to the end of the definition contained in VAR. Take
10782: # advantage of any shell optimizations that allow amortized linear growth over
10783: # repeated appends, instead of the typical quadratic growth present in naive
10784: # implementations.
10785: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10786: eval 'as_fn_append ()
10787: {
10788: eval $1+=\$2
10789: }'
10790: else
10791: as_fn_append ()
10792: {
10793: eval $1=\$$1\$2
10794: }
10795: fi # as_fn_append
10796:
10797: # as_fn_arith ARG...
10798: # ------------------
10799: # Perform arithmetic evaluation on the ARGs, and store the result in the
10800: # global $as_val. Take advantage of shells that can avoid forks. The arguments
10801: # must be portable across $(()) and expr.
10802: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10803: eval 'as_fn_arith ()
10804: {
10805: as_val=$(( $* ))
10806: }'
10807: else
10808: as_fn_arith ()
10809: {
10810: as_val=`expr "$@" || test $? -eq 1`
10811: }
10812: fi # as_fn_arith
10813:
10814:
10815: if expr a : '\(a\)' >/dev/null 2>&1 &&
10816: test "X`expr 00001 : '.*\(...\)'`" = X001; then
10817: as_expr=expr
10818: else
10819: as_expr=false
10820: fi
10821:
10822: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10823: as_basename=basename
10824: else
10825: as_basename=false
10826: fi
10827:
10828: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10829: as_dirname=dirname
10830: else
10831: as_dirname=false
10832: fi
10833:
10834: as_me=`$as_basename -- "$0" ||
10835: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10836: X"$0" : 'X\(//\)$' \| \
10837: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10838: $as_echo X/"$0" |
10839: sed '/^.*\/\([^/][^/]*\)\/*$/{
10840: s//\1/
10841: q
10842: }
10843: /^X\/\(\/\/\)$/{
10844: s//\1/
10845: q
10846: }
10847: /^X\/\(\/\).*/{
10848: s//\1/
10849: q
10850: }
10851: s/.*/./; q'`
10852:
10853: # Avoid depending upon Character Ranges.
10854: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10855: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10856: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10857: as_cr_digits='0123456789'
10858: as_cr_alnum=$as_cr_Letters$as_cr_digits
10859:
10860: ECHO_C= ECHO_N= ECHO_T=
10861: case `echo -n x` in #(((((
10862: -n*)
10863: case `echo 'xy\c'` in
10864: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10865: xy) ECHO_C='\c';;
10866: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10867: ECHO_T=' ';;
10868: esac;;
10869: *)
10870: ECHO_N='-n';;
10871: esac
10872:
10873: rm -f conf$$ conf$$.exe conf$$.file
10874: if test -d conf$$.dir; then
10875: rm -f conf$$.dir/conf$$.file
10876: else
10877: rm -f conf$$.dir
10878: mkdir conf$$.dir 2>/dev/null
10879: fi
10880: if (echo >conf$$.file) 2>/dev/null; then
10881: if ln -s conf$$.file conf$$ 2>/dev/null; then
10882: as_ln_s='ln -s'
10883: # ... but there are two gotchas:
10884: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10885: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3 misho 10886: # In both cases, we have to default to `cp -pR'.
1.1 misho 10887: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 misho 10888: as_ln_s='cp -pR'
1.1 misho 10889: elif ln conf$$.file conf$$ 2>/dev/null; then
10890: as_ln_s=ln
10891: else
1.1.1.3 misho 10892: as_ln_s='cp -pR'
1.1 misho 10893: fi
10894: else
1.1.1.3 misho 10895: as_ln_s='cp -pR'
1.1 misho 10896: fi
10897: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10898: rmdir conf$$.dir 2>/dev/null
10899:
10900:
10901: # as_fn_mkdir_p
10902: # -------------
10903: # Create "$as_dir" as a directory, including parents if necessary.
10904: as_fn_mkdir_p ()
10905: {
10906:
10907: case $as_dir in #(
10908: -*) as_dir=./$as_dir;;
10909: esac
10910: test -d "$as_dir" || eval $as_mkdir_p || {
10911: as_dirs=
10912: while :; do
10913: case $as_dir in #(
10914: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10915: *) as_qdir=$as_dir;;
10916: esac
10917: as_dirs="'$as_qdir' $as_dirs"
10918: as_dir=`$as_dirname -- "$as_dir" ||
10919: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10920: X"$as_dir" : 'X\(//\)[^/]' \| \
10921: X"$as_dir" : 'X\(//\)$' \| \
10922: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10923: $as_echo X"$as_dir" |
10924: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10925: s//\1/
10926: q
10927: }
10928: /^X\(\/\/\)[^/].*/{
10929: s//\1/
10930: q
10931: }
10932: /^X\(\/\/\)$/{
10933: s//\1/
10934: q
10935: }
10936: /^X\(\/\).*/{
10937: s//\1/
10938: q
10939: }
10940: s/.*/./; q'`
10941: test -d "$as_dir" && break
10942: done
10943: test -z "$as_dirs" || eval "mkdir $as_dirs"
10944: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10945:
10946:
10947: } # as_fn_mkdir_p
10948: if mkdir -p . 2>/dev/null; then
10949: as_mkdir_p='mkdir -p "$as_dir"'
10950: else
10951: test -d ./-p && rmdir ./-p
10952: as_mkdir_p=false
10953: fi
10954:
1.1.1.3 misho 10955:
10956: # as_fn_executable_p FILE
10957: # -----------------------
10958: # Test if FILE is an executable regular file.
10959: as_fn_executable_p ()
10960: {
10961: test -f "$1" && test -x "$1"
10962: } # as_fn_executable_p
10963: as_test_x='test -x'
10964: as_executable_p=as_fn_executable_p
1.1 misho 10965:
10966: # Sed expression to map a string onto a valid CPP name.
10967: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10968:
10969: # Sed expression to map a string onto a valid variable name.
10970: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10971:
10972:
10973: exec 6>&1
10974: ## ----------------------------------- ##
10975: ## Main body of $CONFIG_STATUS script. ##
10976: ## ----------------------------------- ##
10977: _ASEOF
10978: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10979:
10980: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10981: # Save the log message, to keep $0 and so on meaningful, and to
10982: # report actual input values of CONFIG_FILES etc. instead of their
10983: # values after options handling.
10984: ac_log="
1.1.1.4 ! misho 10985: This file was extended by rsync $as_me , which was
1.1.1.3 misho 10986: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 10987:
10988: CONFIG_FILES = $CONFIG_FILES
10989: CONFIG_HEADERS = $CONFIG_HEADERS
10990: CONFIG_LINKS = $CONFIG_LINKS
10991: CONFIG_COMMANDS = $CONFIG_COMMANDS
10992: $ $0 $@
10993:
10994: on `(hostname || uname -n) 2>/dev/null | sed 1q`
10995: "
10996:
10997: _ACEOF
10998:
10999: case $ac_config_files in *"
11000: "*) set x $ac_config_files; shift; ac_config_files=$*;;
11001: esac
11002:
11003: case $ac_config_headers in *"
11004: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11005: esac
11006:
11007:
11008: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11009: # Files that config.status was made for.
11010: config_files="$ac_config_files"
11011: config_headers="$ac_config_headers"
11012:
11013: _ACEOF
11014:
11015: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11016: ac_cs_usage="\
11017: \`$as_me' instantiates files and other configuration actions
11018: from templates according to the current configuration. Unless the files
11019: and actions are specified as TAGs, all are instantiated by default.
11020:
11021: Usage: $0 [OPTION]... [TAG]...
11022:
11023: -h, --help print this help, then exit
11024: -V, --version print version number and configuration settings, then exit
11025: --config print configuration, then exit
11026: -q, --quiet, --silent
11027: do not print progress messages
11028: -d, --debug don't remove temporary files
11029: --recheck update $as_me by reconfiguring in the same conditions
11030: --file=FILE[:TEMPLATE]
11031: instantiate the configuration file FILE
11032: --header=FILE[:TEMPLATE]
11033: instantiate the configuration header FILE
11034:
11035: Configuration files:
11036: $config_files
11037:
11038: Configuration headers:
11039: $config_headers
11040:
1.1.1.4 ! misho 11041: Report bugs to <https://rsync.samba.org/bug-tracking.html>."
1.1 misho 11042:
11043: _ACEOF
11044: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11045: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11046: ac_cs_version="\\
1.1.1.4 ! misho 11047: rsync config.status
1.1.1.3 misho 11048: configured by $0, generated by GNU Autoconf 2.69,
1.1 misho 11049: with options \\"\$ac_cs_config\\"
11050:
1.1.1.3 misho 11051: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 11052: This config.status script is free software; the Free Software Foundation
11053: gives unlimited permission to copy, distribute and modify it."
11054:
11055: ac_pwd='$ac_pwd'
11056: srcdir='$srcdir'
11057: INSTALL='$INSTALL'
1.1.1.2 misho 11058: MKDIR_P='$MKDIR_P'
1.1.1.4 ! misho 11059: AWK='$AWK'
1.1 misho 11060: test -n "\$AWK" || AWK=awk
11061: _ACEOF
11062:
11063: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11064: # The default lists apply if the user does not specify any file.
11065: ac_need_defaults=:
11066: while test $# != 0
11067: do
11068: case $1 in
11069: --*=?*)
11070: ac_option=`expr "X$1" : 'X\([^=]*\)='`
11071: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11072: ac_shift=:
11073: ;;
11074: --*=)
11075: ac_option=`expr "X$1" : 'X\([^=]*\)='`
11076: ac_optarg=
11077: ac_shift=:
11078: ;;
11079: *)
11080: ac_option=$1
11081: ac_optarg=$2
11082: ac_shift=shift
11083: ;;
11084: esac
11085:
11086: case $ac_option in
11087: # Handling of the options.
11088: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11089: ac_cs_recheck=: ;;
11090: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11091: $as_echo "$ac_cs_version"; exit ;;
11092: --config | --confi | --conf | --con | --co | --c )
11093: $as_echo "$ac_cs_config"; exit ;;
11094: --debug | --debu | --deb | --de | --d | -d )
11095: debug=: ;;
11096: --file | --fil | --fi | --f )
11097: $ac_shift
11098: case $ac_optarg in
11099: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11100: '') as_fn_error $? "missing file argument" ;;
11101: esac
11102: as_fn_append CONFIG_FILES " '$ac_optarg'"
11103: ac_need_defaults=false;;
11104: --header | --heade | --head | --hea )
11105: $ac_shift
11106: case $ac_optarg in
11107: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11108: esac
11109: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11110: ac_need_defaults=false;;
11111: --he | --h)
11112: # Conflict between --help and --header
11113: as_fn_error $? "ambiguous option: \`$1'
11114: Try \`$0 --help' for more information.";;
11115: --help | --hel | -h )
11116: $as_echo "$ac_cs_usage"; exit ;;
11117: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11118: | -silent | --silent | --silen | --sile | --sil | --si | --s)
11119: ac_cs_silent=: ;;
11120:
11121: # This is an error.
11122: -*) as_fn_error $? "unrecognized option: \`$1'
11123: Try \`$0 --help' for more information." ;;
11124:
11125: *) as_fn_append ac_config_targets " $1"
11126: ac_need_defaults=false ;;
11127:
11128: esac
11129: shift
11130: done
11131:
11132: ac_configure_extra_args=
11133:
11134: if $ac_cs_silent; then
11135: exec 6>/dev/null
11136: ac_configure_extra_args="$ac_configure_extra_args --silent"
11137: fi
11138:
11139: _ACEOF
11140: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11141: if \$ac_cs_recheck; then
1.1.1.3 misho 11142: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 misho 11143: shift
11144: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11145: CONFIG_SHELL='$SHELL'
11146: export CONFIG_SHELL
11147: exec "\$@"
11148: fi
11149:
11150: _ACEOF
11151: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11152: exec 5>>config.log
11153: {
11154: echo
11155: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11156: ## Running $as_me. ##
11157: _ASBOX
11158: $as_echo "$ac_log"
11159: } >&5
11160:
11161: _ACEOF
11162: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11163: _ACEOF
11164:
11165: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11166:
11167: # Handling of arguments.
11168: for ac_config_target in $ac_config_targets
11169: do
11170: case $ac_config_target in
11171: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11172: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11173: "lib/dummy") CONFIG_FILES="$CONFIG_FILES lib/dummy" ;;
11174: "zlib/dummy") CONFIG_FILES="$CONFIG_FILES zlib/dummy" ;;
11175: "popt/dummy") CONFIG_FILES="$CONFIG_FILES popt/dummy" ;;
11176: "shconfig") CONFIG_FILES="$CONFIG_FILES shconfig" ;;
11177:
11178: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11179: esac
11180: done
11181:
11182:
11183: # If the user did not use the arguments to specify the items to instantiate,
11184: # then the envvar interface is used. Set only those that are not.
11185: # We use the long form for the default assignment because of an extremely
11186: # bizarre bug on SunOS 4.1.3.
11187: if $ac_need_defaults; then
11188: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11189: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11190: fi
11191:
11192: # Have a temporary directory for convenience. Make it in the build tree
11193: # simply because there is no reason against having it here, and in addition,
11194: # creating and moving files from /tmp can sometimes cause problems.
11195: # Hook for its removal unless debugging.
11196: # Note that there is a small window in which the directory will not be cleaned:
11197: # after its creation but before its name has been assigned to `$tmp'.
11198: $debug ||
11199: {
11200: tmp= ac_tmp=
11201: trap 'exit_status=$?
11202: : "${ac_tmp:=$tmp}"
11203: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11204: ' 0
11205: trap 'as_fn_exit 1' 1 2 13 15
11206: }
11207: # Create a (secure) tmp directory for tmp files.
11208:
11209: {
11210: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11211: test -d "$tmp"
11212: } ||
11213: {
11214: tmp=./conf$$-$RANDOM
11215: (umask 077 && mkdir "$tmp")
11216: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11217: ac_tmp=$tmp
11218:
11219: # Set up the scripts for CONFIG_FILES section.
11220: # No need to generate them if there are no CONFIG_FILES.
11221: # This happens for instance with `./config.status config.h'.
11222: if test -n "$CONFIG_FILES"; then
11223:
11224:
11225: ac_cr=`echo X | tr X '\015'`
11226: # On cygwin, bash can eat \r inside `` if the user requested igncr.
11227: # But we know of no other shell where ac_cr would be empty at this
11228: # point, so we can use a bashism as a fallback.
11229: if test "x$ac_cr" = x; then
11230: eval ac_cr=\$\'\\r\'
11231: fi
11232: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11233: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11234: ac_cs_awk_cr='\\r'
11235: else
11236: ac_cs_awk_cr=$ac_cr
11237: fi
11238:
11239: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11240: _ACEOF
11241:
11242:
11243: {
11244: echo "cat >conf$$subs.awk <<_ACEOF" &&
11245: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11246: echo "_ACEOF"
11247: } >conf$$subs.sh ||
11248: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11249: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11250: ac_delim='%!_!# '
11251: for ac_last_try in false false false false false :; do
11252: . ./conf$$subs.sh ||
11253: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11254:
11255: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11256: if test $ac_delim_n = $ac_delim_num; then
11257: break
11258: elif $ac_last_try; then
11259: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11260: else
11261: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11262: fi
11263: done
11264: rm -f conf$$subs.sh
11265:
11266: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11267: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11268: _ACEOF
11269: sed -n '
11270: h
11271: s/^/S["/; s/!.*/"]=/
11272: p
11273: g
11274: s/^[^!]*!//
11275: :repl
11276: t repl
11277: s/'"$ac_delim"'$//
11278: t delim
11279: :nl
11280: h
11281: s/\(.\{148\}\)..*/\1/
11282: t more1
11283: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11284: p
11285: n
11286: b repl
11287: :more1
11288: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11289: p
11290: g
11291: s/.\{148\}//
11292: t nl
11293: :delim
11294: h
11295: s/\(.\{148\}\)..*/\1/
11296: t more2
11297: s/["\\]/\\&/g; s/^/"/; s/$/"/
11298: p
11299: b
11300: :more2
11301: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11302: p
11303: g
11304: s/.\{148\}//
11305: t delim
11306: ' <conf$$subs.awk | sed '
11307: /^[^""]/{
11308: N
11309: s/\n//
11310: }
11311: ' >>$CONFIG_STATUS || ac_write_fail=1
11312: rm -f conf$$subs.awk
11313: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11314: _ACAWK
11315: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11316: for (key in S) S_is_set[key] = 1
11317: FS = ""
11318:
11319: }
11320: {
11321: line = $ 0
11322: nfields = split(line, field, "@")
11323: substed = 0
11324: len = length(field[1])
11325: for (i = 2; i < nfields; i++) {
11326: key = field[i]
11327: keylen = length(key)
11328: if (S_is_set[key]) {
11329: value = S[key]
11330: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11331: len += length(value) + length(field[++i])
11332: substed = 1
11333: } else
11334: len += 1 + keylen
11335: }
11336:
11337: print line
11338: }
11339:
11340: _ACAWK
11341: _ACEOF
11342: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11343: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11344: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11345: else
11346: cat
11347: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11348: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11349: _ACEOF
11350:
11351: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11352: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11353: # trailing colons and then remove the whole line if VPATH becomes empty
11354: # (actually we leave an empty line to preserve line numbers).
11355: if test "x$srcdir" = x.; then
11356: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11357: h
11358: s///
11359: s/^/:/
11360: s/[ ]*$/:/
11361: s/:\$(srcdir):/:/g
11362: s/:\${srcdir}:/:/g
11363: s/:@srcdir@:/:/g
11364: s/^:*//
11365: s/:*$//
11366: x
11367: s/\(=[ ]*\).*/\1/
11368: G
11369: s/\n//
11370: s/^[^=]*=[ ]*$//
11371: }'
11372: fi
11373:
11374: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375: fi # test -n "$CONFIG_FILES"
11376:
11377: # Set up the scripts for CONFIG_HEADERS section.
11378: # No need to generate them if there are no CONFIG_HEADERS.
11379: # This happens for instance with `./config.status Makefile'.
11380: if test -n "$CONFIG_HEADERS"; then
11381: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11382: BEGIN {
11383: _ACEOF
11384:
11385: # Transform confdefs.h into an awk script `defines.awk', embedded as
11386: # here-document in config.status, that substitutes the proper values into
11387: # config.h.in to produce config.h.
11388:
11389: # Create a delimiter string that does not exist in confdefs.h, to ease
11390: # handling of long lines.
11391: ac_delim='%!_!# '
11392: for ac_last_try in false false :; do
11393: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11394: if test -z "$ac_tt"; then
11395: break
11396: elif $ac_last_try; then
11397: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11398: else
11399: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11400: fi
11401: done
11402:
11403: # For the awk script, D is an array of macro values keyed by name,
11404: # likewise P contains macro parameters if any. Preserve backslash
11405: # newline sequences.
11406:
11407: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11408: sed -n '
11409: s/.\{148\}/&'"$ac_delim"'/g
11410: t rset
11411: :rset
11412: s/^[ ]*#[ ]*define[ ][ ]*/ /
11413: t def
11414: d
11415: :def
11416: s/\\$//
11417: t bsnl
11418: s/["\\]/\\&/g
11419: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11420: D["\1"]=" \3"/p
11421: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11422: d
11423: :bsnl
11424: s/["\\]/\\&/g
11425: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11426: D["\1"]=" \3\\\\\\n"\\/p
11427: t cont
11428: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11429: t cont
11430: d
11431: :cont
11432: n
11433: s/.\{148\}/&'"$ac_delim"'/g
11434: t clear
11435: :clear
11436: s/\\$//
11437: t bsnlc
11438: s/["\\]/\\&/g; s/^/"/; s/$/"/p
11439: d
11440: :bsnlc
11441: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11442: b cont
11443: ' <confdefs.h | sed '
11444: s/'"$ac_delim"'/"\\\
11445: "/g' >>$CONFIG_STATUS || ac_write_fail=1
11446:
11447: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11448: for (key in D) D_is_set[key] = 1
11449: FS = ""
11450: }
11451: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11452: line = \$ 0
11453: split(line, arg, " ")
11454: if (arg[1] == "#") {
11455: defundef = arg[2]
11456: mac1 = arg[3]
11457: } else {
11458: defundef = substr(arg[1], 2)
11459: mac1 = arg[2]
11460: }
11461: split(mac1, mac2, "(") #)
11462: macro = mac2[1]
11463: prefix = substr(line, 1, index(line, defundef) - 1)
11464: if (D_is_set[macro]) {
11465: # Preserve the white space surrounding the "#".
11466: print prefix "define", macro P[macro] D[macro]
11467: next
11468: } else {
11469: # Replace #undef with comments. This is necessary, for example,
11470: # in the case of _POSIX_SOURCE, which is predefined and required
11471: # on some systems where configure will not decide to define it.
11472: if (defundef == "undef") {
11473: print "/*", prefix defundef, macro, "*/"
11474: next
11475: }
11476: }
11477: }
11478: { print }
11479: _ACAWK
11480: _ACEOF
11481: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11482: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11483: fi # test -n "$CONFIG_HEADERS"
11484:
11485:
11486: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11487: shift
11488: for ac_tag
11489: do
11490: case $ac_tag in
11491: :[FHLC]) ac_mode=$ac_tag; continue;;
11492: esac
11493: case $ac_mode$ac_tag in
11494: :[FHL]*:*);;
11495: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11496: :[FH]-) ac_tag=-:-;;
11497: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11498: esac
11499: ac_save_IFS=$IFS
11500: IFS=:
11501: set x $ac_tag
11502: IFS=$ac_save_IFS
11503: shift
11504: ac_file=$1
11505: shift
11506:
11507: case $ac_mode in
11508: :L) ac_source=$1;;
11509: :[FH])
11510: ac_file_inputs=
11511: for ac_f
11512: do
11513: case $ac_f in
11514: -) ac_f="$ac_tmp/stdin";;
11515: *) # Look for the file first in the build tree, then in the source tree
11516: # (if the path is not absolute). The absolute path cannot be DOS-style,
11517: # because $ac_f cannot contain `:'.
11518: test -f "$ac_f" ||
11519: case $ac_f in
11520: [\\/$]*) false;;
11521: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11522: esac ||
11523: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11524: esac
11525: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11526: as_fn_append ac_file_inputs " '$ac_f'"
11527: done
11528:
11529: # Let's still pretend it is `configure' which instantiates (i.e., don't
11530: # use $as_me), people would be surprised to read:
11531: # /* config.h. Generated by config.status. */
11532: configure_input='Generated from '`
11533: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11534: `' by configure.'
11535: if test x"$ac_file" != x-; then
11536: configure_input="$ac_file. $configure_input"
11537: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11538: $as_echo "$as_me: creating $ac_file" >&6;}
11539: fi
11540: # Neutralize special characters interpreted by sed in replacement strings.
11541: case $configure_input in #(
11542: *\&* | *\|* | *\\* )
11543: ac_sed_conf_input=`$as_echo "$configure_input" |
11544: sed 's/[\\\\&|]/\\\\&/g'`;; #(
11545: *) ac_sed_conf_input=$configure_input;;
11546: esac
11547:
11548: case $ac_tag in
11549: *:-:* | *:-) cat >"$ac_tmp/stdin" \
11550: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11551: esac
11552: ;;
11553: esac
11554:
11555: ac_dir=`$as_dirname -- "$ac_file" ||
11556: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11557: X"$ac_file" : 'X\(//\)[^/]' \| \
11558: X"$ac_file" : 'X\(//\)$' \| \
11559: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11560: $as_echo X"$ac_file" |
11561: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11562: s//\1/
11563: q
11564: }
11565: /^X\(\/\/\)[^/].*/{
11566: s//\1/
11567: q
11568: }
11569: /^X\(\/\/\)$/{
11570: s//\1/
11571: q
11572: }
11573: /^X\(\/\).*/{
11574: s//\1/
11575: q
11576: }
11577: s/.*/./; q'`
11578: as_dir="$ac_dir"; as_fn_mkdir_p
11579: ac_builddir=.
11580:
11581: case "$ac_dir" in
11582: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11583: *)
11584: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11585: # A ".." for each directory in $ac_dir_suffix.
11586: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11587: case $ac_top_builddir_sub in
11588: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11589: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11590: esac ;;
11591: esac
11592: ac_abs_top_builddir=$ac_pwd
11593: ac_abs_builddir=$ac_pwd$ac_dir_suffix
11594: # for backward compatibility:
11595: ac_top_builddir=$ac_top_build_prefix
11596:
11597: case $srcdir in
11598: .) # We are building in place.
11599: ac_srcdir=.
11600: ac_top_srcdir=$ac_top_builddir_sub
11601: ac_abs_top_srcdir=$ac_pwd ;;
11602: [\\/]* | ?:[\\/]* ) # Absolute name.
11603: ac_srcdir=$srcdir$ac_dir_suffix;
11604: ac_top_srcdir=$srcdir
11605: ac_abs_top_srcdir=$srcdir ;;
11606: *) # Relative name.
11607: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11608: ac_top_srcdir=$ac_top_build_prefix$srcdir
11609: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11610: esac
11611: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11612:
11613:
11614: case $ac_mode in
11615: :F)
11616: #
11617: # CONFIG_FILE
11618: #
11619:
11620: case $INSTALL in
11621: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11622: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11623: esac
1.1.1.2 misho 11624: ac_MKDIR_P=$MKDIR_P
11625: case $MKDIR_P in
11626: [\\/$]* | ?:[\\/]* ) ;;
11627: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11628: esac
1.1 misho 11629: _ACEOF
11630:
11631: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11632: # If the template does not know about datarootdir, expand it.
11633: # FIXME: This hack should be removed a few years after 2.60.
11634: ac_datarootdir_hack=; ac_datarootdir_seen=
11635: ac_sed_dataroot='
11636: /datarootdir/ {
11637: p
11638: q
11639: }
11640: /@datadir@/p
11641: /@docdir@/p
11642: /@infodir@/p
11643: /@localedir@/p
11644: /@mandir@/p'
11645: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11646: *datarootdir*) ac_datarootdir_seen=yes;;
11647: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11648: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11649: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11650: _ACEOF
11651: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11652: ac_datarootdir_hack='
11653: s&@datadir@&$datadir&g
11654: s&@docdir@&$docdir&g
11655: s&@infodir@&$infodir&g
11656: s&@localedir@&$localedir&g
11657: s&@mandir@&$mandir&g
11658: s&\\\${datarootdir}&$datarootdir&g' ;;
11659: esac
11660: _ACEOF
11661:
11662: # Neutralize VPATH when `$srcdir' = `.'.
11663: # Shell code in configure.ac might set extrasub.
11664: # FIXME: do we really want to maintain this feature?
11665: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11666: ac_sed_extra="$ac_vpsub
11667: $extrasub
11668: _ACEOF
11669: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11670: :t
11671: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11672: s|@configure_input@|$ac_sed_conf_input|;t t
11673: s&@top_builddir@&$ac_top_builddir_sub&;t t
11674: s&@top_build_prefix@&$ac_top_build_prefix&;t t
11675: s&@srcdir@&$ac_srcdir&;t t
11676: s&@abs_srcdir@&$ac_abs_srcdir&;t t
11677: s&@top_srcdir@&$ac_top_srcdir&;t t
11678: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11679: s&@builddir@&$ac_builddir&;t t
11680: s&@abs_builddir@&$ac_abs_builddir&;t t
11681: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11682: s&@INSTALL@&$ac_INSTALL&;t t
1.1.1.2 misho 11683: s&@MKDIR_P@&$ac_MKDIR_P&;t t
1.1 misho 11684: $ac_datarootdir_hack
11685: "
11686: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11687: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11688:
11689: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11690: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11691: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11692: "$ac_tmp/out"`; test -z "$ac_out"; } &&
11693: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11694: which seems to be undefined. Please make sure it is defined" >&5
11695: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11696: which seems to be undefined. Please make sure it is defined" >&2;}
11697:
11698: rm -f "$ac_tmp/stdin"
11699: case $ac_file in
11700: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11701: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11702: esac \
11703: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11704: ;;
11705: :H)
11706: #
11707: # CONFIG_HEADER
11708: #
11709: if test x"$ac_file" != x-; then
11710: {
11711: $as_echo "/* $configure_input */" \
11712: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11713: } >"$ac_tmp/config.h" \
11714: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11715: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11716: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11717: $as_echo "$as_me: $ac_file is unchanged" >&6;}
11718: else
11719: rm -f "$ac_file"
11720: mv "$ac_tmp/config.h" "$ac_file" \
11721: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11722: fi
11723: else
11724: $as_echo "/* $configure_input */" \
11725: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11726: || as_fn_error $? "could not create -" "$LINENO" 5
11727: fi
11728: ;;
11729:
11730:
11731: esac
11732:
11733: done # for ac_tag
11734:
11735:
11736: as_fn_exit 0
11737: _ACEOF
11738: ac_clean_files=$ac_clean_files_save
11739:
11740: test $ac_write_fail = 0 ||
11741: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11742:
11743:
11744: # configure is writing to config.log, and then calls config.status.
11745: # config.status does its own redirection, appending to config.log.
11746: # Unfortunately, on DOS this fails, as config.log is still kept open
11747: # by configure, so config.status won't be able to write to it; its
11748: # output is simply discarded. So we exec the FD to /dev/null,
11749: # effectively closing config.log, so it can be properly (re)opened and
11750: # appended to by config.status. When coming back to configure, we
11751: # need to make the FD available again.
11752: if test "$no_create" != yes; then
11753: ac_cs_success=:
11754: ac_config_status_args=
11755: test "$silent" = yes &&
11756: ac_config_status_args="$ac_config_status_args --quiet"
11757: exec 5>/dev/null
11758: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11759: exec 5>>config.log
11760: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11761: # would make configure fail if this is the last instruction.
11762: $ac_cs_success || as_fn_exit 1
11763: fi
11764: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11765: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11766: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11767: fi
11768:
11769:
11770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11771: $as_echo "" >&6; }
1.1.1.4 ! misho 11772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: rsync $PACKAGE_VERSION configuration successful" >&5
! 11773: $as_echo " rsync $PACKAGE_VERSION configuration successful" >&6; }
1.1 misho 11774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11775: $as_echo "" >&6; }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>