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