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