Adding debian version 1:2.1.4-2.1.
[git/debian/daniel.git] / configure
blob395d6585ef2a6ecc5c35d31a61f9410fd4af6d4e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for git 2.1.4.
5 # Report bugs to <git@vger.kernel.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
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
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
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
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
240 if test "x$CONFIG_SHELL" != x; then :
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
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
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: git@vger.kernel.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
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 ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
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/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
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"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
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 ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
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 ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
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 ()
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
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
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
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
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/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
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
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 '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
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; }
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
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
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;;
513 ECHO_N='-n';;
514 esac
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
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.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
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
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
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`
569 # Initializations.
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=
580 # Identity of this package.
581 PACKAGE_NAME='git'
582 PACKAGE_TARNAME='git'
583 PACKAGE_VERSION='2.1.4'
584 PACKAGE_STRING='git 2.1.4'
585 PACKAGE_BUGREPORT='git@vger.kernel.org'
586 PACKAGE_URL=''
588 ac_unique_file="git.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 ASCIIDOC
628 TCLTK_PATH
629 DIFF
631 ac_ct_AR
633 ALLOCA
634 EGREP
635 GREP
637 OBJEXT
638 EXEEXT
639 ac_ct_CC
640 CPPFLAGS
641 LDFLAGS
642 CFLAGS
644 target_alias
645 host_alias
646 build_alias
647 LIBS
648 ECHO_T
649 ECHO_N
650 ECHO_C
651 DEFS
652 mandir
653 localedir
654 libdir
655 psdir
656 pdfdir
657 dvidir
658 htmldir
659 infodir
660 docdir
661 oldincludedir
662 includedir
663 localstatedir
664 sharedstatedir
665 sysconfdir
666 datadir
667 datarootdir
668 libexecdir
669 sbindir
670 bindir
671 program_transform_name
672 prefix
673 exec_prefix
674 PACKAGE_URL
675 PACKAGE_BUGREPORT
676 PACKAGE_STRING
677 PACKAGE_VERSION
678 PACKAGE_TARNAME
679 PACKAGE_NAME
680 PATH_SEPARATOR
681 SHELL'
682 ac_subst_files=''
683 ac_user_opts='
684 enable_option_checking
685 with_sane_tool_path
686 with_lib
687 enable_pthreads
688 enable_jsmin
689 enable_cssmin
690 with_openssl
691 with_libpcre
692 with_curl
693 with_expat
694 with_iconv
695 with_gitconfig
696 with_gitattributes
697 with_pager
698 with_editor
699 with_shell
700 with_perl
701 with_python
702 with_zlib
703 with_tcltk
705 ac_precious_vars='build_alias
706 host_alias
707 target_alias
709 CFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
713 CPP'
716 # Initialize some variables set by options.
717 ac_init_help=
718 ac_init_version=false
719 ac_unrecognized_opts=
720 ac_unrecognized_sep=
721 # The variables have the same names as the options, with
722 # dashes changed to underlines.
723 cache_file=/dev/null
724 exec_prefix=NONE
725 no_create=
726 no_recursion=
727 prefix=NONE
728 program_prefix=NONE
729 program_suffix=NONE
730 program_transform_name=s,x,x,
731 silent=
732 site=
733 srcdir=
734 verbose=
735 x_includes=NONE
736 x_libraries=NONE
738 # Installation directory options.
739 # These are left unexpanded so users can "make install exec_prefix=/foo"
740 # and all the variables that are supposed to be based on exec_prefix
741 # by default will actually change.
742 # Use braces instead of parens because sh, perl, etc. also accept them.
743 # (The list follows the same order as the GNU Coding Standards.)
744 bindir='${exec_prefix}/bin'
745 sbindir='${exec_prefix}/sbin'
746 libexecdir='${exec_prefix}/libexec'
747 datarootdir='${prefix}/share'
748 datadir='${datarootdir}'
749 sysconfdir='${prefix}/etc'
750 sharedstatedir='${prefix}/com'
751 localstatedir='${prefix}/var'
752 includedir='${prefix}/include'
753 oldincludedir='/usr/include'
754 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755 infodir='${datarootdir}/info'
756 htmldir='${docdir}'
757 dvidir='${docdir}'
758 pdfdir='${docdir}'
759 psdir='${docdir}'
760 libdir='${exec_prefix}/lib'
761 localedir='${datarootdir}/locale'
762 mandir='${datarootdir}/man'
764 ac_prev=
765 ac_dashdash=
766 for ac_option
768 # If the previous option needs an argument, assign it.
769 if test -n "$ac_prev"; then
770 eval $ac_prev=\$ac_option
771 ac_prev=
772 continue
775 case $ac_option in
776 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
777 *=) ac_optarg= ;;
778 *) ac_optarg=yes ;;
779 esac
781 # Accept the important Cygnus configure options, so we can diagnose typos.
783 case $ac_dashdash$ac_option in
785 ac_dashdash=yes ;;
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
804 --config-cache | -C)
805 cache_file=config.cache ;;
807 -datadir | --datadir | --datadi | --datad)
808 ac_prev=datadir ;;
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
819 -disable-* | --disable-*)
820 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
823 as_fn_error $? "invalid feature name: $ac_useropt"
824 ac_useropt_orig=$ac_useropt
825 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
826 case $ac_user_opts in
828 "enable_$ac_useropt"
829 "*) ;;
830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
831 ac_unrecognized_sep=', ';;
832 esac
833 eval enable_$ac_useropt=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
836 ac_prev=docdir ;;
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 docdir=$ac_optarg ;;
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 ac_prev=dvidir ;;
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 dvidir=$ac_optarg ;;
845 -enable-* | --enable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error $? "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
854 "enable_$ac_useropt"
855 "*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
858 esac
859 eval enable_$ac_useropt=\$ac_optarg ;;
861 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863 | --exec | --exe | --ex)
864 ac_prev=exec_prefix ;;
865 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867 | --exec=* | --exe=* | --ex=*)
868 exec_prefix=$ac_optarg ;;
870 -gas | --gas | --ga | --g)
871 # Obsolete; use --with-gas.
872 with_gas=yes ;;
874 -help | --help | --hel | --he | -h)
875 ac_init_help=long ;;
876 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877 ac_init_help=recursive ;;
878 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879 ac_init_help=short ;;
881 -host | --host | --hos | --ho)
882 ac_prev=host_alias ;;
883 -host=* | --host=* | --hos=* | --ho=*)
884 host_alias=$ac_optarg ;;
886 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887 ac_prev=htmldir ;;
888 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889 | --ht=*)
890 htmldir=$ac_optarg ;;
892 -includedir | --includedir | --includedi | --included | --include \
893 | --includ | --inclu | --incl | --inc)
894 ac_prev=includedir ;;
895 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896 | --includ=* | --inclu=* | --incl=* | --inc=*)
897 includedir=$ac_optarg ;;
899 -infodir | --infodir | --infodi | --infod | --info | --inf)
900 ac_prev=infodir ;;
901 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902 infodir=$ac_optarg ;;
904 -libdir | --libdir | --libdi | --libd)
905 ac_prev=libdir ;;
906 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 libdir=$ac_optarg ;;
909 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910 | --libexe | --libex | --libe)
911 ac_prev=libexecdir ;;
912 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913 | --libexe=* | --libex=* | --libe=*)
914 libexecdir=$ac_optarg ;;
916 -localedir | --localedir | --localedi | --localed | --locale)
917 ac_prev=localedir ;;
918 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919 localedir=$ac_optarg ;;
921 -localstatedir | --localstatedir | --localstatedi | --localstated \
922 | --localstate | --localstat | --localsta | --localst | --locals)
923 ac_prev=localstatedir ;;
924 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926 localstatedir=$ac_optarg ;;
928 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929 ac_prev=mandir ;;
930 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931 mandir=$ac_optarg ;;
933 -nfp | --nfp | --nf)
934 # Obsolete; use --without-fp.
935 with_fp=no ;;
937 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938 | --no-cr | --no-c | -n)
939 no_create=yes ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 no_recursion=yes ;;
945 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947 | --oldin | --oldi | --old | --ol | --o)
948 ac_prev=oldincludedir ;;
949 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952 oldincludedir=$ac_optarg ;;
954 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955 ac_prev=prefix ;;
956 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 prefix=$ac_optarg ;;
959 -program-prefix | --program-prefix | --program-prefi | --program-pref \
960 | --program-pre | --program-pr | --program-p)
961 ac_prev=program_prefix ;;
962 -program-prefix=* | --program-prefix=* | --program-prefi=* \
963 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964 program_prefix=$ac_optarg ;;
966 -program-suffix | --program-suffix | --program-suffi | --program-suff \
967 | --program-suf | --program-su | --program-s)
968 ac_prev=program_suffix ;;
969 -program-suffix=* | --program-suffix=* | --program-suffi=* \
970 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971 program_suffix=$ac_optarg ;;
973 -program-transform-name | --program-transform-name \
974 | --program-transform-nam | --program-transform-na \
975 | --program-transform-n | --program-transform- \
976 | --program-transform | --program-transfor \
977 | --program-transfo | --program-transf \
978 | --program-trans | --program-tran \
979 | --progr-tra | --program-tr | --program-t)
980 ac_prev=program_transform_name ;;
981 -program-transform-name=* | --program-transform-name=* \
982 | --program-transform-nam=* | --program-transform-na=* \
983 | --program-transform-n=* | --program-transform-=* \
984 | --program-transform=* | --program-transfor=* \
985 | --program-transfo=* | --program-transf=* \
986 | --program-trans=* | --program-tran=* \
987 | --progr-tra=* | --program-tr=* | --program-t=*)
988 program_transform_name=$ac_optarg ;;
990 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991 ac_prev=pdfdir ;;
992 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 pdfdir=$ac_optarg ;;
995 -psdir | --psdir | --psdi | --psd | --ps)
996 ac_prev=psdir ;;
997 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 psdir=$ac_optarg ;;
1000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001 | -silent | --silent | --silen | --sile | --sil)
1002 silent=yes ;;
1004 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1005 ac_prev=sbindir ;;
1006 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1007 | --sbi=* | --sb=*)
1008 sbindir=$ac_optarg ;;
1010 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012 | --sharedst | --shareds | --shared | --share | --shar \
1013 | --sha | --sh)
1014 ac_prev=sharedstatedir ;;
1015 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1018 | --sha=* | --sh=*)
1019 sharedstatedir=$ac_optarg ;;
1021 -site | --site | --sit)
1022 ac_prev=site ;;
1023 -site=* | --site=* | --sit=*)
1024 site=$ac_optarg ;;
1026 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1027 ac_prev=srcdir ;;
1028 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029 srcdir=$ac_optarg ;;
1031 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032 | --syscon | --sysco | --sysc | --sys | --sy)
1033 ac_prev=sysconfdir ;;
1034 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036 sysconfdir=$ac_optarg ;;
1038 -target | --target | --targe | --targ | --tar | --ta | --t)
1039 ac_prev=target_alias ;;
1040 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041 target_alias=$ac_optarg ;;
1043 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044 verbose=yes ;;
1046 -version | --version | --versio | --versi | --vers | -V)
1047 ac_init_version=: ;;
1049 -with-* | --with-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid package name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "with_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval with_$ac_useropt=\$ac_optarg ;;
1065 -without-* | --without-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid package name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "with_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval with_$ac_useropt=no ;;
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1099 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1100 Try \`$0 --help' for more information"
1103 *=*)
1104 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1105 # Reject names that are not valid shell variable names.
1106 case $ac_envvar in #(
1107 '' | [0-9]* | *[!_$as_cr_alnum]* )
1108 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1109 esac
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1121 esac
1122 done
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 as_fn_error $? "missing argument to $ac_option"
1129 if test -n "$ac_unrecognized_opts"; then
1130 case $enable_option_checking in
1131 no) ;;
1132 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1133 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1134 esac
1137 # Check all directory arguments for consistency.
1138 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
1143 eval ac_val=\$$ac_var
1144 # Remove trailing slashes.
1145 case $ac_val in
1146 */ )
1147 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1148 eval $ac_var=\$ac_val;;
1149 esac
1150 # Be sure to have absolute directory names.
1151 case $ac_val in
1152 [\\/$]* | ?:[\\/]* ) continue;;
1153 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1154 esac
1155 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1156 done
1158 # There might be people who depend on the old broken behavior: `$host'
1159 # used to hold the argument of --host etc.
1160 # FIXME: To remove some day.
1161 build=$build_alias
1162 host=$host_alias
1163 target=$target_alias
1165 # FIXME: To remove some day.
1166 if test "x$host_alias" != x; then
1167 if test "x$build_alias" = x; then
1168 cross_compiling=maybe
1169 elif test "x$build_alias" != "x$host_alias"; then
1170 cross_compiling=yes
1174 ac_tool_prefix=
1175 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177 test "$silent" = yes && exec 6>/dev/null
1180 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1181 ac_ls_di=`ls -di .` &&
1182 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1183 as_fn_error $? "working directory cannot be determined"
1184 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1185 as_fn_error $? "pwd does not report name of working directory"
1188 # Find the source files, if location was not specified.
1189 if test -z "$srcdir"; then
1190 ac_srcdir_defaulted=yes
1191 # Try the directory containing this script, then the parent directory.
1192 ac_confdir=`$as_dirname -- "$as_myself" ||
1193 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1194 X"$as_myself" : 'X\(//\)[^/]' \| \
1195 X"$as_myself" : 'X\(//\)$' \| \
1196 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1197 $as_echo X"$as_myself" |
1198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1199 s//\1/
1202 /^X\(\/\/\)[^/].*/{
1203 s//\1/
1206 /^X\(\/\/\)$/{
1207 s//\1/
1210 /^X\(\/\).*/{
1211 s//\1/
1214 s/.*/./; q'`
1215 srcdir=$ac_confdir
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 srcdir=..
1219 else
1220 ac_srcdir_defaulted=no
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1224 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1226 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1229 pwd)`
1230 # When building in place, set srcdir=.
1231 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 srcdir=.
1234 # Remove unnecessary trailing slashes from srcdir.
1235 # Double slashes in file names in object file debugging info
1236 # mess up M-x gdb in Emacs.
1237 case $srcdir in
1238 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239 esac
1240 for ac_var in $ac_precious_vars; do
1241 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_env_${ac_var}_value=\$${ac_var}
1243 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245 done
1248 # Report the --help message.
1250 if test "$ac_init_help" = "long"; then
1251 # Omit some internal or obsolete options to make the list less imposing.
1252 # This message is too long to be a string in the A/UX 3.1 sh.
1253 cat <<_ACEOF
1254 \`configure' configures git 2.1.4 to adapt to many kinds of systems.
1256 Usage: $0 [OPTION]... [VAR=VALUE]...
1258 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1259 VAR=VALUE. See below for descriptions of some of the useful variables.
1261 Defaults for the options are specified in brackets.
1263 Configuration:
1264 -h, --help display this help and exit
1265 --help=short display options specific to this package
1266 --help=recursive display the short help of all the included packages
1267 -V, --version display version information and exit
1268 -q, --quiet, --silent do not print \`checking ...' messages
1269 --cache-file=FILE cache test results in FILE [disabled]
1270 -C, --config-cache alias for \`--cache-file=config.cache'
1271 -n, --no-create do not create output files
1272 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274 Installation directories:
1275 --prefix=PREFIX install architecture-independent files in PREFIX
1276 [$ac_default_prefix]
1277 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 [PREFIX]
1280 By default, \`make install' will install all the files in
1281 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1282 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1283 for instance \`--prefix=\$HOME'.
1285 For better control, use the options below.
1287 Fine tuning of the installation directories:
1288 --bindir=DIR user executables [EPREFIX/bin]
1289 --sbindir=DIR system admin executables [EPREFIX/sbin]
1290 --libexecdir=DIR program executables [EPREFIX/libexec]
1291 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1292 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1293 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
1302 --docdir=DIR documentation root [DATAROOTDIR/doc/git]
1303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
1307 _ACEOF
1309 cat <<\_ACEOF
1310 _ACEOF
1313 if test -n "$ac_init_help"; then
1314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of git 2.1.4:";;
1316 esac
1317 cat <<\_ACEOF
1319 Optional Features:
1320 --disable-option-checking ignore unrecognized --enable/--with options
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-pthreads=FLAGS FLAGS is the value to pass to the compiler to enable
1324 POSIX Threads. The default if FLAGS is not specified
1325 is to try first -pthread and then -lpthread.
1326 --disable-pthreads will disable threading.
1327 --enable-jsmin=PATH PATH is the name of a JavaScript minifier or the
1328 absolute path to one.
1329 --enable-cssmin=PATH PATH is the name of a CSS minifier or the absolute
1330 path to one.
1332 Optional Packages:
1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-sane-tool-path=DIR-1[:DIR-2...:DIR-n]
1336 Directories to prepend to PATH in build system and
1337 generated scripts
1338 --with-lib=ARG ARG specifies alternative name for lib directory
1339 --with-openssl use OpenSSL library (default is YES)
1340 ARG can be prefix for openssl library and headers
1341 --with-libpcre support Perl-compatible regexes (default is NO)
1342 ARG can be also prefix for libpcre library and
1343 headers
1344 --with-curl support http(s):// transports (default is YES)
1345 ARG can be also prefix for curl library and headers
1346 --with-expat support git-push using http:// and https://
1347 transports via WebDAV (default is YES)
1348 ARG can be also prefix for expat library and headers
1349 --without-iconv if your architecture doesn't properly support iconv
1350 --with-iconv=PATH PATH is prefix for libiconv library and headers
1351 used only if you need linking with libiconv
1352 --with-gitconfig=VALUE Use VALUE instead of /etc/gitconfig as the global
1353 git configuration file. If VALUE is not fully
1354 qualified it will be interpreted as a path relative
1355 to the computed prefix at runtime.
1356 --with-gitattributes=VALUE
1357 Use VALUE instead of /etc/gitattributes as the
1358 global git attributes file. If VALUE is not fully
1359 qualified it will be interpreted as a path relative
1360 to the computed prefix at runtime.
1361 --with-pager=VALUE Use VALUE as the fall-back pager instead of 'less'.
1362 This is used by things like 'git log' when the user
1363 does not specify a pager to use through alternate
1364 methods. eg: /usr/bin/pager
1365 --with-editor=VALUE Use VALUE as the fall-back editor instead of 'vi'.
1366 This is used by things like 'git commit' when the
1367 user does not specify a preferred editor through
1368 other methods. eg: /usr/bin/editor
1369 --with-shell=PATH provide PATH to shell
1370 --with-perl=PATH provide PATH to perl
1371 --with-python=PATH provide PATH to python
1372 --with-zlib=PATH provide PATH to zlib
1373 --with-tcltk use Tcl/Tk GUI (default is YES)
1374 ARG is the full path to the Tcl/Tk interpreter.
1375 Bare --with-tcltk will make the GUI part only if
1376 Tcl/Tk interpreter will be found in a system.
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 Report bugs to <git@vger.kernel.org>.
1392 _ACEOF
1393 ac_status=$?
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1401 continue
1402 ac_builddir=.
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1420 case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453 cat <<\_ACEOF
1454 git configure 2.1.4
1455 generated by GNU Autoconf 2.69
1457 Copyright (C) 2012 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1476 case "(($ac_try" in
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1479 esac
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1483 ac_status=$?
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1494 ac_retval=0
1495 else
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1499 ac_retval=1
1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502 as_fn_set_status $ac_retval
1504 } # ac_fn_c_try_compile
1506 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1507 # -------------------------------------------
1508 # Tests whether TYPE exists after having included INCLUDES, setting cache
1509 # variable VAR accordingly.
1510 ac_fn_c_check_type ()
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1514 $as_echo_n "checking for $2... " >&6; }
1515 if eval \${$3+:} false; then :
1516 $as_echo_n "(cached) " >&6
1517 else
1518 eval "$3=no"
1519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1520 /* end confdefs.h. */
1523 main ()
1525 if (sizeof ($2))
1526 return 0;
1528 return 0;
1530 _ACEOF
1531 if ac_fn_c_try_compile "$LINENO"; then :
1532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533 /* end confdefs.h. */
1536 main ()
1538 if (sizeof (($2)))
1539 return 0;
1541 return 0;
1543 _ACEOF
1544 if ac_fn_c_try_compile "$LINENO"; then :
1546 else
1547 eval "$3=yes"
1549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1553 eval ac_res=\$$3
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1555 $as_echo "$ac_res" >&6; }
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 } # ac_fn_c_check_type
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1595 } # ac_fn_c_try_cpp
1597 # ac_fn_c_try_run LINENO
1598 # ----------------------
1599 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1600 # that executables *can* be run.
1601 ac_fn_c_try_run ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_link"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>&5
1612 ac_status=$?
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1615 { { case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_try") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; }; }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: program exited with status $ac_status" >&5
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1631 ac_retval=$ac_status
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_run
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650 else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658 else
1659 eval "$3=no"
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 } # ac_fn_c_check_header_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_check_func LINENO FUNC VAR
1717 # ----------------------------------
1718 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1731 #define $2 innocuous_$2
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $2 (); below.
1735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736 <limits.h> exists even on freestanding compilers. */
1738 #ifdef __STDC__
1739 # include <limits.h>
1740 #else
1741 # include <assert.h>
1742 #endif
1744 #undef $2
1746 /* Override any GCC internal prototype to avoid an error.
1747 Use char because int might match the return type of a GCC
1748 builtin and then its argument prototype would still apply. */
1749 #ifdef __cplusplus
1750 extern "C"
1751 #endif
1752 char $2 ();
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined __stub_$2 || defined __stub___$2
1757 choke me
1758 #endif
1761 main ()
1763 return $2 ();
1765 return 0;
1767 _ACEOF
1768 if ac_fn_c_try_link "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1773 rm -f core conftest.err conftest.$ac_objext \
1774 conftest$ac_exeext conftest.$ac_ext
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 } # ac_fn_c_check_func
1783 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1786 # the include files in INCLUDES and setting the cache variable VAR
1787 # accordingly.
1788 ac_fn_c_check_header_mongrel ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if eval \${$3+:} false; then :
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 else
1801 # Is the header compilable?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1803 $as_echo_n "checking $2 usability... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 ac_header_compiler=yes
1811 else
1812 ac_header_compiler=no
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1816 $as_echo "$ac_header_compiler" >&6; }
1818 # Is the header present?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1820 $as_echo_n "checking $2 presence... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_cpp "$LINENO"; then :
1826 ac_header_preproc=yes
1827 else
1828 ac_header_preproc=no
1830 rm -f conftest.err conftest.i conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1832 $as_echo "$ac_header_preproc" >&6; }
1834 # So? What about this header?
1835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1836 yes:no: )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1838 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 no:yes:* )
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1844 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1846 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1848 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1850 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 ( $as_echo "## ---------------------------------- ##
1854 ## Report this to git@vger.kernel.org ##
1855 ## ---------------------------------- ##"
1856 ) | sed "s/^/$as_me: WARNING: /" >&2
1858 esac
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 eval "$3=\$ac_header_compiler"
1866 eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_header_mongrel
1874 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1875 # ----------------------------------------------------
1876 # Tries to find if the field MEMBER exists in type AGGR, after including
1877 # INCLUDES, setting cache variable VAR accordingly.
1878 ac_fn_c_check_member ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1882 $as_echo_n "checking for $2.$3... " >&6; }
1883 if eval \${$4+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 else
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 main ()
1892 static $2 ac_aggr;
1893 if (ac_aggr.$3)
1894 return 0;
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 eval "$4=yes"
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1906 main ()
1908 static $2 ac_aggr;
1909 if (sizeof ac_aggr.$3)
1910 return 0;
1912 return 0;
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 eval "$4=yes"
1917 else
1918 eval "$4=no"
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 eval ac_res=\$$4
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_member
1930 cat >config.log <<_ACEOF
1931 This file contains any messages produced by compilers while
1932 running configure, to aid debugging if configure makes a mistake.
1934 It was created by git $as_me 2.1.4, which was
1935 generated by GNU Autoconf 2.69. Invocation command line was
1937 $ $0 $@
1939 _ACEOF
1940 exec 5>>config.log
1942 cat <<_ASUNAME
1943 ## --------- ##
1944 ## Platform. ##
1945 ## --------- ##
1947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1959 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1964 _ASUNAME
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 $as_echo "PATH: $as_dir"
1972 done
1973 IFS=$as_save_IFS
1975 } >&5
1977 cat >&5 <<_ACEOF
1980 ## ----------- ##
1981 ## Core tests. ##
1982 ## ----------- ##
1984 _ACEOF
1987 # Keep a trace of the command line.
1988 # Strip out --no-create and --no-recursion so they do not pile up.
1989 # Strip out --silent because we don't want to record it for future runs.
1990 # Also quote any args containing shell meta-characters.
1991 # Make two passes to allow for proper duplicate-argument suppression.
1992 ac_configure_args=
1993 ac_configure_args0=
1994 ac_configure_args1=
1995 ac_must_keep_next=false
1996 for ac_pass in 1 2
1998 for ac_arg
2000 case $ac_arg in
2001 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2003 | -silent | --silent | --silen | --sile | --sil)
2004 continue ;;
2005 *\'*)
2006 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 esac
2008 case $ac_pass in
2009 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011 as_fn_append ac_configure_args1 " '$ac_arg'"
2012 if test $ac_must_keep_next = true; then
2013 ac_must_keep_next=false # Got value, back to normal.
2014 else
2015 case $ac_arg in
2016 *=* | --config-cache | -C | -disable-* | --disable-* \
2017 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2018 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2019 | -with-* | --with-* | -without-* | --without-* | --x)
2020 case "$ac_configure_args0 " in
2021 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2022 esac
2024 -* ) ac_must_keep_next=true ;;
2025 esac
2027 as_fn_append ac_configure_args " '$ac_arg'"
2029 esac
2030 done
2031 done
2032 { ac_configure_args0=; unset ac_configure_args0;}
2033 { ac_configure_args1=; unset ac_configure_args1;}
2035 # When interrupted or exit'd, cleanup temporary files, and complete
2036 # config.log. We remove comments because anyway the quotes in there
2037 # would cause problems or look ugly.
2038 # WARNING: Use '\'' to represent an apostrophe within the trap.
2039 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2040 trap 'exit_status=$?
2041 # Save into config.log some information that might help in debugging.
2043 echo
2045 $as_echo "## ---------------- ##
2046 ## Cache variables. ##
2047 ## ---------------- ##"
2048 echo
2049 # The following way of writing the cache mishandles newlines in values,
2051 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in #(
2054 *${as_nl}*)
2055 case $ac_var in #(
2056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2058 esac
2059 case $ac_var in #(
2060 _ | IFS | as_nl) ;; #(
2061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2062 *) { eval $ac_var=; unset $ac_var;} ;;
2063 esac ;;
2064 esac
2065 done
2066 (set) 2>&1 |
2067 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2068 *${as_nl}ac_space=\ *)
2069 sed -n \
2070 "s/'\''/'\''\\\\'\'''\''/g;
2071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2072 ;; #(
2074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2076 esac |
2077 sort
2079 echo
2081 $as_echo "## ----------------- ##
2082 ## Output variables. ##
2083 ## ----------------- ##"
2084 echo
2085 for ac_var in $ac_subst_vars
2087 eval ac_val=\$$ac_var
2088 case $ac_val in
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 esac
2091 $as_echo "$ac_var='\''$ac_val'\''"
2092 done | sort
2093 echo
2095 if test -n "$ac_subst_files"; then
2096 $as_echo "## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##"
2099 echo
2100 for ac_var in $ac_subst_files
2102 eval ac_val=\$$ac_var
2103 case $ac_val in
2104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 esac
2106 $as_echo "$ac_var='\''$ac_val'\''"
2107 done | sort
2108 echo
2111 if test -s confdefs.h; then
2112 $as_echo "## ----------- ##
2113 ## confdefs.h. ##
2114 ## ----------- ##"
2115 echo
2116 cat confdefs.h
2117 echo
2119 test "$ac_signal" != 0 &&
2120 $as_echo "$as_me: caught signal $ac_signal"
2121 $as_echo "$as_me: exit $exit_status"
2122 } >&5
2123 rm -f core *.core core.conftest.* &&
2124 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2125 exit $exit_status
2127 for ac_signal in 1 2 13 15; do
2128 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2129 done
2130 ac_signal=0
2132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2133 rm -f -r conftest* confdefs.h
2135 $as_echo "/* confdefs.h */" > confdefs.h
2137 # Predefined preprocessor variables.
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_NAME "$PACKAGE_NAME"
2141 _ACEOF
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2145 _ACEOF
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2149 _ACEOF
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_STRING "$PACKAGE_STRING"
2153 _ACEOF
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2157 _ACEOF
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_URL "$PACKAGE_URL"
2161 _ACEOF
2164 # Let the site file select an alternate cache file if it wants to.
2165 # Prefer an explicitly selected file to automatically selected ones.
2166 ac_site_file1=NONE
2167 ac_site_file2=NONE
2168 if test -n "$CONFIG_SITE"; then
2169 # We do not want a PATH search for config.site.
2170 case $CONFIG_SITE in #((
2171 -*) ac_site_file1=./$CONFIG_SITE;;
2172 */*) ac_site_file1=$CONFIG_SITE;;
2173 *) ac_site_file1=./$CONFIG_SITE;;
2174 esac
2175 elif test "x$prefix" != xNONE; then
2176 ac_site_file1=$prefix/share/config.site
2177 ac_site_file2=$prefix/etc/config.site
2178 else
2179 ac_site_file1=$ac_default_prefix/share/config.site
2180 ac_site_file2=$ac_default_prefix/etc/config.site
2182 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2184 test "x$ac_site_file" = xNONE && continue
2185 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2188 sed 's/^/| /' "$ac_site_file" >&5
2189 . "$ac_site_file" \
2190 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2192 as_fn_error $? "failed to load site script $ac_site_file
2193 See \`config.log' for more details" "$LINENO" 5; }
2195 done
2197 if test -r "$cache_file"; then
2198 # Some versions of bash will fail to source /dev/null (special files
2199 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2200 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202 $as_echo "$as_me: loading cache $cache_file" >&6;}
2203 case $cache_file in
2204 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205 *) . "./$cache_file";;
2206 esac
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210 $as_echo "$as_me: creating cache $cache_file" >&6;}
2211 >$cache_file
2214 # Check that the precious variables saved in the cache have kept the same
2215 # value.
2216 ac_cache_corrupted=false
2217 for ac_var in $ac_precious_vars; do
2218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2219 eval ac_new_set=\$ac_env_${ac_var}_set
2220 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2221 eval ac_new_val=\$ac_env_${ac_var}_value
2222 case $ac_old_set,$ac_new_set in
2223 set,)
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2226 ac_cache_corrupted=: ;;
2227 ,set)
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2230 ac_cache_corrupted=: ;;
2231 ,);;
2233 if test "x$ac_old_val" != "x$ac_new_val"; then
2234 # differences in whitespace do not lead to failure.
2235 ac_old_val_w=`echo x $ac_old_val`
2236 ac_new_val_w=`echo x $ac_new_val`
2237 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2240 ac_cache_corrupted=:
2241 else
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2244 eval $ac_var=\$ac_old_val
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2247 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2249 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2250 fi;;
2251 esac
2252 # Pass precious variables to config.status.
2253 if test "$ac_new_set" = set; then
2254 case $ac_new_val in
2255 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 *) ac_arg=$ac_var=$ac_new_val ;;
2257 esac
2258 case " $ac_configure_args " in
2259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2260 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2261 esac
2263 done
2264 if $ac_cache_corrupted; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2269 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2271 ## -------------------- ##
2272 ## Main body of script. ##
2273 ## -------------------- ##
2275 ac_ext=c
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 config_file=config.mak.autogen
2286 config_in=config.mak.in
2288 config_appended_defs=; newline='
2290 ac_config_commands="$ac_config_commands $config_file"
2293 config_appended_defs="$config_appended_defs${newline}AUTOCONFIGURED=YesPlease"
2295 # Directories holding "saner" versions of common or POSIX binaries.
2297 # Check whether --with-sane-tool-path was given.
2298 if test "${with_sane_tool_path+set}" = set; then :
2299 withval=$with_sane_tool_path; if test "$withval" = "no"; then
2300 withval=''
2301 else
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SANE_TOOL_PATH to '$withval'" >&5
2303 $as_echo "$as_me: Setting SANE_TOOL_PATH to '$withval'" >&6;}
2306 config_appended_defs="$config_appended_defs${newline}SANE_TOOL_PATH=$withval"
2307 else
2308 # If the "--with-sane-tool-path" option was not given, don't touch
2309 # SANE_TOOL_PATH here, but let defaults in Makefile take care of it.
2310 # This should minimize spurious differences in the behaviour of the
2311 # Git build system when configure is used w.r.t. when it is not.
2316 ## Site configuration related to programs (before tests)
2317 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2319 # Set lib to alternative name of lib directory (e.g. lib64)
2321 # Check whether --with-lib was given.
2322 if test "${with_lib+set}" = set; then :
2323 withval=$with_lib; if test "$withval" = "no" || test "$withval" = "yes"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide name for --with-lib=ARG" >&5
2325 $as_echo "$as_me: WARNING: You should provide name for --with-lib=ARG" >&2;}
2326 else
2327 lib=$withval
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to '$lib'" >&5
2329 $as_echo "$as_me: Setting lib to '$lib'" >&6;}
2331 config_appended_defs="$config_appended_defs${newline}lib=${lib}"
2336 if test -z "$lib"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to 'lib' (the default)" >&5
2338 $as_echo "$as_me: Setting lib to 'lib' (the default)" >&6;}
2339 lib=lib
2342 # Check whether --enable-pthreads was given.
2343 if test "${enable_pthreads+set}" = set; then :
2344 enableval=$enable_pthreads;
2345 if test "x$enableval" = "xyes"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads" >&5
2347 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads" >&6;}
2348 elif test "x$enableval" != "xno"; then
2349 PTHREAD_CFLAGS=$enableval
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&5
2351 $as_echo "$as_me: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&6;}
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: POSIX Threads will be disabled." >&5
2354 $as_echo "$as_me: POSIX Threads will be disabled." >&6;}
2355 NO_PTHREADS=YesPlease
2356 USER_NOPTHREAD=1
2358 else
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads." >&5
2361 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads." >&6;}
2366 # Define option to enable JavaScript minification
2367 # Check whether --enable-jsmin was given.
2368 if test "${enable_jsmin+set}" = set; then :
2369 enableval=$enable_jsmin;
2370 JSMIN=$enableval;
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&5
2372 $as_echo "$as_me: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&6;}
2374 config_appended_defs="$config_appended_defs${newline}JSMIN=${JSMIN}"
2379 # Define option to enable CSS minification
2380 # Check whether --enable-cssmin was given.
2381 if test "${enable_cssmin+set}" = set; then :
2382 enableval=$enable_cssmin;
2383 CSSMIN=$enableval;
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&5
2385 $as_echo "$as_me: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&6;}
2387 config_appended_defs="$config_appended_defs${newline}CSSMIN=${CSSMIN}"
2392 ## Site configuration (override autodetection)
2393 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for site configuration" >&5
2395 $as_echo "$as_me: CHECKS for site configuration" >&6;}
2397 # Define NO_SVN_TESTS if you want to skip time-consuming SVN interoperability
2398 # tests. These tests take up a significant amount of the total test time
2399 # but are not needed unless you plan to talk to SVN repos.
2401 # Define PPC_SHA1 environment variable when running make to make use of
2402 # a bundled SHA1 routine optimized for PowerPC.
2404 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
2405 # This also implies BLK_SHA1.
2407 # Define OPENSSLDIR=/foo/bar if your openssl header and library files are in
2408 # /foo/bar/include and /foo/bar/lib directories.
2410 # Check whether --with-openssl was given.
2411 if test "${with_openssl+set}" = set; then :
2412 withval=$with_openssl; if test "$withval" = "no"; then
2413 NO_OPENSSL=YesPlease
2414 elif test "$withval" = "yes"; then
2415 NO_OPENSSL=
2416 else
2417 NO_OPENSSL=
2418 OPENSSLDIR=$withval
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting OPENSSLDIR to $withval" >&5
2420 $as_echo "$as_me: Setting OPENSSLDIR to $withval" >&6;}
2422 config_appended_defs="$config_appended_defs${newline}OPENSSLDIR=$withval"
2428 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
2429 # able to use Perl-compatible regular expressions.
2431 # Define LIBPCREDIR=/foo/bar if your libpcre header and library files are in
2432 # /foo/bar/include and /foo/bar/lib directories.
2435 # Check whether --with-libpcre was given.
2436 if test "${with_libpcre+set}" = set; then :
2437 withval=$with_libpcre; if test "$withval" = "no"; then
2438 USE_LIBPCRE=
2439 elif test "$withval" = "yes"; then
2440 USE_LIBPCRE=YesPlease
2441 else
2442 USE_LIBPCRE=YesPlease
2443 LIBPCREDIR=$withval
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting LIBPCREDIR to $LIBPCREDIR" >&5
2445 $as_echo "$as_me: Setting LIBPCREDIR to $LIBPCREDIR" >&6;}
2447 config_appended_defs="$config_appended_defs${newline}LIBPCREDIR=${LIBPCREDIR}"
2452 # Define HAVE_ALLOCA_H if you have working alloca(3) defined in that header.
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2497 if test -z "$ac_cv_prog_CC"; then
2498 ac_ct_CC=$CC
2499 # Extract the first word of "gcc", so it can be a program name with args.
2500 set dummy gcc; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$ac_ct_CC"; then
2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_CC="gcc"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2520 done
2521 done
2522 IFS=$as_save_IFS
2526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2527 if test -n "$ac_ct_CC"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2529 $as_echo "$ac_ct_CC" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2535 if test "x$ac_ct_CC" = x; then
2536 CC=""
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544 CC=$ac_ct_CC
2546 else
2547 CC="$ac_cv_prog_CC"
2550 if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}cc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_CC="${ac_tool_prefix}cc"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2573 done
2574 done
2575 IFS=$as_save_IFS
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2591 if test -z "$CC"; then
2592 # Extract the first word of "cc", so it can be a program name with args.
2593 set dummy cc; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 ac_prog_rejected=no
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2611 ac_prog_rejected=yes
2612 continue
2614 ac_cv_prog_CC="cc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2618 done
2619 done
2620 IFS=$as_save_IFS
2622 if test $ac_prog_rejected = yes; then
2623 # We found a bogon in the path, so make sure we never use it.
2624 set dummy $ac_cv_prog_CC
2625 shift
2626 if test $# != 0; then
2627 # We chose a different compiler from the bogus one.
2628 # However, it has the same basename, so the bogon will be chosen
2629 # first if we set CC to just the basename; use the full file name.
2630 shift
2631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639 $as_echo "$CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2647 if test -z "$CC"; then
2648 if test -n "$ac_tool_prefix"; then
2649 for ac_prog in cl.exe
2651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2674 IFS=$as_save_IFS
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2688 test -n "$CC" && break
2689 done
2691 if test -z "$CC"; then
2692 ac_ct_CC=$CC
2693 for ac_prog in cl.exe
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$ac_ct_CC"; then
2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_ac_ct_CC="$ac_prog"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2716 done
2717 done
2718 IFS=$as_save_IFS
2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723 if test -n "$ac_ct_CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2725 $as_echo "$ac_ct_CC" >&6; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2732 test -n "$ac_ct_CC" && break
2733 done
2735 if test "x$ac_ct_CC" = x; then
2736 CC=""
2737 else
2738 case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744 CC=$ac_ct_CC
2751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753 as_fn_error $? "no acceptable C compiler found in \$PATH
2754 See \`config.log' for more details" "$LINENO" 5; }
2756 # Provide some information about the compiler.
2757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2758 set X $ac_compile
2759 ac_compiler=$2
2760 for ac_option in --version -v -V -qversion; do
2761 { { ac_try="$ac_compiler $ac_option >&5"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2769 ac_status=$?
2770 if test -s conftest.err; then
2771 sed '10a\
2772 ... rest of stderr output deleted ...
2773 10q' conftest.err >conftest.er1
2774 cat conftest.er1 >&5
2776 rm -f conftest.er1 conftest.err
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }
2779 done
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2785 main ()
2789 return 0;
2791 _ACEOF
2792 ac_clean_files_save=$ac_clean_files
2793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2794 # Try to create an executable without -o first, disregard a.out.
2795 # It will help us diagnose broken compilers, and finding out an intuition
2796 # of exeext.
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2798 $as_echo_n "checking whether the C compiler works... " >&6; }
2799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2801 # The possible output files:
2802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2804 ac_rmfiles=
2805 for ac_file in $ac_files
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 esac
2811 done
2812 rm -f $ac_rmfiles
2814 if { { ac_try="$ac_link_default"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link_default") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }; then :
2825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2828 # so that the user can short-circuit this test for compilers unknown to
2829 # Autoconf.
2830 for ac_file in $ac_files ''
2832 test -f "$ac_file" || continue
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2836 [ab].out )
2837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
2840 *.* )
2841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
2850 break;;
2852 break;;
2853 esac
2854 done
2855 test "$ac_cv_exeext" = no && ac_cv_exeext=
2857 else
2858 ac_file=''
2860 if test -z "$ac_file"; then :
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 $as_echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868 as_fn_error 77 "C compiler cannot create executables
2869 See \`config.log' for more details" "$LINENO" 5; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2875 $as_echo_n "checking for C compiler default output file name... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2877 $as_echo "$ac_file" >&6; }
2878 ac_exeext=$ac_cv_exeext
2880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2881 ac_clean_files=$ac_clean_files_save
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2883 $as_echo_n "checking for suffix of executables... " >&6; }
2884 if { { ac_try="$ac_link"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890 $as_echo "$ac_try_echo"; } >&5
2891 (eval "$ac_link") 2>&5
2892 ac_status=$?
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }; then :
2895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2897 # work properly (i.e., refer to `conftest.exe'), while it won't with
2898 # `rm'.
2899 for ac_file in conftest.exe conftest conftest.*; do
2900 test -f "$ac_file" || continue
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 break;;
2905 * ) break;;
2906 esac
2907 done
2908 else
2909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details" "$LINENO" 5; }
2914 rm -f conftest conftest$ac_cv_exeext
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2916 $as_echo "$ac_cv_exeext" >&6; }
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923 #include <stdio.h>
2925 main ()
2927 FILE *f = fopen ("conftest.out", "w");
2928 return ferror (f) || fclose (f) != 0;
2931 return 0;
2933 _ACEOF
2934 ac_clean_files="$ac_clean_files conftest.out"
2935 # Check that the compiler produces executables we can run. If not, either
2936 # the compiler is broken, or we cross compile.
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2938 $as_echo_n "checking whether we are cross compiling... " >&6; }
2939 if test "$cross_compiling" != yes; then
2940 { { ac_try="$ac_link"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_link") 2>&5
2948 ac_status=$?
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }
2951 if { ac_try='./conftest$ac_cv_exeext'
2952 { { case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; }; then
2962 cross_compiling=no
2963 else
2964 if test "$cross_compiling" = maybe; then
2965 cross_compiling=yes
2966 else
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $? "cannot run C compiled programs.
2970 If you meant to cross compile, use \`--host'.
2971 See \`config.log' for more details" "$LINENO" 5; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2976 $as_echo "$cross_compiling" >&6; }
2978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2979 ac_clean_files=$ac_clean_files_save
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2981 $as_echo_n "checking for suffix of object files... " >&6; }
2982 if ${ac_cv_objext+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2989 main ()
2993 return 0;
2995 _ACEOF
2996 rm -f conftest.o conftest.obj
2997 if { { ac_try="$ac_compile"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 $as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_compile") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 for ac_file in conftest.o conftest.obj conftest.*; do
3009 test -f "$ac_file" || continue;
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3013 break;;
3014 esac
3015 done
3016 else
3017 $as_echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "cannot compute suffix of object files: cannot compile
3023 See \`config.log' for more details" "$LINENO" 5; }
3025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3028 $as_echo "$ac_cv_objext" >&6; }
3029 OBJEXT=$ac_cv_objext
3030 ac_objext=$OBJEXT
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3033 if ${ac_cv_c_compiler_gnu+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3040 main ()
3042 #ifndef __GNUC__
3043 choke me
3044 #endif
3047 return 0;
3049 _ACEOF
3050 if ac_fn_c_try_compile "$LINENO"; then :
3051 ac_compiler_gnu=yes
3052 else
3053 ac_compiler_gnu=no
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3061 if test $ac_compiler_gnu = yes; then
3062 GCC=yes
3063 else
3064 GCC=
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3070 if ${ac_cv_prog_cc_g+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3075 ac_cv_prog_cc_g=no
3076 CFLAGS="-g"
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3081 main ()
3085 return 0;
3087 _ACEOF
3088 if ac_fn_c_try_compile "$LINENO"; then :
3089 ac_cv_prog_cc_g=yes
3090 else
3091 CFLAGS=""
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3096 main ()
3100 return 0;
3102 _ACEOF
3103 if ac_fn_c_try_compile "$LINENO"; then :
3105 else
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3107 CFLAGS="-g"
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3112 main ()
3116 return 0;
3118 _ACEOF
3119 if ac_fn_c_try_compile "$LINENO"; then :
3120 ac_cv_prog_cc_g=yes
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3130 $as_echo "$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132 CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134 if test "$GCC" = yes; then
3135 CFLAGS="-g -O2"
3136 else
3137 CFLAGS="-g"
3139 else
3140 if test "$GCC" = yes; then
3141 CFLAGS="-O2"
3142 else
3143 CFLAGS=
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3148 if ${ac_cv_prog_cc_c89+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 ac_cv_prog_cc_c89=no
3152 ac_save_CC=$CC
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155 #include <stdarg.h>
3156 #include <stdio.h>
3157 struct stat;
3158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3159 struct buf { int x; };
3160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3161 static char *e (p, i)
3162 char **p;
3163 int i;
3165 return p[i];
3167 static char *f (char * (*g) (char **, int), char **p, ...)
3169 char *s;
3170 va_list v;
3171 va_start (v,p);
3172 s = g (p, va_arg (v,int));
3173 va_end (v);
3174 return s;
3177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3178 function prototypes and stuff, but not '\xHH' hex character constants.
3179 These don't provoke an error unfortunately, instead are silently treated
3180 as 'x'. The following induces an error, until -std is added to get
3181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3182 array size at least. It's necessary to write '\x00'==0 to get something
3183 that's true only with -std. */
3184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3187 inside strings and character constants. */
3188 #define FOO(x) 'x'
3189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3191 int test (int i, double x);
3192 struct s1 {int (*f) (int a);};
3193 struct s2 {int (*f) (double a);};
3194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3195 int argc;
3196 char **argv;
3198 main ()
3200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3202 return 0;
3204 _ACEOF
3205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3208 CC="$ac_save_CC $ac_arg"
3209 if ac_fn_c_try_compile "$LINENO"; then :
3210 ac_cv_prog_cc_c89=$ac_arg
3212 rm -f core conftest.err conftest.$ac_objext
3213 test "x$ac_cv_prog_cc_c89" != "xno" && break
3214 done
3215 rm -f conftest.$ac_ext
3216 CC=$ac_save_CC
3219 # AC_CACHE_VAL
3220 case "x$ac_cv_prog_cc_c89" in
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3223 $as_echo "none needed" >&6; } ;;
3224 xno)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3226 $as_echo "unsupported" >&6; } ;;
3228 CC="$CC $ac_cv_prog_cc_c89"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3231 esac
3232 if test "x$ac_cv_prog_cc_c89" != xno; then :
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3249 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3250 # On Suns, sometimes $CPP names a directory.
3251 if test -n "$CPP" && test -d "$CPP"; then
3252 CPP=
3254 if test -z "$CPP"; then
3255 if ${ac_cv_prog_CPP+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 # Double quotes because CPP needs to be expanded
3259 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3261 ac_preproc_ok=false
3262 for ac_c_preproc_warn_flag in '' yes
3264 # Use a header file that comes with gcc, so configuring glibc
3265 # with a fresh cross-compiler works.
3266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3267 # <limits.h> exists even on freestanding compilers.
3268 # On the NeXT, cc -E runs the code through the compiler's parser,
3269 # not just through cpp. "Syntax error" is here to catch this case.
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277 Syntax error
3278 _ACEOF
3279 if ac_fn_c_try_cpp "$LINENO"; then :
3281 else
3282 # Broken: fails on valid input.
3283 continue
3285 rm -f conftest.err conftest.i conftest.$ac_ext
3287 # OK, works on sane cases. Now check whether nonexistent headers
3288 # can be detected and how.
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3291 #include <ac_nonexistent.h>
3292 _ACEOF
3293 if ac_fn_c_try_cpp "$LINENO"; then :
3294 # Broken: success on invalid input.
3295 continue
3296 else
3297 # Passes both tests.
3298 ac_preproc_ok=:
3299 break
3301 rm -f conftest.err conftest.i conftest.$ac_ext
3303 done
3304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3305 rm -f conftest.i conftest.err conftest.$ac_ext
3306 if $ac_preproc_ok; then :
3307 break
3310 done
3311 ac_cv_prog_CPP=$CPP
3314 CPP=$ac_cv_prog_CPP
3315 else
3316 ac_cv_prog_CPP=$CPP
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3319 $as_echo "$CPP" >&6; }
3320 ac_preproc_ok=false
3321 for ac_c_preproc_warn_flag in '' yes
3323 # Use a header file that comes with gcc, so configuring glibc
3324 # with a fresh cross-compiler works.
3325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326 # <limits.h> exists even on freestanding compilers.
3327 # On the NeXT, cc -E runs the code through the compiler's parser,
3328 # not just through cpp. "Syntax error" is here to catch this case.
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if ac_fn_c_try_cpp "$LINENO"; then :
3340 else
3341 # Broken: fails on valid input.
3342 continue
3344 rm -f conftest.err conftest.i conftest.$ac_ext
3346 # OK, works on sane cases. Now check whether nonexistent headers
3347 # can be detected and how.
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350 #include <ac_nonexistent.h>
3351 _ACEOF
3352 if ac_fn_c_try_cpp "$LINENO"; then :
3353 # Broken: success on invalid input.
3354 continue
3355 else
3356 # Passes both tests.
3357 ac_preproc_ok=:
3358 break
3360 rm -f conftest.err conftest.i conftest.$ac_ext
3362 done
3363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3364 rm -f conftest.i conftest.err conftest.$ac_ext
3365 if $ac_preproc_ok; then :
3367 else
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3371 See \`config.log' for more details" "$LINENO" 5; }
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3382 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3383 if ${ac_cv_path_GREP+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -z "$GREP"; then
3387 ac_path_GREP_found=false
3388 # Loop through the user's path and test for each of PROGNAME-LIST
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_prog in grep ggrep; do
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3397 as_fn_executable_p "$ac_path_GREP" || continue
3398 # Check for GNU ac_path_GREP and select it if it is found.
3399 # Check for GNU $ac_path_GREP
3400 case `"$ac_path_GREP" --version 2>&1` in
3401 *GNU*)
3402 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3404 ac_count=0
3405 $as_echo_n 0123456789 >"conftest.in"
3406 while :
3408 cat "conftest.in" "conftest.in" >"conftest.tmp"
3409 mv "conftest.tmp" "conftest.in"
3410 cp "conftest.in" "conftest.nl"
3411 $as_echo 'GREP' >> "conftest.nl"
3412 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3414 as_fn_arith $ac_count + 1 && ac_count=$as_val
3415 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3416 # Best one so far, save it but keep looking for a better one
3417 ac_cv_path_GREP="$ac_path_GREP"
3418 ac_path_GREP_max=$ac_count
3420 # 10*(2^10) chars as input seems more than enough
3421 test $ac_count -gt 10 && break
3422 done
3423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3424 esac
3426 $ac_path_GREP_found && break 3
3427 done
3428 done
3429 done
3430 IFS=$as_save_IFS
3431 if test -z "$ac_cv_path_GREP"; then
3432 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3434 else
3435 ac_cv_path_GREP=$GREP
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3440 $as_echo "$ac_cv_path_GREP" >&6; }
3441 GREP="$ac_cv_path_GREP"
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3445 $as_echo_n "checking for egrep... " >&6; }
3446 if ${ac_cv_path_EGREP+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3450 then ac_cv_path_EGREP="$GREP -E"
3451 else
3452 if test -z "$EGREP"; then
3453 ac_path_EGREP_found=false
3454 # Loop through the user's path and test for each of PROGNAME-LIST
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_prog in egrep; do
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3463 as_fn_executable_p "$ac_path_EGREP" || continue
3464 # Check for GNU ac_path_EGREP and select it if it is found.
3465 # Check for GNU $ac_path_EGREP
3466 case `"$ac_path_EGREP" --version 2>&1` in
3467 *GNU*)
3468 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3470 ac_count=0
3471 $as_echo_n 0123456789 >"conftest.in"
3472 while :
3474 cat "conftest.in" "conftest.in" >"conftest.tmp"
3475 mv "conftest.tmp" "conftest.in"
3476 cp "conftest.in" "conftest.nl"
3477 $as_echo 'EGREP' >> "conftest.nl"
3478 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3480 as_fn_arith $ac_count + 1 && ac_count=$as_val
3481 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3482 # Best one so far, save it but keep looking for a better one
3483 ac_cv_path_EGREP="$ac_path_EGREP"
3484 ac_path_EGREP_max=$ac_count
3486 # 10*(2^10) chars as input seems more than enough
3487 test $ac_count -gt 10 && break
3488 done
3489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3490 esac
3492 $ac_path_EGREP_found && break 3
3493 done
3494 done
3495 done
3496 IFS=$as_save_IFS
3497 if test -z "$ac_cv_path_EGREP"; then
3498 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3500 else
3501 ac_cv_path_EGREP=$EGREP
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3507 $as_echo "$ac_cv_path_EGREP" >&6; }
3508 EGREP="$ac_cv_path_EGREP"
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3512 $as_echo_n "checking for ANSI C header files... " >&6; }
3513 if ${ac_cv_header_stdc+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3518 #include <stdlib.h>
3519 #include <stdarg.h>
3520 #include <string.h>
3521 #include <float.h>
3524 main ()
3528 return 0;
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_header_stdc=yes
3533 else
3534 ac_cv_header_stdc=no
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 if test $ac_cv_header_stdc = yes; then
3539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542 #include <string.h>
3544 _ACEOF
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546 $EGREP "memchr" >/dev/null 2>&1; then :
3548 else
3549 ac_cv_header_stdc=no
3551 rm -f conftest*
3555 if test $ac_cv_header_stdc = yes; then
3556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 #include <stdlib.h>
3561 _ACEOF
3562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3563 $EGREP "free" >/dev/null 2>&1; then :
3565 else
3566 ac_cv_header_stdc=no
3568 rm -f conftest*
3572 if test $ac_cv_header_stdc = yes; then
3573 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3574 if test "$cross_compiling" = yes; then :
3576 else
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <ctype.h>
3580 #include <stdlib.h>
3581 #if ((' ' & 0x0FF) == 0x020)
3582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3584 #else
3585 # define ISLOWER(c) \
3586 (('a' <= (c) && (c) <= 'i') \
3587 || ('j' <= (c) && (c) <= 'r') \
3588 || ('s' <= (c) && (c) <= 'z'))
3589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3590 #endif
3592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3594 main ()
3596 int i;
3597 for (i = 0; i < 256; i++)
3598 if (XOR (islower (i), ISLOWER (i))
3599 || toupper (i) != TOUPPER (i))
3600 return 2;
3601 return 0;
3603 _ACEOF
3604 if ac_fn_c_try_run "$LINENO"; then :
3606 else
3607 ac_cv_header_stdc=no
3609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3610 conftest.$ac_objext conftest.beam conftest.$ac_ext
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3616 $as_echo "$ac_cv_header_stdc" >&6; }
3617 if test $ac_cv_header_stdc = yes; then
3619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3625 inttypes.h stdint.h unistd.h
3626 do :
3627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3628 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3631 cat >>confdefs.h <<_ACEOF
3632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3633 _ACEOF
3637 done
3640 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3641 if test "x$ac_cv_type_size_t" = xyes; then :
3643 else
3645 cat >>confdefs.h <<_ACEOF
3646 #define size_t unsigned int
3647 _ACEOF
3651 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3652 # for constant arguments. Useless!
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
3654 $as_echo_n "checking for working alloca.h... " >&6; }
3655 if ${ac_cv_working_alloca_h+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #include <alloca.h>
3662 main ()
3664 char *p = (char *) alloca (2 * sizeof (int));
3665 if (p) return 0;
3667 return 0;
3669 _ACEOF
3670 if ac_fn_c_try_link "$LINENO"; then :
3671 ac_cv_working_alloca_h=yes
3672 else
3673 ac_cv_working_alloca_h=no
3675 rm -f core conftest.err conftest.$ac_objext \
3676 conftest$ac_exeext conftest.$ac_ext
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
3679 $as_echo "$ac_cv_working_alloca_h" >&6; }
3680 if test $ac_cv_working_alloca_h = yes; then
3682 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
3687 $as_echo_n "checking for alloca... " >&6; }
3688 if ${ac_cv_func_alloca_works+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693 #ifdef __GNUC__
3694 # define alloca __builtin_alloca
3695 #else
3696 # ifdef _MSC_VER
3697 # include <malloc.h>
3698 # define alloca _alloca
3699 # else
3700 # ifdef HAVE_ALLOCA_H
3701 # include <alloca.h>
3702 # else
3703 # ifdef _AIX
3704 #pragma alloca
3705 # else
3706 # ifndef alloca /* predefined by HP cc +Olibcalls */
3707 void *alloca (size_t);
3708 # endif
3709 # endif
3710 # endif
3711 # endif
3712 #endif
3715 main ()
3717 char *p = (char *) alloca (1);
3718 if (p) return 0;
3720 return 0;
3722 _ACEOF
3723 if ac_fn_c_try_link "$LINENO"; then :
3724 ac_cv_func_alloca_works=yes
3725 else
3726 ac_cv_func_alloca_works=no
3728 rm -f core conftest.err conftest.$ac_objext \
3729 conftest$ac_exeext conftest.$ac_ext
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
3732 $as_echo "$ac_cv_func_alloca_works" >&6; }
3734 if test $ac_cv_func_alloca_works = yes; then
3736 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
3738 else
3739 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3740 # that cause trouble. Some versions do not even contain alloca or
3741 # contain a buggy version. If you still want to use their alloca,
3742 # use ar to extract alloca.o from them instead of compiling alloca.c.
3744 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3746 $as_echo "#define C_ALLOCA 1" >>confdefs.h
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
3750 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
3751 if ${ac_cv_os_cray+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 #if defined CRAY && ! defined CRAY2
3757 webecray
3758 #else
3759 wenotbecray
3760 #endif
3762 _ACEOF
3763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3764 $EGREP "webecray" >/dev/null 2>&1; then :
3765 ac_cv_os_cray=yes
3766 else
3767 ac_cv_os_cray=no
3769 rm -f conftest*
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
3773 $as_echo "$ac_cv_os_cray" >&6; }
3774 if test $ac_cv_os_cray = yes; then
3775 for ac_func in _getb67 GETB67 getb67; do
3776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3780 cat >>confdefs.h <<_ACEOF
3781 #define CRAY_STACKSEG_END $ac_func
3782 _ACEOF
3784 break
3787 done
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
3791 $as_echo_n "checking stack direction for C alloca... " >&6; }
3792 if ${ac_cv_c_stack_direction+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test "$cross_compiling" = yes; then :
3796 ac_cv_c_stack_direction=0
3797 else
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 $ac_includes_default
3802 find_stack_direction (int *addr, int depth)
3804 int dir, dummy = 0;
3805 if (! addr)
3806 addr = &dummy;
3807 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
3808 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
3809 return dir + dummy;
3813 main (int argc, char **argv)
3815 return find_stack_direction (0, argc + !argv + 20) < 0;
3817 _ACEOF
3818 if ac_fn_c_try_run "$LINENO"; then :
3819 ac_cv_c_stack_direction=1
3820 else
3821 ac_cv_c_stack_direction=-1
3823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3824 conftest.$ac_objext conftest.beam conftest.$ac_ext
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
3829 $as_echo "$ac_cv_c_stack_direction" >&6; }
3830 cat >>confdefs.h <<_ACEOF
3831 #define STACK_DIRECTION $ac_cv_c_stack_direction
3832 _ACEOF
3837 case $ac_cv_working_alloca_h in
3838 yes) HAVE_ALLOCA_H=YesPlease;;
3839 *) HAVE_ALLOCA_H='';;
3840 esac
3842 config_appended_defs="$config_appended_defs${newline}HAVE_ALLOCA_H=${HAVE_ALLOCA_H}"
3844 # Define NO_CURL if you do not have curl installed. git-http-pull and
3845 # git-http-push are not built, and you cannot use http:// and https://
3846 # transports.
3848 # Define CURLDIR=/foo/bar if your curl header and library files are in
3849 # /foo/bar/include and /foo/bar/lib directories.
3851 # Check whether --with-curl was given.
3852 if test "${with_curl+set}" = set; then :
3853 withval=$with_curl; if test "$withval" = "no"; then
3854 NO_CURL=YesPlease
3855 elif test "$withval" = "yes"; then
3856 NO_CURL=
3857 else
3858 NO_CURL=
3859 CURLDIR=$withval
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CURLDIR to $withval" >&5
3861 $as_echo "$as_me: Setting CURLDIR to $withval" >&6;}
3863 config_appended_defs="$config_appended_defs${newline}CURLDIR=$withval"
3869 # Define NO_EXPAT if you do not have expat installed. git-http-push is
3870 # not built, and you cannot push using http:// and https:// transports.
3872 # Define EXPATDIR=/foo/bar if your expat header and library files are in
3873 # /foo/bar/include and /foo/bar/lib directories.
3875 # Check whether --with-expat was given.
3876 if test "${with_expat+set}" = set; then :
3877 withval=$with_expat; if test "$withval" = "no"; then
3878 NO_EXPAT=YesPlease
3879 elif test "$withval" = "yes"; then
3880 NO_EXPAT=
3881 else
3882 NO_EXPAT=
3883 EXPATDIR=$withval
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting EXPATDIR to $withval" >&5
3885 $as_echo "$as_me: Setting EXPATDIR to $withval" >&6;}
3887 config_appended_defs="$config_appended_defs${newline}EXPATDIR=$withval"
3893 # Define NO_FINK if you are building on Darwin/Mac OS X, have Fink
3894 # installed in /sw, but don't want GIT to link against any libraries
3895 # installed there. If defined you may specify your own (or Fink's)
3896 # include directories and library directories by defining CFLAGS
3897 # and LDFLAGS appropriately.
3899 # Define NO_DARWIN_PORTS if you are building on Darwin/Mac OS X,
3900 # have DarwinPorts installed in /opt/local, but don't want GIT to
3901 # link against any libraries installed there. If defined you may
3902 # specify your own (or DarwinPort's) include directories and
3903 # library directories by defining CFLAGS and LDFLAGS appropriately.
3905 # Define NO_MMAP if you want to avoid mmap.
3907 # Define NO_ICONV if your libc does not properly support iconv.
3909 # Check whether --with-iconv was given.
3910 if test "${with_iconv+set}" = set; then :
3911 withval=$with_iconv; if test "$withval" = "no"; then
3912 NO_ICONV=YesPlease
3913 elif test "$withval" = "yes"; then
3914 NO_ICONV=
3915 else
3916 NO_ICONV=
3917 ICONVDIR=$withval
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ICONVDIR to $withval" >&5
3919 $as_echo "$as_me: Setting ICONVDIR to $withval" >&6;}
3921 config_appended_defs="$config_appended_defs${newline}ICONVDIR=$withval"
3927 ## --enable-FEATURE[=ARG] and --disable-FEATURE
3929 # Define USE_NSEC below if you want git to care about sub-second file mtimes
3930 # and ctimes. Note that you need recent glibc (at least 2.2.4) for this, and
3931 # it will BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely
3932 # randomly break unless your underlying filesystem supports those sub-second
3933 # times (my ext3 doesn't).
3935 # Define USE_STDEV below if you want git to care about the underlying device
3936 # change being considered an inode change from the update-index perspective.
3939 # Allow user to set ETC_GITCONFIG variable
3941 # Check whether --with-gitconfig was given.
3942 if test "${with_gitconfig+set}" = set; then :
3943 withval=$with_gitconfig; if test -n "$withval"; then
3944 if test "$withval" = "yes" -o "$withval" = "no"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
3946 a value for gitconfig (ETC_GITCONFIG). Maybe you do...?" >&5
3947 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
3948 a value for gitconfig (ETC_GITCONFIG). Maybe you do...?" >&2;}
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITCONFIG to $withval" >&5
3951 $as_echo "$as_me: Setting ETC_GITCONFIG to $withval" >&6;}
3953 config_appended_defs="$config_appended_defs${newline}ETC_GITCONFIG=$withval"
3959 # Allow user to set ETC_GITATTRIBUTES variable
3961 # Check whether --with-gitattributes was given.
3962 if test "${with_gitattributes+set}" = set; then :
3963 withval=$with_gitattributes; if test -n "$withval"; then
3964 if test "$withval" = "yes" -o "$withval" = "no"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
3966 a value for gitattributes (ETC_GITATTRIBUTES). Maybe you do...?" >&5
3967 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
3968 a value for gitattributes (ETC_GITATTRIBUTES). Maybe you do...?" >&2;}
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITATTRIBUTES to $withval" >&5
3971 $as_echo "$as_me: Setting ETC_GITATTRIBUTES to $withval" >&6;}
3973 config_appended_defs="$config_appended_defs${newline}ETC_GITATTRIBUTES=$withval"
3979 # Allow user to set the default pager
3981 # Check whether --with-pager was given.
3982 if test "${with_pager+set}" = set; then :
3983 withval=$with_pager; if test -n "$withval"; then
3984 if test "$withval" = "yes" -o "$withval" = "no"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
3986 a value for pager (DEFAULT_PAGER). Maybe you do...?" >&5
3987 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
3988 a value for pager (DEFAULT_PAGER). Maybe you do...?" >&2;}
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_PAGER to $withval" >&5
3991 $as_echo "$as_me: Setting DEFAULT_PAGER to $withval" >&6;}
3993 config_appended_defs="$config_appended_defs${newline}DEFAULT_PAGER=$withval"
3998 # Allow user to set the default editor
4000 # Check whether --with-editor was given.
4001 if test "${with_editor+set}" = set; then :
4002 withval=$with_editor; if test -n "$withval"; then
4003 if test "$withval" = "yes" -o "$withval" = "no"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
4005 a value for editor (DEFAULT_EDITOR). Maybe you do...?" >&5
4006 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
4007 a value for editor (DEFAULT_EDITOR). Maybe you do...?" >&2;}
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_EDITOR to $withval" >&5
4010 $as_echo "$as_me: Setting DEFAULT_EDITOR to $withval" >&6;}
4012 config_appended_defs="$config_appended_defs${newline}DEFAULT_EDITOR=$withval"
4018 # Define SHELL_PATH to provide path to shell.
4020 # Check whether --with-shell was given.
4021 if test "${with_shell+set}" = set; then :
4022 withval=$with_shell; if test "$withval" = "no"; then
4023 if test -n ""; then
4024 SHELL_PATH=$withval
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of SHELL" >&5
4026 $as_echo "$as_me: Disabling use of SHELL" >&6;}
4028 config_appended_defs="$config_appended_defs${newline}NO_SHELL=YesPlease"
4030 config_appended_defs="$config_appended_defs${newline}SHELL_PATH="
4031 else
4032 as_fn_error $? "You cannot use git without shell" "$LINENO" 5
4034 else
4035 if test "$withval" = "yes"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-shell=PATH" >&5
4037 $as_echo "$as_me: WARNING: You should provide path for --with-shell=PATH" >&2;}
4038 else
4039 SHELL_PATH=$withval
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SHELL_PATH to $withval" >&5
4041 $as_echo "$as_me: Setting SHELL_PATH to $withval" >&6;}
4043 config_appended_defs="$config_appended_defs${newline}SHELL_PATH=$withval"
4050 # Define PERL_PATH to provide path to Perl.
4052 # Check whether --with-perl was given.
4053 if test "${with_perl+set}" = set; then :
4054 withval=$with_perl; if test "$withval" = "no"; then
4055 if test -n ""; then
4056 PERL_PATH=$withval
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of PERL" >&5
4058 $as_echo "$as_me: Disabling use of PERL" >&6;}
4060 config_appended_defs="$config_appended_defs${newline}NO_PERL=YesPlease"
4062 config_appended_defs="$config_appended_defs${newline}PERL_PATH="
4063 else
4064 as_fn_error $? "You cannot use git without perl" "$LINENO" 5
4066 else
4067 if test "$withval" = "yes"; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-perl=PATH" >&5
4069 $as_echo "$as_me: WARNING: You should provide path for --with-perl=PATH" >&2;}
4070 else
4071 PERL_PATH=$withval
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PERL_PATH to $withval" >&5
4073 $as_echo "$as_me: Setting PERL_PATH to $withval" >&6;}
4075 config_appended_defs="$config_appended_defs${newline}PERL_PATH=$withval"
4082 # Define PYTHON_PATH to provide path to Python.
4084 # Check whether --with-python was given.
4085 if test "${with_python+set}" = set; then :
4086 withval=$with_python; if test "$withval" = "no"; then
4087 if test -n "allow-without"; then
4088 PYTHON_PATH=$withval
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of PYTHON" >&5
4090 $as_echo "$as_me: Disabling use of PYTHON" >&6;}
4092 config_appended_defs="$config_appended_defs${newline}NO_PYTHON=YesPlease"
4094 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH="
4095 else
4096 as_fn_error $? "You cannot use git without python" "$LINENO" 5
4098 else
4099 if test "$withval" = "yes"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-python=PATH" >&5
4101 $as_echo "$as_me: WARNING: You should provide path for --with-python=PATH" >&2;}
4102 else
4103 PYTHON_PATH=$withval
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PYTHON_PATH to $withval" >&5
4105 $as_echo "$as_me: Setting PYTHON_PATH to $withval" >&6;}
4107 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH=$withval"
4114 # Define ZLIB_PATH to provide path to zlib.
4116 # Check whether --with-zlib was given.
4117 if test "${with_zlib+set}" = set; then :
4118 withval=$with_zlib; if test "$withval" = "no"; then
4119 if test -n ""; then
4120 ZLIB_PATH=$withval
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ZLIB" >&5
4122 $as_echo "$as_me: Disabling use of ZLIB" >&6;}
4124 config_appended_defs="$config_appended_defs${newline}NO_ZLIB=YesPlease"
4126 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH="
4127 else
4128 as_fn_error $? "You cannot use git without zlib" "$LINENO" 5
4130 else
4131 if test "$withval" = "yes"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-zlib=PATH" >&5
4133 $as_echo "$as_me: WARNING: You should provide path for --with-zlib=PATH" >&2;}
4134 else
4135 ZLIB_PATH=$withval
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ZLIB_PATH to $withval" >&5
4137 $as_echo "$as_me: Setting ZLIB_PATH to $withval" >&6;}
4139 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH=$withval"
4146 # Declare the with-tcltk/without-tcltk options.
4148 # Check whether --with-tcltk was given.
4149 if test "${with_tcltk+set}" = set; then :
4150 withval=$with_tcltk; if test "$withval" = "no"; then
4151 NO_TCLTK=YesPlease
4152 elif test "$withval" = "yes"; then
4153 NO_TCLTK=
4154 else
4155 NO_TCLTK=
4156 TCLTKDIR=$withval
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting TCLTKDIR to $withval" >&5
4158 $as_echo "$as_me: Setting TCLTKDIR to $withval" >&6;}
4160 config_appended_defs="$config_appended_defs${newline}TCLTKDIR=$withval"
4168 ## Checks for programs.
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for programs" >&5
4170 $as_echo "$as_me: CHECKS for programs" >&6;}
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in cc gcc
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if ${ac_cv_prog_CC+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$CC"; then
4188 ac_cv_prog_CC="$CC" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4201 done
4202 done
4203 IFS=$as_save_IFS
4207 CC=$ac_cv_prog_CC
4208 if test -n "$CC"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4210 $as_echo "$CC" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4217 test -n "$CC" && break
4218 done
4220 if test -z "$CC"; then
4221 ac_ct_CC=$CC
4222 for ac_prog in cc gcc
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$ac_ct_CC"; then
4232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_ac_ct_CC="$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4245 done
4246 done
4247 IFS=$as_save_IFS
4251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252 if test -n "$ac_ct_CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254 $as_echo "$ac_ct_CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4261 test -n "$ac_ct_CC" && break
4262 done
4264 if test "x$ac_ct_CC" = x; then
4265 CC=""
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268 yes:)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271 ac_tool_warned=yes ;;
4272 esac
4273 CC=$ac_ct_CC
4278 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "no acceptable C compiler found in \$PATH
4281 See \`config.log' for more details" "$LINENO" 5; }
4283 # Provide some information about the compiler.
4284 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4285 set X $ac_compile
4286 ac_compiler=$2
4287 for ac_option in --version -v -V -qversion; do
4288 { { ac_try="$ac_compiler $ac_option >&5"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4296 ac_status=$?
4297 if test -s conftest.err; then
4298 sed '10a\
4299 ... rest of stderr output deleted ...
4300 10q' conftest.err >conftest.er1
4301 cat conftest.er1 >&5
4303 rm -f conftest.er1 conftest.err
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }
4306 done
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4309 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4310 if ${ac_cv_c_compiler_gnu+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4317 main ()
4319 #ifndef __GNUC__
4320 choke me
4321 #endif
4324 return 0;
4326 _ACEOF
4327 if ac_fn_c_try_compile "$LINENO"; then :
4328 ac_compiler_gnu=yes
4329 else
4330 ac_compiler_gnu=no
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4337 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4338 if test $ac_compiler_gnu = yes; then
4339 GCC=yes
4340 else
4341 GCC=
4343 ac_test_CFLAGS=${CFLAGS+set}
4344 ac_save_CFLAGS=$CFLAGS
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4346 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4347 if ${ac_cv_prog_cc_g+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 ac_save_c_werror_flag=$ac_c_werror_flag
4351 ac_c_werror_flag=yes
4352 ac_cv_prog_cc_g=no
4353 CFLAGS="-g"
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4358 main ()
4362 return 0;
4364 _ACEOF
4365 if ac_fn_c_try_compile "$LINENO"; then :
4366 ac_cv_prog_cc_g=yes
4367 else
4368 CFLAGS=""
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4373 main ()
4377 return 0;
4379 _ACEOF
4380 if ac_fn_c_try_compile "$LINENO"; then :
4382 else
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4384 CFLAGS="-g"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4389 main ()
4393 return 0;
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"; then :
4397 ac_cv_prog_cc_g=yes
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 ac_c_werror_flag=$ac_save_c_werror_flag
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4407 $as_echo "$ac_cv_prog_cc_g" >&6; }
4408 if test "$ac_test_CFLAGS" = set; then
4409 CFLAGS=$ac_save_CFLAGS
4410 elif test $ac_cv_prog_cc_g = yes; then
4411 if test "$GCC" = yes; then
4412 CFLAGS="-g -O2"
4413 else
4414 CFLAGS="-g"
4416 else
4417 if test "$GCC" = yes; then
4418 CFLAGS="-O2"
4419 else
4420 CFLAGS=
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4424 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4425 if ${ac_cv_prog_cc_c89+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 ac_cv_prog_cc_c89=no
4429 ac_save_CC=$CC
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432 #include <stdarg.h>
4433 #include <stdio.h>
4434 struct stat;
4435 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4436 struct buf { int x; };
4437 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4438 static char *e (p, i)
4439 char **p;
4440 int i;
4442 return p[i];
4444 static char *f (char * (*g) (char **, int), char **p, ...)
4446 char *s;
4447 va_list v;
4448 va_start (v,p);
4449 s = g (p, va_arg (v,int));
4450 va_end (v);
4451 return s;
4454 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4455 function prototypes and stuff, but not '\xHH' hex character constants.
4456 These don't provoke an error unfortunately, instead are silently treated
4457 as 'x'. The following induces an error, until -std is added to get
4458 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4459 array size at least. It's necessary to write '\x00'==0 to get something
4460 that's true only with -std. */
4461 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4463 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4464 inside strings and character constants. */
4465 #define FOO(x) 'x'
4466 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4468 int test (int i, double x);
4469 struct s1 {int (*f) (int a);};
4470 struct s2 {int (*f) (double a);};
4471 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4472 int argc;
4473 char **argv;
4475 main ()
4477 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4479 return 0;
4481 _ACEOF
4482 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4483 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4485 CC="$ac_save_CC $ac_arg"
4486 if ac_fn_c_try_compile "$LINENO"; then :
4487 ac_cv_prog_cc_c89=$ac_arg
4489 rm -f core conftest.err conftest.$ac_objext
4490 test "x$ac_cv_prog_cc_c89" != "xno" && break
4491 done
4492 rm -f conftest.$ac_ext
4493 CC=$ac_save_CC
4496 # AC_CACHE_VAL
4497 case "x$ac_cv_prog_cc_c89" in
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4500 $as_echo "none needed" >&6; } ;;
4501 xno)
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4503 $as_echo "unsupported" >&6; } ;;
4505 CC="$CC $ac_cv_prog_cc_c89"
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4507 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4508 esac
4509 if test "x$ac_cv_prog_cc_c89" != xno; then :
4513 ac_ext=c
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4520 $as_echo_n "checking for inline... " >&6; }
4521 if ${ac_cv_c_inline+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 ac_cv_c_inline=no
4525 for ac_kw in inline __inline__ __inline; do
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #ifndef __cplusplus
4529 typedef int foo_t;
4530 static $ac_kw foo_t static_foo () {return 0; }
4531 $ac_kw foo_t foo () {return 0; }
4532 #endif
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536 ac_cv_c_inline=$ac_kw
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 test "$ac_cv_c_inline" != no && break
4540 done
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4544 $as_echo "$ac_cv_c_inline" >&6; }
4546 case $ac_cv_c_inline in
4547 inline | yes) ;;
4549 case $ac_cv_c_inline in
4550 no) ac_val=;;
4551 *) ac_val=$ac_cv_c_inline;;
4552 esac
4553 cat >>confdefs.h <<_ACEOF
4554 #ifndef __cplusplus
4555 #define inline $ac_val
4556 #endif
4557 _ACEOF
4559 esac
4561 case $ac_cv_c_inline in
4562 inline | yes | no) INLINE='';;
4563 *) INLINE=$ac_cv_c_inline ;;
4564 esac
4566 config_appended_defs="$config_appended_defs${newline}INLINE=${INLINE}"
4568 # which switch to pass runtime path to dynamic libraries to the linker
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -R" >&5
4570 $as_echo_n "checking if linker supports -R... " >&6; }
4571 if ${git_cv_ld_dashr+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4575 SAVE_LDFLAGS="${LDFLAGS}"
4576 LDFLAGS="${SAVE_LDFLAGS} -R /"
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4581 main ()
4585 return 0;
4587 _ACEOF
4588 if ac_fn_c_try_link "$LINENO"; then :
4589 git_cv_ld_dashr=yes
4590 else
4591 git_cv_ld_dashr=no
4593 rm -f core conftest.err conftest.$ac_objext \
4594 conftest$ac_exeext conftest.$ac_ext
4595 LDFLAGS="${SAVE_LDFLAGS}"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_dashr" >&5
4599 $as_echo "$git_cv_ld_dashr" >&6; }
4600 if test "$git_cv_ld_dashr" = "yes"; then
4601 CC_LD_DYNPATH=-R
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -Wl,-rpath," >&5
4604 $as_echo_n "checking if linker supports -Wl,-rpath,... " >&6; }
4605 if ${git_cv_ld_wl_rpath+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4609 SAVE_LDFLAGS="${LDFLAGS}"
4610 LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 main ()
4619 return 0;
4621 _ACEOF
4622 if ac_fn_c_try_link "$LINENO"; then :
4623 git_cv_ld_wl_rpath=yes
4624 else
4625 git_cv_ld_wl_rpath=no
4627 rm -f core conftest.err conftest.$ac_objext \
4628 conftest$ac_exeext conftest.$ac_ext
4629 LDFLAGS="${SAVE_LDFLAGS}"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_wl_rpath" >&5
4633 $as_echo "$git_cv_ld_wl_rpath" >&6; }
4634 if test "$git_cv_ld_wl_rpath" = "yes"; then
4635 CC_LD_DYNPATH=-Wl,-rpath,
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rpath" >&5
4638 $as_echo_n "checking if linker supports -rpath... " >&6; }
4639 if ${git_cv_ld_rpath+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4643 SAVE_LDFLAGS="${LDFLAGS}"
4644 LDFLAGS="${SAVE_LDFLAGS} -rpath /"
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4649 main ()
4653 return 0;
4655 _ACEOF
4656 if ac_fn_c_try_link "$LINENO"; then :
4657 git_cv_ld_rpath=yes
4658 else
4659 git_cv_ld_rpath=no
4661 rm -f core conftest.err conftest.$ac_objext \
4662 conftest$ac_exeext conftest.$ac_ext
4663 LDFLAGS="${SAVE_LDFLAGS}"
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_rpath" >&5
4667 $as_echo "$git_cv_ld_rpath" >&6; }
4668 if test "$git_cv_ld_rpath" = "yes"; then
4669 CC_LD_DYNPATH=-rpath
4670 else
4671 CC_LD_DYNPATH=
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker does not support runtime path to dynamic libraries" >&5
4673 $as_echo "$as_me: WARNING: linker does not support runtime path to dynamic libraries" >&2;}
4678 config_appended_defs="$config_appended_defs${newline}CC_LD_DYNPATH=${CC_LD_DYNPATH}"
4679 #AC_PROG_INSTALL # needs install-sh or install.sh in sources
4680 if test -n "$ac_tool_prefix"; then
4681 for ac_prog in gar ar
4683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_AR+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$AR"; then
4691 ac_cv_prog_AR="$AR" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 AR=$ac_cv_prog_AR
4711 if test -n "$AR"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4713 $as_echo "$AR" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$AR" && break
4721 done
4723 if test -z "$AR"; then
4724 ac_ct_AR=$AR
4725 for ac_prog in gar ar
4727 # Extract the first word of "$ac_prog", so it can be a program name with args.
4728 set dummy $ac_prog; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -n "$ac_ct_AR"; then
4735 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_prog_ac_ct_AR="$ac_prog"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4748 done
4749 done
4750 IFS=$as_save_IFS
4754 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4755 if test -n "$ac_ct_AR"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4757 $as_echo "$ac_ct_AR" >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4764 test -n "$ac_ct_AR" && break
4765 done
4767 if test "x$ac_ct_AR" = x; then
4768 AR=":"
4769 else
4770 case $cross_compiling:$ac_tool_warned in
4771 yes:)
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4775 esac
4776 AR=$ac_ct_AR
4780 for ac_prog in gtar tar
4782 # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_prog_TAR+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$TAR"; then
4790 ac_cv_prog_TAR="$TAR" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_prog_TAR="$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4805 IFS=$as_save_IFS
4809 TAR=$ac_cv_prog_TAR
4810 if test -n "$TAR"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4812 $as_echo "$TAR" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4819 test -n "$TAR" && break
4820 done
4822 for ac_prog in gnudiff gdiff diff
4824 # Extract the first word of "$ac_prog", so it can be a program name with args.
4825 set dummy $ac_prog; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if ${ac_cv_prog_DIFF+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$DIFF"; then
4832 ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4841 ac_cv_prog_DIFF="$ac_prog"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 DIFF=$ac_cv_prog_DIFF
4852 if test -n "$DIFF"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
4854 $as_echo "$DIFF" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4861 test -n "$DIFF" && break
4862 done
4864 # TCLTK_PATH will be set to some value if we want Tcl/Tk
4865 # or will be empty otherwise.
4866 if test -n "$NO_TCLTK"; then
4867 TCLTK_PATH=
4868 else
4869 if test "$with_tcltk" = ""; then
4870 # No Tcl/Tk switches given. Do not check for Tcl/Tk, use bare 'wish'.
4871 TCLTK_PATH=wish
4872 elif test "$with_tcltk" = "yes"; then
4873 # Tcl/Tk check requested.
4874 for ac_prog in wish
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_TCLTK_PATH+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$TCLTK_PATH"; then
4884 ac_cv_prog_TCLTK_PATH="$TCLTK_PATH" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_TCLTK_PATH="$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4899 IFS=$as_save_IFS
4903 TCLTK_PATH=$ac_cv_prog_TCLTK_PATH
4904 if test -n "$TCLTK_PATH"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_PATH" >&5
4906 $as_echo "$TCLTK_PATH" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$TCLTK_PATH" && break
4914 done
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tcl/Tk interpreter $with_tcltk" >&5
4918 $as_echo "Using Tcl/Tk interpreter $with_tcltk" >&6; }
4919 TCLTK_PATH="$with_tcltk"
4923 config_appended_defs="$config_appended_defs${newline}TCLTK_PATH=${TCLTK_PATH}"
4924 for ac_prog in asciidoc
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927 set dummy $ac_prog; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_ASCIIDOC+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$ASCIIDOC"; then
4934 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_ASCIIDOC="$ac_prog"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4953 ASCIIDOC=$ac_cv_prog_ASCIIDOC
4954 if test -n "$ASCIIDOC"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
4956 $as_echo "$ASCIIDOC" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4963 test -n "$ASCIIDOC" && break
4964 done
4966 if test -n "$ASCIIDOC"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asciidoc version" >&5
4968 $as_echo_n "checking for asciidoc version... " >&6; }
4969 asciidoc_version=`$ASCIIDOC --version 2>/dev/null`
4970 case "${asciidoc_version}" in
4971 asciidoc' '8*)
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version}" >&5
4973 $as_echo "${asciidoc_version}" >&6; }
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} (unknown)" >&5
4977 $as_echo "${asciidoc_version} (unknown)" >&6; }
4979 esac
4983 ## Checks for libraries.
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for libraries" >&5
4985 $as_echo "$as_me: CHECKS for libraries" >&6;}
4987 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
4988 # Define NEEDS_SSL_WITH_CRYPTO if you need -lcrypto with -lssl (Darwin).
4991 if test -n "$OPENSSLDIR"; then
4992 old_CPPFLAGS="$CPPFLAGS"
4993 old_LDFLAGS="$LDFLAGS"
4994 CPPFLAGS="-I$OPENSSLDIR/include $CPPFLAGS"
4995 LDFLAGS="-L$OPENSSLDIR/$lib $LDFLAGS"
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
5000 $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
5001 if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 ac_check_lib_save_LIBS=$LIBS
5005 LIBS="-lcrypto $LIBS"
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5009 /* Override any GCC internal prototype to avoid an error.
5010 Use char because int might match the return type of a GCC
5011 builtin and then its argument prototype would still apply. */
5012 #ifdef __cplusplus
5013 extern "C"
5014 #endif
5015 char SHA1_Init ();
5017 main ()
5019 return SHA1_Init ();
5021 return 0;
5023 _ACEOF
5024 if ac_fn_c_try_link "$LINENO"; then :
5025 ac_cv_lib_crypto_SHA1_Init=yes
5026 else
5027 ac_cv_lib_crypto_SHA1_Init=no
5029 rm -f core conftest.err conftest.$ac_objext \
5030 conftest$ac_exeext conftest.$ac_ext
5031 LIBS=$ac_check_lib_save_LIBS
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
5034 $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
5035 if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
5036 NEEDS_SSL_WITH_CRYPTO=
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lssl" >&5
5039 $as_echo_n "checking for SHA1_Init in -lssl... " >&6; }
5040 if ${ac_cv_lib_ssl_SHA1_Init+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 ac_check_lib_save_LIBS=$LIBS
5044 LIBS="-lssl $LIBS"
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5048 /* Override any GCC internal prototype to avoid an error.
5049 Use char because int might match the return type of a GCC
5050 builtin and then its argument prototype would still apply. */
5051 #ifdef __cplusplus
5052 extern "C"
5053 #endif
5054 char SHA1_Init ();
5056 main ()
5058 return SHA1_Init ();
5060 return 0;
5062 _ACEOF
5063 if ac_fn_c_try_link "$LINENO"; then :
5064 ac_cv_lib_ssl_SHA1_Init=yes
5065 else
5066 ac_cv_lib_ssl_SHA1_Init=no
5068 rm -f core conftest.err conftest.$ac_objext \
5069 conftest$ac_exeext conftest.$ac_ext
5070 LIBS=$ac_check_lib_save_LIBS
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SHA1_Init" >&5
5073 $as_echo "$ac_cv_lib_ssl_SHA1_Init" >&6; }
5074 if test "x$ac_cv_lib_ssl_SHA1_Init" = xyes; then :
5075 NEEDS_SSL_WITH_CRYPTO=YesPlease NO_OPENSSL=
5076 else
5077 NEEDS_SSL_WITH_CRYPTO= NO_OPENSSL=YesPlease
5084 if test -n "$OPENSSLDIR"; then
5085 CPPFLAGS="$old_CPPFLAGS"
5086 LDFLAGS="$old_LDFLAGS"
5091 config_appended_defs="$config_appended_defs${newline}NEEDS_SSL_WITH_CRYPTO=${NEEDS_SSL_WITH_CRYPTO}"
5093 config_appended_defs="$config_appended_defs${newline}NO_OPENSSL=${NO_OPENSSL}"
5096 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
5097 # able to use Perl-compatible regular expressions.
5100 if test -n "$USE_LIBPCRE"; then
5103 if test -n "$LIBPCREDIR"; then
5104 old_CPPFLAGS="$CPPFLAGS"
5105 old_LDFLAGS="$LDFLAGS"
5106 CPPFLAGS="-I$LIBPCREDIR/include $CPPFLAGS"
5107 LDFLAGS="-L$LIBPCREDIR/$lib $LDFLAGS"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_version in -lpcre" >&5
5112 $as_echo_n "checking for pcre_version in -lpcre... " >&6; }
5113 if ${ac_cv_lib_pcre_pcre_version+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lpcre $LIBS"
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5121 /* Override any GCC internal prototype to avoid an error.
5122 Use char because int might match the return type of a GCC
5123 builtin and then its argument prototype would still apply. */
5124 #ifdef __cplusplus
5125 extern "C"
5126 #endif
5127 char pcre_version ();
5129 main ()
5131 return pcre_version ();
5133 return 0;
5135 _ACEOF
5136 if ac_fn_c_try_link "$LINENO"; then :
5137 ac_cv_lib_pcre_pcre_version=yes
5138 else
5139 ac_cv_lib_pcre_pcre_version=no
5141 rm -f core conftest.err conftest.$ac_objext \
5142 conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_version" >&5
5146 $as_echo "$ac_cv_lib_pcre_pcre_version" >&6; }
5147 if test "x$ac_cv_lib_pcre_pcre_version" = xyes; then :
5148 USE_LIBPCRE=YesPlease
5149 else
5150 USE_LIBPCRE=
5155 if test -n "$LIBPCREDIR"; then
5156 CPPFLAGS="$old_CPPFLAGS"
5157 LDFLAGS="$old_LDFLAGS"
5162 config_appended_defs="$config_appended_defs${newline}USE_LIBPCRE=${USE_LIBPCRE}"
5167 # Define NO_CURL if you do not have libcurl installed. git-http-pull and
5168 # git-http-push are not built, and you cannot use http:// and https://
5169 # transports.
5172 if test -n "$CURLDIR"; then
5173 old_CPPFLAGS="$CPPFLAGS"
5174 old_LDFLAGS="$LDFLAGS"
5175 CPPFLAGS="-I$CURLDIR/include $CPPFLAGS"
5176 LDFLAGS="-L$CURLDIR/$lib $LDFLAGS"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
5181 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
5182 if ${ac_cv_lib_curl_curl_global_init+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 ac_check_lib_save_LIBS=$LIBS
5186 LIBS="-lcurl $LIBS"
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5190 /* Override any GCC internal prototype to avoid an error.
5191 Use char because int might match the return type of a GCC
5192 builtin and then its argument prototype would still apply. */
5193 #ifdef __cplusplus
5194 extern "C"
5195 #endif
5196 char curl_global_init ();
5198 main ()
5200 return curl_global_init ();
5202 return 0;
5204 _ACEOF
5205 if ac_fn_c_try_link "$LINENO"; then :
5206 ac_cv_lib_curl_curl_global_init=yes
5207 else
5208 ac_cv_lib_curl_curl_global_init=no
5210 rm -f core conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5212 LIBS=$ac_check_lib_save_LIBS
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
5215 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
5216 if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
5217 NO_CURL=
5218 else
5219 NO_CURL=YesPlease
5224 if test -n "$CURLDIR"; then
5225 CPPFLAGS="$old_CPPFLAGS"
5226 LDFLAGS="$old_LDFLAGS"
5231 config_appended_defs="$config_appended_defs${newline}NO_CURL=${NO_CURL}"
5234 # Define NO_EXPAT if you do not have expat installed. git-http-push is
5235 # not built, and you cannot push using http:// and https:// transports.
5238 if test -n "$EXPATDIR"; then
5239 old_CPPFLAGS="$CPPFLAGS"
5240 old_LDFLAGS="$LDFLAGS"
5241 CPPFLAGS="-I$EXPATDIR/include $CPPFLAGS"
5242 LDFLAGS="-L$EXPATDIR/$lib $LDFLAGS"
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
5247 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
5248 if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 ac_check_lib_save_LIBS=$LIBS
5252 LIBS="-lexpat $LIBS"
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5256 /* Override any GCC internal prototype to avoid an error.
5257 Use char because int might match the return type of a GCC
5258 builtin and then its argument prototype would still apply. */
5259 #ifdef __cplusplus
5260 extern "C"
5261 #endif
5262 char XML_ParserCreate ();
5264 main ()
5266 return XML_ParserCreate ();
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_link "$LINENO"; then :
5272 ac_cv_lib_expat_XML_ParserCreate=yes
5273 else
5274 ac_cv_lib_expat_XML_ParserCreate=no
5276 rm -f core conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
5278 LIBS=$ac_check_lib_save_LIBS
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
5281 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
5282 if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
5283 NO_EXPAT=
5284 else
5285 NO_EXPAT=YesPlease
5290 if test -n "$EXPATDIR"; then
5291 CPPFLAGS="$old_CPPFLAGS"
5292 LDFLAGS="$old_LDFLAGS"
5297 config_appended_defs="$config_appended_defs${newline}NO_EXPAT=${NO_EXPAT}"
5300 # Define NEEDS_LIBICONV if linking with libc is not enough (Darwin and
5301 # some Solaris installations).
5302 # Define NO_ICONV if neither libc nor libiconv support iconv.
5304 if test -z "$NO_ICONV"; then
5307 if test -n "$ICONVDIR"; then
5308 old_CPPFLAGS="$CPPFLAGS"
5309 old_LDFLAGS="$LDFLAGS"
5310 CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
5311 LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
5317 if test -n "$ICONVDIR"; then
5318 lib_order="-liconv -lc"
5319 else
5320 lib_order="-lc -liconv"
5323 NO_ICONV=YesPlease
5325 for l in $lib_order; do
5326 if test "$l" = "-liconv"; then
5327 NEEDS_LIBICONV=YesPlease
5328 else
5329 NEEDS_LIBICONV=
5332 old_LIBS="$LIBS"
5333 LIBS="$LIBS $l"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in $l" >&5
5335 $as_echo_n "checking for iconv in $l... " >&6; }
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 #include <iconv.h>
5340 main ()
5342 iconv_open("", "");
5344 return 0;
5346 _ACEOF
5347 if ac_fn_c_try_link "$LINENO"; then :
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5349 $as_echo "yes" >&6; }
5350 NO_ICONV=
5351 break
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5356 rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 LIBS="$old_LIBS"
5359 done
5361 #in case of break
5362 LIBS="$old_LIBS"
5365 if test -n "$ICONVDIR"; then
5366 CPPFLAGS="$old_CPPFLAGS"
5367 LDFLAGS="$old_LDFLAGS"
5372 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBICONV=${NEEDS_LIBICONV}"
5374 config_appended_defs="$config_appended_defs${newline}NO_ICONV=${NO_ICONV}"
5376 if test -n "$NO_ICONV"; then
5377 NEEDS_LIBICONV=
5383 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
5386 if test -n "$ZLIB_PATH"; then
5387 old_CPPFLAGS="$CPPFLAGS"
5388 old_LDFLAGS="$LDFLAGS"
5389 CPPFLAGS="-I$ZLIB_PATH/include $CPPFLAGS"
5390 LDFLAGS="-L$ZLIB_PATH/$lib $LDFLAGS"
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateBound in -lz" >&5
5396 $as_echo_n "checking for deflateBound in -lz... " >&6; }
5397 old_LIBS="$LIBS"
5398 LIBS="$LIBS -lz"
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 #include <zlib.h>
5404 main ()
5406 deflateBound(0, 0);
5408 return 0;
5410 _ACEOF
5411 if ac_fn_c_try_link "$LINENO"; then :
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5413 $as_echo "yes" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 NO_DEFLATE_BOUND=yes
5419 rm -f core conftest.err conftest.$ac_objext \
5420 conftest$ac_exeext conftest.$ac_ext
5421 LIBS="$old_LIBS"
5424 if test -n "$ZLIB_PATH"; then
5425 CPPFLAGS="$old_CPPFLAGS"
5426 LDFLAGS="$old_LDFLAGS"
5431 config_appended_defs="$config_appended_defs${newline}NO_DEFLATE_BOUND=${NO_DEFLATE_BOUND}"
5434 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
5435 # Patrick Mauritz).
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5
5437 $as_echo_n "checking for socket in -lc... " >&6; }
5438 if ${ac_cv_lib_c_socket+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 ac_check_lib_save_LIBS=$LIBS
5442 LIBS="-lc $LIBS"
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5446 /* Override any GCC internal prototype to avoid an error.
5447 Use char because int might match the return type of a GCC
5448 builtin and then its argument prototype would still apply. */
5449 #ifdef __cplusplus
5450 extern "C"
5451 #endif
5452 char socket ();
5454 main ()
5456 return socket ();
5458 return 0;
5460 _ACEOF
5461 if ac_fn_c_try_link "$LINENO"; then :
5462 ac_cv_lib_c_socket=yes
5463 else
5464 ac_cv_lib_c_socket=no
5466 rm -f core conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_socket" >&5
5471 $as_echo "$ac_cv_lib_c_socket" >&6; }
5472 if test "x$ac_cv_lib_c_socket" = xyes; then :
5473 NEEDS_SOCKET=
5474 else
5475 NEEDS_SOCKET=YesPlease
5479 config_appended_defs="$config_appended_defs${newline}NEEDS_SOCKET=${NEEDS_SOCKET}"
5480 test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
5483 # The next few tests will define NEEDS_RESOLV if linking with
5484 # libresolv provides some of the functions we would normally get
5485 # from libc.
5486 NEEDS_RESOLV=
5488 # Define NO_INET_NTOP if linking with -lresolv is not enough.
5489 # Solaris 2.7 in particular hos inet_ntop in -lresolv.
5490 NO_INET_NTOP=
5491 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
5492 if test "x$ac_cv_func_inet_ntop" = xyes; then :
5494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lresolv" >&5
5496 $as_echo_n "checking for inet_ntop in -lresolv... " >&6; }
5497 if ${ac_cv_lib_resolv_inet_ntop+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 ac_check_lib_save_LIBS=$LIBS
5501 LIBS="-lresolv $LIBS"
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5505 /* Override any GCC internal prototype to avoid an error.
5506 Use char because int might match the return type of a GCC
5507 builtin and then its argument prototype would still apply. */
5508 #ifdef __cplusplus
5509 extern "C"
5510 #endif
5511 char inet_ntop ();
5513 main ()
5515 return inet_ntop ();
5517 return 0;
5519 _ACEOF
5520 if ac_fn_c_try_link "$LINENO"; then :
5521 ac_cv_lib_resolv_inet_ntop=yes
5522 else
5523 ac_cv_lib_resolv_inet_ntop=no
5525 rm -f core conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5527 LIBS=$ac_check_lib_save_LIBS
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_ntop" >&5
5530 $as_echo "$ac_cv_lib_resolv_inet_ntop" >&6; }
5531 if test "x$ac_cv_lib_resolv_inet_ntop" = xyes; then :
5532 NEEDS_RESOLV=YesPlease
5533 else
5534 NO_INET_NTOP=YesPlease
5541 config_appended_defs="$config_appended_defs${newline}NO_INET_NTOP=${NO_INET_NTOP}"
5543 # Define NO_INET_PTON if linking with -lresolv is not enough.
5544 # Solaris 2.7 in particular hos inet_pton in -lresolv.
5545 NO_INET_PTON=
5546 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
5547 if test "x$ac_cv_func_inet_pton" = xyes; then :
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lresolv" >&5
5551 $as_echo_n "checking for inet_pton in -lresolv... " >&6; }
5552 if ${ac_cv_lib_resolv_inet_pton+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 ac_check_lib_save_LIBS=$LIBS
5556 LIBS="-lresolv $LIBS"
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5560 /* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
5563 #ifdef __cplusplus
5564 extern "C"
5565 #endif
5566 char inet_pton ();
5568 main ()
5570 return inet_pton ();
5572 return 0;
5574 _ACEOF
5575 if ac_fn_c_try_link "$LINENO"; then :
5576 ac_cv_lib_resolv_inet_pton=yes
5577 else
5578 ac_cv_lib_resolv_inet_pton=no
5580 rm -f core conftest.err conftest.$ac_objext \
5581 conftest$ac_exeext conftest.$ac_ext
5582 LIBS=$ac_check_lib_save_LIBS
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_pton" >&5
5585 $as_echo "$ac_cv_lib_resolv_inet_pton" >&6; }
5586 if test "x$ac_cv_lib_resolv_inet_pton" = xyes; then :
5587 NEEDS_RESOLV=YesPlease
5588 else
5589 NO_INET_PTON=YesPlease
5596 config_appended_defs="$config_appended_defs${newline}NO_INET_PTON=${NO_INET_PTON}"
5598 # Define NO_HSTRERROR if linking with -lresolv is not enough.
5599 # Solaris 2.6 in particular has no hstrerror, even in -lresolv.
5600 NO_HSTRERROR=
5601 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
5602 if test "x$ac_cv_func_hstrerror" = xyes; then :
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
5606 $as_echo_n "checking for hstrerror in -lresolv... " >&6; }
5607 if ${ac_cv_lib_resolv_hstrerror+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 ac_check_lib_save_LIBS=$LIBS
5611 LIBS="-lresolv $LIBS"
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5615 /* Override any GCC internal prototype to avoid an error.
5616 Use char because int might match the return type of a GCC
5617 builtin and then its argument prototype would still apply. */
5618 #ifdef __cplusplus
5619 extern "C"
5620 #endif
5621 char hstrerror ();
5623 main ()
5625 return hstrerror ();
5627 return 0;
5629 _ACEOF
5630 if ac_fn_c_try_link "$LINENO"; then :
5631 ac_cv_lib_resolv_hstrerror=yes
5632 else
5633 ac_cv_lib_resolv_hstrerror=no
5635 rm -f core conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5637 LIBS=$ac_check_lib_save_LIBS
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
5640 $as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
5641 if test "x$ac_cv_lib_resolv_hstrerror" = xyes; then :
5642 NEEDS_RESOLV=YesPlease
5643 else
5644 NO_HSTRERROR=YesPlease
5651 config_appended_defs="$config_appended_defs${newline}NO_HSTRERROR=${NO_HSTRERROR}"
5654 config_appended_defs="$config_appended_defs${newline}NEEDS_RESOLV=${NEEDS_RESOLV}"
5656 # If any of the above tests determined that -lresolv is needed at
5657 # build-time, also set it here for remaining configure-time checks.
5658 test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lc" >&5
5661 $as_echo_n "checking for basename in -lc... " >&6; }
5662 if ${ac_cv_lib_c_basename+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 ac_check_lib_save_LIBS=$LIBS
5666 LIBS="-lc $LIBS"
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5670 /* Override any GCC internal prototype to avoid an error.
5671 Use char because int might match the return type of a GCC
5672 builtin and then its argument prototype would still apply. */
5673 #ifdef __cplusplus
5674 extern "C"
5675 #endif
5676 char basename ();
5678 main ()
5680 return basename ();
5682 return 0;
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"; then :
5686 ac_cv_lib_c_basename=yes
5687 else
5688 ac_cv_lib_c_basename=no
5690 rm -f core conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5692 LIBS=$ac_check_lib_save_LIBS
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_basename" >&5
5695 $as_echo "$ac_cv_lib_c_basename" >&6; }
5696 if test "x$ac_cv_lib_c_basename" = xyes; then :
5697 NEEDS_LIBGEN=
5698 else
5699 NEEDS_LIBGEN=YesPlease
5703 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBGEN=${NEEDS_LIBGEN}"
5704 test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lc" >&5
5707 $as_echo_n "checking for gettext in -lc... " >&6; }
5708 if ${ac_cv_lib_c_gettext+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 ac_check_lib_save_LIBS=$LIBS
5712 LIBS="-lc $LIBS"
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5716 /* Override any GCC internal prototype to avoid an error.
5717 Use char because int might match the return type of a GCC
5718 builtin and then its argument prototype would still apply. */
5719 #ifdef __cplusplus
5720 extern "C"
5721 #endif
5722 char gettext ();
5724 main ()
5726 return gettext ();
5728 return 0;
5730 _ACEOF
5731 if ac_fn_c_try_link "$LINENO"; then :
5732 ac_cv_lib_c_gettext=yes
5733 else
5734 ac_cv_lib_c_gettext=no
5736 rm -f core conftest.err conftest.$ac_objext \
5737 conftest$ac_exeext conftest.$ac_ext
5738 LIBS=$ac_check_lib_save_LIBS
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettext" >&5
5741 $as_echo "$ac_cv_lib_c_gettext" >&6; }
5742 if test "x$ac_cv_lib_c_gettext" = xyes; then :
5743 LIBC_CONTAINS_LIBINTL=YesPlease
5744 else
5745 LIBC_CONTAINS_LIBINTL=
5749 config_appended_defs="$config_appended_defs${newline}LIBC_CONTAINS_LIBINTL=${LIBC_CONTAINS_LIBINTL}"
5752 # Define NO_GETTEXT if you don't want Git output to be translated.
5753 # A translated Git requires GNU libintl or another gettext implementation
5754 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5755 if test "x$ac_cv_header_libintl_h" = xyes; then :
5756 NO_GETTEXT=
5757 else
5758 NO_GETTEXT=YesPlease
5763 config_appended_defs="$config_appended_defs${newline}NO_GETTEXT=${NO_GETTEXT}"
5765 if test -z "$NO_GETTEXT"; then
5766 test -n "$LIBC_CONTAINS_LIBINTL" || LIBS="$LIBS -lintl"
5769 ## Checks for header files.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for header files" >&5
5771 $as_echo "$as_me: CHECKS for header files" >&6;}
5773 # Define NO_SYS_SELECT_H if you don't have sys/select.h.
5774 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5775 if test "x$ac_cv_header_sys_select_h" = xyes; then :
5776 NO_SYS_SELECT_H=
5777 else
5778 NO_SYS_SELECT_H=UnfortunatelyYes
5783 config_appended_defs="$config_appended_defs${newline}NO_SYS_SELECT_H=${NO_SYS_SELECT_H}"
5785 # Define NO_SYS_POLL_H if you don't have sys/poll.h
5786 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
5787 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
5788 NO_SYS_POLL_H=
5789 else
5790 NO_SYS_POLL_H=UnfortunatelyYes
5795 config_appended_defs="$config_appended_defs${newline}NO_SYS_POLL_H=${NO_SYS_POLL_H}"
5797 # Define NO_INTTYPES_H if you don't have inttypes.h
5798 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5799 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5800 NO_INTTYPES_H=
5801 else
5802 NO_INTTYPES_H=UnfortunatelyYes
5807 config_appended_defs="$config_appended_defs${newline}NO_INTTYPES_H=${NO_INTTYPES_H}"
5809 # Define OLD_ICONV if your library has an old iconv(), where the second
5810 # (input buffer pointer) parameter is declared with type (const char **).
5814 if test -n "$ICONVDIR"; then
5815 old_CPPFLAGS="$CPPFLAGS"
5816 old_LDFLAGS="$LDFLAGS"
5817 CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
5818 LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old iconv()" >&5
5823 $as_echo_n "checking for old iconv()... " >&6; }
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5828 #include <iconv.h>
5830 extern size_t iconv(iconv_t cd,
5831 char **inbuf, size_t *inbytesleft,
5832 char **outbuf, size_t *outbytesleft);
5835 main ()
5839 return 0;
5841 _ACEOF
5842 if ac_fn_c_try_compile "$LINENO"; then :
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5847 $as_echo "yes" >&6; }
5848 OLD_ICONV=UnfortunatelyYes
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 if test -n "$ICONVDIR"; then
5854 CPPFLAGS="$old_CPPFLAGS"
5855 LDFLAGS="$old_LDFLAGS"
5860 config_appended_defs="$config_appended_defs${newline}OLD_ICONV=${OLD_ICONV}"
5862 ## Checks for typedefs, structures, and compiler characteristics.
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for typedefs, structures, and compiler characteristics" >&5
5864 $as_echo "$as_me: CHECKS for typedefs, structures, and compiler characteristics" >&6;}
5867 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5868 #include <sys/socket.h>
5870 if test "x$ac_cv_type_socklen_t" = xyes; then :
5872 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5875 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5876 if ${git_cv_socklen_t_equiv+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5880 # Systems have either "struct sockaddr *" or
5881 # "void *" as the second argument to getpeername
5882 git_cv_socklen_t_equiv=
5883 for arg2 in "struct sockaddr" void; do
5884 for t in int size_t unsigned long "unsigned long"; do
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5888 #include <sys/types.h>
5889 #include <sys/socket.h>
5891 int getpeername (int, $arg2 *, $t *);
5894 main ()
5897 $t len;
5898 getpeername(0,0,&len);
5901 return 0;
5903 _ACEOF
5904 if ac_fn_c_try_compile "$LINENO"; then :
5906 git_cv_socklen_t_equiv="$t"
5907 break 2
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 done
5912 done
5914 if test "x$git_cv_socklen_t_equiv" = x; then
5915 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_socklen_t_equiv" >&5
5921 $as_echo "$git_cv_socklen_t_equiv" >&6; }
5923 cat >>confdefs.h <<_ACEOF
5924 #define socklen_t $git_cv_socklen_t_equiv
5925 _ACEOF
5930 case $ac_cv_type_socklen_t in
5931 yes) SOCKLEN_T='';;
5932 *) SOCKLEN_T=$git_cv_socklen_t_equiv;;
5933 esac
5935 config_appended_defs="$config_appended_defs${newline}SOCKLEN_T=${SOCKLEN_T}"
5937 # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
5938 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#include <dirent.h>
5940 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
5941 NO_D_INO_IN_DIRENT=
5942 else
5943 NO_D_INO_IN_DIRENT=YesPlease
5947 config_appended_defs="$config_appended_defs${newline}NO_D_INO_IN_DIRENT=${NO_D_INO_IN_DIRENT}"
5949 # Define NO_D_TYPE_IN_DIRENT if your platform defines DT_UNKNOWN but lacks
5950 # d_type in struct dirent (latest Cygwin -- will be fixed soonish).
5951 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
5953 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
5954 NO_D_TYPE_IN_DIRENT=
5955 else
5956 NO_D_TYPE_IN_DIRENT=YesPlease
5960 config_appended_defs="$config_appended_defs${newline}NO_D_TYPE_IN_DIRENT=${NO_D_TYPE_IN_DIRENT}"
5962 # Define NO_GECOS_IN_PWENT if you don't have pw_gecos in struct passwd
5963 # in the C library.
5964 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "#include <pwd.h>
5966 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
5967 NO_GECOS_IN_PWENT=
5968 else
5969 NO_GECOS_IN_PWENT=YesPlease
5973 config_appended_defs="$config_appended_defs${newline}NO_GECOS_IN_PWENT=${NO_GECOS_IN_PWENT}"
5975 # Define NO_SOCKADDR_STORAGE if your platform does not have struct
5976 # sockaddr_storage.
5977 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
5978 #include <sys/types.h>
5979 #include <sys/socket.h>
5982 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5983 NO_SOCKADDR_STORAGE=
5984 else
5985 NO_SOCKADDR_STORAGE=YesPlease
5989 config_appended_defs="$config_appended_defs${newline}NO_SOCKADDR_STORAGE=${NO_SOCKADDR_STORAGE}"
5991 # Define NO_IPV6 if you lack IPv6 support and getaddrinfo().
5992 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
5993 #include <sys/types.h>
5994 #include <sys/socket.h>
5995 #include <netdb.h>
5998 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
6000 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6001 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
6004 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
6005 if ${ac_cv_search_getaddrinfo+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 ac_func_search_save_LIBS=$LIBS
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6012 /* Override any GCC internal prototype to avoid an error.
6013 Use char because int might match the return type of a GCC
6014 builtin and then its argument prototype would still apply. */
6015 #ifdef __cplusplus
6016 extern "C"
6017 #endif
6018 char getaddrinfo ();
6020 main ()
6022 return getaddrinfo ();
6024 return 0;
6026 _ACEOF
6027 for ac_lib in '' ; do
6028 if test -z "$ac_lib"; then
6029 ac_res="none required"
6030 else
6031 ac_res=-l$ac_lib
6032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6034 if ac_fn_c_try_link "$LINENO"; then :
6035 ac_cv_search_getaddrinfo=$ac_res
6037 rm -f core conftest.err conftest.$ac_objext \
6038 conftest$ac_exeext
6039 if ${ac_cv_search_getaddrinfo+:} false; then :
6040 break
6042 done
6043 if ${ac_cv_search_getaddrinfo+:} false; then :
6045 else
6046 ac_cv_search_getaddrinfo=no
6048 rm conftest.$ac_ext
6049 LIBS=$ac_func_search_save_LIBS
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
6052 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
6053 ac_res=$ac_cv_search_getaddrinfo
6054 if test "$ac_res" != no; then :
6055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6056 NO_IPV6=
6057 else
6058 NO_IPV6=YesPlease
6062 else
6063 NO_IPV6=YesPlease
6067 else
6068 NO_IPV6=YesPlease
6072 config_appended_defs="$config_appended_defs${newline}NO_IPV6=${NO_IPV6}"
6074 # Define NO_REGEX if you have no or inferior regex support in your C library.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform regex can handle null bytes" >&5
6076 $as_echo_n "checking whether the platform regex can handle null bytes... " >&6; }
6077 if ${ac_cv_c_excellent_regex+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 $ac_includes_default
6084 #include <regex.h>
6087 main ()
6089 #ifdef REG_STARTEND
6090 yippeeyeswehaveit
6091 #endif
6094 return 0;
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "yippeeyeswehaveit" >/dev/null 2>&1; then :
6099 ac_cv_c_excellent_regex=yes
6100 else
6101 ac_cv_c_excellent_regex=no
6103 rm -f conftest*
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_excellent_regex" >&5
6108 $as_echo "$ac_cv_c_excellent_regex" >&6; }
6109 if test $ac_cv_c_excellent_regex = yes; then
6110 NO_REGEX=
6111 else
6112 NO_REGEX=YesPlease
6115 config_appended_defs="$config_appended_defs${newline}NO_REGEX=${NO_REGEX}"
6117 # Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
6118 # when attempting to read from an fopen'ed directory.
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system succeeds to read fopen'ed directory" >&5
6120 $as_echo_n "checking whether system succeeds to read fopen'ed directory... " >&6; }
6121 if ${ac_cv_fread_reads_directories+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6125 if test "$cross_compiling" = yes; then :
6126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6128 as_fn_error $? "cannot run test program while cross compiling
6129 See \`config.log' for more details" "$LINENO" 5; }
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 $ac_includes_default
6135 main ()
6137 char c;
6138 FILE *f = fopen(".", "r");
6139 return f && fread(&c, 1, 1, f)
6141 return 0;
6143 _ACEOF
6144 if ac_fn_c_try_run "$LINENO"; then :
6145 ac_cv_fread_reads_directories=no
6146 else
6147 ac_cv_fread_reads_directories=yes
6149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6150 conftest.$ac_objext conftest.beam conftest.$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fread_reads_directories" >&5
6156 $as_echo "$ac_cv_fread_reads_directories" >&6; }
6157 if test $ac_cv_fread_reads_directories = yes; then
6158 FREAD_READS_DIRECTORIES=UnfortunatelyYes
6159 else
6160 FREAD_READS_DIRECTORIES=
6163 config_appended_defs="$config_appended_defs${newline}FREAD_READS_DIRECTORIES=${FREAD_READS_DIRECTORIES}"
6165 # Define SNPRINTF_RETURNS_BOGUS if your are on a system which snprintf()
6166 # or vsnprintf() return -1 instead of number of characters which would
6167 # have been written to the final string if enough space had been available.
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf() and/or vsnprintf() return bogus value" >&5
6169 $as_echo_n "checking whether snprintf() and/or vsnprintf() return bogus value... " >&6; }
6170 if ${ac_cv_snprintf_returns_bogus+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6174 if test "$cross_compiling" = yes; then :
6175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6177 as_fn_error $? "cannot run test program while cross compiling
6178 See \`config.log' for more details" "$LINENO" 5; }
6179 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 $ac_includes_default
6183 #include "stdarg.h"
6185 int test_vsnprintf(char *str, size_t maxsize, const char *format, ...)
6187 int ret;
6188 va_list ap;
6189 va_start(ap, format);
6190 ret = vsnprintf(str, maxsize, format, ap);
6191 va_end(ap);
6192 return ret;
6195 main ()
6197 char buf[6];
6198 if (test_vsnprintf(buf, 3, "%s", "12345") != 5
6199 || strcmp(buf, "12")) return 1;
6200 if (snprintf(buf, 3, "%s", "12345") != 5
6201 || strcmp(buf, "12")) return 1
6203 return 0;
6205 _ACEOF
6206 if ac_fn_c_try_run "$LINENO"; then :
6207 ac_cv_snprintf_returns_bogus=no
6208 else
6209 ac_cv_snprintf_returns_bogus=yes
6211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6212 conftest.$ac_objext conftest.beam conftest.$ac_ext
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_snprintf_returns_bogus" >&5
6218 $as_echo "$ac_cv_snprintf_returns_bogus" >&6; }
6219 if test $ac_cv_snprintf_returns_bogus = yes; then
6220 SNPRINTF_RETURNS_BOGUS=UnfortunatelyYes
6221 else
6222 SNPRINTF_RETURNS_BOGUS=
6225 config_appended_defs="$config_appended_defs${newline}SNPRINTF_RETURNS_BOGUS=${SNPRINTF_RETURNS_BOGUS}"
6228 ## Checks for library functions.
6229 ## (in default C library and libraries checked by AC_CHECK_LIB)
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for library functions" >&5
6231 $as_echo "$as_me: CHECKS for library functions" >&6;}
6233 # Define NO_LIBGEN_H if you don't have libgen.h.
6234 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
6235 if test "x$ac_cv_header_libgen_h" = xyes; then :
6236 NO_LIBGEN_H=
6237 else
6238 NO_LIBGEN_H=YesPlease
6243 config_appended_defs="$config_appended_defs${newline}NO_LIBGEN_H=${NO_LIBGEN_H}"
6245 # Define HAVE_PATHS_H if you have paths.h.
6246 ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
6247 if test "x$ac_cv_header_paths_h" = xyes; then :
6248 HAVE_PATHS_H=YesPlease
6249 else
6250 HAVE_PATHS_H=
6255 config_appended_defs="$config_appended_defs${newline}HAVE_PATHS_H=${HAVE_PATHS_H}"
6257 # Define HAVE_LIBCHARSET_H if have libcharset.h
6258 ac_fn_c_check_header_mongrel "$LINENO" "libcharset.h" "ac_cv_header_libcharset_h" "$ac_includes_default"
6259 if test "x$ac_cv_header_libcharset_h" = xyes; then :
6260 HAVE_LIBCHARSET_H=YesPlease
6261 else
6262 HAVE_LIBCHARSET_H=
6267 config_appended_defs="$config_appended_defs${newline}HAVE_LIBCHARSET_H=${HAVE_LIBCHARSET_H}"
6269 # Define HAVE_STRINGS_H if you have strings.h
6270 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
6271 if test "x$ac_cv_header_strings_h" = xyes; then :
6272 HAVE_STRINGS_H=YesPlease
6273 else
6274 HAVE_STRINGS_H=
6279 config_appended_defs="$config_appended_defs${newline}HAVE_STRINGS_H=${HAVE_STRINGS_H}"
6280 # Define CHARSET_LIB if libiconv does not export the locale_charset symbol
6281 # and libcharset does
6282 CHARSET_LIB=
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5
6284 $as_echo_n "checking for locale_charset in -liconv... " >&6; }
6285 if ${ac_cv_lib_iconv_locale_charset+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 ac_check_lib_save_LIBS=$LIBS
6289 LIBS="-liconv $LIBS"
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6293 /* Override any GCC internal prototype to avoid an error.
6294 Use char because int might match the return type of a GCC
6295 builtin and then its argument prototype would still apply. */
6296 #ifdef __cplusplus
6297 extern "C"
6298 #endif
6299 char locale_charset ();
6301 main ()
6303 return locale_charset ();
6305 return 0;
6307 _ACEOF
6308 if ac_fn_c_try_link "$LINENO"; then :
6309 ac_cv_lib_iconv_locale_charset=yes
6310 else
6311 ac_cv_lib_iconv_locale_charset=no
6313 rm -f core conftest.err conftest.$ac_objext \
6314 conftest$ac_exeext conftest.$ac_ext
6315 LIBS=$ac_check_lib_save_LIBS
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5
6318 $as_echo "$ac_cv_lib_iconv_locale_charset" >&6; }
6319 if test "x$ac_cv_lib_iconv_locale_charset" = xyes; then :
6320 CHARSET_LIB=-liconv
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
6323 $as_echo_n "checking for locale_charset in -lcharset... " >&6; }
6324 if ${ac_cv_lib_charset_locale_charset+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 ac_check_lib_save_LIBS=$LIBS
6328 LIBS="-lcharset $LIBS"
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6332 /* Override any GCC internal prototype to avoid an error.
6333 Use char because int might match the return type of a GCC
6334 builtin and then its argument prototype would still apply. */
6335 #ifdef __cplusplus
6336 extern "C"
6337 #endif
6338 char locale_charset ();
6340 main ()
6342 return locale_charset ();
6344 return 0;
6346 _ACEOF
6347 if ac_fn_c_try_link "$LINENO"; then :
6348 ac_cv_lib_charset_locale_charset=yes
6349 else
6350 ac_cv_lib_charset_locale_charset=no
6352 rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6354 LIBS=$ac_check_lib_save_LIBS
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
6357 $as_echo "$ac_cv_lib_charset_locale_charset" >&6; }
6358 if test "x$ac_cv_lib_charset_locale_charset" = xyes; then :
6359 CHARSET_LIB=-lcharset
6365 config_appended_defs="$config_appended_defs${newline}CHARSET_LIB=${CHARSET_LIB}"
6367 # Define NO_STRCASESTR if you don't have strcasestr.
6368 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
6369 if test "x$ac_cv_func_strcasestr" = xyes; then :
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strcasestr" >&5
6372 $as_echo_n "checking for library containing strcasestr... " >&6; }
6373 if ${ac_cv_search_strcasestr+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 ac_func_search_save_LIBS=$LIBS
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6380 /* Override any GCC internal prototype to avoid an error.
6381 Use char because int might match the return type of a GCC
6382 builtin and then its argument prototype would still apply. */
6383 #ifdef __cplusplus
6384 extern "C"
6385 #endif
6386 char strcasestr ();
6388 main ()
6390 return strcasestr ();
6392 return 0;
6394 _ACEOF
6395 for ac_lib in '' ; do
6396 if test -z "$ac_lib"; then
6397 ac_res="none required"
6398 else
6399 ac_res=-l$ac_lib
6400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6402 if ac_fn_c_try_link "$LINENO"; then :
6403 ac_cv_search_strcasestr=$ac_res
6405 rm -f core conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext
6407 if ${ac_cv_search_strcasestr+:} false; then :
6408 break
6410 done
6411 if ${ac_cv_search_strcasestr+:} false; then :
6413 else
6414 ac_cv_search_strcasestr=no
6416 rm conftest.$ac_ext
6417 LIBS=$ac_func_search_save_LIBS
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strcasestr" >&5
6420 $as_echo "$ac_cv_search_strcasestr" >&6; }
6421 ac_res=$ac_cv_search_strcasestr
6422 if test "$ac_res" != no; then :
6423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6424 NO_STRCASESTR=
6425 else
6426 NO_STRCASESTR=YesPlease
6430 else
6431 NO_STRCASESTR=YesPlease
6435 config_appended_defs="$config_appended_defs${newline}NO_STRCASESTR=${NO_STRCASESTR}"
6437 # Define NO_MEMMEM if you don't have memmem.
6438 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6439 if test "x$ac_cv_func_memmem" = xyes; then :
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmem" >&5
6442 $as_echo_n "checking for library containing memmem... " >&6; }
6443 if ${ac_cv_search_memmem+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 ac_func_search_save_LIBS=$LIBS
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6450 /* Override any GCC internal prototype to avoid an error.
6451 Use char because int might match the return type of a GCC
6452 builtin and then its argument prototype would still apply. */
6453 #ifdef __cplusplus
6454 extern "C"
6455 #endif
6456 char memmem ();
6458 main ()
6460 return memmem ();
6462 return 0;
6464 _ACEOF
6465 for ac_lib in '' ; do
6466 if test -z "$ac_lib"; then
6467 ac_res="none required"
6468 else
6469 ac_res=-l$ac_lib
6470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6472 if ac_fn_c_try_link "$LINENO"; then :
6473 ac_cv_search_memmem=$ac_res
6475 rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext
6477 if ${ac_cv_search_memmem+:} false; then :
6478 break
6480 done
6481 if ${ac_cv_search_memmem+:} false; then :
6483 else
6484 ac_cv_search_memmem=no
6486 rm conftest.$ac_ext
6487 LIBS=$ac_func_search_save_LIBS
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmem" >&5
6490 $as_echo "$ac_cv_search_memmem" >&6; }
6491 ac_res=$ac_cv_search_memmem
6492 if test "$ac_res" != no; then :
6493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6494 NO_MEMMEM=
6495 else
6496 NO_MEMMEM=YesPlease
6500 else
6501 NO_MEMMEM=YesPlease
6505 config_appended_defs="$config_appended_defs${newline}NO_MEMMEM=${NO_MEMMEM}"
6507 # Define NO_STRLCPY if you don't have strlcpy.
6508 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6509 if test "x$ac_cv_func_strlcpy" = xyes; then :
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
6512 $as_echo_n "checking for library containing strlcpy... " >&6; }
6513 if ${ac_cv_search_strlcpy+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 ac_func_search_save_LIBS=$LIBS
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6520 /* Override any GCC internal prototype to avoid an error.
6521 Use char because int might match the return type of a GCC
6522 builtin and then its argument prototype would still apply. */
6523 #ifdef __cplusplus
6524 extern "C"
6525 #endif
6526 char strlcpy ();
6528 main ()
6530 return strlcpy ();
6532 return 0;
6534 _ACEOF
6535 for ac_lib in '' ; do
6536 if test -z "$ac_lib"; then
6537 ac_res="none required"
6538 else
6539 ac_res=-l$ac_lib
6540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6542 if ac_fn_c_try_link "$LINENO"; then :
6543 ac_cv_search_strlcpy=$ac_res
6545 rm -f core conftest.err conftest.$ac_objext \
6546 conftest$ac_exeext
6547 if ${ac_cv_search_strlcpy+:} false; then :
6548 break
6550 done
6551 if ${ac_cv_search_strlcpy+:} false; then :
6553 else
6554 ac_cv_search_strlcpy=no
6556 rm conftest.$ac_ext
6557 LIBS=$ac_func_search_save_LIBS
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
6560 $as_echo "$ac_cv_search_strlcpy" >&6; }
6561 ac_res=$ac_cv_search_strlcpy
6562 if test "$ac_res" != no; then :
6563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6564 NO_STRLCPY=
6565 else
6566 NO_STRLCPY=YesPlease
6570 else
6571 NO_STRLCPY=YesPlease
6575 config_appended_defs="$config_appended_defs${newline}NO_STRLCPY=${NO_STRLCPY}"
6577 # Define NO_UINTMAX_T if your platform does not have uintmax_t
6578 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
6579 #include <inttypes.h>
6582 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6583 NO_UINTMAX_T=
6584 else
6585 NO_UINTMAX_T=YesPlease
6589 config_appended_defs="$config_appended_defs${newline}NO_UINTMAX_T=${NO_UINTMAX_T}"
6591 # Define NO_STRTOUMAX if you don't have strtoumax in the C library.
6592 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
6593 if test "x$ac_cv_func_strtoumax" = xyes; then :
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strtoumax" >&5
6596 $as_echo_n "checking for library containing strtoumax... " >&6; }
6597 if ${ac_cv_search_strtoumax+:} 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. */
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 strtoumax ();
6612 main ()
6614 return strtoumax ();
6616 return 0;
6618 _ACEOF
6619 for ac_lib in '' ; 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"
6626 if ac_fn_c_try_link "$LINENO"; then :
6627 ac_cv_search_strtoumax=$ac_res
6629 rm -f core conftest.err conftest.$ac_objext \
6630 conftest$ac_exeext
6631 if ${ac_cv_search_strtoumax+:} false; then :
6632 break
6634 done
6635 if ${ac_cv_search_strtoumax+:} false; then :
6637 else
6638 ac_cv_search_strtoumax=no
6640 rm conftest.$ac_ext
6641 LIBS=$ac_func_search_save_LIBS
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strtoumax" >&5
6644 $as_echo "$ac_cv_search_strtoumax" >&6; }
6645 ac_res=$ac_cv_search_strtoumax
6646 if test "$ac_res" != no; then :
6647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6648 NO_STRTOUMAX=
6649 else
6650 NO_STRTOUMAX=YesPlease
6654 else
6655 NO_STRTOUMAX=YesPlease
6659 config_appended_defs="$config_appended_defs${newline}NO_STRTOUMAX=${NO_STRTOUMAX}"
6661 # Define NO_SETENV if you don't have setenv in the C library.
6662 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6663 if test "x$ac_cv_func_setenv" = xyes; then :
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setenv" >&5
6666 $as_echo_n "checking for library containing setenv... " >&6; }
6667 if ${ac_cv_search_setenv+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 ac_func_search_save_LIBS=$LIBS
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6674 /* Override any GCC internal prototype to avoid an error.
6675 Use char because int might match the return type of a GCC
6676 builtin and then its argument prototype would still apply. */
6677 #ifdef __cplusplus
6678 extern "C"
6679 #endif
6680 char setenv ();
6682 main ()
6684 return setenv ();
6686 return 0;
6688 _ACEOF
6689 for ac_lib in '' ; do
6690 if test -z "$ac_lib"; then
6691 ac_res="none required"
6692 else
6693 ac_res=-l$ac_lib
6694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6696 if ac_fn_c_try_link "$LINENO"; then :
6697 ac_cv_search_setenv=$ac_res
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext
6701 if ${ac_cv_search_setenv+:} false; then :
6702 break
6704 done
6705 if ${ac_cv_search_setenv+:} false; then :
6707 else
6708 ac_cv_search_setenv=no
6710 rm conftest.$ac_ext
6711 LIBS=$ac_func_search_save_LIBS
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setenv" >&5
6714 $as_echo "$ac_cv_search_setenv" >&6; }
6715 ac_res=$ac_cv_search_setenv
6716 if test "$ac_res" != no; then :
6717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6718 NO_SETENV=
6719 else
6720 NO_SETENV=YesPlease
6724 else
6725 NO_SETENV=YesPlease
6729 config_appended_defs="$config_appended_defs${newline}NO_SETENV=${NO_SETENV}"
6731 # Define NO_UNSETENV if you don't have unsetenv in the C library.
6732 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6733 if test "x$ac_cv_func_unsetenv" = xyes; then :
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing unsetenv" >&5
6736 $as_echo_n "checking for library containing unsetenv... " >&6; }
6737 if ${ac_cv_search_unsetenv+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 ac_func_search_save_LIBS=$LIBS
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6744 /* Override any GCC internal prototype to avoid an error.
6745 Use char because int might match the return type of a GCC
6746 builtin and then its argument prototype would still apply. */
6747 #ifdef __cplusplus
6748 extern "C"
6749 #endif
6750 char unsetenv ();
6752 main ()
6754 return unsetenv ();
6756 return 0;
6758 _ACEOF
6759 for ac_lib in '' ; do
6760 if test -z "$ac_lib"; then
6761 ac_res="none required"
6762 else
6763 ac_res=-l$ac_lib
6764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6766 if ac_fn_c_try_link "$LINENO"; then :
6767 ac_cv_search_unsetenv=$ac_res
6769 rm -f core conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext
6771 if ${ac_cv_search_unsetenv+:} false; then :
6772 break
6774 done
6775 if ${ac_cv_search_unsetenv+:} false; then :
6777 else
6778 ac_cv_search_unsetenv=no
6780 rm conftest.$ac_ext
6781 LIBS=$ac_func_search_save_LIBS
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_unsetenv" >&5
6784 $as_echo "$ac_cv_search_unsetenv" >&6; }
6785 ac_res=$ac_cv_search_unsetenv
6786 if test "$ac_res" != no; then :
6787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6788 NO_UNSETENV=
6789 else
6790 NO_UNSETENV=YesPlease
6794 else
6795 NO_UNSETENV=YesPlease
6799 config_appended_defs="$config_appended_defs${newline}NO_UNSETENV=${NO_UNSETENV}"
6801 # Define NO_MKDTEMP if you don't have mkdtemp in the C library.
6802 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
6803 if test "x$ac_cv_func_mkdtemp" = xyes; then :
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkdtemp" >&5
6806 $as_echo_n "checking for library containing mkdtemp... " >&6; }
6807 if ${ac_cv_search_mkdtemp+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 ac_func_search_save_LIBS=$LIBS
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6814 /* Override any GCC internal prototype to avoid an error.
6815 Use char because int might match the return type of a GCC
6816 builtin and then its argument prototype would still apply. */
6817 #ifdef __cplusplus
6818 extern "C"
6819 #endif
6820 char mkdtemp ();
6822 main ()
6824 return mkdtemp ();
6826 return 0;
6828 _ACEOF
6829 for ac_lib in '' ; do
6830 if test -z "$ac_lib"; then
6831 ac_res="none required"
6832 else
6833 ac_res=-l$ac_lib
6834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6836 if ac_fn_c_try_link "$LINENO"; then :
6837 ac_cv_search_mkdtemp=$ac_res
6839 rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext
6841 if ${ac_cv_search_mkdtemp+:} false; then :
6842 break
6844 done
6845 if ${ac_cv_search_mkdtemp+:} false; then :
6847 else
6848 ac_cv_search_mkdtemp=no
6850 rm conftest.$ac_ext
6851 LIBS=$ac_func_search_save_LIBS
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkdtemp" >&5
6854 $as_echo "$ac_cv_search_mkdtemp" >&6; }
6855 ac_res=$ac_cv_search_mkdtemp
6856 if test "$ac_res" != no; then :
6857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6858 NO_MKDTEMP=
6859 else
6860 NO_MKDTEMP=YesPlease
6864 else
6865 NO_MKDTEMP=YesPlease
6869 config_appended_defs="$config_appended_defs${newline}NO_MKDTEMP=${NO_MKDTEMP}"
6871 # Define NO_MKSTEMPS if you don't have mkstemps in the C library.
6872 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
6873 if test "x$ac_cv_func_mkstemps" = xyes; then :
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkstemps" >&5
6876 $as_echo_n "checking for library containing mkstemps... " >&6; }
6877 if ${ac_cv_search_mkstemps+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 ac_func_search_save_LIBS=$LIBS
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6884 /* Override any GCC internal prototype to avoid an error.
6885 Use char because int might match the return type of a GCC
6886 builtin and then its argument prototype would still apply. */
6887 #ifdef __cplusplus
6888 extern "C"
6889 #endif
6890 char mkstemps ();
6892 main ()
6894 return mkstemps ();
6896 return 0;
6898 _ACEOF
6899 for ac_lib in '' ; do
6900 if test -z "$ac_lib"; then
6901 ac_res="none required"
6902 else
6903 ac_res=-l$ac_lib
6904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6906 if ac_fn_c_try_link "$LINENO"; then :
6907 ac_cv_search_mkstemps=$ac_res
6909 rm -f core conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext
6911 if ${ac_cv_search_mkstemps+:} false; then :
6912 break
6914 done
6915 if ${ac_cv_search_mkstemps+:} false; then :
6917 else
6918 ac_cv_search_mkstemps=no
6920 rm conftest.$ac_ext
6921 LIBS=$ac_func_search_save_LIBS
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkstemps" >&5
6924 $as_echo "$ac_cv_search_mkstemps" >&6; }
6925 ac_res=$ac_cv_search_mkstemps
6926 if test "$ac_res" != no; then :
6927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6928 NO_MKSTEMPS=
6929 else
6930 NO_MKSTEMPS=YesPlease
6934 else
6935 NO_MKSTEMPS=YesPlease
6939 config_appended_defs="$config_appended_defs${newline}NO_MKSTEMPS=${NO_MKSTEMPS}"
6941 # Define NO_INITGROUPS if you don't have initgroups in the C library.
6942 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
6943 if test "x$ac_cv_func_initgroups" = xyes; then :
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initgroups" >&5
6946 $as_echo_n "checking for library containing initgroups... " >&6; }
6947 if ${ac_cv_search_initgroups+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 ac_func_search_save_LIBS=$LIBS
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6954 /* Override any GCC internal prototype to avoid an error.
6955 Use char because int might match the return type of a GCC
6956 builtin and then its argument prototype would still apply. */
6957 #ifdef __cplusplus
6958 extern "C"
6959 #endif
6960 char initgroups ();
6962 main ()
6964 return initgroups ();
6966 return 0;
6968 _ACEOF
6969 for ac_lib in '' ; do
6970 if test -z "$ac_lib"; then
6971 ac_res="none required"
6972 else
6973 ac_res=-l$ac_lib
6974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 ac_cv_search_initgroups=$ac_res
6979 rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext
6981 if ${ac_cv_search_initgroups+:} false; then :
6982 break
6984 done
6985 if ${ac_cv_search_initgroups+:} false; then :
6987 else
6988 ac_cv_search_initgroups=no
6990 rm conftest.$ac_ext
6991 LIBS=$ac_func_search_save_LIBS
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initgroups" >&5
6994 $as_echo "$ac_cv_search_initgroups" >&6; }
6995 ac_res=$ac_cv_search_initgroups
6996 if test "$ac_res" != no; then :
6997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6998 NO_INITGROUPS=
6999 else
7000 NO_INITGROUPS=YesPlease
7004 else
7005 NO_INITGROUPS=YesPlease
7009 config_appended_defs="$config_appended_defs${newline}NO_INITGROUPS=${NO_INITGROUPS}"
7012 # Define NO_MMAP if you want to avoid mmap.
7014 # Define NO_ICONV if your libc does not properly support iconv.
7017 ## Other checks.
7018 # Define USE_PIC if you need the main git objects to be built with -fPIC
7019 # in order to build and link perl/Git.so. x86-64 seems to need this.
7021 # Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
7022 # Enable it on Windows. By default, symrefs are still used.
7024 # Define NO_PTHREADS if we do not have pthreads.
7026 # Define PTHREAD_LIBS to the linker flag used for Pthread support.
7030 NO_PTHREADS=UnfortunatelyYes
7031 PTHREAD_LIBS=
7033 if test -n "$USER_NOPTHREAD"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping POSIX Threads at user request." >&5
7035 $as_echo "$as_me: Skipping POSIX Threads at user request." >&6;}
7036 # handle these separately since PTHREAD_CFLAGS could be '-lpthreads
7037 # -D_REENTRANT' or some such.
7038 elif test -z "$PTHREAD_CFLAGS"; then
7039 threads_found=no
7040 # Attempt to compile and link some code using pthreads to determine
7041 # required linker flags. The order is somewhat important here: We
7042 # first try it without any extra flags, to catch systems where
7043 # pthreads are part of the C library, then go on testing various other
7044 # flags. We do so to avoid false positives. For example, on Mac OS X
7045 # pthreads are part of the C library; moreover, the compiler allows us
7046 # to add "-mt" to the CFLAGS (although it will do nothing except
7047 # trigger a warning about an unused flag). Hence if we checked for
7048 # "-mt" before "" we would end up picking it. But unfortunately this
7049 # would then trigger compiler warnings on every single file we compile.
7050 for opt in "" -mt -pthread -lpthread; do
7051 old_CFLAGS="$CFLAGS"
7052 CFLAGS="$opt $CFLAGS"
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Threads with '$opt'" >&5
7054 $as_echo_n "checking for POSIX Threads with '$opt'... " >&6; }
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7059 #include <pthread.h>
7062 main ()
7065 pthread_mutex_t test_mutex;
7066 pthread_key_t test_key;
7067 int retcode = 0;
7068 retcode |= pthread_key_create(&test_key, (void *)0);
7069 retcode |= pthread_mutex_init(&test_mutex,(void *)0);
7070 retcode |= pthread_mutex_lock(&test_mutex);
7071 retcode |= pthread_mutex_unlock(&test_mutex);
7072 return retcode;
7075 return 0;
7077 _ACEOF
7078 if ac_fn_c_try_link "$LINENO"; then :
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080 $as_echo "yes" >&6; }
7081 NO_PTHREADS=
7082 PTHREAD_LIBS="$opt"
7083 PTHREAD_CFLAGS="$opt"
7084 threads_found=yes
7085 break
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7091 rm -f core conftest.err conftest.$ac_objext \
7092 conftest$ac_exeext conftest.$ac_ext
7093 CFLAGS="$old_CFLAGS"
7094 done
7095 if test $threads_found != yes; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7097 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7098 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 ac_check_lib_save_LIBS=$LIBS
7102 LIBS="-lpthread $LIBS"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7106 /* Override any GCC internal prototype to avoid an error.
7107 Use char because int might match the return type of a GCC
7108 builtin and then its argument prototype would still apply. */
7109 #ifdef __cplusplus
7110 extern "C"
7111 #endif
7112 char pthread_create ();
7114 main ()
7116 return pthread_create ();
7118 return 0;
7120 _ACEOF
7121 if ac_fn_c_try_link "$LINENO"; then :
7122 ac_cv_lib_pthread_pthread_create=yes
7123 else
7124 ac_cv_lib_pthread_pthread_create=no
7126 rm -f core conftest.err conftest.$ac_objext \
7127 conftest$ac_exeext conftest.$ac_ext
7128 LIBS=$ac_check_lib_save_LIBS
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7131 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7132 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7133 PTHREAD_LIBS="-lpthread"
7134 else
7135 NO_PTHREADS=UnfortunatelyYes
7139 else
7140 old_CFLAGS="$CFLAGS"
7141 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Threads with '$PTHREAD_CFLAGS'" >&5
7143 $as_echo_n "checking for POSIX Threads with '$PTHREAD_CFLAGS'... " >&6; }
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7148 #include <pthread.h>
7151 main ()
7154 pthread_mutex_t test_mutex;
7155 pthread_key_t test_key;
7156 int retcode = 0;
7157 retcode |= pthread_key_create(&test_key, (void *)0);
7158 retcode |= pthread_mutex_init(&test_mutex,(void *)0);
7159 retcode |= pthread_mutex_lock(&test_mutex);
7160 retcode |= pthread_mutex_unlock(&test_mutex);
7161 return retcode;
7164 return 0;
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"; then :
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7169 $as_echo "yes" >&6; }
7170 NO_PTHREADS=
7171 PTHREAD_LIBS="$PTHREAD_CFLAGS"
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7177 rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext conftest.$ac_ext
7180 CFLAGS="$old_CFLAGS"
7183 CFLAGS="$old_CFLAGS"
7186 config_appended_defs="$config_appended_defs${newline}PTHREAD_CFLAGS=${PTHREAD_CFLAGS}"
7188 config_appended_defs="$config_appended_defs${newline}PTHREAD_LIBS=${PTHREAD_LIBS}"
7190 config_appended_defs="$config_appended_defs${newline}NO_PTHREADS=${NO_PTHREADS}"
7192 ## Output files
7193 ac_config_files="$ac_config_files "${config_file}":"${config_in}""
7195 cat >confcache <<\_ACEOF
7196 # This file is a shell script that caches the results of configure
7197 # tests run on this system so they can be shared between configure
7198 # scripts and configure runs, see configure's option --config-cache.
7199 # It is not useful on other systems. If it contains results you don't
7200 # want to keep, you may remove or edit it.
7202 # config.status only pays attention to the cache file if you give it
7203 # the --recheck option to rerun configure.
7205 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7206 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7207 # following values.
7209 _ACEOF
7211 # The following way of writing the cache mishandles newlines in values,
7212 # but we know of no workaround that is simple, portable, and efficient.
7213 # So, we kill variables containing newlines.
7214 # Ultrix sh set writes to stderr and can't be redirected directly,
7215 # and sets the high bit in the cache file unless we assign to the vars.
7217 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7218 eval ac_val=\$$ac_var
7219 case $ac_val in #(
7220 *${as_nl}*)
7221 case $ac_var in #(
7222 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7224 esac
7225 case $ac_var in #(
7226 _ | IFS | as_nl) ;; #(
7227 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7228 *) { eval $ac_var=; unset $ac_var;} ;;
7229 esac ;;
7230 esac
7231 done
7233 (set) 2>&1 |
7234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7235 *${as_nl}ac_space=\ *)
7236 # `set' does not quote correctly, so add quotes: double-quote
7237 # substitution turns \\\\ into \\, and sed turns \\ into \.
7238 sed -n \
7239 "s/'/'\\\\''/g;
7240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7241 ;; #(
7243 # `set' quotes correctly as required by POSIX, so do not add quotes.
7244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7246 esac |
7247 sort
7249 sed '
7250 /^ac_cv_env_/b end
7251 t clear
7252 :clear
7253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7254 t end
7255 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7256 :end' >>confcache
7257 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7258 if test -w "$cache_file"; then
7259 if test "x$cache_file" != "x/dev/null"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7261 $as_echo "$as_me: updating cache $cache_file" >&6;}
7262 if test ! -f "$cache_file" || test -h "$cache_file"; then
7263 cat confcache >"$cache_file"
7264 else
7265 case $cache_file in #(
7266 */* | ?:*)
7267 mv -f confcache "$cache_file"$$ &&
7268 mv -f "$cache_file"$$ "$cache_file" ;; #(
7270 mv -f confcache "$cache_file" ;;
7271 esac
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7276 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7279 rm -f confcache
7281 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7282 # Let make expand exec_prefix.
7283 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7285 # Transform confdefs.h into DEFS.
7286 # Protect against shell expansion while executing Makefile rules.
7287 # Protect against Makefile macro expansion.
7289 # If the first sed substitution is executed (which looks for macros that
7290 # take arguments), then branch to the quote section. Otherwise,
7291 # look for a macro that doesn't take arguments.
7292 ac_script='
7293 :mline
7294 /\\$/{
7296 s,\\\n,,
7297 b mline
7299 t clear
7300 :clear
7301 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7302 t quote
7303 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7304 t quote
7305 b any
7306 :quote
7307 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7308 s/\[/\\&/g
7309 s/\]/\\&/g
7310 s/\$/$$/g
7312 :any
7315 s/^\n//
7316 s/\n/ /g
7320 DEFS=`sed -n "$ac_script" confdefs.h`
7323 ac_libobjs=
7324 ac_ltlibobjs=
7326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7327 # 1. Remove the extension, and $U if already installed.
7328 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7329 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7330 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7331 # will be set to the directory where LIBOBJS objects are built.
7332 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7333 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7334 done
7335 LIBOBJS=$ac_libobjs
7337 LTLIBOBJS=$ac_ltlibobjs
7341 : "${CONFIG_STATUS=./config.status}"
7342 ac_write_fail=0
7343 ac_clean_files_save=$ac_clean_files
7344 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7346 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7347 as_write_fail=0
7348 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7349 #! $SHELL
7350 # Generated by $as_me.
7351 # Run this file to recreate the current configuration.
7352 # Compiler output produced by configure, useful for debugging
7353 # configure, is in config.log if it exists.
7355 debug=false
7356 ac_cs_recheck=false
7357 ac_cs_silent=false
7359 SHELL=\${CONFIG_SHELL-$SHELL}
7360 export SHELL
7361 _ASEOF
7362 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7363 ## -------------------- ##
7364 ## M4sh Initialization. ##
7365 ## -------------------- ##
7367 # Be more Bourne compatible
7368 DUALCASE=1; export DUALCASE # for MKS sh
7369 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7370 emulate sh
7371 NULLCMD=:
7372 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7373 # is contrary to our usage. Disable this feature.
7374 alias -g '${1+"$@"}'='"$@"'
7375 setopt NO_GLOB_SUBST
7376 else
7377 case `(set -o) 2>/dev/null` in #(
7378 *posix*) :
7379 set -o posix ;; #(
7380 *) :
7382 esac
7386 as_nl='
7388 export as_nl
7389 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7390 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7391 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7393 # Prefer a ksh shell builtin over an external printf program on Solaris,
7394 # but without wasting forks for bash or zsh.
7395 if test -z "$BASH_VERSION$ZSH_VERSION" \
7396 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7397 as_echo='print -r --'
7398 as_echo_n='print -rn --'
7399 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7400 as_echo='printf %s\n'
7401 as_echo_n='printf %s'
7402 else
7403 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7404 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7405 as_echo_n='/usr/ucb/echo -n'
7406 else
7407 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7408 as_echo_n_body='eval
7409 arg=$1;
7410 case $arg in #(
7411 *"$as_nl"*)
7412 expr "X$arg" : "X\\(.*\\)$as_nl";
7413 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7414 esac;
7415 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7417 export as_echo_n_body
7418 as_echo_n='sh -c $as_echo_n_body as_echo'
7420 export as_echo_body
7421 as_echo='sh -c $as_echo_body as_echo'
7424 # The user is always right.
7425 if test "${PATH_SEPARATOR+set}" != set; then
7426 PATH_SEPARATOR=:
7427 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7428 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7429 PATH_SEPARATOR=';'
7434 # IFS
7435 # We need space, tab and new line, in precisely that order. Quoting is
7436 # there to prevent editors from complaining about space-tab.
7437 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7438 # splitting by setting IFS to empty value.)
7439 IFS=" "" $as_nl"
7441 # Find who we are. Look in the path if we contain no directory separator.
7442 as_myself=
7443 case $0 in #((
7444 *[\\/]* ) as_myself=$0 ;;
7445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7451 done
7452 IFS=$as_save_IFS
7455 esac
7456 # We did not find ourselves, most probably we were run as `sh COMMAND'
7457 # in which case we are not to be found in the path.
7458 if test "x$as_myself" = x; then
7459 as_myself=$0
7461 if test ! -f "$as_myself"; then
7462 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7463 exit 1
7466 # Unset variables that we do not need and which cause bugs (e.g. in
7467 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7468 # suppresses any "Segmentation fault" message there. '((' could
7469 # trigger a bug in pdksh 5.2.14.
7470 for as_var in BASH_ENV ENV MAIL MAILPATH
7471 do eval test x\${$as_var+set} = xset \
7472 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7473 done
7474 PS1='$ '
7475 PS2='> '
7476 PS4='+ '
7478 # NLS nuisances.
7479 LC_ALL=C
7480 export LC_ALL
7481 LANGUAGE=C
7482 export LANGUAGE
7484 # CDPATH.
7485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7488 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7489 # ----------------------------------------
7490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7492 # script with STATUS, using 1 if that was 0.
7493 as_fn_error ()
7495 as_status=$1; test $as_status -eq 0 && as_status=1
7496 if test "$4"; then
7497 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7498 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7500 $as_echo "$as_me: error: $2" >&2
7501 as_fn_exit $as_status
7502 } # as_fn_error
7505 # as_fn_set_status STATUS
7506 # -----------------------
7507 # Set $? to STATUS, without forking.
7508 as_fn_set_status ()
7510 return $1
7511 } # as_fn_set_status
7513 # as_fn_exit STATUS
7514 # -----------------
7515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7516 as_fn_exit ()
7518 set +e
7519 as_fn_set_status $1
7520 exit $1
7521 } # as_fn_exit
7523 # as_fn_unset VAR
7524 # ---------------
7525 # Portably unset VAR.
7526 as_fn_unset ()
7528 { eval $1=; unset $1;}
7530 as_unset=as_fn_unset
7531 # as_fn_append VAR VALUE
7532 # ----------------------
7533 # Append the text in VALUE to the end of the definition contained in VAR. Take
7534 # advantage of any shell optimizations that allow amortized linear growth over
7535 # repeated appends, instead of the typical quadratic growth present in naive
7536 # implementations.
7537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7538 eval 'as_fn_append ()
7540 eval $1+=\$2
7542 else
7543 as_fn_append ()
7545 eval $1=\$$1\$2
7547 fi # as_fn_append
7549 # as_fn_arith ARG...
7550 # ------------------
7551 # Perform arithmetic evaluation on the ARGs, and store the result in the
7552 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7553 # must be portable across $(()) and expr.
7554 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7555 eval 'as_fn_arith ()
7557 as_val=$(( $* ))
7559 else
7560 as_fn_arith ()
7562 as_val=`expr "$@" || test $? -eq 1`
7564 fi # as_fn_arith
7567 if expr a : '\(a\)' >/dev/null 2>&1 &&
7568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7569 as_expr=expr
7570 else
7571 as_expr=false
7574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7575 as_basename=basename
7576 else
7577 as_basename=false
7580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7581 as_dirname=dirname
7582 else
7583 as_dirname=false
7586 as_me=`$as_basename -- "$0" ||
7587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7588 X"$0" : 'X\(//\)$' \| \
7589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7590 $as_echo X/"$0" |
7591 sed '/^.*\/\([^/][^/]*\)\/*$/{
7592 s//\1/
7595 /^X\/\(\/\/\)$/{
7596 s//\1/
7599 /^X\/\(\/\).*/{
7600 s//\1/
7603 s/.*/./; q'`
7605 # Avoid depending upon Character Ranges.
7606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7609 as_cr_digits='0123456789'
7610 as_cr_alnum=$as_cr_Letters$as_cr_digits
7612 ECHO_C= ECHO_N= ECHO_T=
7613 case `echo -n x` in #(((((
7614 -n*)
7615 case `echo 'xy\c'` in
7616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7617 xy) ECHO_C='\c';;
7618 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7619 ECHO_T=' ';;
7620 esac;;
7622 ECHO_N='-n';;
7623 esac
7625 rm -f conf$$ conf$$.exe conf$$.file
7626 if test -d conf$$.dir; then
7627 rm -f conf$$.dir/conf$$.file
7628 else
7629 rm -f conf$$.dir
7630 mkdir conf$$.dir 2>/dev/null
7632 if (echo >conf$$.file) 2>/dev/null; then
7633 if ln -s conf$$.file conf$$ 2>/dev/null; then
7634 as_ln_s='ln -s'
7635 # ... but there are two gotchas:
7636 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7637 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7638 # In both cases, we have to default to `cp -pR'.
7639 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7640 as_ln_s='cp -pR'
7641 elif ln conf$$.file conf$$ 2>/dev/null; then
7642 as_ln_s=ln
7643 else
7644 as_ln_s='cp -pR'
7646 else
7647 as_ln_s='cp -pR'
7649 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7650 rmdir conf$$.dir 2>/dev/null
7653 # as_fn_mkdir_p
7654 # -------------
7655 # Create "$as_dir" as a directory, including parents if necessary.
7656 as_fn_mkdir_p ()
7659 case $as_dir in #(
7660 -*) as_dir=./$as_dir;;
7661 esac
7662 test -d "$as_dir" || eval $as_mkdir_p || {
7663 as_dirs=
7664 while :; do
7665 case $as_dir in #(
7666 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7667 *) as_qdir=$as_dir;;
7668 esac
7669 as_dirs="'$as_qdir' $as_dirs"
7670 as_dir=`$as_dirname -- "$as_dir" ||
7671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7672 X"$as_dir" : 'X\(//\)[^/]' \| \
7673 X"$as_dir" : 'X\(//\)$' \| \
7674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7675 $as_echo X"$as_dir" |
7676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7677 s//\1/
7680 /^X\(\/\/\)[^/].*/{
7681 s//\1/
7684 /^X\(\/\/\)$/{
7685 s//\1/
7688 /^X\(\/\).*/{
7689 s//\1/
7692 s/.*/./; q'`
7693 test -d "$as_dir" && break
7694 done
7695 test -z "$as_dirs" || eval "mkdir $as_dirs"
7696 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7699 } # as_fn_mkdir_p
7700 if mkdir -p . 2>/dev/null; then
7701 as_mkdir_p='mkdir -p "$as_dir"'
7702 else
7703 test -d ./-p && rmdir ./-p
7704 as_mkdir_p=false
7708 # as_fn_executable_p FILE
7709 # -----------------------
7710 # Test if FILE is an executable regular file.
7711 as_fn_executable_p ()
7713 test -f "$1" && test -x "$1"
7714 } # as_fn_executable_p
7715 as_test_x='test -x'
7716 as_executable_p=as_fn_executable_p
7718 # Sed expression to map a string onto a valid CPP name.
7719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7721 # Sed expression to map a string onto a valid variable name.
7722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7725 exec 6>&1
7726 ## ----------------------------------- ##
7727 ## Main body of $CONFIG_STATUS script. ##
7728 ## ----------------------------------- ##
7729 _ASEOF
7730 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7733 # Save the log message, to keep $0 and so on meaningful, and to
7734 # report actual input values of CONFIG_FILES etc. instead of their
7735 # values after options handling.
7736 ac_log="
7737 This file was extended by git $as_me 2.1.4, which was
7738 generated by GNU Autoconf 2.69. Invocation command line was
7740 CONFIG_FILES = $CONFIG_FILES
7741 CONFIG_HEADERS = $CONFIG_HEADERS
7742 CONFIG_LINKS = $CONFIG_LINKS
7743 CONFIG_COMMANDS = $CONFIG_COMMANDS
7744 $ $0 $@
7746 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7749 _ACEOF
7751 case $ac_config_files in *"
7752 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7753 esac
7757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7758 # Files that config.status was made for.
7759 config_files="$ac_config_files"
7760 config_commands="$ac_config_commands"
7762 _ACEOF
7764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7765 ac_cs_usage="\
7766 \`$as_me' instantiates files and other configuration actions
7767 from templates according to the current configuration. Unless the files
7768 and actions are specified as TAGs, all are instantiated by default.
7770 Usage: $0 [OPTION]... [TAG]...
7772 -h, --help print this help, then exit
7773 -V, --version print version number and configuration settings, then exit
7774 --config print configuration, then exit
7775 -q, --quiet, --silent
7776 do not print progress messages
7777 -d, --debug don't remove temporary files
7778 --recheck update $as_me by reconfiguring in the same conditions
7779 --file=FILE[:TEMPLATE]
7780 instantiate the configuration file FILE
7782 Configuration files:
7783 $config_files
7785 Configuration commands:
7786 $config_commands
7788 Report bugs to <git@vger.kernel.org>."
7790 _ACEOF
7791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7792 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7793 ac_cs_version="\\
7794 git config.status 2.1.4
7795 configured by $0, generated by GNU Autoconf 2.69,
7796 with options \\"\$ac_cs_config\\"
7798 Copyright (C) 2012 Free Software Foundation, Inc.
7799 This config.status script is free software; the Free Software Foundation
7800 gives unlimited permission to copy, distribute and modify it."
7802 ac_pwd='$ac_pwd'
7803 srcdir='$srcdir'
7804 test -n "\$AWK" || AWK=awk
7805 _ACEOF
7807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7808 # The default lists apply if the user does not specify any file.
7809 ac_need_defaults=:
7810 while test $# != 0
7812 case $1 in
7813 --*=?*)
7814 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7815 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7816 ac_shift=:
7818 --*=)
7819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7820 ac_optarg=
7821 ac_shift=:
7824 ac_option=$1
7825 ac_optarg=$2
7826 ac_shift=shift
7828 esac
7830 case $ac_option in
7831 # Handling of the options.
7832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7833 ac_cs_recheck=: ;;
7834 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7835 $as_echo "$ac_cs_version"; exit ;;
7836 --config | --confi | --conf | --con | --co | --c )
7837 $as_echo "$ac_cs_config"; exit ;;
7838 --debug | --debu | --deb | --de | --d | -d )
7839 debug=: ;;
7840 --file | --fil | --fi | --f )
7841 $ac_shift
7842 case $ac_optarg in
7843 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7844 '') as_fn_error $? "missing file argument" ;;
7845 esac
7846 as_fn_append CONFIG_FILES " '$ac_optarg'"
7847 ac_need_defaults=false;;
7848 --he | --h | --help | --hel | -h )
7849 $as_echo "$ac_cs_usage"; exit ;;
7850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7852 ac_cs_silent=: ;;
7854 # This is an error.
7855 -*) as_fn_error $? "unrecognized option: \`$1'
7856 Try \`$0 --help' for more information." ;;
7858 *) as_fn_append ac_config_targets " $1"
7859 ac_need_defaults=false ;;
7861 esac
7862 shift
7863 done
7865 ac_configure_extra_args=
7867 if $ac_cs_silent; then
7868 exec 6>/dev/null
7869 ac_configure_extra_args="$ac_configure_extra_args --silent"
7872 _ACEOF
7873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7874 if \$ac_cs_recheck; then
7875 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7876 shift
7877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7878 CONFIG_SHELL='$SHELL'
7879 export CONFIG_SHELL
7880 exec "\$@"
7883 _ACEOF
7884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7885 exec 5>>config.log
7887 echo
7888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7889 ## Running $as_me. ##
7890 _ASBOX
7891 $as_echo "$ac_log"
7892 } >&5
7894 _ACEOF
7895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7897 # INIT-COMMANDS
7899 config_file=$config_file
7900 config_appended_defs="$config_appended_defs"
7902 _ACEOF
7904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7906 # Handling of arguments.
7907 for ac_config_target in $ac_config_targets
7909 case $ac_config_target in
7910 "$config_file") CONFIG_COMMANDS="$CONFIG_COMMANDS $config_file" ;;
7911 ""${config_file}"") CONFIG_FILES="$CONFIG_FILES "${config_file}":"${config_in}"" ;;
7913 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7914 esac
7915 done
7918 # If the user did not use the arguments to specify the items to instantiate,
7919 # then the envvar interface is used. Set only those that are not.
7920 # We use the long form for the default assignment because of an extremely
7921 # bizarre bug on SunOS 4.1.3.
7922 if $ac_need_defaults; then
7923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7927 # Have a temporary directory for convenience. Make it in the build tree
7928 # simply because there is no reason against having it here, and in addition,
7929 # creating and moving files from /tmp can sometimes cause problems.
7930 # Hook for its removal unless debugging.
7931 # Note that there is a small window in which the directory will not be cleaned:
7932 # after its creation but before its name has been assigned to `$tmp'.
7933 $debug ||
7935 tmp= ac_tmp=
7936 trap 'exit_status=$?
7937 : "${ac_tmp:=$tmp}"
7938 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7940 trap 'as_fn_exit 1' 1 2 13 15
7942 # Create a (secure) tmp directory for tmp files.
7945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7946 test -d "$tmp"
7947 } ||
7949 tmp=./conf$$-$RANDOM
7950 (umask 077 && mkdir "$tmp")
7951 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7952 ac_tmp=$tmp
7954 # Set up the scripts for CONFIG_FILES section.
7955 # No need to generate them if there are no CONFIG_FILES.
7956 # This happens for instance with `./config.status config.h'.
7957 if test -n "$CONFIG_FILES"; then
7960 ac_cr=`echo X | tr X '\015'`
7961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7962 # But we know of no other shell where ac_cr would be empty at this
7963 # point, so we can use a bashism as a fallback.
7964 if test "x$ac_cr" = x; then
7965 eval ac_cr=\$\'\\r\'
7967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7969 ac_cs_awk_cr='\\r'
7970 else
7971 ac_cs_awk_cr=$ac_cr
7974 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7975 _ACEOF
7979 echo "cat >conf$$subs.awk <<_ACEOF" &&
7980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7981 echo "_ACEOF"
7982 } >conf$$subs.sh ||
7983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7985 ac_delim='%!_!# '
7986 for ac_last_try in false false false false false :; do
7987 . ./conf$$subs.sh ||
7988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7991 if test $ac_delim_n = $ac_delim_num; then
7992 break
7993 elif $ac_last_try; then
7994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7995 else
7996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7998 done
7999 rm -f conf$$subs.sh
8001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8002 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8003 _ACEOF
8004 sed -n '
8006 s/^/S["/; s/!.*/"]=/
8009 s/^[^!]*!//
8010 :repl
8011 t repl
8012 s/'"$ac_delim"'$//
8013 t delim
8016 s/\(.\{148\}\)..*/\1/
8017 t more1
8018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8021 b repl
8022 :more1
8023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8026 s/.\{148\}//
8027 t nl
8028 :delim
8030 s/\(.\{148\}\)..*/\1/
8031 t more2
8032 s/["\\]/\\&/g; s/^/"/; s/$/"/
8035 :more2
8036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8039 s/.\{148\}//
8040 t delim
8041 ' <conf$$subs.awk | sed '
8042 /^[^""]/{
8044 s/\n//
8046 ' >>$CONFIG_STATUS || ac_write_fail=1
8047 rm -f conf$$subs.awk
8048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8049 _ACAWK
8050 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8051 for (key in S) S_is_set[key] = 1
8052 FS = "\a"
8056 line = $ 0
8057 nfields = split(line, field, "@")
8058 substed = 0
8059 len = length(field[1])
8060 for (i = 2; i < nfields; i++) {
8061 key = field[i]
8062 keylen = length(key)
8063 if (S_is_set[key]) {
8064 value = S[key]
8065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8066 len += length(value) + length(field[++i])
8067 substed = 1
8068 } else
8069 len += 1 + keylen
8072 print line
8075 _ACAWK
8076 _ACEOF
8077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8080 else
8082 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8083 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8084 _ACEOF
8086 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8087 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8088 # trailing colons and then remove the whole line if VPATH becomes empty
8089 # (actually we leave an empty line to preserve line numbers).
8090 if test "x$srcdir" = x.; then
8091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8093 s///
8094 s/^/:/
8095 s/[ ]*$/:/
8096 s/:\$(srcdir):/:/g
8097 s/:\${srcdir}:/:/g
8098 s/:@srcdir@:/:/g
8099 s/^:*//
8100 s/:*$//
8102 s/\(=[ ]*\).*/\1/
8104 s/\n//
8105 s/^[^=]*=[ ]*$//
8109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8110 fi # test -n "$CONFIG_FILES"
8113 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8114 shift
8115 for ac_tag
8117 case $ac_tag in
8118 :[FHLC]) ac_mode=$ac_tag; continue;;
8119 esac
8120 case $ac_mode$ac_tag in
8121 :[FHL]*:*);;
8122 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8123 :[FH]-) ac_tag=-:-;;
8124 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8125 esac
8126 ac_save_IFS=$IFS
8127 IFS=:
8128 set x $ac_tag
8129 IFS=$ac_save_IFS
8130 shift
8131 ac_file=$1
8132 shift
8134 case $ac_mode in
8135 :L) ac_source=$1;;
8136 :[FH])
8137 ac_file_inputs=
8138 for ac_f
8140 case $ac_f in
8141 -) ac_f="$ac_tmp/stdin";;
8142 *) # Look for the file first in the build tree, then in the source tree
8143 # (if the path is not absolute). The absolute path cannot be DOS-style,
8144 # because $ac_f cannot contain `:'.
8145 test -f "$ac_f" ||
8146 case $ac_f in
8147 [\\/$]*) false;;
8148 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8149 esac ||
8150 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8151 esac
8152 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8153 as_fn_append ac_file_inputs " '$ac_f'"
8154 done
8156 # Let's still pretend it is `configure' which instantiates (i.e., don't
8157 # use $as_me), people would be surprised to read:
8158 # /* config.h. Generated by config.status. */
8159 configure_input='Generated from '`
8160 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8161 `' by configure.'
8162 if test x"$ac_file" != x-; then
8163 configure_input="$ac_file. $configure_input"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8165 $as_echo "$as_me: creating $ac_file" >&6;}
8167 # Neutralize special characters interpreted by sed in replacement strings.
8168 case $configure_input in #(
8169 *\&* | *\|* | *\\* )
8170 ac_sed_conf_input=`$as_echo "$configure_input" |
8171 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8172 *) ac_sed_conf_input=$configure_input;;
8173 esac
8175 case $ac_tag in
8176 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8178 esac
8180 esac
8182 ac_dir=`$as_dirname -- "$ac_file" ||
8183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8184 X"$ac_file" : 'X\(//\)[^/]' \| \
8185 X"$ac_file" : 'X\(//\)$' \| \
8186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8187 $as_echo X"$ac_file" |
8188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8189 s//\1/
8192 /^X\(\/\/\)[^/].*/{
8193 s//\1/
8196 /^X\(\/\/\)$/{
8197 s//\1/
8200 /^X\(\/\).*/{
8201 s//\1/
8204 s/.*/./; q'`
8205 as_dir="$ac_dir"; as_fn_mkdir_p
8206 ac_builddir=.
8208 case "$ac_dir" in
8209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8212 # A ".." for each directory in $ac_dir_suffix.
8213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8214 case $ac_top_builddir_sub in
8215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8217 esac ;;
8218 esac
8219 ac_abs_top_builddir=$ac_pwd
8220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8221 # for backward compatibility:
8222 ac_top_builddir=$ac_top_build_prefix
8224 case $srcdir in
8225 .) # We are building in place.
8226 ac_srcdir=.
8227 ac_top_srcdir=$ac_top_builddir_sub
8228 ac_abs_top_srcdir=$ac_pwd ;;
8229 [\\/]* | ?:[\\/]* ) # Absolute name.
8230 ac_srcdir=$srcdir$ac_dir_suffix;
8231 ac_top_srcdir=$srcdir
8232 ac_abs_top_srcdir=$srcdir ;;
8233 *) # Relative name.
8234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8235 ac_top_srcdir=$ac_top_build_prefix$srcdir
8236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8237 esac
8238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8241 case $ac_mode in
8244 # CONFIG_FILE
8247 _ACEOF
8249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8250 # If the template does not know about datarootdir, expand it.
8251 # FIXME: This hack should be removed a few years after 2.60.
8252 ac_datarootdir_hack=; ac_datarootdir_seen=
8253 ac_sed_dataroot='
8254 /datarootdir/ {
8258 /@datadir@/p
8259 /@docdir@/p
8260 /@infodir@/p
8261 /@localedir@/p
8262 /@mandir@/p'
8263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8264 *datarootdir*) ac_datarootdir_seen=yes;;
8265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8268 _ACEOF
8269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8270 ac_datarootdir_hack='
8271 s&@datadir@&$datadir&g
8272 s&@docdir@&$docdir&g
8273 s&@infodir@&$infodir&g
8274 s&@localedir@&$localedir&g
8275 s&@mandir@&$mandir&g
8276 s&\\\${datarootdir}&$datarootdir&g' ;;
8277 esac
8278 _ACEOF
8280 # Neutralize VPATH when `$srcdir' = `.'.
8281 # Shell code in configure.ac might set extrasub.
8282 # FIXME: do we really want to maintain this feature?
8283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8284 ac_sed_extra="$ac_vpsub
8285 $extrasub
8286 _ACEOF
8287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8290 s|@configure_input@|$ac_sed_conf_input|;t t
8291 s&@top_builddir@&$ac_top_builddir_sub&;t t
8292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8293 s&@srcdir@&$ac_srcdir&;t t
8294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8295 s&@top_srcdir@&$ac_top_srcdir&;t t
8296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8297 s&@builddir@&$ac_builddir&;t t
8298 s&@abs_builddir@&$ac_abs_builddir&;t t
8299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8300 $ac_datarootdir_hack
8302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8303 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8306 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8308 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8310 which seems to be undefined. Please make sure it is defined" >&5
8311 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8312 which seems to be undefined. Please make sure it is defined" >&2;}
8314 rm -f "$ac_tmp/stdin"
8315 case $ac_file in
8316 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8317 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8318 esac \
8319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8323 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8324 $as_echo "$as_me: executing $ac_file commands" >&6;}
8326 esac
8329 case $ac_file$ac_mode in
8330 "$config_file":C) echo "$config_appended_defs" >> "$config_file" ;;
8332 esac
8333 done # for ac_tag
8336 as_fn_exit 0
8337 _ACEOF
8338 ac_clean_files=$ac_clean_files_save
8340 test $ac_write_fail = 0 ||
8341 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8344 # configure is writing to config.log, and then calls config.status.
8345 # config.status does its own redirection, appending to config.log.
8346 # Unfortunately, on DOS this fails, as config.log is still kept open
8347 # by configure, so config.status won't be able to write to it; its
8348 # output is simply discarded. So we exec the FD to /dev/null,
8349 # effectively closing config.log, so it can be properly (re)opened and
8350 # appended to by config.status. When coming back to configure, we
8351 # need to make the FD available again.
8352 if test "$no_create" != yes; then
8353 ac_cs_success=:
8354 ac_config_status_args=
8355 test "$silent" = yes &&
8356 ac_config_status_args="$ac_config_status_args --quiet"
8357 exec 5>/dev/null
8358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8359 exec 5>>config.log
8360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8361 # would make configure fail if this is the last instruction.
8362 $ac_cs_success || as_fn_exit 1
8364 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8366 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}