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