Imported Upstream version 2.0.1
[platform/upstream/git.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for git 2.0.1.
4 #
5 # Report bugs to <git@vger.kernel.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
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."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
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
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
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'"
535
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'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='git'
562 PACKAGE_TARNAME='git'
563 PACKAGE_VERSION='2.0.1'
564 PACKAGE_STRING='git 2.0.1'
565 PACKAGE_BUGREPORT='git@vger.kernel.org'
566 PACKAGE_URL=''
567
568 ac_unique_file="git.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 EGREP
608 GREP
609 CPP
610 ASCIIDOC
611 TCLTK_PATH
612 DIFF
613 TAR
614 ac_ct_AR
615 AR
616 OBJEXT
617 EXEEXT
618 ac_ct_CC
619 CPPFLAGS
620 LDFLAGS
621 CFLAGS
622 CC
623 target_alias
624 host_alias
625 build_alias
626 LIBS
627 ECHO_T
628 ECHO_N
629 ECHO_C
630 DEFS
631 mandir
632 localedir
633 libdir
634 psdir
635 pdfdir
636 dvidir
637 htmldir
638 infodir
639 docdir
640 oldincludedir
641 includedir
642 localstatedir
643 sharedstatedir
644 sysconfdir
645 datadir
646 datarootdir
647 libexecdir
648 sbindir
649 bindir
650 program_transform_name
651 prefix
652 exec_prefix
653 PACKAGE_URL
654 PACKAGE_BUGREPORT
655 PACKAGE_STRING
656 PACKAGE_VERSION
657 PACKAGE_TARNAME
658 PACKAGE_NAME
659 PATH_SEPARATOR
660 SHELL'
661 ac_subst_files=''
662 ac_user_opts='
663 enable_option_checking
664 with_sane_tool_path
665 with_lib
666 enable_pthreads
667 enable_jsmin
668 enable_cssmin
669 with_openssl
670 with_libpcre
671 with_curl
672 with_expat
673 with_iconv
674 with_gitconfig
675 with_gitattributes
676 with_pager
677 with_editor
678 with_shell
679 with_perl
680 with_python
681 with_zlib
682 with_tcltk
683 '
684       ac_precious_vars='build_alias
685 host_alias
686 target_alias
687 CC
688 CFLAGS
689 LDFLAGS
690 LIBS
691 CPPFLAGS
692 CPP'
693
694
695 # Initialize some variables set by options.
696 ac_init_help=
697 ac_init_version=false
698 ac_unrecognized_opts=
699 ac_unrecognized_sep=
700 # The variables have the same names as the options, with
701 # dashes changed to underlines.
702 cache_file=/dev/null
703 exec_prefix=NONE
704 no_create=
705 no_recursion=
706 prefix=NONE
707 program_prefix=NONE
708 program_suffix=NONE
709 program_transform_name=s,x,x,
710 silent=
711 site=
712 srcdir=
713 verbose=
714 x_includes=NONE
715 x_libraries=NONE
716
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'
735 htmldir='${docdir}'
736 dvidir='${docdir}'
737 pdfdir='${docdir}'
738 psdir='${docdir}'
739 libdir='${exec_prefix}/lib'
740 localedir='${datarootdir}/locale'
741 mandir='${datarootdir}/man'
742
743 ac_prev=
744 ac_dashdash=
745 for ac_option
746 do
747   # If the previous option needs an argument, assign it.
748   if test -n "$ac_prev"; then
749     eval $ac_prev=\$ac_option
750     ac_prev=
751     continue
752   fi
753
754   case $ac_option in
755   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756   *=)   ac_optarg= ;;
757   *)    ac_optarg=yes ;;
758   esac
759
760   # Accept the important Cygnus configure options, so we can diagnose typos.
761
762   case $ac_dashdash$ac_option in
763   --)
764     ac_dashdash=yes ;;
765
766   -bindir | --bindir | --bindi | --bind | --bin | --bi)
767     ac_prev=bindir ;;
768   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769     bindir=$ac_optarg ;;
770
771   -build | --build | --buil | --bui | --bu)
772     ac_prev=build_alias ;;
773   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
774     build_alias=$ac_optarg ;;
775
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 ;;
782
783   --config-cache | -C)
784     cache_file=config.cache ;;
785
786   -datadir | --datadir | --datadi | --datad)
787     ac_prev=datadir ;;
788   -datadir=* | --datadir=* | --datadi=* | --datad=*)
789     datadir=$ac_optarg ;;
790
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 ;;
797
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
806       *"
807 "enable_$ac_useropt"
808 "*) ;;
809       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
810          ac_unrecognized_sep=', ';;
811     esac
812     eval enable_$ac_useropt=no ;;
813
814   -docdir | --docdir | --docdi | --doc | --do)
815     ac_prev=docdir ;;
816   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
817     docdir=$ac_optarg ;;
818
819   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820     ac_prev=dvidir ;;
821   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
822     dvidir=$ac_optarg ;;
823
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
832       *"
833 "enable_$ac_useropt"
834 "*) ;;
835       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
836          ac_unrecognized_sep=', ';;
837     esac
838     eval enable_$ac_useropt=\$ac_optarg ;;
839
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 ;;
848
849   -gas | --gas | --ga | --g)
850     # Obsolete; use --with-gas.
851     with_gas=yes ;;
852
853   -help | --help | --hel | --he | -h)
854     ac_init_help=long ;;
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 ;;
859
860   -host | --host | --hos | --ho)
861     ac_prev=host_alias ;;
862   -host=* | --host=* | --hos=* | --ho=*)
863     host_alias=$ac_optarg ;;
864
865   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866     ac_prev=htmldir ;;
867   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868   | --ht=*)
869     htmldir=$ac_optarg ;;
870
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 ;;
877
878   -infodir | --infodir | --infodi | --infod | --info | --inf)
879     ac_prev=infodir ;;
880   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881     infodir=$ac_optarg ;;
882
883   -libdir | --libdir | --libdi | --libd)
884     ac_prev=libdir ;;
885   -libdir=* | --libdir=* | --libdi=* | --libd=*)
886     libdir=$ac_optarg ;;
887
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 ;;
894
895   -localedir | --localedir | --localedi | --localed | --locale)
896     ac_prev=localedir ;;
897   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898     localedir=$ac_optarg ;;
899
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 ;;
906
907   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908     ac_prev=mandir ;;
909   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
910     mandir=$ac_optarg ;;
911
912   -nfp | --nfp | --nf)
913     # Obsolete; use --without-fp.
914     with_fp=no ;;
915
916   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917   | --no-cr | --no-c | -n)
918     no_create=yes ;;
919
920   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
922     no_recursion=yes ;;
923
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 ;;
932
933   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934     ac_prev=prefix ;;
935   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
936     prefix=$ac_optarg ;;
937
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 ;;
944
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 ;;
951
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 ;;
968
969   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970     ac_prev=pdfdir ;;
971   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
972     pdfdir=$ac_optarg ;;
973
974   -psdir | --psdir | --psdi | --psd | --ps)
975     ac_prev=psdir ;;
976   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
977     psdir=$ac_optarg ;;
978
979   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980   | -silent | --silent | --silen | --sile | --sil)
981     silent=yes ;;
982
983   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984     ac_prev=sbindir ;;
985   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986   | --sbi=* | --sb=*)
987     sbindir=$ac_optarg ;;
988
989   -sharedstatedir | --sharedstatedir | --sharedstatedi \
990   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991   | --sharedst | --shareds | --shared | --share | --shar \
992   | --sha | --sh)
993     ac_prev=sharedstatedir ;;
994   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997   | --sha=* | --sh=*)
998     sharedstatedir=$ac_optarg ;;
999
1000   -site | --site | --sit)
1001     ac_prev=site ;;
1002   -site=* | --site=* | --sit=*)
1003     site=$ac_optarg ;;
1004
1005   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006     ac_prev=srcdir ;;
1007   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008     srcdir=$ac_optarg ;;
1009
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 ;;
1016
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 ;;
1021
1022   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1023     verbose=yes ;;
1024
1025   -version | --version | --versio | --versi | --vers | -V)
1026     ac_init_version=: ;;
1027
1028   -with-* | --with-*)
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
1036       *"
1037 "with_$ac_useropt"
1038 "*) ;;
1039       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040          ac_unrecognized_sep=', ';;
1041     esac
1042     eval with_$ac_useropt=\$ac_optarg ;;
1043
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
1052       *"
1053 "with_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval with_$ac_useropt=no ;;
1059
1060   --x)
1061     # Obsolete; use --with-x.
1062     with_x=yes ;;
1063
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 ;;
1070
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 ;;
1077
1078   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1079 Try \`$0 --help' for more information"
1080     ;;
1081
1082   *=*)
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'" ;;
1088     esac
1089     eval $ac_envvar=\$ac_optarg
1090     export $ac_envvar ;;
1091
1092   *)
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}"
1098     ;;
1099
1100   esac
1101 done
1102
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"
1106 fi
1107
1108 if test -n "$ac_unrecognized_opts"; then
1109   case $enable_option_checking in
1110     no) ;;
1111     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1112     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1113   esac
1114 fi
1115
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
1121 do
1122   eval ac_val=\$$ac_var
1123   # Remove trailing slashes.
1124   case $ac_val in
1125     */ )
1126       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127       eval $ac_var=\$ac_val;;
1128   esac
1129   # Be sure to have absolute directory names.
1130   case $ac_val in
1131     [\\/$]* | ?:[\\/]* )  continue;;
1132     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133   esac
1134   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1135 done
1136
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.
1140 build=$build_alias
1141 host=$host_alias
1142 target=$target_alias
1143
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
1151     cross_compiling=yes
1152   fi
1153 fi
1154
1155 ac_tool_prefix=
1156 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157
1158 test "$silent" = yes && exec 6>/dev/null
1159
1160
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"
1167
1168
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180             s//\1/
1181             q
1182           }
1183           /^X\(\/\/\)[^/].*/{
1184             s//\1/
1185             q
1186           }
1187           /^X\(\/\/\)$/{
1188             s//\1/
1189             q
1190           }
1191           /^X\(\/\).*/{
1192             s//\1/
1193             q
1194           }
1195           s/.*/./; q'`
1196   srcdir=$ac_confdir
1197   if test ! -r "$srcdir/$ac_unique_file"; then
1198     srcdir=..
1199   fi
1200 else
1201   ac_srcdir_defaulted=no
1202 fi
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"
1206 fi
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 ac_abs_confdir=`(
1209         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1210         pwd)`
1211 # When building in place, set srcdir=.
1212 if test "$ac_abs_confdir" = "$ac_pwd"; then
1213   srcdir=.
1214 fi
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.
1218 case $srcdir in
1219 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220 esac
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}
1226 done
1227
1228 #
1229 # Report the --help message.
1230 #
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.
1234   cat <<_ACEOF
1235 \`configure' configures git 2.0.1 to adapt to many kinds of systems.
1236
1237 Usage: $0 [OPTION]... [VAR=VALUE]...
1238
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.
1241
1242 Defaults for the options are specified in brackets.
1243
1244 Configuration:
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 \`..']
1254
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
1259                           [PREFIX]
1260
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'.
1265
1266 For better control, use the options below.
1267
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]
1288 _ACEOF
1289
1290   cat <<\_ACEOF
1291 _ACEOF
1292 fi
1293
1294 if test -n "$ac_init_help"; then
1295   case $ac_init_help in
1296      short | recursive ) echo "Configuration of git 2.0.1:";;
1297    esac
1298   cat <<\_ACEOF
1299
1300 Optional Features:
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
1311                           path to one.
1312
1313 Optional Packages:
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
1318                           generated scripts
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
1324                           headers
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.
1358
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>
1367   CPP         C preprocessor
1368
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.
1371
1372 Report bugs to <git@vger.kernel.org>.
1373 _ACEOF
1374 ac_status=$?
1375 fi
1376
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"; } ||
1382       continue
1383     ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
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/ ;;
1394   esac ;;
1395 esac
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
1400
1401 case $srcdir in
1402   .)  # We are building in place.
1403     ac_srcdir=.
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 ;;
1410   *) # Relative name.
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 ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417     cd "$ac_dir" || { ac_status=$?; continue; }
1418     # Check for guested configure.
1419     if test -f "$ac_srcdir/configure.gnu"; then
1420       echo &&
1421       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422     elif test -f "$ac_srcdir/configure"; then
1423       echo &&
1424       $SHELL "$ac_srcdir/configure" --help=recursive
1425     else
1426       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427     fi || ac_status=$?
1428     cd "$ac_pwd" || { ac_status=$?; break; }
1429   done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434   cat <<\_ACEOF
1435 git configure 2.0.1
1436 generated by GNU Autoconf 2.68
1437
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.
1441 _ACEOF
1442   exit
1443 fi
1444
1445 ## ------------------------ ##
1446 ## Autoconf initialization. ##
1447 ## ------------------------ ##
1448
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 ()
1453 {
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"
1457 case "(($ac_try" in
1458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1459   *) ac_try_echo=$ac_try;;
1460 esac
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
1464   ac_status=$?
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
1469   fi
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 :
1475   ac_retval=0
1476 else
1477   $as_echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1479
1480         ac_retval=1
1481 fi
1482   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1483   as_fn_set_status $ac_retval
1484
1485 } # ac_fn_c_try_compile
1486
1487 # ac_fn_c_try_link LINENO
1488 # -----------------------
1489 # Try to link conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_c_try_link ()
1491 {
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"
1495 case "(($ac_try" in
1496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497   *) ac_try_echo=$ac_try;;
1498 esac
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
1502   ac_status=$?
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
1507   fi
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
1515        }; then :
1516   ac_retval=0
1517 else
1518   $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1520
1521         ac_retval=1
1522 fi
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
1530
1531 } # ac_fn_c_try_link
1532
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 ()
1537 {
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
1543 else
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
1549
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.  */
1554
1555 #ifdef __STDC__
1556 # include <limits.h>
1557 #else
1558 # include <assert.h>
1559 #endif
1560
1561 #undef $2
1562
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.  */
1566 #ifdef __cplusplus
1567 extern "C"
1568 #endif
1569 char $2 ();
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
1574 choke me
1575 #endif
1576
1577 int
1578 main ()
1579 {
1580 return $2 ();
1581   ;
1582   return 0;
1583 }
1584 _ACEOF
1585 if ac_fn_c_try_link "$LINENO"; then :
1586   eval "$3=yes"
1587 else
1588   eval "$3=no"
1589 fi
1590 rm -f core conftest.err conftest.$ac_objext \
1591     conftest$ac_exeext conftest.$ac_ext
1592 fi
1593 eval ac_res=\$$3
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
1597
1598 } # ac_fn_c_check_func
1599
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1604 {
1605   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606   if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 case "(($ac_try" in
1608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609   *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614   ac_status=$?
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
1619   fi
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
1624        }; then :
1625   ac_retval=0
1626 else
1627   $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630     ac_retval=1
1631 fi
1632   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633   as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_cpp
1636
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
1641 # accordingly.
1642 ac_fn_c_check_header_mongrel ()
1643 {
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
1650 fi
1651 eval ac_res=\$$3
1652                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 else
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.  */
1660 $4
1661 #include <$2>
1662 _ACEOF
1663 if ac_fn_c_try_compile "$LINENO"; then :
1664   ac_header_compiler=yes
1665 else
1666   ac_header_compiler=no
1667 fi
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; }
1671
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.  */
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_cpp "$LINENO"; then :
1680   ac_header_preproc=yes
1681 else
1682   ac_header_preproc=no
1683 fi
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; }
1687
1688 # So?  What about this header?
1689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1690   yes:no: )
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;}
1695     ;;
1696   no:yes:* )
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
1711     ;;
1712 esac
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
1717 else
1718   eval "$3=\$ac_header_compiler"
1719 fi
1720 eval ac_res=\$$3
1721                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1723 fi
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_header_mongrel
1727
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.
1732 ac_fn_c_try_run ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738   *) ac_try_echo=$ac_try;;
1739 esac
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
1743   ac_status=$?
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;;
1749 esac
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
1753   ac_status=$?
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; }; }; then :
1756   ac_retval=0
1757 else
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
1761
1762        ac_retval=$ac_status
1763 fi
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
1767
1768 } # ac_fn_c_try_run
1769
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 ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780   $as_echo_n "(cached) " >&6
1781 else
1782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h.  */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788   eval "$3=yes"
1789 else
1790   eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
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
1798
1799 } # ac_fn_c_check_header_compile
1800
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 ()
1806 {
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
1812 else
1813   eval "$3=no"
1814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h.  */
1816 $4
1817 int
1818 main ()
1819 {
1820 if (sizeof ($2))
1821          return 0;
1822   ;
1823   return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 $4
1830 int
1831 main ()
1832 {
1833 if (sizeof (($2)))
1834             return 0;
1835   ;
1836   return 0;
1837 }
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840
1841 else
1842   eval "$3=yes"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
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
1852
1853 } # ac_fn_c_check_type
1854
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 ()
1860 {
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
1866 else
1867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 $5
1870 int
1871 main ()
1872 {
1873 static $2 ac_aggr;
1874 if (ac_aggr.$3)
1875 return 0;
1876   ;
1877   return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881   eval "$4=yes"
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 $5
1886 int
1887 main ()
1888 {
1889 static $2 ac_aggr;
1890 if (sizeof ac_aggr.$3)
1891 return 0;
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897   eval "$4=yes"
1898 else
1899   eval "$4=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$4
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
1909
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.
1914
1915 It was created by git $as_me 2.0.1, which was
1916 generated by GNU Autoconf 2.68.  Invocation command line was
1917
1918   $ $0 $@
1919
1920 _ACEOF
1921 exec 5>>config.log
1922 {
1923 cat <<_ASUNAME
1924 ## --------- ##
1925 ## Platform. ##
1926 ## --------- ##
1927
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`
1933
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`
1936
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`
1944
1945 _ASUNAME
1946
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952     $as_echo "PATH: $as_dir"
1953   done
1954 IFS=$as_save_IFS
1955
1956 } >&5
1957
1958 cat >&5 <<_ACEOF
1959
1960
1961 ## ----------- ##
1962 ## Core tests. ##
1963 ## ----------- ##
1964
1965 _ACEOF
1966
1967
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.
1973 ac_configure_args=
1974 ac_configure_args0=
1975 ac_configure_args1=
1976 ac_must_keep_next=false
1977 for ac_pass in 1 2
1978 do
1979   for ac_arg
1980   do
1981     case $ac_arg in
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)
1985       continue ;;
1986     *\'*)
1987       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1988     esac
1989     case $ac_pass in
1990     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1991     2)
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.
1995       else
1996         case $ac_arg in
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 ;;
2003             esac
2004             ;;
2005           -* ) ac_must_keep_next=true ;;
2006         esac
2007       fi
2008       as_fn_append ac_configure_args " '$ac_arg'"
2009       ;;
2010     esac
2011   done
2012 done
2013 { ac_configure_args0=; unset ac_configure_args0;}
2014 { ac_configure_args1=; unset ac_configure_args1;}
2015
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.
2023   {
2024     echo
2025
2026     $as_echo "## ---------------- ##
2027 ## Cache variables. ##
2028 ## ---------------- ##"
2029     echo
2030     # The following way of writing the cache mishandles newlines in values,
2031 (
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
2034     case $ac_val in #(
2035     *${as_nl}*)
2036       case $ac_var in #(
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;} ;;
2039       esac
2040       case $ac_var in #(
2041       _ | IFS | as_nl) ;; #(
2042       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043       *) { eval $ac_var=; unset $ac_var;} ;;
2044       esac ;;
2045     esac
2046   done
2047   (set) 2>&1 |
2048     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049     *${as_nl}ac_space=\ *)
2050       sed -n \
2051         "s/'\''/'\''\\\\'\'''\''/g;
2052           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2053       ;; #(
2054     *)
2055       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056       ;;
2057     esac |
2058     sort
2059 )
2060     echo
2061
2062     $as_echo "## ----------------- ##
2063 ## Output variables. ##
2064 ## ----------------- ##"
2065     echo
2066     for ac_var in $ac_subst_vars
2067     do
2068       eval ac_val=\$$ac_var
2069       case $ac_val in
2070       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071       esac
2072       $as_echo "$ac_var='\''$ac_val'\''"
2073     done | sort
2074     echo
2075
2076     if test -n "$ac_subst_files"; then
2077       $as_echo "## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##"
2080       echo
2081       for ac_var in $ac_subst_files
2082       do
2083         eval ac_val=\$$ac_var
2084         case $ac_val in
2085         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086         esac
2087         $as_echo "$ac_var='\''$ac_val'\''"
2088       done | sort
2089       echo
2090     fi
2091
2092     if test -s confdefs.h; then
2093       $as_echo "## ----------- ##
2094 ## confdefs.h. ##
2095 ## ----------- ##"
2096       echo
2097       cat confdefs.h
2098       echo
2099     fi
2100     test "$ac_signal" != 0 &&
2101       $as_echo "$as_me: caught signal $ac_signal"
2102     $as_echo "$as_me: exit $exit_status"
2103   } >&5
2104   rm -f core *.core core.conftest.* &&
2105     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106     exit $exit_status
2107 ' 0
2108 for ac_signal in 1 2 13 15; do
2109   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110 done
2111 ac_signal=0
2112
2113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2114 rm -f -r conftest* confdefs.h
2115
2116 $as_echo "/* confdefs.h */" > confdefs.h
2117
2118 # Predefined preprocessor variables.
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_NAME "$PACKAGE_NAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_STRING "$PACKAGE_STRING"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_URL "$PACKAGE_URL"
2142 _ACEOF
2143
2144
2145 # Let the site file select an alternate cache file if it wants to.
2146 # Prefer an explicitly selected file to automatically selected ones.
2147 ac_site_file1=NONE
2148 ac_site_file2=NONE
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;;
2155   esac
2156 elif test "x$prefix" != xNONE; then
2157   ac_site_file1=$prefix/share/config.site
2158   ac_site_file2=$prefix/etc/config.site
2159 else
2160   ac_site_file1=$ac_default_prefix/share/config.site
2161   ac_site_file2=$ac_default_prefix/etc/config.site
2162 fi
2163 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2164 do
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
2170     . "$ac_site_file" \
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; }
2175   fi
2176 done
2177
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;}
2184     case $cache_file in
2185       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186       *)                      . "./$cache_file";;
2187     esac
2188   fi
2189 else
2190   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192   >$cache_file
2193 fi
2194
2195 # Check that the precious variables saved in the cache have kept the same
2196 # value.
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
2204     set,)
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=: ;;
2208     ,set)
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=: ;;
2212     ,);;
2213     *)
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=:
2222         else
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
2226         fi
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;}
2231       fi;;
2232   esac
2233   # Pass precious variables to config.status.
2234   if test "$ac_new_set" = set; then
2235     case $ac_new_val in
2236     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237     *) ac_arg=$ac_var=$ac_new_val ;;
2238     esac
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'" ;;
2242     esac
2243   fi
2244 done
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
2251 fi
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2255
2256 ac_ext=c
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
2261
2262
2263
2264
2265
2266 config_file=config.mak.autogen
2267 config_in=config.mak.in
2268
2269 config_appended_defs=; newline='
2270 '
2271     ac_config_commands="$ac_config_commands $config_file"
2272
2273
2274 config_appended_defs="$config_appended_defs${newline}AUTOCONFIGURED=YesPlease"
2275
2276 # Directories holding "saner" versions of common or POSIX binaries.
2277
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
2281     withval=''
2282   else
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;}
2285   fi
2286
2287 config_appended_defs="$config_appended_defs${newline}SANE_TOOL_PATH=$withval"
2288 else
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.
2293    :
2294 fi
2295
2296
2297 ## Site configuration related to programs (before tests)
2298 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2299 #
2300 # Set lib to alternative name of lib directory (e.g. lib64)
2301
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;}
2307   else
2308         lib=$withval
2309         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to '$lib'" >&5
2310 $as_echo "$as_me: Setting lib to '$lib'" >&6;}
2311
2312 config_appended_defs="$config_appended_defs${newline}lib=${lib}"
2313   fi
2314 fi
2315
2316
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;}
2320    lib=lib
2321 fi
2322
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;}
2333 else
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
2337    USER_NOPTHREAD=1
2338 fi
2339 else
2340
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;}
2343
2344 fi
2345
2346
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;
2351   JSMIN=$enableval;
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;}
2354
2355 config_appended_defs="$config_appended_defs${newline}JSMIN=${JSMIN}"
2356
2357 fi
2358
2359
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;
2364   CSSMIN=$enableval;
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;}
2367
2368 config_appended_defs="$config_appended_defs${newline}CSSMIN=${CSSMIN}"
2369
2370 fi
2371
2372
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;}
2377 #
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.
2381 #
2382 # Define PPC_SHA1 environment variable when running make to make use of
2383 # a bundled SHA1 routine optimized for PowerPC.
2384 #
2385 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
2386 # This also implies BLK_SHA1.
2387 #
2388 # Define OPENSSLDIR=/foo/bar if your openssl header and library files are in
2389 # /foo/bar/include and /foo/bar/lib directories.
2390
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
2396         NO_OPENSSL=
2397     else
2398         NO_OPENSSL=
2399         OPENSSLDIR=$withval
2400         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting OPENSSLDIR to $withval" >&5
2401 $as_echo "$as_me: Setting OPENSSLDIR to $withval" >&6;}
2402
2403 config_appended_defs="$config_appended_defs${newline}OPENSSLDIR=$withval"
2404     fi
2405
2406 fi
2407
2408
2409 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
2410 # able to use Perl-compatible regular expressions.
2411 #
2412 # Define LIBPCREDIR=/foo/bar if your libpcre header and library files are in
2413 # /foo/bar/include and /foo/bar/lib directories.
2414 #
2415
2416 # Check whether --with-libpcre was given.
2417 if test "${with_libpcre+set}" = set; then :
2418   withval=$with_libpcre; if test "$withval" = "no"; then
2419         USE_LIBPCRE=
2420     elif test "$withval" = "yes"; then
2421         USE_LIBPCRE=YesPlease
2422     else
2423         USE_LIBPCRE=YesPlease
2424         LIBPCREDIR=$withval
2425         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting LIBPCREDIR to $LIBPCREDIR" >&5
2426 $as_echo "$as_me: Setting LIBPCREDIR to $LIBPCREDIR" >&6;}
2427
2428 config_appended_defs="$config_appended_defs${newline}LIBPCREDIR=${LIBPCREDIR}"
2429     fi
2430 fi
2431
2432 #
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://
2435 # transports.
2436 #
2437 # Define CURLDIR=/foo/bar if your curl header and library files are in
2438 # /foo/bar/include and /foo/bar/lib directories.
2439
2440 # Check whether --with-curl was given.
2441 if test "${with_curl+set}" = set; then :
2442   withval=$with_curl;     if test "$withval" = "no"; then
2443         NO_CURL=YesPlease
2444     elif test "$withval" = "yes"; then
2445         NO_CURL=
2446     else
2447         NO_CURL=
2448         CURLDIR=$withval
2449         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CURLDIR to $withval" >&5
2450 $as_echo "$as_me: Setting CURLDIR to $withval" >&6;}
2451
2452 config_appended_defs="$config_appended_defs${newline}CURLDIR=$withval"
2453     fi
2454
2455 fi
2456
2457 #
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.
2460 #
2461 # Define EXPATDIR=/foo/bar if your expat header and library files are in
2462 # /foo/bar/include and /foo/bar/lib directories.
2463
2464 # Check whether --with-expat was given.
2465 if test "${with_expat+set}" = set; then :
2466   withval=$with_expat;     if test "$withval" = "no"; then
2467         NO_EXPAT=YesPlease
2468     elif test "$withval" = "yes"; then
2469         NO_EXPAT=
2470     else
2471         NO_EXPAT=
2472         EXPATDIR=$withval
2473         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting EXPATDIR to $withval" >&5
2474 $as_echo "$as_me: Setting EXPATDIR to $withval" >&6;}
2475
2476 config_appended_defs="$config_appended_defs${newline}EXPATDIR=$withval"
2477     fi
2478
2479 fi
2480
2481 #
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.
2487 #
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.
2493 #
2494 # Define NO_MMAP if you want to avoid mmap.
2495 #
2496 # Define NO_ICONV if your libc does not properly support iconv.
2497
2498 # Check whether --with-iconv was given.
2499 if test "${with_iconv+set}" = set; then :
2500   withval=$with_iconv;     if test "$withval" = "no"; then
2501         NO_ICONV=YesPlease
2502     elif test "$withval" = "yes"; then
2503         NO_ICONV=
2504     else
2505         NO_ICONV=
2506         ICONVDIR=$withval
2507         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ICONVDIR to $withval" >&5
2508 $as_echo "$as_me: Setting ICONVDIR to $withval" >&6;}
2509
2510 config_appended_defs="$config_appended_defs${newline}ICONVDIR=$withval"
2511     fi
2512
2513 fi
2514
2515
2516 ## --enable-FEATURE[=ARG] and --disable-FEATURE
2517 #
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).
2523 #
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.
2526
2527 #
2528 # Allow user to set ETC_GITCONFIG variable
2529
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;}
2538   fi
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;}
2541
2542 config_appended_defs="$config_appended_defs${newline}ETC_GITCONFIG=$withval"
2543  fi
2544 fi
2545
2546
2547 #
2548 # Allow user to set ETC_GITATTRIBUTES variable
2549
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;}
2558   fi
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;}
2561
2562 config_appended_defs="$config_appended_defs${newline}ETC_GITATTRIBUTES=$withval"
2563  fi
2564 fi
2565
2566
2567 #
2568 # Allow user to set the default pager
2569
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;}
2578   fi
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;}
2581
2582 config_appended_defs="$config_appended_defs${newline}DEFAULT_PAGER=$withval"
2583  fi
2584 fi
2585
2586 #
2587 # Allow user to set the default editor
2588
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;}
2597   fi
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;}
2600
2601 config_appended_defs="$config_appended_defs${newline}DEFAULT_EDITOR=$withval"
2602  fi
2603 fi
2604
2605
2606 #
2607 # Define SHELL_PATH to provide path to shell.
2608
2609 # Check whether --with-shell was given.
2610 if test "${with_shell+set}" = set; then :
2611   withval=$with_shell;     if test "$withval" = "no"; then
2612         if test -n ""; then
2613                 SHELL_PATH=$withval
2614                 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of SHELL" >&5
2615 $as_echo "$as_me: Disabling use of SHELL" >&6;}
2616
2617 config_appended_defs="$config_appended_defs${newline}NO_SHELL=YesPlease"
2618
2619 config_appended_defs="$config_appended_defs${newline}SHELL_PATH="
2620         else
2621                 as_fn_error $? "You cannot use git without shell" "$LINENO" 5
2622         fi
2623     else
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;}
2627         else
2628                 SHELL_PATH=$withval
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;}
2631
2632 config_appended_defs="$config_appended_defs${newline}SHELL_PATH=$withval"
2633         fi
2634     fi
2635
2636 fi
2637
2638 #
2639 # Define PERL_PATH to provide path to Perl.
2640
2641 # Check whether --with-perl was given.
2642 if test "${with_perl+set}" = set; then :
2643   withval=$with_perl;     if test "$withval" = "no"; then
2644         if test -n ""; then
2645                 PERL_PATH=$withval
2646                 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of PERL" >&5
2647 $as_echo "$as_me: Disabling use of PERL" >&6;}
2648
2649 config_appended_defs="$config_appended_defs${newline}NO_PERL=YesPlease"
2650
2651 config_appended_defs="$config_appended_defs${newline}PERL_PATH="
2652         else
2653                 as_fn_error $? "You cannot use git without perl" "$LINENO" 5
2654         fi
2655     else
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;}
2659         else
2660                 PERL_PATH=$withval
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;}
2663
2664 config_appended_defs="$config_appended_defs${newline}PERL_PATH=$withval"
2665         fi
2666     fi
2667
2668 fi
2669
2670 #
2671 # Define PYTHON_PATH to provide path to Python.
2672
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;}
2680
2681 config_appended_defs="$config_appended_defs${newline}NO_PYTHON=YesPlease"
2682
2683 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH="
2684         else
2685                 as_fn_error $? "You cannot use git without python" "$LINENO" 5
2686         fi
2687     else
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;}
2691         else
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;}
2695
2696 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH=$withval"
2697         fi
2698     fi
2699
2700 fi
2701
2702 #
2703 # Define ZLIB_PATH to provide path to zlib.
2704
2705 # Check whether --with-zlib was given.
2706 if test "${with_zlib+set}" = set; then :
2707   withval=$with_zlib;     if test "$withval" = "no"; then
2708         if test -n ""; then
2709                 ZLIB_PATH=$withval
2710                 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ZLIB" >&5
2711 $as_echo "$as_me: Disabling use of ZLIB" >&6;}
2712
2713 config_appended_defs="$config_appended_defs${newline}NO_ZLIB=YesPlease"
2714
2715 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH="
2716         else
2717                 as_fn_error $? "You cannot use git without zlib" "$LINENO" 5
2718         fi
2719     else
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;}
2723         else
2724                 ZLIB_PATH=$withval
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;}
2727
2728 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH=$withval"
2729         fi
2730     fi
2731
2732 fi
2733
2734 #
2735 # Declare the with-tcltk/without-tcltk options.
2736
2737 # Check whether --with-tcltk was given.
2738 if test "${with_tcltk+set}" = set; then :
2739   withval=$with_tcltk;     if test "$withval" = "no"; then
2740         NO_TCLTK=YesPlease
2741     elif test "$withval" = "yes"; then
2742         NO_TCLTK=
2743     else
2744         NO_TCLTK=
2745         TCLTKDIR=$withval
2746         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting TCLTKDIR to $withval" >&5
2747 $as_echo "$as_me: Setting TCLTKDIR to $withval" >&6;}
2748
2749 config_appended_defs="$config_appended_defs${newline}TCLTKDIR=$withval"
2750     fi
2751
2752 fi
2753
2754 #
2755
2756
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;}
2760 #
2761 ac_ext=c
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
2768   do
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
2775 else
2776   if test -n "$CC"; then
2777   ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
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
2788     break 2
2789   fi
2790 done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806     test -n "$CC" && break
2807   done
2808 fi
2809 if test -z "$CC"; then
2810   ac_ct_CC=$CC
2811   for ac_prog in cc gcc
2812 do
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
2819 else
2820   if test -n "$ac_ct_CC"; then
2821   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
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
2832     break 2
2833   fi
2834 done
2835   done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
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; }
2844 else
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850   test -n "$ac_ct_CC" && break
2851 done
2852
2853   if test "x$ac_ct_CC" = x; then
2854     CC=""
2855   else
2856     case $cross_compiling:$ac_tool_warned in
2857 yes:)
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 ;;
2861 esac
2862     CC=$ac_ct_CC
2863   fi
2864 fi
2865
2866
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; }
2871
2872 # Provide some information about the compiler.
2873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2874 set X $ac_compile
2875 ac_compiler=$2
2876 for ac_option in --version -v -V -qversion; do
2877   { { ac_try="$ac_compiler $ac_option >&5"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
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
2885   ac_status=$?
2886   if test -s conftest.err; then
2887     sed '10a\
2888 ... rest of stderr output deleted ...
2889          10q' conftest.err >conftest.er1
2890     cat conftest.er1 >&5
2891   fi
2892   rm -f conftest.er1 conftest.err
2893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894   test $ac_status = 0; }
2895 done
2896
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h.  */
2899
2900 int
2901 main ()
2902 {
2903
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
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
2912 # of exeext.
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[^ ]*//'`
2916
2917 # The possible output files:
2918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2919
2920 ac_rmfiles=
2921 for ac_file in $ac_files
2922 do
2923   case $ac_file in
2924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2926   esac
2927 done
2928 rm -f $ac_rmfiles
2929
2930 if { { ac_try="$ac_link_default"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
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
2938   ac_status=$?
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
2945 # Autoconf.
2946 for ac_file in $ac_files ''
2947 do
2948   test -f "$ac_file" || continue
2949   case $ac_file in
2950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2951         ;;
2952     [ab].out )
2953         # We found the default executable, but exeext='' is most
2954         # certainly right.
2955         break;;
2956     *.* )
2957         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2958         then :; else
2959            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2960         fi
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
2965         # actually working.
2966         break;;
2967     * )
2968         break;;
2969   esac
2970 done
2971 test "$ac_cv_exeext" = no && ac_cv_exeext=
2972
2973 else
2974   ac_file=''
2975 fi
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
2981
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; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2989 fi
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
2995
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"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
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
3008   ac_status=$?
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
3014 # `rm'.
3015 for ac_file in conftest.exe conftest conftest.*; do
3016   test -f "$ac_file" || continue
3017   case $ac_file in
3018     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020           break;;
3021     * ) break;;
3022   esac
3023 done
3024 else
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; }
3029 fi
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; }
3033
3034 rm -f conftest.$ac_ext
3035 EXEEXT=$ac_cv_exeext
3036 ac_exeext=$EXEEXT
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h.  */
3039 #include <stdio.h>
3040 int
3041 main ()
3042 {
3043 FILE *f = fopen ("conftest.out", "w");
3044  return ferror (f) || fclose (f) != 0;
3045
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
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"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063   (eval "$ac_link") 2>&5
3064   ac_status=$?
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;;
3071 esac
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
3075   ac_status=$?
3076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077   test $ac_status = 0; }; }; then
3078     cross_compiling=no
3079   else
3080     if test "$cross_compiling" = maybe; then
3081         cross_compiling=yes
3082     else
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; }
3088     fi
3089   fi
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3092 $as_echo "$cross_compiling" >&6; }
3093
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
3100 else
3101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h.  */
3103
3104 int
3105 main ()
3106 {
3107
3108   ;
3109   return 0;
3110 }
3111 _ACEOF
3112 rm -f conftest.o conftest.obj
3113 if { { ac_try="$ac_compile"
3114 case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
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
3121   ac_status=$?
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;
3126   case $ac_file in
3127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3128     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129        break;;
3130   esac
3131 done
3132 else
3133   $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
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; }
3140 fi
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3142 fi
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
3146 ac_objext=$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
3151 else
3152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158 #ifndef __GNUC__
3159        choke me
3160 #endif
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 if ac_fn_c_try_compile "$LINENO"; then :
3167   ac_compiler_gnu=yes
3168 else
3169   ac_compiler_gnu=no
3170 fi
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3173
3174 fi
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
3178   GCC=yes
3179 else
3180   GCC=
3181 fi
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
3188 else
3189   ac_save_c_werror_flag=$ac_c_werror_flag
3190    ac_c_werror_flag=yes
3191    ac_cv_prog_cc_g=no
3192    CFLAGS="-g"
3193    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h.  */
3195
3196 int
3197 main ()
3198 {
3199
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 if ac_fn_c_try_compile "$LINENO"; then :
3205   ac_cv_prog_cc_g=yes
3206 else
3207   CFLAGS=""
3208       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 if ac_fn_c_try_compile "$LINENO"; then :
3220
3221 else
3222   ac_c_werror_flag=$ac_save_c_werror_flag
3223          CFLAGS="-g"
3224          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 if ac_fn_c_try_compile "$LINENO"; then :
3236   ac_cv_prog_cc_g=yes
3237 fi
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 fi
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243    ac_c_werror_flag=$ac_save_c_werror_flag
3244 fi
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
3251     CFLAGS="-g -O2"
3252   else
3253     CFLAGS="-g"
3254   fi
3255 else
3256   if test "$GCC" = yes; then
3257     CFLAGS="-O2"
3258   else
3259     CFLAGS=
3260   fi
3261 fi
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
3266 else
3267   ac_cv_prog_cc_c89=no
3268 ac_save_CC=$CC
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h.  */
3271 #include <stdarg.h>
3272 #include <stdio.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)
3279      char **p;
3280      int i;
3281 {
3282   return p[i];
3283 }
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3285 {
3286   char *s;
3287   va_list v;
3288   va_start (v,p);
3289   s = g (p, va_arg (v,int));
3290   va_end (v);
3291   return s;
3292 }
3293
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];
3302
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304    inside strings and character constants.  */
3305 #define FOO(x) 'x'
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3307
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);
3312 int argc;
3313 char **argv;
3314 int
3315 main ()
3316 {
3317 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3324 do
3325   CC="$ac_save_CC $ac_arg"
3326   if ac_fn_c_try_compile "$LINENO"; then :
3327   ac_cv_prog_cc_c89=$ac_arg
3328 fi
3329 rm -f core conftest.err conftest.$ac_objext
3330   test "x$ac_cv_prog_cc_c89" != "xno" && break
3331 done
3332 rm -f conftest.$ac_ext
3333 CC=$ac_save_CC
3334
3335 fi
3336 # AC_CACHE_VAL
3337 case "x$ac_cv_prog_cc_c89" in
3338   x)
3339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3340 $as_echo "none needed" >&6; } ;;
3341   xno)
3342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3343 $as_echo "unsupported" >&6; } ;;
3344   *)
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; } ;;
3348 esac
3349 if test "x$ac_cv_prog_cc_c89" != xno; then :
3350
3351 fi
3352
3353 ac_ext=c
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
3358
3359
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
3364 else
3365   ac_cv_c_inline=no
3366 for ac_kw in inline __inline__ __inline; do
3367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369 #ifndef __cplusplus
3370 typedef int foo_t;
3371 static $ac_kw foo_t static_foo () {return 0; }
3372 $ac_kw foo_t foo () {return 0; }
3373 #endif
3374
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377   ac_cv_c_inline=$ac_kw
3378 fi
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380   test "$ac_cv_c_inline" != no && break
3381 done
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3385 $as_echo "$ac_cv_c_inline" >&6; }
3386
3387 case $ac_cv_c_inline in
3388   inline | yes) ;;
3389   *)
3390     case $ac_cv_c_inline in
3391       no) ac_val=;;
3392       *) ac_val=$ac_cv_c_inline;;
3393     esac
3394     cat >>confdefs.h <<_ACEOF
3395 #ifndef __cplusplus
3396 #define inline $ac_val
3397 #endif
3398 _ACEOF
3399     ;;
3400 esac
3401
3402 case $ac_cv_c_inline in
3403   inline | yes | no) INLINE='';;
3404   *)                 INLINE=$ac_cv_c_inline ;;
3405 esac
3406
3407 config_appended_defs="$config_appended_defs${newline}INLINE=${INLINE}"
3408
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
3414 else
3415
3416    SAVE_LDFLAGS="${LDFLAGS}"
3417    LDFLAGS="${SAVE_LDFLAGS} -R /"
3418    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420
3421 int
3422 main ()
3423 {
3424
3425   ;
3426   return 0;
3427 }
3428 _ACEOF
3429 if ac_fn_c_try_link "$LINENO"; then :
3430   git_cv_ld_dashr=yes
3431 else
3432   git_cv_ld_dashr=no
3433 fi
3434 rm -f core conftest.err conftest.$ac_objext \
3435     conftest$ac_exeext conftest.$ac_ext
3436    LDFLAGS="${SAVE_LDFLAGS}"
3437
3438 fi
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
3442    CC_LD_DYNPATH=-R
3443 else
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
3448 else
3449
3450       SAVE_LDFLAGS="${LDFLAGS}"
3451       LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
3452       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_c_try_link "$LINENO"; then :
3464   git_cv_ld_wl_rpath=yes
3465 else
3466   git_cv_ld_wl_rpath=no
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext \
3469     conftest$ac_exeext conftest.$ac_ext
3470       LDFLAGS="${SAVE_LDFLAGS}"
3471
3472 fi
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,
3477    else
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
3482 else
3483
3484          SAVE_LDFLAGS="${LDFLAGS}"
3485          LDFLAGS="${SAVE_LDFLAGS} -rpath /"
3486          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_c_try_link "$LINENO"; then :
3498   git_cv_ld_rpath=yes
3499 else
3500   git_cv_ld_rpath=no
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext \
3503     conftest$ac_exeext conftest.$ac_ext
3504          LDFLAGS="${SAVE_LDFLAGS}"
3505
3506 fi
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
3511       else
3512          CC_LD_DYNPATH=
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;}
3515       fi
3516    fi
3517 fi
3518
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
3523   do
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
3530 else
3531   if test -n "$AR"; then
3532   ac_cv_prog_AR="$AR" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537   IFS=$as_save_IFS
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
3543     break 2
3544   fi
3545 done
3546   done
3547 IFS=$as_save_IFS
3548
3549 fi
3550 fi
3551 AR=$ac_cv_prog_AR
3552 if test -n "$AR"; then
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3554 $as_echo "$AR" >&6; }
3555 else
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 fi
3559
3560
3561     test -n "$AR" && break
3562   done
3563 fi
3564 if test -z "$AR"; then
3565   ac_ct_AR=$AR
3566   for ac_prog in gar ar
3567 do
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
3574 else
3575   if test -n "$ac_ct_AR"; then
3576   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581   IFS=$as_save_IFS
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
3587     break 2
3588   fi
3589 done
3590   done
3591 IFS=$as_save_IFS
3592
3593 fi
3594 fi
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; }
3599 else
3600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3602 fi
3603
3604
3605   test -n "$ac_ct_AR" && break
3606 done
3607
3608   if test "x$ac_ct_AR" = x; then
3609     AR=":"
3610   else
3611     case $cross_compiling:$ac_tool_warned in
3612 yes:)
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 ;;
3616 esac
3617     AR=$ac_ct_AR
3618   fi
3619 fi
3620
3621 for ac_prog in gtar tar
3622 do
3623   # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_prog_TAR+:} false; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -n "$TAR"; then
3631   ac_cv_prog_TAR="$TAR" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640     ac_cv_prog_TAR="$ac_prog"
3641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645   done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 TAR=$ac_cv_prog_TAR
3651 if test -n "$TAR"; then
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3653 $as_echo "$TAR" >&6; }
3654 else
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660   test -n "$TAR" && break
3661 done
3662
3663 for ac_prog in gnudiff gdiff diff
3664 do
3665   # Extract the first word of "$ac_prog", so it can be a program name with args.
3666 set dummy $ac_prog; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_DIFF+:} false; then :
3670   $as_echo_n "(cached) " >&6
3671 else
3672   if test -n "$DIFF"; then
3673   ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680     for ac_exec_ext in '' $ac_executable_extensions; do
3681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682     ac_cv_prog_DIFF="$ac_prog"
3683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687   done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 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; }
3696 else
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702   test -n "$DIFF" && break
3703 done
3704
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
3708   TCLTK_PATH=
3709 else
3710   if test "$with_tcltk" = ""; then
3711   # No Tcl/Tk switches given. Do not check for Tcl/Tk, use bare 'wish'.
3712     TCLTK_PATH=wish
3713   elif test "$with_tcltk" = "yes"; then
3714   # Tcl/Tk check requested.
3715     for ac_prog in wish
3716 do
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
3723 else
3724   if test -n "$TCLTK_PATH"; then
3725   ac_cv_prog_TCLTK_PATH="$TCLTK_PATH" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
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
3736     break 2
3737   fi
3738 done
3739   done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
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; }
3748 else
3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753
3754   test -n "$TCLTK_PATH" && break
3755 done
3756
3757   else
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"
3761   fi
3762 fi
3763
3764 config_appended_defs="$config_appended_defs${newline}TCLTK_PATH=${TCLTK_PATH}"
3765 for ac_prog in asciidoc
3766 do
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
3773 else
3774   if test -n "$ASCIIDOC"; then
3775   ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780   IFS=$as_save_IFS
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
3786     break 2
3787   fi
3788 done
3789   done
3790 IFS=$as_save_IFS
3791
3792 fi
3793 fi
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; }
3798 else
3799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 fi
3802
3803
3804   test -n "$ASCIIDOC" && break
3805 done
3806
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
3812         asciidoc' '8*)
3813                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version}" >&5
3814 $as_echo "${asciidoc_version}" >&6; }
3815                 ;;
3816         *)
3817                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} (unknown)" >&5
3818 $as_echo "${asciidoc_version} (unknown)" >&6; }
3819                 ;;
3820         esac
3821 fi
3822
3823
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;}
3827 #
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).
3830
3831
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"
3837 fi
3838
3839
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
3844 else
3845   ac_check_lib_save_LIBS=$LIBS
3846 LIBS="-lcrypto  $LIBS"
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h.  */
3849
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.  */
3853 #ifdef __cplusplus
3854 extern "C"
3855 #endif
3856 char SHA1_Init ();
3857 int
3858 main ()
3859 {
3860 return SHA1_Init ();
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 if ac_fn_c_try_link "$LINENO"; then :
3866   ac_cv_lib_crypto_SHA1_Init=yes
3867 else
3868   ac_cv_lib_crypto_SHA1_Init=no
3869 fi
3870 rm -f core conftest.err conftest.$ac_objext \
3871     conftest$ac_exeext conftest.$ac_ext
3872 LIBS=$ac_check_lib_save_LIBS
3873 fi
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=
3878 else
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
3883 else
3884   ac_check_lib_save_LIBS=$LIBS
3885 LIBS="-lssl  $LIBS"
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888
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.  */
3892 #ifdef __cplusplus
3893 extern "C"
3894 #endif
3895 char SHA1_Init ();
3896 int
3897 main ()
3898 {
3899 return SHA1_Init ();
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_c_try_link "$LINENO"; then :
3905   ac_cv_lib_ssl_SHA1_Init=yes
3906 else
3907   ac_cv_lib_ssl_SHA1_Init=no
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext \
3910     conftest$ac_exeext conftest.$ac_ext
3911 LIBS=$ac_check_lib_save_LIBS
3912 fi
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=
3917 else
3918   NEEDS_SSL_WITH_CRYPTO=          NO_OPENSSL=YesPlease
3919 fi
3920
3921 fi
3922
3923
3924
3925 if test -n "$OPENSSLDIR"; then
3926    CPPFLAGS="$old_CPPFLAGS"
3927    LDFLAGS="$old_LDFLAGS"
3928 fi
3929
3930
3931
3932 config_appended_defs="$config_appended_defs${newline}NEEDS_SSL_WITH_CRYPTO=${NEEDS_SSL_WITH_CRYPTO}"
3933
3934 config_appended_defs="$config_appended_defs${newline}NO_OPENSSL=${NO_OPENSSL}"
3935
3936 #
3937 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
3938 # able to use Perl-compatible regular expressions.
3939 #
3940
3941 if test -n "$USE_LIBPCRE"; then
3942
3943
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"
3949 fi
3950
3951
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
3956 else
3957   ac_check_lib_save_LIBS=$LIBS
3958 LIBS="-lpcre  $LIBS"
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
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.  */
3965 #ifdef __cplusplus
3966 extern "C"
3967 #endif
3968 char pcre_version ();
3969 int
3970 main ()
3971 {
3972 return pcre_version ();
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 if ac_fn_c_try_link "$LINENO"; then :
3978   ac_cv_lib_pcre_pcre_version=yes
3979 else
3980   ac_cv_lib_pcre_pcre_version=no
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext \
3983     conftest$ac_exeext conftest.$ac_ext
3984 LIBS=$ac_check_lib_save_LIBS
3985 fi
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
3990 else
3991   USE_LIBPCRE=
3992 fi
3993
3994
3995
3996 if test -n "$LIBPCREDIR"; then
3997    CPPFLAGS="$old_CPPFLAGS"
3998    LDFLAGS="$old_LDFLAGS"
3999 fi
4000
4001
4002
4003 config_appended_defs="$config_appended_defs${newline}USE_LIBPCRE=${USE_LIBPCRE}"
4004
4005 fi
4006
4007 #
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://
4010 # transports.
4011
4012
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"
4018 fi
4019
4020
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
4025 else
4026   ac_check_lib_save_LIBS=$LIBS
4027 LIBS="-lcurl  $LIBS"
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030
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.  */
4034 #ifdef __cplusplus
4035 extern "C"
4036 #endif
4037 char curl_global_init ();
4038 int
4039 main ()
4040 {
4041 return curl_global_init ();
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 if ac_fn_c_try_link "$LINENO"; then :
4047   ac_cv_lib_curl_curl_global_init=yes
4048 else
4049   ac_cv_lib_curl_curl_global_init=no
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext \
4052     conftest$ac_exeext conftest.$ac_ext
4053 LIBS=$ac_check_lib_save_LIBS
4054 fi
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 :
4058   NO_CURL=
4059 else
4060   NO_CURL=YesPlease
4061 fi
4062
4063
4064
4065 if test -n "$CURLDIR"; then
4066    CPPFLAGS="$old_CPPFLAGS"
4067    LDFLAGS="$old_LDFLAGS"
4068 fi
4069
4070
4071
4072 config_appended_defs="$config_appended_defs${newline}NO_CURL=${NO_CURL}"
4073
4074 #
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.
4077
4078
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"
4084 fi
4085
4086
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
4091 else
4092   ac_check_lib_save_LIBS=$LIBS
4093 LIBS="-lexpat  $LIBS"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h.  */
4096
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.  */
4100 #ifdef __cplusplus
4101 extern "C"
4102 #endif
4103 char XML_ParserCreate ();
4104 int
4105 main ()
4106 {
4107 return XML_ParserCreate ();
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_link "$LINENO"; then :
4113   ac_cv_lib_expat_XML_ParserCreate=yes
4114 else
4115   ac_cv_lib_expat_XML_ParserCreate=no
4116 fi
4117 rm -f core conftest.err conftest.$ac_objext \
4118     conftest$ac_exeext conftest.$ac_ext
4119 LIBS=$ac_check_lib_save_LIBS
4120 fi
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 :
4124   NO_EXPAT=
4125 else
4126   NO_EXPAT=YesPlease
4127 fi
4128
4129
4130
4131 if test -n "$EXPATDIR"; then
4132    CPPFLAGS="$old_CPPFLAGS"
4133    LDFLAGS="$old_LDFLAGS"
4134 fi
4135
4136
4137
4138 config_appended_defs="$config_appended_defs${newline}NO_EXPAT=${NO_EXPAT}"
4139
4140 #
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.
4144
4145 if test -z "$NO_ICONV"; then
4146
4147
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"
4153 fi
4154
4155
4156
4157
4158 if test -n "$ICONVDIR"; then
4159    lib_order="-liconv -lc"
4160 else
4161    lib_order="-lc -liconv"
4162 fi
4163
4164 NO_ICONV=YesPlease
4165
4166 for l in $lib_order; do
4167     if test "$l" = "-liconv"; then
4168        NEEDS_LIBICONV=YesPlease
4169     else
4170        NEEDS_LIBICONV=
4171     fi
4172
4173     old_LIBS="$LIBS"
4174     LIBS="$LIBS $l"
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.  */
4179 #include <iconv.h>
4180 int
4181 main ()
4182 {
4183 iconv_open("", "");
4184   ;
4185   return 0;
4186 }
4187 _ACEOF
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; }
4191         NO_ICONV=
4192         break
4193 else
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext \
4198     conftest$ac_exeext conftest.$ac_ext
4199     LIBS="$old_LIBS"
4200 done
4201
4202 #in case of break
4203 LIBS="$old_LIBS"
4204
4205
4206 if test -n "$ICONVDIR"; then
4207    CPPFLAGS="$old_CPPFLAGS"
4208    LDFLAGS="$old_LDFLAGS"
4209 fi
4210
4211
4212
4213 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBICONV=${NEEDS_LIBICONV}"
4214
4215 config_appended_defs="$config_appended_defs${newline}NO_ICONV=${NO_ICONV}"
4216
4217 if test -n "$NO_ICONV"; then
4218     NEEDS_LIBICONV=
4219 fi
4220
4221 fi
4222
4223 #
4224 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
4225
4226
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"
4232 fi
4233
4234
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateBound in -lz" >&5
4237 $as_echo_n "checking for deflateBound in -lz... " >&6; }
4238 old_LIBS="$LIBS"
4239 LIBS="$LIBS -lz"
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242
4243 #include <zlib.h>
4244 int
4245 main ()
4246 {
4247 deflateBound(0, 0);
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
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; }
4255 else
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258         NO_DEFLATE_BOUND=yes
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext \
4261     conftest$ac_exeext conftest.$ac_ext
4262 LIBS="$old_LIBS"
4263
4264
4265 if test -n "$ZLIB_PATH"; then
4266    CPPFLAGS="$old_CPPFLAGS"
4267    LDFLAGS="$old_LDFLAGS"
4268 fi
4269
4270
4271
4272 config_appended_defs="$config_appended_defs${newline}NO_DEFLATE_BOUND=${NO_DEFLATE_BOUND}"
4273
4274 #
4275 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
4276 # Patrick Mauritz).
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
4281 else
4282   ac_check_lib_save_LIBS=$LIBS
4283 LIBS="-lc  $LIBS"
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h.  */
4286
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.  */
4290 #ifdef __cplusplus
4291 extern "C"
4292 #endif
4293 char socket ();
4294 int
4295 main ()
4296 {
4297 return socket ();
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_link "$LINENO"; then :
4303   ac_cv_lib_c_socket=yes
4304 else
4305   ac_cv_lib_c_socket=no
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext \
4308     conftest$ac_exeext conftest.$ac_ext
4309 LIBS=$ac_check_lib_save_LIBS
4310 fi
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 :
4314   NEEDS_SOCKET=
4315 else
4316   NEEDS_SOCKET=YesPlease
4317 fi
4318
4319
4320 config_appended_defs="$config_appended_defs${newline}NEEDS_SOCKET=${NEEDS_SOCKET}"
4321 test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
4322
4323 #
4324 # The next few tests will define NEEDS_RESOLV if linking with
4325 # libresolv provides some of the functions we would normally get
4326 # from libc.
4327 NEEDS_RESOLV=
4328 #
4329 # Define NO_INET_NTOP if linking with -lresolv is not enough.
4330 # Solaris 2.7 in particular hos inet_ntop in -lresolv.
4331 NO_INET_NTOP=
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 :
4334
4335 else
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
4340 else
4341   ac_check_lib_save_LIBS=$LIBS
4342 LIBS="-lresolv  $LIBS"
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
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.  */
4349 #ifdef __cplusplus
4350 extern "C"
4351 #endif
4352 char inet_ntop ();
4353 int
4354 main ()
4355 {
4356 return inet_ntop ();
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_link "$LINENO"; then :
4362   ac_cv_lib_resolv_inet_ntop=yes
4363 else
4364   ac_cv_lib_resolv_inet_ntop=no
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext \
4367     conftest$ac_exeext conftest.$ac_ext
4368 LIBS=$ac_check_lib_save_LIBS
4369 fi
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
4374 else
4375   NO_INET_NTOP=YesPlease
4376 fi
4377
4378
4379 fi
4380
4381
4382 config_appended_defs="$config_appended_defs${newline}NO_INET_NTOP=${NO_INET_NTOP}"
4383 #
4384 # Define NO_INET_PTON if linking with -lresolv is not enough.
4385 # Solaris 2.7 in particular hos inet_pton in -lresolv.
4386 NO_INET_PTON=
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 :
4389
4390 else
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
4395 else
4396   ac_check_lib_save_LIBS=$LIBS
4397 LIBS="-lresolv  $LIBS"
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400
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.  */
4404 #ifdef __cplusplus
4405 extern "C"
4406 #endif
4407 char inet_pton ();
4408 int
4409 main ()
4410 {
4411 return inet_pton ();
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 if ac_fn_c_try_link "$LINENO"; then :
4417   ac_cv_lib_resolv_inet_pton=yes
4418 else
4419   ac_cv_lib_resolv_inet_pton=no
4420 fi
4421 rm -f core conftest.err conftest.$ac_objext \
4422     conftest$ac_exeext conftest.$ac_ext
4423 LIBS=$ac_check_lib_save_LIBS
4424 fi
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
4429 else
4430   NO_INET_PTON=YesPlease
4431 fi
4432
4433
4434 fi
4435
4436
4437 config_appended_defs="$config_appended_defs${newline}NO_INET_PTON=${NO_INET_PTON}"
4438 #
4439 # Define NO_HSTRERROR if linking with -lresolv is not enough.
4440 # Solaris 2.6 in particular has no hstrerror, even in -lresolv.
4441 NO_HSTRERROR=
4442 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
4443 if test "x$ac_cv_func_hstrerror" = xyes; then :
4444
4445 else
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
4450 else
4451   ac_check_lib_save_LIBS=$LIBS
4452 LIBS="-lresolv  $LIBS"
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455
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.  */
4459 #ifdef __cplusplus
4460 extern "C"
4461 #endif
4462 char hstrerror ();
4463 int
4464 main ()
4465 {
4466 return hstrerror ();
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_link "$LINENO"; then :
4472   ac_cv_lib_resolv_hstrerror=yes
4473 else
4474   ac_cv_lib_resolv_hstrerror=no
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext \
4477     conftest$ac_exeext conftest.$ac_ext
4478 LIBS=$ac_check_lib_save_LIBS
4479 fi
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
4484 else
4485   NO_HSTRERROR=YesPlease
4486 fi
4487
4488
4489 fi
4490
4491
4492 config_appended_defs="$config_appended_defs${newline}NO_HSTRERROR=${NO_HSTRERROR}"
4493
4494
4495 config_appended_defs="$config_appended_defs${newline}NEEDS_RESOLV=${NEEDS_RESOLV}"
4496 #
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"
4500
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
4505 else
4506   ac_check_lib_save_LIBS=$LIBS
4507 LIBS="-lc  $LIBS"
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h.  */
4510
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.  */
4514 #ifdef __cplusplus
4515 extern "C"
4516 #endif
4517 char basename ();
4518 int
4519 main ()
4520 {
4521 return basename ();
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_link "$LINENO"; then :
4527   ac_cv_lib_c_basename=yes
4528 else
4529   ac_cv_lib_c_basename=no
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext \
4532     conftest$ac_exeext conftest.$ac_ext
4533 LIBS=$ac_check_lib_save_LIBS
4534 fi
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 :
4538   NEEDS_LIBGEN=
4539 else
4540   NEEDS_LIBGEN=YesPlease
4541 fi
4542
4543
4544 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBGEN=${NEEDS_LIBGEN}"
4545 test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
4546
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
4551 else
4552   ac_check_lib_save_LIBS=$LIBS
4553 LIBS="-lc  $LIBS"
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h.  */
4556
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.  */
4560 #ifdef __cplusplus
4561 extern "C"
4562 #endif
4563 char gettext ();
4564 int
4565 main ()
4566 {
4567 return gettext ();
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_c_try_link "$LINENO"; then :
4573   ac_cv_lib_c_gettext=yes
4574 else
4575   ac_cv_lib_c_gettext=no
4576 fi
4577 rm -f core conftest.err conftest.$ac_objext \
4578     conftest$ac_exeext conftest.$ac_ext
4579 LIBS=$ac_check_lib_save_LIBS
4580 fi
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
4585 else
4586   LIBC_CONTAINS_LIBINTL=
4587 fi
4588
4589
4590 config_appended_defs="$config_appended_defs${newline}LIBC_CONTAINS_LIBINTL=${LIBC_CONTAINS_LIBINTL}"
4591
4592 #
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
4595 ac_ext=c
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
4604   CPP=
4605 fi
4606 if test -z "$CPP"; then
4607   if ${ac_cv_prog_CPP+:} false; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610       # Double quotes because CPP needs to be expanded
4611     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4612     do
4613       ac_preproc_ok=false
4614 for ac_c_preproc_warn_flag in '' yes
4615 do
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.  */
4624 #ifdef __STDC__
4625 # include <limits.h>
4626 #else
4627 # include <assert.h>
4628 #endif
4629                      Syntax error
4630 _ACEOF
4631 if ac_fn_c_try_cpp "$LINENO"; then :
4632
4633 else
4634   # Broken: fails on valid input.
4635 continue
4636 fi
4637 rm -f conftest.err conftest.i conftest.$ac_ext
4638
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>
4644 _ACEOF
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4646   # Broken: success on invalid input.
4647 continue
4648 else
4649   # Passes both tests.
4650 ac_preproc_ok=:
4651 break
4652 fi
4653 rm -f conftest.err conftest.i conftest.$ac_ext
4654
4655 done
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 :
4659   break
4660 fi
4661
4662     done
4663     ac_cv_prog_CPP=$CPP
4664
4665 fi
4666   CPP=$ac_cv_prog_CPP
4667 else
4668   ac_cv_prog_CPP=$CPP
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4671 $as_echo "$CPP" >&6; }
4672 ac_preproc_ok=false
4673 for ac_c_preproc_warn_flag in '' yes
4674 do
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.  */
4683 #ifdef __STDC__
4684 # include <limits.h>
4685 #else
4686 # include <assert.h>
4687 #endif
4688                      Syntax error
4689 _ACEOF
4690 if ac_fn_c_try_cpp "$LINENO"; then :
4691
4692 else
4693   # Broken: fails on valid input.
4694 continue
4695 fi
4696 rm -f conftest.err conftest.i conftest.$ac_ext
4697
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>
4703 _ACEOF
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4705   # Broken: success on invalid input.
4706 continue
4707 else
4708   # Passes both tests.
4709 ac_preproc_ok=:
4710 break
4711 fi
4712 rm -f conftest.err conftest.i conftest.$ac_ext
4713
4714 done
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 :
4718
4719 else
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; }
4724 fi
4725
4726 ac_ext=c
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
4731
4732
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
4737 else
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
4743 do
4744   IFS=$as_save_IFS
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
4753 *GNU*)
4754   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4755 *)
4756   ac_count=0
4757   $as_echo_n 0123456789 >"conftest.in"
4758   while :
4759   do
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
4771     fi
4772     # 10*(2^10) chars as input seems more than enough
4773     test $ac_count -gt 10 && break
4774   done
4775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776 esac
4777
4778       $ac_path_GREP_found && break 3
4779     done
4780   done
4781   done
4782 IFS=$as_save_IFS
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
4785   fi
4786 else
4787   ac_cv_path_GREP=$GREP
4788 fi
4789
4790 fi
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"
4794
4795
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
4800 else
4801   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4802    then ac_cv_path_EGREP="$GREP -E"
4803    else
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
4809 do
4810   IFS=$as_save_IFS
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
4819 *GNU*)
4820   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4821 *)
4822   ac_count=0
4823   $as_echo_n 0123456789 >"conftest.in"
4824   while :
4825   do
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
4837     fi
4838     # 10*(2^10) chars as input seems more than enough
4839     test $ac_count -gt 10 && break
4840   done
4841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4842 esac
4843
4844       $ac_path_EGREP_found && break 3
4845     done
4846   done
4847   done
4848 IFS=$as_save_IFS
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
4851   fi
4852 else
4853   ac_cv_path_EGREP=$EGREP
4854 fi
4855
4856    fi
4857 fi
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"
4861
4862
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
4867 else
4868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h.  */
4870 #include <stdlib.h>
4871 #include <stdarg.h>
4872 #include <string.h>
4873 #include <float.h>
4874
4875 int
4876 main ()
4877 {
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884   ac_cv_header_stdc=yes
4885 else
4886   ac_cv_header_stdc=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889
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.  */
4894 #include <string.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898   $EGREP "memchr" >/dev/null 2>&1; then :
4899
4900 else
4901   ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
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.  */
4911 #include <stdlib.h>
4912
4913 _ACEOF
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915   $EGREP "free" >/dev/null 2>&1; then :
4916
4917 else
4918   ac_cv_header_stdc=no
4919 fi
4920 rm -f conftest*
4921
4922 fi
4923
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 :
4927   :
4928 else
4929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h.  */
4931 #include <ctype.h>
4932 #include <stdlib.h>
4933 #if ((' ' & 0x0FF) == 0x020)
4934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4936 #else
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))
4942 #endif
4943
4944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4945 int
4946 main ()
4947 {
4948   int i;
4949   for (i = 0; i < 256; i++)
4950     if (XOR (islower (i), ISLOWER (i))
4951         || toupper (i) != TOUPPER (i))
4952       return 2;
4953   return 0;
4954 }
4955 _ACEOF
4956 if ac_fn_c_try_run "$LINENO"; then :
4957
4958 else
4959   ac_cv_header_stdc=no
4960 fi
4961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4962   conftest.$ac_objext conftest.beam conftest.$ac_ext
4963 fi
4964
4965 fi
4966 fi
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
4970
4971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4972
4973 fi
4974
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
4978 do :
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
4981 "
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
4985 _ACEOF
4986
4987 fi
4988
4989 done
4990
4991
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 :
4994   NO_GETTEXT=
4995 else
4996   NO_GETTEXT=YesPlease
4997 fi
4998
4999
5000
5001 config_appended_defs="$config_appended_defs${newline}NO_GETTEXT=${NO_GETTEXT}"
5002
5003 if test -z "$NO_GETTEXT"; then
5004     test -n "$LIBC_CONTAINS_LIBINTL" || LIBS="$LIBS -lintl"
5005 fi
5006
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;}
5010 #
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 :
5014   NO_SYS_SELECT_H=
5015 else
5016   NO_SYS_SELECT_H=UnfortunatelyYes
5017 fi
5018
5019
5020
5021 config_appended_defs="$config_appended_defs${newline}NO_SYS_SELECT_H=${NO_SYS_SELECT_H}"
5022 #
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 :
5026   NO_SYS_POLL_H=
5027 else
5028   NO_SYS_POLL_H=UnfortunatelyYes
5029 fi
5030
5031
5032
5033 config_appended_defs="$config_appended_defs${newline}NO_SYS_POLL_H=${NO_SYS_POLL_H}"
5034 #
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 :
5038   NO_INTTYPES_H=
5039 else
5040   NO_INTTYPES_H=UnfortunatelyYes
5041 fi
5042
5043
5044
5045 config_appended_defs="$config_appended_defs${newline}NO_INTTYPES_H=${NO_INTTYPES_H}"
5046 #
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 **).
5049
5050
5051
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"
5057 fi
5058
5059
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.  */
5064
5065
5066 #include <iconv.h>
5067
5068 extern size_t iconv(iconv_t cd,
5069                     char **inbuf, size_t *inbytesleft,
5070                     char **outbuf, size_t *outbytesleft);
5071
5072 int
5073 main ()
5074 {
5075
5076   ;
5077   return 0;
5078 }
5079 _ACEOF
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; }
5083 else
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5085 $as_echo "yes" >&6; }
5086         OLD_ICONV=UnfortunatelyYes
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089
5090
5091 if test -n "$ICONVDIR"; then
5092    CPPFLAGS="$old_CPPFLAGS"
5093    LDFLAGS="$old_LDFLAGS"
5094 fi
5095
5096
5097
5098 config_appended_defs="$config_appended_defs${newline}OLD_ICONV=${OLD_ICONV}"
5099
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;}
5103 #
5104
5105    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5106 #include <sys/socket.h>
5107 "
5108 if test "x$ac_cv_type_socklen_t" = xyes; then :
5109
5110 else
5111
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
5116 else
5117
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.  */
5125
5126                   #include <sys/types.h>
5127                   #include <sys/socket.h>
5128
5129                   int getpeername (int, $arg2 *, $t *);
5130
5131 int
5132 main ()
5133 {
5134
5135                   $t len;
5136                   getpeername(0,0,&len);
5137
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143
5144                   git_cv_socklen_t_equiv="$t"
5145                   break 2
5146
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149             done
5150          done
5151
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
5154          fi
5155
5156 fi
5157
5158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_socklen_t_equiv" >&5
5159 $as_echo "$git_cv_socklen_t_equiv" >&6; }
5160
5161 cat >>confdefs.h <<_ACEOF
5162 #define socklen_t $git_cv_socklen_t_equiv
5163 _ACEOF
5164
5165 fi
5166
5167
5168 case $ac_cv_type_socklen_t in
5169   yes)  SOCKLEN_T='';;
5170   *)    SOCKLEN_T=$git_cv_socklen_t_equiv;;
5171 esac
5172
5173 config_appended_defs="$config_appended_defs${newline}SOCKLEN_T=${SOCKLEN_T}"
5174
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>
5177 "
5178 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
5179   NO_D_INO_IN_DIRENT=
5180 else
5181   NO_D_INO_IN_DIRENT=YesPlease
5182 fi
5183
5184
5185 config_appended_defs="$config_appended_defs${newline}NO_D_INO_IN_DIRENT=${NO_D_INO_IN_DIRENT}"
5186 #
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>
5190 "
5191 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
5192   NO_D_TYPE_IN_DIRENT=
5193 else
5194   NO_D_TYPE_IN_DIRENT=YesPlease
5195 fi
5196
5197
5198 config_appended_defs="$config_appended_defs${newline}NO_D_TYPE_IN_DIRENT=${NO_D_TYPE_IN_DIRENT}"
5199 #
5200 # Define NO_GECOS_IN_PWENT if you don't have pw_gecos in struct passwd
5201 # in the C library.
5202 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "#include <pwd.h>
5203 "
5204 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
5205   NO_GECOS_IN_PWENT=
5206 else
5207   NO_GECOS_IN_PWENT=YesPlease
5208 fi
5209
5210
5211 config_appended_defs="$config_appended_defs${newline}NO_GECOS_IN_PWENT=${NO_GECOS_IN_PWENT}"
5212 #
5213 # Define NO_SOCKADDR_STORAGE if your platform does not have struct
5214 # sockaddr_storage.
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>
5218
5219 "
5220 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
5221   NO_SOCKADDR_STORAGE=
5222 else
5223   NO_SOCKADDR_STORAGE=YesPlease
5224 fi
5225
5226
5227 config_appended_defs="$config_appended_defs${newline}NO_SOCKADDR_STORAGE=${NO_SOCKADDR_STORAGE}"
5228 #
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>
5233 #include <netdb.h>
5234
5235 "
5236 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
5237
5238  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5239 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
5240
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
5245 else
5246   ac_func_search_save_LIBS=$LIBS
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h.  */
5249
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.  */
5253 #ifdef __cplusplus
5254 extern "C"
5255 #endif
5256 char getaddrinfo ();
5257 int
5258 main ()
5259 {
5260 return getaddrinfo ();
5261   ;
5262   return 0;
5263 }
5264 _ACEOF
5265 for ac_lib in '' ; do
5266   if test -z "$ac_lib"; then
5267     ac_res="none required"
5268   else
5269     ac_res=-l$ac_lib
5270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5271   fi
5272   if ac_fn_c_try_link "$LINENO"; then :
5273   ac_cv_search_getaddrinfo=$ac_res
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext \
5276     conftest$ac_exeext
5277   if ${ac_cv_search_getaddrinfo+:} false; then :
5278   break
5279 fi
5280 done
5281 if ${ac_cv_search_getaddrinfo+:} false; then :
5282
5283 else
5284   ac_cv_search_getaddrinfo=no
5285 fi
5286 rm conftest.$ac_ext
5287 LIBS=$ac_func_search_save_LIBS
5288 fi
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"
5294   NO_IPV6=
5295 else
5296   NO_IPV6=YesPlease
5297 fi
5298
5299
5300 else
5301   NO_IPV6=YesPlease
5302 fi
5303
5304
5305 else
5306   NO_IPV6=YesPlease
5307 fi
5308
5309
5310 config_appended_defs="$config_appended_defs${newline}NO_IPV6=${NO_IPV6}"
5311 #
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
5317 else
5318
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h.  */
5321 $ac_includes_default
5322 #include <regex.h>
5323
5324 int
5325 main ()
5326 {
5327 #ifdef REG_STARTEND
5328 yippeeyeswehaveit
5329 #endif
5330
5331   ;
5332   return 0;
5333 }
5334 _ACEOF
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
5338 else
5339   ac_cv_c_excellent_regex=no
5340 fi
5341 rm -f conftest*
5342
5343
5344 fi
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
5348         NO_REGEX=
5349 else
5350         NO_REGEX=YesPlease
5351 fi
5352
5353 config_appended_defs="$config_appended_defs${newline}NO_REGEX=${NO_REGEX}"
5354 #
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
5361 else
5362
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; }
5368 else
5369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h.  */
5371 $ac_includes_default
5372 int
5373 main ()
5374 {
5375 char c;
5376                 FILE *f = fopen(".", "r");
5377                 return f && fread(&c, 1, 1, f)
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_run "$LINENO"; then :
5383   ac_cv_fread_reads_directories=no
5384 else
5385   ac_cv_fread_reads_directories=yes
5386 fi
5387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5388   conftest.$ac_objext conftest.beam conftest.$ac_ext
5389 fi
5390
5391
5392 fi
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
5397 else
5398         FREAD_READS_DIRECTORIES=
5399 fi
5400
5401 config_appended_defs="$config_appended_defs${newline}FREAD_READS_DIRECTORIES=${FREAD_READS_DIRECTORIES}"
5402 #
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
5410 else
5411
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; }
5417 else
5418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h.  */
5420 $ac_includes_default
5421                 #include "stdarg.h"
5422
5423                 int test_vsnprintf(char *str, size_t maxsize, const char *format, ...)
5424                 {
5425                   int ret;
5426                   va_list ap;
5427                   va_start(ap, format);
5428                   ret = vsnprintf(str, maxsize, format, ap);
5429                   va_end(ap);
5430                   return ret;
5431                 }
5432 int
5433 main ()
5434 {
5435 char buf[6];
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
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_run "$LINENO"; then :
5445   ac_cv_snprintf_returns_bogus=no
5446 else
5447   ac_cv_snprintf_returns_bogus=yes
5448 fi
5449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5450   conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 fi
5452
5453
5454 fi
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
5459 else
5460         SNPRINTF_RETURNS_BOGUS=
5461 fi
5462
5463 config_appended_defs="$config_appended_defs${newline}SNPRINTF_RETURNS_BOGUS=${SNPRINTF_RETURNS_BOGUS}"
5464
5465
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;}
5470 #
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 :
5474   NO_LIBGEN_H=
5475 else
5476   NO_LIBGEN_H=YesPlease
5477 fi
5478
5479
5480
5481 config_appended_defs="$config_appended_defs${newline}NO_LIBGEN_H=${NO_LIBGEN_H}"
5482 #
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
5487 else
5488   HAVE_PATHS_H=
5489 fi
5490
5491
5492
5493 config_appended_defs="$config_appended_defs${newline}HAVE_PATHS_H=${HAVE_PATHS_H}"
5494 #
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
5499 else
5500   HAVE_LIBCHARSET_H=
5501 fi
5502
5503
5504
5505 config_appended_defs="$config_appended_defs${newline}HAVE_LIBCHARSET_H=${HAVE_LIBCHARSET_H}"
5506 #
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
5511 else
5512   HAVE_STRINGS_H=
5513 fi
5514
5515
5516
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
5520 CHARSET_LIB=
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
5525 else
5526   ac_check_lib_save_LIBS=$LIBS
5527 LIBS="-liconv  $LIBS"
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h.  */
5530
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.  */
5534 #ifdef __cplusplus
5535 extern "C"
5536 #endif
5537 char locale_charset ();
5538 int
5539 main ()
5540 {
5541 return locale_charset ();
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_link "$LINENO"; then :
5547   ac_cv_lib_iconv_locale_charset=yes
5548 else
5549   ac_cv_lib_iconv_locale_charset=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext \
5552     conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5554 fi
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 :
5558   CHARSET_LIB=-liconv
5559 else
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
5564 else
5565   ac_check_lib_save_LIBS=$LIBS
5566 LIBS="-lcharset  $LIBS"
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569
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.  */
5573 #ifdef __cplusplus
5574 extern "C"
5575 #endif
5576 char locale_charset ();
5577 int
5578 main ()
5579 {
5580 return locale_charset ();
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 if ac_fn_c_try_link "$LINENO"; then :
5586   ac_cv_lib_charset_locale_charset=yes
5587 else
5588   ac_cv_lib_charset_locale_charset=no
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext \
5591     conftest$ac_exeext conftest.$ac_ext
5592 LIBS=$ac_check_lib_save_LIBS
5593 fi
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
5598 fi
5599
5600 fi
5601
5602
5603 config_appended_defs="$config_appended_defs${newline}CHARSET_LIB=${CHARSET_LIB}"
5604 #
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 :
5608
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
5613 else
5614   ac_func_search_save_LIBS=$LIBS
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617
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.  */
5621 #ifdef __cplusplus
5622 extern "C"
5623 #endif
5624 char strcasestr ();
5625 int
5626 main ()
5627 {
5628 return strcasestr ();
5629   ;
5630   return 0;
5631 }
5632 _ACEOF
5633 for ac_lib in '' ; do
5634   if test -z "$ac_lib"; then
5635     ac_res="none required"
5636   else
5637     ac_res=-l$ac_lib
5638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5639   fi
5640   if ac_fn_c_try_link "$LINENO"; then :
5641   ac_cv_search_strcasestr=$ac_res
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext \
5644     conftest$ac_exeext
5645   if ${ac_cv_search_strcasestr+:} false; then :
5646   break
5647 fi
5648 done
5649 if ${ac_cv_search_strcasestr+:} false; then :
5650
5651 else
5652   ac_cv_search_strcasestr=no
5653 fi
5654 rm conftest.$ac_ext
5655 LIBS=$ac_func_search_save_LIBS
5656 fi
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"
5662   NO_STRCASESTR=
5663 else
5664   NO_STRCASESTR=YesPlease
5665 fi
5666
5667
5668 else
5669   NO_STRCASESTR=YesPlease
5670 fi
5671
5672
5673 config_appended_defs="$config_appended_defs${newline}NO_STRCASESTR=${NO_STRCASESTR}"
5674 #
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 :
5678
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
5683 else
5684   ac_func_search_save_LIBS=$LIBS
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h.  */
5687
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.  */
5691 #ifdef __cplusplus
5692 extern "C"
5693 #endif
5694 char memmem ();
5695 int
5696 main ()
5697 {
5698 return memmem ();
5699   ;
5700   return 0;
5701 }
5702 _ACEOF
5703 for ac_lib in '' ; do
5704   if test -z "$ac_lib"; then
5705     ac_res="none required"
5706   else
5707     ac_res=-l$ac_lib
5708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5709   fi
5710   if ac_fn_c_try_link "$LINENO"; then :
5711   ac_cv_search_memmem=$ac_res
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext \
5714     conftest$ac_exeext
5715   if ${ac_cv_search_memmem+:} false; then :
5716   break
5717 fi
5718 done
5719 if ${ac_cv_search_memmem+:} false; then :
5720
5721 else
5722   ac_cv_search_memmem=no
5723 fi
5724 rm conftest.$ac_ext
5725 LIBS=$ac_func_search_save_LIBS
5726 fi
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"
5732   NO_MEMMEM=
5733 else
5734   NO_MEMMEM=YesPlease
5735 fi
5736
5737
5738 else
5739   NO_MEMMEM=YesPlease
5740 fi
5741
5742
5743 config_appended_defs="$config_appended_defs${newline}NO_MEMMEM=${NO_MEMMEM}"
5744 #
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 :
5748
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
5753 else
5754   ac_func_search_save_LIBS=$LIBS
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h.  */
5757
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.  */
5761 #ifdef __cplusplus
5762 extern "C"
5763 #endif
5764 char strlcpy ();
5765 int
5766 main ()
5767 {
5768 return strlcpy ();
5769   ;
5770   return 0;
5771 }
5772 _ACEOF
5773 for ac_lib in '' ; do
5774   if test -z "$ac_lib"; then
5775     ac_res="none required"
5776   else
5777     ac_res=-l$ac_lib
5778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5779   fi
5780   if ac_fn_c_try_link "$LINENO"; then :
5781   ac_cv_search_strlcpy=$ac_res
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext \
5784     conftest$ac_exeext
5785   if ${ac_cv_search_strlcpy+:} false; then :
5786   break
5787 fi
5788 done
5789 if ${ac_cv_search_strlcpy+:} false; then :
5790
5791 else
5792   ac_cv_search_strlcpy=no
5793 fi
5794 rm conftest.$ac_ext
5795 LIBS=$ac_func_search_save_LIBS
5796 fi
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"
5802   NO_STRLCPY=
5803 else
5804   NO_STRLCPY=YesPlease
5805 fi
5806
5807
5808 else
5809   NO_STRLCPY=YesPlease
5810 fi
5811
5812
5813 config_appended_defs="$config_appended_defs${newline}NO_STRLCPY=${NO_STRLCPY}"
5814 #
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>
5818
5819 "
5820 if test "x$ac_cv_type_uintmax_t" = xyes; then :
5821   NO_UINTMAX_T=
5822 else
5823   NO_UINTMAX_T=YesPlease
5824 fi
5825
5826
5827 config_appended_defs="$config_appended_defs${newline}NO_UINTMAX_T=${NO_UINTMAX_T}"
5828 #
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 :
5832
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
5837 else
5838   ac_func_search_save_LIBS=$LIBS
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h.  */
5841
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.  */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 char strtoumax ();
5849 int
5850 main ()
5851 {
5852 return strtoumax ();
5853   ;
5854   return 0;
5855 }
5856 _ACEOF
5857 for ac_lib in '' ; do
5858   if test -z "$ac_lib"; then
5859     ac_res="none required"
5860   else
5861     ac_res=-l$ac_lib
5862     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5863   fi
5864   if ac_fn_c_try_link "$LINENO"; then :
5865   ac_cv_search_strtoumax=$ac_res
5866 fi
5867 rm -f core conftest.err conftest.$ac_objext \
5868     conftest$ac_exeext
5869   if ${ac_cv_search_strtoumax+:} false; then :
5870   break
5871 fi
5872 done
5873 if ${ac_cv_search_strtoumax+:} false; then :
5874
5875 else
5876   ac_cv_search_strtoumax=no
5877 fi
5878 rm conftest.$ac_ext
5879 LIBS=$ac_func_search_save_LIBS
5880 fi
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"
5886   NO_STRTOUMAX=
5887 else
5888   NO_STRTOUMAX=YesPlease
5889 fi
5890
5891
5892 else
5893   NO_STRTOUMAX=YesPlease
5894 fi
5895
5896
5897 config_appended_defs="$config_appended_defs${newline}NO_STRTOUMAX=${NO_STRTOUMAX}"
5898 #
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 :
5902
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
5907 else
5908   ac_func_search_save_LIBS=$LIBS
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h.  */
5911
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.  */
5915 #ifdef __cplusplus
5916 extern "C"
5917 #endif
5918 char setenv ();
5919 int
5920 main ()
5921 {
5922 return setenv ();
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 for ac_lib in '' ; do
5928   if test -z "$ac_lib"; then
5929     ac_res="none required"
5930   else
5931     ac_res=-l$ac_lib
5932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5933   fi
5934   if ac_fn_c_try_link "$LINENO"; then :
5935   ac_cv_search_setenv=$ac_res
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext \
5938     conftest$ac_exeext
5939   if ${ac_cv_search_setenv+:} false; then :
5940   break
5941 fi
5942 done
5943 if ${ac_cv_search_setenv+:} false; then :
5944
5945 else
5946   ac_cv_search_setenv=no
5947 fi
5948 rm conftest.$ac_ext
5949 LIBS=$ac_func_search_save_LIBS
5950 fi
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"
5956   NO_SETENV=
5957 else
5958   NO_SETENV=YesPlease
5959 fi
5960
5961
5962 else
5963   NO_SETENV=YesPlease
5964 fi
5965
5966
5967 config_appended_defs="$config_appended_defs${newline}NO_SETENV=${NO_SETENV}"
5968 #
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 :
5972
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
5977 else
5978   ac_func_search_save_LIBS=$LIBS
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981
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.  */
5985 #ifdef __cplusplus
5986 extern "C"
5987 #endif
5988 char unsetenv ();
5989 int
5990 main ()
5991 {
5992 return unsetenv ();
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 for ac_lib in '' ; do
5998   if test -z "$ac_lib"; then
5999     ac_res="none required"
6000   else
6001     ac_res=-l$ac_lib
6002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6003   fi
6004   if ac_fn_c_try_link "$LINENO"; then :
6005   ac_cv_search_unsetenv=$ac_res
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext \
6008     conftest$ac_exeext
6009   if ${ac_cv_search_unsetenv+:} false; then :
6010   break
6011 fi
6012 done
6013 if ${ac_cv_search_unsetenv+:} false; then :
6014
6015 else
6016   ac_cv_search_unsetenv=no
6017 fi
6018 rm conftest.$ac_ext
6019 LIBS=$ac_func_search_save_LIBS
6020 fi
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"
6026   NO_UNSETENV=
6027 else
6028   NO_UNSETENV=YesPlease
6029 fi
6030
6031
6032 else
6033   NO_UNSETENV=YesPlease
6034 fi
6035
6036
6037 config_appended_defs="$config_appended_defs${newline}NO_UNSETENV=${NO_UNSETENV}"
6038 #
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 :
6042
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
6047 else
6048   ac_func_search_save_LIBS=$LIBS
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h.  */
6051
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.  */
6055 #ifdef __cplusplus
6056 extern "C"
6057 #endif
6058 char mkdtemp ();
6059 int
6060 main ()
6061 {
6062 return mkdtemp ();
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 for ac_lib in '' ; do
6068   if test -z "$ac_lib"; then
6069     ac_res="none required"
6070   else
6071     ac_res=-l$ac_lib
6072     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6073   fi
6074   if ac_fn_c_try_link "$LINENO"; then :
6075   ac_cv_search_mkdtemp=$ac_res
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext \
6078     conftest$ac_exeext
6079   if ${ac_cv_search_mkdtemp+:} false; then :
6080   break
6081 fi
6082 done
6083 if ${ac_cv_search_mkdtemp+:} false; then :
6084
6085 else
6086   ac_cv_search_mkdtemp=no
6087 fi
6088 rm conftest.$ac_ext
6089 LIBS=$ac_func_search_save_LIBS
6090 fi
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"
6096   NO_MKDTEMP=
6097 else
6098   NO_MKDTEMP=YesPlease
6099 fi
6100
6101
6102 else
6103   NO_MKDTEMP=YesPlease
6104 fi
6105
6106
6107 config_appended_defs="$config_appended_defs${newline}NO_MKDTEMP=${NO_MKDTEMP}"
6108 #
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 :
6112
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
6117 else
6118   ac_func_search_save_LIBS=$LIBS
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h.  */
6121
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.  */
6125 #ifdef __cplusplus
6126 extern "C"
6127 #endif
6128 char mkstemps ();
6129 int
6130 main ()
6131 {
6132 return mkstemps ();
6133   ;
6134   return 0;
6135 }
6136 _ACEOF
6137 for ac_lib in '' ; do
6138   if test -z "$ac_lib"; then
6139     ac_res="none required"
6140   else
6141     ac_res=-l$ac_lib
6142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6143   fi
6144   if ac_fn_c_try_link "$LINENO"; then :
6145   ac_cv_search_mkstemps=$ac_res
6146 fi
6147 rm -f core conftest.err conftest.$ac_objext \
6148     conftest$ac_exeext
6149   if ${ac_cv_search_mkstemps+:} false; then :
6150   break
6151 fi
6152 done
6153 if ${ac_cv_search_mkstemps+:} false; then :
6154
6155 else
6156   ac_cv_search_mkstemps=no
6157 fi
6158 rm conftest.$ac_ext
6159 LIBS=$ac_func_search_save_LIBS
6160 fi
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"
6166   NO_MKSTEMPS=
6167 else
6168   NO_MKSTEMPS=YesPlease
6169 fi
6170
6171
6172 else
6173   NO_MKSTEMPS=YesPlease
6174 fi
6175
6176
6177 config_appended_defs="$config_appended_defs${newline}NO_MKSTEMPS=${NO_MKSTEMPS}"
6178 #
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 :
6182
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
6187 else
6188   ac_func_search_save_LIBS=$LIBS
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h.  */
6191
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.  */
6195 #ifdef __cplusplus
6196 extern "C"
6197 #endif
6198 char initgroups ();
6199 int
6200 main ()
6201 {
6202 return initgroups ();
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 for ac_lib in '' ; do
6208   if test -z "$ac_lib"; then
6209     ac_res="none required"
6210   else
6211     ac_res=-l$ac_lib
6212     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6213   fi
6214   if ac_fn_c_try_link "$LINENO"; then :
6215   ac_cv_search_initgroups=$ac_res
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext \
6218     conftest$ac_exeext
6219   if ${ac_cv_search_initgroups+:} false; then :
6220   break
6221 fi
6222 done
6223 if ${ac_cv_search_initgroups+:} false; then :
6224
6225 else
6226   ac_cv_search_initgroups=no
6227 fi
6228 rm conftest.$ac_ext
6229 LIBS=$ac_func_search_save_LIBS
6230 fi
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"
6236   NO_INITGROUPS=
6237 else
6238   NO_INITGROUPS=YesPlease
6239 fi
6240
6241
6242 else
6243   NO_INITGROUPS=YesPlease
6244 fi
6245
6246
6247 config_appended_defs="$config_appended_defs${newline}NO_INITGROUPS=${NO_INITGROUPS}"
6248 #
6249 #
6250 # Define NO_MMAP if you want to avoid mmap.
6251 #
6252 # Define NO_ICONV if your libc does not properly support iconv.
6253
6254
6255 ## Other checks.
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.
6258 #
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.
6261 #
6262 # Define NO_PTHREADS if we do not have pthreads.
6263 #
6264 # Define PTHREAD_LIBS to the linker flag used for Pthread support.
6265
6266
6267
6268 NO_PTHREADS=UnfortunatelyYes
6269 PTHREAD_LIBS=
6270
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
6277   threads_found=no
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.  */
6295
6296
6297 #include <pthread.h>
6298
6299 int
6300 main ()
6301 {
6302
6303         pthread_mutex_t test_mutex;
6304         pthread_key_t test_key;
6305         int retcode = 0;
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);
6310         return retcode;
6311
6312   ;
6313   return 0;
6314 }
6315 _ACEOF
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; }
6319                 NO_PTHREADS=
6320                 PTHREAD_LIBS="$opt"
6321                 PTHREAD_CFLAGS="$opt"
6322                 threads_found=yes
6323                 break
6324
6325 else
6326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext \
6330     conftest$ac_exeext conftest.$ac_ext
6331       CFLAGS="$old_CFLAGS"
6332   done
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
6338 else
6339   ac_check_lib_save_LIBS=$LIBS
6340 LIBS="-lpthread  $LIBS"
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h.  */
6343
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.  */
6347 #ifdef __cplusplus
6348 extern "C"
6349 #endif
6350 char pthread_create ();
6351 int
6352 main ()
6353 {
6354 return pthread_create ();
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_link "$LINENO"; then :
6360   ac_cv_lib_pthread_pthread_create=yes
6361 else
6362   ac_cv_lib_pthread_pthread_create=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext \
6365     conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_check_lib_save_LIBS
6367 fi
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"
6372 else
6373   NO_PTHREADS=UnfortunatelyYes
6374 fi
6375
6376   fi
6377 else
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.  */
6384
6385
6386 #include <pthread.h>
6387
6388 int
6389 main ()
6390 {
6391
6392         pthread_mutex_t test_mutex;
6393         pthread_key_t test_key;
6394         int retcode = 0;
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);
6399         return retcode;
6400
6401   ;
6402   return 0;
6403 }
6404 _ACEOF
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; }
6408                 NO_PTHREADS=
6409                 PTHREAD_LIBS="$PTHREAD_CFLAGS"
6410
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext \
6416     conftest$ac_exeext conftest.$ac_ext
6417
6418   CFLAGS="$old_CFLAGS"
6419 fi
6420
6421 CFLAGS="$old_CFLAGS"
6422
6423
6424 config_appended_defs="$config_appended_defs${newline}PTHREAD_CFLAGS=${PTHREAD_CFLAGS}"
6425
6426 config_appended_defs="$config_appended_defs${newline}PTHREAD_LIBS=${PTHREAD_LIBS}"
6427
6428 config_appended_defs="$config_appended_defs${newline}NO_PTHREADS=${NO_PTHREADS}"
6429
6430 ## Output files
6431 ac_config_files="$ac_config_files "${config_file}":"${config_in}""
6432
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.
6439 #
6440 # config.status only pays attention to the cache file if you give it
6441 # the --recheck option to rerun configure.
6442 #
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
6445 # following values.
6446
6447 _ACEOF
6448
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.
6454 (
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
6457     case $ac_val in #(
6458     *${as_nl}*)
6459       case $ac_var in #(
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;} ;;
6462       esac
6463       case $ac_var in #(
6464       _ | IFS | as_nl) ;; #(
6465       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6466       *) { eval $ac_var=; unset $ac_var;} ;;
6467       esac ;;
6468     esac
6469   done
6470
6471   (set) 2>&1 |
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 \.
6476       sed -n \
6477         "s/'/'\\\\''/g;
6478           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6479       ;; #(
6480     *)
6481       # `set' quotes correctly as required by POSIX, so do not add quotes.
6482       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6483       ;;
6484     esac |
6485     sort
6486 ) |
6487   sed '
6488      /^ac_cv_env_/b end
6489      t clear
6490      :clear
6491      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6492      t end
6493      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6494      :end' >>confcache
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"
6502       else
6503         case $cache_file in #(
6504         */* | ?:*)
6505           mv -f confcache "$cache_file"$$ &&
6506           mv -f "$cache_file"$$ "$cache_file" ;; #(
6507         *)
6508           mv -f confcache "$cache_file" ;;
6509         esac
6510       fi
6511     fi
6512   else
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;}
6515   fi
6516 fi
6517 rm -f confcache
6518
6519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6520 # Let make expand exec_prefix.
6521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6522
6523 # Transform confdefs.h into DEFS.
6524 # Protect against shell expansion while executing Makefile rules.
6525 # Protect against Makefile macro expansion.
6526 #
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.
6530 ac_script='
6531 :mline
6532 /\\$/{
6533  N
6534  s,\\\n,,
6535  b mline
6536 }
6537 t clear
6538 :clear
6539 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
6540 t quote
6541 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
6542 t quote
6543 b any
6544 :quote
6545 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6546 s/\[/\\&/g
6547 s/\]/\\&/g
6548 s/\$/$$/g
6549 H
6550 :any
6551 ${
6552         g
6553         s/^\n//
6554         s/\n/ /g
6555         p
6556 }
6557 '
6558 DEFS=`sed -n "$ac_script" confdefs.h`
6559
6560
6561 ac_libobjs=
6562 ac_ltlibobjs=
6563 U=
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'
6572 done
6573 LIBOBJS=$ac_libobjs
6574
6575 LTLIBOBJS=$ac_ltlibobjs
6576
6577
6578
6579 : "${CONFIG_STATUS=./config.status}"
6580 ac_write_fail=0
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;}
6585 as_write_fail=0
6586 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6587 #! $SHELL
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.
6592
6593 debug=false
6594 ac_cs_recheck=false
6595 ac_cs_silent=false
6596
6597 SHELL=\${CONFIG_SHELL-$SHELL}
6598 export SHELL
6599 _ASEOF
6600 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6601 ## -------------------- ##
6602 ## M4sh Initialization. ##
6603 ## -------------------- ##
6604
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 :
6608   emulate sh
6609   NULLCMD=:
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
6614 else
6615   case `(set -o) 2>/dev/null` in #(
6616   *posix*) :
6617     set -o posix ;; #(
6618   *) :
6619      ;;
6620 esac
6621 fi
6622
6623
6624 as_nl='
6625 '
6626 export as_nl
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'
6640 else
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'
6644   else
6645     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6646     as_echo_n_body='eval
6647       arg=$1;
6648       case $arg in #(
6649       *"$as_nl"*)
6650         expr "X$arg" : "X\\(.*\\)$as_nl";
6651         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6652       esac;
6653       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6654     '
6655     export as_echo_n_body
6656     as_echo_n='sh -c $as_echo_n_body as_echo'
6657   fi
6658   export as_echo_body
6659   as_echo='sh -c $as_echo_body as_echo'
6660 fi
6661
6662 # The user is always right.
6663 if test "${PATH_SEPARATOR+set}" != set; then
6664   PATH_SEPARATOR=:
6665   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6666     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6667       PATH_SEPARATOR=';'
6668   }
6669 fi
6670
6671
6672 # IFS
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.)
6677 IFS=" ""        $as_nl"
6678
6679 # Find who we are.  Look in the path if we contain no directory separator.
6680 as_myself=
6681 case $0 in #((
6682   *[\\/]* ) as_myself=$0 ;;
6683   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6689   done
6690 IFS=$as_save_IFS
6691
6692      ;;
6693 esac
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
6697   as_myself=$0
6698 fi
6699 if test ! -f "$as_myself"; then
6700   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6701   exit 1
6702 fi
6703
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 || :
6711 done
6712 PS1='$ '
6713 PS2='> '
6714 PS4='+ '
6715
6716 # NLS nuisances.
6717 LC_ALL=C
6718 export LC_ALL
6719 LANGUAGE=C
6720 export LANGUAGE
6721
6722 # CDPATH.
6723 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6724
6725
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.
6731 as_fn_error ()
6732 {
6733   as_status=$1; test $as_status -eq 0 && as_status=1
6734   if test "$4"; then
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
6737   fi
6738   $as_echo "$as_me: error: $2" >&2
6739   as_fn_exit $as_status
6740 } # as_fn_error
6741
6742
6743 # as_fn_set_status STATUS
6744 # -----------------------
6745 # Set $? to STATUS, without forking.
6746 as_fn_set_status ()
6747 {
6748   return $1
6749 } # as_fn_set_status
6750
6751 # as_fn_exit STATUS
6752 # -----------------
6753 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6754 as_fn_exit ()
6755 {
6756   set +e
6757   as_fn_set_status $1
6758   exit $1
6759 } # as_fn_exit
6760
6761 # as_fn_unset VAR
6762 # ---------------
6763 # Portably unset VAR.
6764 as_fn_unset ()
6765 {
6766   { eval $1=; unset $1;}
6767 }
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
6774 # implementations.
6775 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6776   eval 'as_fn_append ()
6777   {
6778     eval $1+=\$2
6779   }'
6780 else
6781   as_fn_append ()
6782   {
6783     eval $1=\$$1\$2
6784   }
6785 fi # as_fn_append
6786
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 ()
6794   {
6795     as_val=$(( $* ))
6796   }'
6797 else
6798   as_fn_arith ()
6799   {
6800     as_val=`expr "$@" || test $? -eq 1`
6801   }
6802 fi # as_fn_arith
6803
6804
6805 if expr a : '\(a\)' >/dev/null 2>&1 &&
6806    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6807   as_expr=expr
6808 else
6809   as_expr=false
6810 fi
6811
6812 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6813   as_basename=basename
6814 else
6815   as_basename=false
6816 fi
6817
6818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6819   as_dirname=dirname
6820 else
6821   as_dirname=false
6822 fi
6823
6824 as_me=`$as_basename -- "$0" ||
6825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6826          X"$0" : 'X\(//\)$' \| \
6827          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6828 $as_echo X/"$0" |
6829     sed '/^.*\/\([^/][^/]*\)\/*$/{
6830             s//\1/
6831             q
6832           }
6833           /^X\/\(\/\/\)$/{
6834             s//\1/
6835             q
6836           }
6837           /^X\/\(\/\).*/{
6838             s//\1/
6839             q
6840           }
6841           s/.*/./; q'`
6842
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
6849
6850 ECHO_C= ECHO_N= ECHO_T=
6851 case `echo -n x` in #(((((
6852 -n*)
6853   case `echo 'xy\c'` in
6854   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6855   xy)  ECHO_C='\c';;
6856   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6857        ECHO_T=' ';;
6858   esac;;
6859 *)
6860   ECHO_N='-n';;
6861 esac
6862
6863 rm -f conf$$ conf$$.exe conf$$.file
6864 if test -d conf$$.dir; then
6865   rm -f conf$$.dir/conf$$.file
6866 else
6867   rm -f conf$$.dir
6868   mkdir conf$$.dir 2>/dev/null
6869 fi
6870 if (echo >conf$$.file) 2>/dev/null; then
6871   if ln -s conf$$.file conf$$ 2>/dev/null; then
6872     as_ln_s='ln -s'
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 ||
6878       as_ln_s='cp -p'
6879   elif ln conf$$.file conf$$ 2>/dev/null; then
6880     as_ln_s=ln
6881   else
6882     as_ln_s='cp -p'
6883   fi
6884 else
6885   as_ln_s='cp -p'
6886 fi
6887 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6888 rmdir conf$$.dir 2>/dev/null
6889
6890
6891 # as_fn_mkdir_p
6892 # -------------
6893 # Create "$as_dir" as a directory, including parents if necessary.
6894 as_fn_mkdir_p ()
6895 {
6896
6897   case $as_dir in #(
6898   -*) as_dir=./$as_dir;;
6899   esac
6900   test -d "$as_dir" || eval $as_mkdir_p || {
6901     as_dirs=
6902     while :; do
6903       case $as_dir in #(
6904       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6905       *) as_qdir=$as_dir;;
6906       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6915             s//\1/
6916             q
6917           }
6918           /^X\(\/\/\)[^/].*/{
6919             s//\1/
6920             q
6921           }
6922           /^X\(\/\/\)$/{
6923             s//\1/
6924             q
6925           }
6926           /^X\(\/\).*/{
6927             s//\1/
6928             q
6929           }
6930           s/.*/./; q'`
6931       test -d "$as_dir" && break
6932     done
6933     test -z "$as_dirs" || eval "mkdir $as_dirs"
6934   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6935
6936
6937 } # as_fn_mkdir_p
6938 if mkdir -p . 2>/dev/null; then
6939   as_mkdir_p='mkdir -p "$as_dir"'
6940 else
6941   test -d ./-p && rmdir ./-p
6942   as_mkdir_p=false
6943 fi
6944
6945 if test -x / >/dev/null 2>&1; then
6946   as_test_x='test -x'
6947 else
6948   if ls -dL / >/dev/null 2>&1; then
6949     as_ls_L_option=L
6950   else
6951     as_ls_L_option=
6952   fi
6953   as_test_x='
6954     eval sh -c '\''
6955       if test -d "$1"; then
6956         test -d "$1/.";
6957       else
6958         case $1 in #(
6959         -*)set "./$1";;
6960         esac;
6961         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6962         ???[sx]*):;;*)false;;esac;fi
6963     '\'' sh
6964   '
6965 fi
6966 as_executable_p=$as_test_x
6967
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'"
6970
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'"
6973
6974
6975 exec 6>&1
6976 ## ----------------------------------- ##
6977 ## Main body of $CONFIG_STATUS script. ##
6978 ## ----------------------------------- ##
6979 _ASEOF
6980 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6981
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.
6986 ac_log="
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
6989
6990   CONFIG_FILES    = $CONFIG_FILES
6991   CONFIG_HEADERS  = $CONFIG_HEADERS
6992   CONFIG_LINKS    = $CONFIG_LINKS
6993   CONFIG_COMMANDS = $CONFIG_COMMANDS
6994   $ $0 $@
6995
6996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6997 "
6998
6999 _ACEOF
7000
7001 case $ac_config_files in *"
7002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7003 esac
7004
7005
7006
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"
7011
7012 _ACEOF
7013
7014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7015 ac_cs_usage="\
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.
7019
7020 Usage: $0 [OPTION]... [TAG]...
7021
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
7031
7032 Configuration files:
7033 $config_files
7034
7035 Configuration commands:
7036 $config_commands
7037
7038 Report bugs to <git@vger.kernel.org>."
7039
7040 _ACEOF
7041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7043 ac_cs_version="\\
7044 git config.status 2.0.1
7045 configured by $0, generated by GNU Autoconf 2.68,
7046   with options \\"\$ac_cs_config\\"
7047
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."
7051
7052 ac_pwd='$ac_pwd'
7053 srcdir='$srcdir'
7054 test -n "\$AWK" || AWK=awk
7055 _ACEOF
7056
7057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7058 # The default lists apply if the user does not specify any file.
7059 ac_need_defaults=:
7060 while test $# != 0
7061 do
7062   case $1 in
7063   --*=?*)
7064     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7065     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7066     ac_shift=:
7067     ;;
7068   --*=)
7069     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7070     ac_optarg=
7071     ac_shift=:
7072     ;;
7073   *)
7074     ac_option=$1
7075     ac_optarg=$2
7076     ac_shift=shift
7077     ;;
7078   esac
7079
7080   case $ac_option in
7081   # Handling of the options.
7082   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7083     ac_cs_recheck=: ;;
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 )
7089     debug=: ;;
7090   --file | --fil | --fi | --f )
7091     $ac_shift
7092     case $ac_optarg in
7093     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7094     '') as_fn_error $? "missing file argument" ;;
7095     esac
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)
7102     ac_cs_silent=: ;;
7103
7104   # This is an error.
7105   -*) as_fn_error $? "unrecognized option: \`$1'
7106 Try \`$0 --help' for more information." ;;
7107
7108   *) as_fn_append ac_config_targets " $1"
7109      ac_need_defaults=false ;;
7110
7111   esac
7112   shift
7113 done
7114
7115 ac_configure_extra_args=
7116
7117 if $ac_cs_silent; then
7118   exec 6>/dev/null
7119   ac_configure_extra_args="$ac_configure_extra_args --silent"
7120 fi
7121
7122 _ACEOF
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
7126   shift
7127   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7128   CONFIG_SHELL='$SHELL'
7129   export CONFIG_SHELL
7130   exec "\$@"
7131 fi
7132
7133 _ACEOF
7134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7135 exec 5>>config.log
7136 {
7137   echo
7138   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7139 ## Running $as_me. ##
7140 _ASBOX
7141   $as_echo "$ac_log"
7142 } >&5
7143
7144 _ACEOF
7145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7146 #
7147 # INIT-COMMANDS
7148 #
7149 config_file=$config_file
7150                         config_appended_defs="$config_appended_defs"
7151
7152 _ACEOF
7153
7154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7155
7156 # Handling of arguments.
7157 for ac_config_target in $ac_config_targets
7158 do
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}"" ;;
7162
7163   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7164   esac
7165 done
7166
7167
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
7175 fi
7176
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'.
7183 $debug ||
7184 {
7185   tmp= ac_tmp=
7186   trap 'exit_status=$?
7187   : "${ac_tmp:=$tmp}"
7188   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7189 ' 0
7190   trap 'as_fn_exit 1' 1 2 13 15
7191 }
7192 # Create a (secure) tmp directory for tmp files.
7193
7194 {
7195   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7196   test -d "$tmp"
7197 }  ||
7198 {
7199   tmp=./conf$$-$RANDOM
7200   (umask 077 && mkdir "$tmp")
7201 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7202 ac_tmp=$tmp
7203
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
7208
7209
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\'
7216 fi
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
7219   ac_cs_awk_cr='\\r'
7220 else
7221   ac_cs_awk_cr=$ac_cr
7222 fi
7223
7224 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7225 _ACEOF
7226
7227
7228 {
7229   echo "cat >conf$$subs.awk <<_ACEOF" &&
7230   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7231   echo "_ACEOF"
7232 } >conf$$subs.sh ||
7233   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7234 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7235 ac_delim='%!_!# '
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
7239
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
7242     break
7243   elif $ac_last_try; then
7244     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7245   else
7246     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7247   fi
7248 done
7249 rm -f conf$$subs.sh
7250
7251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7252 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7253 _ACEOF
7254 sed -n '
7255 h
7256 s/^/S["/; s/!.*/"]=/
7257 p
7258 g
7259 s/^[^!]*!//
7260 :repl
7261 t repl
7262 s/'"$ac_delim"'$//
7263 t delim
7264 :nl
7265 h
7266 s/\(.\{148\}\)..*/\1/
7267 t more1
7268 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7269 p
7270 n
7271 b repl
7272 :more1
7273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7274 p
7275 g
7276 s/.\{148\}//
7277 t nl
7278 :delim
7279 h
7280 s/\(.\{148\}\)..*/\1/
7281 t more2
7282 s/["\\]/\\&/g; s/^/"/; s/$/"/
7283 p
7284 b
7285 :more2
7286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7287 p
7288 g
7289 s/.\{148\}//
7290 t delim
7291 ' <conf$$subs.awk | sed '
7292 /^[^""]/{
7293   N
7294   s/\n//
7295 }
7296 ' >>$CONFIG_STATUS || ac_write_fail=1
7297 rm -f conf$$subs.awk
7298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7299 _ACAWK
7300 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7301   for (key in S) S_is_set[key] = 1
7302   FS = "\a"
7303
7304 }
7305 {
7306   line = $ 0
7307   nfields = split(line, field, "@")
7308   substed = 0
7309   len = length(field[1])
7310   for (i = 2; i < nfields; i++) {
7311     key = field[i]
7312     keylen = length(key)
7313     if (S_is_set[key]) {
7314       value = S[key]
7315       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7316       len += length(value) + length(field[++i])
7317       substed = 1
7318     } else
7319       len += 1 + keylen
7320   }
7321
7322   print line
7323 }
7324
7325 _ACAWK
7326 _ACEOF
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"
7330 else
7331   cat
7332 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7333   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7334 _ACEOF
7335
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[        ]*=[    ]*/{
7342 h
7343 s///
7344 s/^/:/
7345 s/[      ]*$/:/
7346 s/:\$(srcdir):/:/g
7347 s/:\${srcdir}:/:/g
7348 s/:@srcdir@:/:/g
7349 s/^:*//
7350 s/:*$//
7351 x
7352 s/\(=[   ]*\).*/\1/
7353 G
7354 s/\n//
7355 s/^[^=]*=[       ]*$//
7356 }'
7357 fi
7358
7359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7360 fi # test -n "$CONFIG_FILES"
7361
7362
7363 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
7364 shift
7365 for ac_tag
7366 do
7367   case $ac_tag in
7368   :[FHLC]) ac_mode=$ac_tag; continue;;
7369   esac
7370   case $ac_mode$ac_tag in
7371   :[FHL]*:*);;
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;;
7375   esac
7376   ac_save_IFS=$IFS
7377   IFS=:
7378   set x $ac_tag
7379   IFS=$ac_save_IFS
7380   shift
7381   ac_file=$1
7382   shift
7383
7384   case $ac_mode in
7385   :L) ac_source=$1;;
7386   :[FH])
7387     ac_file_inputs=
7388     for ac_f
7389     do
7390       case $ac_f 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 `:'.
7395          test -f "$ac_f" ||
7396            case $ac_f in
7397            [\\/$]*) false;;
7398            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7399            esac ||
7400            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7401       esac
7402       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7403       as_fn_append ac_file_inputs " '$ac_f'"
7404     done
7405
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'
7411         `' by configure.'
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;}
7416     fi
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;;
7423     esac
7424
7425     case $ac_tag in
7426     *:-:* | *:-) cat >"$ac_tmp/stdin" \
7427       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7428     esac
7429     ;;
7430   esac
7431
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7439             s//\1/
7440             q
7441           }
7442           /^X\(\/\/\)[^/].*/{
7443             s//\1/
7444             q
7445           }
7446           /^X\(\/\/\)$/{
7447             s//\1/
7448             q
7449           }
7450           /^X\(\/\).*/{
7451             s//\1/
7452             q
7453           }
7454           s/.*/./; q'`
7455   as_dir="$ac_dir"; as_fn_mkdir_p
7456   ac_builddir=.
7457
7458 case "$ac_dir" in
7459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7460 *)
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/ ;;
7467   esac ;;
7468 esac
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
7473
7474 case $srcdir in
7475   .)  # We are building in place.
7476     ac_srcdir=.
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 ;;
7483   *) # Relative name.
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 ;;
7487 esac
7488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7489
7490
7491   case $ac_mode in
7492   :F)
7493   #
7494   # CONFIG_FILE
7495   #
7496
7497 _ACEOF
7498
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=
7503 ac_sed_dataroot='
7504 /datarootdir/ {
7505   p
7506   q
7507 }
7508 /@datadir@/p
7509 /@docdir@/p
7510 /@infodir@/p
7511 /@localedir@/p
7512 /@mandir@/p'
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;}
7518 _ACEOF
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' ;;
7527 esac
7528 _ACEOF
7529
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
7535 $extrasub
7536 _ACEOF
7537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7538 :t
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
7551 "
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
7554
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;}
7563
7564   rm -f "$ac_tmp/stdin"
7565   case $ac_file in
7566   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7567   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7568   esac \
7569   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7570  ;;
7571
7572
7573   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7574 $as_echo "$as_me: executing $ac_file commands" >&6;}
7575  ;;
7576   esac
7577
7578
7579   case $ac_file$ac_mode in
7580     "$config_file":C) echo "$config_appended_defs" >> "$config_file" ;;
7581
7582   esac
7583 done # for ac_tag
7584
7585
7586 as_fn_exit 0
7587 _ACEOF
7588 ac_clean_files=$ac_clean_files_save
7589
7590 test $ac_write_fail = 0 ||
7591   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7592
7593
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
7603   ac_cs_success=:
7604   ac_config_status_args=
7605   test "$silent" = yes &&
7606     ac_config_status_args="$ac_config_status_args --quiet"
7607   exec 5>/dev/null
7608   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7609   exec 5>>config.log
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
7613 fi
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;}
7617 fi
7618