OSDN Git Service

f2a3568f117205466b956342585f1fc255b66542
[ntch/develop.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntch 1.0.2.2.
4 #
5 # Report bugs to <akohta001@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: akohta001@gmail.com about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='ntch'
582 PACKAGE_TARNAME='ntch'
583 PACKAGE_VERSION='1.0.2.2'
584 PACKAGE_STRING='ntch 1.0.2.2'
585 PACKAGE_BUGREPORT='akohta001@gmail.com'
586 PACKAGE_URL='https://sourceforge.jp/projects/ntch/'
587
588 ac_unique_file="src/main.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_default_prefix=/usr/local
626 ac_subst_vars='LTLIBOBJS
627 ac_prefix_program
628 LIBOBJS
629 EGREP
630 GREP
631 CPP
632 INSTALL_DATA
633 INSTALL_SCRIPT
634 INSTALL_PROGRAM
635 OBJEXT
636 EXEEXT
637 ac_ct_CC
638 CPPFLAGS
639 LDFLAGS
640 CFLAGS
641 CC
642 target_alias
643 host_alias
644 build_alias
645 LIBS
646 ECHO_T
647 ECHO_N
648 ECHO_C
649 DEFS
650 mandir
651 localedir
652 libdir
653 psdir
654 pdfdir
655 dvidir
656 htmldir
657 infodir
658 docdir
659 oldincludedir
660 includedir
661 localstatedir
662 sharedstatedir
663 sysconfdir
664 datadir
665 datarootdir
666 libexecdir
667 sbindir
668 bindir
669 program_transform_name
670 prefix
671 exec_prefix
672 PACKAGE_URL
673 PACKAGE_BUGREPORT
674 PACKAGE_STRING
675 PACKAGE_VERSION
676 PACKAGE_TARNAME
677 PACKAGE_NAME
678 PATH_SEPARATOR
679 SHELL'
680 ac_subst_files=''
681 ac_user_opts='
682 enable_option_checking
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   elif test "x$build_alias" != "x$host_alias"; then
1149     cross_compiling=yes
1150   fi
1151 fi
1152
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156 test "$silent" = yes && exec 6>/dev/null
1157
1158
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162   as_fn_error $? "working directory cannot be determined"
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164   as_fn_error $? "pwd does not report name of working directory"
1165
1166
1167 # Find the source files, if location was not specified.
1168 if test -z "$srcdir"; then
1169   ac_srcdir_defaulted=yes
1170   # Try the directory containing this script, then the parent directory.
1171   ac_confdir=`$as_dirname -- "$as_myself" ||
1172 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173          X"$as_myself" : 'X\(//\)[^/]' \| \
1174          X"$as_myself" : 'X\(//\)$' \| \
1175          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1176 $as_echo X"$as_myself" |
1177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\/\)[^/].*/{
1182             s//\1/
1183             q
1184           }
1185           /^X\(\/\/\)$/{
1186             s//\1/
1187             q
1188           }
1189           /^X\(\/\).*/{
1190             s//\1/
1191             q
1192           }
1193           s/.*/./; q'`
1194   srcdir=$ac_confdir
1195   if test ! -r "$srcdir/$ac_unique_file"; then
1196     srcdir=..
1197   fi
1198 else
1199   ac_srcdir_defaulted=no
1200 fi
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1204 fi
1205 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206 ac_abs_confdir=`(
1207         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1208         pwd)`
1209 # When building in place, set srcdir=.
1210 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211   srcdir=.
1212 fi
1213 # Remove unnecessary trailing slashes from srcdir.
1214 # Double slashes in file names in object file debugging info
1215 # mess up M-x gdb in Emacs.
1216 case $srcdir in
1217 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1218 esac
1219 for ac_var in $ac_precious_vars; do
1220   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221   eval ac_env_${ac_var}_value=\$${ac_var}
1222   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224 done
1225
1226 #
1227 # Report the --help message.
1228 #
1229 if test "$ac_init_help" = "long"; then
1230   # Omit some internal or obsolete options to make the list less imposing.
1231   # This message is too long to be a string in the A/UX 3.1 sh.
1232   cat <<_ACEOF
1233 \`configure' configures ntch 1.0.2.2 to adapt to many kinds of systems.
1234
1235 Usage: $0 [OPTION]... [VAR=VALUE]...
1236
1237 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238 VAR=VALUE.  See below for descriptions of some of the useful variables.
1239
1240 Defaults for the options are specified in brackets.
1241
1242 Configuration:
1243   -h, --help              display this help and exit
1244       --help=short        display options specific to this package
1245       --help=recursive    display the short help of all the included packages
1246   -V, --version           display version information and exit
1247   -q, --quiet, --silent   do not print \`checking ...' messages
1248       --cache-file=FILE   cache test results in FILE [disabled]
1249   -C, --config-cache      alias for \`--cache-file=config.cache'
1250   -n, --no-create         do not create output files
1251       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1252
1253 Installation directories:
1254   --prefix=PREFIX         install architecture-independent files in PREFIX
1255                           [$ac_default_prefix]
1256   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1257                           [PREFIX]
1258
1259 By default, \`make install' will install all the files in
1260 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1261 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262 for instance \`--prefix=\$HOME'.
1263
1264 For better control, use the options below.
1265
1266 Fine tuning of the installation directories:
1267   --bindir=DIR            user executables [EPREFIX/bin]
1268   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1269   --libexecdir=DIR        program executables [EPREFIX/libexec]
1270   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1271   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1272   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1273   --libdir=DIR            object code libraries [EPREFIX/lib]
1274   --includedir=DIR        C header files [PREFIX/include]
1275   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1276   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1277   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1278   --infodir=DIR           info documentation [DATAROOTDIR/info]
1279   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1280   --mandir=DIR            man documentation [DATAROOTDIR/man]
1281   --docdir=DIR            documentation root [DATAROOTDIR/doc/ntch]
1282   --htmldir=DIR           html documentation [DOCDIR]
1283   --dvidir=DIR            dvi documentation [DOCDIR]
1284   --pdfdir=DIR            pdf documentation [DOCDIR]
1285   --psdir=DIR             ps documentation [DOCDIR]
1286 _ACEOF
1287
1288   cat <<\_ACEOF
1289 _ACEOF
1290 fi
1291
1292 if test -n "$ac_init_help"; then
1293   case $ac_init_help in
1294      short | recursive ) echo "Configuration of ntch 1.0.2.2:";;
1295    esac
1296   cat <<\_ACEOF
1297
1298 Some influential environment variables:
1299   CC          C compiler command
1300   CFLAGS      C compiler flags
1301   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1302               nonstandard directory <lib dir>
1303   LIBS        libraries to pass to the linker, e.g. -l<library>
1304   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1305               you have headers in a nonstandard directory <include dir>
1306   CPP         C preprocessor
1307
1308 Use these variables to override the choices made by `configure' or to help
1309 it to find libraries and programs with nonstandard names/locations.
1310
1311 Report bugs to <akohta001@gmail.com>.
1312 ntch home page: <https://sourceforge.jp/projects/ntch/>.
1313 _ACEOF
1314 ac_status=$?
1315 fi
1316
1317 if test "$ac_init_help" = "recursive"; then
1318   # If there are subdirs, report their specific --help.
1319   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1320     test -d "$ac_dir" ||
1321       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1322       continue
1323     ac_builddir=.
1324
1325 case "$ac_dir" in
1326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 *)
1328   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1329   # A ".." for each directory in $ac_dir_suffix.
1330   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1331   case $ac_top_builddir_sub in
1332   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1334   esac ;;
1335 esac
1336 ac_abs_top_builddir=$ac_pwd
1337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1338 # for backward compatibility:
1339 ac_top_builddir=$ac_top_build_prefix
1340
1341 case $srcdir in
1342   .)  # We are building in place.
1343     ac_srcdir=.
1344     ac_top_srcdir=$ac_top_builddir_sub
1345     ac_abs_top_srcdir=$ac_pwd ;;
1346   [\\/]* | ?:[\\/]* )  # Absolute name.
1347     ac_srcdir=$srcdir$ac_dir_suffix;
1348     ac_top_srcdir=$srcdir
1349     ac_abs_top_srcdir=$srcdir ;;
1350   *) # Relative name.
1351     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1352     ac_top_srcdir=$ac_top_build_prefix$srcdir
1353     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1354 esac
1355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1356
1357     cd "$ac_dir" || { ac_status=$?; continue; }
1358     # Check for guested configure.
1359     if test -f "$ac_srcdir/configure.gnu"; then
1360       echo &&
1361       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1362     elif test -f "$ac_srcdir/configure"; then
1363       echo &&
1364       $SHELL "$ac_srcdir/configure" --help=recursive
1365     else
1366       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1367     fi || ac_status=$?
1368     cd "$ac_pwd" || { ac_status=$?; break; }
1369   done
1370 fi
1371
1372 test -n "$ac_init_help" && exit $ac_status
1373 if $ac_init_version; then
1374   cat <<\_ACEOF
1375 ntch configure 1.0.2.2
1376 generated by GNU Autoconf 2.69
1377
1378 Copyright (C) 2012 Free Software Foundation, Inc.
1379 This configure script is free software; the Free Software Foundation
1380 gives unlimited permission to copy, distribute and modify it.
1381 _ACEOF
1382   exit
1383 fi
1384
1385 ## ------------------------ ##
1386 ## Autoconf initialization. ##
1387 ## ------------------------ ##
1388
1389 # ac_fn_c_try_compile LINENO
1390 # --------------------------
1391 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1392 ac_fn_c_try_compile ()
1393 {
1394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1395   rm -f conftest.$ac_objext
1396   if { { ac_try="$ac_compile"
1397 case "(($ac_try" in
1398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1399   *) ac_try_echo=$ac_try;;
1400 esac
1401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1402 $as_echo "$ac_try_echo"; } >&5
1403   (eval "$ac_compile") 2>conftest.err
1404   ac_status=$?
1405   if test -s conftest.err; then
1406     grep -v '^ *+' conftest.err >conftest.er1
1407     cat conftest.er1 >&5
1408     mv -f conftest.er1 conftest.err
1409   fi
1410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1411   test $ac_status = 0; } && {
1412          test -z "$ac_c_werror_flag" ||
1413          test ! -s conftest.err
1414        } && test -s conftest.$ac_objext; then :
1415   ac_retval=0
1416 else
1417   $as_echo "$as_me: failed program was:" >&5
1418 sed 's/^/| /' conftest.$ac_ext >&5
1419
1420         ac_retval=1
1421 fi
1422   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1423   as_fn_set_status $ac_retval
1424
1425 } # ac_fn_c_try_compile
1426
1427 # ac_fn_c_try_link LINENO
1428 # -----------------------
1429 # Try to link conftest.$ac_ext, and return whether this succeeded.
1430 ac_fn_c_try_link ()
1431 {
1432   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1433   rm -f conftest.$ac_objext conftest$ac_exeext
1434   if { { ac_try="$ac_link"
1435 case "(($ac_try" in
1436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1437   *) ac_try_echo=$ac_try;;
1438 esac
1439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1440 $as_echo "$ac_try_echo"; } >&5
1441   (eval "$ac_link") 2>conftest.err
1442   ac_status=$?
1443   if test -s conftest.err; then
1444     grep -v '^ *+' conftest.err >conftest.er1
1445     cat conftest.er1 >&5
1446     mv -f conftest.er1 conftest.err
1447   fi
1448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1449   test $ac_status = 0; } && {
1450          test -z "$ac_c_werror_flag" ||
1451          test ! -s conftest.err
1452        } && test -s conftest$ac_exeext && {
1453          test "$cross_compiling" = yes ||
1454          test -x conftest$ac_exeext
1455        }; then :
1456   ac_retval=0
1457 else
1458   $as_echo "$as_me: failed program was:" >&5
1459 sed 's/^/| /' conftest.$ac_ext >&5
1460
1461         ac_retval=1
1462 fi
1463   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1464   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1465   # interfere with the next link command; also delete a directory that is
1466   # left behind by Apple's compiler.  We do this before executing the actions.
1467   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1468   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1469   as_fn_set_status $ac_retval
1470
1471 } # ac_fn_c_try_link
1472
1473 # ac_fn_c_try_cpp LINENO
1474 # ----------------------
1475 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_cpp ()
1477 {
1478   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479   if { { ac_try="$ac_cpp conftest.$ac_ext"
1480 case "(($ac_try" in
1481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482   *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1487   ac_status=$?
1488   if test -s conftest.err; then
1489     grep -v '^ *+' conftest.err >conftest.er1
1490     cat conftest.er1 >&5
1491     mv -f conftest.er1 conftest.err
1492   fi
1493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494   test $ac_status = 0; } > conftest.i && {
1495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1496          test ! -s conftest.err
1497        }; then :
1498   ac_retval=0
1499 else
1500   $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1502
1503     ac_retval=1
1504 fi
1505   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506   as_fn_set_status $ac_retval
1507
1508 } # ac_fn_c_try_cpp
1509
1510 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1511 # -------------------------------------------------------
1512 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1513 # the include files in INCLUDES and setting the cache variable VAR
1514 # accordingly.
1515 ac_fn_c_check_header_mongrel ()
1516 {
1517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518   if eval \${$3+:} false; then :
1519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1520 $as_echo_n "checking for $2... " >&6; }
1521 if eval \${$3+:} false; then :
1522   $as_echo_n "(cached) " >&6
1523 fi
1524 eval ac_res=\$$3
1525                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1526 $as_echo "$ac_res" >&6; }
1527 else
1528   # Is the header compilable?
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1530 $as_echo_n "checking $2 usability... " >&6; }
1531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1532 /* end confdefs.h.  */
1533 $4
1534 #include <$2>
1535 _ACEOF
1536 if ac_fn_c_try_compile "$LINENO"; then :
1537   ac_header_compiler=yes
1538 else
1539   ac_header_compiler=no
1540 fi
1541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1543 $as_echo "$ac_header_compiler" >&6; }
1544
1545 # Is the header present?
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1547 $as_echo_n "checking $2 presence... " >&6; }
1548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1549 /* end confdefs.h.  */
1550 #include <$2>
1551 _ACEOF
1552 if ac_fn_c_try_cpp "$LINENO"; then :
1553   ac_header_preproc=yes
1554 else
1555   ac_header_preproc=no
1556 fi
1557 rm -f conftest.err conftest.i conftest.$ac_ext
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1559 $as_echo "$ac_header_preproc" >&6; }
1560
1561 # So?  What about this header?
1562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1563   yes:no: )
1564     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1565 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1566     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1567 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1568     ;;
1569   no:yes:* )
1570     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1571 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1572     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1573 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1574     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1575 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1576     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1577 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1578     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1579 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1580 ( $as_echo "## ---------------------------------- ##
1581 ## Report this to akohta001@gmail.com ##
1582 ## ---------------------------------- ##"
1583      ) | sed "s/^/$as_me: WARNING:     /" >&2
1584     ;;
1585 esac
1586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589   $as_echo_n "(cached) " >&6
1590 else
1591   eval "$3=\$ac_header_compiler"
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 fi
1597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598
1599 } # ac_fn_c_check_header_mongrel
1600
1601 # ac_fn_c_try_run LINENO
1602 # ----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1604 # that executables *can* be run.
1605 ac_fn_c_try_run ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_link") 2>&5
1616   ac_status=$?
1617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1619   { { case "(($ac_try" in
1620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621   *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625   (eval "$ac_try") 2>&5
1626   ac_status=$?
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; }; }; then :
1629   ac_retval=0
1630 else
1631   $as_echo "$as_me: program exited with status $ac_status" >&5
1632        $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635        ac_retval=$ac_status
1636 fi
1637   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639   as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_run
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653   $as_echo_n "(cached) " >&6
1654 else
1655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h.  */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661   eval "$3=yes"
1662 else
1663   eval "$3=no"
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 fi
1667 eval ac_res=\$$3
1668                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_header_compile
1673
1674 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1675 # -------------------------------------------
1676 # Tests whether TYPE exists after having included INCLUDES, setting cache
1677 # variable VAR accordingly.
1678 ac_fn_c_check_type ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684   $as_echo_n "(cached) " >&6
1685 else
1686   eval "$3=no"
1687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h.  */
1689 $4
1690 int
1691 main ()
1692 {
1693 if (sizeof ($2))
1694          return 0;
1695   ;
1696   return 0;
1697 }
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 $4
1703 int
1704 main ()
1705 {
1706 if (sizeof (($2)))
1707             return 0;
1708   ;
1709   return 0;
1710 }
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713
1714 else
1715   eval "$3=yes"
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_type
1727
1728 # ac_fn_c_check_func LINENO FUNC VAR
1729 # ----------------------------------
1730 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1731 ac_fn_c_check_func ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737   $as_echo_n "(cached) " >&6
1738 else
1739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h.  */
1741 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1743 #define $2 innocuous_$2
1744
1745 /* System header to define __stub macros and hopefully few prototypes,
1746     which can conflict with char $2 (); below.
1747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748     <limits.h> exists even on freestanding compilers.  */
1749
1750 #ifdef __STDC__
1751 # include <limits.h>
1752 #else
1753 # include <assert.h>
1754 #endif
1755
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759    Use char because int might match the return type of a GCC
1760    builtin and then its argument prototype would still apply.  */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 ();
1765 /* The GNU C library defines this for functions which it implements
1766     to always fail with ENOSYS.  Some functions are actually named
1767     something starting with __ and the normal name is an alias.  */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main ()
1774 {
1775 return $2 ();
1776   ;
1777   return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"; then :
1781   eval "$3=yes"
1782 else
1783   eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext \
1786     conftest$ac_exeext conftest.$ac_ext
1787 fi
1788 eval ac_res=\$$3
1789                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_func
1794 cat >config.log <<_ACEOF
1795 This file contains any messages produced by compilers while
1796 running configure, to aid debugging if configure makes a mistake.
1797
1798 It was created by ntch $as_me 1.0.2.2, which was
1799 generated by GNU Autoconf 2.69.  Invocation command line was
1800
1801   $ $0 $@
1802
1803 _ACEOF
1804 exec 5>>config.log
1805 {
1806 cat <<_ASUNAME
1807 ## --------- ##
1808 ## Platform. ##
1809 ## --------- ##
1810
1811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816
1817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1819
1820 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1821 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1824 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1825 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1826 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1827
1828 _ASUNAME
1829
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835     $as_echo "PATH: $as_dir"
1836   done
1837 IFS=$as_save_IFS
1838
1839 } >&5
1840
1841 cat >&5 <<_ACEOF
1842
1843
1844 ## ----------- ##
1845 ## Core tests. ##
1846 ## ----------- ##
1847
1848 _ACEOF
1849
1850
1851 # Keep a trace of the command line.
1852 # Strip out --no-create and --no-recursion so they do not pile up.
1853 # Strip out --silent because we don't want to record it for future runs.
1854 # Also quote any args containing shell meta-characters.
1855 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_configure_args=
1857 ac_configure_args0=
1858 ac_configure_args1=
1859 ac_must_keep_next=false
1860 for ac_pass in 1 2
1861 do
1862   for ac_arg
1863   do
1864     case $ac_arg in
1865     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867     | -silent | --silent | --silen | --sile | --sil)
1868       continue ;;
1869     *\'*)
1870       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1871     esac
1872     case $ac_pass in
1873     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1874     2)
1875       as_fn_append ac_configure_args1 " '$ac_arg'"
1876       if test $ac_must_keep_next = true; then
1877         ac_must_keep_next=false # Got value, back to normal.
1878       else
1879         case $ac_arg in
1880           *=* | --config-cache | -C | -disable-* | --disable-* \
1881           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883           | -with-* | --with-* | -without-* | --without-* | --x)
1884             case "$ac_configure_args0 " in
1885               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886             esac
1887             ;;
1888           -* ) ac_must_keep_next=true ;;
1889         esac
1890       fi
1891       as_fn_append ac_configure_args " '$ac_arg'"
1892       ;;
1893     esac
1894   done
1895 done
1896 { ac_configure_args0=; unset ac_configure_args0;}
1897 { ac_configure_args1=; unset ac_configure_args1;}
1898
1899 # When interrupted or exit'd, cleanup temporary files, and complete
1900 # config.log.  We remove comments because anyway the quotes in there
1901 # would cause problems or look ugly.
1902 # WARNING: Use '\'' to represent an apostrophe within the trap.
1903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904 trap 'exit_status=$?
1905   # Save into config.log some information that might help in debugging.
1906   {
1907     echo
1908
1909     $as_echo "## ---------------- ##
1910 ## Cache variables. ##
1911 ## ---------------- ##"
1912     echo
1913     # The following way of writing the cache mishandles newlines in values,
1914 (
1915   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1916     eval ac_val=\$$ac_var
1917     case $ac_val in #(
1918     *${as_nl}*)
1919       case $ac_var in #(
1920       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1921 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1922       esac
1923       case $ac_var in #(
1924       _ | IFS | as_nl) ;; #(
1925       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1926       *) { eval $ac_var=; unset $ac_var;} ;;
1927       esac ;;
1928     esac
1929   done
1930   (set) 2>&1 |
1931     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1932     *${as_nl}ac_space=\ *)
1933       sed -n \
1934         "s/'\''/'\''\\\\'\'''\''/g;
1935           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1936       ;; #(
1937     *)
1938       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939       ;;
1940     esac |
1941     sort
1942 )
1943     echo
1944
1945     $as_echo "## ----------------- ##
1946 ## Output variables. ##
1947 ## ----------------- ##"
1948     echo
1949     for ac_var in $ac_subst_vars
1950     do
1951       eval ac_val=\$$ac_var
1952       case $ac_val in
1953       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954       esac
1955       $as_echo "$ac_var='\''$ac_val'\''"
1956     done | sort
1957     echo
1958
1959     if test -n "$ac_subst_files"; then
1960       $as_echo "## ------------------- ##
1961 ## File substitutions. ##
1962 ## ------------------- ##"
1963       echo
1964       for ac_var in $ac_subst_files
1965       do
1966         eval ac_val=\$$ac_var
1967         case $ac_val in
1968         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969         esac
1970         $as_echo "$ac_var='\''$ac_val'\''"
1971       done | sort
1972       echo
1973     fi
1974
1975     if test -s confdefs.h; then
1976       $as_echo "## ----------- ##
1977 ## confdefs.h. ##
1978 ## ----------- ##"
1979       echo
1980       cat confdefs.h
1981       echo
1982     fi
1983     test "$ac_signal" != 0 &&
1984       $as_echo "$as_me: caught signal $ac_signal"
1985     $as_echo "$as_me: exit $exit_status"
1986   } >&5
1987   rm -f core *.core core.conftest.* &&
1988     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989     exit $exit_status
1990 ' 0
1991 for ac_signal in 1 2 13 15; do
1992   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993 done
1994 ac_signal=0
1995
1996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1997 rm -f -r conftest* confdefs.h
1998
1999 $as_echo "/* confdefs.h */" > confdefs.h
2000
2001 # Predefined preprocessor variables.
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2009 _ACEOF
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_STRING "$PACKAGE_STRING"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_URL "$PACKAGE_URL"
2025 _ACEOF
2026
2027
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer an explicitly selected file to automatically selected ones.
2030 ac_site_file1=NONE
2031 ac_site_file2=NONE
2032 if test -n "$CONFIG_SITE"; then
2033   # We do not want a PATH search for config.site.
2034   case $CONFIG_SITE in #((
2035     -*)  ac_site_file1=./$CONFIG_SITE;;
2036     */*) ac_site_file1=$CONFIG_SITE;;
2037     *)   ac_site_file1=./$CONFIG_SITE;;
2038   esac
2039 elif test "x$prefix" != xNONE; then
2040   ac_site_file1=$prefix/share/config.site
2041   ac_site_file2=$prefix/etc/config.site
2042 else
2043   ac_site_file1=$ac_default_prefix/share/config.site
2044   ac_site_file2=$ac_default_prefix/etc/config.site
2045 fi
2046 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2047 do
2048   test "x$ac_site_file" = xNONE && continue
2049   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2052     sed 's/^/| /' "$ac_site_file" >&5
2053     . "$ac_site_file" \
2054       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2056 as_fn_error $? "failed to load site script $ac_site_file
2057 See \`config.log' for more details" "$LINENO" 5; }
2058   fi
2059 done
2060
2061 if test -r "$cache_file"; then
2062   # Some versions of bash will fail to source /dev/null (special files
2063   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2064   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066 $as_echo "$as_me: loading cache $cache_file" >&6;}
2067     case $cache_file in
2068       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069       *)                      . "./$cache_file";;
2070     esac
2071   fi
2072 else
2073   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074 $as_echo "$as_me: creating cache $cache_file" >&6;}
2075   >$cache_file
2076 fi
2077
2078 # Check that the precious variables saved in the cache have kept the same
2079 # value.
2080 ac_cache_corrupted=false
2081 for ac_var in $ac_precious_vars; do
2082   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2083   eval ac_new_set=\$ac_env_${ac_var}_set
2084   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2085   eval ac_new_val=\$ac_env_${ac_var}_value
2086   case $ac_old_set,$ac_new_set in
2087     set,)
2088       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2089 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2090       ac_cache_corrupted=: ;;
2091     ,set)
2092       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2093 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2094       ac_cache_corrupted=: ;;
2095     ,);;
2096     *)
2097       if test "x$ac_old_val" != "x$ac_new_val"; then
2098         # differences in whitespace do not lead to failure.
2099         ac_old_val_w=`echo x $ac_old_val`
2100         ac_new_val_w=`echo x $ac_new_val`
2101         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2102           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2103 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2104           ac_cache_corrupted=:
2105         else
2106           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2107 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2108           eval $ac_var=\$ac_old_val
2109         fi
2110         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2111 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2112         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2113 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2114       fi;;
2115   esac
2116   # Pass precious variables to config.status.
2117   if test "$ac_new_set" = set; then
2118     case $ac_new_val in
2119     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2120     *) ac_arg=$ac_var=$ac_new_val ;;
2121     esac
2122     case " $ac_configure_args " in
2123       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2124       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2125     esac
2126   fi
2127 done
2128 if $ac_cache_corrupted; then
2129   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2132 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2133   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2134 fi
2135 ## -------------------- ##
2136 ## Main body of script. ##
2137 ## -------------------- ##
2138
2139 ac_ext=c
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144
2145
2146
2147 ac_config_headers="$ac_config_headers config.h"
2148
2149
2150 # Checks for programs.
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 if test -n "$ac_tool_prefix"; then
2157   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2160 $as_echo_n "checking for $ac_word... " >&6; }
2161 if ${ac_cv_prog_CC+:} false; then :
2162   $as_echo_n "(cached) " >&6
2163 else
2164   if test -n "$CC"; then
2165   ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170   IFS=$as_save_IFS
2171   test -z "$as_dir" && as_dir=.
2172     for ac_exec_ext in '' $ac_executable_extensions; do
2173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2176     break 2
2177   fi
2178 done
2179   done
2180 IFS=$as_save_IFS
2181
2182 fi
2183 fi
2184 CC=$ac_cv_prog_CC
2185 if test -n "$CC"; then
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2187 $as_echo "$CC" >&6; }
2188 else
2189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2190 $as_echo "no" >&6; }
2191 fi
2192
2193
2194 fi
2195 if test -z "$ac_cv_prog_CC"; then
2196   ac_ct_CC=$CC
2197   # Extract the first word of "gcc", so it can be a program name with args.
2198 set dummy gcc; ac_word=$2
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2200 $as_echo_n "checking for $ac_word... " >&6; }
2201 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2202   $as_echo_n "(cached) " >&6
2203 else
2204   if test -n "$ac_ct_CC"; then
2205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 else
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210   IFS=$as_save_IFS
2211   test -z "$as_dir" && as_dir=.
2212     for ac_exec_ext in '' $ac_executable_extensions; do
2213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214     ac_cv_prog_ac_ct_CC="gcc"
2215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2216     break 2
2217   fi
2218 done
2219   done
2220 IFS=$as_save_IFS
2221
2222 fi
2223 fi
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2227 $as_echo "$ac_ct_CC" >&6; }
2228 else
2229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2230 $as_echo "no" >&6; }
2231 fi
2232
2233   if test "x$ac_ct_CC" = x; then
2234     CC=""
2235   else
2236     case $cross_compiling:$ac_tool_warned in
2237 yes:)
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2240 ac_tool_warned=yes ;;
2241 esac
2242     CC=$ac_ct_CC
2243   fi
2244 else
2245   CC="$ac_cv_prog_CC"
2246 fi
2247
2248 if test -z "$CC"; then
2249           if test -n "$ac_tool_prefix"; then
2250     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}cc; ac_word=$2
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if ${ac_cv_prog_CC+:} false; then :
2255   $as_echo_n "(cached) " >&6
2256 else
2257   if test -n "$CC"; then
2258   ac_cv_prog_CC="$CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265     for ac_exec_ext in '' $ac_executable_extensions; do
2266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267     ac_cv_prog_CC="${ac_tool_prefix}cc"
2268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272   done
2273 IFS=$as_save_IFS
2274
2275 fi
2276 fi
2277 CC=$ac_cv_prog_CC
2278 if test -n "$CC"; then
2279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2280 $as_echo "$CC" >&6; }
2281 else
2282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2284 fi
2285
2286
2287   fi
2288 fi
2289 if test -z "$CC"; then
2290   # Extract the first word of "cc", so it can be a program name with args.
2291 set dummy cc; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if ${ac_cv_prog_CC+:} false; then :
2295   $as_echo_n "(cached) " >&6
2296 else
2297   if test -n "$CC"; then
2298   ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300   ac_prog_rejected=no
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306     for ac_exec_ext in '' $ac_executable_extensions; do
2307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2309        ac_prog_rejected=yes
2310        continue
2311      fi
2312     ac_cv_prog_CC="cc"
2313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317   done
2318 IFS=$as_save_IFS
2319
2320 if test $ac_prog_rejected = yes; then
2321   # We found a bogon in the path, so make sure we never use it.
2322   set dummy $ac_cv_prog_CC
2323   shift
2324   if test $# != 0; then
2325     # We chose a different compiler from the bogus one.
2326     # However, it has the same basename, so the bogon will be chosen
2327     # first if we set CC to just the basename; use the full file name.
2328     shift
2329     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2330   fi
2331 fi
2332 fi
2333 fi
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2337 $as_echo "$CC" >&6; }
2338 else
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2341 fi
2342
2343
2344 fi
2345 if test -z "$CC"; then
2346   if test -n "$ac_tool_prefix"; then
2347   for ac_prog in cl.exe
2348   do
2349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_CC+:} false; then :
2354   $as_echo_n "(cached) " >&6
2355 else
2356   if test -n "$CC"; then
2357   ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362   IFS=$as_save_IFS
2363   test -z "$as_dir" && as_dir=.
2364     for ac_exec_ext in '' $ac_executable_extensions; do
2365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368     break 2
2369   fi
2370 done
2371   done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2379 $as_echo "$CC" >&6; }
2380 else
2381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385
2386     test -n "$CC" && break
2387   done
2388 fi
2389 if test -z "$CC"; then
2390   ac_ct_CC=$CC
2391   for ac_prog in cl.exe
2392 do
2393   # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   if test -n "$ac_ct_CC"; then
2401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408     for ac_exec_ext in '' $ac_executable_extensions; do
2409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410     ac_cv_prog_ac_ct_CC="$ac_prog"
2411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415   done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2423 $as_echo "$ac_ct_CC" >&6; }
2424 else
2425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 $as_echo "no" >&6; }
2427 fi
2428
2429
2430   test -n "$ac_ct_CC" && break
2431 done
2432
2433   if test "x$ac_ct_CC" = x; then
2434     CC=""
2435   else
2436     case $cross_compiling:$ac_tool_warned in
2437 yes:)
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     CC=$ac_ct_CC
2443   fi
2444 fi
2445
2446 fi
2447
2448
2449 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details" "$LINENO" 5; }
2453
2454 # Provide some information about the compiler.
2455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2456 set X $ac_compile
2457 ac_compiler=$2
2458 for ac_option in --version -v -V -qversion; do
2459   { { ac_try="$ac_compiler $ac_option >&5"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2467   ac_status=$?
2468   if test -s conftest.err; then
2469     sed '10a\
2470 ... rest of stderr output deleted ...
2471          10q' conftest.err >conftest.er1
2472     cat conftest.er1 >&5
2473   fi
2474   rm -f conftest.er1 conftest.err
2475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476   test $ac_status = 0; }
2477 done
2478
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 ac_clean_files_save=$ac_clean_files
2491 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2492 # Try to create an executable without -o first, disregard a.out.
2493 # It will help us diagnose broken compilers, and finding out an intuition
2494 # of exeext.
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2496 $as_echo_n "checking whether the C compiler works... " >&6; }
2497 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2498
2499 # The possible output files:
2500 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2501
2502 ac_rmfiles=
2503 for ac_file in $ac_files
2504 do
2505   case $ac_file in
2506     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2507     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2508   esac
2509 done
2510 rm -f $ac_rmfiles
2511
2512 if { { ac_try="$ac_link_default"
2513 case "(($ac_try" in
2514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515   *) ac_try_echo=$ac_try;;
2516 esac
2517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518 $as_echo "$ac_try_echo"; } >&5
2519   (eval "$ac_link_default") 2>&5
2520   ac_status=$?
2521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522   test $ac_status = 0; }; then :
2523   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2524 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2525 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2526 # so that the user can short-circuit this test for compilers unknown to
2527 # Autoconf.
2528 for ac_file in $ac_files ''
2529 do
2530   test -f "$ac_file" || continue
2531   case $ac_file in
2532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2533         ;;
2534     [ab].out )
2535         # We found the default executable, but exeext='' is most
2536         # certainly right.
2537         break;;
2538     *.* )
2539         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2540         then :; else
2541            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542         fi
2543         # We set ac_cv_exeext here because the later test for it is not
2544         # safe: cross compilers may not add the suffix if given an `-o'
2545         # argument, so we may need to know it at that point already.
2546         # Even if this section looks crufty: it has the advantage of
2547         # actually working.
2548         break;;
2549     * )
2550         break;;
2551   esac
2552 done
2553 test "$ac_cv_exeext" = no && ac_cv_exeext=
2554
2555 else
2556   ac_file=''
2557 fi
2558 if test -z "$ac_file"; then :
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 as_fn_error 77 "C compiler cannot create executables
2567 See \`config.log' for more details" "$LINENO" 5; }
2568 else
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 fi
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2573 $as_echo_n "checking for C compiler default output file name... " >&6; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2575 $as_echo "$ac_file" >&6; }
2576 ac_exeext=$ac_cv_exeext
2577
2578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2579 ac_clean_files=$ac_clean_files_save
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2581 $as_echo_n "checking for suffix of executables... " >&6; }
2582 if { { ac_try="$ac_link"
2583 case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589   (eval "$ac_link") 2>&5
2590   ac_status=$?
2591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592   test $ac_status = 0; }; then :
2593   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2594 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2595 # work properly (i.e., refer to `conftest.exe'), while it won't with
2596 # `rm'.
2597 for ac_file in conftest.exe conftest conftest.*; do
2598   test -f "$ac_file" || continue
2599   case $ac_file in
2600     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2601     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2602           break;;
2603     * ) break;;
2604   esac
2605 done
2606 else
2607   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details" "$LINENO" 5; }
2611 fi
2612 rm -f conftest conftest$ac_cv_exeext
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2614 $as_echo "$ac_cv_exeext" >&6; }
2615
2616 rm -f conftest.$ac_ext
2617 EXEEXT=$ac_cv_exeext
2618 ac_exeext=$EXEEXT
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h.  */
2621 #include <stdio.h>
2622 int
2623 main ()
2624 {
2625 FILE *f = fopen ("conftest.out", "w");
2626  return ferror (f) || fclose (f) != 0;
2627
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 ac_clean_files="$ac_clean_files conftest.out"
2633 # Check that the compiler produces executables we can run.  If not, either
2634 # the compiler is broken, or we cross compile.
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2636 $as_echo_n "checking whether we are cross compiling... " >&6; }
2637 if test "$cross_compiling" != yes; then
2638   { { ac_try="$ac_link"
2639 case "(($ac_try" in
2640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641   *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645   (eval "$ac_link") 2>&5
2646   ac_status=$?
2647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648   test $ac_status = 0; }
2649   if { ac_try='./conftest$ac_cv_exeext'
2650   { { case "(($ac_try" in
2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652   *) ac_try_echo=$ac_try;;
2653 esac
2654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2655 $as_echo "$ac_try_echo"; } >&5
2656   (eval "$ac_try") 2>&5
2657   ac_status=$?
2658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659   test $ac_status = 0; }; }; then
2660     cross_compiling=no
2661   else
2662     if test "$cross_compiling" = maybe; then
2663         cross_compiling=yes
2664     else
2665         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 as_fn_error $? "cannot run C compiled programs.
2668 If you meant to cross compile, use \`--host'.
2669 See \`config.log' for more details" "$LINENO" 5; }
2670     fi
2671   fi
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2674 $as_echo "$cross_compiling" >&6; }
2675
2676 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2677 ac_clean_files=$ac_clean_files_save
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2679 $as_echo_n "checking for suffix of object files... " >&6; }
2680 if ${ac_cv_objext+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.o conftest.obj
2695 if { { ac_try="$ac_compile"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702   (eval "$ac_compile") 2>&5
2703   ac_status=$?
2704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705   test $ac_status = 0; }; then :
2706   for ac_file in conftest.o conftest.obj conftest.*; do
2707   test -f "$ac_file" || continue;
2708   case $ac_file in
2709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2710     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711        break;;
2712   esac
2713 done
2714 else
2715   $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 as_fn_error $? "cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details" "$LINENO" 5; }
2722 fi
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2724 fi
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2726 $as_echo "$ac_cv_objext" >&6; }
2727 OBJEXT=$ac_cv_objext
2728 ac_objext=$OBJEXT
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2731 if ${ac_cv_c_compiler_gnu+:} false; then :
2732   $as_echo_n "(cached) " >&6
2733 else
2734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h.  */
2736
2737 int
2738 main ()
2739 {
2740 #ifndef __GNUC__
2741        choke me
2742 #endif
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 if ac_fn_c_try_compile "$LINENO"; then :
2749   ac_compiler_gnu=yes
2750 else
2751   ac_compiler_gnu=no
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2755
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2759 if test $ac_compiler_gnu = yes; then
2760   GCC=yes
2761 else
2762   GCC=
2763 fi
2764 ac_test_CFLAGS=${CFLAGS+set}
2765 ac_save_CFLAGS=$CFLAGS
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2768 if ${ac_cv_prog_cc_g+:} false; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   ac_save_c_werror_flag=$ac_c_werror_flag
2772    ac_c_werror_flag=yes
2773    ac_cv_prog_cc_g=no
2774    CFLAGS="-g"
2775    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h.  */
2777
2778 int
2779 main ()
2780 {
2781
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 if ac_fn_c_try_compile "$LINENO"; then :
2787   ac_cv_prog_cc_g=yes
2788 else
2789   CFLAGS=""
2790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792
2793 int
2794 main ()
2795 {
2796
2797   ;
2798   return 0;
2799 }
2800 _ACEOF
2801 if ac_fn_c_try_compile "$LINENO"; then :
2802
2803 else
2804   ac_c_werror_flag=$ac_save_c_werror_flag
2805          CFLAGS="-g"
2806          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h.  */
2808
2809 int
2810 main ()
2811 {
2812
2813   ;
2814   return 0;
2815 }
2816 _ACEOF
2817 if ac_fn_c_try_compile "$LINENO"; then :
2818   ac_cv_prog_cc_g=yes
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 fi
2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823 fi
2824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825    ac_c_werror_flag=$ac_save_c_werror_flag
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2828 $as_echo "$ac_cv_prog_cc_g" >&6; }
2829 if test "$ac_test_CFLAGS" = set; then
2830   CFLAGS=$ac_save_CFLAGS
2831 elif test $ac_cv_prog_cc_g = yes; then
2832   if test "$GCC" = yes; then
2833     CFLAGS="-g -O2"
2834   else
2835     CFLAGS="-g"
2836   fi
2837 else
2838   if test "$GCC" = yes; then
2839     CFLAGS="-O2"
2840   else
2841     CFLAGS=
2842   fi
2843 fi
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2846 if ${ac_cv_prog_cc_c89+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   ac_cv_prog_cc_c89=no
2850 ac_save_CC=$CC
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h.  */
2853 #include <stdarg.h>
2854 #include <stdio.h>
2855 struct stat;
2856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2857 struct buf { int x; };
2858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2859 static char *e (p, i)
2860      char **p;
2861      int i;
2862 {
2863   return p[i];
2864 }
2865 static char *f (char * (*g) (char **, int), char **p, ...)
2866 {
2867   char *s;
2868   va_list v;
2869   va_start (v,p);
2870   s = g (p, va_arg (v,int));
2871   va_end (v);
2872   return s;
2873 }
2874
2875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2876    function prototypes and stuff, but not '\xHH' hex character constants.
2877    These don't provoke an error unfortunately, instead are silently treated
2878    as 'x'.  The following induces an error, until -std is added to get
2879    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2880    array size at least.  It's necessary to write '\x00'==0 to get something
2881    that's true only with -std.  */
2882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2883
2884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2885    inside strings and character constants.  */
2886 #define FOO(x) 'x'
2887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2888
2889 int test (int i, double x);
2890 struct s1 {int (*f) (int a);};
2891 struct s2 {int (*f) (double a);};
2892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2893 int argc;
2894 char **argv;
2895 int
2896 main ()
2897 {
2898 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2904         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2905 do
2906   CC="$ac_save_CC $ac_arg"
2907   if ac_fn_c_try_compile "$LINENO"; then :
2908   ac_cv_prog_cc_c89=$ac_arg
2909 fi
2910 rm -f core conftest.err conftest.$ac_objext
2911   test "x$ac_cv_prog_cc_c89" != "xno" && break
2912 done
2913 rm -f conftest.$ac_ext
2914 CC=$ac_save_CC
2915
2916 fi
2917 # AC_CACHE_VAL
2918 case "x$ac_cv_prog_cc_c89" in
2919   x)
2920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2921 $as_echo "none needed" >&6; } ;;
2922   xno)
2923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2924 $as_echo "unsupported" >&6; } ;;
2925   *)
2926     CC="$CC $ac_cv_prog_cc_c89"
2927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2929 esac
2930 if test "x$ac_cv_prog_cc_c89" != xno; then :
2931
2932 fi
2933
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939
2940 ac_aux_dir=
2941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2942   if test -f "$ac_dir/install-sh"; then
2943     ac_aux_dir=$ac_dir
2944     ac_install_sh="$ac_aux_dir/install-sh -c"
2945     break
2946   elif test -f "$ac_dir/install.sh"; then
2947     ac_aux_dir=$ac_dir
2948     ac_install_sh="$ac_aux_dir/install.sh -c"
2949     break
2950   elif test -f "$ac_dir/shtool"; then
2951     ac_aux_dir=$ac_dir
2952     ac_install_sh="$ac_aux_dir/shtool install -c"
2953     break
2954   fi
2955 done
2956 if test -z "$ac_aux_dir"; then
2957   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2958 fi
2959
2960 # These three variables are undocumented and unsupported,
2961 # and are intended to be withdrawn in a future Autoconf release.
2962 # They can cause serious problems if a builder's source tree is in a directory
2963 # whose full name contains unusual characters.
2964 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2965 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2966 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2967
2968
2969 # Find a good install program.  We prefer a C program (faster),
2970 # so one script is as good as another.  But avoid the broken or
2971 # incompatible versions:
2972 # SysV /etc/install, /usr/sbin/install
2973 # SunOS /usr/etc/install
2974 # IRIX /sbin/install
2975 # AIX /bin/install
2976 # AmigaOS /C/install, which installs bootblocks on floppy discs
2977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2980 # OS/2's system install, which has a completely different semantic
2981 # ./install, which can be erroneously created by make from ./install.sh.
2982 # Reject install programs that cannot install multiple files.
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2984 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2985 if test -z "$INSTALL"; then
2986 if ${ac_cv_path_install+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     # Account for people who put trailing slashes in PATH elements.
2995 case $as_dir/ in #((
2996   ./ | .// | /[cC]/* | \
2997   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2998   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2999   /usr/ucb/* ) ;;
3000   *)
3001     # OSF1 and SCO ODT 3.0 have their own names for install.
3002     # Don't use installbsd from OSF since it installs stuff as root
3003     # by default.
3004     for ac_prog in ginstall scoinst install; do
3005       for ac_exec_ext in '' $ac_executable_extensions; do
3006         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3007           if test $ac_prog = install &&
3008             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3009             # AIX install.  It has an incompatible calling convention.
3010             :
3011           elif test $ac_prog = install &&
3012             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3013             # program-specific install script used by HP pwplus--don't use.
3014             :
3015           else
3016             rm -rf conftest.one conftest.two conftest.dir
3017             echo one > conftest.one
3018             echo two > conftest.two
3019             mkdir conftest.dir
3020             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3021               test -s conftest.one && test -s conftest.two &&
3022               test -s conftest.dir/conftest.one &&
3023               test -s conftest.dir/conftest.two
3024             then
3025               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3026               break 3
3027             fi
3028           fi
3029         fi
3030       done
3031     done
3032     ;;
3033 esac
3034
3035   done
3036 IFS=$as_save_IFS
3037
3038 rm -rf conftest.one conftest.two conftest.dir
3039
3040 fi
3041   if test "${ac_cv_path_install+set}" = set; then
3042     INSTALL=$ac_cv_path_install
3043   else
3044     # As a last resort, use the slow shell script.  Don't cache a
3045     # value for INSTALL within a source directory, because that will
3046     # break other packages using the cache if that directory is
3047     # removed, or if the value is a relative name.
3048     INSTALL=$ac_install_sh
3049   fi
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3052 $as_echo "$INSTALL" >&6; }
3053
3054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3055 # It thinks the first close brace ends the variable substitution.
3056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3057
3058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3059
3060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3061
3062
3063 # Checks for libraries.
3064
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_ctrl in -lcrypto" >&5
3066 $as_echo_n "checking for BIO_ctrl in -lcrypto... " >&6; }
3067 if ${ac_cv_lib_crypto_BIO_ctrl+:} false; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   ac_check_lib_save_LIBS=$LIBS
3071 LIBS="-lcrypto  $LIBS"
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h.  */
3074
3075 /* Override any GCC internal prototype to avoid an error.
3076    Use char because int might match the return type of a GCC
3077    builtin and then its argument prototype would still apply.  */
3078 #ifdef __cplusplus
3079 extern "C"
3080 #endif
3081 char BIO_ctrl ();
3082 int
3083 main ()
3084 {
3085 return BIO_ctrl ();
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 if ac_fn_c_try_link "$LINENO"; then :
3091   ac_cv_lib_crypto_BIO_ctrl=yes
3092 else
3093   ac_cv_lib_crypto_BIO_ctrl=no
3094 fi
3095 rm -f core conftest.err conftest.$ac_objext \
3096     conftest$ac_exeext conftest.$ac_ext
3097 LIBS=$ac_check_lib_save_LIBS
3098 fi
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_ctrl" >&5
3100 $as_echo "$ac_cv_lib_crypto_BIO_ctrl" >&6; }
3101 if test "x$ac_cv_lib_crypto_BIO_ctrl" = xyes; then :
3102   cat >>confdefs.h <<_ACEOF
3103 #define HAVE_LIBCRYPTO 1
3104 _ACEOF
3105
3106   LIBS="-lcrypto $LIBS"
3107
3108 fi
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3111 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3112 if ${ac_cv_lib_dl_dlopen+:} false; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   ac_check_lib_save_LIBS=$LIBS
3116 LIBS="-ldl  $LIBS"
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h.  */
3119
3120 /* Override any GCC internal prototype to avoid an error.
3121    Use char because int might match the return type of a GCC
3122    builtin and then its argument prototype would still apply.  */
3123 #ifdef __cplusplus
3124 extern "C"
3125 #endif
3126 char dlopen ();
3127 int
3128 main ()
3129 {
3130 return dlopen ();
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 if ac_fn_c_try_link "$LINENO"; then :
3136   ac_cv_lib_dl_dlopen=yes
3137 else
3138   ac_cv_lib_dl_dlopen=no
3139 fi
3140 rm -f core conftest.err conftest.$ac_objext \
3141     conftest$ac_exeext conftest.$ac_ext
3142 LIBS=$ac_check_lib_save_LIBS
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3145 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3146 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3147   cat >>confdefs.h <<_ACEOF
3148 #define HAVE_LIBDL 1
3149 _ACEOF
3150
3151   LIBS="-ldl $LIBS"
3152
3153 fi
3154
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm" >&5
3156 $as_echo_n "checking for dbm_open in -lgdbm... " >&6; }
3157 if ${ac_cv_lib_gdbm_dbm_open+:} false; then :
3158   $as_echo_n "(cached) " >&6
3159 else
3160   ac_check_lib_save_LIBS=$LIBS
3161 LIBS="-lgdbm  $LIBS"
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h.  */
3164
3165 /* Override any GCC internal prototype to avoid an error.
3166    Use char because int might match the return type of a GCC
3167    builtin and then its argument prototype would still apply.  */
3168 #ifdef __cplusplus
3169 extern "C"
3170 #endif
3171 char dbm_open ();
3172 int
3173 main ()
3174 {
3175 return dbm_open ();
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 if ac_fn_c_try_link "$LINENO"; then :
3181   ac_cv_lib_gdbm_dbm_open=yes
3182 else
3183   ac_cv_lib_gdbm_dbm_open=no
3184 fi
3185 rm -f core conftest.err conftest.$ac_objext \
3186     conftest$ac_exeext conftest.$ac_ext
3187 LIBS=$ac_check_lib_save_LIBS
3188 fi
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_dbm_open" >&5
3190 $as_echo "$ac_cv_lib_gdbm_dbm_open" >&6; }
3191 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then :
3192   cat >>confdefs.h <<_ACEOF
3193 #define HAVE_LIBGDBM 1
3194 _ACEOF
3195
3196   LIBS="-lgdbm $LIBS"
3197
3198 fi
3199
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lgdbm_compat" >&5
3201 $as_echo_n "checking for dbm_open in -lgdbm_compat... " >&6; }
3202 if ${ac_cv_lib_gdbm_compat_dbm_open+:} false; then :
3203   $as_echo_n "(cached) " >&6
3204 else
3205   ac_check_lib_save_LIBS=$LIBS
3206 LIBS="-lgdbm_compat  $LIBS"
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h.  */
3209
3210 /* Override any GCC internal prototype to avoid an error.
3211    Use char because int might match the return type of a GCC
3212    builtin and then its argument prototype would still apply.  */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 char dbm_open ();
3217 int
3218 main ()
3219 {
3220 return dbm_open ();
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 if ac_fn_c_try_link "$LINENO"; then :
3226   ac_cv_lib_gdbm_compat_dbm_open=yes
3227 else
3228   ac_cv_lib_gdbm_compat_dbm_open=no
3229 fi
3230 rm -f core conftest.err conftest.$ac_objext \
3231     conftest$ac_exeext conftest.$ac_ext
3232 LIBS=$ac_check_lib_save_LIBS
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_compat_dbm_open" >&5
3235 $as_echo "$ac_cv_lib_gdbm_compat_dbm_open" >&6; }
3236 if test "x$ac_cv_lib_gdbm_compat_dbm_open" = xyes; then :
3237   cat >>confdefs.h <<_ACEOF
3238 #define HAVE_LIBGDBM_COMPAT 1
3239 _ACEOF
3240
3241   LIBS="-lgdbm_compat $LIBS"
3242
3243 fi
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
3246 $as_echo_n "checking for sqrt in -lm... " >&6; }
3247 if ${ac_cv_lib_m_sqrt+:} false; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   ac_check_lib_save_LIBS=$LIBS
3251 LIBS="-lm  $LIBS"
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254
3255 /* Override any GCC internal prototype to avoid an error.
3256    Use char because int might match the return type of a GCC
3257    builtin and then its argument prototype would still apply.  */
3258 #ifdef __cplusplus
3259 extern "C"
3260 #endif
3261 char sqrt ();
3262 int
3263 main ()
3264 {
3265 return sqrt ();
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 if ac_fn_c_try_link "$LINENO"; then :
3271   ac_cv_lib_m_sqrt=yes
3272 else
3273   ac_cv_lib_m_sqrt=no
3274 fi
3275 rm -f core conftest.err conftest.$ac_objext \
3276     conftest$ac_exeext conftest.$ac_ext
3277 LIBS=$ac_check_lib_save_LIBS
3278 fi
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
3280 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
3281 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
3282   cat >>confdefs.h <<_ACEOF
3283 #define HAVE_LIBM 1
3284 _ACEOF
3285
3286   LIBS="-lm $LIBS"
3287
3288 fi
3289
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
3291 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
3292 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   ac_check_lib_save_LIBS=$LIBS
3296 LIBS="-lncursesw  $LIBS"
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h.  */
3299
3300 /* Override any GCC internal prototype to avoid an error.
3301    Use char because int might match the return type of a GCC
3302    builtin and then its argument prototype would still apply.  */
3303 #ifdef __cplusplus
3304 extern "C"
3305 #endif
3306 char initscr ();
3307 int
3308 main ()
3309 {
3310 return initscr ();
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 if ac_fn_c_try_link "$LINENO"; then :
3316   ac_cv_lib_ncursesw_initscr=yes
3317 else
3318   ac_cv_lib_ncursesw_initscr=no
3319 fi
3320 rm -f core conftest.err conftest.$ac_objext \
3321     conftest$ac_exeext conftest.$ac_ext
3322 LIBS=$ac_check_lib_save_LIBS
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
3325 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
3326 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
3327   cat >>confdefs.h <<_ACEOF
3328 #define HAVE_LIBNCURSESW 1
3329 _ACEOF
3330
3331   LIBS="-lncursesw $LIBS"
3332
3333 fi
3334
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3336 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3337 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   ac_check_lib_save_LIBS=$LIBS
3341 LIBS="-lpthread  $LIBS"
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h.  */
3344
3345 /* Override any GCC internal prototype to avoid an error.
3346    Use char because int might match the return type of a GCC
3347    builtin and then its argument prototype would still apply.  */
3348 #ifdef __cplusplus
3349 extern "C"
3350 #endif
3351 char pthread_create ();
3352 int
3353 main ()
3354 {
3355 return pthread_create ();
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_link "$LINENO"; then :
3361   ac_cv_lib_pthread_pthread_create=yes
3362 else
3363   ac_cv_lib_pthread_pthread_create=no
3364 fi
3365 rm -f core conftest.err conftest.$ac_objext \
3366     conftest$ac_exeext conftest.$ac_ext
3367 LIBS=$ac_check_lib_save_LIBS
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3370 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3371 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
3372   cat >>confdefs.h <<_ACEOF
3373 #define HAVE_LIBPTHREAD 1
3374 _ACEOF
3375
3376   LIBS="-lpthread $LIBS"
3377
3378 fi
3379
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
3381 $as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
3382 if ${ac_cv_lib_sqlite3_sqlite3_initialize+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   ac_check_lib_save_LIBS=$LIBS
3386 LIBS="-lsqlite3  $LIBS"
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h.  */
3389
3390 /* Override any GCC internal prototype to avoid an error.
3391    Use char because int might match the return type of a GCC
3392    builtin and then its argument prototype would still apply.  */
3393 #ifdef __cplusplus
3394 extern "C"
3395 #endif
3396 char sqlite3_initialize ();
3397 int
3398 main ()
3399 {
3400 return sqlite3_initialize ();
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 if ac_fn_c_try_link "$LINENO"; then :
3406   ac_cv_lib_sqlite3_sqlite3_initialize=yes
3407 else
3408   ac_cv_lib_sqlite3_sqlite3_initialize=no
3409 fi
3410 rm -f core conftest.err conftest.$ac_objext \
3411     conftest$ac_exeext conftest.$ac_ext
3412 LIBS=$ac_check_lib_save_LIBS
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
3415 $as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
3416 if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes; then :
3417   cat >>confdefs.h <<_ACEOF
3418 #define HAVE_LIBSQLITE3 1
3419 _ACEOF
3420
3421   LIBS="-lsqlite3 $LIBS"
3422
3423 fi
3424
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
3426 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
3427 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   ac_check_lib_save_LIBS=$LIBS
3431 LIBS="-lssl  $LIBS"
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 /* Override any GCC internal prototype to avoid an error.
3436    Use char because int might match the return type of a GCC
3437    builtin and then its argument prototype would still apply.  */
3438 #ifdef __cplusplus
3439 extern "C"
3440 #endif
3441 char SSL_library_init ();
3442 int
3443 main ()
3444 {
3445 return SSL_library_init ();
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450 if ac_fn_c_try_link "$LINENO"; then :
3451   ac_cv_lib_ssl_SSL_library_init=yes
3452 else
3453   ac_cv_lib_ssl_SSL_library_init=no
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext \
3456     conftest$ac_exeext conftest.$ac_ext
3457 LIBS=$ac_check_lib_save_LIBS
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
3460 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
3461 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
3462   cat >>confdefs.h <<_ACEOF
3463 #define HAVE_LIBSSL 1
3464 _ACEOF
3465
3466   LIBS="-lssl $LIBS"
3467
3468 fi
3469
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
3471 $as_echo_n "checking for inflate in -lz... " >&6; }
3472 if ${ac_cv_lib_z_inflate+:} false; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475   ac_check_lib_save_LIBS=$LIBS
3476 LIBS="-lz  $LIBS"
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479
3480 /* Override any GCC internal prototype to avoid an error.
3481    Use char because int might match the return type of a GCC
3482    builtin and then its argument prototype would still apply.  */
3483 #ifdef __cplusplus
3484 extern "C"
3485 #endif
3486 char inflate ();
3487 int
3488 main ()
3489 {
3490 return inflate ();
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 if ac_fn_c_try_link "$LINENO"; then :
3496   ac_cv_lib_z_inflate=yes
3497 else
3498   ac_cv_lib_z_inflate=no
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext \
3501     conftest$ac_exeext conftest.$ac_ext
3502 LIBS=$ac_check_lib_save_LIBS
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
3505 $as_echo "$ac_cv_lib_z_inflate" >&6; }
3506 if test "x$ac_cv_lib_z_inflate" = xyes; then :
3507   cat >>confdefs.h <<_ACEOF
3508 #define HAVE_LIBZ 1
3509 _ACEOF
3510
3511   LIBS="-lz $LIBS"
3512
3513 fi
3514
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
3516 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
3517 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
3518   $as_echo_n "(cached) " >&6
3519 else
3520   ac_check_lib_save_LIBS=$LIBS
3521 LIBS="-lrt  $LIBS"
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h.  */
3524
3525 /* Override any GCC internal prototype to avoid an error.
3526    Use char because int might match the return type of a GCC
3527    builtin and then its argument prototype would still apply.  */
3528 #ifdef __cplusplus
3529 extern "C"
3530 #endif
3531 char clock_gettime ();
3532 int
3533 main ()
3534 {
3535 return clock_gettime ();
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_link "$LINENO"; then :
3541   ac_cv_lib_rt_clock_gettime=yes
3542 else
3543   ac_cv_lib_rt_clock_gettime=no
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext \
3546     conftest$ac_exeext conftest.$ac_ext
3547 LIBS=$ac_check_lib_save_LIBS
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
3550 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
3551 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
3552   cat >>confdefs.h <<_ACEOF
3553 #define HAVE_LIBRT 1
3554 _ACEOF
3555
3556   LIBS="-lrt $LIBS"
3557
3558 fi
3559
3560
3561 # Checks for header files.
3562 ac_ext=c
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3568 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3569 # On Suns, sometimes $CPP names a directory.
3570 if test -n "$CPP" && test -d "$CPP"; then
3571   CPP=
3572 fi
3573 if test -z "$CPP"; then
3574   if ${ac_cv_prog_CPP+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577       # Double quotes because CPP needs to be expanded
3578     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3579     do
3580       ac_preproc_ok=false
3581 for ac_c_preproc_warn_flag in '' yes
3582 do
3583   # Use a header file that comes with gcc, so configuring glibc
3584   # with a fresh cross-compiler works.
3585   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3586   # <limits.h> exists even on freestanding compilers.
3587   # On the NeXT, cc -E runs the code through the compiler's parser,
3588   # not just through cpp. "Syntax error" is here to catch this case.
3589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591 #ifdef __STDC__
3592 # include <limits.h>
3593 #else
3594 # include <assert.h>
3595 #endif
3596                      Syntax error
3597 _ACEOF
3598 if ac_fn_c_try_cpp "$LINENO"; then :
3599
3600 else
3601   # Broken: fails on valid input.
3602 continue
3603 fi
3604 rm -f conftest.err conftest.i conftest.$ac_ext
3605
3606   # OK, works on sane cases.  Now check whether nonexistent headers
3607   # can be detected and how.
3608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h.  */
3610 #include <ac_nonexistent.h>
3611 _ACEOF
3612 if ac_fn_c_try_cpp "$LINENO"; then :
3613   # Broken: success on invalid input.
3614 continue
3615 else
3616   # Passes both tests.
3617 ac_preproc_ok=:
3618 break
3619 fi
3620 rm -f conftest.err conftest.i conftest.$ac_ext
3621
3622 done
3623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3624 rm -f conftest.i conftest.err conftest.$ac_ext
3625 if $ac_preproc_ok; then :
3626   break
3627 fi
3628
3629     done
3630     ac_cv_prog_CPP=$CPP
3631
3632 fi
3633   CPP=$ac_cv_prog_CPP
3634 else
3635   ac_cv_prog_CPP=$CPP
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3638 $as_echo "$CPP" >&6; }
3639 ac_preproc_ok=false
3640 for ac_c_preproc_warn_flag in '' yes
3641 do
3642   # Use a header file that comes with gcc, so configuring glibc
3643   # with a fresh cross-compiler works.
3644   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645   # <limits.h> exists even on freestanding compilers.
3646   # On the NeXT, cc -E runs the code through the compiler's parser,
3647   # not just through cpp. "Syntax error" is here to catch this case.
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650 #ifdef __STDC__
3651 # include <limits.h>
3652 #else
3653 # include <assert.h>
3654 #endif
3655                      Syntax error
3656 _ACEOF
3657 if ac_fn_c_try_cpp "$LINENO"; then :
3658
3659 else
3660   # Broken: fails on valid input.
3661 continue
3662 fi
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3664
3665   # OK, works on sane cases.  Now check whether nonexistent headers
3666   # can be detected and how.
3667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h.  */
3669 #include <ac_nonexistent.h>
3670 _ACEOF
3671 if ac_fn_c_try_cpp "$LINENO"; then :
3672   # Broken: success on invalid input.
3673 continue
3674 else
3675   # Passes both tests.
3676 ac_preproc_ok=:
3677 break
3678 fi
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3680
3681 done
3682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3683 rm -f conftest.i conftest.err conftest.$ac_ext
3684 if $ac_preproc_ok; then :
3685
3686 else
3687   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3690 See \`config.log' for more details" "$LINENO" 5; }
3691 fi
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3701 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3702 if ${ac_cv_path_GREP+:} false; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705   if test -z "$GREP"; then
3706   ac_path_GREP_found=false
3707   # Loop through the user's path and test for each of PROGNAME-LIST
3708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713     for ac_prog in grep ggrep; do
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3716       as_fn_executable_p "$ac_path_GREP" || continue
3717 # Check for GNU ac_path_GREP and select it if it is found.
3718   # Check for GNU $ac_path_GREP
3719 case `"$ac_path_GREP" --version 2>&1` in
3720 *GNU*)
3721   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3722 *)
3723   ac_count=0
3724   $as_echo_n 0123456789 >"conftest.in"
3725   while :
3726   do
3727     cat "conftest.in" "conftest.in" >"conftest.tmp"
3728     mv "conftest.tmp" "conftest.in"
3729     cp "conftest.in" "conftest.nl"
3730     $as_echo 'GREP' >> "conftest.nl"
3731     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733     as_fn_arith $ac_count + 1 && ac_count=$as_val
3734     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3735       # Best one so far, save it but keep looking for a better one
3736       ac_cv_path_GREP="$ac_path_GREP"
3737       ac_path_GREP_max=$ac_count
3738     fi
3739     # 10*(2^10) chars as input seems more than enough
3740     test $ac_count -gt 10 && break
3741   done
3742   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3743 esac
3744
3745       $ac_path_GREP_found && break 3
3746     done
3747   done
3748   done
3749 IFS=$as_save_IFS
3750   if test -z "$ac_cv_path_GREP"; then
3751     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3752   fi
3753 else
3754   ac_cv_path_GREP=$GREP
3755 fi
3756
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3759 $as_echo "$ac_cv_path_GREP" >&6; }
3760  GREP="$ac_cv_path_GREP"
3761
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3764 $as_echo_n "checking for egrep... " >&6; }
3765 if ${ac_cv_path_EGREP+:} false; then :
3766   $as_echo_n "(cached) " >&6
3767 else
3768   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3769    then ac_cv_path_EGREP="$GREP -E"
3770    else
3771      if test -z "$EGREP"; then
3772   ac_path_EGREP_found=false
3773   # Loop through the user's path and test for each of PROGNAME-LIST
3774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779     for ac_prog in egrep; do
3780     for ac_exec_ext in '' $ac_executable_extensions; do
3781       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3782       as_fn_executable_p "$ac_path_EGREP" || continue
3783 # Check for GNU ac_path_EGREP and select it if it is found.
3784   # Check for GNU $ac_path_EGREP
3785 case `"$ac_path_EGREP" --version 2>&1` in
3786 *GNU*)
3787   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3788 *)
3789   ac_count=0
3790   $as_echo_n 0123456789 >"conftest.in"
3791   while :
3792   do
3793     cat "conftest.in" "conftest.in" >"conftest.tmp"
3794     mv "conftest.tmp" "conftest.in"
3795     cp "conftest.in" "conftest.nl"
3796     $as_echo 'EGREP' >> "conftest.nl"
3797     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799     as_fn_arith $ac_count + 1 && ac_count=$as_val
3800     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3801       # Best one so far, save it but keep looking for a better one
3802       ac_cv_path_EGREP="$ac_path_EGREP"
3803       ac_path_EGREP_max=$ac_count
3804     fi
3805     # 10*(2^10) chars as input seems more than enough
3806     test $ac_count -gt 10 && break
3807   done
3808   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 esac
3810
3811       $ac_path_EGREP_found && break 3
3812     done
3813   done
3814   done
3815 IFS=$as_save_IFS
3816   if test -z "$ac_cv_path_EGREP"; then
3817     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3818   fi
3819 else
3820   ac_cv_path_EGREP=$EGREP
3821 fi
3822
3823    fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3826 $as_echo "$ac_cv_path_EGREP" >&6; }
3827  EGREP="$ac_cv_path_EGREP"
3828
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3831 $as_echo_n "checking for ANSI C header files... " >&6; }
3832 if ${ac_cv_header_stdc+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837 #include <stdlib.h>
3838 #include <stdarg.h>
3839 #include <string.h>
3840 #include <float.h>
3841
3842 int
3843 main ()
3844 {
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851   ac_cv_header_stdc=yes
3852 else
3853   ac_cv_header_stdc=no
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856
3857 if test $ac_cv_header_stdc = yes; then
3858   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861 #include <string.h>
3862
3863 _ACEOF
3864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865   $EGREP "memchr" >/dev/null 2>&1; then :
3866
3867 else
3868   ac_cv_header_stdc=no
3869 fi
3870 rm -f conftest*
3871
3872 fi
3873
3874 if test $ac_cv_header_stdc = yes; then
3875   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878 #include <stdlib.h>
3879
3880 _ACEOF
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882   $EGREP "free" >/dev/null 2>&1; then :
3883
3884 else
3885   ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest*
3888
3889 fi
3890
3891 if test $ac_cv_header_stdc = yes; then
3892   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3893   if test "$cross_compiling" = yes; then :
3894   :
3895 else
3896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898 #include <ctype.h>
3899 #include <stdlib.h>
3900 #if ((' ' & 0x0FF) == 0x020)
3901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3903 #else
3904 # define ISLOWER(c) \
3905                    (('a' <= (c) && (c) <= 'i') \
3906                      || ('j' <= (c) && (c) <= 'r') \
3907                      || ('s' <= (c) && (c) <= 'z'))
3908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3909 #endif
3910
3911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3912 int
3913 main ()
3914 {
3915   int i;
3916   for (i = 0; i < 256; i++)
3917     if (XOR (islower (i), ISLOWER (i))
3918         || toupper (i) != TOUPPER (i))
3919       return 2;
3920   return 0;
3921 }
3922 _ACEOF
3923 if ac_fn_c_try_run "$LINENO"; then :
3924
3925 else
3926   ac_cv_header_stdc=no
3927 fi
3928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3929   conftest.$ac_objext conftest.beam conftest.$ac_ext
3930 fi
3931
3932 fi
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3935 $as_echo "$ac_cv_header_stdc" >&6; }
3936 if test $ac_cv_header_stdc = yes; then
3937
3938 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3939
3940 fi
3941
3942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3944                   inttypes.h stdint.h unistd.h
3945 do :
3946   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3948 "
3949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3950   cat >>confdefs.h <<_ACEOF
3951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3952 _ACEOF
3953
3954 fi
3955
3956 done
3957
3958
3959 for ac_header in arpa/inet.h fcntl.h limits.h locale.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h ndbm.h gdbm-ndbm.h ncurses.h ncursesw/ncurses.h
3960 do :
3961   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3962 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3963 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3964   cat >>confdefs.h <<_ACEOF
3965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3966 _ACEOF
3967
3968 fi
3969
3970 done
3971
3972
3973 # Checks for typedefs, structures, and compiler characteristics.
3974 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
3975 if test "x$ac_cv_type_pid_t" = xyes; then :
3976
3977 else
3978
3979 cat >>confdefs.h <<_ACEOF
3980 #define pid_t int
3981 _ACEOF
3982
3983 fi
3984
3985 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3986 if test "x$ac_cv_type_size_t" = xyes; then :
3987
3988 else
3989
3990 cat >>confdefs.h <<_ACEOF
3991 #define size_t unsigned int
3992 _ACEOF
3993
3994 fi
3995
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3997 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3998 if ${ac_cv_header_stdbool_h+:} false; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004              #include <stdbool.h>
4005              #ifndef bool
4006               "error: bool is not defined"
4007              #endif
4008              #ifndef false
4009               "error: false is not defined"
4010              #endif
4011              #if false
4012               "error: false is not 0"
4013              #endif
4014              #ifndef true
4015               "error: true is not defined"
4016              #endif
4017              #if true != 1
4018               "error: true is not 1"
4019              #endif
4020              #ifndef __bool_true_false_are_defined
4021               "error: __bool_true_false_are_defined is not defined"
4022              #endif
4023
4024              struct s { _Bool s: 1; _Bool t; } s;
4025
4026              char a[true == 1 ? 1 : -1];
4027              char b[false == 0 ? 1 : -1];
4028              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4029              char d[(bool) 0.5 == true ? 1 : -1];
4030              /* See body of main program for 'e'.  */
4031              char f[(_Bool) 0.0 == false ? 1 : -1];
4032              char g[true];
4033              char h[sizeof (_Bool)];
4034              char i[sizeof s.t];
4035              enum { j = false, k = true, l = false * true, m = true * 256 };
4036              /* The following fails for
4037                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4038              _Bool n[m];
4039              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4040              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4041              /* Catch a bug in an HP-UX C compiler.  See
4042                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4043                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4044               */
4045              _Bool q = true;
4046              _Bool *pq = &q;
4047
4048 int
4049 main ()
4050 {
4051
4052              bool e = &s;
4053              *pq |= q;
4054              *pq |= ! q;
4055              /* Refer to every declared value, to avoid compiler optimizations.  */
4056              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4057                      + !m + !n + !o + !p + !q + !pq);
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 if ac_fn_c_try_compile "$LINENO"; then :
4064   ac_cv_header_stdbool_h=yes
4065 else
4066   ac_cv_header_stdbool_h=no
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4071 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4072    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4073 if test "x$ac_cv_type__Bool" = xyes; then :
4074
4075 cat >>confdefs.h <<_ACEOF
4076 #define HAVE__BOOL 1
4077 _ACEOF
4078
4079
4080 fi
4081
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4084 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4085 if ${ac_cv_type_uid_t+:} false; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090 #include <sys/types.h>
4091
4092 _ACEOF
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094   $EGREP "uid_t" >/dev/null 2>&1; then :
4095   ac_cv_type_uid_t=yes
4096 else
4097   ac_cv_type_uid_t=no
4098 fi
4099 rm -f conftest*
4100
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4103 $as_echo "$ac_cv_type_uid_t" >&6; }
4104 if test $ac_cv_type_uid_t = no; then
4105
4106 $as_echo "#define uid_t int" >>confdefs.h
4107
4108
4109 $as_echo "#define gid_t int" >>confdefs.h
4110
4111 fi
4112
4113
4114 # Checks for library functions.
4115 for ac_header in stdlib.h
4116 do :
4117   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4118 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4119   cat >>confdefs.h <<_ACEOF
4120 #define HAVE_STDLIB_H 1
4121 _ACEOF
4122
4123 fi
4124
4125 done
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4128 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4129 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4130   $as_echo_n "(cached) " >&6
4131 else
4132   if test "$cross_compiling" = yes; then :
4133   ac_cv_func_malloc_0_nonnull=no
4134 else
4135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h.  */
4137 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4138 # include <stdlib.h>
4139 #else
4140 char *malloc ();
4141 #endif
4142
4143 int
4144 main ()
4145 {
4146 return ! malloc (0);
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 if ac_fn_c_try_run "$LINENO"; then :
4152   ac_cv_func_malloc_0_nonnull=yes
4153 else
4154   ac_cv_func_malloc_0_nonnull=no
4155 fi
4156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4157   conftest.$ac_objext conftest.beam conftest.$ac_ext
4158 fi
4159
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4162 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4163 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4164
4165 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4166
4167 else
4168   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4169
4170    case " $LIBOBJS " in
4171   *" malloc.$ac_objext "* ) ;;
4172   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4173  ;;
4174 esac
4175
4176
4177 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4178
4179 fi
4180
4181
4182 for ac_func in gethostbyname memset mkdir regcomp setlocale socket strchr strrchr strstr strtol
4183 do :
4184   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4186 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4187   cat >>confdefs.h <<_ACEOF
4188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4189 _ACEOF
4190
4191 fi
4192 done
4193
4194
4195 ac_config_files="$ac_config_files Makefile"
4196
4197
4198 ac_config_commands="$ac_config_commands make-gen-dir"
4199
4200
4201 if test "x$prefix" = xNONE; then
4202   $as_echo_n "checking for prefix by " >&6
4203   # Extract the first word of "ntch", so it can be a program name with args.
4204 set dummy ntch; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_path_ac_prefix_program+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   case $ac_prefix_program in
4211   [\\/]* | ?:[\\/]*)
4212   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
4213   ;;
4214   *)
4215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
4223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227   done
4228 IFS=$as_save_IFS
4229
4230   ;;
4231 esac
4232 fi
4233 ac_prefix_program=$ac_cv_path_ac_prefix_program
4234 if test -n "$ac_prefix_program"; then
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
4236 $as_echo "$ac_prefix_program" >&6; }
4237 else
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4240 fi
4241
4242
4243   if test -n "$ac_prefix_program"; then
4244     prefix=`$as_dirname -- "$ac_prefix_program" ||
4245 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4246          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
4247          X"$ac_prefix_program" : 'X\(//\)$' \| \
4248          X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
4249 $as_echo X"$ac_prefix_program" |
4250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4251             s//\1/
4252             q
4253           }
4254           /^X\(\/\/\)[^/].*/{
4255             s//\1/
4256             q
4257           }
4258           /^X\(\/\/\)$/{
4259             s//\1/
4260             q
4261           }
4262           /^X\(\/\).*/{
4263             s//\1/
4264             q
4265           }
4266           s/.*/./; q'`
4267     prefix=`$as_dirname -- "$prefix" ||
4268 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4269          X"$prefix" : 'X\(//\)[^/]' \| \
4270          X"$prefix" : 'X\(//\)$' \| \
4271          X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
4272 $as_echo X"$prefix" |
4273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4274             s//\1/
4275             q
4276           }
4277           /^X\(\/\/\)[^/].*/{
4278             s//\1/
4279             q
4280           }
4281           /^X\(\/\/\)$/{
4282             s//\1/
4283             q
4284           }
4285           /^X\(\/\).*/{
4286             s//\1/
4287             q
4288           }
4289           s/.*/./; q'`
4290   fi
4291 fi
4292
4293
4294 cat >confcache <<\_ACEOF
4295 # This file is a shell script that caches the results of configure
4296 # tests run on this system so they can be shared between configure
4297 # scripts and configure runs, see configure's option --config-cache.
4298 # It is not useful on other systems.  If it contains results you don't
4299 # want to keep, you may remove or edit it.
4300 #
4301 # config.status only pays attention to the cache file if you give it
4302 # the --recheck option to rerun configure.
4303 #
4304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4306 # following values.
4307
4308 _ACEOF
4309
4310 # The following way of writing the cache mishandles newlines in values,
4311 # but we know of no workaround that is simple, portable, and efficient.
4312 # So, we kill variables containing newlines.
4313 # Ultrix sh set writes to stderr and can't be redirected directly,
4314 # and sets the high bit in the cache file unless we assign to the vars.
4315 (
4316   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4317     eval ac_val=\$$ac_var
4318     case $ac_val in #(
4319     *${as_nl}*)
4320       case $ac_var in #(
4321       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4323       esac
4324       case $ac_var in #(
4325       _ | IFS | as_nl) ;; #(
4326       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4327       *) { eval $ac_var=; unset $ac_var;} ;;
4328       esac ;;
4329     esac
4330   done
4331
4332   (set) 2>&1 |
4333     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4334     *${as_nl}ac_space=\ *)
4335       # `set' does not quote correctly, so add quotes: double-quote
4336       # substitution turns \\\\ into \\, and sed turns \\ into \.
4337       sed -n \
4338         "s/'/'\\\\''/g;
4339           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4340       ;; #(
4341     *)
4342       # `set' quotes correctly as required by POSIX, so do not add quotes.
4343       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4344       ;;
4345     esac |
4346     sort
4347 ) |
4348   sed '
4349      /^ac_cv_env_/b end
4350      t clear
4351      :clear
4352      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4353      t end
4354      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4355      :end' >>confcache
4356 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4357   if test -w "$cache_file"; then
4358     if test "x$cache_file" != "x/dev/null"; then
4359       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4360 $as_echo "$as_me: updating cache $cache_file" >&6;}
4361       if test ! -f "$cache_file" || test -h "$cache_file"; then
4362         cat confcache >"$cache_file"
4363       else
4364         case $cache_file in #(
4365         */* | ?:*)
4366           mv -f confcache "$cache_file"$$ &&
4367           mv -f "$cache_file"$$ "$cache_file" ;; #(
4368         *)
4369           mv -f confcache "$cache_file" ;;
4370         esac
4371       fi
4372     fi
4373   else
4374     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4375 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4376   fi
4377 fi
4378 rm -f confcache
4379
4380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4381 # Let make expand exec_prefix.
4382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4383
4384 DEFS=-DHAVE_CONFIG_H
4385
4386 ac_libobjs=
4387 ac_ltlibobjs=
4388 U=
4389 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4390   # 1. Remove the extension, and $U if already installed.
4391   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4392   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4393   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4394   #    will be set to the directory where LIBOBJS objects are built.
4395   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4396   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4397 done
4398 LIBOBJS=$ac_libobjs
4399
4400 LTLIBOBJS=$ac_ltlibobjs
4401
4402
4403
4404 : "${CONFIG_STATUS=./config.status}"
4405 ac_write_fail=0
4406 ac_clean_files_save=$ac_clean_files
4407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4409 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4410 as_write_fail=0
4411 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4412 #! $SHELL
4413 # Generated by $as_me.
4414 # Run this file to recreate the current configuration.
4415 # Compiler output produced by configure, useful for debugging
4416 # configure, is in config.log if it exists.
4417
4418 debug=false
4419 ac_cs_recheck=false
4420 ac_cs_silent=false
4421
4422 SHELL=\${CONFIG_SHELL-$SHELL}
4423 export SHELL
4424 _ASEOF
4425 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4426 ## -------------------- ##
4427 ## M4sh Initialization. ##
4428 ## -------------------- ##
4429
4430 # Be more Bourne compatible
4431 DUALCASE=1; export DUALCASE # for MKS sh
4432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4433   emulate sh
4434   NULLCMD=:
4435   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4436   # is contrary to our usage.  Disable this feature.
4437   alias -g '${1+"$@"}'='"$@"'
4438   setopt NO_GLOB_SUBST
4439 else
4440   case `(set -o) 2>/dev/null` in #(
4441   *posix*) :
4442     set -o posix ;; #(
4443   *) :
4444      ;;
4445 esac
4446 fi
4447
4448
4449 as_nl='
4450 '
4451 export as_nl
4452 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4453 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4454 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4455 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4456 # Prefer a ksh shell builtin over an external printf program on Solaris,
4457 # but without wasting forks for bash or zsh.
4458 if test -z "$BASH_VERSION$ZSH_VERSION" \
4459     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4460   as_echo='print -r --'
4461   as_echo_n='print -rn --'
4462 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4463   as_echo='printf %s\n'
4464   as_echo_n='printf %s'
4465 else
4466   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4467     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4468     as_echo_n='/usr/ucb/echo -n'
4469   else
4470     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4471     as_echo_n_body='eval
4472       arg=$1;
4473       case $arg in #(
4474       *"$as_nl"*)
4475         expr "X$arg" : "X\\(.*\\)$as_nl";
4476         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4477       esac;
4478       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4479     '
4480     export as_echo_n_body
4481     as_echo_n='sh -c $as_echo_n_body as_echo'
4482   fi
4483   export as_echo_body
4484   as_echo='sh -c $as_echo_body as_echo'
4485 fi
4486
4487 # The user is always right.
4488 if test "${PATH_SEPARATOR+set}" != set; then
4489   PATH_SEPARATOR=:
4490   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4491     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4492       PATH_SEPARATOR=';'
4493   }
4494 fi
4495
4496
4497 # IFS
4498 # We need space, tab and new line, in precisely that order.  Quoting is
4499 # there to prevent editors from complaining about space-tab.
4500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4501 # splitting by setting IFS to empty value.)
4502 IFS=" ""        $as_nl"
4503
4504 # Find who we are.  Look in the path if we contain no directory separator.
4505 as_myself=
4506 case $0 in #((
4507   *[\\/]* ) as_myself=$0 ;;
4508   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4510 do
4511   IFS=$as_save_IFS
4512   test -z "$as_dir" && as_dir=.
4513     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4514   done
4515 IFS=$as_save_IFS
4516
4517      ;;
4518 esac
4519 # We did not find ourselves, most probably we were run as `sh COMMAND'
4520 # in which case we are not to be found in the path.
4521 if test "x$as_myself" = x; then
4522   as_myself=$0
4523 fi
4524 if test ! -f "$as_myself"; then
4525   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4526   exit 1
4527 fi
4528
4529 # Unset variables that we do not need and which cause bugs (e.g. in
4530 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4531 # suppresses any "Segmentation fault" message there.  '((' could
4532 # trigger a bug in pdksh 5.2.14.
4533 for as_var in BASH_ENV ENV MAIL MAILPATH
4534 do eval test x\${$as_var+set} = xset \
4535   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4536 done
4537 PS1='$ '
4538 PS2='> '
4539 PS4='+ '
4540
4541 # NLS nuisances.
4542 LC_ALL=C
4543 export LC_ALL
4544 LANGUAGE=C
4545 export LANGUAGE
4546
4547 # CDPATH.
4548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4549
4550
4551 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4552 # ----------------------------------------
4553 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4554 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4555 # script with STATUS, using 1 if that was 0.
4556 as_fn_error ()
4557 {
4558   as_status=$1; test $as_status -eq 0 && as_status=1
4559   if test "$4"; then
4560     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4561     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4562   fi
4563   $as_echo "$as_me: error: $2" >&2
4564   as_fn_exit $as_status
4565 } # as_fn_error
4566
4567
4568 # as_fn_set_status STATUS
4569 # -----------------------
4570 # Set $? to STATUS, without forking.
4571 as_fn_set_status ()
4572 {
4573   return $1
4574 } # as_fn_set_status
4575
4576 # as_fn_exit STATUS
4577 # -----------------
4578 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4579 as_fn_exit ()
4580 {
4581   set +e
4582   as_fn_set_status $1
4583   exit $1
4584 } # as_fn_exit
4585
4586 # as_fn_unset VAR
4587 # ---------------
4588 # Portably unset VAR.
4589 as_fn_unset ()
4590 {
4591   { eval $1=; unset $1;}
4592 }
4593 as_unset=as_fn_unset
4594 # as_fn_append VAR VALUE
4595 # ----------------------
4596 # Append the text in VALUE to the end of the definition contained in VAR. Take
4597 # advantage of any shell optimizations that allow amortized linear growth over
4598 # repeated appends, instead of the typical quadratic growth present in naive
4599 # implementations.
4600 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4601   eval 'as_fn_append ()
4602   {
4603     eval $1+=\$2
4604   }'
4605 else
4606   as_fn_append ()
4607   {
4608     eval $1=\$$1\$2
4609   }
4610 fi # as_fn_append
4611
4612 # as_fn_arith ARG...
4613 # ------------------
4614 # Perform arithmetic evaluation on the ARGs, and store the result in the
4615 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4616 # must be portable across $(()) and expr.
4617 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4618   eval 'as_fn_arith ()
4619   {
4620     as_val=$(( $* ))
4621   }'
4622 else
4623   as_fn_arith ()
4624   {
4625     as_val=`expr "$@" || test $? -eq 1`
4626   }
4627 fi # as_fn_arith
4628
4629
4630 if expr a : '\(a\)' >/dev/null 2>&1 &&
4631    test "X`expr 00001 : '.*\(...\)'`" = X001; then
4632   as_expr=expr
4633 else
4634   as_expr=false
4635 fi
4636
4637 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4638   as_basename=basename
4639 else
4640   as_basename=false
4641 fi
4642
4643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4644   as_dirname=dirname
4645 else
4646   as_dirname=false
4647 fi
4648
4649 as_me=`$as_basename -- "$0" ||
4650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4651          X"$0" : 'X\(//\)$' \| \
4652          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4653 $as_echo X/"$0" |
4654     sed '/^.*\/\([^/][^/]*\)\/*$/{
4655             s//\1/
4656             q
4657           }
4658           /^X\/\(\/\/\)$/{
4659             s//\1/
4660             q
4661           }
4662           /^X\/\(\/\).*/{
4663             s//\1/
4664             q
4665           }
4666           s/.*/./; q'`
4667
4668 # Avoid depending upon Character Ranges.
4669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4672 as_cr_digits='0123456789'
4673 as_cr_alnum=$as_cr_Letters$as_cr_digits
4674
4675 ECHO_C= ECHO_N= ECHO_T=
4676 case `echo -n x` in #(((((
4677 -n*)
4678   case `echo 'xy\c'` in
4679   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
4680   xy)  ECHO_C='\c';;
4681   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4682        ECHO_T=' ';;
4683   esac;;
4684 *)
4685   ECHO_N='-n';;
4686 esac
4687
4688 rm -f conf$$ conf$$.exe conf$$.file
4689 if test -d conf$$.dir; then
4690   rm -f conf$$.dir/conf$$.file
4691 else
4692   rm -f conf$$.dir
4693   mkdir conf$$.dir 2>/dev/null
4694 fi
4695 if (echo >conf$$.file) 2>/dev/null; then
4696   if ln -s conf$$.file conf$$ 2>/dev/null; then
4697     as_ln_s='ln -s'
4698     # ... but there are two gotchas:
4699     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4700     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4701     # In both cases, we have to default to `cp -pR'.
4702     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4703       as_ln_s='cp -pR'
4704   elif ln conf$$.file conf$$ 2>/dev/null; then
4705     as_ln_s=ln
4706   else
4707     as_ln_s='cp -pR'
4708   fi
4709 else
4710   as_ln_s='cp -pR'
4711 fi
4712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4713 rmdir conf$$.dir 2>/dev/null
4714
4715
4716 # as_fn_mkdir_p
4717 # -------------
4718 # Create "$as_dir" as a directory, including parents if necessary.
4719 as_fn_mkdir_p ()
4720 {
4721
4722   case $as_dir in #(
4723   -*) as_dir=./$as_dir;;
4724   esac
4725   test -d "$as_dir" || eval $as_mkdir_p || {
4726     as_dirs=
4727     while :; do
4728       case $as_dir in #(
4729       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4730       *) as_qdir=$as_dir;;
4731       esac
4732       as_dirs="'$as_qdir' $as_dirs"
4733       as_dir=`$as_dirname -- "$as_dir" ||
4734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4735          X"$as_dir" : 'X\(//\)[^/]' \| \
4736          X"$as_dir" : 'X\(//\)$' \| \
4737          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4738 $as_echo X"$as_dir" |
4739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4740             s//\1/
4741             q
4742           }
4743           /^X\(\/\/\)[^/].*/{
4744             s//\1/
4745             q
4746           }
4747           /^X\(\/\/\)$/{
4748             s//\1/
4749             q
4750           }
4751           /^X\(\/\).*/{
4752             s//\1/
4753             q
4754           }
4755           s/.*/./; q'`
4756       test -d "$as_dir" && break
4757     done
4758     test -z "$as_dirs" || eval "mkdir $as_dirs"
4759   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4760
4761
4762 } # as_fn_mkdir_p
4763 if mkdir -p . 2>/dev/null; then
4764   as_mkdir_p='mkdir -p "$as_dir"'
4765 else
4766   test -d ./-p && rmdir ./-p
4767   as_mkdir_p=false
4768 fi
4769
4770
4771 # as_fn_executable_p FILE
4772 # -----------------------
4773 # Test if FILE is an executable regular file.
4774 as_fn_executable_p ()
4775 {
4776   test -f "$1" && test -x "$1"
4777 } # as_fn_executable_p
4778 as_test_x='test -x'
4779 as_executable_p=as_fn_executable_p
4780
4781 # Sed expression to map a string onto a valid CPP name.
4782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4783
4784 # Sed expression to map a string onto a valid variable name.
4785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4786
4787
4788 exec 6>&1
4789 ## ----------------------------------- ##
4790 ## Main body of $CONFIG_STATUS script. ##
4791 ## ----------------------------------- ##
4792 _ASEOF
4793 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4794
4795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4796 # Save the log message, to keep $0 and so on meaningful, and to
4797 # report actual input values of CONFIG_FILES etc. instead of their
4798 # values after options handling.
4799 ac_log="
4800 This file was extended by ntch $as_me 1.0.2.2, which was
4801 generated by GNU Autoconf 2.69.  Invocation command line was
4802
4803   CONFIG_FILES    = $CONFIG_FILES
4804   CONFIG_HEADERS  = $CONFIG_HEADERS
4805   CONFIG_LINKS    = $CONFIG_LINKS
4806   CONFIG_COMMANDS = $CONFIG_COMMANDS
4807   $ $0 $@
4808
4809 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4810 "
4811
4812 _ACEOF
4813
4814 case $ac_config_files in *"
4815 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4816 esac
4817
4818 case $ac_config_headers in *"
4819 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4820 esac
4821
4822
4823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4824 # Files that config.status was made for.
4825 config_files="$ac_config_files"
4826 config_headers="$ac_config_headers"
4827 config_commands="$ac_config_commands"
4828
4829 _ACEOF
4830
4831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4832 ac_cs_usage="\
4833 \`$as_me' instantiates files and other configuration actions
4834 from templates according to the current configuration.  Unless the files
4835 and actions are specified as TAGs, all are instantiated by default.
4836
4837 Usage: $0 [OPTION]... [TAG]...
4838
4839   -h, --help       print this help, then exit
4840   -V, --version    print version number and configuration settings, then exit
4841       --config     print configuration, then exit
4842   -q, --quiet, --silent
4843                    do not print progress messages
4844   -d, --debug      don't remove temporary files
4845       --recheck    update $as_me by reconfiguring in the same conditions
4846       --file=FILE[:TEMPLATE]
4847                    instantiate the configuration file FILE
4848       --header=FILE[:TEMPLATE]
4849                    instantiate the configuration header FILE
4850
4851 Configuration files:
4852 $config_files
4853
4854 Configuration headers:
4855 $config_headers
4856
4857 Configuration commands:
4858 $config_commands
4859
4860 Report bugs to <akohta001@gmail.com>.
4861 ntch home page: <https://sourceforge.jp/projects/ntch/>."
4862
4863 _ACEOF
4864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4865 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4866 ac_cs_version="\\
4867 ntch config.status 1.0.2.2
4868 configured by $0, generated by GNU Autoconf 2.69,
4869   with options \\"\$ac_cs_config\\"
4870
4871 Copyright (C) 2012 Free Software Foundation, Inc.
4872 This config.status script is free software; the Free Software Foundation
4873 gives unlimited permission to copy, distribute and modify it."
4874
4875 ac_pwd='$ac_pwd'
4876 srcdir='$srcdir'
4877 INSTALL='$INSTALL'
4878 test -n "\$AWK" || AWK=awk
4879 _ACEOF
4880
4881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4882 # The default lists apply if the user does not specify any file.
4883 ac_need_defaults=:
4884 while test $# != 0
4885 do
4886   case $1 in
4887   --*=?*)
4888     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4889     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4890     ac_shift=:
4891     ;;
4892   --*=)
4893     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4894     ac_optarg=
4895     ac_shift=:
4896     ;;
4897   *)
4898     ac_option=$1
4899     ac_optarg=$2
4900     ac_shift=shift
4901     ;;
4902   esac
4903
4904   case $ac_option in
4905   # Handling of the options.
4906   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4907     ac_cs_recheck=: ;;
4908   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4909     $as_echo "$ac_cs_version"; exit ;;
4910   --config | --confi | --conf | --con | --co | --c )
4911     $as_echo "$ac_cs_config"; exit ;;
4912   --debug | --debu | --deb | --de | --d | -d )
4913     debug=: ;;
4914   --file | --fil | --fi | --f )
4915     $ac_shift
4916     case $ac_optarg in
4917     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4918     '') as_fn_error $? "missing file argument" ;;
4919     esac
4920     as_fn_append CONFIG_FILES " '$ac_optarg'"
4921     ac_need_defaults=false;;
4922   --header | --heade | --head | --hea )
4923     $ac_shift
4924     case $ac_optarg in
4925     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4926     esac
4927     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4928     ac_need_defaults=false;;
4929   --he | --h)
4930     # Conflict between --help and --header
4931     as_fn_error $? "ambiguous option: \`$1'
4932 Try \`$0 --help' for more information.";;
4933   --help | --hel | -h )
4934     $as_echo "$ac_cs_usage"; exit ;;
4935   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4936   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4937     ac_cs_silent=: ;;
4938
4939   # This is an error.
4940   -*) as_fn_error $? "unrecognized option: \`$1'
4941 Try \`$0 --help' for more information." ;;
4942
4943   *) as_fn_append ac_config_targets " $1"
4944      ac_need_defaults=false ;;
4945
4946   esac
4947   shift
4948 done
4949
4950 ac_configure_extra_args=
4951
4952 if $ac_cs_silent; then
4953   exec 6>/dev/null
4954   ac_configure_extra_args="$ac_configure_extra_args --silent"
4955 fi
4956
4957 _ACEOF
4958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4959 if \$ac_cs_recheck; then
4960   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4961   shift
4962   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4963   CONFIG_SHELL='$SHELL'
4964   export CONFIG_SHELL
4965   exec "\$@"
4966 fi
4967
4968 _ACEOF
4969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4970 exec 5>>config.log
4971 {
4972   echo
4973   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4974 ## Running $as_me. ##
4975 _ASBOX
4976   $as_echo "$ac_log"
4977 } >&5
4978
4979 _ACEOF
4980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4981 _ACEOF
4982
4983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4984
4985 # Handling of arguments.
4986 for ac_config_target in $ac_config_targets
4987 do
4988   case $ac_config_target in
4989     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4990     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4991     "make-gen-dir") CONFIG_COMMANDS="$CONFIG_COMMANDS make-gen-dir" ;;
4992
4993   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4994   esac
4995 done
4996
4997
4998 # If the user did not use the arguments to specify the items to instantiate,
4999 # then the envvar interface is used.  Set only those that are not.
5000 # We use the long form for the default assignment because of an extremely
5001 # bizarre bug on SunOS 4.1.3.
5002 if $ac_need_defaults; then
5003   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5004   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5005   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5006 fi
5007
5008 # Have a temporary directory for convenience.  Make it in the build tree
5009 # simply because there is no reason against having it here, and in addition,
5010 # creating and moving files from /tmp can sometimes cause problems.
5011 # Hook for its removal unless debugging.
5012 # Note that there is a small window in which the directory will not be cleaned:
5013 # after its creation but before its name has been assigned to `$tmp'.
5014 $debug ||
5015 {
5016   tmp= ac_tmp=
5017   trap 'exit_status=$?
5018   : "${ac_tmp:=$tmp}"
5019   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5020 ' 0
5021   trap 'as_fn_exit 1' 1 2 13 15
5022 }
5023 # Create a (secure) tmp directory for tmp files.
5024
5025 {
5026   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5027   test -d "$tmp"
5028 }  ||
5029 {
5030   tmp=./conf$$-$RANDOM
5031   (umask 077 && mkdir "$tmp")
5032 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5033 ac_tmp=$tmp
5034
5035 # Set up the scripts for CONFIG_FILES section.
5036 # No need to generate them if there are no CONFIG_FILES.
5037 # This happens for instance with `./config.status config.h'.
5038 if test -n "$CONFIG_FILES"; then
5039
5040
5041 ac_cr=`echo X | tr X '\015'`
5042 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5043 # But we know of no other shell where ac_cr would be empty at this
5044 # point, so we can use a bashism as a fallback.
5045 if test "x$ac_cr" = x; then
5046   eval ac_cr=\$\'\\r\'
5047 fi
5048 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5049 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5050   ac_cs_awk_cr='\\r'
5051 else
5052   ac_cs_awk_cr=$ac_cr
5053 fi
5054
5055 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5056 _ACEOF
5057
5058
5059 {
5060   echo "cat >conf$$subs.awk <<_ACEOF" &&
5061   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5062   echo "_ACEOF"
5063 } >conf$$subs.sh ||
5064   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5065 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5066 ac_delim='%!_!# '
5067 for ac_last_try in false false false false false :; do
5068   . ./conf$$subs.sh ||
5069     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5070
5071   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5072   if test $ac_delim_n = $ac_delim_num; then
5073     break
5074   elif $ac_last_try; then
5075     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5076   else
5077     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5078   fi
5079 done
5080 rm -f conf$$subs.sh
5081
5082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5083 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5084 _ACEOF
5085 sed -n '
5086 h
5087 s/^/S["/; s/!.*/"]=/
5088 p
5089 g
5090 s/^[^!]*!//
5091 :repl
5092 t repl
5093 s/'"$ac_delim"'$//
5094 t delim
5095 :nl
5096 h
5097 s/\(.\{148\}\)..*/\1/
5098 t more1
5099 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5100 p
5101 n
5102 b repl
5103 :more1
5104 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5105 p
5106 g
5107 s/.\{148\}//
5108 t nl
5109 :delim
5110 h
5111 s/\(.\{148\}\)..*/\1/
5112 t more2
5113 s/["\\]/\\&/g; s/^/"/; s/$/"/
5114 p
5115 b
5116 :more2
5117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5118 p
5119 g
5120 s/.\{148\}//
5121 t delim
5122 ' <conf$$subs.awk | sed '
5123 /^[^""]/{
5124   N
5125   s/\n//
5126 }
5127 ' >>$CONFIG_STATUS || ac_write_fail=1
5128 rm -f conf$$subs.awk
5129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5130 _ACAWK
5131 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5132   for (key in S) S_is_set[key] = 1
5133   FS = "\a"
5134
5135 }
5136 {
5137   line = $ 0
5138   nfields = split(line, field, "@")
5139   substed = 0
5140   len = length(field[1])
5141   for (i = 2; i < nfields; i++) {
5142     key = field[i]
5143     keylen = length(key)
5144     if (S_is_set[key]) {
5145       value = S[key]
5146       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5147       len += length(value) + length(field[++i])
5148       substed = 1
5149     } else
5150       len += 1 + keylen
5151   }
5152
5153   print line
5154 }
5155
5156 _ACAWK
5157 _ACEOF
5158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5159 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5160   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5161 else
5162   cat
5163 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5164   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5165 _ACEOF
5166
5167 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5168 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5169 # trailing colons and then remove the whole line if VPATH becomes empty
5170 # (actually we leave an empty line to preserve line numbers).
5171 if test "x$srcdir" = x.; then
5172   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
5173 h
5174 s///
5175 s/^/:/
5176 s/[      ]*$/:/
5177 s/:\$(srcdir):/:/g
5178 s/:\${srcdir}:/:/g
5179 s/:@srcdir@:/:/g
5180 s/^:*//
5181 s/:*$//
5182 x
5183 s/\(=[   ]*\).*/\1/
5184 G
5185 s/\n//
5186 s/^[^=]*=[       ]*$//
5187 }'
5188 fi
5189
5190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5191 fi # test -n "$CONFIG_FILES"
5192
5193 # Set up the scripts for CONFIG_HEADERS section.
5194 # No need to generate them if there are no CONFIG_HEADERS.
5195 # This happens for instance with `./config.status Makefile'.
5196 if test -n "$CONFIG_HEADERS"; then
5197 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5198 BEGIN {
5199 _ACEOF
5200
5201 # Transform confdefs.h into an awk script `defines.awk', embedded as
5202 # here-document in config.status, that substitutes the proper values into
5203 # config.h.in to produce config.h.
5204
5205 # Create a delimiter string that does not exist in confdefs.h, to ease
5206 # handling of long lines.
5207 ac_delim='%!_!# '
5208 for ac_last_try in false false :; do
5209   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5210   if test -z "$ac_tt"; then
5211     break
5212   elif $ac_last_try; then
5213     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5214   else
5215     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5216   fi
5217 done
5218
5219 # For the awk script, D is an array of macro values keyed by name,
5220 # likewise P contains macro parameters if any.  Preserve backslash
5221 # newline sequences.
5222
5223 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5224 sed -n '
5225 s/.\{148\}/&'"$ac_delim"'/g
5226 t rset
5227 :rset
5228 s/^[     ]*#[    ]*define[       ][      ]*/ /
5229 t def
5230 d
5231 :def
5232 s/\\$//
5233 t bsnl
5234 s/["\\]/\\&/g
5235 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5236 D["\1"]=" \3"/p
5237 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
5238 d
5239 :bsnl
5240 s/["\\]/\\&/g
5241 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
5242 D["\1"]=" \3\\\\\\n"\\/p
5243 t cont
5244 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5245 t cont
5246 d
5247 :cont
5248 n
5249 s/.\{148\}/&'"$ac_delim"'/g
5250 t clear
5251 :clear
5252 s/\\$//
5253 t bsnlc
5254 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5255 d
5256 :bsnlc
5257 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5258 b cont
5259 ' <confdefs.h | sed '
5260 s/'"$ac_delim"'/"\\\
5261 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5262
5263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5264   for (key in D) D_is_set[key] = 1
5265   FS = "\a"
5266 }
5267 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5268   line = \$ 0
5269   split(line, arg, " ")
5270   if (arg[1] == "#") {
5271     defundef = arg[2]
5272     mac1 = arg[3]
5273   } else {
5274     defundef = substr(arg[1], 2)
5275     mac1 = arg[2]
5276   }
5277   split(mac1, mac2, "(") #)
5278   macro = mac2[1]
5279   prefix = substr(line, 1, index(line, defundef) - 1)
5280   if (D_is_set[macro]) {
5281     # Preserve the white space surrounding the "#".
5282     print prefix "define", macro P[macro] D[macro]
5283     next
5284   } else {
5285     # Replace #undef with comments.  This is necessary, for example,
5286     # in the case of _POSIX_SOURCE, which is predefined and required
5287     # on some systems where configure will not decide to define it.
5288     if (defundef == "undef") {
5289       print "/*", prefix defundef, macro, "*/"
5290       next
5291     }
5292   }
5293 }
5294 { print }
5295 _ACAWK
5296 _ACEOF
5297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5298   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5299 fi # test -n "$CONFIG_HEADERS"
5300
5301
5302 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5303 shift
5304 for ac_tag
5305 do
5306   case $ac_tag in
5307   :[FHLC]) ac_mode=$ac_tag; continue;;
5308   esac
5309   case $ac_mode$ac_tag in
5310   :[FHL]*:*);;
5311   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5312   :[FH]-) ac_tag=-:-;;
5313   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5314   esac
5315   ac_save_IFS=$IFS
5316   IFS=:
5317   set x $ac_tag
5318   IFS=$ac_save_IFS
5319   shift
5320   ac_file=$1
5321   shift
5322
5323   case $ac_mode in
5324   :L) ac_source=$1;;
5325   :[FH])
5326     ac_file_inputs=
5327     for ac_f
5328     do
5329       case $ac_f in
5330       -) ac_f="$ac_tmp/stdin";;
5331       *) # Look for the file first in the build tree, then in the source tree
5332          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5333          # because $ac_f cannot contain `:'.
5334          test -f "$ac_f" ||
5335            case $ac_f in
5336            [\\/$]*) false;;
5337            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5338            esac ||
5339            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5340       esac
5341       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5342       as_fn_append ac_file_inputs " '$ac_f'"
5343     done
5344
5345     # Let's still pretend it is `configure' which instantiates (i.e., don't
5346     # use $as_me), people would be surprised to read:
5347     #    /* config.h.  Generated by config.status.  */
5348     configure_input='Generated from '`
5349           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5350         `' by configure.'
5351     if test x"$ac_file" != x-; then
5352       configure_input="$ac_file.  $configure_input"
5353       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5354 $as_echo "$as_me: creating $ac_file" >&6;}
5355     fi
5356     # Neutralize special characters interpreted by sed in replacement strings.
5357     case $configure_input in #(
5358     *\&* | *\|* | *\\* )
5359        ac_sed_conf_input=`$as_echo "$configure_input" |
5360        sed 's/[\\\\&|]/\\\\&/g'`;; #(
5361     *) ac_sed_conf_input=$configure_input;;
5362     esac
5363
5364     case $ac_tag in
5365     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5366       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5367     esac
5368     ;;
5369   esac
5370
5371   ac_dir=`$as_dirname -- "$ac_file" ||
5372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5373          X"$ac_file" : 'X\(//\)[^/]' \| \
5374          X"$ac_file" : 'X\(//\)$' \| \
5375          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5376 $as_echo X"$ac_file" |
5377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5378             s//\1/
5379             q
5380           }
5381           /^X\(\/\/\)[^/].*/{
5382             s//\1/
5383             q
5384           }
5385           /^X\(\/\/\)$/{
5386             s//\1/
5387             q
5388           }
5389           /^X\(\/\).*/{
5390             s//\1/
5391             q
5392           }
5393           s/.*/./; q'`
5394   as_dir="$ac_dir"; as_fn_mkdir_p
5395   ac_builddir=.
5396
5397 case "$ac_dir" in
5398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5399 *)
5400   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5401   # A ".." for each directory in $ac_dir_suffix.
5402   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5403   case $ac_top_builddir_sub in
5404   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5405   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5406   esac ;;
5407 esac
5408 ac_abs_top_builddir=$ac_pwd
5409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5410 # for backward compatibility:
5411 ac_top_builddir=$ac_top_build_prefix
5412
5413 case $srcdir in
5414   .)  # We are building in place.
5415     ac_srcdir=.
5416     ac_top_srcdir=$ac_top_builddir_sub
5417     ac_abs_top_srcdir=$ac_pwd ;;
5418   [\\/]* | ?:[\\/]* )  # Absolute name.
5419     ac_srcdir=$srcdir$ac_dir_suffix;
5420     ac_top_srcdir=$srcdir
5421     ac_abs_top_srcdir=$srcdir ;;
5422   *) # Relative name.
5423     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5424     ac_top_srcdir=$ac_top_build_prefix$srcdir
5425     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5426 esac
5427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5428
5429
5430   case $ac_mode in
5431   :F)
5432   #
5433   # CONFIG_FILE
5434   #
5435
5436   case $INSTALL in
5437   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5438   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5439   esac
5440 _ACEOF
5441
5442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5443 # If the template does not know about datarootdir, expand it.
5444 # FIXME: This hack should be removed a few years after 2.60.
5445 ac_datarootdir_hack=; ac_datarootdir_seen=
5446 ac_sed_dataroot='
5447 /datarootdir/ {
5448   p
5449   q
5450 }
5451 /@datadir@/p
5452 /@docdir@/p
5453 /@infodir@/p
5454 /@localedir@/p
5455 /@mandir@/p'
5456 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5457 *datarootdir*) ac_datarootdir_seen=yes;;
5458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5460 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5461 _ACEOF
5462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5463   ac_datarootdir_hack='
5464   s&@datadir@&$datadir&g
5465   s&@docdir@&$docdir&g
5466   s&@infodir@&$infodir&g
5467   s&@localedir@&$localedir&g
5468   s&@mandir@&$mandir&g
5469   s&\\\${datarootdir}&$datarootdir&g' ;;
5470 esac
5471 _ACEOF
5472
5473 # Neutralize VPATH when `$srcdir' = `.'.
5474 # Shell code in configure.ac might set extrasub.
5475 # FIXME: do we really want to maintain this feature?
5476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5477 ac_sed_extra="$ac_vpsub
5478 $extrasub
5479 _ACEOF
5480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5481 :t
5482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5483 s|@configure_input@|$ac_sed_conf_input|;t t
5484 s&@top_builddir@&$ac_top_builddir_sub&;t t
5485 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5486 s&@srcdir@&$ac_srcdir&;t t
5487 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5488 s&@top_srcdir@&$ac_top_srcdir&;t t
5489 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5490 s&@builddir@&$ac_builddir&;t t
5491 s&@abs_builddir@&$ac_abs_builddir&;t t
5492 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5493 s&@INSTALL@&$ac_INSTALL&;t t
5494 $ac_datarootdir_hack
5495 "
5496 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5497   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5498
5499 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5500   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5501   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
5502       "$ac_tmp/out"`; test -z "$ac_out"; } &&
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5504 which seems to be undefined.  Please make sure it is defined" >&5
5505 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5506 which seems to be undefined.  Please make sure it is defined" >&2;}
5507
5508   rm -f "$ac_tmp/stdin"
5509   case $ac_file in
5510   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5511   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5512   esac \
5513   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5514  ;;
5515   :H)
5516   #
5517   # CONFIG_HEADER
5518   #
5519   if test x"$ac_file" != x-; then
5520     {
5521       $as_echo "/* $configure_input  */" \
5522       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5523     } >"$ac_tmp/config.h" \
5524       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5525     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5526       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5527 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5528     else
5529       rm -f "$ac_file"
5530       mv "$ac_tmp/config.h" "$ac_file" \
5531         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5532     fi
5533   else
5534     $as_echo "/* $configure_input  */" \
5535       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5536       || as_fn_error $? "could not create -" "$LINENO" 5
5537   fi
5538  ;;
5539
5540   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5541 $as_echo "$as_me: executing $ac_file commands" >&6;}
5542  ;;
5543   esac
5544
5545
5546   case $ac_file$ac_mode in
5547     "make-gen-dir":C) mkdir -p gen ;;
5548
5549   esac
5550 done # for ac_tag
5551
5552
5553 as_fn_exit 0
5554 _ACEOF
5555 ac_clean_files=$ac_clean_files_save
5556
5557 test $ac_write_fail = 0 ||
5558   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5559
5560
5561 # configure is writing to config.log, and then calls config.status.
5562 # config.status does its own redirection, appending to config.log.
5563 # Unfortunately, on DOS this fails, as config.log is still kept open
5564 # by configure, so config.status won't be able to write to it; its
5565 # output is simply discarded.  So we exec the FD to /dev/null,
5566 # effectively closing config.log, so it can be properly (re)opened and
5567 # appended to by config.status.  When coming back to configure, we
5568 # need to make the FD available again.
5569 if test "$no_create" != yes; then
5570   ac_cs_success=:
5571   ac_config_status_args=
5572   test "$silent" = yes &&
5573     ac_config_status_args="$ac_config_status_args --quiet"
5574   exec 5>/dev/null
5575   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5576   exec 5>>config.log
5577   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5578   # would make configure fail if this is the last instruction.
5579   $ac_cs_success || as_fn_exit 1
5580 fi
5581 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5583 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5584 fi
5585