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