2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for git 2.0.1.
5 # Report bugs to <git@vger.kernel.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: git@vger.kernel.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
562 PACKAGE_TARNAME='git'
563 PACKAGE_VERSION='2.0.1'
564 PACKAGE_STRING='git 2.0.1'
565 PACKAGE_BUGREPORT='git@vger.kernel.org'
568 ac_unique_file="git.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='LTLIBOBJS
650 program_transform_name
663 enable_option_checking
684 ac_precious_vars='build_alias
695 # Initialize some variables set by options.
697 ac_init_version=false
698 ac_unrecognized_opts=
700 # The variables have the same names as the options, with
701 # dashes changed to underlines.
709 program_transform_name=s,x,x,
717 # Installation directory options.
718 # These are left unexpanded so users can "make install exec_prefix=/foo"
719 # and all the variables that are supposed to be based on exec_prefix
720 # by default will actually change.
721 # Use braces instead of parens because sh, perl, etc. also accept them.
722 # (The list follows the same order as the GNU Coding Standards.)
723 bindir='${exec_prefix}/bin'
724 sbindir='${exec_prefix}/sbin'
725 libexecdir='${exec_prefix}/libexec'
726 datarootdir='${prefix}/share'
727 datadir='${datarootdir}'
728 sysconfdir='${prefix}/etc'
729 sharedstatedir='${prefix}/com'
730 localstatedir='${prefix}/var'
731 includedir='${prefix}/include'
732 oldincludedir='/usr/include'
733 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
734 infodir='${datarootdir}/info'
739 libdir='${exec_prefix}/lib'
740 localedir='${datarootdir}/locale'
741 mandir='${datarootdir}/man'
747 # If the previous option needs an argument, assign it.
748 if test -n "$ac_prev"; then
749 eval $ac_prev=\$ac_option
755 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 # Accept the important Cygnus configure options, so we can diagnose typos.
762 case $ac_dashdash$ac_option in
766 -bindir | --bindir | --bindi | --bind | --bin | --bi)
768 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771 -build | --build | --buil | --bui | --bu)
772 ac_prev=build_alias ;;
773 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
774 build_alias=$ac_optarg ;;
776 -cache-file | --cache-file | --cache-fil | --cache-fi \
777 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
778 ac_prev=cache_file ;;
779 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
780 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
781 cache_file=$ac_optarg ;;
784 cache_file=config.cache ;;
786 -datadir | --datadir | --datadi | --datad)
788 -datadir=* | --datadir=* | --datadi=* | --datad=*)
789 datadir=$ac_optarg ;;
791 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
792 | --dataroo | --dataro | --datar)
793 ac_prev=datarootdir ;;
794 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
795 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
796 datarootdir=$ac_optarg ;;
798 -disable-* | --disable-*)
799 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
802 as_fn_error $? "invalid feature name: $ac_useropt"
803 ac_useropt_orig=$ac_useropt
804 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
805 case $ac_user_opts in
809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
810 ac_unrecognized_sep=', ';;
812 eval enable_$ac_useropt=no ;;
814 -docdir | --docdir | --docdi | --doc | --do)
816 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
819 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
821 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
824 -enable-* | --enable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error $? "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
838 eval enable_$ac_useropt=\$ac_optarg ;;
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
847 exec_prefix=$ac_optarg ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
853 -help | --help | --hel | --he | -h)
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 htmldir=$ac_optarg ;;
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
876 includedir=$ac_optarg ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
893 libexecdir=$ac_optarg ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 # Obsolete; use --without-fp.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931 oldincludedir=$ac_optarg ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943 program_prefix=$ac_optarg ;;
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950 program_suffix=$ac_optarg ;;
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
967 program_transform_name=$ac_optarg ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 -psdir | --psdir | --psdi | --psd | --ps)
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1002 -site=* | --site=* | --sit=*)
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1029 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid package name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1042 eval with_$ac_useropt=\$ac_optarg ;;
1044 -without-* | --without-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid package name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval with_$ac_useropt=no ;;
1061 # Obsolete; use --with-x.
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1079 Try \`$0 --help' for more information"
1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
1085 case $ac_envvar in #(
1086 '' | [0-9]* | *[!_$as_cr_alnum]* )
1087 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 as_fn_error $? "missing argument to $ac_option"
1108 if test -n "$ac_unrecognized_opts"; then
1109 case $enable_option_checking in
1111 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1112 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116 # Check all directory arguments for consistency.
1117 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118 datadir sysconfdir sharedstatedir localstatedir includedir \
1119 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120 libdir localedir mandir
1122 eval ac_val=\$$ac_var
1123 # Remove trailing slashes.
1126 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127 eval $ac_var=\$ac_val;;
1129 # Be sure to have absolute directory names.
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1137 # There might be people who depend on the old broken behavior: `$host'
1138 # used to hold the argument of --host etc.
1139 # FIXME: To remove some day.
1142 target=$target_alias
1144 # FIXME: To remove some day.
1145 if test "x$host_alias" != x; then
1146 if test "x$build_alias" = x; then
1147 cross_compiling=maybe
1148 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1149 If a cross compiler is detected then cross compile mode will be used" >&2
1150 elif test "x$build_alias" != "x$host_alias"; then
1156 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1158 test "$silent" = yes && exec 6>/dev/null
1161 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162 ac_ls_di=`ls -di .` &&
1163 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164 as_fn_error $? "working directory cannot be determined"
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 as_fn_error $? "pwd does not report name of working directory"
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$as_myself" ||
1174 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$as_myself" : 'X\(//\)[^/]' \| \
1176 X"$as_myself" : 'X\(//\)$' \| \
1177 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1178 $as_echo X"$as_myself" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1201 ac_srcdir_defaulted=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1211 # When building in place, set srcdir=.
1212 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 # Remove unnecessary trailing slashes from srcdir.
1216 # Double slashes in file names in object file debugging info
1217 # mess up M-x gdb in Emacs.
1219 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 # Report the --help message.
1231 if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1235 \`configure' configures git 2.0.1 to adapt to many kinds of systems.
1237 Usage: $0 [OPTION]... [VAR=VALUE]...
1239 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240 VAR=VALUE. See below for descriptions of some of the useful variables.
1242 Defaults for the options are specified in brackets.
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking ...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255 Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
1257 [$ac_default_prefix]
1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 By default, \`make install' will install all the files in
1262 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264 for instance \`--prefix=\$HOME'.
1266 For better control, use the options below.
1268 Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/git]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
1294 if test -n "$ac_init_help"; then
1295 case $ac_init_help in
1296 short | recursive ) echo "Configuration of git 2.0.1:";;
1301 --disable-option-checking ignore unrecognized --enable/--with options
1302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1304 --enable-pthreads=FLAGS FLAGS is the value to pass to the compiler to enable
1305 POSIX Threads. The default if FLAGS is not specified
1306 is to try first -pthread and then -lpthread.
1307 --disable-pthreads will disable threading.
1308 --enable-jsmin=PATH PATH is the name of a JavaScript minifier or the
1309 absolute path to one.
1310 --enable-cssmin=PATH PATH is the name of a CSS minifier or the absolute
1314 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1315 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1316 --with-sane-tool-path=DIR-1[:DIR-2...:DIR-n]
1317 Directories to prepend to PATH in build system and
1319 --with-lib=ARG ARG specifies alternative name for lib directory
1320 --with-openssl use OpenSSL library (default is YES)
1321 ARG can be prefix for openssl library and headers
1322 --with-libpcre support Perl-compatible regexes (default is NO)
1323 ARG can be also prefix for libpcre library and
1325 --with-curl support http(s):// transports (default is YES)
1326 ARG can be also prefix for curl library and headers
1327 --with-expat support git-push using http:// and https://
1328 transports via WebDAV (default is YES)
1329 ARG can be also prefix for expat library and headers
1330 --without-iconv if your architecture doesn't properly support iconv
1331 --with-iconv=PATH PATH is prefix for libiconv library and headers
1332 used only if you need linking with libiconv
1333 --with-gitconfig=VALUE Use VALUE instead of /etc/gitconfig as the global
1334 git configuration file. If VALUE is not fully
1335 qualified it will be interpreted as a path relative
1336 to the computed prefix at runtime.
1337 --with-gitattributes=VALUE
1338 Use VALUE instead of /etc/gitattributes as the
1339 global git attributes file. If VALUE is not fully
1340 qualified it will be interpreted as a path relative
1341 to the computed prefix at runtime.
1342 --with-pager=VALUE Use VALUE as the fall-back pager instead of 'less'.
1343 This is used by things like 'git log' when the user
1344 does not specify a pager to use through alternate
1345 methods. eg: /usr/bin/pager
1346 --with-editor=VALUE Use VALUE as the fall-back editor instead of 'vi'.
1347 This is used by things like 'git commit' when the
1348 user does not specify a preferred editor through
1349 other methods. eg: /usr/bin/editor
1350 --with-shell=PATH provide PATH to shell
1351 --with-perl=PATH provide PATH to perl
1352 --with-python=PATH provide PATH to python
1353 --with-zlib=PATH provide PATH to zlib
1354 --with-tcltk use Tcl/Tk GUI (default is YES)
1355 ARG is the full path to the Tcl/Tk interpreter.
1356 Bare --with-tcltk will make the GUI part only if
1357 Tcl/Tk interpreter will be found in a system.
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1369 Use these variables to override the choices made by `configure' or to help
1370 it to find libraries and programs with nonstandard names/locations.
1372 Report bugs to <git@vger.kernel.org>.
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380 test -d "$ac_dir" ||
1381 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1436 generated by GNU Autoconf 2.68
1438 Copyright (C) 2010 Free Software Foundation, Inc.
1439 This configure script is free software; the Free Software Foundation
1440 gives unlimited permission to copy, distribute and modify it.
1445 ## ------------------------ ##
1446 ## Autoconf initialization. ##
1447 ## ------------------------ ##
1449 # ac_fn_c_try_compile LINENO
1450 # --------------------------
1451 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1452 ac_fn_c_try_compile ()
1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455 rm -f conftest.$ac_objext
1456 if { { ac_try="$ac_compile"
1458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1459 *) ac_try_echo=$ac_try;;
1461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1462 $as_echo "$ac_try_echo"; } >&5
1463 (eval "$ac_compile") 2>conftest.err
1465 if test -s conftest.err; then
1466 grep -v '^ *+' conftest.err >conftest.er1
1467 cat conftest.er1 >&5
1468 mv -f conftest.er1 conftest.err
1470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471 test $ac_status = 0; } && {
1472 test -z "$ac_c_werror_flag" ||
1473 test ! -s conftest.err
1474 } && test -s conftest.$ac_objext; then :
1477 $as_echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1483 as_fn_set_status $ac_retval
1485 } # ac_fn_c_try_compile
1487 # ac_fn_c_try_link LINENO
1488 # -----------------------
1489 # Try to link conftest.$ac_ext, and return whether this succeeded.
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 rm -f conftest.$ac_objext conftest$ac_exeext
1494 if { { ac_try="$ac_link"
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_link") 2>conftest.err
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } && {
1510 test -z "$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 } && test -s conftest$ac_exeext && {
1513 test "$cross_compiling" = yes ||
1514 $as_test_x conftest$ac_exeext
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1524 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1525 # interfere with the next link command; also delete a directory that is
1526 # left behind by Apple's compiler. We do this before executing the actions.
1527 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1531 } # ac_fn_c_try_link
1533 # ac_fn_c_check_func LINENO FUNC VAR
1534 # ----------------------------------
1535 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1536 ac_fn_c_check_func ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1540 $as_echo_n "checking for $2... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1546 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1548 #define $2 innocuous_$2
1550 /* System header to define __stub macros and hopefully few prototypes,
1551 which can conflict with char $2 (); below.
1552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1553 <limits.h> exists even on freestanding compilers. */
1556 # include <limits.h>
1558 # include <assert.h>
1563 /* Override any GCC internal prototype to avoid an error.
1564 Use char because int might match the return type of a GCC
1565 builtin and then its argument prototype would still apply. */
1570 /* The GNU C library defines this for functions which it implements
1571 to always fail with ENOSYS. Some functions are actually named
1572 something starting with __ and the normal name is an alias. */
1573 #if defined __stub_$2 || defined __stub___$2
1585 if ac_fn_c_try_link "$LINENO"; then :
1590 rm -f core conftest.err conftest.$ac_objext \
1591 conftest$ac_exeext conftest.$ac_ext
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 } # ac_fn_c_check_func
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1637 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1640 # the include files in INCLUDES and setting the cache variable VAR
1642 ac_fn_c_check_header_mongrel ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if eval \${$3+:} false; then :
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
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1655 # Is the header compilable?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1657 $as_echo_n "checking $2 usability... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664 ac_header_compiler=yes
1666 ac_header_compiler=no
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1670 $as_echo "$ac_header_compiler" >&6; }
1672 # Is the header present?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1674 $as_echo_n "checking $2 presence... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1679 if ac_fn_c_try_cpp "$LINENO"; then :
1680 ac_header_preproc=yes
1682 ac_header_preproc=no
1684 rm -f conftest.err conftest.i conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1686 $as_echo "$ac_header_preproc" >&6; }
1688 # So? What about this header?
1689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1692 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1698 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1700 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1702 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1704 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707 ( $as_echo "## ---------------------------------- ##
1708 ## Report this to git@vger.kernel.org ##
1709 ## ---------------------------------- ##"
1710 ) | sed "s/^/$as_me: WARNING: /" >&2
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1718 eval "$3=\$ac_header_compiler"
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 } # ac_fn_c_check_header_mongrel
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=$ac_status
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1770 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists and can be compiled using the include files in
1773 # INCLUDES, setting the cache variable VAR accordingly.
1774 ac_fn_c_check_header_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1787 if ac_fn_c_try_compile "$LINENO"; then :
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_header_compile
1801 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1802 # -------------------------------------------
1803 # Tests whether TYPE exists after having included INCLUDES, setting cache
1804 # variable VAR accordingly.
1805 ac_fn_c_check_type ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1839 if ac_fn_c_try_compile "$LINENO"; then :
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 } # ac_fn_c_check_type
1855 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1856 # ----------------------------------------------------
1857 # Tries to find if the field MEMBER exists in type AGGR, after including
1858 # INCLUDES, setting cache variable VAR accordingly.
1859 ac_fn_c_check_member ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1863 $as_echo_n "checking for $2.$3... " >&6; }
1864 if eval \${$4+:} false; then :
1865 $as_echo_n "(cached) " >&6
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1890 if (sizeof ac_aggr.$3)
1896 if ac_fn_c_try_compile "$LINENO"; then :
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_member
1911 cat >config.log <<_ACEOF
1912 This file contains any messages produced by compilers while
1913 running configure, to aid debugging if configure makes a mistake.
1915 It was created by git $as_me 2.0.1, which was
1916 generated by GNU Autoconf 2.68. Invocation command line was
1928 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1929 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1930 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1931 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1932 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1935 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1937 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1938 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1939 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1940 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1941 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1942 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1943 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 $as_echo "PATH: $as_dir"
1968 # Keep a trace of the command line.
1969 # Strip out --no-create and --no-recursion so they do not pile up.
1970 # Strip out --silent because we don't want to record it for future runs.
1971 # Also quote any args containing shell meta-characters.
1972 # Make two passes to allow for proper duplicate-argument suppression.
1976 ac_must_keep_next=false
1982 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1984 | -silent | --silent | --silen | --sile | --sil)
1987 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992 as_fn_append ac_configure_args1 " '$ac_arg'"
1993 if test $ac_must_keep_next = true; then
1994 ac_must_keep_next=false # Got value, back to normal.
1997 *=* | --config-cache | -C | -disable-* | --disable-* \
1998 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1999 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2000 | -with-* | --with-* | -without-* | --without-* | --x)
2001 case "$ac_configure_args0 " in
2002 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2005 -* ) ac_must_keep_next=true ;;
2008 as_fn_append ac_configure_args " '$ac_arg'"
2013 { ac_configure_args0=; unset ac_configure_args0;}
2014 { ac_configure_args1=; unset ac_configure_args1;}
2016 # When interrupted or exit'd, cleanup temporary files, and complete
2017 # config.log. We remove comments because anyway the quotes in there
2018 # would cause problems or look ugly.
2019 # WARNING: Use '\'' to represent an apostrophe within the trap.
2020 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2021 trap 'exit_status=$?
2022 # Save into config.log some information that might help in debugging.
2026 $as_echo "## ---------------- ##
2027 ## Cache variables. ##
2028 ## ---------------- ##"
2030 # The following way of writing the cache mishandles newlines in values,
2032 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2033 eval ac_val=\$$ac_var
2037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2041 _ | IFS | as_nl) ;; #(
2042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043 *) { eval $ac_var=; unset $ac_var;} ;;
2048 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049 *${as_nl}ac_space=\ *)
2051 "s/'\''/'\''\\\\'\'''\''/g;
2052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062 $as_echo "## ----------------- ##
2063 ## Output variables. ##
2064 ## ----------------- ##"
2066 for ac_var in $ac_subst_vars
2068 eval ac_val=\$$ac_var
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 $as_echo "$ac_var='\''$ac_val'\''"
2076 if test -n "$ac_subst_files"; then
2077 $as_echo "## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##"
2081 for ac_var in $ac_subst_files
2083 eval ac_val=\$$ac_var
2085 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 $as_echo "$ac_var='\''$ac_val'\''"
2092 if test -s confdefs.h; then
2093 $as_echo "## ----------- ##
2100 test "$ac_signal" != 0 &&
2101 $as_echo "$as_me: caught signal $ac_signal"
2102 $as_echo "$as_me: exit $exit_status"
2104 rm -f core *.core core.conftest.* &&
2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2108 for ac_signal in 1 2 13 15; do
2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2114 rm -f -r conftest* confdefs.h
2116 $as_echo "/* confdefs.h */" > confdefs.h
2118 # Predefined preprocessor variables.
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_NAME "$PACKAGE_NAME"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_STRING "$PACKAGE_STRING"
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_URL "$PACKAGE_URL"
2145 # Let the site file select an alternate cache file if it wants to.
2146 # Prefer an explicitly selected file to automatically selected ones.
2149 if test -n "$CONFIG_SITE"; then
2150 # We do not want a PATH search for config.site.
2151 case $CONFIG_SITE in #((
2152 -*) ac_site_file1=./$CONFIG_SITE;;
2153 */*) ac_site_file1=$CONFIG_SITE;;
2154 *) ac_site_file1=./$CONFIG_SITE;;
2156 elif test "x$prefix" != xNONE; then
2157 ac_site_file1=$prefix/share/config.site
2158 ac_site_file2=$prefix/etc/config.site
2160 ac_site_file1=$ac_default_prefix/share/config.site
2161 ac_site_file2=$ac_default_prefix/etc/config.site
2163 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2165 test "x$ac_site_file" = xNONE && continue
2166 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2169 sed 's/^/| /' "$ac_site_file" >&5
2171 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 as_fn_error $? "failed to load site script $ac_site_file
2174 See \`config.log' for more details" "$LINENO" 5; }
2178 if test -r "$cache_file"; then
2179 # Some versions of bash will fail to source /dev/null (special files
2180 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2181 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2195 # Check that the precious variables saved in the cache have kept the same
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
2203 case $ac_old_set,$ac_new_set in
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2241 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 if $ac_cache_corrupted; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 config_file=config.mak.autogen
2267 config_in=config.mak.in
2269 config_appended_defs=; newline='
2271 ac_config_commands="$ac_config_commands $config_file"
2274 config_appended_defs="$config_appended_defs${newline}AUTOCONFIGURED=YesPlease"
2276 # Directories holding "saner" versions of common or POSIX binaries.
2278 # Check whether --with-sane-tool-path was given.
2279 if test "${with_sane_tool_path+set}" = set; then :
2280 withval=$with_sane_tool_path; if test "$withval" = "no"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SANE_TOOL_PATH to '$withval'" >&5
2284 $as_echo "$as_me: Setting SANE_TOOL_PATH to '$withval'" >&6;}
2287 config_appended_defs="$config_appended_defs${newline}SANE_TOOL_PATH=$withval"
2289 # If the "--with-sane-tool-path" option was not given, don't touch
2290 # SANE_TOOL_PATH here, but let defaults in Makefile take care of it.
2291 # This should minimize spurious differences in the behaviour of the
2292 # Git build system when configure is used w.r.t. when it is not.
2297 ## Site configuration related to programs (before tests)
2298 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2300 # Set lib to alternative name of lib directory (e.g. lib64)
2302 # Check whether --with-lib was given.
2303 if test "${with_lib+set}" = set; then :
2304 withval=$with_lib; if test "$withval" = "no" || test "$withval" = "yes"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide name for --with-lib=ARG" >&5
2306 $as_echo "$as_me: WARNING: You should provide name for --with-lib=ARG" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to '$lib'" >&5
2310 $as_echo "$as_me: Setting lib to '$lib'" >&6;}
2312 config_appended_defs="$config_appended_defs${newline}lib=${lib}"
2317 if test -z "$lib"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to 'lib' (the default)" >&5
2319 $as_echo "$as_me: Setting lib to 'lib' (the default)" >&6;}
2323 # Check whether --enable-pthreads was given.
2324 if test "${enable_pthreads+set}" = set; then :
2325 enableval=$enable_pthreads;
2326 if test "x$enableval" = "xyes"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads" >&5
2328 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads" >&6;}
2329 elif test "x$enableval" != "xno"; then
2330 PTHREAD_CFLAGS=$enableval
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&5
2332 $as_echo "$as_me: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&6;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: POSIX Threads will be disabled." >&5
2335 $as_echo "$as_me: POSIX Threads will be disabled." >&6;}
2336 NO_PTHREADS=YesPlease
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads." >&5
2342 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads." >&6;}
2347 # Define option to enable JavaScript minification
2348 # Check whether --enable-jsmin was given.
2349 if test "${enable_jsmin+set}" = set; then :
2350 enableval=$enable_jsmin;
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&5
2353 $as_echo "$as_me: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&6;}
2355 config_appended_defs="$config_appended_defs${newline}JSMIN=${JSMIN}"
2360 # Define option to enable CSS minification
2361 # Check whether --enable-cssmin was given.
2362 if test "${enable_cssmin+set}" = set; then :
2363 enableval=$enable_cssmin;
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&5
2366 $as_echo "$as_me: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&6;}
2368 config_appended_defs="$config_appended_defs${newline}CSSMIN=${CSSMIN}"
2373 ## Site configuration (override autodetection)
2374 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for site configuration" >&5
2376 $as_echo "$as_me: CHECKS for site configuration" >&6;}
2378 # Define NO_SVN_TESTS if you want to skip time-consuming SVN interoperability
2379 # tests. These tests take up a significant amount of the total test time
2380 # but are not needed unless you plan to talk to SVN repos.
2382 # Define PPC_SHA1 environment variable when running make to make use of
2383 # a bundled SHA1 routine optimized for PowerPC.
2385 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
2386 # This also implies BLK_SHA1.
2388 # Define OPENSSLDIR=/foo/bar if your openssl header and library files are in
2389 # /foo/bar/include and /foo/bar/lib directories.
2391 # Check whether --with-openssl was given.
2392 if test "${with_openssl+set}" = set; then :
2393 withval=$with_openssl; if test "$withval" = "no"; then
2394 NO_OPENSSL=YesPlease
2395 elif test "$withval" = "yes"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting OPENSSLDIR to $withval" >&5
2401 $as_echo "$as_me: Setting OPENSSLDIR to $withval" >&6;}
2403 config_appended_defs="$config_appended_defs${newline}OPENSSLDIR=$withval"
2409 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
2410 # able to use Perl-compatible regular expressions.
2412 # Define LIBPCREDIR=/foo/bar if your libpcre header and library files are in
2413 # /foo/bar/include and /foo/bar/lib directories.
2416 # Check whether --with-libpcre was given.
2417 if test "${with_libpcre+set}" = set; then :
2418 withval=$with_libpcre; if test "$withval" = "no"; then
2420 elif test "$withval" = "yes"; then
2421 USE_LIBPCRE=YesPlease
2423 USE_LIBPCRE=YesPlease
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting LIBPCREDIR to $LIBPCREDIR" >&5
2426 $as_echo "$as_me: Setting LIBPCREDIR to $LIBPCREDIR" >&6;}
2428 config_appended_defs="$config_appended_defs${newline}LIBPCREDIR=${LIBPCREDIR}"
2433 # Define NO_CURL if you do not have curl installed. git-http-pull and
2434 # git-http-push are not built, and you cannot use http:// and https://
2437 # Define CURLDIR=/foo/bar if your curl header and library files are in
2438 # /foo/bar/include and /foo/bar/lib directories.
2440 # Check whether --with-curl was given.
2441 if test "${with_curl+set}" = set; then :
2442 withval=$with_curl; if test "$withval" = "no"; then
2444 elif test "$withval" = "yes"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CURLDIR to $withval" >&5
2450 $as_echo "$as_me: Setting CURLDIR to $withval" >&6;}
2452 config_appended_defs="$config_appended_defs${newline}CURLDIR=$withval"
2458 # Define NO_EXPAT if you do not have expat installed. git-http-push is
2459 # not built, and you cannot push using http:// and https:// transports.
2461 # Define EXPATDIR=/foo/bar if your expat header and library files are in
2462 # /foo/bar/include and /foo/bar/lib directories.
2464 # Check whether --with-expat was given.
2465 if test "${with_expat+set}" = set; then :
2466 withval=$with_expat; if test "$withval" = "no"; then
2468 elif test "$withval" = "yes"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting EXPATDIR to $withval" >&5
2474 $as_echo "$as_me: Setting EXPATDIR to $withval" >&6;}
2476 config_appended_defs="$config_appended_defs${newline}EXPATDIR=$withval"
2482 # Define NO_FINK if you are building on Darwin/Mac OS X, have Fink
2483 # installed in /sw, but don't want GIT to link against any libraries
2484 # installed there. If defined you may specify your own (or Fink's)
2485 # include directories and library directories by defining CFLAGS
2486 # and LDFLAGS appropriately.
2488 # Define NO_DARWIN_PORTS if you are building on Darwin/Mac OS X,
2489 # have DarwinPorts installed in /opt/local, but don't want GIT to
2490 # link against any libraries installed there. If defined you may
2491 # specify your own (or DarwinPort's) include directories and
2492 # library directories by defining CFLAGS and LDFLAGS appropriately.
2494 # Define NO_MMAP if you want to avoid mmap.
2496 # Define NO_ICONV if your libc does not properly support iconv.
2498 # Check whether --with-iconv was given.
2499 if test "${with_iconv+set}" = set; then :
2500 withval=$with_iconv; if test "$withval" = "no"; then
2502 elif test "$withval" = "yes"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ICONVDIR to $withval" >&5
2508 $as_echo "$as_me: Setting ICONVDIR to $withval" >&6;}
2510 config_appended_defs="$config_appended_defs${newline}ICONVDIR=$withval"
2516 ## --enable-FEATURE[=ARG] and --disable-FEATURE
2518 # Define USE_NSEC below if you want git to care about sub-second file mtimes
2519 # and ctimes. Note that you need recent glibc (at least 2.2.4) for this, and
2520 # it will BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely
2521 # randomly break unless your underlying filesystem supports those sub-second
2522 # times (my ext3 doesn't).
2524 # Define USE_STDEV below if you want git to care about the underlying device
2525 # change being considered an inode change from the update-index perspective.
2528 # Allow user to set ETC_GITCONFIG variable
2530 # Check whether --with-gitconfig was given.
2531 if test "${with_gitconfig+set}" = set; then :
2532 withval=$with_gitconfig; if test -n "$withval"; then
2533 if test "$withval" = "yes" -o "$withval" = "no"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2535 a value for gitconfig (ETC_GITCONFIG). Maybe you do...?" >&5
2536 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2537 a value for gitconfig (ETC_GITCONFIG). Maybe you do...?" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITCONFIG to $withval" >&5
2540 $as_echo "$as_me: Setting ETC_GITCONFIG to $withval" >&6;}
2542 config_appended_defs="$config_appended_defs${newline}ETC_GITCONFIG=$withval"
2548 # Allow user to set ETC_GITATTRIBUTES variable
2550 # Check whether --with-gitattributes was given.
2551 if test "${with_gitattributes+set}" = set; then :
2552 withval=$with_gitattributes; if test -n "$withval"; then
2553 if test "$withval" = "yes" -o "$withval" = "no"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2555 a value for gitattributes (ETC_GITATTRIBUTES). Maybe you do...?" >&5
2556 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2557 a value for gitattributes (ETC_GITATTRIBUTES). Maybe you do...?" >&2;}
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITATTRIBUTES to $withval" >&5
2560 $as_echo "$as_me: Setting ETC_GITATTRIBUTES to $withval" >&6;}
2562 config_appended_defs="$config_appended_defs${newline}ETC_GITATTRIBUTES=$withval"
2568 # Allow user to set the default pager
2570 # Check whether --with-pager was given.
2571 if test "${with_pager+set}" = set; then :
2572 withval=$with_pager; if test -n "$withval"; then
2573 if test "$withval" = "yes" -o "$withval" = "no"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2575 a value for pager (DEFAULT_PAGER). Maybe you do...?" >&5
2576 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2577 a value for pager (DEFAULT_PAGER). Maybe you do...?" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_PAGER to $withval" >&5
2580 $as_echo "$as_me: Setting DEFAULT_PAGER to $withval" >&6;}
2582 config_appended_defs="$config_appended_defs${newline}DEFAULT_PAGER=$withval"
2587 # Allow user to set the default editor
2589 # Check whether --with-editor was given.
2590 if test "${with_editor+set}" = set; then :
2591 withval=$with_editor; if test -n "$withval"; then
2592 if test "$withval" = "yes" -o "$withval" = "no"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2594 a value for editor (DEFAULT_EDITOR). Maybe you do...?" >&5
2595 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2596 a value for editor (DEFAULT_EDITOR). Maybe you do...?" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_EDITOR to $withval" >&5
2599 $as_echo "$as_me: Setting DEFAULT_EDITOR to $withval" >&6;}
2601 config_appended_defs="$config_appended_defs${newline}DEFAULT_EDITOR=$withval"
2607 # Define SHELL_PATH to provide path to shell.
2609 # Check whether --with-shell was given.
2610 if test "${with_shell+set}" = set; then :
2611 withval=$with_shell; if test "$withval" = "no"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of SHELL" >&5
2615 $as_echo "$as_me: Disabling use of SHELL" >&6;}
2617 config_appended_defs="$config_appended_defs${newline}NO_SHELL=YesPlease"
2619 config_appended_defs="$config_appended_defs${newline}SHELL_PATH="
2621 as_fn_error $? "You cannot use git without shell" "$LINENO" 5
2624 if test "$withval" = "yes"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-shell=PATH" >&5
2626 $as_echo "$as_me: WARNING: You should provide path for --with-shell=PATH" >&2;}
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SHELL_PATH to $withval" >&5
2630 $as_echo "$as_me: Setting SHELL_PATH to $withval" >&6;}
2632 config_appended_defs="$config_appended_defs${newline}SHELL_PATH=$withval"
2639 # Define PERL_PATH to provide path to Perl.
2641 # Check whether --with-perl was given.
2642 if test "${with_perl+set}" = set; then :
2643 withval=$with_perl; if test "$withval" = "no"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of PERL" >&5
2647 $as_echo "$as_me: Disabling use of PERL" >&6;}
2649 config_appended_defs="$config_appended_defs${newline}NO_PERL=YesPlease"
2651 config_appended_defs="$config_appended_defs${newline}PERL_PATH="
2653 as_fn_error $? "You cannot use git without perl" "$LINENO" 5
2656 if test "$withval" = "yes"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-perl=PATH" >&5
2658 $as_echo "$as_me: WARNING: You should provide path for --with-perl=PATH" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PERL_PATH to $withval" >&5
2662 $as_echo "$as_me: Setting PERL_PATH to $withval" >&6;}
2664 config_appended_defs="$config_appended_defs${newline}PERL_PATH=$withval"
2671 # Define PYTHON_PATH to provide path to Python.
2673 # Check whether --with-python was given.
2674 if test "${with_python+set}" = set; then :
2675 withval=$with_python; if test "$withval" = "no"; then
2676 if test -n "allow-without"; then
2677 PYTHON_PATH=$withval
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of PYTHON" >&5
2679 $as_echo "$as_me: Disabling use of PYTHON" >&6;}
2681 config_appended_defs="$config_appended_defs${newline}NO_PYTHON=YesPlease"
2683 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH="
2685 as_fn_error $? "You cannot use git without python" "$LINENO" 5
2688 if test "$withval" = "yes"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-python=PATH" >&5
2690 $as_echo "$as_me: WARNING: You should provide path for --with-python=PATH" >&2;}
2692 PYTHON_PATH=$withval
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PYTHON_PATH to $withval" >&5
2694 $as_echo "$as_me: Setting PYTHON_PATH to $withval" >&6;}
2696 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH=$withval"
2703 # Define ZLIB_PATH to provide path to zlib.
2705 # Check whether --with-zlib was given.
2706 if test "${with_zlib+set}" = set; then :
2707 withval=$with_zlib; if test "$withval" = "no"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ZLIB" >&5
2711 $as_echo "$as_me: Disabling use of ZLIB" >&6;}
2713 config_appended_defs="$config_appended_defs${newline}NO_ZLIB=YesPlease"
2715 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH="
2717 as_fn_error $? "You cannot use git without zlib" "$LINENO" 5
2720 if test "$withval" = "yes"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-zlib=PATH" >&5
2722 $as_echo "$as_me: WARNING: You should provide path for --with-zlib=PATH" >&2;}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ZLIB_PATH to $withval" >&5
2726 $as_echo "$as_me: Setting ZLIB_PATH to $withval" >&6;}
2728 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH=$withval"
2735 # Declare the with-tcltk/without-tcltk options.
2737 # Check whether --with-tcltk was given.
2738 if test "${with_tcltk+set}" = set; then :
2739 withval=$with_tcltk; if test "$withval" = "no"; then
2741 elif test "$withval" = "yes"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting TCLTKDIR to $withval" >&5
2747 $as_echo "$as_me: Setting TCLTKDIR to $withval" >&6;}
2749 config_appended_defs="$config_appended_defs${newline}TCLTKDIR=$withval"
2757 ## Checks for programs.
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for programs" >&5
2759 $as_echo "$as_me: CHECKS for programs" >&6;}
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in cc gcc
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$CC" && break
2809 if test -z "$CC"; then
2811 for ac_prog in cc gcc
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$ac_ct_CC" && break
2853 if test "x$ac_ct_CC" = x; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error $? "no acceptable C compiler found in \$PATH
2870 See \`config.log' for more details" "$LINENO" 5; }
2872 # Provide some information about the compiler.
2873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2876 for ac_option in --version -v -V -qversion; do
2877 { { ac_try="$ac_compiler $ac_option >&5"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2886 if test -s conftest.err; then
2888 ... rest of stderr output deleted ...
2889 10q' conftest.err >conftest.er1
2890 cat conftest.er1 >&5
2892 rm -f conftest.er1 conftest.err
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2908 ac_clean_files_save=$ac_clean_files
2909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2914 $as_echo_n "checking whether the C compiler works... " >&6; }
2915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2917 # The possible output files:
2918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2921 for ac_file in $ac_files
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2930 if { { ac_try="$ac_link_default"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_link_default") 2>&5
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }; then :
2941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2944 # so that the user can short-circuit this test for compilers unknown to
2946 for ac_file in $ac_files ''
2948 test -f "$ac_file" || continue
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2953 # We found the default executable, but exeext='' is most
2957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961 # We set ac_cv_exeext here because the later test for it is not
2962 # safe: cross compilers may not add the suffix if given an `-o'
2963 # argument, so we may need to know it at that point already.
2964 # Even if this section looks crufty: it has the advantage of
2971 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976 if test -z "$ac_file"; then :
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 $as_echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 as_fn_error 77 "C compiler cannot create executables
2985 See \`config.log' for more details" "$LINENO" 5; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2991 $as_echo_n "checking for C compiler default output file name... " >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2993 $as_echo "$ac_file" >&6; }
2994 ac_exeext=$ac_cv_exeext
2996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2997 ac_clean_files=$ac_clean_files_save
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2999 $as_echo_n "checking for suffix of executables... " >&6; }
3000 if { { ac_try="$ac_link"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link") 2>&5
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe'), while it won't with
3015 for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details" "$LINENO" 5; }
3030 rm -f conftest conftest$ac_cv_exeext
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3032 $as_echo "$ac_cv_exeext" >&6; }
3034 rm -f conftest.$ac_ext
3035 EXEEXT=$ac_cv_exeext
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3050 ac_clean_files="$ac_clean_files conftest.out"
3051 # Check that the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3054 $as_echo_n "checking whether we are cross compiling... " >&6; }
3055 if test "$cross_compiling" != yes; then
3056 { { ac_try="$ac_link"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }
3067 if { ac_try='./conftest$ac_cv_exeext'
3068 { { case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_try") 2>&5
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; }; then
3080 if test "$cross_compiling" = maybe; then
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $? "cannot run C compiled programs.
3086 If you meant to cross compile, use \`--host'.
3087 See \`config.log' for more details" "$LINENO" 5; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3092 $as_echo "$cross_compiling" >&6; }
3094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3095 ac_clean_files=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3097 $as_echo_n "checking for suffix of object files... " >&6; }
3098 if ${ac_cv_objext+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3112 rm -f conftest.o conftest.obj
3113 if { { ac_try="$ac_compile"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_compile") 2>&5
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details" "$LINENO" 5; }
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3144 $as_echo "$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3149 if ${ac_cv_c_compiler_gnu+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3166 if ac_fn_c_try_compile "$LINENO"; then :
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3177 if test $ac_compiler_gnu = yes; then
3182 ac_test_CFLAGS=${CFLAGS+set}
3183 ac_save_CFLAGS=$CFLAGS
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3186 if ${ac_cv_prog_cc_g+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 ac_save_c_werror_flag=$ac_c_werror_flag
3190 ac_c_werror_flag=yes
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3204 if ac_fn_c_try_compile "$LINENO"; then :
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3235 if ac_fn_c_try_compile "$LINENO"; then :
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3246 $as_echo "$ac_cv_prog_cc_g" >&6; }
3247 if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249 elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3256 if test "$GCC" = yes; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3264 if ${ac_cv_prog_cc_c89+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 ac_cv_prog_cc_c89=no
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3289 s = g (p, va_arg (v,int));
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3295 function prototypes and stuff, but not '\xHH' hex character constants.
3296 These don't provoke an error unfortunately, instead are silently treated
3297 as 'x'. The following induces an error, until -std is added to get
3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3299 array size at least. It's necessary to write '\x00'==0 to get something
3300 that's true only with -std. */
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304 inside strings and character constants. */
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 CC="$ac_save_CC $ac_arg"
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_cv_prog_cc_c89=$ac_arg
3329 rm -f core conftest.err conftest.$ac_objext
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break
3332 rm -f conftest.$ac_ext
3337 case "x$ac_cv_prog_cc_c89" in
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3340 $as_echo "none needed" >&6; } ;;
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3343 $as_echo "unsupported" >&6; } ;;
3345 CC="$CC $ac_cv_prog_cc_c89"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3349 if test "x$ac_cv_prog_cc_c89" != xno; then :
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3361 $as_echo_n "checking for inline... " >&6; }
3362 if ${ac_cv_c_inline+:} false; then :
3363 $as_echo_n "(cached) " >&6
3366 for ac_kw in inline __inline__ __inline; do
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3371 static $ac_kw foo_t static_foo () {return 0; }
3372 $ac_kw foo_t foo () {return 0; }
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377 ac_cv_c_inline=$ac_kw
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 test "$ac_cv_c_inline" != no && break
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3385 $as_echo "$ac_cv_c_inline" >&6; }
3387 case $ac_cv_c_inline in
3390 case $ac_cv_c_inline in
3392 *) ac_val=$ac_cv_c_inline;;
3394 cat >>confdefs.h <<_ACEOF
3396 #define inline $ac_val
3402 case $ac_cv_c_inline in
3403 inline | yes | no) INLINE='';;
3404 *) INLINE=$ac_cv_c_inline ;;
3407 config_appended_defs="$config_appended_defs${newline}INLINE=${INLINE}"
3409 # which switch to pass runtime path to dynamic libraries to the linker
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -R" >&5
3411 $as_echo_n "checking if linker supports -R... " >&6; }
3412 if ${git_cv_ld_dashr+:} false; then :
3413 $as_echo_n "(cached) " >&6
3416 SAVE_LDFLAGS="${LDFLAGS}"
3417 LDFLAGS="${SAVE_LDFLAGS} -R /"
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3429 if ac_fn_c_try_link "$LINENO"; then :
3434 rm -f core conftest.err conftest.$ac_objext \
3435 conftest$ac_exeext conftest.$ac_ext
3436 LDFLAGS="${SAVE_LDFLAGS}"
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_dashr" >&5
3440 $as_echo "$git_cv_ld_dashr" >&6; }
3441 if test "$git_cv_ld_dashr" = "yes"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -Wl,-rpath," >&5
3445 $as_echo_n "checking if linker supports -Wl,-rpath,... " >&6; }
3446 if ${git_cv_ld_wl_rpath+:} false; then :
3447 $as_echo_n "(cached) " >&6
3450 SAVE_LDFLAGS="${LDFLAGS}"
3451 LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3463 if ac_fn_c_try_link "$LINENO"; then :
3464 git_cv_ld_wl_rpath=yes
3466 git_cv_ld_wl_rpath=no
3468 rm -f core conftest.err conftest.$ac_objext \
3469 conftest$ac_exeext conftest.$ac_ext
3470 LDFLAGS="${SAVE_LDFLAGS}"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_wl_rpath" >&5
3474 $as_echo "$git_cv_ld_wl_rpath" >&6; }
3475 if test "$git_cv_ld_wl_rpath" = "yes"; then
3476 CC_LD_DYNPATH=-Wl,-rpath,
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rpath" >&5
3479 $as_echo_n "checking if linker supports -rpath... " >&6; }
3480 if ${git_cv_ld_rpath+:} false; then :
3481 $as_echo_n "(cached) " >&6
3484 SAVE_LDFLAGS="${LDFLAGS}"
3485 LDFLAGS="${SAVE_LDFLAGS} -rpath /"
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 if ac_fn_c_try_link "$LINENO"; then :
3502 rm -f core conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
3504 LDFLAGS="${SAVE_LDFLAGS}"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_rpath" >&5
3508 $as_echo "$git_cv_ld_rpath" >&6; }
3509 if test "$git_cv_ld_rpath" = "yes"; then
3510 CC_LD_DYNPATH=-rpath
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker does not support runtime path to dynamic libraries" >&5
3514 $as_echo "$as_me: WARNING: linker does not support runtime path to dynamic libraries" >&2;}
3519 config_appended_defs="$config_appended_defs${newline}CC_LD_DYNPATH=${CC_LD_DYNPATH}"
3520 #AC_PROG_INSTALL # needs install-sh or install.sh in sources
3521 if test -n "$ac_tool_prefix"; then
3522 for ac_prog in gar ar
3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_AR+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$AR"; then
3532 ac_cv_prog_AR="$AR" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 if test -n "$AR"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3554 $as_echo "$AR" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3561 test -n "$AR" && break
3564 if test -z "$AR"; then
3566 for ac_prog in gar ar
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$ac_ct_AR"; then
3576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_ac_ct_AR="$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3596 if test -n "$ac_ct_AR"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3598 $as_echo "$ac_ct_AR" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3605 test -n "$ac_ct_AR" && break
3608 if test "x$ac_ct_AR" = x; then
3611 case $cross_compiling:$ac_tool_warned in
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615 ac_tool_warned=yes ;;
3621 for ac_prog in gtar tar
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_prog_TAR+:} false; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$TAR"; then
3631 ac_cv_prog_TAR="$TAR" # Let the user override the test.
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_TAR="$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 if test -n "$TAR"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3653 $as_echo "$TAR" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$TAR" && break
3663 for ac_prog in gnudiff gdiff diff
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666 set dummy $ac_prog; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_DIFF+:} false; then :
3670 $as_echo_n "(cached) " >&6
3672 if test -n "$DIFF"; then
3673 ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_DIFF="$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 DIFF=$ac_cv_prog_DIFF
3693 if test -n "$DIFF"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
3695 $as_echo "$DIFF" >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3702 test -n "$DIFF" && break
3705 # TCLTK_PATH will be set to some value if we want Tcl/Tk
3706 # or will be empty otherwise.
3707 if test -n "$NO_TCLTK"; then
3710 if test "$with_tcltk" = ""; then
3711 # No Tcl/Tk switches given. Do not check for Tcl/Tk, use bare 'wish'.
3713 elif test "$with_tcltk" = "yes"; then
3714 # Tcl/Tk check requested.
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718 set dummy $ac_prog; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_TCLTK_PATH+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$TCLTK_PATH"; then
3725 ac_cv_prog_TCLTK_PATH="$TCLTK_PATH" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_TCLTK_PATH="$ac_prog"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 TCLTK_PATH=$ac_cv_prog_TCLTK_PATH
3745 if test -n "$TCLTK_PATH"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_PATH" >&5
3747 $as_echo "$TCLTK_PATH" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3754 test -n "$TCLTK_PATH" && break
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tcl/Tk interpreter $with_tcltk" >&5
3759 $as_echo "Using Tcl/Tk interpreter $with_tcltk" >&6; }
3760 TCLTK_PATH="$with_tcltk"
3764 config_appended_defs="$config_appended_defs${newline}TCLTK_PATH=${TCLTK_PATH}"
3765 for ac_prog in asciidoc
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768 set dummy $ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if ${ac_cv_prog_ASCIIDOC+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -n "$ASCIIDOC"; then
3775 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_ASCIIDOC="$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 ASCIIDOC=$ac_cv_prog_ASCIIDOC
3795 if test -n "$ASCIIDOC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
3797 $as_echo "$ASCIIDOC" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3804 test -n "$ASCIIDOC" && break
3807 if test -n "$ASCIIDOC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asciidoc version" >&5
3809 $as_echo_n "checking for asciidoc version... " >&6; }
3810 asciidoc_version=`$ASCIIDOC --version 2>/dev/null`
3811 case "${asciidoc_version}" in
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version}" >&5
3814 $as_echo "${asciidoc_version}" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} (unknown)" >&5
3818 $as_echo "${asciidoc_version} (unknown)" >&6; }
3824 ## Checks for libraries.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for libraries" >&5
3826 $as_echo "$as_me: CHECKS for libraries" >&6;}
3828 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
3829 # Define NEEDS_SSL_WITH_CRYPTO if you need -lcrypto with -lssl (Darwin).
3832 if test -n "$OPENSSLDIR"; then
3833 old_CPPFLAGS="$CPPFLAGS"
3834 old_LDFLAGS="$LDFLAGS"
3835 CPPFLAGS="-I$OPENSSLDIR/include $CPPFLAGS"
3836 LDFLAGS="-L$OPENSSLDIR/$lib $LDFLAGS"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
3841 $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
3842 if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
3843 $as_echo_n "(cached) " >&6
3845 ac_check_lib_save_LIBS=$LIBS
3846 LIBS="-lcrypto $LIBS"
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3850 /* Override any GCC internal prototype to avoid an error.
3851 Use char because int might match the return type of a GCC
3852 builtin and then its argument prototype would still apply. */
3860 return SHA1_Init ();
3865 if ac_fn_c_try_link "$LINENO"; then :
3866 ac_cv_lib_crypto_SHA1_Init=yes
3868 ac_cv_lib_crypto_SHA1_Init=no
3870 rm -f core conftest.err conftest.$ac_objext \
3871 conftest$ac_exeext conftest.$ac_ext
3872 LIBS=$ac_check_lib_save_LIBS
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
3875 $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
3876 if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
3877 NEEDS_SSL_WITH_CRYPTO=
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lssl" >&5
3880 $as_echo_n "checking for SHA1_Init in -lssl... " >&6; }
3881 if ${ac_cv_lib_ssl_SHA1_Init+:} false; then :
3882 $as_echo_n "(cached) " >&6
3884 ac_check_lib_save_LIBS=$LIBS
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3889 /* Override any GCC internal prototype to avoid an error.
3890 Use char because int might match the return type of a GCC
3891 builtin and then its argument prototype would still apply. */
3899 return SHA1_Init ();
3904 if ac_fn_c_try_link "$LINENO"; then :
3905 ac_cv_lib_ssl_SHA1_Init=yes
3907 ac_cv_lib_ssl_SHA1_Init=no
3909 rm -f core conftest.err conftest.$ac_objext \
3910 conftest$ac_exeext conftest.$ac_ext
3911 LIBS=$ac_check_lib_save_LIBS
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SHA1_Init" >&5
3914 $as_echo "$ac_cv_lib_ssl_SHA1_Init" >&6; }
3915 if test "x$ac_cv_lib_ssl_SHA1_Init" = xyes; then :
3916 NEEDS_SSL_WITH_CRYPTO=YesPlease NO_OPENSSL=
3918 NEEDS_SSL_WITH_CRYPTO= NO_OPENSSL=YesPlease
3925 if test -n "$OPENSSLDIR"; then
3926 CPPFLAGS="$old_CPPFLAGS"
3927 LDFLAGS="$old_LDFLAGS"
3932 config_appended_defs="$config_appended_defs${newline}NEEDS_SSL_WITH_CRYPTO=${NEEDS_SSL_WITH_CRYPTO}"
3934 config_appended_defs="$config_appended_defs${newline}NO_OPENSSL=${NO_OPENSSL}"
3937 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
3938 # able to use Perl-compatible regular expressions.
3941 if test -n "$USE_LIBPCRE"; then
3944 if test -n "$LIBPCREDIR"; then
3945 old_CPPFLAGS="$CPPFLAGS"
3946 old_LDFLAGS="$LDFLAGS"
3947 CPPFLAGS="-I$LIBPCREDIR/include $CPPFLAGS"
3948 LDFLAGS="-L$LIBPCREDIR/$lib $LDFLAGS"
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_version in -lpcre" >&5
3953 $as_echo_n "checking for pcre_version in -lpcre... " >&6; }
3954 if ${ac_cv_lib_pcre_pcre_version+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 ac_check_lib_save_LIBS=$LIBS
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3962 /* Override any GCC internal prototype to avoid an error.
3963 Use char because int might match the return type of a GCC
3964 builtin and then its argument prototype would still apply. */
3968 char pcre_version ();
3972 return pcre_version ();
3977 if ac_fn_c_try_link "$LINENO"; then :
3978 ac_cv_lib_pcre_pcre_version=yes
3980 ac_cv_lib_pcre_pcre_version=no
3982 rm -f core conftest.err conftest.$ac_objext \
3983 conftest$ac_exeext conftest.$ac_ext
3984 LIBS=$ac_check_lib_save_LIBS
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_version" >&5
3987 $as_echo "$ac_cv_lib_pcre_pcre_version" >&6; }
3988 if test "x$ac_cv_lib_pcre_pcre_version" = xyes; then :
3989 USE_LIBPCRE=YesPlease
3996 if test -n "$LIBPCREDIR"; then
3997 CPPFLAGS="$old_CPPFLAGS"
3998 LDFLAGS="$old_LDFLAGS"
4003 config_appended_defs="$config_appended_defs${newline}USE_LIBPCRE=${USE_LIBPCRE}"
4008 # Define NO_CURL if you do not have libcurl installed. git-http-pull and
4009 # git-http-push are not built, and you cannot use http:// and https://
4013 if test -n "$CURLDIR"; then
4014 old_CPPFLAGS="$CPPFLAGS"
4015 old_LDFLAGS="$LDFLAGS"
4016 CPPFLAGS="-I$CURLDIR/include $CPPFLAGS"
4017 LDFLAGS="-L$CURLDIR/$lib $LDFLAGS"
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
4022 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
4023 if ${ac_cv_lib_curl_curl_global_init+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 ac_check_lib_save_LIBS=$LIBS
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4031 /* Override any GCC internal prototype to avoid an error.
4032 Use char because int might match the return type of a GCC
4033 builtin and then its argument prototype would still apply. */
4037 char curl_global_init ();
4041 return curl_global_init ();
4046 if ac_fn_c_try_link "$LINENO"; then :
4047 ac_cv_lib_curl_curl_global_init=yes
4049 ac_cv_lib_curl_curl_global_init=no
4051 rm -f core conftest.err conftest.$ac_objext \
4052 conftest$ac_exeext conftest.$ac_ext
4053 LIBS=$ac_check_lib_save_LIBS
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
4056 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
4057 if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
4065 if test -n "$CURLDIR"; then
4066 CPPFLAGS="$old_CPPFLAGS"
4067 LDFLAGS="$old_LDFLAGS"
4072 config_appended_defs="$config_appended_defs${newline}NO_CURL=${NO_CURL}"
4075 # Define NO_EXPAT if you do not have expat installed. git-http-push is
4076 # not built, and you cannot push using http:// and https:// transports.
4079 if test -n "$EXPATDIR"; then
4080 old_CPPFLAGS="$CPPFLAGS"
4081 old_LDFLAGS="$LDFLAGS"
4082 CPPFLAGS="-I$EXPATDIR/include $CPPFLAGS"
4083 LDFLAGS="-L$EXPATDIR/$lib $LDFLAGS"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
4088 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
4089 if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_check_lib_save_LIBS=$LIBS
4093 LIBS="-lexpat $LIBS"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4097 /* Override any GCC internal prototype to avoid an error.
4098 Use char because int might match the return type of a GCC
4099 builtin and then its argument prototype would still apply. */
4103 char XML_ParserCreate ();
4107 return XML_ParserCreate ();
4112 if ac_fn_c_try_link "$LINENO"; then :
4113 ac_cv_lib_expat_XML_ParserCreate=yes
4115 ac_cv_lib_expat_XML_ParserCreate=no
4117 rm -f core conftest.err conftest.$ac_objext \
4118 conftest$ac_exeext conftest.$ac_ext
4119 LIBS=$ac_check_lib_save_LIBS
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
4122 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
4123 if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
4131 if test -n "$EXPATDIR"; then
4132 CPPFLAGS="$old_CPPFLAGS"
4133 LDFLAGS="$old_LDFLAGS"
4138 config_appended_defs="$config_appended_defs${newline}NO_EXPAT=${NO_EXPAT}"
4141 # Define NEEDS_LIBICONV if linking with libc is not enough (Darwin and
4142 # some Solaris installations).
4143 # Define NO_ICONV if neither libc nor libiconv support iconv.
4145 if test -z "$NO_ICONV"; then
4148 if test -n "$ICONVDIR"; then
4149 old_CPPFLAGS="$CPPFLAGS"
4150 old_LDFLAGS="$LDFLAGS"
4151 CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
4152 LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
4158 if test -n "$ICONVDIR"; then
4159 lib_order="-liconv -lc"
4161 lib_order="-lc -liconv"
4166 for l in $lib_order; do
4167 if test "$l" = "-liconv"; then
4168 NEEDS_LIBICONV=YesPlease
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in $l" >&5
4176 $as_echo_n "checking for iconv in $l... " >&6; }
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4188 if ac_fn_c_try_link "$LINENO"; then :
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4190 $as_echo "yes" >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4197 rm -f core conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4206 if test -n "$ICONVDIR"; then
4207 CPPFLAGS="$old_CPPFLAGS"
4208 LDFLAGS="$old_LDFLAGS"
4213 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBICONV=${NEEDS_LIBICONV}"
4215 config_appended_defs="$config_appended_defs${newline}NO_ICONV=${NO_ICONV}"
4217 if test -n "$NO_ICONV"; then
4224 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
4227 if test -n "$ZLIB_PATH"; then
4228 old_CPPFLAGS="$CPPFLAGS"
4229 old_LDFLAGS="$LDFLAGS"
4230 CPPFLAGS="-I$ZLIB_PATH/include $CPPFLAGS"
4231 LDFLAGS="-L$ZLIB_PATH/$lib $LDFLAGS"
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateBound in -lz" >&5
4237 $as_echo_n "checking for deflateBound in -lz... " >&6; }
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4252 if ac_fn_c_try_link "$LINENO"; then :
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4254 $as_echo "yes" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 NO_DEFLATE_BOUND=yes
4260 rm -f core conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
4265 if test -n "$ZLIB_PATH"; then
4266 CPPFLAGS="$old_CPPFLAGS"
4267 LDFLAGS="$old_LDFLAGS"
4272 config_appended_defs="$config_appended_defs${newline}NO_DEFLATE_BOUND=${NO_DEFLATE_BOUND}"
4275 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5
4278 $as_echo_n "checking for socket in -lc... " >&6; }
4279 if ${ac_cv_lib_c_socket+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 ac_check_lib_save_LIBS=$LIBS
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4287 /* Override any GCC internal prototype to avoid an error.
4288 Use char because int might match the return type of a GCC
4289 builtin and then its argument prototype would still apply. */
4302 if ac_fn_c_try_link "$LINENO"; then :
4303 ac_cv_lib_c_socket=yes
4305 ac_cv_lib_c_socket=no
4307 rm -f core conftest.err conftest.$ac_objext \
4308 conftest$ac_exeext conftest.$ac_ext
4309 LIBS=$ac_check_lib_save_LIBS
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_socket" >&5
4312 $as_echo "$ac_cv_lib_c_socket" >&6; }
4313 if test "x$ac_cv_lib_c_socket" = xyes; then :
4316 NEEDS_SOCKET=YesPlease
4320 config_appended_defs="$config_appended_defs${newline}NEEDS_SOCKET=${NEEDS_SOCKET}"
4321 test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
4324 # The next few tests will define NEEDS_RESOLV if linking with
4325 # libresolv provides some of the functions we would normally get
4329 # Define NO_INET_NTOP if linking with -lresolv is not enough.
4330 # Solaris 2.7 in particular hos inet_ntop in -lresolv.
4332 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
4333 if test "x$ac_cv_func_inet_ntop" = xyes; then :
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lresolv" >&5
4337 $as_echo_n "checking for inet_ntop in -lresolv... " >&6; }
4338 if ${ac_cv_lib_resolv_inet_ntop+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 ac_check_lib_save_LIBS=$LIBS
4342 LIBS="-lresolv $LIBS"
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4346 /* Override any GCC internal prototype to avoid an error.
4347 Use char because int might match the return type of a GCC
4348 builtin and then its argument prototype would still apply. */
4356 return inet_ntop ();
4361 if ac_fn_c_try_link "$LINENO"; then :
4362 ac_cv_lib_resolv_inet_ntop=yes
4364 ac_cv_lib_resolv_inet_ntop=no
4366 rm -f core conftest.err conftest.$ac_objext \
4367 conftest$ac_exeext conftest.$ac_ext
4368 LIBS=$ac_check_lib_save_LIBS
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_ntop" >&5
4371 $as_echo "$ac_cv_lib_resolv_inet_ntop" >&6; }
4372 if test "x$ac_cv_lib_resolv_inet_ntop" = xyes; then :
4373 NEEDS_RESOLV=YesPlease
4375 NO_INET_NTOP=YesPlease
4382 config_appended_defs="$config_appended_defs${newline}NO_INET_NTOP=${NO_INET_NTOP}"
4384 # Define NO_INET_PTON if linking with -lresolv is not enough.
4385 # Solaris 2.7 in particular hos inet_pton in -lresolv.
4387 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
4388 if test "x$ac_cv_func_inet_pton" = xyes; then :
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lresolv" >&5
4392 $as_echo_n "checking for inet_pton in -lresolv... " >&6; }
4393 if ${ac_cv_lib_resolv_inet_pton+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 ac_check_lib_save_LIBS=$LIBS
4397 LIBS="-lresolv $LIBS"
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4401 /* Override any GCC internal prototype to avoid an error.
4402 Use char because int might match the return type of a GCC
4403 builtin and then its argument prototype would still apply. */
4411 return inet_pton ();
4416 if ac_fn_c_try_link "$LINENO"; then :
4417 ac_cv_lib_resolv_inet_pton=yes
4419 ac_cv_lib_resolv_inet_pton=no
4421 rm -f core conftest.err conftest.$ac_objext \
4422 conftest$ac_exeext conftest.$ac_ext
4423 LIBS=$ac_check_lib_save_LIBS
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_pton" >&5
4426 $as_echo "$ac_cv_lib_resolv_inet_pton" >&6; }
4427 if test "x$ac_cv_lib_resolv_inet_pton" = xyes; then :
4428 NEEDS_RESOLV=YesPlease
4430 NO_INET_PTON=YesPlease
4437 config_appended_defs="$config_appended_defs${newline}NO_INET_PTON=${NO_INET_PTON}"
4439 # Define NO_HSTRERROR if linking with -lresolv is not enough.
4440 # Solaris 2.6 in particular has no hstrerror, even in -lresolv.
4442 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
4443 if test "x$ac_cv_func_hstrerror" = xyes; then :
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
4447 $as_echo_n "checking for hstrerror in -lresolv... " >&6; }
4448 if ${ac_cv_lib_resolv_hstrerror+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 ac_check_lib_save_LIBS=$LIBS
4452 LIBS="-lresolv $LIBS"
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4456 /* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4466 return hstrerror ();
4471 if ac_fn_c_try_link "$LINENO"; then :
4472 ac_cv_lib_resolv_hstrerror=yes
4474 ac_cv_lib_resolv_hstrerror=no
4476 rm -f core conftest.err conftest.$ac_objext \
4477 conftest$ac_exeext conftest.$ac_ext
4478 LIBS=$ac_check_lib_save_LIBS
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
4481 $as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
4482 if test "x$ac_cv_lib_resolv_hstrerror" = xyes; then :
4483 NEEDS_RESOLV=YesPlease
4485 NO_HSTRERROR=YesPlease
4492 config_appended_defs="$config_appended_defs${newline}NO_HSTRERROR=${NO_HSTRERROR}"
4495 config_appended_defs="$config_appended_defs${newline}NEEDS_RESOLV=${NEEDS_RESOLV}"
4497 # If any of the above tests determined that -lresolv is needed at
4498 # build-time, also set it here for remaining configure-time checks.
4499 test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lc" >&5
4502 $as_echo_n "checking for basename in -lc... " >&6; }
4503 if ${ac_cv_lib_c_basename+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 ac_check_lib_save_LIBS=$LIBS
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4511 /* Override any GCC internal prototype to avoid an error.
4512 Use char because int might match the return type of a GCC
4513 builtin and then its argument prototype would still apply. */
4526 if ac_fn_c_try_link "$LINENO"; then :
4527 ac_cv_lib_c_basename=yes
4529 ac_cv_lib_c_basename=no
4531 rm -f core conftest.err conftest.$ac_objext \
4532 conftest$ac_exeext conftest.$ac_ext
4533 LIBS=$ac_check_lib_save_LIBS
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_basename" >&5
4536 $as_echo "$ac_cv_lib_c_basename" >&6; }
4537 if test "x$ac_cv_lib_c_basename" = xyes; then :
4540 NEEDS_LIBGEN=YesPlease
4544 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBGEN=${NEEDS_LIBGEN}"
4545 test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lc" >&5
4548 $as_echo_n "checking for gettext in -lc... " >&6; }
4549 if ${ac_cv_lib_c_gettext+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 ac_check_lib_save_LIBS=$LIBS
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4557 /* Override any GCC internal prototype to avoid an error.
4558 Use char because int might match the return type of a GCC
4559 builtin and then its argument prototype would still apply. */
4572 if ac_fn_c_try_link "$LINENO"; then :
4573 ac_cv_lib_c_gettext=yes
4575 ac_cv_lib_c_gettext=no
4577 rm -f core conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4579 LIBS=$ac_check_lib_save_LIBS
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettext" >&5
4582 $as_echo "$ac_cv_lib_c_gettext" >&6; }
4583 if test "x$ac_cv_lib_c_gettext" = xyes; then :
4584 LIBC_CONTAINS_LIBINTL=YesPlease
4586 LIBC_CONTAINS_LIBINTL=
4590 config_appended_defs="$config_appended_defs${newline}LIBC_CONTAINS_LIBINTL=${LIBC_CONTAINS_LIBINTL}"
4593 # Define NO_GETTEXT if you don't want Git output to be translated.
4594 # A translated Git requires GNU libintl or another gettext implementation
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4601 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4602 # On Suns, sometimes $CPP names a directory.
4603 if test -n "$CPP" && test -d "$CPP"; then
4606 if test -z "$CPP"; then
4607 if ${ac_cv_prog_CPP+:} false; then :
4608 $as_echo_n "(cached) " >&6
4610 # Double quotes because CPP needs to be expanded
4611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4614 for ac_c_preproc_warn_flag in '' yes
4616 # Use a header file that comes with gcc, so configuring glibc
4617 # with a fresh cross-compiler works.
4618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4619 # <limits.h> exists even on freestanding compilers.
4620 # On the NeXT, cc -E runs the code through the compiler's parser,
4621 # not just through cpp. "Syntax error" is here to catch this case.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4625 # include <limits.h>
4627 # include <assert.h>
4631 if ac_fn_c_try_cpp "$LINENO"; then :
4634 # Broken: fails on valid input.
4637 rm -f conftest.err conftest.i conftest.$ac_ext
4639 # OK, works on sane cases. Now check whether nonexistent headers
4640 # can be detected and how.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <ac_nonexistent.h>
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4646 # Broken: success on invalid input.
4649 # Passes both tests.
4653 rm -f conftest.err conftest.i conftest.$ac_ext
4656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4657 rm -f conftest.i conftest.err conftest.$ac_ext
4658 if $ac_preproc_ok; then :
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4671 $as_echo "$CPP" >&6; }
4673 for ac_c_preproc_warn_flag in '' yes
4675 # Use a header file that comes with gcc, so configuring glibc
4676 # with a fresh cross-compiler works.
4677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4678 # <limits.h> exists even on freestanding compilers.
4679 # On the NeXT, cc -E runs the code through the compiler's parser,
4680 # not just through cpp. "Syntax error" is here to catch this case.
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4684 # include <limits.h>
4686 # include <assert.h>
4690 if ac_fn_c_try_cpp "$LINENO"; then :
4693 # Broken: fails on valid input.
4696 rm -f conftest.err conftest.i conftest.$ac_ext
4698 # OK, works on sane cases. Now check whether nonexistent headers
4699 # can be detected and how.
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <ac_nonexistent.h>
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4705 # Broken: success on invalid input.
4708 # Passes both tests.
4712 rm -f conftest.err conftest.i conftest.$ac_ext
4715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716 rm -f conftest.i conftest.err conftest.$ac_ext
4717 if $ac_preproc_ok; then :
4720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4723 See \`config.log' for more details" "$LINENO" 5; }
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4735 if ${ac_cv_path_GREP+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -z "$GREP"; then
4739 ac_path_GREP_found=false
4740 # Loop through the user's path and test for each of PROGNAME-LIST
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4745 test -z "$as_dir" && as_dir=.
4746 for ac_prog in grep ggrep; do
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4749 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4750 # Check for GNU ac_path_GREP and select it if it is found.
4751 # Check for GNU $ac_path_GREP
4752 case `"$ac_path_GREP" --version 2>&1` in
4754 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4757 $as_echo_n 0123456789 >"conftest.in"
4760 cat "conftest.in" "conftest.in" >"conftest.tmp"
4761 mv "conftest.tmp" "conftest.in"
4762 cp "conftest.in" "conftest.nl"
4763 $as_echo 'GREP' >> "conftest.nl"
4764 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766 as_fn_arith $ac_count + 1 && ac_count=$as_val
4767 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4768 # Best one so far, save it but keep looking for a better one
4769 ac_cv_path_GREP="$ac_path_GREP"
4770 ac_path_GREP_max=$ac_count
4772 # 10*(2^10) chars as input seems more than enough
4773 test $ac_count -gt 10 && break
4775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4778 $ac_path_GREP_found && break 3
4783 if test -z "$ac_cv_path_GREP"; then
4784 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4787 ac_cv_path_GREP=$GREP
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4792 $as_echo "$ac_cv_path_GREP" >&6; }
4793 GREP="$ac_cv_path_GREP"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4797 $as_echo_n "checking for egrep... " >&6; }
4798 if ${ac_cv_path_EGREP+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4802 then ac_cv_path_EGREP="$GREP -E"
4804 if test -z "$EGREP"; then
4805 ac_path_EGREP_found=false
4806 # Loop through the user's path and test for each of PROGNAME-LIST
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4811 test -z "$as_dir" && as_dir=.
4812 for ac_prog in egrep; do
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4815 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4816 # Check for GNU ac_path_EGREP and select it if it is found.
4817 # Check for GNU $ac_path_EGREP
4818 case `"$ac_path_EGREP" --version 2>&1` in
4820 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4823 $as_echo_n 0123456789 >"conftest.in"
4826 cat "conftest.in" "conftest.in" >"conftest.tmp"
4827 mv "conftest.tmp" "conftest.in"
4828 cp "conftest.in" "conftest.nl"
4829 $as_echo 'EGREP' >> "conftest.nl"
4830 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4832 as_fn_arith $ac_count + 1 && ac_count=$as_val
4833 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4834 # Best one so far, save it but keep looking for a better one
4835 ac_cv_path_EGREP="$ac_path_EGREP"
4836 ac_path_EGREP_max=$ac_count
4838 # 10*(2^10) chars as input seems more than enough
4839 test $ac_count -gt 10 && break
4841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844 $ac_path_EGREP_found && break 3
4849 if test -z "$ac_cv_path_EGREP"; then
4850 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4853 ac_cv_path_EGREP=$EGREP
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4859 $as_echo "$ac_cv_path_EGREP" >&6; }
4860 EGREP="$ac_cv_path_EGREP"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4864 $as_echo_n "checking for ANSI C header files... " >&6; }
4865 if ${ac_cv_header_stdc+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_cv_header_stdc=yes
4886 ac_cv_header_stdc=no
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 if test $ac_cv_header_stdc = yes; then
4891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "memchr" >/dev/null 2>&1; then :
4901 ac_cv_header_stdc=no
4907 if test $ac_cv_header_stdc = yes; then
4908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 $EGREP "free" >/dev/null 2>&1; then :
4918 ac_cv_header_stdc=no
4924 if test $ac_cv_header_stdc = yes; then
4925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4926 if test "$cross_compiling" = yes; then :
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4933 #if ((' ' & 0x0FF) == 0x020)
4934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4937 # define ISLOWER(c) \
4938 (('a' <= (c) && (c) <= 'i') \
4939 || ('j' <= (c) && (c) <= 'r') \
4940 || ('s' <= (c) && (c) <= 'z'))
4941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4949 for (i = 0; i < 256; i++)
4950 if (XOR (islower (i), ISLOWER (i))
4951 || toupper (i) != TOUPPER (i))
4956 if ac_fn_c_try_run "$LINENO"; then :
4959 ac_cv_header_stdc=no
4961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4962 conftest.$ac_objext conftest.beam conftest.$ac_ext
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4968 $as_echo "$ac_cv_header_stdc" >&6; }
4969 if test $ac_cv_header_stdc = yes; then
4971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4977 inttypes.h stdint.h unistd.h
4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4983 cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4992 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4993 if test "x$ac_cv_header_libintl_h" = xyes; then :
4996 NO_GETTEXT=YesPlease
5001 config_appended_defs="$config_appended_defs${newline}NO_GETTEXT=${NO_GETTEXT}"
5003 if test -z "$NO_GETTEXT"; then
5004 test -n "$LIBC_CONTAINS_LIBINTL" || LIBS="$LIBS -lintl"
5007 ## Checks for header files.
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for header files" >&5
5009 $as_echo "$as_me: CHECKS for header files" >&6;}
5011 # Define NO_SYS_SELECT_H if you don't have sys/select.h.
5012 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5013 if test "x$ac_cv_header_sys_select_h" = xyes; then :
5016 NO_SYS_SELECT_H=UnfortunatelyYes
5021 config_appended_defs="$config_appended_defs${newline}NO_SYS_SELECT_H=${NO_SYS_SELECT_H}"
5023 # Define NO_SYS_POLL_H if you don't have sys/poll.h
5024 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
5025 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
5028 NO_SYS_POLL_H=UnfortunatelyYes
5033 config_appended_defs="$config_appended_defs${newline}NO_SYS_POLL_H=${NO_SYS_POLL_H}"
5035 # Define NO_INTTYPES_H if you don't have inttypes.h
5036 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5037 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5040 NO_INTTYPES_H=UnfortunatelyYes
5045 config_appended_defs="$config_appended_defs${newline}NO_INTTYPES_H=${NO_INTTYPES_H}"
5047 # Define OLD_ICONV if your library has an old iconv(), where the second
5048 # (input buffer pointer) parameter is declared with type (const char **).
5052 if test -n "$ICONVDIR"; then
5053 old_CPPFLAGS="$CPPFLAGS"
5054 old_LDFLAGS="$LDFLAGS"
5055 CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
5056 LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old iconv()" >&5
5061 $as_echo_n "checking for old iconv()... " >&6; }
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5068 extern size_t iconv(iconv_t cd,
5069 char **inbuf, size_t *inbytesleft,
5070 char **outbuf, size_t *outbytesleft);
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5085 $as_echo "yes" >&6; }
5086 OLD_ICONV=UnfortunatelyYes
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 if test -n "$ICONVDIR"; then
5092 CPPFLAGS="$old_CPPFLAGS"
5093 LDFLAGS="$old_LDFLAGS"
5098 config_appended_defs="$config_appended_defs${newline}OLD_ICONV=${OLD_ICONV}"
5100 ## Checks for typedefs, structures, and compiler characteristics.
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for typedefs, structures, and compiler characteristics" >&5
5102 $as_echo "$as_me: CHECKS for typedefs, structures, and compiler characteristics" >&6;}
5105 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5106 #include <sys/socket.h>
5108 if test "x$ac_cv_type_socklen_t" = xyes; then :
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5113 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5114 if ${git_cv_socklen_t_equiv+:} false; then :
5115 $as_echo_n "(cached) " >&6
5118 # Systems have either "struct sockaddr *" or
5119 # "void *" as the second argument to getpeername
5120 git_cv_socklen_t_equiv=
5121 for arg2 in "struct sockaddr" void; do
5122 for t in int size_t unsigned long "unsigned long"; do
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5126 #include <sys/types.h>
5127 #include <sys/socket.h>
5129 int getpeername (int, $arg2 *, $t *);
5136 getpeername(0,0,&len);
5142 if ac_fn_c_try_compile "$LINENO"; then :
5144 git_cv_socklen_t_equiv="$t"
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 if test "x$git_cv_socklen_t_equiv" = x; then
5153 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_socklen_t_equiv" >&5
5159 $as_echo "$git_cv_socklen_t_equiv" >&6; }
5161 cat >>confdefs.h <<_ACEOF
5162 #define socklen_t $git_cv_socklen_t_equiv
5168 case $ac_cv_type_socklen_t in
5170 *) SOCKLEN_T=$git_cv_socklen_t_equiv;;
5173 config_appended_defs="$config_appended_defs${newline}SOCKLEN_T=${SOCKLEN_T}"
5175 # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
5176 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#include <dirent.h>
5178 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
5181 NO_D_INO_IN_DIRENT=YesPlease
5185 config_appended_defs="$config_appended_defs${newline}NO_D_INO_IN_DIRENT=${NO_D_INO_IN_DIRENT}"
5187 # Define NO_D_TYPE_IN_DIRENT if your platform defines DT_UNKNOWN but lacks
5188 # d_type in struct dirent (latest Cygwin -- will be fixed soonish).
5189 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
5191 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
5192 NO_D_TYPE_IN_DIRENT=
5194 NO_D_TYPE_IN_DIRENT=YesPlease
5198 config_appended_defs="$config_appended_defs${newline}NO_D_TYPE_IN_DIRENT=${NO_D_TYPE_IN_DIRENT}"
5200 # Define NO_GECOS_IN_PWENT if you don't have pw_gecos in struct passwd
5202 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "#include <pwd.h>
5204 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
5207 NO_GECOS_IN_PWENT=YesPlease
5211 config_appended_defs="$config_appended_defs${newline}NO_GECOS_IN_PWENT=${NO_GECOS_IN_PWENT}"
5213 # Define NO_SOCKADDR_STORAGE if your platform does not have struct
5215 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
5216 #include <sys/types.h>
5217 #include <sys/socket.h>
5220 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5221 NO_SOCKADDR_STORAGE=
5223 NO_SOCKADDR_STORAGE=YesPlease
5227 config_appended_defs="$config_appended_defs${newline}NO_SOCKADDR_STORAGE=${NO_SOCKADDR_STORAGE}"
5229 # Define NO_IPV6 if you lack IPv6 support and getaddrinfo().
5230 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
5231 #include <sys/types.h>
5232 #include <sys/socket.h>
5236 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
5238 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5239 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5242 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
5243 if ${ac_cv_search_getaddrinfo+:} false; then :
5244 $as_echo_n "(cached) " >&6
5246 ac_func_search_save_LIBS=$LIBS
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5250 /* Override any GCC internal prototype to avoid an error.
5251 Use char because int might match the return type of a GCC
5252 builtin and then its argument prototype would still apply. */
5256 char getaddrinfo ();
5260 return getaddrinfo ();
5265 for ac_lib in '' ; do
5266 if test -z "$ac_lib"; then
5267 ac_res="none required"
5270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5272 if ac_fn_c_try_link "$LINENO"; then :
5273 ac_cv_search_getaddrinfo=$ac_res
5275 rm -f core conftest.err conftest.$ac_objext \
5277 if ${ac_cv_search_getaddrinfo+:} false; then :
5281 if ${ac_cv_search_getaddrinfo+:} false; then :
5284 ac_cv_search_getaddrinfo=no
5287 LIBS=$ac_func_search_save_LIBS
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
5290 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
5291 ac_res=$ac_cv_search_getaddrinfo
5292 if test "$ac_res" != no; then :
5293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5310 config_appended_defs="$config_appended_defs${newline}NO_IPV6=${NO_IPV6}"
5312 # Define NO_REGEX if you have no or inferior regex support in your C library.
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform regex can handle null bytes" >&5
5314 $as_echo_n "checking whether the platform regex can handle null bytes... " >&6; }
5315 if ${ac_cv_c_excellent_regex+:} false; then :
5316 $as_echo_n "(cached) " >&6
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 $ac_includes_default
5335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5336 $EGREP "yippeeyeswehaveit" >/dev/null 2>&1; then :
5337 ac_cv_c_excellent_regex=yes
5339 ac_cv_c_excellent_regex=no
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_excellent_regex" >&5
5346 $as_echo "$ac_cv_c_excellent_regex" >&6; }
5347 if test $ac_cv_c_excellent_regex = yes; then
5353 config_appended_defs="$config_appended_defs${newline}NO_REGEX=${NO_REGEX}"
5355 # Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
5356 # when attempting to read from an fopen'ed directory.
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system succeeds to read fopen'ed directory" >&5
5358 $as_echo_n "checking whether system succeeds to read fopen'ed directory... " >&6; }
5359 if ${ac_cv_fread_reads_directories+:} false; then :
5360 $as_echo_n "(cached) " >&6
5363 if test "$cross_compiling" = yes; then :
5364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5366 as_fn_error $? "cannot run test program while cross compiling
5367 See \`config.log' for more details" "$LINENO" 5; }
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 $ac_includes_default
5376 FILE *f = fopen(".", "r");
5377 return f && fread(&c, 1, 1, f)
5382 if ac_fn_c_try_run "$LINENO"; then :
5383 ac_cv_fread_reads_directories=no
5385 ac_cv_fread_reads_directories=yes
5387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5388 conftest.$ac_objext conftest.beam conftest.$ac_ext
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fread_reads_directories" >&5
5394 $as_echo "$ac_cv_fread_reads_directories" >&6; }
5395 if test $ac_cv_fread_reads_directories = yes; then
5396 FREAD_READS_DIRECTORIES=UnfortunatelyYes
5398 FREAD_READS_DIRECTORIES=
5401 config_appended_defs="$config_appended_defs${newline}FREAD_READS_DIRECTORIES=${FREAD_READS_DIRECTORIES}"
5403 # Define SNPRINTF_RETURNS_BOGUS if your are on a system which snprintf()
5404 # or vsnprintf() return -1 instead of number of characters which would
5405 # have been written to the final string if enough space had been available.
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf() and/or vsnprintf() return bogus value" >&5
5407 $as_echo_n "checking whether snprintf() and/or vsnprintf() return bogus value... " >&6; }
5408 if ${ac_cv_snprintf_returns_bogus+:} false; then :
5409 $as_echo_n "(cached) " >&6
5412 if test "$cross_compiling" = yes; then :
5413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5415 as_fn_error $? "cannot run test program while cross compiling
5416 See \`config.log' for more details" "$LINENO" 5; }
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 $ac_includes_default
5423 int test_vsnprintf(char *str, size_t maxsize, const char *format, ...)
5427 va_start(ap, format);
5428 ret = vsnprintf(str, maxsize, format, ap);
5436 if (test_vsnprintf(buf, 3, "%s", "12345") != 5
5437 || strcmp(buf, "12")) return 1;
5438 if (snprintf(buf, 3, "%s", "12345") != 5
5439 || strcmp(buf, "12")) return 1
5444 if ac_fn_c_try_run "$LINENO"; then :
5445 ac_cv_snprintf_returns_bogus=no
5447 ac_cv_snprintf_returns_bogus=yes
5449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5450 conftest.$ac_objext conftest.beam conftest.$ac_ext
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_snprintf_returns_bogus" >&5
5456 $as_echo "$ac_cv_snprintf_returns_bogus" >&6; }
5457 if test $ac_cv_snprintf_returns_bogus = yes; then
5458 SNPRINTF_RETURNS_BOGUS=UnfortunatelyYes
5460 SNPRINTF_RETURNS_BOGUS=
5463 config_appended_defs="$config_appended_defs${newline}SNPRINTF_RETURNS_BOGUS=${SNPRINTF_RETURNS_BOGUS}"
5466 ## Checks for library functions.
5467 ## (in default C library and libraries checked by AC_CHECK_LIB)
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for library functions" >&5
5469 $as_echo "$as_me: CHECKS for library functions" >&6;}
5471 # Define NO_LIBGEN_H if you don't have libgen.h.
5472 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
5473 if test "x$ac_cv_header_libgen_h" = xyes; then :
5476 NO_LIBGEN_H=YesPlease
5481 config_appended_defs="$config_appended_defs${newline}NO_LIBGEN_H=${NO_LIBGEN_H}"
5483 # Define HAVE_PATHS_H if you have paths.h.
5484 ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
5485 if test "x$ac_cv_header_paths_h" = xyes; then :
5486 HAVE_PATHS_H=YesPlease
5493 config_appended_defs="$config_appended_defs${newline}HAVE_PATHS_H=${HAVE_PATHS_H}"
5495 # Define HAVE_LIBCHARSET_H if have libcharset.h
5496 ac_fn_c_check_header_mongrel "$LINENO" "libcharset.h" "ac_cv_header_libcharset_h" "$ac_includes_default"
5497 if test "x$ac_cv_header_libcharset_h" = xyes; then :
5498 HAVE_LIBCHARSET_H=YesPlease
5505 config_appended_defs="$config_appended_defs${newline}HAVE_LIBCHARSET_H=${HAVE_LIBCHARSET_H}"
5507 # Define HAVE_STRINGS_H if you have strings.h
5508 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_strings_h" = xyes; then :
5510 HAVE_STRINGS_H=YesPlease
5517 config_appended_defs="$config_appended_defs${newline}HAVE_STRINGS_H=${HAVE_STRINGS_H}"
5518 # Define CHARSET_LIB if libiconv does not export the locale_charset symbol
5519 # and libcharset does
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5
5522 $as_echo_n "checking for locale_charset in -liconv... " >&6; }
5523 if ${ac_cv_lib_iconv_locale_charset+:} false; then :
5524 $as_echo_n "(cached) " >&6
5526 ac_check_lib_save_LIBS=$LIBS
5527 LIBS="-liconv $LIBS"
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5531 /* Override any GCC internal prototype to avoid an error.
5532 Use char because int might match the return type of a GCC
5533 builtin and then its argument prototype would still apply. */
5537 char locale_charset ();
5541 return locale_charset ();
5546 if ac_fn_c_try_link "$LINENO"; then :
5547 ac_cv_lib_iconv_locale_charset=yes
5549 ac_cv_lib_iconv_locale_charset=no
5551 rm -f core conftest.err conftest.$ac_objext \
5552 conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5
5556 $as_echo "$ac_cv_lib_iconv_locale_charset" >&6; }
5557 if test "x$ac_cv_lib_iconv_locale_charset" = xyes; then :
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
5561 $as_echo_n "checking for locale_charset in -lcharset... " >&6; }
5562 if ${ac_cv_lib_charset_locale_charset+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 ac_check_lib_save_LIBS=$LIBS
5566 LIBS="-lcharset $LIBS"
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 /* Override any GCC internal prototype to avoid an error.
5571 Use char because int might match the return type of a GCC
5572 builtin and then its argument prototype would still apply. */
5576 char locale_charset ();
5580 return locale_charset ();
5585 if ac_fn_c_try_link "$LINENO"; then :
5586 ac_cv_lib_charset_locale_charset=yes
5588 ac_cv_lib_charset_locale_charset=no
5590 rm -f core conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5592 LIBS=$ac_check_lib_save_LIBS
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
5595 $as_echo "$ac_cv_lib_charset_locale_charset" >&6; }
5596 if test "x$ac_cv_lib_charset_locale_charset" = xyes; then :
5597 CHARSET_LIB=-lcharset
5603 config_appended_defs="$config_appended_defs${newline}CHARSET_LIB=${CHARSET_LIB}"
5605 # Define NO_STRCASESTR if you don't have strcasestr.
5606 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
5607 if test "x$ac_cv_func_strcasestr" = xyes; then :
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strcasestr" >&5
5610 $as_echo_n "checking for library containing strcasestr... " >&6; }
5611 if ${ac_cv_search_strcasestr+:} false; then :
5612 $as_echo_n "(cached) " >&6
5614 ac_func_search_save_LIBS=$LIBS
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5618 /* Override any GCC internal prototype to avoid an error.
5619 Use char because int might match the return type of a GCC
5620 builtin and then its argument prototype would still apply. */
5628 return strcasestr ();
5633 for ac_lib in '' ; do
5634 if test -z "$ac_lib"; then
5635 ac_res="none required"
5638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5640 if ac_fn_c_try_link "$LINENO"; then :
5641 ac_cv_search_strcasestr=$ac_res
5643 rm -f core conftest.err conftest.$ac_objext \
5645 if ${ac_cv_search_strcasestr+:} false; then :
5649 if ${ac_cv_search_strcasestr+:} false; then :
5652 ac_cv_search_strcasestr=no
5655 LIBS=$ac_func_search_save_LIBS
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strcasestr" >&5
5658 $as_echo "$ac_cv_search_strcasestr" >&6; }
5659 ac_res=$ac_cv_search_strcasestr
5660 if test "$ac_res" != no; then :
5661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5664 NO_STRCASESTR=YesPlease
5669 NO_STRCASESTR=YesPlease
5673 config_appended_defs="$config_appended_defs${newline}NO_STRCASESTR=${NO_STRCASESTR}"
5675 # Define NO_MEMMEM if you don't have memmem.
5676 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5677 if test "x$ac_cv_func_memmem" = xyes; then :
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmem" >&5
5680 $as_echo_n "checking for library containing memmem... " >&6; }
5681 if ${ac_cv_search_memmem+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 ac_func_search_save_LIBS=$LIBS
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5688 /* Override any GCC internal prototype to avoid an error.
5689 Use char because int might match the return type of a GCC
5690 builtin and then its argument prototype would still apply. */
5703 for ac_lib in '' ; do
5704 if test -z "$ac_lib"; then
5705 ac_res="none required"
5708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5710 if ac_fn_c_try_link "$LINENO"; then :
5711 ac_cv_search_memmem=$ac_res
5713 rm -f core conftest.err conftest.$ac_objext \
5715 if ${ac_cv_search_memmem+:} false; then :
5719 if ${ac_cv_search_memmem+:} false; then :
5722 ac_cv_search_memmem=no
5725 LIBS=$ac_func_search_save_LIBS
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmem" >&5
5728 $as_echo "$ac_cv_search_memmem" >&6; }
5729 ac_res=$ac_cv_search_memmem
5730 if test "$ac_res" != no; then :
5731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5743 config_appended_defs="$config_appended_defs${newline}NO_MEMMEM=${NO_MEMMEM}"
5745 # Define NO_STRLCPY if you don't have strlcpy.
5746 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5747 if test "x$ac_cv_func_strlcpy" = xyes; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
5750 $as_echo_n "checking for library containing strlcpy... " >&6; }
5751 if ${ac_cv_search_strlcpy+:} false; then :
5752 $as_echo_n "(cached) " >&6
5754 ac_func_search_save_LIBS=$LIBS
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5758 /* Override any GCC internal prototype to avoid an error.
5759 Use char because int might match the return type of a GCC
5760 builtin and then its argument prototype would still apply. */
5773 for ac_lib in '' ; do
5774 if test -z "$ac_lib"; then
5775 ac_res="none required"
5778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5780 if ac_fn_c_try_link "$LINENO"; then :
5781 ac_cv_search_strlcpy=$ac_res
5783 rm -f core conftest.err conftest.$ac_objext \
5785 if ${ac_cv_search_strlcpy+:} false; then :
5789 if ${ac_cv_search_strlcpy+:} false; then :
5792 ac_cv_search_strlcpy=no
5795 LIBS=$ac_func_search_save_LIBS
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
5798 $as_echo "$ac_cv_search_strlcpy" >&6; }
5799 ac_res=$ac_cv_search_strlcpy
5800 if test "$ac_res" != no; then :
5801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5804 NO_STRLCPY=YesPlease
5809 NO_STRLCPY=YesPlease
5813 config_appended_defs="$config_appended_defs${newline}NO_STRLCPY=${NO_STRLCPY}"
5815 # Define NO_UINTMAX_T if your platform does not have uintmax_t
5816 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
5817 #include <inttypes.h>
5820 if test "x$ac_cv_type_uintmax_t" = xyes; then :
5823 NO_UINTMAX_T=YesPlease
5827 config_appended_defs="$config_appended_defs${newline}NO_UINTMAX_T=${NO_UINTMAX_T}"
5829 # Define NO_STRTOUMAX if you don't have strtoumax in the C library.
5830 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
5831 if test "x$ac_cv_func_strtoumax" = xyes; then :
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strtoumax" >&5
5834 $as_echo_n "checking for library containing strtoumax... " >&6; }
5835 if ${ac_cv_search_strtoumax+:} false; then :
5836 $as_echo_n "(cached) " >&6
5838 ac_func_search_save_LIBS=$LIBS
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5852 return strtoumax ();
5857 for ac_lib in '' ; do
5858 if test -z "$ac_lib"; then
5859 ac_res="none required"
5862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5864 if ac_fn_c_try_link "$LINENO"; then :
5865 ac_cv_search_strtoumax=$ac_res
5867 rm -f core conftest.err conftest.$ac_objext \
5869 if ${ac_cv_search_strtoumax+:} false; then :
5873 if ${ac_cv_search_strtoumax+:} false; then :
5876 ac_cv_search_strtoumax=no
5879 LIBS=$ac_func_search_save_LIBS
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strtoumax" >&5
5882 $as_echo "$ac_cv_search_strtoumax" >&6; }
5883 ac_res=$ac_cv_search_strtoumax
5884 if test "$ac_res" != no; then :
5885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5888 NO_STRTOUMAX=YesPlease
5893 NO_STRTOUMAX=YesPlease
5897 config_appended_defs="$config_appended_defs${newline}NO_STRTOUMAX=${NO_STRTOUMAX}"
5899 # Define NO_SETENV if you don't have setenv in the C library.
5900 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
5901 if test "x$ac_cv_func_setenv" = xyes; then :
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setenv" >&5
5904 $as_echo_n "checking for library containing setenv... " >&6; }
5905 if ${ac_cv_search_setenv+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 ac_func_search_save_LIBS=$LIBS
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5912 /* Override any GCC internal prototype to avoid an error.
5913 Use char because int might match the return type of a GCC
5914 builtin and then its argument prototype would still apply. */
5927 for ac_lib in '' ; do
5928 if test -z "$ac_lib"; then
5929 ac_res="none required"
5932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5934 if ac_fn_c_try_link "$LINENO"; then :
5935 ac_cv_search_setenv=$ac_res
5937 rm -f core conftest.err conftest.$ac_objext \
5939 if ${ac_cv_search_setenv+:} false; then :
5943 if ${ac_cv_search_setenv+:} false; then :
5946 ac_cv_search_setenv=no
5949 LIBS=$ac_func_search_save_LIBS
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setenv" >&5
5952 $as_echo "$ac_cv_search_setenv" >&6; }
5953 ac_res=$ac_cv_search_setenv
5954 if test "$ac_res" != no; then :
5955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5967 config_appended_defs="$config_appended_defs${newline}NO_SETENV=${NO_SETENV}"
5969 # Define NO_UNSETENV if you don't have unsetenv in the C library.
5970 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
5971 if test "x$ac_cv_func_unsetenv" = xyes; then :
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing unsetenv" >&5
5974 $as_echo_n "checking for library containing unsetenv... " >&6; }
5975 if ${ac_cv_search_unsetenv+:} false; then :
5976 $as_echo_n "(cached) " >&6
5978 ac_func_search_save_LIBS=$LIBS
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 /* Override any GCC internal prototype to avoid an error.
5983 Use char because int might match the return type of a GCC
5984 builtin and then its argument prototype would still apply. */
5997 for ac_lib in '' ; do
5998 if test -z "$ac_lib"; then
5999 ac_res="none required"
6002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6004 if ac_fn_c_try_link "$LINENO"; then :
6005 ac_cv_search_unsetenv=$ac_res
6007 rm -f core conftest.err conftest.$ac_objext \
6009 if ${ac_cv_search_unsetenv+:} false; then :
6013 if ${ac_cv_search_unsetenv+:} false; then :
6016 ac_cv_search_unsetenv=no
6019 LIBS=$ac_func_search_save_LIBS
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_unsetenv" >&5
6022 $as_echo "$ac_cv_search_unsetenv" >&6; }
6023 ac_res=$ac_cv_search_unsetenv
6024 if test "$ac_res" != no; then :
6025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6028 NO_UNSETENV=YesPlease
6033 NO_UNSETENV=YesPlease
6037 config_appended_defs="$config_appended_defs${newline}NO_UNSETENV=${NO_UNSETENV}"
6039 # Define NO_MKDTEMP if you don't have mkdtemp in the C library.
6040 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
6041 if test "x$ac_cv_func_mkdtemp" = xyes; then :
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkdtemp" >&5
6044 $as_echo_n "checking for library containing mkdtemp... " >&6; }
6045 if ${ac_cv_search_mkdtemp+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 ac_func_search_save_LIBS=$LIBS
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6052 /* Override any GCC internal prototype to avoid an error.
6053 Use char because int might match the return type of a GCC
6054 builtin and then its argument prototype would still apply. */
6067 for ac_lib in '' ; do
6068 if test -z "$ac_lib"; then
6069 ac_res="none required"
6072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 ac_cv_search_mkdtemp=$ac_res
6077 rm -f core conftest.err conftest.$ac_objext \
6079 if ${ac_cv_search_mkdtemp+:} false; then :
6083 if ${ac_cv_search_mkdtemp+:} false; then :
6086 ac_cv_search_mkdtemp=no
6089 LIBS=$ac_func_search_save_LIBS
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkdtemp" >&5
6092 $as_echo "$ac_cv_search_mkdtemp" >&6; }
6093 ac_res=$ac_cv_search_mkdtemp
6094 if test "$ac_res" != no; then :
6095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6098 NO_MKDTEMP=YesPlease
6103 NO_MKDTEMP=YesPlease
6107 config_appended_defs="$config_appended_defs${newline}NO_MKDTEMP=${NO_MKDTEMP}"
6109 # Define NO_MKSTEMPS if you don't have mkstemps in the C library.
6110 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
6111 if test "x$ac_cv_func_mkstemps" = xyes; then :
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkstemps" >&5
6114 $as_echo_n "checking for library containing mkstemps... " >&6; }
6115 if ${ac_cv_search_mkstemps+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 ac_func_search_save_LIBS=$LIBS
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6122 /* Override any GCC internal prototype to avoid an error.
6123 Use char because int might match the return type of a GCC
6124 builtin and then its argument prototype would still apply. */
6137 for ac_lib in '' ; do
6138 if test -z "$ac_lib"; then
6139 ac_res="none required"
6142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6144 if ac_fn_c_try_link "$LINENO"; then :
6145 ac_cv_search_mkstemps=$ac_res
6147 rm -f core conftest.err conftest.$ac_objext \
6149 if ${ac_cv_search_mkstemps+:} false; then :
6153 if ${ac_cv_search_mkstemps+:} false; then :
6156 ac_cv_search_mkstemps=no
6159 LIBS=$ac_func_search_save_LIBS
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkstemps" >&5
6162 $as_echo "$ac_cv_search_mkstemps" >&6; }
6163 ac_res=$ac_cv_search_mkstemps
6164 if test "$ac_res" != no; then :
6165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6168 NO_MKSTEMPS=YesPlease
6173 NO_MKSTEMPS=YesPlease
6177 config_appended_defs="$config_appended_defs${newline}NO_MKSTEMPS=${NO_MKSTEMPS}"
6179 # Define NO_INITGROUPS if you don't have initgroups in the C library.
6180 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
6181 if test "x$ac_cv_func_initgroups" = xyes; then :
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initgroups" >&5
6184 $as_echo_n "checking for library containing initgroups... " >&6; }
6185 if ${ac_cv_search_initgroups+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 ac_func_search_save_LIBS=$LIBS
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6192 /* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6202 return initgroups ();
6207 for ac_lib in '' ; do
6208 if test -z "$ac_lib"; then
6209 ac_res="none required"
6212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6214 if ac_fn_c_try_link "$LINENO"; then :
6215 ac_cv_search_initgroups=$ac_res
6217 rm -f core conftest.err conftest.$ac_objext \
6219 if ${ac_cv_search_initgroups+:} false; then :
6223 if ${ac_cv_search_initgroups+:} false; then :
6226 ac_cv_search_initgroups=no
6229 LIBS=$ac_func_search_save_LIBS
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initgroups" >&5
6232 $as_echo "$ac_cv_search_initgroups" >&6; }
6233 ac_res=$ac_cv_search_initgroups
6234 if test "$ac_res" != no; then :
6235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6238 NO_INITGROUPS=YesPlease
6243 NO_INITGROUPS=YesPlease
6247 config_appended_defs="$config_appended_defs${newline}NO_INITGROUPS=${NO_INITGROUPS}"
6250 # Define NO_MMAP if you want to avoid mmap.
6252 # Define NO_ICONV if your libc does not properly support iconv.
6256 # Define USE_PIC if you need the main git objects to be built with -fPIC
6257 # in order to build and link perl/Git.so. x86-64 seems to need this.
6259 # Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
6260 # Enable it on Windows. By default, symrefs are still used.
6262 # Define NO_PTHREADS if we do not have pthreads.
6264 # Define PTHREAD_LIBS to the linker flag used for Pthread support.
6268 NO_PTHREADS=UnfortunatelyYes
6271 if test -n "$USER_NOPTHREAD"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping POSIX Threads at user request." >&5
6273 $as_echo "$as_me: Skipping POSIX Threads at user request." >&6;}
6274 # handle these separately since PTHREAD_CFLAGS could be '-lpthreads
6275 # -D_REENTRANT' or some such.
6276 elif test -z "$PTHREAD_CFLAGS"; then
6278 # Attempt to compile and link some code using pthreads to determine
6279 # required linker flags. The order is somewhat important here: We
6280 # first try it without any extra flags, to catch systems where
6281 # pthreads are part of the C library, then go on testing various other
6282 # flags. We do so to avoid false positives. For example, on Mac OS X
6283 # pthreads are part of the C library; moreover, the compiler allows us
6284 # to add "-mt" to the CFLAGS (although it will do nothing except
6285 # trigger a warning about an unused flag). Hence if we checked for
6286 # "-mt" before "" we would end up picking it. But unfortunately this
6287 # would then trigger compiler warnings on every single file we compile.
6288 for opt in "" -mt -pthread -lpthread; do
6289 old_CFLAGS="$CFLAGS"
6290 CFLAGS="$opt $CFLAGS"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Threads with '$opt'" >&5
6292 $as_echo_n "checking for POSIX Threads with '$opt'... " >&6; }
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6297 #include <pthread.h>
6303 pthread_mutex_t test_mutex;
6304 pthread_key_t test_key;
6306 retcode |= pthread_key_create(&test_key, (void *)0);
6307 retcode |= pthread_mutex_init(&test_mutex,(void *)0);
6308 retcode |= pthread_mutex_lock(&test_mutex);
6309 retcode |= pthread_mutex_unlock(&test_mutex);
6316 if ac_fn_c_try_link "$LINENO"; then :
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6318 $as_echo "yes" >&6; }
6321 PTHREAD_CFLAGS="$opt"
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6331 CFLAGS="$old_CFLAGS"
6333 if test $threads_found != yes; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6335 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6336 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 ac_check_lib_save_LIBS=$LIBS
6340 LIBS="-lpthread $LIBS"
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6344 /* Override any GCC internal prototype to avoid an error.
6345 Use char because int might match the return type of a GCC
6346 builtin and then its argument prototype would still apply. */
6350 char pthread_create ();
6354 return pthread_create ();
6359 if ac_fn_c_try_link "$LINENO"; then :
6360 ac_cv_lib_pthread_pthread_create=yes
6362 ac_cv_lib_pthread_pthread_create=no
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_check_lib_save_LIBS
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6369 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6370 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6371 PTHREAD_LIBS="-lpthread"
6373 NO_PTHREADS=UnfortunatelyYes
6378 old_CFLAGS="$CFLAGS"
6379 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Threads with '$PTHREAD_CFLAGS'" >&5
6381 $as_echo_n "checking for POSIX Threads with '$PTHREAD_CFLAGS'... " >&6; }
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6386 #include <pthread.h>
6392 pthread_mutex_t test_mutex;
6393 pthread_key_t test_key;
6395 retcode |= pthread_key_create(&test_key, (void *)0);
6396 retcode |= pthread_mutex_init(&test_mutex,(void *)0);
6397 retcode |= pthread_mutex_lock(&test_mutex);
6398 retcode |= pthread_mutex_unlock(&test_mutex);
6405 if ac_fn_c_try_link "$LINENO"; then :
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6407 $as_echo "yes" >&6; }
6409 PTHREAD_LIBS="$PTHREAD_CFLAGS"
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6415 rm -f core conftest.err conftest.$ac_objext \
6416 conftest$ac_exeext conftest.$ac_ext
6418 CFLAGS="$old_CFLAGS"
6421 CFLAGS="$old_CFLAGS"
6424 config_appended_defs="$config_appended_defs${newline}PTHREAD_CFLAGS=${PTHREAD_CFLAGS}"
6426 config_appended_defs="$config_appended_defs${newline}PTHREAD_LIBS=${PTHREAD_LIBS}"
6428 config_appended_defs="$config_appended_defs${newline}NO_PTHREADS=${NO_PTHREADS}"
6431 ac_config_files="$ac_config_files "${config_file}":"${config_in}""
6433 cat >confcache <<\_ACEOF
6434 # This file is a shell script that caches the results of configure
6435 # tests run on this system so they can be shared between configure
6436 # scripts and configure runs, see configure's option --config-cache.
6437 # It is not useful on other systems. If it contains results you don't
6438 # want to keep, you may remove or edit it.
6440 # config.status only pays attention to the cache file if you give it
6441 # the --recheck option to rerun configure.
6443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6449 # The following way of writing the cache mishandles newlines in values,
6450 # but we know of no workaround that is simple, portable, and efficient.
6451 # So, we kill variables containing newlines.
6452 # Ultrix sh set writes to stderr and can't be redirected directly,
6453 # and sets the high bit in the cache file unless we assign to the vars.
6455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6456 eval ac_val=\$$ac_var
6460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6464 _ | IFS | as_nl) ;; #(
6465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6466 *) { eval $ac_var=; unset $ac_var;} ;;
6472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6473 *${as_nl}ac_space=\ *)
6474 # `set' does not quote correctly, so add quotes: double-quote
6475 # substitution turns \\\\ into \\, and sed turns \\ into \.
6478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6481 # `set' quotes correctly as required by POSIX, so do not add quotes.
6482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6496 if test -w "$cache_file"; then
6497 if test "x$cache_file" != "x/dev/null"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6499 $as_echo "$as_me: updating cache $cache_file" >&6;}
6500 if test ! -f "$cache_file" || test -h "$cache_file"; then
6501 cat confcache >"$cache_file"
6503 case $cache_file in #(
6505 mv -f confcache "$cache_file"$$ &&
6506 mv -f "$cache_file"$$ "$cache_file" ;; #(
6508 mv -f confcache "$cache_file" ;;
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6520 # Let make expand exec_prefix.
6521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6523 # Transform confdefs.h into DEFS.
6524 # Protect against shell expansion while executing Makefile rules.
6525 # Protect against Makefile macro expansion.
6527 # If the first sed substitution is executed (which looks for macros that
6528 # take arguments), then branch to the quote section. Otherwise,
6529 # look for a macro that doesn't take arguments.
6539 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6541 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6545 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6558 DEFS=`sed -n "$ac_script" confdefs.h`
6564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6565 # 1. Remove the extension, and $U if already installed.
6566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6569 # will be set to the directory where LIBOBJS objects are built.
6570 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6571 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6575 LTLIBOBJS=$ac_ltlibobjs
6579 : "${CONFIG_STATUS=./config.status}"
6581 ac_clean_files_save=$ac_clean_files
6582 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6584 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6586 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6588 # Generated by $as_me.
6589 # Run this file to recreate the current configuration.
6590 # Compiler output produced by configure, useful for debugging
6591 # configure, is in config.log if it exists.
6597 SHELL=\${CONFIG_SHELL-$SHELL}
6600 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6601 ## -------------------- ##
6602 ## M4sh Initialization. ##
6603 ## -------------------- ##
6605 # Be more Bourne compatible
6606 DUALCASE=1; export DUALCASE # for MKS sh
6607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6611 # is contrary to our usage. Disable this feature.
6612 alias -g '${1+"$@"}'='"$@"'
6613 setopt NO_GLOB_SUBST
6615 case `(set -o) 2>/dev/null` in #(
6627 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6628 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6631 # Prefer a ksh shell builtin over an external printf program on Solaris,
6632 # but without wasting forks for bash or zsh.
6633 if test -z "$BASH_VERSION$ZSH_VERSION" \
6634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6635 as_echo='print -r --'
6636 as_echo_n='print -rn --'
6637 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6638 as_echo='printf %s\n'
6639 as_echo_n='printf %s'
6641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6643 as_echo_n='/usr/ucb/echo -n'
6645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6646 as_echo_n_body='eval
6650 expr "X$arg" : "X\\(.*\\)$as_nl";
6651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6655 export as_echo_n_body
6656 as_echo_n='sh -c $as_echo_n_body as_echo'
6659 as_echo='sh -c $as_echo_body as_echo'
6662 # The user is always right.
6663 if test "${PATH_SEPARATOR+set}" != set; then
6665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6673 # We need space, tab and new line, in precisely that order. Quoting is
6674 # there to prevent editors from complaining about space-tab.
6675 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6676 # splitting by setting IFS to empty value.)
6679 # Find who we are. Look in the path if we contain no directory separator.
6682 *[\\/]* ) as_myself=$0 ;;
6683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6694 # We did not find ourselves, most probably we were run as `sh COMMAND'
6695 # in which case we are not to be found in the path.
6696 if test "x$as_myself" = x; then
6699 if test ! -f "$as_myself"; then
6700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6704 # Unset variables that we do not need and which cause bugs (e.g. in
6705 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6706 # suppresses any "Segmentation fault" message there. '((' could
6707 # trigger a bug in pdksh 5.2.14.
6708 for as_var in BASH_ENV ENV MAIL MAILPATH
6709 do eval test x\${$as_var+set} = xset \
6710 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6723 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6726 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6727 # ----------------------------------------
6728 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6729 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6730 # script with STATUS, using 1 if that was 0.
6733 as_status=$1; test $as_status -eq 0 && as_status=1
6735 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6736 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6738 $as_echo "$as_me: error: $2" >&2
6739 as_fn_exit $as_status
6743 # as_fn_set_status STATUS
6744 # -----------------------
6745 # Set $? to STATUS, without forking.
6749 } # as_fn_set_status
6753 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6763 # Portably unset VAR.
6766 { eval $1=; unset $1;}
6768 as_unset=as_fn_unset
6769 # as_fn_append VAR VALUE
6770 # ----------------------
6771 # Append the text in VALUE to the end of the definition contained in VAR. Take
6772 # advantage of any shell optimizations that allow amortized linear growth over
6773 # repeated appends, instead of the typical quadratic growth present in naive
6775 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6776 eval 'as_fn_append ()
6787 # as_fn_arith ARG...
6788 # ------------------
6789 # Perform arithmetic evaluation on the ARGs, and store the result in the
6790 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6791 # must be portable across $(()) and expr.
6792 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6793 eval 'as_fn_arith ()
6800 as_val=`expr "$@" || test $? -eq 1`
6805 if expr a : '\(a\)' >/dev/null 2>&1 &&
6806 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6812 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6813 as_basename=basename
6818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6824 as_me=`$as_basename -- "$0" ||
6825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6826 X"$0" : 'X\(//\)$' \| \
6827 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6829 sed '/^.*\/\([^/][^/]*\)\/*$/{
6843 # Avoid depending upon Character Ranges.
6844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6847 as_cr_digits='0123456789'
6848 as_cr_alnum=$as_cr_Letters$as_cr_digits
6850 ECHO_C= ECHO_N= ECHO_T=
6851 case `echo -n x` in #(((((
6853 case `echo 'xy\c'` in
6854 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6856 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6863 rm -f conf$$ conf$$.exe conf$$.file
6864 if test -d conf$$.dir; then
6865 rm -f conf$$.dir/conf$$.file
6868 mkdir conf$$.dir 2>/dev/null
6870 if (echo >conf$$.file) 2>/dev/null; then
6871 if ln -s conf$$.file conf$$ 2>/dev/null; then
6873 # ... but there are two gotchas:
6874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6876 # In both cases, we have to default to `cp -p'.
6877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6879 elif ln conf$$.file conf$$ 2>/dev/null; then
6887 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6888 rmdir conf$$.dir 2>/dev/null
6893 # Create "$as_dir" as a directory, including parents if necessary.
6898 -*) as_dir=./$as_dir;;
6900 test -d "$as_dir" || eval $as_mkdir_p || {
6904 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6905 *) as_qdir=$as_dir;;
6907 as_dirs="'$as_qdir' $as_dirs"
6908 as_dir=`$as_dirname -- "$as_dir" ||
6909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6910 X"$as_dir" : 'X\(//\)[^/]' \| \
6911 X"$as_dir" : 'X\(//\)$' \| \
6912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6913 $as_echo X"$as_dir" |
6914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6931 test -d "$as_dir" && break
6933 test -z "$as_dirs" || eval "mkdir $as_dirs"
6934 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6938 if mkdir -p . 2>/dev/null; then
6939 as_mkdir_p='mkdir -p "$as_dir"'
6941 test -d ./-p && rmdir ./-p
6945 if test -x / >/dev/null 2>&1; then
6948 if ls -dL / >/dev/null 2>&1; then
6955 if test -d "$1"; then
6961 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6962 ???[sx]*):;;*)false;;esac;fi
6966 as_executable_p=$as_test_x
6968 # Sed expression to map a string onto a valid CPP name.
6969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6971 # Sed expression to map a string onto a valid variable name.
6972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6976 ## ----------------------------------- ##
6977 ## Main body of $CONFIG_STATUS script. ##
6978 ## ----------------------------------- ##
6980 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6983 # Save the log message, to keep $0 and so on meaningful, and to
6984 # report actual input values of CONFIG_FILES etc. instead of their
6985 # values after options handling.
6987 This file was extended by git $as_me 2.0.1, which was
6988 generated by GNU Autoconf 2.68. Invocation command line was
6990 CONFIG_FILES = $CONFIG_FILES
6991 CONFIG_HEADERS = $CONFIG_HEADERS
6992 CONFIG_LINKS = $CONFIG_LINKS
6993 CONFIG_COMMANDS = $CONFIG_COMMANDS
6996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7001 case $ac_config_files in *"
7002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7008 # Files that config.status was made for.
7009 config_files="$ac_config_files"
7010 config_commands="$ac_config_commands"
7014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7016 \`$as_me' instantiates files and other configuration actions
7017 from templates according to the current configuration. Unless the files
7018 and actions are specified as TAGs, all are instantiated by default.
7020 Usage: $0 [OPTION]... [TAG]...
7022 -h, --help print this help, then exit
7023 -V, --version print version number and configuration settings, then exit
7024 --config print configuration, then exit
7025 -q, --quiet, --silent
7026 do not print progress messages
7027 -d, --debug don't remove temporary files
7028 --recheck update $as_me by reconfiguring in the same conditions
7029 --file=FILE[:TEMPLATE]
7030 instantiate the configuration file FILE
7032 Configuration files:
7035 Configuration commands:
7038 Report bugs to <git@vger.kernel.org>."
7041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7044 git config.status 2.0.1
7045 configured by $0, generated by GNU Autoconf 2.68,
7046 with options \\"\$ac_cs_config\\"
7048 Copyright (C) 2010 Free Software Foundation, Inc.
7049 This config.status script is free software; the Free Software Foundation
7050 gives unlimited permission to copy, distribute and modify it."
7054 test -n "\$AWK" || AWK=awk
7057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7058 # The default lists apply if the user does not specify any file.
7064 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7065 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7069 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7081 # Handling of the options.
7082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7084 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7085 $as_echo "$ac_cs_version"; exit ;;
7086 --config | --confi | --conf | --con | --co | --c )
7087 $as_echo "$ac_cs_config"; exit ;;
7088 --debug | --debu | --deb | --de | --d | -d )
7090 --file | --fil | --fi | --f )
7093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7094 '') as_fn_error $? "missing file argument" ;;
7096 as_fn_append CONFIG_FILES " '$ac_optarg'"
7097 ac_need_defaults=false;;
7098 --he | --h | --help | --hel | -h )
7099 $as_echo "$ac_cs_usage"; exit ;;
7100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7101 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7105 -*) as_fn_error $? "unrecognized option: \`$1'
7106 Try \`$0 --help' for more information." ;;
7108 *) as_fn_append ac_config_targets " $1"
7109 ac_need_defaults=false ;;
7115 ac_configure_extra_args=
7117 if $ac_cs_silent; then
7119 ac_configure_extra_args="$ac_configure_extra_args --silent"
7123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7124 if \$ac_cs_recheck; then
7125 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7127 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7128 CONFIG_SHELL='$SHELL'
7134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7138 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7139 ## Running $as_me. ##
7145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7149 config_file=$config_file
7150 config_appended_defs="$config_appended_defs"
7154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7156 # Handling of arguments.
7157 for ac_config_target in $ac_config_targets
7159 case $ac_config_target in
7160 "$config_file") CONFIG_COMMANDS="$CONFIG_COMMANDS $config_file" ;;
7161 ""${config_file}"") CONFIG_FILES="$CONFIG_FILES "${config_file}":"${config_in}"" ;;
7163 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7168 # If the user did not use the arguments to specify the items to instantiate,
7169 # then the envvar interface is used. Set only those that are not.
7170 # We use the long form for the default assignment because of an extremely
7171 # bizarre bug on SunOS 4.1.3.
7172 if $ac_need_defaults; then
7173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7177 # Have a temporary directory for convenience. Make it in the build tree
7178 # simply because there is no reason against having it here, and in addition,
7179 # creating and moving files from /tmp can sometimes cause problems.
7180 # Hook for its removal unless debugging.
7181 # Note that there is a small window in which the directory will not be cleaned:
7182 # after its creation but before its name has been assigned to `$tmp'.
7186 trap 'exit_status=$?
7188 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7190 trap 'as_fn_exit 1' 1 2 13 15
7192 # Create a (secure) tmp directory for tmp files.
7195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7199 tmp=./conf$$-$RANDOM
7200 (umask 077 && mkdir "$tmp")
7201 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7204 # Set up the scripts for CONFIG_FILES section.
7205 # No need to generate them if there are no CONFIG_FILES.
7206 # This happens for instance with `./config.status config.h'.
7207 if test -n "$CONFIG_FILES"; then
7210 ac_cr=`echo X | tr X '\015'`
7211 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7212 # But we know of no other shell where ac_cr would be empty at this
7213 # point, so we can use a bashism as a fallback.
7214 if test "x$ac_cr" = x; then
7215 eval ac_cr=\$\'\\r\'
7217 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7218 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7224 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7229 echo "cat >conf$$subs.awk <<_ACEOF" &&
7230 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7233 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7234 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7236 for ac_last_try in false false false false false :; do
7237 . ./conf$$subs.sh ||
7238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7240 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7241 if test $ac_delim_n = $ac_delim_num; then
7243 elif $ac_last_try; then
7244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7252 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7256 s/^/S["/; s/!.*/"]=/
7266 s/\(.\{148\}\)..*/\1/
7268 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7280 s/\(.\{148\}\)..*/\1/
7282 s/["\\]/\\&/g; s/^/"/; s/$/"/
7286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7291 ' <conf$$subs.awk | sed '
7296 ' >>$CONFIG_STATUS || ac_write_fail=1
7297 rm -f conf$$subs.awk
7298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7300 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7301 for (key in S) S_is_set[key] = 1
7307 nfields = split(line, field, "@")
7309 len = length(field[1])
7310 for (i = 2; i < nfields; i++) {
7312 keylen = length(key)
7313 if (S_is_set[key]) {
7315 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7316 len += length(value) + length(field[++i])
7327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7328 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7329 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7332 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7333 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7336 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7337 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7338 # trailing colons and then remove the whole line if VPATH becomes empty
7339 # (actually we leave an empty line to preserve line numbers).
7340 if test "x$srcdir" = x.; then
7341 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7360 fi # test -n "$CONFIG_FILES"
7363 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7368 :[FHLC]) ac_mode=$ac_tag; continue;;
7370 case $ac_mode$ac_tag in
7372 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7373 :[FH]-) ac_tag=-:-;;
7374 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7391 -) ac_f="$ac_tmp/stdin";;
7392 *) # Look for the file first in the build tree, then in the source tree
7393 # (if the path is not absolute). The absolute path cannot be DOS-style,
7394 # because $ac_f cannot contain `:'.
7398 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7400 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7402 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7403 as_fn_append ac_file_inputs " '$ac_f'"
7406 # Let's still pretend it is `configure' which instantiates (i.e., don't
7407 # use $as_me), people would be surprised to read:
7408 # /* config.h. Generated by config.status. */
7409 configure_input='Generated from '`
7410 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7412 if test x"$ac_file" != x-; then
7413 configure_input="$ac_file. $configure_input"
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7415 $as_echo "$as_me: creating $ac_file" >&6;}
7417 # Neutralize special characters interpreted by sed in replacement strings.
7418 case $configure_input in #(
7419 *\&* | *\|* | *\\* )
7420 ac_sed_conf_input=`$as_echo "$configure_input" |
7421 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7422 *) ac_sed_conf_input=$configure_input;;
7426 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7432 ac_dir=`$as_dirname -- "$ac_file" ||
7433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7434 X"$ac_file" : 'X\(//\)[^/]' \| \
7435 X"$ac_file" : 'X\(//\)$' \| \
7436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7437 $as_echo X"$ac_file" |
7438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7455 as_dir="$ac_dir"; as_fn_mkdir_p
7459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7462 # A ".." for each directory in $ac_dir_suffix.
7463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7464 case $ac_top_builddir_sub in
7465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7469 ac_abs_top_builddir=$ac_pwd
7470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7471 # for backward compatibility:
7472 ac_top_builddir=$ac_top_build_prefix
7475 .) # We are building in place.
7477 ac_top_srcdir=$ac_top_builddir_sub
7478 ac_abs_top_srcdir=$ac_pwd ;;
7479 [\\/]* | ?:[\\/]* ) # Absolute name.
7480 ac_srcdir=$srcdir$ac_dir_suffix;
7481 ac_top_srcdir=$srcdir
7482 ac_abs_top_srcdir=$srcdir ;;
7484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7485 ac_top_srcdir=$ac_top_build_prefix$srcdir
7486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7500 # If the template does not know about datarootdir, expand it.
7501 # FIXME: This hack should be removed a few years after 2.60.
7502 ac_datarootdir_hack=; ac_datarootdir_seen=
7513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7514 *datarootdir*) ac_datarootdir_seen=yes;;
7515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7520 ac_datarootdir_hack='
7521 s&@datadir@&$datadir&g
7522 s&@docdir@&$docdir&g
7523 s&@infodir@&$infodir&g
7524 s&@localedir@&$localedir&g
7525 s&@mandir@&$mandir&g
7526 s&\\\${datarootdir}&$datarootdir&g' ;;
7530 # Neutralize VPATH when `$srcdir' = `.'.
7531 # Shell code in configure.ac might set extrasub.
7532 # FIXME: do we really want to maintain this feature?
7533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7534 ac_sed_extra="$ac_vpsub
7537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7540 s|@configure_input@|$ac_sed_conf_input|;t t
7541 s&@top_builddir@&$ac_top_builddir_sub&;t t
7542 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7543 s&@srcdir@&$ac_srcdir&;t t
7544 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7545 s&@top_srcdir@&$ac_top_srcdir&;t t
7546 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7547 s&@builddir@&$ac_builddir&;t t
7548 s&@abs_builddir@&$ac_abs_builddir&;t t
7549 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7550 $ac_datarootdir_hack
7552 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7553 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7558 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7560 which seems to be undefined. Please make sure it is defined" >&5
7561 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7562 which seems to be undefined. Please make sure it is defined" >&2;}
7564 rm -f "$ac_tmp/stdin"
7566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7574 $as_echo "$as_me: executing $ac_file commands" >&6;}
7579 case $ac_file$ac_mode in
7580 "$config_file":C) echo "$config_appended_defs" >> "$config_file" ;;
7588 ac_clean_files=$ac_clean_files_save
7590 test $ac_write_fail = 0 ||
7591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7594 # configure is writing to config.log, and then calls config.status.
7595 # config.status does its own redirection, appending to config.log.
7596 # Unfortunately, on DOS this fails, as config.log is still kept open
7597 # by configure, so config.status won't be able to write to it; its
7598 # output is simply discarded. So we exec the FD to /dev/null,
7599 # effectively closing config.log, so it can be properly (re)opened and
7600 # appended to by config.status. When coming back to configure, we
7601 # need to make the FD available again.
7602 if test "$no_create" != yes; then
7604 ac_config_status_args=
7605 test "$silent" = yes &&
7606 ac_config_status_args="$ac_config_status_args --quiet"
7608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7611 # would make configure fail if this is the last instruction.
7612 $ac_cs_success || as_fn_exit 1
7614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7616 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}