ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.52
Committed: Tue Jul 16 16:44:36 2013 UTC (10 years, 9 months ago) by root
Branch: MAIN
Changes since 1.51: +53 -24 lines
Log Message:
3.x

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="src/gvpe.C"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 INCLUDES
627 ROHC_FALSE
628 ROHC_TRUE
629 LDFLAGS_DAEMON
630 HAVE_TUNTAP
631 LINUX_IF_TUN_H
632 ALLOCA
633 CXXCPP
634 IFSUBTYPE
635 IFTYPE
636 RANLIB
637 LN_S
638 EGREP
639 GREP
640 am__fastdepCXX_FALSE
641 am__fastdepCXX_TRUE
642 CXXDEPMODE
643 ac_ct_CXX
644 CXXFLAGS
645 CXX
646 CPP
647 POSUB
648 LTLIBINTL
649 LIBINTL
650 INTLLIBS
651 LTLIBICONV
652 LIBICONV
653 USE_NLS
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 am__nodep
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 MSGMERGE
672 XGETTEXT
673 GMSGFMT
674 MSGFMT
675 MKINSTALLDIRS
676 MAINT
677 MAINTAINER_MODE_FALSE
678 MAINTAINER_MODE_TRUE
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
684 AWK
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_maintainer_mode
756 enable_dependency_tracking
757 with_gnu_ld
758 enable_rpath
759 with_libiconv_prefix
760 enable_nls
761 with_libintl_prefix
762 enable_iftype
763 with_kernel
764 with_openssl_include
765 with_openssl_lib
766 enable_threads
767 enable_static_daemon
768 enable_icmp
769 enable_tcp
770 enable_http_proxy
771 enable_dns
772 enable_rsa_length
773 enable_hmac_length
774 enable_rand_length
775 enable_max_mtu
776 enable_compression
777 enable_cipher
778 enable_digest
779 enable_auth_digest
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP
790 CXX
791 CXXFLAGS
792 CCC
793 CXXCPP'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
853 fi
854
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
891
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
924
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1144
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 ;;
1200
1201 esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1222 do
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1298 fi
1299 else
1300 ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 \`configure' configures this package to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1388
1389 cat <<\_ACEOF
1390
1391 Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 --target=TARGET configure for building compilers for TARGET [HOST]
1400 _ACEOF
1401 fi
1402
1403 if test -n "$ac_init_help"; then
1404
1405 cat <<\_ACEOF
1406
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --disable-rpath do not hardcode runtime library paths
1416 --disable-nls do not use Native Language Support
1417 --enable-iftype=TYPE/SUBTYPE
1418 Use kernel/net device interface TYPE/SUBTYPE.
1419 Working combinations are (see doc/gvpe.osdep.5.pod):
1420 "native/linux" "tincd/linux" "tincd/netbsd"
1421 "tincd/freebsd" "tincd/openbsd" "native/darwin"
1422 "tincd/darwin" "native/cygwin"; Untested
1423 combinations are: "tincd/bsd" "tincd/solaris"
1424 "tincd/mingw" "tincd/raw_socket" "tincd/uml_socket";
1425 Broken combinations are: "tincd/cygwin"; The default
1426 is to autodetect.
1427 --enable-threads try to use threads for long-running asynchronous
1428 operations (default enabled).
1429 --enable-static-daemon enable statically linked daemon.
1430 --disable-icmp enable icmp protocol support (default enabled).
1431 --disable-tcp enable tcp protocol support (default enabled).
1432 --disable-http-proxy enable http proxy connect support (default enabled).
1433 --enable-dns enable dns tunnel protocol support (default
1434 disabled).
1435 --enable-rsa-length=BITS
1436 use BITS rsa keys (default 3072). Allowed values are
1437 1536-10240.
1438 --enable-hmac-length=BYTES
1439 use a hmac of length BYTES bytes (default 12).
1440 Allowed values are 4, 8, 12, 16.
1441 --enable-rand-length=BYTES
1442 use BYTES bytes of extra randomness (default 8).
1443 Allowed values are 0, 4, 8.
1444 --enable-max-mtu=BYTES enable mtu sizes upto BYTES bytes (default 1500).
1445 Use 9100 for jumbogram support.
1446 --disable-compression Disable compression support.
1447 --enable-cipher=CIPHER Select the symmetric cipher (default "aes-128").
1448 Must be one of "bf" (blowfish), "aes-128"
1449 (rijndael), "aes-192", "aes-256", "camellia-128" or
1450 "camellia-256".
1451 --enable-digest=DIGEST Select the digest algorithm to use (default "sha1").
1452 Must be one of "sha512", "sha256", "sha1",
1453 "ripemd160", "whirlpool".
1454 --enable-auth-digest=DIGEST
1455 Select the hmac algorithm to use (default "sha512").
1456 Must be one of "sha512", "sha256", "whirlpool".
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-gnu-ld assume the C compiler uses GNU ld default=no
1462 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1463 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1464 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1465 --without-libintl-prefix don't search for libintl in includedir and libdir
1466 --with-kernel=dir give the directory with kernel sources
1467 (default: /usr/src/linux)
1468 --with-openssl-include=DIR OpenSSL headers directory (without trailing /openssl)
1469 --with-openssl-lib=DIR OpenSSL library directory
1470
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 configure
1551 generated by GNU Autoconf 2.69
1552
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_link ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 test -x conftest$ac_exeext
1630 }; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637 fi
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_link
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_cxx_try_compile LINENO
1686 # ----------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_cxx_try_compile ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_cxx_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_cxx_try_compile
1722
1723 # ac_fn_cxx_try_cpp LINENO
1724 # ------------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_cpp ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_cpp conftest.$ac_ext"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } > conftest.i && {
1745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1746 test ! -s conftest.err
1747 }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754 fi
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_cxx_try_cpp
1759
1760 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # ---------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1764 # accordingly.
1765 ac_fn_cxx_check_header_mongrel ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval \${$3+:} false; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 $4
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_cxx_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1788 else
1789 ac_header_compiler=no
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1794
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_cxx_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1804 else
1805 ac_header_preproc=no
1806 fi
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1810
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1813 yes:no: )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 ;;
1819 no:yes:* )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ;;
1831 esac
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 eval "$3=\$ac_header_compiler"
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 fi
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_cxx_check_header_mongrel
1846
1847 # ac_fn_cxx_try_run LINENO
1848 # ------------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850 # that executables *can* be run.
1851 ac_fn_cxx_try_run ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=$ac_status
1882 fi
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1886
1887 } # ac_fn_cxx_try_run
1888
1889 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1890 # ---------------------------------------------------------
1891 # Tests whether HEADER exists and can be compiled using the include files in
1892 # INCLUDES, setting the cache variable VAR accordingly.
1893 ac_fn_cxx_check_header_compile ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900 else
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_cxx_try_compile "$LINENO"; then :
1907 eval "$3=yes"
1908 else
1909 eval "$3=no"
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_cxx_check_header_compile
1919
1920 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1921 # ---------------------------------------------
1922 # Tests whether TYPE exists after having included INCLUDES, setting cache
1923 # variable VAR accordingly.
1924 ac_fn_cxx_check_type ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 eval "$3=no"
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 int
1937 main ()
1938 {
1939 if (sizeof ($2))
1940 return 0;
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_cxx_try_compile "$LINENO"; then :
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 $4
1949 int
1950 main ()
1951 {
1952 if (sizeof (($2)))
1953 return 0;
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_cxx_try_compile "$LINENO"; then :
1959
1960 else
1961 eval "$3=yes"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_cxx_check_type
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1989 ac_status=$?
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
1999 ac_status=$?
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2002 ac_retval=0
2003 else
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=$ac_status
2009 fi
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2032
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2037
2038 #ifdef __STDC__
2039 # include <limits.h>
2040 #else
2041 # include <assert.h>
2042 #endif
2043
2044 #undef $2
2045
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2049 #ifdef __cplusplus
2050 extern "C"
2051 #endif
2052 char $2 ();
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2057 choke me
2058 #endif
2059
2060 int
2061 main ()
2062 {
2063 return $2 ();
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_link "$LINENO"; then :
2069 eval "$3=yes"
2070 else
2071 eval "$3=no"
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_func
2082
2083 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2084 # -------------------------------------------------------
2085 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2086 # the include files in INCLUDES and setting the cache variable VAR
2087 # accordingly.
2088 ac_fn_c_check_header_mongrel ()
2089 {
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if eval \${$3+:} false; then :
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096 fi
2097 eval ac_res=\$$3
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 else
2101 # Is the header compilable?
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2103 $as_echo_n "checking $2 usability... " >&6; }
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $4
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_header_compiler=yes
2111 else
2112 ac_header_compiler=no
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2116 $as_echo "$ac_header_compiler" >&6; }
2117
2118 # Is the header present?
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2120 $as_echo_n "checking $2 presence... " >&6; }
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 #include <$2>
2124 _ACEOF
2125 if ac_fn_c_try_cpp "$LINENO"; then :
2126 ac_header_preproc=yes
2127 else
2128 ac_header_preproc=no
2129 fi
2130 rm -f conftest.err conftest.i conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2132 $as_echo "$ac_header_preproc" >&6; }
2133
2134 # So? What about this header?
2135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2136 yes:no: )
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2138 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2140 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2141 ;;
2142 no:yes:* )
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2144 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2146 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2148 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2150 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2152 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153 ;;
2154 esac
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159 else
2160 eval "$3=\$ac_header_compiler"
2161 fi
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 fi
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167
2168 } # ac_fn_c_check_header_mongrel
2169
2170 # ac_fn_cxx_try_link LINENO
2171 # -------------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_link ()
2174 {
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 rm -f conftest.$ac_objext conftest$ac_exeext
2177 if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_link") 2>conftest.err
2185 ac_status=$?
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2190 fi
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } && {
2193 test -z "$ac_cxx_werror_flag" ||
2194 test ! -s conftest.err
2195 } && test -s conftest$ac_exeext && {
2196 test "$cross_compiling" = yes ||
2197 test -x conftest$ac_exeext
2198 }; then :
2199 ac_retval=0
2200 else
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 ac_retval=1
2205 fi
2206 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2207 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2208 # interfere with the next link command; also delete a directory that is
2209 # left behind by Apple's compiler. We do this before executing the actions.
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2213
2214 } # ac_fn_cxx_try_link
2215
2216 # ac_fn_cxx_check_func LINENO FUNC VAR
2217 # ------------------------------------
2218 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2219 ac_fn_cxx_check_func ()
2220 {
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2231 #define $2 innocuous_$2
2232
2233 /* System header to define __stub macros and hopefully few prototypes,
2234 which can conflict with char $2 (); below.
2235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2236 <limits.h> exists even on freestanding compilers. */
2237
2238 #ifdef __STDC__
2239 # include <limits.h>
2240 #else
2241 # include <assert.h>
2242 #endif
2243
2244 #undef $2
2245
2246 /* Override any GCC internal prototype to avoid an error.
2247 Use char because int might match the return type of a GCC
2248 builtin and then its argument prototype would still apply. */
2249 #ifdef __cplusplus
2250 extern "C"
2251 #endif
2252 char $2 ();
2253 /* The GNU C library defines this for functions which it implements
2254 to always fail with ENOSYS. Some functions are actually named
2255 something starting with __ and the normal name is an alias. */
2256 #if defined __stub_$2 || defined __stub___$2
2257 choke me
2258 #endif
2259
2260 int
2261 main ()
2262 {
2263 return $2 ();
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 if ac_fn_cxx_try_link "$LINENO"; then :
2269 eval "$3=yes"
2270 else
2271 eval "$3=no"
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext \
2274 conftest$ac_exeext conftest.$ac_ext
2275 fi
2276 eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280
2281 } # ac_fn_cxx_check_func
2282 cat >config.log <<_ACEOF
2283 This file contains any messages produced by compilers while
2284 running configure, to aid debugging if configure makes a mistake.
2285
2286 It was created by $as_me, which was
2287 generated by GNU Autoconf 2.69. Invocation command line was
2288
2289 $ $0 $@
2290
2291 _ACEOF
2292 exec 5>>config.log
2293 {
2294 cat <<_ASUNAME
2295 ## --------- ##
2296 ## Platform. ##
2297 ## --------- ##
2298
2299 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304
2305 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2307
2308 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2309 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2310 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2312 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2313 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2314 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315
2316 _ASUNAME
2317
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 $as_echo "PATH: $as_dir"
2324 done
2325 IFS=$as_save_IFS
2326
2327 } >&5
2328
2329 cat >&5 <<_ACEOF
2330
2331
2332 ## ----------- ##
2333 ## Core tests. ##
2334 ## ----------- ##
2335
2336 _ACEOF
2337
2338
2339 # Keep a trace of the command line.
2340 # Strip out --no-create and --no-recursion so they do not pile up.
2341 # Strip out --silent because we don't want to record it for future runs.
2342 # Also quote any args containing shell meta-characters.
2343 # Make two passes to allow for proper duplicate-argument suppression.
2344 ac_configure_args=
2345 ac_configure_args0=
2346 ac_configure_args1=
2347 ac_must_keep_next=false
2348 for ac_pass in 1 2
2349 do
2350 for ac_arg
2351 do
2352 case $ac_arg in
2353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355 | -silent | --silent | --silen | --sile | --sil)
2356 continue ;;
2357 *\'*)
2358 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 esac
2360 case $ac_pass in
2361 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362 2)
2363 as_fn_append ac_configure_args1 " '$ac_arg'"
2364 if test $ac_must_keep_next = true; then
2365 ac_must_keep_next=false # Got value, back to normal.
2366 else
2367 case $ac_arg in
2368 *=* | --config-cache | -C | -disable-* | --disable-* \
2369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371 | -with-* | --with-* | -without-* | --without-* | --x)
2372 case "$ac_configure_args0 " in
2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374 esac
2375 ;;
2376 -* ) ac_must_keep_next=true ;;
2377 esac
2378 fi
2379 as_fn_append ac_configure_args " '$ac_arg'"
2380 ;;
2381 esac
2382 done
2383 done
2384 { ac_configure_args0=; unset ac_configure_args0;}
2385 { ac_configure_args1=; unset ac_configure_args1;}
2386
2387 # When interrupted or exit'd, cleanup temporary files, and complete
2388 # config.log. We remove comments because anyway the quotes in there
2389 # would cause problems or look ugly.
2390 # WARNING: Use '\'' to represent an apostrophe within the trap.
2391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392 trap 'exit_status=$?
2393 # Save into config.log some information that might help in debugging.
2394 {
2395 echo
2396
2397 $as_echo "## ---------------- ##
2398 ## Cache variables. ##
2399 ## ---------------- ##"
2400 echo
2401 # The following way of writing the cache mishandles newlines in values,
2402 (
2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in #(
2406 *${as_nl}*)
2407 case $ac_var in #(
2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410 esac
2411 case $ac_var in #(
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414 *) { eval $ac_var=; unset $ac_var;} ;;
2415 esac ;;
2416 esac
2417 done
2418 (set) 2>&1 |
2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2421 sed -n \
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424 ;; #(
2425 *)
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427 ;;
2428 esac |
2429 sort
2430 )
2431 echo
2432
2433 $as_echo "## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##"
2436 echo
2437 for ac_var in $ac_subst_vars
2438 do
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2446
2447 if test -n "$ac_subst_files"; then
2448 $as_echo "## ------------------- ##
2449 ## File substitutions. ##
2450 ## ------------------- ##"
2451 echo
2452 for ac_var in $ac_subst_files
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461 fi
2462
2463 if test -s confdefs.h; then
2464 $as_echo "## ----------- ##
2465 ## confdefs.h. ##
2466 ## ----------- ##"
2467 echo
2468 cat confdefs.h
2469 echo
2470 fi
2471 test "$ac_signal" != 0 &&
2472 $as_echo "$as_me: caught signal $ac_signal"
2473 $as_echo "$as_me: exit $exit_status"
2474 } >&5
2475 rm -f core *.core core.conftest.* &&
2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477 exit $exit_status
2478 ' 0
2479 for ac_signal in 1 2 13 15; do
2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481 done
2482 ac_signal=0
2483
2484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485 rm -f -r conftest* confdefs.h
2486
2487 $as_echo "/* confdefs.h */" > confdefs.h
2488
2489 # Predefined preprocessor variables.
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_NAME "$PACKAGE_NAME"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_STRING "$PACKAGE_STRING"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_URL "$PACKAGE_URL"
2513 _ACEOF
2514
2515
2516 # Let the site file select an alternate cache file if it wants to.
2517 # Prefer an explicitly selected file to automatically selected ones.
2518 ac_site_file1=NONE
2519 ac_site_file2=NONE
2520 if test -n "$CONFIG_SITE"; then
2521 # We do not want a PATH search for config.site.
2522 case $CONFIG_SITE in #((
2523 -*) ac_site_file1=./$CONFIG_SITE;;
2524 */*) ac_site_file1=$CONFIG_SITE;;
2525 *) ac_site_file1=./$CONFIG_SITE;;
2526 esac
2527 elif test "x$prefix" != xNONE; then
2528 ac_site_file1=$prefix/share/config.site
2529 ac_site_file2=$prefix/etc/config.site
2530 else
2531 ac_site_file1=$ac_default_prefix/share/config.site
2532 ac_site_file2=$ac_default_prefix/etc/config.site
2533 fi
2534 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535 do
2536 test "x$ac_site_file" = xNONE && continue
2537 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540 sed 's/^/| /' "$ac_site_file" >&5
2541 . "$ac_site_file" \
2542 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error $? "failed to load site script $ac_site_file
2545 See \`config.log' for more details" "$LINENO" 5; }
2546 fi
2547 done
2548
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2555 case $cache_file in
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2558 esac
2559 fi
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563 >$cache_file
2564 fi
2565
2566 # Check that the precious variables saved in the cache have kept the same
2567 # value.
2568 ac_cache_corrupted=false
2569 for ac_var in $ac_precious_vars; do
2570 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571 eval ac_new_set=\$ac_env_${ac_var}_set
2572 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573 eval ac_new_val=\$ac_env_${ac_var}_value
2574 case $ac_old_set,$ac_new_set in
2575 set,)
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578 ac_cache_corrupted=: ;;
2579 ,set)
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2583 ,);;
2584 *)
2585 if test "x$ac_old_val" != "x$ac_new_val"; then
2586 # differences in whitespace do not lead to failure.
2587 ac_old_val_w=`echo x $ac_old_val`
2588 ac_new_val_w=`echo x $ac_new_val`
2589 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592 ac_cache_corrupted=:
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596 eval $ac_var=\$ac_old_val
2597 fi
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2599 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2601 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2602 fi;;
2603 esac
2604 # Pass precious variables to config.status.
2605 if test "$ac_new_set" = set; then
2606 case $ac_new_val in
2607 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608 *) ac_arg=$ac_var=$ac_new_val ;;
2609 esac
2610 case " $ac_configure_args " in
2611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2612 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613 esac
2614 fi
2615 done
2616 if $ac_cache_corrupted; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2621 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622 fi
2623 ## -------------------- ##
2624 ## Main body of script. ##
2625 ## -------------------- ##
2626
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
2633
2634
2635 ac_aux_dir=
2636 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2637 if test -f "$ac_dir/install-sh"; then
2638 ac_aux_dir=$ac_dir
2639 ac_install_sh="$ac_aux_dir/install-sh -c"
2640 break
2641 elif test -f "$ac_dir/install.sh"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/install.sh -c"
2644 break
2645 elif test -f "$ac_dir/shtool"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/shtool install -c"
2648 break
2649 fi
2650 done
2651 if test -z "$ac_aux_dir"; then
2652 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2653 fi
2654
2655 # These three variables are undocumented and unsupported,
2656 # and are intended to be withdrawn in a future Autoconf release.
2657 # They can cause serious problems if a builder's source tree is in a directory
2658 # whose full name contains unusual characters.
2659 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2660 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2661 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2662
2663
2664 # Make sure we can run config.sub.
2665 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2666 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2667
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2669 $as_echo_n "checking build system type... " >&6; }
2670 if ${ac_cv_build+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 ac_build_alias=$build_alias
2674 test "x$ac_build_alias" = x &&
2675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2676 test "x$ac_build_alias" = x &&
2677 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2679 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2680
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2683 $as_echo "$ac_cv_build" >&6; }
2684 case $ac_cv_build in
2685 *-*-*) ;;
2686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2687 esac
2688 build=$ac_cv_build
2689 ac_save_IFS=$IFS; IFS='-'
2690 set x $ac_cv_build
2691 shift
2692 build_cpu=$1
2693 build_vendor=$2
2694 shift; shift
2695 # Remember, the first character of IFS is used to create $*,
2696 # except with old shells:
2697 build_os=$*
2698 IFS=$ac_save_IFS
2699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2700
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2703 $as_echo_n "checking host system type... " >&6; }
2704 if ${ac_cv_host+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test "x$host_alias" = x; then
2708 ac_cv_host=$ac_cv_build
2709 else
2710 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2711 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2712 fi
2713
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2716 $as_echo "$ac_cv_host" >&6; }
2717 case $ac_cv_host in
2718 *-*-*) ;;
2719 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2720 esac
2721 host=$ac_cv_host
2722 ac_save_IFS=$IFS; IFS='-'
2723 set x $ac_cv_host
2724 shift
2725 host_cpu=$1
2726 host_vendor=$2
2727 shift; shift
2728 # Remember, the first character of IFS is used to create $*,
2729 # except with old shells:
2730 host_os=$*
2731 IFS=$ac_save_IFS
2732 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2733
2734
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2736 $as_echo_n "checking target system type... " >&6; }
2737 if ${ac_cv_target+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test "x$target_alias" = x; then
2741 ac_cv_target=$ac_cv_host
2742 else
2743 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2745 fi
2746
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2749 $as_echo "$ac_cv_target" >&6; }
2750 case $ac_cv_target in
2751 *-*-*) ;;
2752 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2753 esac
2754 target=$ac_cv_target
2755 ac_save_IFS=$IFS; IFS='-'
2756 set x $ac_cv_target
2757 shift
2758 target_cpu=$1
2759 target_vendor=$2
2760 shift; shift
2761 # Remember, the first character of IFS is used to create $*,
2762 # except with old shells:
2763 target_os=$*
2764 IFS=$ac_save_IFS
2765 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2766
2767
2768 # The aliases save the names the user supplied, while $host etc.
2769 # will get canonicalized.
2770 test -n "$target_alias" &&
2771 test "$program_prefix$program_suffix$program_transform_name" = \
2772 NONENONEs,x,x, &&
2773 program_prefix=${target_alias}-
2774 am__api_version='1.11'
2775
2776 # Find a good install program. We prefer a C program (faster),
2777 # so one script is as good as another. But avoid the broken or
2778 # incompatible versions:
2779 # SysV /etc/install, /usr/sbin/install
2780 # SunOS /usr/etc/install
2781 # IRIX /sbin/install
2782 # AIX /bin/install
2783 # AmigaOS /C/install, which installs bootblocks on floppy discs
2784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787 # OS/2's system install, which has a completely different semantic
2788 # ./install, which can be erroneously created by make from ./install.sh.
2789 # Reject install programs that cannot install multiple files.
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2792 if test -z "$INSTALL"; then
2793 if ${ac_cv_path_install+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 # Account for people who put trailing slashes in PATH elements.
2802 case $as_dir/ in #((
2803 ./ | .// | /[cC]/* | \
2804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2806 /usr/ucb/* ) ;;
2807 *)
2808 # OSF1 and SCO ODT 3.0 have their own names for install.
2809 # Don't use installbsd from OSF since it installs stuff as root
2810 # by default.
2811 for ac_prog in ginstall scoinst install; do
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2814 if test $ac_prog = install &&
2815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816 # AIX install. It has an incompatible calling convention.
2817 :
2818 elif test $ac_prog = install &&
2819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820 # program-specific install script used by HP pwplus--don't use.
2821 :
2822 else
2823 rm -rf conftest.one conftest.two conftest.dir
2824 echo one > conftest.one
2825 echo two > conftest.two
2826 mkdir conftest.dir
2827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828 test -s conftest.one && test -s conftest.two &&
2829 test -s conftest.dir/conftest.one &&
2830 test -s conftest.dir/conftest.two
2831 then
2832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2833 break 3
2834 fi
2835 fi
2836 fi
2837 done
2838 done
2839 ;;
2840 esac
2841
2842 done
2843 IFS=$as_save_IFS
2844
2845 rm -rf conftest.one conftest.two conftest.dir
2846
2847 fi
2848 if test "${ac_cv_path_install+set}" = set; then
2849 INSTALL=$ac_cv_path_install
2850 else
2851 # As a last resort, use the slow shell script. Don't cache a
2852 # value for INSTALL within a source directory, because that will
2853 # break other packages using the cache if that directory is
2854 # removed, or if the value is a relative name.
2855 INSTALL=$ac_install_sh
2856 fi
2857 fi
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859 $as_echo "$INSTALL" >&6; }
2860
2861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862 # It thinks the first close brace ends the variable substitution.
2863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2864
2865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2866
2867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870 $as_echo_n "checking whether build environment is sane... " >&6; }
2871 # Just in case
2872 sleep 1
2873 echo timestamp > conftest.file
2874 # Reject unsafe characters in $srcdir or the absolute working directory
2875 # name. Accept space and tab only in the latter.
2876 am_lf='
2877 '
2878 case `pwd` in
2879 *[\\\"\#\$\&\'\`$am_lf]*)
2880 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2881 esac
2882 case $srcdir in
2883 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2884 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2885 esac
2886
2887 # Do `set' in a subshell so we don't clobber the current shell's
2888 # arguments. Must try -L first in case configure is actually a
2889 # symlink; some systems play weird games with the mod time of symlinks
2890 # (eg FreeBSD returns the mod time of the symlink's containing
2891 # directory).
2892 if (
2893 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894 if test "$*" = "X"; then
2895 # -L didn't work.
2896 set X `ls -t "$srcdir/configure" conftest.file`
2897 fi
2898 rm -f conftest.file
2899 if test "$*" != "X $srcdir/configure conftest.file" \
2900 && test "$*" != "X conftest.file $srcdir/configure"; then
2901
2902 # If neither matched, then we have a broken ls. This can happen
2903 # if, for instance, CONFIG_SHELL is bash and it inherits a
2904 # broken ls alias from the environment. This has actually
2905 # happened. Such a system could not be considered "sane".
2906 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2907 alias in your environment" "$LINENO" 5
2908 fi
2909
2910 test "$2" = conftest.file
2911 )
2912 then
2913 # Ok.
2914 :
2915 else
2916 as_fn_error $? "newly created file is older than distributed files!
2917 Check your system clock" "$LINENO" 5
2918 fi
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920 $as_echo "yes" >&6; }
2921 test "$program_prefix" != NONE &&
2922 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2923 # Use a double $ so make ignores it.
2924 test "$program_suffix" != NONE &&
2925 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2926 # Double any \ or $.
2927 # By default was `s,x,x', remove it if useless.
2928 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2929 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2930
2931 # expand $ac_aux_dir to an absolute path
2932 am_aux_dir=`cd $ac_aux_dir && pwd`
2933
2934 if test x"${MISSING+set}" != xset; then
2935 case $am_aux_dir in
2936 *\ * | *\ *)
2937 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2938 *)
2939 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2940 esac
2941 fi
2942 # Use eval to expand $SHELL
2943 if eval "$MISSING --run true"; then
2944 am_missing_run="$MISSING --run "
2945 else
2946 am_missing_run=
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2948 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2949 fi
2950
2951 if test x"${install_sh}" != xset; then
2952 case $am_aux_dir in
2953 *\ * | *\ *)
2954 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2955 *)
2956 install_sh="\${SHELL} $am_aux_dir/install-sh"
2957 esac
2958 fi
2959
2960 # Installed binaries are usually stripped using `strip' when the user
2961 # run `make install-strip'. However `strip' might not be the right
2962 # tool to use in cross-compilation environments, therefore Automake
2963 # will honor the `STRIP' environment variable to overrule this program.
2964 if test "$cross_compiling" != no; then
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}strip; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_STRIP+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$STRIP"; then
2974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 STRIP=$ac_cv_prog_STRIP
2994 if test -n "$STRIP"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2996 $as_echo "$STRIP" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 fi
3004 if test -z "$ac_cv_prog_STRIP"; then
3005 ac_ct_STRIP=$STRIP
3006 # Extract the first word of "strip", so it can be a program name with args.
3007 set dummy strip; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$ac_ct_STRIP"; then
3014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_STRIP="strip"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3034 if test -n "$ac_ct_STRIP"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3036 $as_echo "$ac_ct_STRIP" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042 if test "x$ac_ct_STRIP" = x; then
3043 STRIP=":"
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned=yes ;;
3050 esac
3051 STRIP=$ac_ct_STRIP
3052 fi
3053 else
3054 STRIP="$ac_cv_prog_STRIP"
3055 fi
3056
3057 fi
3058 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3059
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3061 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3062 if test -z "$MKDIR_P"; then
3063 if ${ac_cv_path_mkdir+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3068 do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_prog in mkdir gmkdir; do
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3074 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3075 'mkdir (GNU coreutils) '* | \
3076 'mkdir (coreutils) '* | \
3077 'mkdir (fileutils) '4.1*)
3078 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3079 break 3;;
3080 esac
3081 done
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087
3088 test -d ./--version && rmdir ./--version
3089 if test "${ac_cv_path_mkdir+set}" = set; then
3090 MKDIR_P="$ac_cv_path_mkdir -p"
3091 else
3092 # As a last resort, use the slow shell script. Don't cache a
3093 # value for MKDIR_P within a source directory, because that will
3094 # break other packages using the cache if that directory is
3095 # removed, or if the value is a relative name.
3096 MKDIR_P="$ac_install_sh -d"
3097 fi
3098 fi
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3100 $as_echo "$MKDIR_P" >&6; }
3101
3102 mkdir_p="$MKDIR_P"
3103 case $mkdir_p in
3104 [\\/$]* | ?:[\\/]*) ;;
3105 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3106 esac
3107
3108 for ac_prog in gawk mawk nawk awk
3109 do
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_AWK+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$AWK"; then
3118 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_AWK="$ac_prog"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 AWK=$ac_cv_prog_AWK
3138 if test -n "$AWK"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3140 $as_echo "$AWK" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 test -n "$AWK" && break
3148 done
3149
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3151 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3152 set x ${MAKE-make}
3153 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3154 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 cat >conftest.make <<\_ACEOF
3158 SHELL = /bin/sh
3159 all:
3160 @echo '@@@%%%=$(MAKE)=@@@%%%'
3161 _ACEOF
3162 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3163 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3164 *@@@%%%=?*=@@@%%%*)
3165 eval ac_cv_prog_make_${ac_make}_set=yes;;
3166 *)
3167 eval ac_cv_prog_make_${ac_make}_set=no;;
3168 esac
3169 rm -f conftest.make
3170 fi
3171 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173 $as_echo "yes" >&6; }
3174 SET_MAKE=
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 SET_MAKE="MAKE=${MAKE-make}"
3179 fi
3180
3181 rm -rf .tst 2>/dev/null
3182 mkdir .tst 2>/dev/null
3183 if test -d .tst; then
3184 am__leading_dot=.
3185 else
3186 am__leading_dot=_
3187 fi
3188 rmdir .tst 2>/dev/null
3189
3190 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3191 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3192 # is not polluted with repeated "-I."
3193 am__isrc=' -I$(srcdir)'
3194 # test to see if srcdir already configured
3195 if test -f $srcdir/config.status; then
3196 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197 fi
3198 fi
3199
3200 # test whether we have cygpath
3201 if test -z "$CYGPATH_W"; then
3202 if (cygpath --version) >/dev/null 2>/dev/null; then
3203 CYGPATH_W='cygpath -w'
3204 else
3205 CYGPATH_W=echo
3206 fi
3207 fi
3208
3209
3210 # Define the identity of the package.
3211 PACKAGE=gvpe
3212 VERSION=2.25
3213
3214
3215 cat >>confdefs.h <<_ACEOF
3216 #define PACKAGE "$PACKAGE"
3217 _ACEOF
3218
3219
3220 cat >>confdefs.h <<_ACEOF
3221 #define VERSION "$VERSION"
3222 _ACEOF
3223
3224 # Some tools Automake needs.
3225
3226 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3227
3228
3229 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3230
3231
3232 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3233
3234
3235 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3236
3237
3238 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3239
3240 # We need awk for the "check" target. The system "awk" is bad on
3241 # some platforms.
3242 # Always define AMTAR for backward compatibility. Yes, it's still used
3243 # in the wild :-( We should find a proper way to deprecate it ...
3244 AMTAR='$${TAR-tar}'
3245
3246 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3247
3248
3249
3250
3251
3252 ac_config_headers="$ac_config_headers config.h"
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3256 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3257 # Check whether --enable-maintainer-mode was given.
3258 if test "${enable_maintainer_mode+set}" = set; then :
3259 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3260 else
3261 USE_MAINTAINER_MODE=no
3262 fi
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3265 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3266 if test $USE_MAINTAINER_MODE = yes; then
3267 MAINTAINER_MODE_TRUE=
3268 MAINTAINER_MODE_FALSE='#'
3269 else
3270 MAINTAINER_MODE_TRUE='#'
3271 MAINTAINER_MODE_FALSE=
3272 fi
3273
3274 MAINT=$MAINTAINER_MODE_TRUE
3275
3276
3277
3278
3279
3280
3281
3282
3283 MKINSTALLDIRS=
3284 if test -n "$ac_aux_dir"; then
3285 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3286 fi
3287 if test -z "$MKINSTALLDIRS"; then
3288 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3289 fi
3290
3291
3292
3293
3294
3295 # Extract the first word of "msgfmt", so it can be a program name with args.
3296 set dummy msgfmt; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_path_MSGFMT+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 case "$MSGFMT" in
3303 /*)
3304 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3305 ;;
3306 *)
3307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3308 for ac_dir in $PATH; do
3309 test -z "$ac_dir" && ac_dir=.
3310 if test -f $ac_dir/$ac_word; then
3311 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3312 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3313 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3314 break
3315 fi
3316 fi
3317 done
3318 IFS="$ac_save_ifs"
3319 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3320 ;;
3321 esac
3322 fi
3323 MSGFMT="$ac_cv_path_MSGFMT"
3324 if test "$MSGFMT" != ":"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3326 $as_echo "$MSGFMT" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3333 set dummy gmsgfmt; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_path_GMSGFMT+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 case $GMSGFMT in
3340 [\\/]* | ?:[\\/]*)
3341 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3342 ;;
3343 *)
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3354 fi
3355 done
3356 done
3357 IFS=$as_save_IFS
3358
3359 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3360 ;;
3361 esac
3362 fi
3363 GMSGFMT=$ac_cv_path_GMSGFMT
3364 if test -n "$GMSGFMT"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3366 $as_echo "$GMSGFMT" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373
3374 # Extract the first word of "xgettext", so it can be a program name with args.
3375 set dummy xgettext; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_path_XGETTEXT+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 case "$XGETTEXT" in
3382 /*)
3383 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3384 ;;
3385 *)
3386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3387 for ac_dir in $PATH; do
3388 test -z "$ac_dir" && ac_dir=.
3389 if test -f $ac_dir/$ac_word; then
3390 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3391 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3392 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3393 break
3394 fi
3395 fi
3396 done
3397 IFS="$ac_save_ifs"
3398 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3399 ;;
3400 esac
3401 fi
3402 XGETTEXT="$ac_cv_path_XGETTEXT"
3403 if test "$XGETTEXT" != ":"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3405 $as_echo "$XGETTEXT" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411 rm -f messages.po
3412
3413 # Extract the first word of "msgmerge", so it can be a program name with args.
3414 set dummy msgmerge; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_path_MSGMERGE+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 case "$MSGMERGE" in
3421 /*)
3422 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3423 ;;
3424 *)
3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3426 for ac_dir in $PATH; do
3427 test -z "$ac_dir" && ac_dir=.
3428 if test -f $ac_dir/$ac_word; then
3429 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3430 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3431 break
3432 fi
3433 fi
3434 done
3435 IFS="$ac_save_ifs"
3436 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3437 ;;
3438 esac
3439 fi
3440 MSGMERGE="$ac_cv_path_MSGMERGE"
3441 if test "$MSGMERGE" != ":"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3443 $as_echo "$MSGMERGE" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 if test "$GMSGFMT" != ":"; then
3451 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3452 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3453 : ;
3454 else
3455 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3457 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3458 GMSGFMT=":"
3459 fi
3460 fi
3461
3462 if test "$XGETTEXT" != ":"; then
3463 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3464 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3465 : ;
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3468 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3469 XGETTEXT=":"
3470 fi
3471 rm -f messages.po
3472 fi
3473
3474 ac_config_commands="$ac_config_commands default-1"
3475
3476
3477
3478 if test "X$prefix" = "XNONE"; then
3479 acl_final_prefix="$ac_default_prefix"
3480 else
3481 acl_final_prefix="$prefix"
3482 fi
3483 if test "X$exec_prefix" = "XNONE"; then
3484 acl_final_exec_prefix='${prefix}'
3485 else
3486 acl_final_exec_prefix="$exec_prefix"
3487 fi
3488 acl_save_prefix="$prefix"
3489 prefix="$acl_final_prefix"
3490 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3491 prefix="$acl_save_prefix"
3492
3493 DEPDIR="${am__leading_dot}deps"
3494
3495 ac_config_commands="$ac_config_commands depfiles"
3496
3497
3498 am_make=${MAKE-make}
3499 cat > confinc << 'END'
3500 am__doit:
3501 @echo this is the am__doit target
3502 .PHONY: am__doit
3503 END
3504 # If we don't find an include directive, just comment out the code.
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3506 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3507 am__include="#"
3508 am__quote=
3509 _am_result=none
3510 # First try GNU make style include.
3511 echo "include confinc" > confmf
3512 # Ignore all kinds of additional output from `make'.
3513 case `$am_make -s -f confmf 2> /dev/null` in #(
3514 *the\ am__doit\ target*)
3515 am__include=include
3516 am__quote=
3517 _am_result=GNU
3518 ;;
3519 esac
3520 # Now try BSD make style include.
3521 if test "$am__include" = "#"; then
3522 echo '.include "confinc"' > confmf
3523 case `$am_make -s -f confmf 2> /dev/null` in #(
3524 *the\ am__doit\ target*)
3525 am__include=.include
3526 am__quote="\""
3527 _am_result=BSD
3528 ;;
3529 esac
3530 fi
3531
3532
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3534 $as_echo "$_am_result" >&6; }
3535 rm -f confinc confmf
3536
3537 # Check whether --enable-dependency-tracking was given.
3538 if test "${enable_dependency_tracking+set}" = set; then :
3539 enableval=$enable_dependency_tracking;
3540 fi
3541
3542 if test "x$enable_dependency_tracking" != xno; then
3543 am_depcomp="$ac_aux_dir/depcomp"
3544 AMDEPBACKSLASH='\'
3545 am__nodep='_no'
3546 fi
3547 if test "x$enable_dependency_tracking" != xno; then
3548 AMDEP_TRUE=
3549 AMDEP_FALSE='#'
3550 else
3551 AMDEP_TRUE='#'
3552 AMDEP_FALSE=
3553 fi
3554
3555
3556 ac_ext=c
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if ${ac_cv_prog_CC+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599 fi
3600 if test -z "$ac_cv_prog_CC"; then
3601 ac_ct_CC=$CC
3602 # Extract the first word of "gcc", so it can be a program name with args.
3603 set dummy gcc; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 if test -n "$ac_ct_CC"; then
3610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_ac_ct_CC="gcc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3630 if test -n "$ac_ct_CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3632 $as_echo "$ac_ct_CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638 if test "x$ac_ct_CC" = x; then
3639 CC=""
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642 yes:)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645 ac_tool_warned=yes ;;
3646 esac
3647 CC=$ac_ct_CC
3648 fi
3649 else
3650 CC="$ac_cv_prog_CC"
3651 fi
3652
3653 if test -z "$CC"; then
3654 if test -n "$ac_tool_prefix"; then
3655 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3656 set dummy ${ac_tool_prefix}cc; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if ${ac_cv_prog_CC+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if test -n "$CC"; then
3663 ac_cv_prog_CC="$CC" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_CC="${ac_tool_prefix}cc"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 fi
3681 fi
3682 CC=$ac_cv_prog_CC
3683 if test -n "$CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 $as_echo "$CC" >&6; }
3686 else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 fi
3690
3691
3692 fi
3693 fi
3694 if test -z "$CC"; then
3695 # Extract the first word of "cc", so it can be a program name with args.
3696 set dummy cc; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_CC+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 ac_prog_rejected=no
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3714 ac_prog_rejected=yes
3715 continue
3716 fi
3717 ac_cv_prog_CC="cc"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 if test $ac_prog_rejected = yes; then
3726 # We found a bogon in the path, so make sure we never use it.
3727 set dummy $ac_cv_prog_CC
3728 shift
3729 if test $# != 0; then
3730 # We chose a different compiler from the bogus one.
3731 # However, it has the same basename, so the bogon will be chosen
3732 # first if we set CC to just the basename; use the full file name.
3733 shift
3734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3735 fi
3736 fi
3737 fi
3738 fi
3739 CC=$ac_cv_prog_CC
3740 if test -n "$CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 $as_echo "$CC" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3746 fi
3747
3748
3749 fi
3750 if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 for ac_prog in cl.exe
3753 do
3754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_CC+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791 test -n "$CC" && break
3792 done
3793 fi
3794 if test -z "$CC"; then
3795 ac_ct_CC=$CC
3796 for ac_prog in cl.exe
3797 do
3798 # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3802 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 if test -n "$ac_ct_CC"; then
3806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_ac_ct_CC="$ac_prog"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3826 if test -n "$ac_ct_CC"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3828 $as_echo "$ac_ct_CC" >&6; }
3829 else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3832 fi
3833
3834
3835 test -n "$ac_ct_CC" && break
3836 done
3837
3838 if test "x$ac_ct_CC" = x; then
3839 CC=""
3840 else
3841 case $cross_compiling:$ac_tool_warned in
3842 yes:)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3846 esac
3847 CC=$ac_ct_CC
3848 fi
3849 fi
3850
3851 fi
3852
3853
3854 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error $? "no acceptable C compiler found in \$PATH
3857 See \`config.log' for more details" "$LINENO" 5; }
3858
3859 # Provide some information about the compiler.
3860 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3861 set X $ac_compile
3862 ac_compiler=$2
3863 for ac_option in --version -v -V -qversion; do
3864 { { ac_try="$ac_compiler $ac_option >&5"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3872 ac_status=$?
3873 if test -s conftest.err; then
3874 sed '10a\
3875 ... rest of stderr output deleted ...
3876 10q' conftest.err >conftest.er1
3877 cat conftest.er1 >&5
3878 fi
3879 rm -f conftest.er1 conftest.err
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }
3882 done
3883
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 ac_clean_files_save=$ac_clean_files
3896 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3897 # Try to create an executable without -o first, disregard a.out.
3898 # It will help us diagnose broken compilers, and finding out an intuition
3899 # of exeext.
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3901 $as_echo_n "checking whether the C compiler works... " >&6; }
3902 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3903
3904 # The possible output files:
3905 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3906
3907 ac_rmfiles=
3908 for ac_file in $ac_files
3909 do
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3913 esac
3914 done
3915 rm -f $ac_rmfiles
3916
3917 if { { ac_try="$ac_link_default"
3918 case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link_default") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3929 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3930 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3931 # so that the user can short-circuit this test for compilers unknown to
3932 # Autoconf.
3933 for ac_file in $ac_files ''
3934 do
3935 test -f "$ac_file" || continue
3936 case $ac_file in
3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3938 ;;
3939 [ab].out )
3940 # We found the default executable, but exeext='' is most
3941 # certainly right.
3942 break;;
3943 *.* )
3944 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3945 then :; else
3946 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3947 fi
3948 # We set ac_cv_exeext here because the later test for it is not
3949 # safe: cross compilers may not add the suffix if given an `-o'
3950 # argument, so we may need to know it at that point already.
3951 # Even if this section looks crufty: it has the advantage of
3952 # actually working.
3953 break;;
3954 * )
3955 break;;
3956 esac
3957 done
3958 test "$ac_cv_exeext" = no && ac_cv_exeext=
3959
3960 else
3961 ac_file=''
3962 fi
3963 if test -z "$ac_file"; then :
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error 77 "C compiler cannot create executables
3972 See \`config.log' for more details" "$LINENO" 5; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975 $as_echo "yes" >&6; }
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3978 $as_echo_n "checking for C compiler default output file name... " >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3980 $as_echo "$ac_file" >&6; }
3981 ac_exeext=$ac_cv_exeext
3982
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3984 ac_clean_files=$ac_clean_files_save
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3986 $as_echo_n "checking for suffix of executables... " >&6; }
3987 if { { ac_try="$ac_link"
3988 case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_link") 2>&5
3995 ac_status=$?
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; then :
3998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4000 # work properly (i.e., refer to `conftest.exe'), while it won't with
4001 # `rm'.
4002 for ac_file in conftest.exe conftest conftest.*; do
4003 test -f "$ac_file" || continue
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4007 break;;
4008 * ) break;;
4009 esac
4010 done
4011 else
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4015 See \`config.log' for more details" "$LINENO" 5; }
4016 fi
4017 rm -f conftest conftest$ac_cv_exeext
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4019 $as_echo "$ac_cv_exeext" >&6; }
4020
4021 rm -f conftest.$ac_ext
4022 EXEEXT=$ac_cv_exeext
4023 ac_exeext=$EXEEXT
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026 #include <stdio.h>
4027 int
4028 main ()
4029 {
4030 FILE *f = fopen ("conftest.out", "w");
4031 return ferror (f) || fclose (f) != 0;
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 ac_clean_files="$ac_clean_files conftest.out"
4038 # Check that the compiler produces executables we can run. If not, either
4039 # the compiler is broken, or we cross compile.
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4041 $as_echo_n "checking whether we are cross compiling... " >&6; }
4042 if test "$cross_compiling" != yes; then
4043 { { ac_try="$ac_link"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 $as_echo "$ac_try_echo"; } >&5
4050 (eval "$ac_link") 2>&5
4051 ac_status=$?
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4054 if { ac_try='./conftest$ac_cv_exeext'
4055 { { case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 $as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }; }; then
4065 cross_compiling=no
4066 else
4067 if test "$cross_compiling" = maybe; then
4068 cross_compiling=yes
4069 else
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $? "cannot run C compiled programs.
4073 If you meant to cross compile, use \`--host'.
4074 See \`config.log' for more details" "$LINENO" 5; }
4075 fi
4076 fi
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4079 $as_echo "$cross_compiling" >&6; }
4080
4081 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4082 ac_clean_files=$ac_clean_files_save
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4084 $as_echo_n "checking for suffix of object files... " >&6; }
4085 if ${ac_cv_objext+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.o conftest.obj
4100 if { { ac_try="$ac_compile"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_compile") 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; then :
4111 for ac_file in conftest.o conftest.obj conftest.*; do
4112 test -f "$ac_file" || continue;
4113 case $ac_file in
4114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4115 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4116 break;;
4117 esac
4118 done
4119 else
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125 as_fn_error $? "cannot compute suffix of object files: cannot compile
4126 See \`config.log' for more details" "$LINENO" 5; }
4127 fi
4128 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4129 fi
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4131 $as_echo "$ac_cv_objext" >&6; }
4132 OBJEXT=$ac_cv_objext
4133 ac_objext=$OBJEXT
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136 if ${ac_cv_c_compiler_gnu+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main ()
4144 {
4145 #ifndef __GNUC__
4146 choke me
4147 #endif
4148
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_compiler_gnu=yes
4155 else
4156 ac_compiler_gnu=no
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164 if test $ac_compiler_gnu = yes; then
4165 GCC=yes
4166 else
4167 GCC=
4168 fi
4169 ac_test_CFLAGS=${CFLAGS+set}
4170 ac_save_CFLAGS=$CFLAGS
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4173 if ${ac_cv_prog_cc_g+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 ac_save_c_werror_flag=$ac_c_werror_flag
4177 ac_c_werror_flag=yes
4178 ac_cv_prog_cc_g=no
4179 CFLAGS="-g"
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main ()
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_prog_cc_g=yes
4193 else
4194 CFLAGS=""
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197
4198 int
4199 main ()
4200 {
4201
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207
4208 else
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4210 CFLAGS="-g"
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213
4214 int
4215 main ()
4216 {
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_prog_cc_g=yes
4224 fi
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233 $as_echo "$ac_cv_prog_cc_g" >&6; }
4234 if test "$ac_test_CFLAGS" = set; then
4235 CFLAGS=$ac_save_CFLAGS
4236 elif test $ac_cv_prog_cc_g = yes; then
4237 if test "$GCC" = yes; then
4238 CFLAGS="-g -O2"
4239 else
4240 CFLAGS="-g"
4241 fi
4242 else
4243 if test "$GCC" = yes; then
4244 CFLAGS="-O2"
4245 else
4246 CFLAGS=
4247 fi
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251 if ${ac_cv_prog_cc_c89+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 ac_cv_prog_cc_c89=no
4255 ac_save_CC=$CC
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <stdarg.h>
4259 #include <stdio.h>
4260 struct stat;
4261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4262 struct buf { int x; };
4263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4264 static char *e (p, i)
4265 char **p;
4266 int i;
4267 {
4268 return p[i];
4269 }
4270 static char *f (char * (*g) (char **, int), char **p, ...)
4271 {
4272 char *s;
4273 va_list v;
4274 va_start (v,p);
4275 s = g (p, va_arg (v,int));
4276 va_end (v);
4277 return s;
4278 }
4279
4280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4281 function prototypes and stuff, but not '\xHH' hex character constants.
4282 These don't provoke an error unfortunately, instead are silently treated
4283 as 'x'. The following induces an error, until -std is added to get
4284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4285 array size at least. It's necessary to write '\x00'==0 to get something
4286 that's true only with -std. */
4287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288
4289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4290 inside strings and character constants. */
4291 #define FOO(x) 'x'
4292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293
4294 int test (int i, double x);
4295 struct s1 {int (*f) (int a);};
4296 struct s2 {int (*f) (double a);};
4297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4298 int argc;
4299 char **argv;
4300 int
4301 main ()
4302 {
4303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310 do
4311 CC="$ac_save_CC $ac_arg"
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 ac_cv_prog_cc_c89=$ac_arg
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317 done
4318 rm -f conftest.$ac_ext
4319 CC=$ac_save_CC
4320
4321 fi
4322 # AC_CACHE_VAL
4323 case "x$ac_cv_prog_cc_c89" in
4324 x)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326 $as_echo "none needed" >&6; } ;;
4327 xno)
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329 $as_echo "unsupported" >&6; } ;;
4330 *)
4331 CC="$CC $ac_cv_prog_cc_c89"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4334 esac
4335 if test "x$ac_cv_prog_cc_c89" != xno; then :
4336
4337 fi
4338
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
4345 depcc="$CC" am_compiler_list=
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348 $as_echo_n "checking dependency style of $depcc... " >&6; }
4349 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353 # We make a subdir and do the tests there. Otherwise we can end up
4354 # making bogus files that we don't know about and never remove. For
4355 # instance it was reported that on HP-UX the gcc test will end up
4356 # making a dummy file named `D' -- because `-MD' means `put the output
4357 # in D'.
4358 rm -rf conftest.dir
4359 mkdir conftest.dir
4360 # Copy depcomp to subdir because otherwise we won't find it if we're
4361 # using a relative directory.
4362 cp "$am_depcomp" conftest.dir
4363 cd conftest.dir
4364 # We will build objects and dependencies in a subdirectory because
4365 # it helps to detect inapplicable dependency modes. For instance
4366 # both Tru64's cc and ICC support -MD to output dependencies as a
4367 # side effect of compilation, but ICC will put the dependencies in
4368 # the current directory while Tru64 will put them in the object
4369 # directory.
4370 mkdir sub
4371
4372 am_cv_CC_dependencies_compiler_type=none
4373 if test "$am_compiler_list" = ""; then
4374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4375 fi
4376 am__universal=false
4377 case " $depcc " in #(
4378 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4379 esac
4380
4381 for depmode in $am_compiler_list; do
4382 # Setup a source with many dependencies, because some compilers
4383 # like to wrap large dependency lists on column 80 (with \), and
4384 # we should not choose a depcomp mode which is confused by this.
4385 #
4386 # We need to recreate these files for each test, as the compiler may
4387 # overwrite some of them when testing with obscure command lines.
4388 # This happens at least with the AIX C compiler.
4389 : > sub/conftest.c
4390 for i in 1 2 3 4 5 6; do
4391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4392 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4393 # Solaris 8's {/usr,}/bin/sh.
4394 touch sub/conftst$i.h
4395 done
4396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4397
4398 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4399 # mode. It turns out that the SunPro C++ compiler does not properly
4400 # handle `-M -o', and we need to detect this. Also, some Intel
4401 # versions had trouble with output in subdirs
4402 am__obj=sub/conftest.${OBJEXT-o}
4403 am__minus_obj="-o $am__obj"
4404 case $depmode in
4405 gcc)
4406 # This depmode causes a compiler race in universal mode.
4407 test "$am__universal" = false || continue
4408 ;;
4409 nosideeffect)
4410 # after this tag, mechanisms are not by side-effect, so they'll
4411 # only be used when explicitly requested
4412 if test "x$enable_dependency_tracking" = xyes; then
4413 continue
4414 else
4415 break
4416 fi
4417 ;;
4418 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4419 # This compiler won't grok `-c -o', but also, the minuso test has
4420 # not run yet. These depmodes are late enough in the game, and
4421 # so weak that their functioning should not be impacted.
4422 am__obj=conftest.${OBJEXT-o}
4423 am__minus_obj=
4424 ;;
4425 none) break ;;
4426 esac
4427 if depmode=$depmode \
4428 source=sub/conftest.c object=$am__obj \
4429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4431 >/dev/null 2>conftest.err &&
4432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4436 # icc doesn't choke on unknown options, it will just issue warnings
4437 # or remarks (even with -Werror). So we grep stderr for any message
4438 # that says an option was ignored or not supported.
4439 # When given -MP, icc 7.0 and 7.1 complain thusly:
4440 # icc: Command line warning: ignoring option '-M'; no argument required
4441 # The diagnosis changed in icc 8.0:
4442 # icc: Command line remark: option '-MP' not supported
4443 if (grep 'ignoring option' conftest.err ||
4444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4445 am_cv_CC_dependencies_compiler_type=$depmode
4446 break
4447 fi
4448 fi
4449 done
4450
4451 cd ..
4452 rm -rf conftest.dir
4453 else
4454 am_cv_CC_dependencies_compiler_type=none
4455 fi
4456
4457 fi
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4459 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4460 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4461
4462 if
4463 test "x$enable_dependency_tracking" != xno \
4464 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4465 am__fastdepCC_TRUE=
4466 am__fastdepCC_FALSE='#'
4467 else
4468 am__fastdepCC_TRUE='#'
4469 am__fastdepCC_FALSE=
4470 fi
4471
4472
4473
4474 # Check whether --with-gnu-ld was given.
4475 if test "${with_gnu_ld+set}" = set; then :
4476 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4477 else
4478 with_gnu_ld=no
4479 fi
4480
4481 ac_prog=ld
4482 if test "$GCC" = yes; then
4483 # Check if gcc -print-prog-name=ld gives a path.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4485 $as_echo_n "checking for ld used by GCC... " >&6; }
4486 case $host in
4487 *-*-mingw*)
4488 # gcc leaves a trailing carriage return which upsets mingw
4489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4490 *)
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4492 esac
4493 case $ac_prog in
4494 # Accept absolute paths.
4495 [\\/]* | [A-Za-z]:[\\/]*)
4496 re_direlt='/[^/][^/]*/\.\./'
4497 # Canonicalize the path of ld
4498 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4499 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4500 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4501 done
4502 test -z "$LD" && LD="$ac_prog"
4503 ;;
4504 "")
4505 # If it fails, then pretend we aren't using GCC.
4506 ac_prog=ld
4507 ;;
4508 *)
4509 # If it is relative, then search for the first ld in PATH.
4510 with_gnu_ld=unknown
4511 ;;
4512 esac
4513 elif test "$with_gnu_ld" = yes; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4515 $as_echo_n "checking for GNU ld... " >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4518 $as_echo_n "checking for non-GNU ld... " >&6; }
4519 fi
4520 if ${acl_cv_path_LD+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -z "$LD"; then
4524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4525 for ac_dir in $PATH; do
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4528 acl_cv_path_LD="$ac_dir/$ac_prog"
4529 # Check to see if the program is GNU ld. I'd rather use --version,
4530 # but apparently some GNU ld's only accept -v.
4531 # Break only if it was the GNU/non-GNU ld that we prefer.
4532 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4533 test "$with_gnu_ld" != no && break
4534 else
4535 test "$with_gnu_ld" != yes && break
4536 fi
4537 fi
4538 done
4539 IFS="$ac_save_ifs"
4540 else
4541 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4542 fi
4543 fi
4544
4545 LD="$acl_cv_path_LD"
4546 if test -n "$LD"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4548 $as_echo "$LD" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4555 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4556 if ${acl_cv_prog_gnu_ld+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4560 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4561 acl_cv_prog_gnu_ld=yes
4562 else
4563 acl_cv_prog_gnu_ld=no
4564 fi
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4567 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4568 with_gnu_ld=$acl_cv_prog_gnu_ld
4569
4570
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4573 $as_echo_n "checking for shared library run path origin... " >&6; }
4574 if ${acl_cv_rpath+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577
4578 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4579 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4580 . ./conftest.sh
4581 rm -f ./conftest.sh
4582 acl_cv_rpath=done
4583
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4586 $as_echo "$acl_cv_rpath" >&6; }
4587 wl="$acl_cv_wl"
4588 libext="$acl_cv_libext"
4589 shlibext="$acl_cv_shlibext"
4590 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4591 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4592 hardcode_direct="$acl_cv_hardcode_direct"
4593 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4594 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
4595 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4596 # Check whether --enable-rpath was given.
4597 if test "${enable_rpath+set}" = set; then :
4598 enableval=$enable_rpath; :
4599 else
4600 enable_rpath=yes
4601 fi
4602
4603
4604
4605
4606
4607
4608
4609
4610 use_additional=yes
4611
4612 acl_save_prefix="$prefix"
4613 prefix="$acl_final_prefix"
4614 acl_save_exec_prefix="$exec_prefix"
4615 exec_prefix="$acl_final_exec_prefix"
4616
4617 eval additional_includedir=\"$includedir\"
4618 eval additional_libdir=\"$libdir\"
4619
4620 exec_prefix="$acl_save_exec_prefix"
4621 prefix="$acl_save_prefix"
4622
4623
4624 # Check whether --with-libiconv-prefix was given.
4625 if test "${with_libiconv_prefix+set}" = set; then :
4626 withval=$with_libiconv_prefix;
4627 if test "X$withval" = "Xno"; then
4628 use_additional=no
4629 else
4630 if test "X$withval" = "X"; then
4631
4632 acl_save_prefix="$prefix"
4633 prefix="$acl_final_prefix"
4634 acl_save_exec_prefix="$exec_prefix"
4635 exec_prefix="$acl_final_exec_prefix"
4636
4637 eval additional_includedir=\"$includedir\"
4638 eval additional_libdir=\"$libdir\"
4639
4640 exec_prefix="$acl_save_exec_prefix"
4641 prefix="$acl_save_prefix"
4642
4643 else
4644 additional_includedir="$withval/include"
4645 additional_libdir="$withval/lib"
4646 fi
4647 fi
4648
4649 fi
4650
4651 LIBICONV=
4652 LTLIBICONV=
4653 INCICONV=
4654 rpathdirs=
4655 ltrpathdirs=
4656 names_already_handled=
4657 names_next_round='iconv '
4658 while test -n "$names_next_round"; do
4659 names_this_round="$names_next_round"
4660 names_next_round=
4661 for name in $names_this_round; do
4662 already_handled=
4663 for n in $names_already_handled; do
4664 if test "$n" = "$name"; then
4665 already_handled=yes
4666 break
4667 fi
4668 done
4669 if test -z "$already_handled"; then
4670 names_already_handled="$names_already_handled $name"
4671 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4672 eval value=\"\$HAVE_LIB$uppername\"
4673 if test -n "$value"; then
4674 if test "$value" = yes; then
4675 eval value=\"\$LIB$uppername\"
4676 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4677 eval value=\"\$LTLIB$uppername\"
4678 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4679 else
4680 :
4681 fi
4682 else
4683 found_dir=
4684 found_la=
4685 found_so=
4686 found_a=
4687 if test $use_additional = yes; then
4688 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4689 found_dir="$additional_libdir"
4690 found_so="$additional_libdir/lib$name.$shlibext"
4691 if test -f "$additional_libdir/lib$name.la"; then
4692 found_la="$additional_libdir/lib$name.la"
4693 fi
4694 else
4695 if test -f "$additional_libdir/lib$name.$libext"; then
4696 found_dir="$additional_libdir"
4697 found_a="$additional_libdir/lib$name.$libext"
4698 if test -f "$additional_libdir/lib$name.la"; then
4699 found_la="$additional_libdir/lib$name.la"
4700 fi
4701 fi
4702 fi
4703 fi
4704 if test "X$found_dir" = "X"; then
4705 for x in $LDFLAGS $LTLIBICONV; do
4706
4707 acl_save_prefix="$prefix"
4708 prefix="$acl_final_prefix"
4709 acl_save_exec_prefix="$exec_prefix"
4710 exec_prefix="$acl_final_exec_prefix"
4711 eval x=\"$x\"
4712 exec_prefix="$acl_save_exec_prefix"
4713 prefix="$acl_save_prefix"
4714
4715 case "$x" in
4716 -L*)
4717 dir=`echo "X$x" | sed -e 's/^X-L//'`
4718 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4719 found_dir="$dir"
4720 found_so="$dir/lib$name.$shlibext"
4721 if test -f "$dir/lib$name.la"; then
4722 found_la="$dir/lib$name.la"
4723 fi
4724 else
4725 if test -f "$dir/lib$name.$libext"; then
4726 found_dir="$dir"
4727 found_a="$dir/lib$name.$libext"
4728 if test -f "$dir/lib$name.la"; then
4729 found_la="$dir/lib$name.la"
4730 fi
4731 fi
4732 fi
4733 ;;
4734 esac
4735 if test "X$found_dir" != "X"; then
4736 break
4737 fi
4738 done
4739 fi
4740 if test "X$found_dir" != "X"; then
4741 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4742 if test "X$found_so" != "X"; then
4743 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4745 else
4746 haveit=
4747 for x in $ltrpathdirs; do
4748 if test "X$x" = "X$found_dir"; then
4749 haveit=yes
4750 break
4751 fi
4752 done
4753 if test -z "$haveit"; then
4754 ltrpathdirs="$ltrpathdirs $found_dir"
4755 fi
4756 if test "$hardcode_direct" = yes; then
4757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4758 else
4759 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4761 haveit=
4762 for x in $rpathdirs; do
4763 if test "X$x" = "X$found_dir"; then
4764 haveit=yes
4765 break
4766 fi
4767 done
4768 if test -z "$haveit"; then
4769 rpathdirs="$rpathdirs $found_dir"
4770 fi
4771 else
4772 haveit=
4773 for x in $LDFLAGS $LIBICONV; do
4774
4775 acl_save_prefix="$prefix"
4776 prefix="$acl_final_prefix"
4777 acl_save_exec_prefix="$exec_prefix"
4778 exec_prefix="$acl_final_exec_prefix"
4779 eval x=\"$x\"
4780 exec_prefix="$acl_save_exec_prefix"
4781 prefix="$acl_save_prefix"
4782
4783 if test "X$x" = "X-L$found_dir"; then
4784 haveit=yes
4785 break
4786 fi
4787 done
4788 if test -z "$haveit"; then
4789 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4790 fi
4791 if test "$hardcode_minus_L" != no; then
4792 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4793 else
4794 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4795 fi
4796 fi
4797 fi
4798 fi
4799 else
4800 if test "X$found_a" != "X"; then
4801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4802 else
4803 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4804 fi
4805 fi
4806 additional_includedir=
4807 case "$found_dir" in
4808 */lib | */lib/)
4809 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4810 additional_includedir="$basedir/include"
4811 ;;
4812 esac
4813 if test "X$additional_includedir" != "X"; then
4814 if test "X$additional_includedir" != "X/usr/include"; then
4815 haveit=
4816 if test "X$additional_includedir" = "X/usr/local/include"; then
4817 if test -n "$GCC"; then
4818 case $host_os in
4819 linux*) haveit=yes;;
4820 esac
4821 fi
4822 fi
4823 if test -z "$haveit"; then
4824 for x in $CPPFLAGS $INCICONV; do
4825
4826 acl_save_prefix="$prefix"
4827 prefix="$acl_final_prefix"
4828 acl_save_exec_prefix="$exec_prefix"
4829 exec_prefix="$acl_final_exec_prefix"
4830 eval x=\"$x\"
4831 exec_prefix="$acl_save_exec_prefix"
4832 prefix="$acl_save_prefix"
4833
4834 if test "X$x" = "X-I$additional_includedir"; then
4835 haveit=yes
4836 break
4837 fi
4838 done
4839 if test -z "$haveit"; then
4840 if test -d "$additional_includedir"; then
4841 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4842 fi
4843 fi
4844 fi
4845 fi
4846 fi
4847 if test -n "$found_la"; then
4848 save_libdir="$libdir"
4849 case "$found_la" in
4850 */* | *\\*) . "$found_la" ;;
4851 *) . "./$found_la" ;;
4852 esac
4853 libdir="$save_libdir"
4854 for dep in $dependency_libs; do
4855 case "$dep" in
4856 -L*)
4857 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4858 if test "X$additional_libdir" != "X/usr/lib"; then
4859 haveit=
4860 if test "X$additional_libdir" = "X/usr/local/lib"; then
4861 if test -n "$GCC"; then
4862 case $host_os in
4863 linux*) haveit=yes;;
4864 esac
4865 fi
4866 fi
4867 if test -z "$haveit"; then
4868 haveit=
4869 for x in $LDFLAGS $LIBICONV; do
4870
4871 acl_save_prefix="$prefix"
4872 prefix="$acl_final_prefix"
4873 acl_save_exec_prefix="$exec_prefix"
4874 exec_prefix="$acl_final_exec_prefix"
4875 eval x=\"$x\"
4876 exec_prefix="$acl_save_exec_prefix"
4877 prefix="$acl_save_prefix"
4878
4879 if test "X$x" = "X-L$additional_libdir"; then
4880 haveit=yes
4881 break
4882 fi
4883 done
4884 if test -z "$haveit"; then
4885 if test -d "$additional_libdir"; then
4886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4887 fi
4888 fi
4889 haveit=
4890 for x in $LDFLAGS $LTLIBICONV; do
4891
4892 acl_save_prefix="$prefix"
4893 prefix="$acl_final_prefix"
4894 acl_save_exec_prefix="$exec_prefix"
4895 exec_prefix="$acl_final_exec_prefix"
4896 eval x=\"$x\"
4897 exec_prefix="$acl_save_exec_prefix"
4898 prefix="$acl_save_prefix"
4899
4900 if test "X$x" = "X-L$additional_libdir"; then
4901 haveit=yes
4902 break
4903 fi
4904 done
4905 if test -z "$haveit"; then
4906 if test -d "$additional_libdir"; then
4907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4908 fi
4909 fi
4910 fi
4911 fi
4912 ;;
4913 -R*)
4914 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4915 if test "$enable_rpath" != no; then
4916 haveit=
4917 for x in $rpathdirs; do
4918 if test "X$x" = "X$dir"; then
4919 haveit=yes
4920 break
4921 fi
4922 done
4923 if test -z "$haveit"; then
4924 rpathdirs="$rpathdirs $dir"
4925 fi
4926 haveit=
4927 for x in $ltrpathdirs; do
4928 if test "X$x" = "X$dir"; then
4929 haveit=yes
4930 break
4931 fi
4932 done
4933 if test -z "$haveit"; then
4934 ltrpathdirs="$ltrpathdirs $dir"
4935 fi
4936 fi
4937 ;;
4938 -l*)
4939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4940 ;;
4941 *.la)
4942 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4943 ;;
4944 *)
4945 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4946 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4947 ;;
4948 esac
4949 done
4950 fi
4951 else
4952 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4953 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4954 fi
4955 fi
4956 fi
4957 done
4958 done
4959 if test "X$rpathdirs" != "X"; then
4960 if test -n "$hardcode_libdir_separator"; then
4961 alldirs=
4962 for found_dir in $rpathdirs; do
4963 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4964 done
4965 acl_save_libdir="$libdir"
4966 libdir="$alldirs"
4967 eval flag=\"$hardcode_libdir_flag_spec\"
4968 libdir="$acl_save_libdir"
4969 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4970 else
4971 for found_dir in $rpathdirs; do
4972 acl_save_libdir="$libdir"
4973 libdir="$found_dir"
4974 eval flag=\"$hardcode_libdir_flag_spec\"
4975 libdir="$acl_save_libdir"
4976 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4977 done
4978 fi
4979 fi
4980 if test "X$ltrpathdirs" != "X"; then
4981 for found_dir in $ltrpathdirs; do
4982 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4983 done
4984 fi
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5004 $as_echo_n "checking whether NLS is requested... " >&6; }
5005 # Check whether --enable-nls was given.
5006 if test "${enable_nls+set}" = set; then :
5007 enableval=$enable_nls; USE_NLS=$enableval
5008 else
5009 USE_NLS=yes
5010 fi
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5013 $as_echo "$USE_NLS" >&6; }
5014
5015
5016
5017 LIBINTL=
5018 LTLIBINTL=
5019 POSUB=
5020
5021 if test "$USE_NLS" = "yes"; then
5022 gt_use_preinstalled_gnugettext=no
5023
5024
5025
5026
5027
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5030 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5031 if ${gt_cv_func_gnugettext1_libc+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 #include <libintl.h>
5037 extern int _nl_msg_cat_cntr;
5038 extern int *_nl_domain_bindings;
5039 int
5040 main ()
5041 {
5042 bindtextdomain ("", "");
5043 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_c_try_link "$LINENO"; then :
5049 gt_cv_func_gnugettext1_libc=yes
5050 else
5051 gt_cv_func_gnugettext1_libc=no
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5057 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5058
5059 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5060
5061
5062
5063
5064
5065 am_save_CPPFLAGS="$CPPFLAGS"
5066
5067 for element in $INCICONV; do
5068 haveit=
5069 for x in $CPPFLAGS; do
5070
5071 acl_save_prefix="$prefix"
5072 prefix="$acl_final_prefix"
5073 acl_save_exec_prefix="$exec_prefix"
5074 exec_prefix="$acl_final_exec_prefix"
5075 eval x=\"$x\"
5076 exec_prefix="$acl_save_exec_prefix"
5077 prefix="$acl_save_prefix"
5078
5079 if test "X$x" = "X$element"; then
5080 haveit=yes
5081 break
5082 fi
5083 done
5084 if test -z "$haveit"; then
5085 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5086 fi
5087 done
5088
5089
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5091 $as_echo_n "checking for iconv... " >&6; }
5092 if ${am_cv_func_iconv+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095
5096 am_cv_func_iconv="no, consider installing GNU libiconv"
5097 am_cv_lib_iconv=no
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100 #include <stdlib.h>
5101 #include <iconv.h>
5102 int
5103 main ()
5104 {
5105 iconv_t cd = iconv_open("","");
5106 iconv(cd,NULL,NULL,NULL,NULL);
5107 iconv_close(cd);
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_link "$LINENO"; then :
5113 am_cv_func_iconv=yes
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5117 if test "$am_cv_func_iconv" != yes; then
5118 am_save_LIBS="$LIBS"
5119 LIBS="$LIBS $LIBICONV"
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdlib.h>
5123 #include <iconv.h>
5124 int
5125 main ()
5126 {
5127 iconv_t cd = iconv_open("","");
5128 iconv(cd,NULL,NULL,NULL,NULL);
5129 iconv_close(cd);
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_link "$LINENO"; then :
5135 am_cv_lib_iconv=yes
5136 am_cv_func_iconv=yes
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 LIBS="$am_save_LIBS"
5141 fi
5142
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5145 $as_echo "$am_cv_func_iconv" >&6; }
5146 if test "$am_cv_func_iconv" = yes; then
5147
5148 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5149
5150 fi
5151 if test "$am_cv_lib_iconv" = yes; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5153 $as_echo_n "checking how to link with libiconv... " >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5155 $as_echo "$LIBICONV" >&6; }
5156 else
5157 CPPFLAGS="$am_save_CPPFLAGS"
5158 LIBICONV=
5159 LTLIBICONV=
5160 fi
5161
5162
5163
5164
5165
5166
5167 use_additional=yes
5168
5169 acl_save_prefix="$prefix"
5170 prefix="$acl_final_prefix"
5171 acl_save_exec_prefix="$exec_prefix"
5172 exec_prefix="$acl_final_exec_prefix"
5173
5174 eval additional_includedir=\"$includedir\"
5175 eval additional_libdir=\"$libdir\"
5176
5177 exec_prefix="$acl_save_exec_prefix"
5178 prefix="$acl_save_prefix"
5179
5180
5181 # Check whether --with-libintl-prefix was given.
5182 if test "${with_libintl_prefix+set}" = set; then :
5183 withval=$with_libintl_prefix;
5184 if test "X$withval" = "Xno"; then
5185 use_additional=no
5186 else
5187 if test "X$withval" = "X"; then
5188
5189 acl_save_prefix="$prefix"
5190 prefix="$acl_final_prefix"
5191 acl_save_exec_prefix="$exec_prefix"
5192 exec_prefix="$acl_final_exec_prefix"
5193
5194 eval additional_includedir=\"$includedir\"
5195 eval additional_libdir=\"$libdir\"
5196
5197 exec_prefix="$acl_save_exec_prefix"
5198 prefix="$acl_save_prefix"
5199
5200 else
5201 additional_includedir="$withval/include"
5202 additional_libdir="$withval/lib"
5203 fi
5204 fi
5205
5206 fi
5207
5208 LIBINTL=
5209 LTLIBINTL=
5210 INCINTL=
5211 rpathdirs=
5212 ltrpathdirs=
5213 names_already_handled=
5214 names_next_round='intl '
5215 while test -n "$names_next_round"; do
5216 names_this_round="$names_next_round"
5217 names_next_round=
5218 for name in $names_this_round; do
5219 already_handled=
5220 for n in $names_already_handled; do
5221 if test "$n" = "$name"; then
5222 already_handled=yes
5223 break
5224 fi
5225 done
5226 if test -z "$already_handled"; then
5227 names_already_handled="$names_already_handled $name"
5228 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5229 eval value=\"\$HAVE_LIB$uppername\"
5230 if test -n "$value"; then
5231 if test "$value" = yes; then
5232 eval value=\"\$LIB$uppername\"
5233 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5234 eval value=\"\$LTLIB$uppername\"
5235 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5236 else
5237 :
5238 fi
5239 else
5240 found_dir=
5241 found_la=
5242 found_so=
5243 found_a=
5244 if test $use_additional = yes; then
5245 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5246 found_dir="$additional_libdir"
5247 found_so="$additional_libdir/lib$name.$shlibext"
5248 if test -f "$additional_libdir/lib$name.la"; then
5249 found_la="$additional_libdir/lib$name.la"
5250 fi
5251 else
5252 if test -f "$additional_libdir/lib$name.$libext"; then
5253 found_dir="$additional_libdir"
5254 found_a="$additional_libdir/lib$name.$libext"
5255 if test -f "$additional_libdir/lib$name.la"; then
5256 found_la="$additional_libdir/lib$name.la"
5257 fi
5258 fi
5259 fi
5260 fi
5261 if test "X$found_dir" = "X"; then
5262 for x in $LDFLAGS $LTLIBINTL; do
5263
5264 acl_save_prefix="$prefix"
5265 prefix="$acl_final_prefix"
5266 acl_save_exec_prefix="$exec_prefix"
5267 exec_prefix="$acl_final_exec_prefix"
5268 eval x=\"$x\"
5269 exec_prefix="$acl_save_exec_prefix"
5270 prefix="$acl_save_prefix"
5271
5272 case "$x" in
5273 -L*)
5274 dir=`echo "X$x" | sed -e 's/^X-L//'`
5275 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5276 found_dir="$dir"
5277 found_so="$dir/lib$name.$shlibext"
5278 if test -f "$dir/lib$name.la"; then
5279 found_la="$dir/lib$name.la"
5280 fi
5281 else
5282 if test -f "$dir/lib$name.$libext"; then
5283 found_dir="$dir"
5284 found_a="$dir/lib$name.$libext"
5285 if test -f "$dir/lib$name.la"; then
5286 found_la="$dir/lib$name.la"
5287 fi
5288 fi
5289 fi
5290 ;;
5291 esac
5292 if test "X$found_dir" != "X"; then
5293 break
5294 fi
5295 done
5296 fi
5297 if test "X$found_dir" != "X"; then
5298 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5299 if test "X$found_so" != "X"; then
5300 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5301 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5302 else
5303 haveit=
5304 for x in $ltrpathdirs; do
5305 if test "X$x" = "X$found_dir"; then
5306 haveit=yes
5307 break
5308 fi
5309 done
5310 if test -z "$haveit"; then
5311 ltrpathdirs="$ltrpathdirs $found_dir"
5312 fi
5313 if test "$hardcode_direct" = yes; then
5314 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5315 else
5316 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5318 haveit=
5319 for x in $rpathdirs; do
5320 if test "X$x" = "X$found_dir"; then
5321 haveit=yes
5322 break
5323 fi
5324 done
5325 if test -z "$haveit"; then
5326 rpathdirs="$rpathdirs $found_dir"
5327 fi
5328 else
5329 haveit=
5330 for x in $LDFLAGS $LIBINTL; do
5331
5332 acl_save_prefix="$prefix"
5333 prefix="$acl_final_prefix"
5334 acl_save_exec_prefix="$exec_prefix"
5335 exec_prefix="$acl_final_exec_prefix"
5336 eval x=\"$x\"
5337 exec_prefix="$acl_save_exec_prefix"
5338 prefix="$acl_save_prefix"
5339
5340 if test "X$x" = "X-L$found_dir"; then
5341 haveit=yes
5342 break
5343 fi
5344 done
5345 if test -z "$haveit"; then
5346 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5347 fi
5348 if test "$hardcode_minus_L" != no; then
5349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5350 else
5351 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5352 fi
5353 fi
5354 fi
5355 fi
5356 else
5357 if test "X$found_a" != "X"; then
5358 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5359 else
5360 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5361 fi
5362 fi
5363 additional_includedir=
5364 case "$found_dir" in
5365 */lib | */lib/)
5366 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5367 additional_includedir="$basedir/include"
5368 ;;
5369 esac
5370 if test "X$additional_includedir" != "X"; then
5371 if test "X$additional_includedir" != "X/usr/include"; then
5372 haveit=
5373 if test "X$additional_includedir" = "X/usr/local/include"; then
5374 if test -n "$GCC"; then
5375 case $host_os in
5376 linux*) haveit=yes;;
5377 esac
5378 fi
5379 fi
5380 if test -z "$haveit"; then
5381 for x in $CPPFLAGS $INCINTL; do
5382
5383 acl_save_prefix="$prefix"
5384 prefix="$acl_final_prefix"
5385 acl_save_exec_prefix="$exec_prefix"
5386 exec_prefix="$acl_final_exec_prefix"
5387 eval x=\"$x\"
5388 exec_prefix="$acl_save_exec_prefix"
5389 prefix="$acl_save_prefix"
5390
5391 if test "X$x" = "X-I$additional_includedir"; then
5392 haveit=yes
5393 break
5394 fi
5395 done
5396 if test -z "$haveit"; then
5397 if test -d "$additional_includedir"; then
5398 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5399 fi
5400 fi
5401 fi
5402 fi
5403 fi
5404 if test -n "$found_la"; then
5405 save_libdir="$libdir"
5406 case "$found_la" in
5407 */* | *\\*) . "$found_la" ;;
5408 *) . "./$found_la" ;;
5409 esac
5410 libdir="$save_libdir"
5411 for dep in $dependency_libs; do
5412 case "$dep" in
5413 -L*)
5414 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5415 if test "X$additional_libdir" != "X/usr/lib"; then
5416 haveit=
5417 if test "X$additional_libdir" = "X/usr/local/lib"; then
5418 if test -n "$GCC"; then
5419 case $host_os in
5420 linux*) haveit=yes;;
5421 esac
5422 fi
5423 fi
5424 if test -z "$haveit"; then
5425 haveit=
5426 for x in $LDFLAGS $LIBINTL; do
5427
5428 acl_save_prefix="$prefix"
5429 prefix="$acl_final_prefix"
5430 acl_save_exec_prefix="$exec_prefix"
5431 exec_prefix="$acl_final_exec_prefix"
5432 eval x=\"$x\"
5433 exec_prefix="$acl_save_exec_prefix"
5434 prefix="$acl_save_prefix"
5435
5436 if test "X$x" = "X-L$additional_libdir"; then
5437 haveit=yes
5438 break
5439 fi
5440 done
5441 if test -z "$haveit"; then
5442 if test -d "$additional_libdir"; then
5443 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5444 fi
5445 fi
5446 haveit=
5447 for x in $LDFLAGS $LTLIBINTL; do
5448
5449 acl_save_prefix="$prefix"
5450 prefix="$acl_final_prefix"
5451 acl_save_exec_prefix="$exec_prefix"
5452 exec_prefix="$acl_final_exec_prefix"
5453 eval x=\"$x\"
5454 exec_prefix="$acl_save_exec_prefix"
5455 prefix="$acl_save_prefix"
5456
5457 if test "X$x" = "X-L$additional_libdir"; then
5458 haveit=yes
5459 break
5460 fi
5461 done
5462 if test -z "$haveit"; then
5463 if test -d "$additional_libdir"; then
5464 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5465 fi
5466 fi
5467 fi
5468 fi
5469 ;;
5470 -R*)
5471 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5472 if test "$enable_rpath" != no; then
5473 haveit=
5474 for x in $rpathdirs; do
5475 if test "X$x" = "X$dir"; then
5476 haveit=yes
5477 break
5478 fi
5479 done
5480 if test -z "$haveit"; then
5481 rpathdirs="$rpathdirs $dir"
5482 fi
5483 haveit=
5484 for x in $ltrpathdirs; do
5485 if test "X$x" = "X$dir"; then
5486 haveit=yes
5487 break
5488 fi
5489 done
5490 if test -z "$haveit"; then
5491 ltrpathdirs="$ltrpathdirs $dir"
5492 fi
5493 fi
5494 ;;
5495 -l*)
5496 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5497 ;;
5498 *.la)
5499 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5500 ;;
5501 *)
5502 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5503 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5504 ;;
5505 esac
5506 done
5507 fi
5508 else
5509 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5511 fi
5512 fi
5513 fi
5514 done
5515 done
5516 if test "X$rpathdirs" != "X"; then
5517 if test -n "$hardcode_libdir_separator"; then
5518 alldirs=
5519 for found_dir in $rpathdirs; do
5520 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5521 done
5522 acl_save_libdir="$libdir"
5523 libdir="$alldirs"
5524 eval flag=\"$hardcode_libdir_flag_spec\"
5525 libdir="$acl_save_libdir"
5526 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5527 else
5528 for found_dir in $rpathdirs; do
5529 acl_save_libdir="$libdir"
5530 libdir="$found_dir"
5531 eval flag=\"$hardcode_libdir_flag_spec\"
5532 libdir="$acl_save_libdir"
5533 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5534 done
5535 fi
5536 fi
5537 if test "X$ltrpathdirs" != "X"; then
5538 for found_dir in $ltrpathdirs; do
5539 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5540 done
5541 fi
5542
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5544 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5545 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 gt_save_CPPFLAGS="$CPPFLAGS"
5549 CPPFLAGS="$CPPFLAGS $INCINTL"
5550 gt_save_LIBS="$LIBS"
5551 LIBS="$LIBS $LIBINTL"
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <libintl.h>
5555 extern int _nl_msg_cat_cntr;
5556 extern
5557 #ifdef __cplusplus
5558 "C"
5559 #endif
5560 const char *_nl_expand_alias ();
5561 int
5562 main ()
5563 {
5564 bindtextdomain ("", "");
5565 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 if ac_fn_c_try_link "$LINENO"; then :
5571 gt_cv_func_gnugettext1_libintl=yes
5572 else
5573 gt_cv_func_gnugettext1_libintl=no
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext
5577 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5578 LIBS="$LIBS $LIBICONV"
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #include <libintl.h>
5582 extern int _nl_msg_cat_cntr;
5583 extern
5584 #ifdef __cplusplus
5585 "C"
5586 #endif
5587 const char *_nl_expand_alias ();
5588 int
5589 main ()
5590 {
5591 bindtextdomain ("", "");
5592 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 if ac_fn_c_try_link "$LINENO"; then :
5598 LIBINTL="$LIBINTL $LIBICONV"
5599 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5600 gt_cv_func_gnugettext1_libintl=yes
5601
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 fi
5606 CPPFLAGS="$gt_save_CPPFLAGS"
5607 LIBS="$gt_save_LIBS"
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5610 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5611 fi
5612
5613 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5614 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5615 && test "$PACKAGE" != gettext; }; then
5616 gt_use_preinstalled_gnugettext=yes
5617 else
5618 LIBINTL=
5619 LTLIBINTL=
5620 INCINTL=
5621 fi
5622
5623
5624
5625 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5626 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5627
5628 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5629
5630 else
5631 USE_NLS=no
5632 fi
5633 fi
5634
5635 if test "$USE_NLS" = "yes"; then
5636
5637 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5638 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5640 $as_echo_n "checking how to link with libintl... " >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5642 $as_echo "$LIBINTL" >&6; }
5643
5644 for element in $INCINTL; do
5645 haveit=
5646 for x in $CPPFLAGS; do
5647
5648 acl_save_prefix="$prefix"
5649 prefix="$acl_final_prefix"
5650 acl_save_exec_prefix="$exec_prefix"
5651 exec_prefix="$acl_final_exec_prefix"
5652 eval x=\"$x\"
5653 exec_prefix="$acl_save_exec_prefix"
5654 prefix="$acl_save_prefix"
5655
5656 if test "X$x" = "X$element"; then
5657 haveit=yes
5658 break
5659 fi
5660 done
5661 if test -z "$haveit"; then
5662 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5663 fi
5664 done
5665
5666 fi
5667
5668
5669 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5670
5671
5672 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5673
5674 fi
5675
5676 POSUB=po
5677 fi
5678
5679
5680
5681 INTLLIBS="$LIBINTL"
5682
5683
5684
5685
5686
5687
5688
5689
5690 # Enable GNU extensions.
5691 # Define this here, not in acconfig's @TOP@ section, since definitions
5692 # in the latter don't make it into the configure-time tests.
5693
5694 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5695
5696
5697 # do NOT define POSIX_SOURCE, sicne this clashes with many BSDs
5698
5699 ALL_LINGUAS=""
5700
5701 ac_ext=c
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5707 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5708 # On Suns, sometimes $CPP names a directory.
5709 if test -n "$CPP" && test -d "$CPP"; then
5710 CPP=
5711 fi
5712 if test -z "$CPP"; then
5713 if ${ac_cv_prog_CPP+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 # Double quotes because CPP needs to be expanded
5717 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5718 do
5719 ac_preproc_ok=false
5720 for ac_c_preproc_warn_flag in '' yes
5721 do
5722 # Use a header file that comes with gcc, so configuring glibc
5723 # with a fresh cross-compiler works.
5724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5725 # <limits.h> exists even on freestanding compilers.
5726 # On the NeXT, cc -E runs the code through the compiler's parser,
5727 # not just through cpp. "Syntax error" is here to catch this case.
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 #ifdef __STDC__
5731 # include <limits.h>
5732 #else
5733 # include <assert.h>
5734 #endif
5735 Syntax error
5736 _ACEOF
5737 if ac_fn_c_try_cpp "$LINENO"; then :
5738
5739 else
5740 # Broken: fails on valid input.
5741 continue
5742 fi
5743 rm -f conftest.err conftest.i conftest.$ac_ext
5744
5745 # OK, works on sane cases. Now check whether nonexistent headers
5746 # can be detected and how.
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #include <ac_nonexistent.h>
5750 _ACEOF
5751 if ac_fn_c_try_cpp "$LINENO"; then :
5752 # Broken: success on invalid input.
5753 continue
5754 else
5755 # Passes both tests.
5756 ac_preproc_ok=:
5757 break
5758 fi
5759 rm -f conftest.err conftest.i conftest.$ac_ext
5760
5761 done
5762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5763 rm -f conftest.i conftest.err conftest.$ac_ext
5764 if $ac_preproc_ok; then :
5765 break
5766 fi
5767
5768 done
5769 ac_cv_prog_CPP=$CPP
5770
5771 fi
5772 CPP=$ac_cv_prog_CPP
5773 else
5774 ac_cv_prog_CPP=$CPP
5775 fi
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5777 $as_echo "$CPP" >&6; }
5778 ac_preproc_ok=false
5779 for ac_c_preproc_warn_flag in '' yes
5780 do
5781 # Use a header file that comes with gcc, so configuring glibc
5782 # with a fresh cross-compiler works.
5783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5784 # <limits.h> exists even on freestanding compilers.
5785 # On the NeXT, cc -E runs the code through the compiler's parser,
5786 # not just through cpp. "Syntax error" is here to catch this case.
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 #ifdef __STDC__
5790 # include <limits.h>
5791 #else
5792 # include <assert.h>
5793 #endif
5794 Syntax error
5795 _ACEOF
5796 if ac_fn_c_try_cpp "$LINENO"; then :
5797
5798 else
5799 # Broken: fails on valid input.
5800 continue
5801 fi
5802 rm -f conftest.err conftest.i conftest.$ac_ext
5803
5804 # OK, works on sane cases. Now check whether nonexistent headers
5805 # can be detected and how.
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 #include <ac_nonexistent.h>
5809 _ACEOF
5810 if ac_fn_c_try_cpp "$LINENO"; then :
5811 # Broken: success on invalid input.
5812 continue
5813 else
5814 # Passes both tests.
5815 ac_preproc_ok=:
5816 break
5817 fi
5818 rm -f conftest.err conftest.i conftest.$ac_ext
5819
5820 done
5821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5822 rm -f conftest.i conftest.err conftest.$ac_ext
5823 if $ac_preproc_ok; then :
5824
5825 else
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5829 See \`config.log' for more details" "$LINENO" 5; }
5830 fi
5831
5832 ac_ext=c
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837
5838 ac_ext=cpp
5839 ac_cpp='$CXXCPP $CPPFLAGS'
5840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5843 if test -z "$CXX"; then
5844 if test -n "$CCC"; then
5845 CXX=$CCC
5846 else
5847 if test -n "$ac_tool_prefix"; then
5848 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5849 do
5850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if ${ac_cv_prog_CXX+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$CXX"; then
5858 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 CXX=$ac_cv_prog_CXX
5878 if test -n "$CXX"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5880 $as_echo "$CXX" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885
5886
5887 test -n "$CXX" && break
5888 done
5889 fi
5890 if test -z "$CXX"; then
5891 ac_ct_CXX=$CXX
5892 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5893 do
5894 # Extract the first word of "$ac_prog", so it can be a program name with args.
5895 set dummy $ac_prog; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$ac_ct_CXX"; then
5902 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_ac_ct_CXX="$ac_prog"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5922 if test -n "$ac_ct_CXX"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5924 $as_echo "$ac_ct_CXX" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930
5931 test -n "$ac_ct_CXX" && break
5932 done
5933
5934 if test "x$ac_ct_CXX" = x; then
5935 CXX="g++"
5936 else
5937 case $cross_compiling:$ac_tool_warned in
5938 yes:)
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5941 ac_tool_warned=yes ;;
5942 esac
5943 CXX=$ac_ct_CXX
5944 fi
5945 fi
5946
5947 fi
5948 fi
5949 # Provide some information about the compiler.
5950 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5951 set X $ac_compile
5952 ac_compiler=$2
5953 for ac_option in --version -v -V -qversion; do
5954 { { ac_try="$ac_compiler $ac_option >&5"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5960 $as_echo "$ac_try_echo"; } >&5
5961 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5962 ac_status=$?
5963 if test -s conftest.err; then
5964 sed '10a\
5965 ... rest of stderr output deleted ...
5966 10q' conftest.err >conftest.er1
5967 cat conftest.er1 >&5
5968 fi
5969 rm -f conftest.er1 conftest.err
5970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971 test $ac_status = 0; }
5972 done
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5975 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5976 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981
5982 int
5983 main ()
5984 {
5985 #ifndef __GNUC__
5986 choke me
5987 #endif
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_cxx_try_compile "$LINENO"; then :
5994 ac_compiler_gnu=yes
5995 else
5996 ac_compiler_gnu=no
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6000
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6003 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6004 if test $ac_compiler_gnu = yes; then
6005 GXX=yes
6006 else
6007 GXX=
6008 fi
6009 ac_test_CXXFLAGS=${CXXFLAGS+set}
6010 ac_save_CXXFLAGS=$CXXFLAGS
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6012 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6013 if ${ac_cv_prog_cxx_g+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6017 ac_cxx_werror_flag=yes
6018 ac_cv_prog_cxx_g=no
6019 CXXFLAGS="-g"
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022
6023 int
6024 main ()
6025 {
6026
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_cxx_try_compile "$LINENO"; then :
6032 ac_cv_prog_cxx_g=yes
6033 else
6034 CXXFLAGS=""
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037
6038 int
6039 main ()
6040 {
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_cxx_try_compile "$LINENO"; then :
6047
6048 else
6049 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6050 CXXFLAGS="-g"
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053
6054 int
6055 main ()
6056 {
6057
6058 ;
6059 return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_cxx_try_compile "$LINENO"; then :
6063 ac_cv_prog_cxx_g=yes
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6071 fi
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6073 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6074 if test "$ac_test_CXXFLAGS" = set; then
6075 CXXFLAGS=$ac_save_CXXFLAGS
6076 elif test $ac_cv_prog_cxx_g = yes; then
6077 if test "$GXX" = yes; then
6078 CXXFLAGS="-g -O2"
6079 else
6080 CXXFLAGS="-g"
6081 fi
6082 else
6083 if test "$GXX" = yes; then
6084 CXXFLAGS="-O2"
6085 else
6086 CXXFLAGS=
6087 fi
6088 fi
6089 ac_ext=c
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094
6095 depcc="$CXX" am_compiler_list=
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6098 $as_echo_n "checking dependency style of $depcc... " >&6; }
6099 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6103 # We make a subdir and do the tests there. Otherwise we can end up
6104 # making bogus files that we don't know about and never remove. For
6105 # instance it was reported that on HP-UX the gcc test will end up
6106 # making a dummy file named `D' -- because `-MD' means `put the output
6107 # in D'.
6108 rm -rf conftest.dir
6109 mkdir conftest.dir
6110 # Copy depcomp to subdir because otherwise we won't find it if we're
6111 # using a relative directory.
6112 cp "$am_depcomp" conftest.dir
6113 cd conftest.dir
6114 # We will build objects and dependencies in a subdirectory because
6115 # it helps to detect inapplicable dependency modes. For instance
6116 # both Tru64's cc and ICC support -MD to output dependencies as a
6117 # side effect of compilation, but ICC will put the dependencies in
6118 # the current directory while Tru64 will put them in the object
6119 # directory.
6120 mkdir sub
6121
6122 am_cv_CXX_dependencies_compiler_type=none
6123 if test "$am_compiler_list" = ""; then
6124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6125 fi
6126 am__universal=false
6127 case " $depcc " in #(
6128 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6129 esac
6130
6131 for depmode in $am_compiler_list; do
6132 # Setup a source with many dependencies, because some compilers
6133 # like to wrap large dependency lists on column 80 (with \), and
6134 # we should not choose a depcomp mode which is confused by this.
6135 #
6136 # We need to recreate these files for each test, as the compiler may
6137 # overwrite some of them when testing with obscure command lines.
6138 # This happens at least with the AIX C compiler.
6139 : > sub/conftest.c
6140 for i in 1 2 3 4 5 6; do
6141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6143 # Solaris 8's {/usr,}/bin/sh.
6144 touch sub/conftst$i.h
6145 done
6146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6147
6148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6149 # mode. It turns out that the SunPro C++ compiler does not properly
6150 # handle `-M -o', and we need to detect this. Also, some Intel
6151 # versions had trouble with output in subdirs
6152 am__obj=sub/conftest.${OBJEXT-o}
6153 am__minus_obj="-o $am__obj"
6154 case $depmode in
6155 gcc)
6156 # This depmode causes a compiler race in universal mode.
6157 test "$am__universal" = false || continue
6158 ;;
6159 nosideeffect)
6160 # after this tag, mechanisms are not by side-effect, so they'll
6161 # only be used when explicitly requested
6162 if test "x$enable_dependency_tracking" = xyes; then
6163 continue
6164 else
6165 break
6166 fi
6167 ;;
6168 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6169 # This compiler won't grok `-c -o', but also, the minuso test has
6170 # not run yet. These depmodes are late enough in the game, and
6171 # so weak that their functioning should not be impacted.
6172 am__obj=conftest.${OBJEXT-o}
6173 am__minus_obj=
6174 ;;
6175 none) break ;;
6176 esac
6177 if depmode=$depmode \
6178 source=sub/conftest.c object=$am__obj \
6179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6181 >/dev/null 2>conftest.err &&
6182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6186 # icc doesn't choke on unknown options, it will just issue warnings
6187 # or remarks (even with -Werror). So we grep stderr for any message
6188 # that says an option was ignored or not supported.
6189 # When given -MP, icc 7.0 and 7.1 complain thusly:
6190 # icc: Command line warning: ignoring option '-M'; no argument required
6191 # The diagnosis changed in icc 8.0:
6192 # icc: Command line remark: option '-MP' not supported
6193 if (grep 'ignoring option' conftest.err ||
6194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6195 am_cv_CXX_dependencies_compiler_type=$depmode
6196 break
6197 fi
6198 fi
6199 done
6200
6201 cd ..
6202 rm -rf conftest.dir
6203 else
6204 am_cv_CXX_dependencies_compiler_type=none
6205 fi
6206
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6209 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6210 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6211
6212 if
6213 test "x$enable_dependency_tracking" != xno \
6214 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6215 am__fastdepCXX_TRUE=
6216 am__fastdepCXX_FALSE='#'
6217 else
6218 am__fastdepCXX_TRUE='#'
6219 am__fastdepCXX_FALSE=
6220 fi
6221
6222
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6226 if ${ac_cv_path_GREP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -z "$GREP"; then
6230 ac_path_GREP_found=false
6231 # Loop through the user's path and test for each of PROGNAME-LIST
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_prog in grep ggrep; do
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6240 as_fn_executable_p "$ac_path_GREP" || continue
6241 # Check for GNU ac_path_GREP and select it if it is found.
6242 # Check for GNU $ac_path_GREP
6243 case `"$ac_path_GREP" --version 2>&1` in
6244 *GNU*)
6245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6246 *)
6247 ac_count=0
6248 $as_echo_n 0123456789 >"conftest.in"
6249 while :
6250 do
6251 cat "conftest.in" "conftest.in" >"conftest.tmp"
6252 mv "conftest.tmp" "conftest.in"
6253 cp "conftest.in" "conftest.nl"
6254 $as_echo 'GREP' >> "conftest.nl"
6255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6257 as_fn_arith $ac_count + 1 && ac_count=$as_val
6258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6259 # Best one so far, save it but keep looking for a better one
6260 ac_cv_path_GREP="$ac_path_GREP"
6261 ac_path_GREP_max=$ac_count
6262 fi
6263 # 10*(2^10) chars as input seems more than enough
6264 test $ac_count -gt 10 && break
6265 done
6266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6267 esac
6268
6269 $ac_path_GREP_found && break 3
6270 done
6271 done
6272 done
6273 IFS=$as_save_IFS
6274 if test -z "$ac_cv_path_GREP"; then
6275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6276 fi
6277 else
6278 ac_cv_path_GREP=$GREP
6279 fi
6280
6281 fi
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6283 $as_echo "$ac_cv_path_GREP" >&6; }
6284 GREP="$ac_cv_path_GREP"
6285
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6288 $as_echo_n "checking for egrep... " >&6; }
6289 if ${ac_cv_path_EGREP+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6293 then ac_cv_path_EGREP="$GREP -E"
6294 else
6295 if test -z "$EGREP"; then
6296 ac_path_EGREP_found=false
6297 # Loop through the user's path and test for each of PROGNAME-LIST
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6300 do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_prog in egrep; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6306 as_fn_executable_p "$ac_path_EGREP" || continue
6307 # Check for GNU ac_path_EGREP and select it if it is found.
6308 # Check for GNU $ac_path_EGREP
6309 case `"$ac_path_EGREP" --version 2>&1` in
6310 *GNU*)
6311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6312 *)
6313 ac_count=0
6314 $as_echo_n 0123456789 >"conftest.in"
6315 while :
6316 do
6317 cat "conftest.in" "conftest.in" >"conftest.tmp"
6318 mv "conftest.tmp" "conftest.in"
6319 cp "conftest.in" "conftest.nl"
6320 $as_echo 'EGREP' >> "conftest.nl"
6321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6323 as_fn_arith $ac_count + 1 && ac_count=$as_val
6324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6325 # Best one so far, save it but keep looking for a better one
6326 ac_cv_path_EGREP="$ac_path_EGREP"
6327 ac_path_EGREP_max=$ac_count
6328 fi
6329 # 10*(2^10) chars as input seems more than enough
6330 test $ac_count -gt 10 && break
6331 done
6332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6333 esac
6334
6335 $ac_path_EGREP_found && break 3
6336 done
6337 done
6338 done
6339 IFS=$as_save_IFS
6340 if test -z "$ac_cv_path_EGREP"; then
6341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6342 fi
6343 else
6344 ac_cv_path_EGREP=$EGREP
6345 fi
6346
6347 fi
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6350 $as_echo "$ac_cv_path_EGREP" >&6; }
6351 EGREP="$ac_cv_path_EGREP"
6352
6353
6354 if test $ac_cv_c_compiler_gnu = yes; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6356 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6357 if ${ac_cv_prog_gcc_traditional+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 ac_pattern="Autoconf.*'x'"
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <sgtty.h>
6364 Autoconf TIOCGETP
6365 _ACEOF
6366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6367 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6368 ac_cv_prog_gcc_traditional=yes
6369 else
6370 ac_cv_prog_gcc_traditional=no
6371 fi
6372 rm -f conftest*
6373
6374
6375 if test $ac_cv_prog_gcc_traditional = no; then
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 #include <termio.h>
6379 Autoconf TCGETA
6380 _ACEOF
6381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6382 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6383 ac_cv_prog_gcc_traditional=yes
6384 fi
6385 rm -f conftest*
6386
6387 fi
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6390 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6391 if test $ac_cv_prog_gcc_traditional = yes; then
6392 CC="$CC -traditional"
6393 fi
6394 fi
6395
6396 for ac_prog in gawk mawk nawk awk
6397 do
6398 # Extract the first word of "$ac_prog", so it can be a program name with args.
6399 set dummy $ac_prog; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_AWK+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$AWK"; then
6406 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_AWK="$ac_prog"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 AWK=$ac_cv_prog_AWK
6426 if test -n "$AWK"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6428 $as_echo "$AWK" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 test -n "$AWK" && break
6436 done
6437
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6440 $as_echo_n "checking whether ln -s works... " >&6; }
6441 LN_S=$as_ln_s
6442 if test "$LN_S" = "ln -s"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6444 $as_echo "yes" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6447 $as_echo "no, using $LN_S" >&6; }
6448 fi
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6451 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6452 set x ${MAKE-make}
6453 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6454 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat >conftest.make <<\_ACEOF
6458 SHELL = /bin/sh
6459 all:
6460 @echo '@@@%%%=$(MAKE)=@@@%%%'
6461 _ACEOF
6462 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6463 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6464 *@@@%%%=?*=@@@%%%*)
6465 eval ac_cv_prog_make_${ac_make}_set=yes;;
6466 *)
6467 eval ac_cv_prog_make_${ac_make}_set=no;;
6468 esac
6469 rm -f conftest.make
6470 fi
6471 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6473 $as_echo "yes" >&6; }
6474 SET_MAKE=
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 SET_MAKE="MAKE=${MAKE-make}"
6479 fi
6480
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_RANLIB+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$RANLIB"; then
6490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 RANLIB=$ac_cv_prog_RANLIB
6510 if test -n "$RANLIB"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6512 $as_echo "$RANLIB" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518
6519 fi
6520 if test -z "$ac_cv_prog_RANLIB"; then
6521 ac_ct_RANLIB=$RANLIB
6522 # Extract the first word of "ranlib", so it can be a program name with args.
6523 set dummy ranlib; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$ac_ct_RANLIB"; then
6530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_ac_ct_RANLIB="ranlib"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6550 if test -n "$ac_ct_RANLIB"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6552 $as_echo "$ac_ct_RANLIB" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558 if test "x$ac_ct_RANLIB" = x; then
6559 RANLIB=":"
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562 yes:)
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567 RANLIB=$ac_ct_RANLIB
6568 fi
6569 else
6570 RANLIB="$ac_cv_prog_RANLIB"
6571 fi
6572
6573
6574 # Check whether --enable-iftype was given.
6575 if test "${enable_iftype+set}" = set; then :
6576 enableval=$enable_iftype;
6577 IFTYPE=`echo $enableval | sed s%/.*%%`
6578 IFSUBTYPE=`echo $enableval | sed s%.*/%%`
6579
6580
6581 fi
6582
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel networking interface type" >&5
6585 $as_echo_n "checking for kernel networking interface type... " >&6; }
6586
6587 if test "x$IFTYPE" = "x"; then
6588 case $target_os in
6589 *linux*)
6590 IFTYPE=native
6591 IFSUBTYPE=linux
6592
6593 $as_echo "#define HAVE_LINUX 1" >>confdefs.h
6594
6595 ;;
6596 *freebsd*)
6597 IFTYPE=tincd
6598 IFSUBTYPE=freebsd
6599
6600 $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
6601
6602 ;;
6603 *darwin*)
6604 IFTYPE=native
6605 IFSUBTYPE=darwin
6606
6607 $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
6608
6609 ;;
6610 *solaris*)
6611 IFTYPE=tincd
6612 IFSUBTYPE=solaris
6613
6614 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
6615
6616 ;;
6617 *openbsd*)
6618 IFTYPE=tincd
6619 IFSUBTYPE=openbsd
6620
6621 $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
6622
6623 ;;
6624 *netbsd*)
6625 IFTYPE=tincd
6626 IFSUBTYPE=netbsd
6627
6628 $as_echo "#define HAVE_NETBSD 1" >>confdefs.h
6629
6630 ;;
6631 *cygwin*)
6632 IFTYPE=native
6633 IFSUBTYPE=cygwin
6634
6635 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6636
6637 ;;
6638 *)
6639 as_fn_error $? "\"Unknown operating system.\"" "$LINENO" 5
6640 ;;
6641 esac
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFTYPE/$IFSUBTYPE" >&5
6644 $as_echo "$IFTYPE/$IFSUBTYPE" >&6; }
6645 IFTYPE=$IFTYPE
6646
6647 IFSUBTYPE=$IFSUBTYPE
6648
6649
6650 cat >>confdefs.h <<_ACEOF
6651 #define IFTYPE "$IFTYPE"
6652 _ACEOF
6653
6654
6655 cat >>confdefs.h <<_ACEOF
6656 #define IFSUBTYPE "$IFSUBTYPE"
6657 _ACEOF
6658
6659
6660 cat >confcache <<\_ACEOF
6661 # This file is a shell script that caches the results of configure
6662 # tests run on this system so they can be shared between configure
6663 # scripts and configure runs, see configure's option --config-cache.
6664 # It is not useful on other systems. If it contains results you don't
6665 # want to keep, you may remove or edit it.
6666 #
6667 # config.status only pays attention to the cache file if you give it
6668 # the --recheck option to rerun configure.
6669 #
6670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6672 # following values.
6673
6674 _ACEOF
6675
6676 # The following way of writing the cache mishandles newlines in values,
6677 # but we know of no workaround that is simple, portable, and efficient.
6678 # So, we kill variables containing newlines.
6679 # Ultrix sh set writes to stderr and can't be redirected directly,
6680 # and sets the high bit in the cache file unless we assign to the vars.
6681 (
6682 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6683 eval ac_val=\$$ac_var
6684 case $ac_val in #(
6685 *${as_nl}*)
6686 case $ac_var in #(
6687 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6689 esac
6690 case $ac_var in #(
6691 _ | IFS | as_nl) ;; #(
6692 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6693 *) { eval $ac_var=; unset $ac_var;} ;;
6694 esac ;;
6695 esac
6696 done
6697
6698 (set) 2>&1 |
6699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6700 *${as_nl}ac_space=\ *)
6701 # `set' does not quote correctly, so add quotes: double-quote
6702 # substitution turns \\\\ into \\, and sed turns \\ into \.
6703 sed -n \
6704 "s/'/'\\\\''/g;
6705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6706 ;; #(
6707 *)
6708 # `set' quotes correctly as required by POSIX, so do not add quotes.
6709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6710 ;;
6711 esac |
6712 sort
6713 ) |
6714 sed '
6715 /^ac_cv_env_/b end
6716 t clear
6717 :clear
6718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6719 t end
6720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6721 :end' >>confcache
6722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6723 if test -w "$cache_file"; then
6724 if test "x$cache_file" != "x/dev/null"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6726 $as_echo "$as_me: updating cache $cache_file" >&6;}
6727 if test ! -f "$cache_file" || test -h "$cache_file"; then
6728 cat confcache >"$cache_file"
6729 else
6730 case $cache_file in #(
6731 */* | ?:*)
6732 mv -f confcache "$cache_file"$$ &&
6733 mv -f "$cache_file"$$ "$cache_file" ;; #(
6734 *)
6735 mv -f confcache "$cache_file" ;;
6736 esac
6737 fi
6738 fi
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6742 fi
6743 fi
6744 rm -f confcache
6745
6746
6747 ac_ext=cpp
6748 ac_cpp='$CXXCPP $CPPFLAGS'
6749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6752
6753
6754 ac_ext=cpp
6755 ac_cpp='$CXXCPP $CPPFLAGS'
6756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6760 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6761 if test -z "$CXXCPP"; then
6762 if ${ac_cv_prog_CXXCPP+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 # Double quotes because CXXCPP needs to be expanded
6766 for CXXCPP in "$CXX -E" "/lib/cpp"
6767 do
6768 ac_preproc_ok=false
6769 for ac_cxx_preproc_warn_flag in '' yes
6770 do
6771 # Use a header file that comes with gcc, so configuring glibc
6772 # with a fresh cross-compiler works.
6773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6774 # <limits.h> exists even on freestanding compilers.
6775 # On the NeXT, cc -E runs the code through the compiler's parser,
6776 # not just through cpp. "Syntax error" is here to catch this case.
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #ifdef __STDC__
6780 # include <limits.h>
6781 #else
6782 # include <assert.h>
6783 #endif
6784 Syntax error
6785 _ACEOF
6786 if ac_fn_cxx_try_cpp "$LINENO"; then :
6787
6788 else
6789 # Broken: fails on valid input.
6790 continue
6791 fi
6792 rm -f conftest.err conftest.i conftest.$ac_ext
6793
6794 # OK, works on sane cases. Now check whether nonexistent headers
6795 # can be detected and how.
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 #include <ac_nonexistent.h>
6799 _ACEOF
6800 if ac_fn_cxx_try_cpp "$LINENO"; then :
6801 # Broken: success on invalid input.
6802 continue
6803 else
6804 # Passes both tests.
6805 ac_preproc_ok=:
6806 break
6807 fi
6808 rm -f conftest.err conftest.i conftest.$ac_ext
6809
6810 done
6811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6812 rm -f conftest.i conftest.err conftest.$ac_ext
6813 if $ac_preproc_ok; then :
6814 break
6815 fi
6816
6817 done
6818 ac_cv_prog_CXXCPP=$CXXCPP
6819
6820 fi
6821 CXXCPP=$ac_cv_prog_CXXCPP
6822 else
6823 ac_cv_prog_CXXCPP=$CXXCPP
6824 fi
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6826 $as_echo "$CXXCPP" >&6; }
6827 ac_preproc_ok=false
6828 for ac_cxx_preproc_warn_flag in '' yes
6829 do
6830 # Use a header file that comes with gcc, so configuring glibc
6831 # with a fresh cross-compiler works.
6832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 # <limits.h> exists even on freestanding compilers.
6834 # On the NeXT, cc -E runs the code through the compiler's parser,
6835 # not just through cpp. "Syntax error" is here to catch this case.
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #ifdef __STDC__
6839 # include <limits.h>
6840 #else
6841 # include <assert.h>
6842 #endif
6843 Syntax error
6844 _ACEOF
6845 if ac_fn_cxx_try_cpp "$LINENO"; then :
6846
6847 else
6848 # Broken: fails on valid input.
6849 continue
6850 fi
6851 rm -f conftest.err conftest.i conftest.$ac_ext
6852
6853 # OK, works on sane cases. Now check whether nonexistent headers
6854 # can be detected and how.
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <ac_nonexistent.h>
6858 _ACEOF
6859 if ac_fn_cxx_try_cpp "$LINENO"; then :
6860 # Broken: success on invalid input.
6861 continue
6862 else
6863 # Passes both tests.
6864 ac_preproc_ok=:
6865 break
6866 fi
6867 rm -f conftest.err conftest.i conftest.$ac_ext
6868
6869 done
6870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6871 rm -f conftest.i conftest.err conftest.$ac_ext
6872 if $ac_preproc_ok; then :
6873
6874 else
6875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6877 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6878 See \`config.log' for more details" "$LINENO" 5; }
6879 fi
6880
6881 ac_ext=cpp
6882 ac_cpp='$CXXCPP $CPPFLAGS'
6883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6886
6887
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6889 $as_echo_n "checking for ANSI C header files... " >&6; }
6890 if ${ac_cv_header_stdc+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6895 #include <stdlib.h>
6896 #include <stdarg.h>
6897 #include <string.h>
6898 #include <float.h>
6899
6900 int
6901 main ()
6902 {
6903
6904 ;
6905 return 0;
6906 }
6907 _ACEOF
6908 if ac_fn_cxx_try_compile "$LINENO"; then :
6909 ac_cv_header_stdc=yes
6910 else
6911 ac_cv_header_stdc=no
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914
6915 if test $ac_cv_header_stdc = yes; then
6916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 #include <string.h>
6920
6921 _ACEOF
6922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6923 $EGREP "memchr" >/dev/null 2>&1; then :
6924
6925 else
6926 ac_cv_header_stdc=no
6927 fi
6928 rm -f conftest*
6929
6930 fi
6931
6932 if test $ac_cv_header_stdc = yes; then
6933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 #include <stdlib.h>
6937
6938 _ACEOF
6939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6940 $EGREP "free" >/dev/null 2>&1; then :
6941
6942 else
6943 ac_cv_header_stdc=no
6944 fi
6945 rm -f conftest*
6946
6947 fi
6948
6949 if test $ac_cv_header_stdc = yes; then
6950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6951 if test "$cross_compiling" = yes; then :
6952 :
6953 else
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 #include <ctype.h>
6957 #include <stdlib.h>
6958 #if ((' ' & 0x0FF) == 0x020)
6959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6961 #else
6962 # define ISLOWER(c) \
6963 (('a' <= (c) && (c) <= 'i') \
6964 || ('j' <= (c) && (c) <= 'r') \
6965 || ('s' <= (c) && (c) <= 'z'))
6966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6967 #endif
6968
6969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6970 int
6971 main ()
6972 {
6973 int i;
6974 for (i = 0; i < 256; i++)
6975 if (XOR (islower (i), ISLOWER (i))
6976 || toupper (i) != TOUPPER (i))
6977 return 2;
6978 return 0;
6979 }
6980 _ACEOF
6981 if ac_fn_cxx_try_run "$LINENO"; then :
6982
6983 else
6984 ac_cv_header_stdc=no
6985 fi
6986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6987 conftest.$ac_objext conftest.beam conftest.$ac_ext
6988 fi
6989
6990 fi
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6993 $as_echo "$ac_cv_header_stdc" >&6; }
6994 if test $ac_cv_header_stdc = yes; then
6995
6996 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6997
6998 fi
6999
7000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7001 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7002 inttypes.h stdint.h unistd.h
7003 do :
7004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7005 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7006 "
7007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7008 cat >>confdefs.h <<_ACEOF
7009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7010 _ACEOF
7011
7012 fi
7013
7014 done
7015
7016
7017 for ac_header in tr1/unordered_map ext/hash_map clocale
7018 do :
7019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7020 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7022 cat >>confdefs.h <<_ACEOF
7023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7024 _ACEOF
7025
7026 fi
7027
7028 done
7029
7030
7031 for ac_header in fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
7032 sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h \
7033 sys/mman.h netinet/in.h
7034 do :
7035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7036 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7038 cat >>confdefs.h <<_ACEOF
7039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7040 _ACEOF
7041
7042 fi
7043
7044 done
7045
7046 for ac_header in arpa/inet.h net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h
7047 do :
7048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7049 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
7050 #include <sys/types.h>
7051 #include <sys/socket.h>
7052 #ifdef HAVE_NETINET_IN_H
7053 # include <netinet/in.h>
7054 #endif
7055 #ifdef HAVE_ARPA_INET_H
7056 # include <arpa/inet.h>
7057 #endif
7058 #ifdef HAVE_NETINET_IN_SYSTM_H
7059 # include <netinet/in_systm.h>
7060 #endif
7061
7062 "
7063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7064 cat >>confdefs.h <<_ACEOF
7065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7066 _ACEOF
7067
7068 fi
7069
7070 done
7071
7072
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7074 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7075 if ${ac_cv_c_const+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080
7081 int
7082 main ()
7083 {
7084
7085 #ifndef __cplusplus
7086 /* Ultrix mips cc rejects this sort of thing. */
7087 typedef int charset[2];
7088 const charset cs = { 0, 0 };
7089 /* SunOS 4.1.1 cc rejects this. */
7090 char const *const *pcpcc;
7091 char **ppc;
7092 /* NEC SVR4.0.2 mips cc rejects this. */
7093 struct point {int x, y;};
7094 static struct point const zero = {0,0};
7095 /* AIX XL C 1.02.0.0 rejects this.
7096 It does not let you subtract one const X* pointer from another in
7097 an arm of an if-expression whose if-part is not a constant
7098 expression */
7099 const char *g = "string";
7100 pcpcc = &g + (g ? g-g : 0);
7101 /* HPUX 7.0 cc rejects these. */
7102 ++pcpcc;
7103 ppc = (char**) pcpcc;
7104 pcpcc = (char const *const *) ppc;
7105 { /* SCO 3.2v4 cc rejects this sort of thing. */
7106 char tx;
7107 char *t = &tx;
7108 char const *s = 0 ? (char *) 0 : (char const *) 0;
7109
7110 *t++ = 0;
7111 if (s) return 0;
7112 }
7113 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7114 int x[] = {25, 17};
7115 const int *foo = &x[0];
7116 ++foo;
7117 }
7118 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7119 typedef const int *iptr;
7120 iptr p = 0;
7121 ++p;
7122 }
7123 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7124 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7125 struct s { int j; const int *ap[3]; } bx;
7126 struct s *b = &bx; b->j = 5;
7127 }
7128 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7129 const int foo = 10;
7130 if (!foo) return 0;
7131 }
7132 return !cs[0] && !zero.x;
7133 #endif
7134
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_cxx_try_compile "$LINENO"; then :
7140 ac_cv_c_const=yes
7141 else
7142 ac_cv_c_const=no
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 fi
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7147 $as_echo "$ac_cv_c_const" >&6; }
7148 if test $ac_cv_c_const = no; then
7149
7150 $as_echo "#define const /**/" >>confdefs.h
7151
7152 fi
7153
7154 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7155 if test "x$ac_cv_type_pid_t" = xyes; then :
7156
7157 else
7158
7159 cat >>confdefs.h <<_ACEOF
7160 #define pid_t int
7161 _ACEOF
7162
7163 fi
7164
7165 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7166 if test "x$ac_cv_type_size_t" = xyes; then :
7167
7168 else
7169
7170 cat >>confdefs.h <<_ACEOF
7171 #define size_t unsigned int
7172 _ACEOF
7173
7174 fi
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7177 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7178 if ${ac_cv_header_time+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7184 #include <sys/time.h>
7185 #include <time.h>
7186
7187 int
7188 main ()
7189 {
7190 if ((struct tm *) 0)
7191 return 0;
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_cxx_try_compile "$LINENO"; then :
7197 ac_cv_header_time=yes
7198 else
7199 ac_cv_header_time=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 fi
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7204 $as_echo "$ac_cv_header_time" >&6; }
7205 if test $ac_cv_header_time = yes; then
7206
7207 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7208
7209 fi
7210
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7212 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7213 if ${ac_cv_struct_tm+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 #include <sys/types.h>
7219 #include <time.h>
7220
7221 int
7222 main ()
7223 {
7224 struct tm tm;
7225 int *p = &tm.tm_sec;
7226 return !p;
7227 ;
7228 return 0;
7229 }
7230 _ACEOF
7231 if ac_fn_cxx_try_compile "$LINENO"; then :
7232 ac_cv_struct_tm=time.h
7233 else
7234 ac_cv_struct_tm=sys/time.h
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 fi
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7239 $as_echo "$ac_cv_struct_tm" >&6; }
7240 if test $ac_cv_struct_tm = sys/time.h; then
7241
7242 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7243
7244 fi
7245
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
7248 $as_echo_n "checking for socklen_t... " >&6; }
7249 if ${ac_cv_type_socklen_t+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 #include <sys/types.h>
7256 #include <sys/socket.h>
7257 int
7258 main ()
7259 {
7260 socklen_t len = 42; return len;
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_cxx_try_compile "$LINENO"; then :
7266 ac_cv_type_socklen_t=yes
7267 else
7268 ac_cv_type_socklen_t=no
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
7274 $as_echo "$ac_cv_type_socklen_t" >&6; }
7275 if test $ac_cv_type_socklen_t = yes; then
7276
7277 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
7278
7279 fi
7280
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
7282 $as_echo_n "checking for struct addrinfo... " >&6; }
7283 if ${ac_cv_struct_addrinfo+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <sys/types.h>
7290 #include <sys/socket.h>
7291 #include <netdb.h>
7292 int
7293 main ()
7294 {
7295 struct addrinfo ai; ai.ai_family = AF_INET; return ai.ai_family;
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 if ac_fn_cxx_try_compile "$LINENO"; then :
7301 ac_cv_struct_addrinfo=yes
7302 else
7303 ac_cv_struct_addrinfo=no
7304 fi
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
7309 $as_echo "$ac_cv_struct_addrinfo" >&6; }
7310 if test $ac_cv_struct_addrinfo = yes; then
7311
7312 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
7313
7314 fi
7315
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7317 $as_echo_n "checking return type of signal handlers... " >&6; }
7318 if ${ac_cv_type_signal+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 #include <sys/types.h>
7324 #include <signal.h>
7325
7326 int
7327 main ()
7328 {
7329 return *(signal (0, 0)) (0) == 1;
7330 ;
7331 return 0;
7332 }
7333 _ACEOF
7334 if ac_fn_cxx_try_compile "$LINENO"; then :
7335 ac_cv_type_signal=int
7336 else
7337 ac_cv_type_signal=void
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7342 $as_echo "$ac_cv_type_signal" >&6; }
7343
7344 cat >>confdefs.h <<_ACEOF
7345 #define RETSIGTYPE $ac_cv_type_signal
7346 _ACEOF
7347
7348
7349
7350 ac_ext=c
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7358 $as_echo_n "checking for ANSI C header files... " >&6; }
7359 if ${ac_cv_header_stdc+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 #include <stdlib.h>
7365 #include <stdarg.h>
7366 #include <string.h>
7367 #include <float.h>
7368
7369 int
7370 main ()
7371 {
7372
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_compile "$LINENO"; then :
7378 ac_cv_header_stdc=yes
7379 else
7380 ac_cv_header_stdc=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383
7384 if test $ac_cv_header_stdc = yes; then
7385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 #include <string.h>
7389
7390 _ACEOF
7391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "memchr" >/dev/null 2>&1; then :
7393
7394 else
7395 ac_cv_header_stdc=no
7396 fi
7397 rm -f conftest*
7398
7399 fi
7400
7401 if test $ac_cv_header_stdc = yes; then
7402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <stdlib.h>
7406
7407 _ACEOF
7408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7409 $EGREP "free" >/dev/null 2>&1; then :
7410
7411 else
7412 ac_cv_header_stdc=no
7413 fi
7414 rm -f conftest*
7415
7416 fi
7417
7418 if test $ac_cv_header_stdc = yes; then
7419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7420 if test "$cross_compiling" = yes; then :
7421 :
7422 else
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #include <ctype.h>
7426 #include <stdlib.h>
7427 #if ((' ' & 0x0FF) == 0x020)
7428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7430 #else
7431 # define ISLOWER(c) \
7432 (('a' <= (c) && (c) <= 'i') \
7433 || ('j' <= (c) && (c) <= 'r') \
7434 || ('s' <= (c) && (c) <= 'z'))
7435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7436 #endif
7437
7438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7439 int
7440 main ()
7441 {
7442 int i;
7443 for (i = 0; i < 256; i++)
7444 if (XOR (islower (i), ISLOWER (i))
7445 || toupper (i) != TOUPPER (i))
7446 return 2;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_run "$LINENO"; then :
7451
7452 else
7453 ac_cv_header_stdc=no
7454 fi
7455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7456 conftest.$ac_objext conftest.beam conftest.$ac_ext
7457 fi
7458
7459 fi
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7462 $as_echo "$ac_cv_header_stdc" >&6; }
7463 if test $ac_cv_header_stdc = yes; then
7464
7465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7466
7467 fi
7468
7469
7470 for ac_func in asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall
7471 do :
7472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7474 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7475 cat >>confdefs.h <<_ACEOF
7476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7477 _ACEOF
7478
7479 fi
7480 done
7481
7482
7483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7484 # for constant arguments. Useless!
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7486 $as_echo_n "checking for working alloca.h... " >&6; }
7487 if ${ac_cv_working_alloca_h+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492 #include <alloca.h>
7493 int
7494 main ()
7495 {
7496 char *p = (char *) alloca (2 * sizeof (int));
7497 if (p) return 0;
7498 ;
7499 return 0;
7500 }
7501 _ACEOF
7502 if ac_fn_c_try_link "$LINENO"; then :
7503 ac_cv_working_alloca_h=yes
7504 else
7505 ac_cv_working_alloca_h=no
7506 fi
7507 rm -f core conftest.err conftest.$ac_objext \
7508 conftest$ac_exeext conftest.$ac_ext
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7511 $as_echo "$ac_cv_working_alloca_h" >&6; }
7512 if test $ac_cv_working_alloca_h = yes; then
7513
7514 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7515
7516 fi
7517
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7519 $as_echo_n "checking for alloca... " >&6; }
7520 if ${ac_cv_func_alloca_works+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #ifdef __GNUC__
7526 # define alloca __builtin_alloca
7527 #else
7528 # ifdef _MSC_VER
7529 # include <malloc.h>
7530 # define alloca _alloca
7531 # else
7532 # ifdef HAVE_ALLOCA_H
7533 # include <alloca.h>
7534 # else
7535 # ifdef _AIX
7536 #pragma alloca
7537 # else
7538 # ifndef alloca /* predefined by HP cc +Olibcalls */
7539 void *alloca (size_t);
7540 # endif
7541 # endif
7542 # endif
7543 # endif
7544 #endif
7545
7546 int
7547 main ()
7548 {
7549 char *p = (char *) alloca (1);
7550 if (p) return 0;
7551 ;
7552 return 0;
7553 }
7554 _ACEOF
7555 if ac_fn_c_try_link "$LINENO"; then :
7556 ac_cv_func_alloca_works=yes
7557 else
7558 ac_cv_func_alloca_works=no
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext \
7561 conftest$ac_exeext conftest.$ac_ext
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7564 $as_echo "$ac_cv_func_alloca_works" >&6; }
7565
7566 if test $ac_cv_func_alloca_works = yes; then
7567
7568 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7569
7570 else
7571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7572 # that cause trouble. Some versions do not even contain alloca or
7573 # contain a buggy version. If you still want to use their alloca,
7574 # use ar to extract alloca.o from them instead of compiling alloca.c.
7575
7576 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7577
7578 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7579
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7582 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7583 if ${ac_cv_os_cray+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 #if defined CRAY && ! defined CRAY2
7589 webecray
7590 #else
7591 wenotbecray
7592 #endif
7593
7594 _ACEOF
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596 $EGREP "webecray" >/dev/null 2>&1; then :
7597 ac_cv_os_cray=yes
7598 else
7599 ac_cv_os_cray=no
7600 fi
7601 rm -f conftest*
7602
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7605 $as_echo "$ac_cv_os_cray" >&6; }
7606 if test $ac_cv_os_cray = yes; then
7607 for ac_func in _getb67 GETB67 getb67; do
7608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7609 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7610 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7611
7612 cat >>confdefs.h <<_ACEOF
7613 #define CRAY_STACKSEG_END $ac_func
7614 _ACEOF
7615
7616 break
7617 fi
7618
7619 done
7620 fi
7621
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7623 $as_echo_n "checking stack direction for C alloca... " >&6; }
7624 if ${ac_cv_c_stack_direction+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 if test "$cross_compiling" = yes; then :
7628 ac_cv_c_stack_direction=0
7629 else
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 $ac_includes_default
7633 int
7634 find_stack_direction (int *addr, int depth)
7635 {
7636 int dir, dummy = 0;
7637 if (! addr)
7638 addr = &dummy;
7639 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7640 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7641 return dir + dummy;
7642 }
7643
7644 int
7645 main (int argc, char **argv)
7646 {
7647 return find_stack_direction (0, argc + !argv + 20) < 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_run "$LINENO"; then :
7651 ac_cv_c_stack_direction=1
7652 else
7653 ac_cv_c_stack_direction=-1
7654 fi
7655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7656 conftest.$ac_objext conftest.beam conftest.$ac_ext
7657 fi
7658
7659 fi
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7661 $as_echo "$ac_cv_c_stack_direction" >&6; }
7662 cat >>confdefs.h <<_ACEOF
7663 #define STACK_DIRECTION $ac_cv_c_stack_direction
7664 _ACEOF
7665
7666
7667 fi
7668
7669
7670
7671 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
7672 if test "x$ac_cv_func_socket" = xyes; then :
7673
7674 else
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7677 $as_echo_n "checking for connect in -lsocket... " >&6; }
7678 if ${ac_cv_lib_socket_connect+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 ac_check_lib_save_LIBS=$LIBS
7682 LIBS="-lsocket $LIBS"
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685
7686 /* Override any GCC internal prototype to avoid an error.
7687 Use char because int might match the return type of a GCC
7688 builtin and then its argument prototype would still apply. */
7689 #ifdef __cplusplus
7690 extern "C"
7691 #endif
7692 char connect ();
7693 int
7694 main ()
7695 {
7696 return connect ();
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_link "$LINENO"; then :
7702 ac_cv_lib_socket_connect=yes
7703 else
7704 ac_cv_lib_socket_connect=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708 LIBS=$ac_check_lib_save_LIBS
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7711 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7712 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7713 cat >>confdefs.h <<_ACEOF
7714 #define HAVE_LIBSOCKET 1
7715 _ACEOF
7716
7717 LIBS="-lsocket $LIBS"
7718
7719 fi
7720
7721
7722 fi
7723
7724 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7725 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7726
7727 else
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7730 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7731 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 ac_check_lib_save_LIBS=$LIBS
7735 LIBS="-lnsl $LIBS"
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738
7739 /* Override any GCC internal prototype to avoid an error.
7740 Use char because int might match the return type of a GCC
7741 builtin and then its argument prototype would still apply. */
7742 #ifdef __cplusplus
7743 extern "C"
7744 #endif
7745 char gethostbyname ();
7746 int
7747 main ()
7748 {
7749 return gethostbyname ();
7750 ;
7751 return 0;
7752 }
7753 _ACEOF
7754 if ac_fn_c_try_link "$LINENO"; then :
7755 ac_cv_lib_nsl_gethostbyname=yes
7756 else
7757 ac_cv_lib_nsl_gethostbyname=no
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7764 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7765 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_LIBNSL 1
7768 _ACEOF
7769
7770 LIBS="-lnsl $LIBS"
7771
7772 fi
7773
7774
7775 fi
7776
7777
7778
7779 for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
7780 do :
7781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7784 cat >>confdefs.h <<_ACEOF
7785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7786 _ACEOF
7787
7788 fi
7789
7790 done
7791
7792
7793 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
7794 do :
7795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7797 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7798 cat >>confdefs.h <<_ACEOF
7799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7800 _ACEOF
7801
7802 fi
7803 done
7804
7805
7806 for ac_func in clock_gettime
7807 do :
7808 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7809 if test "x$ac_cv_func_clock_gettime" = xyes; then :
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_CLOCK_GETTIME 1
7812 _ACEOF
7813
7814 else
7815
7816 if test $(uname) = Linux; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
7818 $as_echo_n "checking for clock_gettime syscall... " >&6; }
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #include <unistd.h>
7822 #include <sys/syscall.h>
7823 #include <time.h>
7824 int
7825 main ()
7826 {
7827 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
7828 ;
7829 return 0;
7830 }
7831 _ACEOF
7832 if ac_fn_c_try_link "$LINENO"; then :
7833 ac_have_clock_syscall=1
7834
7835 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843 rm -f core conftest.err conftest.$ac_objext \
7844 conftest$ac_exeext conftest.$ac_ext
7845 fi
7846 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
7848 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
7849 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 ac_check_lib_save_LIBS=$LIBS
7853 LIBS="-lrt $LIBS"
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856
7857 /* Override any GCC internal prototype to avoid an error.
7858 Use char because int might match the return type of a GCC
7859 builtin and then its argument prototype would still apply. */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 char clock_gettime ();
7864 int
7865 main ()
7866 {
7867 return clock_gettime ();
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 if ac_fn_c_try_link "$LINENO"; then :
7873 ac_cv_lib_rt_clock_gettime=yes
7874 else
7875 ac_cv_lib_rt_clock_gettime=no
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 LIBS=$ac_check_lib_save_LIBS
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
7882 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
7883 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
7884 cat >>confdefs.h <<_ACEOF
7885 #define HAVE_LIBRT 1
7886 _ACEOF
7887
7888 LIBS="-lrt $LIBS"
7889
7890 fi
7891
7892 unset ac_cv_func_clock_gettime
7893 for ac_func in clock_gettime
7894 do :
7895 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
7896 if test "x$ac_cv_func_clock_gettime" = xyes; then :
7897 cat >>confdefs.h <<_ACEOF
7898 #define HAVE_CLOCK_GETTIME 1
7899 _ACEOF
7900
7901 fi
7902 done
7903
7904 fi
7905
7906 fi
7907 done
7908
7909
7910 for ac_func in nanosleep
7911 do :
7912 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7913 if test "x$ac_cv_func_nanosleep" = xyes; then :
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_NANOSLEEP 1
7916 _ACEOF
7917
7918 else
7919
7920 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7922 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7923 if ${ac_cv_lib_rt_nanosleep+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 ac_check_lib_save_LIBS=$LIBS
7927 LIBS="-lrt $LIBS"
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930
7931 /* Override any GCC internal prototype to avoid an error.
7932 Use char because int might match the return type of a GCC
7933 builtin and then its argument prototype would still apply. */
7934 #ifdef __cplusplus
7935 extern "C"
7936 #endif
7937 char nanosleep ();
7938 int
7939 main ()
7940 {
7941 return nanosleep ();
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 ac_cv_lib_rt_nanosleep=yes
7948 else
7949 ac_cv_lib_rt_nanosleep=no
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7953 LIBS=$ac_check_lib_save_LIBS
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7956 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7957 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
7958 cat >>confdefs.h <<_ACEOF
7959 #define HAVE_LIBRT 1
7960 _ACEOF
7961
7962 LIBS="-lrt $LIBS"
7963
7964 fi
7965
7966 unset ac_cv_func_nanosleep
7967 for ac_func in nanosleep
7968 do :
7969 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
7970 if test "x$ac_cv_func_nanosleep" = xyes; then :
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_NANOSLEEP 1
7973 _ACEOF
7974
7975 fi
7976 done
7977
7978 fi
7979
7980 fi
7981 done
7982
7983
7984 if test -z "$LIBEV_M4_AVOID_LIBM"; then
7985 LIBM=m
7986 fi
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
7988 $as_echo_n "checking for library containing floor... " >&6; }
7989 if ${ac_cv_search_floor+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 ac_func_search_save_LIBS=$LIBS
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995
7996 /* Override any GCC internal prototype to avoid an error.
7997 Use char because int might match the return type of a GCC
7998 builtin and then its argument prototype would still apply. */
7999 #ifdef __cplusplus
8000 extern "C"
8001 #endif
8002 char floor ();
8003 int
8004 main ()
8005 {
8006 return floor ();
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 for ac_lib in '' $LIBM; do
8012 if test -z "$ac_lib"; then
8013 ac_res="none required"
8014 else
8015 ac_res=-l$ac_lib
8016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8017 fi
8018 if ac_fn_c_try_link "$LINENO"; then :
8019 ac_cv_search_floor=$ac_res
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext \
8022 conftest$ac_exeext
8023 if ${ac_cv_search_floor+:} false; then :
8024 break
8025 fi
8026 done
8027 if ${ac_cv_search_floor+:} false; then :
8028
8029 else
8030 ac_cv_search_floor=no
8031 fi
8032 rm conftest.$ac_ext
8033 LIBS=$ac_func_search_save_LIBS
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
8036 $as_echo "$ac_cv_search_floor" >&6; }
8037 ac_res=$ac_cv_search_floor
8038 if test "$ac_res" != no; then :
8039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8040
8041 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
8042
8043 fi
8044
8045
8046
8047
8048 ac_ext=cpp
8049 ac_cpp='$CXXCPP $CPPFLAGS'
8050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8053
8054
8055
8056 cat >confcache <<\_ACEOF
8057 # This file is a shell script that caches the results of configure
8058 # tests run on this system so they can be shared between configure
8059 # scripts and configure runs, see configure's option --config-cache.
8060 # It is not useful on other systems. If it contains results you don't
8061 # want to keep, you may remove or edit it.
8062 #
8063 # config.status only pays attention to the cache file if you give it
8064 # the --recheck option to rerun configure.
8065 #
8066 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8067 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8068 # following values.
8069
8070 _ACEOF
8071
8072 # The following way of writing the cache mishandles newlines in values,
8073 # but we know of no workaround that is simple, portable, and efficient.
8074 # So, we kill variables containing newlines.
8075 # Ultrix sh set writes to stderr and can't be redirected directly,
8076 # and sets the high bit in the cache file unless we assign to the vars.
8077 (
8078 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8079 eval ac_val=\$$ac_var
8080 case $ac_val in #(
8081 *${as_nl}*)
8082 case $ac_var in #(
8083 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8084 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8085 esac
8086 case $ac_var in #(
8087 _ | IFS | as_nl) ;; #(
8088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8089 *) { eval $ac_var=; unset $ac_var;} ;;
8090 esac ;;
8091 esac
8092 done
8093
8094 (set) 2>&1 |
8095 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8096 *${as_nl}ac_space=\ *)
8097 # `set' does not quote correctly, so add quotes: double-quote
8098 # substitution turns \\\\ into \\, and sed turns \\ into \.
8099 sed -n \
8100 "s/'/'\\\\''/g;
8101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8102 ;; #(
8103 *)
8104 # `set' quotes correctly as required by POSIX, so do not add quotes.
8105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8106 ;;
8107 esac |
8108 sort
8109 ) |
8110 sed '
8111 /^ac_cv_env_/b end
8112 t clear
8113 :clear
8114 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8115 t end
8116 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8117 :end' >>confcache
8118 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8119 if test -w "$cache_file"; then
8120 if test "x$cache_file" != "x/dev/null"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8122 $as_echo "$as_me: updating cache $cache_file" >&6;}
8123 if test ! -f "$cache_file" || test -h "$cache_file"; then
8124 cat confcache >"$cache_file"
8125 else
8126 case $cache_file in #(
8127 */* | ?:*)
8128 mv -f confcache "$cache_file"$$ &&
8129 mv -f "$cache_file"$$ "$cache_file" ;; #(
8130 *)
8131 mv -f confcache "$cache_file" ;;
8132 esac
8133 fi
8134 fi
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8137 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8138 fi
8139 fi
8140 rm -f confcache
8141
8142
8143
8144 # Check whether --with-kernel was given.
8145 if test "${with_kernel+set}" = set; then :
8146 withval=$with_kernel; kerneldir="$withval"
8147 else
8148 kerneldir="/usr/src/linux"
8149
8150 fi
8151
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linux/if_tun.h" >&5
8154 $as_echo_n "checking for linux/if_tun.h... " >&6; }
8155 if ${tinc_cv_linux_if_tun_h+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8161 #include "$kerneldir/include/linux/if_tun.h"
8162 int
8163 main ()
8164 {
8165 int a = IFF_TAP;
8166 ;
8167 return 0;
8168 }
8169 _ACEOF
8170 if ac_fn_cxx_try_compile "$LINENO"; then :
8171 if_tun_h="\"$kerneldir/include/linux/if_tun.h\""
8172 else
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #include <linux/if_tun.h>
8176 int
8177 main ()
8178 {
8179 int a = IFF_TAP;
8180 ;
8181 return 0;
8182 }
8183 _ACEOF
8184 if ac_fn_cxx_try_compile "$LINENO"; then :
8185 if_tun_h="default"
8186 else
8187 if_tun_h="no"
8188
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194
8195 if test $if_tun_h = no; then
8196 tinc_cv_linux_if_tun_h=none
8197 else
8198 tinc_cv_linux_if_tun_h="$if_tun_h"
8199 fi
8200
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tinc_cv_linux_if_tun_h" >&5
8203 $as_echo "$tinc_cv_linux_if_tun_h" >&6; }
8204
8205 if test $tinc_cv_linux_if_tun_h != none; then
8206
8207 $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
8208
8209 if test $tinc_cv_linux_if_tun_h != default; then
8210
8211 cat >>confdefs.h <<_ACEOF
8212 #define LINUX_IF_TUN_H $tinc_cv_linux_if_tun_h
8213 _ACEOF
8214
8215 fi
8216 fi
8217
8218
8219
8220
8221
8222 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
8223
8224
8225 # Check whether --with-openssl-include was given.
8226 if test "${with_openssl_include+set}" = set; then :
8227 withval=$with_openssl_include; openssl_include="$withval"
8228 CFLAGS="$CFLAGS -I$withval"
8229 CPPFLAGS="$CPPFLAGS -I$withval"
8230
8231 fi
8232
8233
8234
8235 # Check whether --with-openssl-lib was given.
8236 if test "${with_openssl_lib+set}" = set; then :
8237 withval=$with_openssl_lib; openssl_lib="$withval"
8238 LIBS="$LIBS -L$withval"
8239
8240 fi
8241
8242
8243 for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h
8244 do :
8245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8248 cat >>confdefs.h <<_ACEOF
8249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8250 _ACEOF
8251
8252 else
8253 as_fn_error $? "OpenSSL header files not found." "$LINENO" 5; break
8254
8255 fi
8256
8257 done
8258
8259
8260 CPPFLAGS="$tinc_ac_save_CPPFLAGS"
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
8263 $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
8264 if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 ac_check_lib_save_LIBS=$LIBS
8268 LIBS="-lcrypto $LIBS"
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271
8272 /* Override any GCC internal prototype to avoid an error.
8273 Use char because int might match the return type of a GCC
8274 builtin and then its argument prototype would still apply. */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 char SHA1_Init ();
8279 int
8280 main ()
8281 {
8282 return SHA1_Init ();
8283 ;
8284 return 0;
8285 }
8286 _ACEOF
8287 if ac_fn_cxx_try_link "$LINENO"; then :
8288 ac_cv_lib_crypto_SHA1_Init=yes
8289 else
8290 ac_cv_lib_crypto_SHA1_Init=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8294 LIBS=$ac_check_lib_save_LIBS
8295 fi
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
8297 $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
8298 if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
8299 LIBS="$LIBS -lcrypto"
8300 else
8301 as_fn_error $? "OpenSSL libraries not found." "$LINENO" 5
8302
8303 fi
8304
8305
8306 for ac_func in RAND_pseudo_bytes OPENSSL_add_all_algorithms_noconf OpenSSL_add_all_algorithms SSLeay_add_all_algorithms
8307 do :
8308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8309 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8310 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8311 cat >>confdefs.h <<_ACEOF
8312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8313 _ACEOF
8314
8315 fi
8316 done
8317
8318
8319 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8320 if test "x$ac_cv_func_dlopen" = xyes; then :
8321
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8324 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8325 if ${ac_cv_lib_dl_dlopen+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 ac_check_lib_save_LIBS=$LIBS
8329 LIBS="-ldl $LIBS"
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332
8333 /* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 char dlopen ();
8340 int
8341 main ()
8342 {
8343 return dlopen ();
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_cxx_try_link "$LINENO"; then :
8349 ac_cv_lib_dl_dlopen=yes
8350 else
8351 ac_cv_lib_dl_dlopen=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8358 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8359 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8360 LIBS="$LIBS -ldl"
8361 else
8362 as_fn_error $? "OpenSSL depends on libdl." "$LINENO" 5
8363
8364 fi
8365
8366
8367 fi
8368
8369
8370 ac_fn_cxx_check_func "$LINENO" "inflate" "ac_cv_func_inflate"
8371 if test "x$ac_cv_func_inflate" = xyes; then :
8372
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8375 $as_echo_n "checking for inflate in -lz... " >&6; }
8376 if ${ac_cv_lib_z_inflate+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 ac_check_lib_save_LIBS=$LIBS
8380 LIBS="-lz $LIBS"
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383
8384 /* Override any GCC internal prototype to avoid an error.
8385 Use char because int might match the return type of a GCC
8386 builtin and then its argument prototype would still apply. */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 char inflate ();
8391 int
8392 main ()
8393 {
8394 return inflate ();
8395 ;
8396 return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_cxx_try_link "$LINENO"; then :
8400 ac_cv_lib_z_inflate=yes
8401 else
8402 ac_cv_lib_z_inflate=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8409 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8410 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8411 LIBS="$LIBS -lz"
8412 else
8413 as_fn_error $? "OpenSSL depends on libz." "$LINENO" 5
8414
8415 fi
8416
8417
8418 fi
8419
8420
8421 if test "x$openssl_include" != x; then
8422 CXXFLAGS="$CXXFLAGS -I$openssl_include"
8423 fi
8424
8425 # Check whether --enable-threads was given.
8426 if test "${enable_threads+set}" = set; then :
8427 enableval=$enable_threads; try_threads=$enableval
8428 else
8429 try_threads=yes
8430
8431 fi
8432
8433
8434 if test "x$try_threads" = xyes; then
8435 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8436 if test "x$ac_cv_header_pthread_h" = xyes; then :
8437
8438 LIBS="$LIBS -lpthread"
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #include <pthread.h>
8442 int
8443 main ()
8444 {
8445 pthread_t id; pthread_create (&id, 0, 0, 0);
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_cxx_try_compile "$LINENO"; then :
8451
8452 cat >>confdefs.h <<_ACEOF
8453 #define ENABLE_PTHREADS 1
8454 _ACEOF
8455
8456
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459
8460 fi
8461
8462
8463 fi
8464
8465 # Check whether --enable-static-daemon was given.
8466 if test "${enable_static_daemon+set}" = set; then :
8467 enableval=$enable_static_daemon; LDFLAGS_DAEMON=-static
8468
8469 fi
8470
8471
8472
8473
8474 if test x$rohc = xtrue; then
8475 ROHC_TRUE=
8476 ROHC_FALSE='#'
8477 else
8478 ROHC_TRUE='#'
8479 ROHC_FALSE=
8480 fi
8481
8482
8483
8484 ICMP=1
8485 # Check whether --enable-icmp was given.
8486 if test "${enable_icmp+set}" = set; then :
8487 enableval=$enable_icmp; if test "x$enableval" = xno; then
8488 ICMP=0
8489 fi
8490
8491 fi
8492
8493 if test "x$ICMP" = x1; then
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define ENABLE_ICMP 1
8497 _ACEOF
8498
8499 fi
8500
8501 TCP=1
8502 # Check whether --enable-tcp was given.
8503 if test "${enable_tcp+set}" = set; then :
8504 enableval=$enable_tcp; if test "x$enableval" = xno; then
8505 TCP=0
8506 fi
8507
8508 fi
8509
8510 if test "x$TCP" = x1; then
8511
8512 cat >>confdefs.h <<_ACEOF
8513 #define ENABLE_TCP 1
8514 _ACEOF
8515
8516 fi
8517
8518 HTTP=1
8519 # Check whether --enable-http-proxy was given.
8520 if test "${enable_http_proxy+set}" = set; then :
8521 enableval=$enable_http_proxy; if test "x$enableval" = xno; then
8522 HTTP=0
8523 fi
8524
8525 fi
8526
8527 if test "x$HTTP" = x1; then
8528
8529 cat >>confdefs.h <<_ACEOF
8530 #define ENABLE_HTTP_PROXY 1
8531 _ACEOF
8532
8533 fi
8534
8535 # Check whether --enable-dns was given.
8536 if test "${enable_dns+set}" = set; then :
8537 enableval=$enable_dns;
8538 ac_fn_cxx_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
8539 if test "x$ac_cv_header_gmp_h" = xyes; then :
8540
8541 else
8542 as_fn_error $? "gmp.h not found, required for --enable-dns" "$LINENO" 5
8543 fi
8544
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
8547 $as_echo_n "checking for main in -lgmp... " >&6; }
8548 if ${ac_cv_lib_gmp_main+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 ac_check_lib_save_LIBS=$LIBS
8552 LIBS="-lgmp $LIBS"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555
8556
8557 int
8558 main ()
8559 {
8560 return main ();
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_cxx_try_link "$LINENO"; then :
8566 ac_cv_lib_gmp_main=yes
8567 else
8568 ac_cv_lib_gmp_main=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
8575 $as_echo "$ac_cv_lib_gmp_main" >&6; }
8576 if test "x$ac_cv_lib_gmp_main" = xyes; then :
8577 cat >>confdefs.h <<_ACEOF
8578 #define HAVE_LIBGMP 1
8579 _ACEOF
8580
8581 LIBS="-lgmp $LIBS"
8582
8583 else
8584 as_fn_error $? "libgmp not found, required for --enable-dns" "$LINENO" 5
8585 fi
8586
8587
8588
8589 cat >>confdefs.h <<_ACEOF
8590 #define ENABLE_DNS 1
8591 _ACEOF
8592
8593
8594
8595 fi
8596
8597
8598 RSA=3072
8599 # Check whether --enable-rsa-length was given.
8600 if test "${enable_rsa_length+set}" = set; then :
8601 enableval=$enable_rsa_length; RSA=$enableval
8602
8603 fi
8604
8605
8606 cat >>confdefs.h <<_ACEOF
8607 #define RSABITS $RSA
8608 _ACEOF
8609
8610
8611 HMAC=12
8612 # Check whether --enable-hmac-length was given.
8613 if test "${enable_hmac_length+set}" = set; then :
8614 enableval=$enable_hmac_length; HMAC=$enableval
8615
8616 fi
8617
8618
8619 cat >>confdefs.h <<_ACEOF
8620 #define HMACLENGTH $HMAC
8621 _ACEOF
8622
8623
8624 RAND=8
8625 # Check whether --enable-rand-length was given.
8626 if test "${enable_rand_length+set}" = set; then :
8627 enableval=$enable_rand_length; RAND=$enableval
8628
8629 fi
8630
8631
8632 cat >>confdefs.h <<_ACEOF
8633 #define RAND_SIZE $RAND
8634 _ACEOF
8635
8636
8637 MTU=1500
8638 # Check whether --enable-max-mtu was given.
8639 if test "${enable_max_mtu+set}" = set; then :
8640 enableval=$enable_max_mtu; MTU=$enableval
8641
8642 fi
8643
8644
8645 cat >>confdefs.h <<_ACEOF
8646 #define MAX_MTU ($MTU + 14)
8647 _ACEOF
8648
8649
8650 COMPRESS=1
8651 # Check whether --enable-compression was given.
8652 if test "${enable_compression+set}" = set; then :
8653 enableval=$enable_compression; if test "x$enableval" = xno; then
8654 COMPRESS=0
8655 fi
8656
8657 fi
8658
8659
8660 cat >>confdefs.h <<_ACEOF
8661 #define ENABLE_COMPRESSION $COMPRESS
8662 _ACEOF
8663
8664
8665 CIPHER=aes_128_cbc
8666 # Check whether --enable-cipher was given.
8667 if test "${enable_cipher+set}" = set; then :
8668 enableval=$enable_cipher; if test "x$enableval" = xbf ; then CIPHER=bf_cbc ; fi
8669 if test "x$enableval" = xaes-128 ; then CIPHER=aes_128_cbc ; fi
8670 if test "x$enableval" = xaes-192 ; then CIPHER=aes_192_cbc ; fi
8671 if test "x$enableval" = xaes-256 ; then CIPHER=aes_256_cbc ; fi
8672 if test "x$enableval" = xcamellia-128; then CIPHER=camellia_128_cbc; fi
8673 if test "x$enableval" = xcamellia-256; then CIPHER=camellia_256_cbc; fi
8674
8675 fi
8676
8677
8678 cat >>confdefs.h <<_ACEOF
8679 #define ENABLE_CIPHER EVP_${CIPHER}
8680 _ACEOF
8681
8682
8683 DIGEST=sha1
8684 # Check whether --enable-digest was given.
8685 if test "${enable_digest+set}" = set; then :
8686 enableval=$enable_digest; if test "x$enableval" = xwhirlpool; then DIGEST=whirlpool; fi
8687 if test "x$enableval" = xsha512 ; then DIGEST=sha512 ; fi
8688 if test "x$enableval" = xsha256 ; then DIGEST=sha256 ; fi
8689 if test "x$enableval" = xsha1 ; then DIGEST=sha1 ; fi
8690 if test "x$enableval" = xripemd160; then DIGEST=ripemd160; fi
8691
8692 fi
8693
8694
8695 cat >>confdefs.h <<_ACEOF
8696 #define ENABLE_DIGEST EVP_${DIGEST}
8697 _ACEOF
8698
8699
8700 AUTH=sha512
8701 # Check whether --enable-auth-digest was given.
8702 if test "${enable_auth_digest+set}" = set; then :
8703 enableval=$enable_auth_digest; if test "x$enableval" = xwhirlpool; then AUTH=whirlpool; fi
8704 if test "x$enableval" = xsha512 ; then AUTH=sha512 ; fi
8705 if test "x$enableval" = xsha256 ; then AUTH=sha256 ; fi
8706
8707 fi
8708
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define ENABLE_AUTH EVP_${AUTH}
8712 _ACEOF
8713
8714
8715 if $CXX -v --help 2>&1 | grep -q fno-rtti; then
8716 CXXFLAGS="$CXXFLAGS -fno-rtti"
8717 fi
8718
8719 #if $CXX -v --help 2>&1 | grep -q fexceptions; then
8720 # CXXFLAGS="$CXXFLAGS -fno-exceptions"
8721 #fi
8722
8723 LIBS="$EXTRA_LIBS $LIBS"
8724
8725
8726
8727
8728 ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile"
8729
8730 cat >confcache <<\_ACEOF
8731 # This file is a shell script that caches the results of configure
8732 # tests run on this system so they can be shared between configure
8733 # scripts and configure runs, see configure's option --config-cache.
8734 # It is not useful on other systems. If it contains results you don't
8735 # want to keep, you may remove or edit it.
8736 #
8737 # config.status only pays attention to the cache file if you give it
8738 # the --recheck option to rerun configure.
8739 #
8740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8742 # following values.
8743
8744 _ACEOF
8745
8746 # The following way of writing the cache mishandles newlines in values,
8747 # but we know of no workaround that is simple, portable, and efficient.
8748 # So, we kill variables containing newlines.
8749 # Ultrix sh set writes to stderr and can't be redirected directly,
8750 # and sets the high bit in the cache file unless we assign to the vars.
8751 (
8752 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8753 eval ac_val=\$$ac_var
8754 case $ac_val in #(
8755 *${as_nl}*)
8756 case $ac_var in #(
8757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8759 esac
8760 case $ac_var in #(
8761 _ | IFS | as_nl) ;; #(
8762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8763 *) { eval $ac_var=; unset $ac_var;} ;;
8764 esac ;;
8765 esac
8766 done
8767
8768 (set) 2>&1 |
8769 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8770 *${as_nl}ac_space=\ *)
8771 # `set' does not quote correctly, so add quotes: double-quote
8772 # substitution turns \\\\ into \\, and sed turns \\ into \.
8773 sed -n \
8774 "s/'/'\\\\''/g;
8775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8776 ;; #(
8777 *)
8778 # `set' quotes correctly as required by POSIX, so do not add quotes.
8779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8780 ;;
8781 esac |
8782 sort
8783 ) |
8784 sed '
8785 /^ac_cv_env_/b end
8786 t clear
8787 :clear
8788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8789 t end
8790 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8791 :end' >>confcache
8792 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8793 if test -w "$cache_file"; then
8794 if test "x$cache_file" != "x/dev/null"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8796 $as_echo "$as_me: updating cache $cache_file" >&6;}
8797 if test ! -f "$cache_file" || test -h "$cache_file"; then
8798 cat confcache >"$cache_file"
8799 else
8800 case $cache_file in #(
8801 */* | ?:*)
8802 mv -f confcache "$cache_file"$$ &&
8803 mv -f "$cache_file"$$ "$cache_file" ;; #(
8804 *)
8805 mv -f confcache "$cache_file" ;;
8806 esac
8807 fi
8808 fi
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8811 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8812 fi
8813 fi
8814 rm -f confcache
8815
8816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8817 # Let make expand exec_prefix.
8818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8819
8820 DEFS=-DHAVE_CONFIG_H
8821
8822 ac_libobjs=
8823 ac_ltlibobjs=
8824 U=
8825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8826 # 1. Remove the extension, and $U if already installed.
8827 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8828 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8829 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8830 # will be set to the directory where LIBOBJS objects are built.
8831 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8832 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8833 done
8834 LIBOBJS=$ac_libobjs
8835
8836 LTLIBOBJS=$ac_ltlibobjs
8837
8838
8839 if test -n "$EXEEXT"; then
8840 am__EXEEXT_TRUE=
8841 am__EXEEXT_FALSE='#'
8842 else
8843 am__EXEEXT_TRUE='#'
8844 am__EXEEXT_FALSE=
8845 fi
8846
8847 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8848 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8850 fi
8851 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8852 as_fn_error $? "conditional \"AMDEP\" was never defined.
8853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8854 fi
8855 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8856 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8858 fi
8859 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8860 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8862 fi
8863 if test -z "${ROHC_TRUE}" && test -z "${ROHC_FALSE}"; then
8864 as_fn_error $? "conditional \"ROHC\" was never defined.
8865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8866 fi
8867
8868 : "${CONFIG_STATUS=./config.status}"
8869 ac_write_fail=0
8870 ac_clean_files_save=$ac_clean_files
8871 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8873 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8874 as_write_fail=0
8875 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8876 #! $SHELL
8877 # Generated by $as_me.
8878 # Run this file to recreate the current configuration.
8879 # Compiler output produced by configure, useful for debugging
8880 # configure, is in config.log if it exists.
8881
8882 debug=false
8883 ac_cs_recheck=false
8884 ac_cs_silent=false
8885
8886 SHELL=\${CONFIG_SHELL-$SHELL}
8887 export SHELL
8888 _ASEOF
8889 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8890 ## -------------------- ##
8891 ## M4sh Initialization. ##
8892 ## -------------------- ##
8893
8894 # Be more Bourne compatible
8895 DUALCASE=1; export DUALCASE # for MKS sh
8896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8897 emulate sh
8898 NULLCMD=:
8899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8900 # is contrary to our usage. Disable this feature.
8901 alias -g '${1+"$@"}'='"$@"'
8902 setopt NO_GLOB_SUBST
8903 else
8904 case `(set -o) 2>/dev/null` in #(
8905 *posix*) :
8906 set -o posix ;; #(
8907 *) :
8908 ;;
8909 esac
8910 fi
8911
8912
8913 as_nl='
8914 '
8915 export as_nl
8916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8917 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8920 # Prefer a ksh shell builtin over an external printf program on Solaris,
8921 # but without wasting forks for bash or zsh.
8922 if test -z "$BASH_VERSION$ZSH_VERSION" \
8923 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8924 as_echo='print -r --'
8925 as_echo_n='print -rn --'
8926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8927 as_echo='printf %s\n'
8928 as_echo_n='printf %s'
8929 else
8930 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8931 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8932 as_echo_n='/usr/ucb/echo -n'
8933 else
8934 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8935 as_echo_n_body='eval
8936 arg=$1;
8937 case $arg in #(
8938 *"$as_nl"*)
8939 expr "X$arg" : "X\\(.*\\)$as_nl";
8940 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8941 esac;
8942 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8943 '
8944 export as_echo_n_body
8945 as_echo_n='sh -c $as_echo_n_body as_echo'
8946 fi
8947 export as_echo_body
8948 as_echo='sh -c $as_echo_body as_echo'
8949 fi
8950
8951 # The user is always right.
8952 if test "${PATH_SEPARATOR+set}" != set; then
8953 PATH_SEPARATOR=:
8954 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8955 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8956 PATH_SEPARATOR=';'
8957 }
8958 fi
8959
8960
8961 # IFS
8962 # We need space, tab and new line, in precisely that order. Quoting is
8963 # there to prevent editors from complaining about space-tab.
8964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8965 # splitting by setting IFS to empty value.)
8966 IFS=" "" $as_nl"
8967
8968 # Find who we are. Look in the path if we contain no directory separator.
8969 as_myself=
8970 case $0 in #((
8971 *[\\/]* ) as_myself=$0 ;;
8972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8978 done
8979 IFS=$as_save_IFS
8980
8981 ;;
8982 esac
8983 # We did not find ourselves, most probably we were run as `sh COMMAND'
8984 # in which case we are not to be found in the path.
8985 if test "x$as_myself" = x; then
8986 as_myself=$0
8987 fi
8988 if test ! -f "$as_myself"; then
8989 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8990 exit 1
8991 fi
8992
8993 # Unset variables that we do not need and which cause bugs (e.g. in
8994 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8995 # suppresses any "Segmentation fault" message there. '((' could
8996 # trigger a bug in pdksh 5.2.14.
8997 for as_var in BASH_ENV ENV MAIL MAILPATH
8998 do eval test x\${$as_var+set} = xset \
8999 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9000 done
9001 PS1='$ '
9002 PS2='> '
9003 PS4='+ '
9004
9005 # NLS nuisances.
9006 LC_ALL=C
9007 export LC_ALL
9008 LANGUAGE=C
9009 export LANGUAGE
9010
9011 # CDPATH.
9012 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9013
9014
9015 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9016 # ----------------------------------------
9017 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9018 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9019 # script with STATUS, using 1 if that was 0.
9020 as_fn_error ()
9021 {
9022 as_status=$1; test $as_status -eq 0 && as_status=1
9023 if test "$4"; then
9024 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9025 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9026 fi
9027 $as_echo "$as_me: error: $2" >&2
9028 as_fn_exit $as_status
9029 } # as_fn_error
9030
9031
9032 # as_fn_set_status STATUS
9033 # -----------------------
9034 # Set $? to STATUS, without forking.
9035 as_fn_set_status ()
9036 {
9037 return $1
9038 } # as_fn_set_status
9039
9040 # as_fn_exit STATUS
9041 # -----------------
9042 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9043 as_fn_exit ()
9044 {
9045 set +e
9046 as_fn_set_status $1
9047 exit $1
9048 } # as_fn_exit
9049
9050 # as_fn_unset VAR
9051 # ---------------
9052 # Portably unset VAR.
9053 as_fn_unset ()
9054 {
9055 { eval $1=; unset $1;}
9056 }
9057 as_unset=as_fn_unset
9058 # as_fn_append VAR VALUE
9059 # ----------------------
9060 # Append the text in VALUE to the end of the definition contained in VAR. Take
9061 # advantage of any shell optimizations that allow amortized linear growth over
9062 # repeated appends, instead of the typical quadratic growth present in naive
9063 # implementations.
9064 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9065 eval 'as_fn_append ()
9066 {
9067 eval $1+=\$2
9068 }'
9069 else
9070 as_fn_append ()
9071 {
9072 eval $1=\$$1\$2
9073 }
9074 fi # as_fn_append
9075
9076 # as_fn_arith ARG...
9077 # ------------------
9078 # Perform arithmetic evaluation on the ARGs, and store the result in the
9079 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9080 # must be portable across $(()) and expr.
9081 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9082 eval 'as_fn_arith ()
9083 {
9084 as_val=$(( $* ))
9085 }'
9086 else
9087 as_fn_arith ()
9088 {
9089 as_val=`expr "$@" || test $? -eq 1`
9090 }
9091 fi # as_fn_arith
9092
9093
9094 if expr a : '\(a\)' >/dev/null 2>&1 &&
9095 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9096 as_expr=expr
9097 else
9098 as_expr=false
9099 fi
9100
9101 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9102 as_basename=basename
9103 else
9104 as_basename=false
9105 fi
9106
9107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9108 as_dirname=dirname
9109 else
9110 as_dirname=false
9111 fi
9112
9113 as_me=`$as_basename -- "$0" ||
9114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9115 X"$0" : 'X\(//\)$' \| \
9116 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9117 $as_echo X/"$0" |
9118 sed '/^.*\/\([^/][^/]*\)\/*$/{
9119 s//\1/
9120 q
9121 }
9122 /^X\/\(\/\/\)$/{
9123 s//\1/
9124 q
9125 }
9126 /^X\/\(\/\).*/{
9127 s//\1/
9128 q
9129 }
9130 s/.*/./; q'`
9131
9132 # Avoid depending upon Character Ranges.
9133 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9134 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9135 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9136 as_cr_digits='0123456789'
9137 as_cr_alnum=$as_cr_Letters$as_cr_digits
9138
9139 ECHO_C= ECHO_N= ECHO_T=
9140 case `echo -n x` in #(((((
9141 -n*)
9142 case `echo 'xy\c'` in
9143 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9144 xy) ECHO_C='\c';;
9145 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9146 ECHO_T=' ';;
9147 esac;;
9148 *)
9149 ECHO_N='-n';;
9150 esac
9151
9152 rm -f conf$$ conf$$.exe conf$$.file
9153 if test -d conf$$.dir; then
9154 rm -f conf$$.dir/conf$$.file
9155 else
9156 rm -f conf$$.dir
9157 mkdir conf$$.dir 2>/dev/null
9158 fi
9159 if (echo >conf$$.file) 2>/dev/null; then
9160 if ln -s conf$$.file conf$$ 2>/dev/null; then
9161 as_ln_s='ln -s'
9162 # ... but there are two gotchas:
9163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9165 # In both cases, we have to default to `cp -pR'.
9166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9167 as_ln_s='cp -pR'
9168 elif ln conf$$.file conf$$ 2>/dev/null; then
9169 as_ln_s=ln
9170 else
9171 as_ln_s='cp -pR'
9172 fi
9173 else
9174 as_ln_s='cp -pR'
9175 fi
9176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9177 rmdir conf$$.dir 2>/dev/null
9178
9179
9180 # as_fn_mkdir_p
9181 # -------------
9182 # Create "$as_dir" as a directory, including parents if necessary.
9183 as_fn_mkdir_p ()
9184 {
9185
9186 case $as_dir in #(
9187 -*) as_dir=./$as_dir;;
9188 esac
9189 test -d "$as_dir" || eval $as_mkdir_p || {
9190 as_dirs=
9191 while :; do
9192 case $as_dir in #(
9193 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9194 *) as_qdir=$as_dir;;
9195 esac
9196 as_dirs="'$as_qdir' $as_dirs"
9197 as_dir=`$as_dirname -- "$as_dir" ||
9198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9199 X"$as_dir" : 'X\(//\)[^/]' \| \
9200 X"$as_dir" : 'X\(//\)$' \| \
9201 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9202 $as_echo X"$as_dir" |
9203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9204 s//\1/
9205 q
9206 }
9207 /^X\(\/\/\)[^/].*/{
9208 s//\1/
9209 q
9210 }
9211 /^X\(\/\/\)$/{
9212 s//\1/
9213 q
9214 }
9215 /^X\(\/\).*/{
9216 s//\1/
9217 q
9218 }
9219 s/.*/./; q'`
9220 test -d "$as_dir" && break
9221 done
9222 test -z "$as_dirs" || eval "mkdir $as_dirs"
9223 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9224
9225
9226 } # as_fn_mkdir_p
9227 if mkdir -p . 2>/dev/null; then
9228 as_mkdir_p='mkdir -p "$as_dir"'
9229 else
9230 test -d ./-p && rmdir ./-p
9231 as_mkdir_p=false
9232 fi
9233
9234
9235 # as_fn_executable_p FILE
9236 # -----------------------
9237 # Test if FILE is an executable regular file.
9238 as_fn_executable_p ()
9239 {
9240 test -f "$1" && test -x "$1"
9241 } # as_fn_executable_p
9242 as_test_x='test -x'
9243 as_executable_p=as_fn_executable_p
9244
9245 # Sed expression to map a string onto a valid CPP name.
9246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9247
9248 # Sed expression to map a string onto a valid variable name.
9249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9250
9251
9252 exec 6>&1
9253 ## ----------------------------------- ##
9254 ## Main body of $CONFIG_STATUS script. ##
9255 ## ----------------------------------- ##
9256 _ASEOF
9257 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9258
9259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9260 # Save the log message, to keep $0 and so on meaningful, and to
9261 # report actual input values of CONFIG_FILES etc. instead of their
9262 # values after options handling.
9263 ac_log="
9264 This file was extended by $as_me, which was
9265 generated by GNU Autoconf 2.69. Invocation command line was
9266
9267 CONFIG_FILES = $CONFIG_FILES
9268 CONFIG_HEADERS = $CONFIG_HEADERS
9269 CONFIG_LINKS = $CONFIG_LINKS
9270 CONFIG_COMMANDS = $CONFIG_COMMANDS
9271 $ $0 $@
9272
9273 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9274 "
9275
9276 _ACEOF
9277
9278 case $ac_config_files in *"
9279 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9280 esac
9281
9282 case $ac_config_headers in *"
9283 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9284 esac
9285
9286
9287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9288 # Files that config.status was made for.
9289 config_files="$ac_config_files"
9290 config_headers="$ac_config_headers"
9291 config_commands="$ac_config_commands"
9292
9293 _ACEOF
9294
9295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9296 ac_cs_usage="\
9297 \`$as_me' instantiates files and other configuration actions
9298 from templates according to the current configuration. Unless the files
9299 and actions are specified as TAGs, all are instantiated by default.
9300
9301 Usage: $0 [OPTION]... [TAG]...
9302
9303 -h, --help print this help, then exit
9304 -V, --version print version number and configuration settings, then exit
9305 --config print configuration, then exit
9306 -q, --quiet, --silent
9307 do not print progress messages
9308 -d, --debug don't remove temporary files
9309 --recheck update $as_me by reconfiguring in the same conditions
9310 --file=FILE[:TEMPLATE]
9311 instantiate the configuration file FILE
9312 --header=FILE[:TEMPLATE]
9313 instantiate the configuration header FILE
9314
9315 Configuration files:
9316 $config_files
9317
9318 Configuration headers:
9319 $config_headers
9320
9321 Configuration commands:
9322 $config_commands
9323
9324 Report bugs to the package provider."
9325
9326 _ACEOF
9327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9328 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9329 ac_cs_version="\\
9330 config.status
9331 configured by $0, generated by GNU Autoconf 2.69,
9332 with options \\"\$ac_cs_config\\"
9333
9334 Copyright (C) 2012 Free Software Foundation, Inc.
9335 This config.status script is free software; the Free Software Foundation
9336 gives unlimited permission to copy, distribute and modify it."
9337
9338 ac_pwd='$ac_pwd'
9339 srcdir='$srcdir'
9340 INSTALL='$INSTALL'
9341 MKDIR_P='$MKDIR_P'
9342 AWK='$AWK'
9343 test -n "\$AWK" || AWK=awk
9344 _ACEOF
9345
9346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9347 # The default lists apply if the user does not specify any file.
9348 ac_need_defaults=:
9349 while test $# != 0
9350 do
9351 case $1 in
9352 --*=?*)
9353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9355 ac_shift=:
9356 ;;
9357 --*=)
9358 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9359 ac_optarg=
9360 ac_shift=:
9361 ;;
9362 *)
9363 ac_option=$1
9364 ac_optarg=$2
9365 ac_shift=shift
9366 ;;
9367 esac
9368
9369 case $ac_option in
9370 # Handling of the options.
9371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9372 ac_cs_recheck=: ;;
9373 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9374 $as_echo "$ac_cs_version"; exit ;;
9375 --config | --confi | --conf | --con | --co | --c )
9376 $as_echo "$ac_cs_config"; exit ;;
9377 --debug | --debu | --deb | --de | --d | -d )
9378 debug=: ;;
9379 --file | --fil | --fi | --f )
9380 $ac_shift
9381 case $ac_optarg in
9382 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9383 '') as_fn_error $? "missing file argument" ;;
9384 esac
9385 as_fn_append CONFIG_FILES " '$ac_optarg'"
9386 ac_need_defaults=false;;
9387 --header | --heade | --head | --hea )
9388 $ac_shift
9389 case $ac_optarg in
9390 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9391 esac
9392 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9393 ac_need_defaults=false;;
9394 --he | --h)
9395 # Conflict between --help and --header
9396 as_fn_error $? "ambiguous option: \`$1'
9397 Try \`$0 --help' for more information.";;
9398 --help | --hel | -h )
9399 $as_echo "$ac_cs_usage"; exit ;;
9400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9401 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9402 ac_cs_silent=: ;;
9403
9404 # This is an error.
9405 -*) as_fn_error $? "unrecognized option: \`$1'
9406 Try \`$0 --help' for more information." ;;
9407
9408 *) as_fn_append ac_config_targets " $1"
9409 ac_need_defaults=false ;;
9410
9411 esac
9412 shift
9413 done
9414
9415 ac_configure_extra_args=
9416
9417 if $ac_cs_silent; then
9418 exec 6>/dev/null
9419 ac_configure_extra_args="$ac_configure_extra_args --silent"
9420 fi
9421
9422 _ACEOF
9423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9424 if \$ac_cs_recheck; then
9425 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9426 shift
9427 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9428 CONFIG_SHELL='$SHELL'
9429 export CONFIG_SHELL
9430 exec "\$@"
9431 fi
9432
9433 _ACEOF
9434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9435 exec 5>>config.log
9436 {
9437 echo
9438 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9439 ## Running $as_me. ##
9440 _ASBOX
9441 $as_echo "$ac_log"
9442 } >&5
9443
9444 _ACEOF
9445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9446 #
9447 # INIT-COMMANDS
9448 #
9449 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9450 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9451 # from automake.
9452 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9453 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9454 LINGUAS="${LINGUAS-%UNSET%}"
9455
9456 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9457
9458 _ACEOF
9459
9460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9461
9462 # Handling of arguments.
9463 for ac_config_target in $ac_config_targets
9464 do
9465 case $ac_config_target in
9466 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9467 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9470 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9471 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9472 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9473 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9474 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9475
9476 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9477 esac
9478 done
9479
9480
9481 # If the user did not use the arguments to specify the items to instantiate,
9482 # then the envvar interface is used. Set only those that are not.
9483 # We use the long form for the default assignment because of an extremely
9484 # bizarre bug on SunOS 4.1.3.
9485 if $ac_need_defaults; then
9486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9489 fi
9490
9491 # Have a temporary directory for convenience. Make it in the build tree
9492 # simply because there is no reason against having it here, and in addition,
9493 # creating and moving files from /tmp can sometimes cause problems.
9494 # Hook for its removal unless debugging.
9495 # Note that there is a small window in which the directory will not be cleaned:
9496 # after its creation but before its name has been assigned to `$tmp'.
9497 $debug ||
9498 {
9499 tmp= ac_tmp=
9500 trap 'exit_status=$?
9501 : "${ac_tmp:=$tmp}"
9502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9503 ' 0
9504 trap 'as_fn_exit 1' 1 2 13 15
9505 }
9506 # Create a (secure) tmp directory for tmp files.
9507
9508 {
9509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9510 test -d "$tmp"
9511 } ||
9512 {
9513 tmp=./conf$$-$RANDOM
9514 (umask 077 && mkdir "$tmp")
9515 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9516 ac_tmp=$tmp
9517
9518 # Set up the scripts for CONFIG_FILES section.
9519 # No need to generate them if there are no CONFIG_FILES.
9520 # This happens for instance with `./config.status config.h'.
9521 if test -n "$CONFIG_FILES"; then
9522
9523
9524 ac_cr=`echo X | tr X '\015'`
9525 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9526 # But we know of no other shell where ac_cr would be empty at this
9527 # point, so we can use a bashism as a fallback.
9528 if test "x$ac_cr" = x; then
9529 eval ac_cr=\$\'\\r\'
9530 fi
9531 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9532 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9533 ac_cs_awk_cr='\\r'
9534 else
9535 ac_cs_awk_cr=$ac_cr
9536 fi
9537
9538 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9539 _ACEOF
9540
9541
9542 {
9543 echo "cat >conf$$subs.awk <<_ACEOF" &&
9544 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9545 echo "_ACEOF"
9546 } >conf$$subs.sh ||
9547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9548 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9549 ac_delim='%!_!# '
9550 for ac_last_try in false false false false false :; do
9551 . ./conf$$subs.sh ||
9552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9553
9554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9555 if test $ac_delim_n = $ac_delim_num; then
9556 break
9557 elif $ac_last_try; then
9558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9559 else
9560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9561 fi
9562 done
9563 rm -f conf$$subs.sh
9564
9565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9566 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9567 _ACEOF
9568 sed -n '
9569 h
9570 s/^/S["/; s/!.*/"]=/
9571 p
9572 g
9573 s/^[^!]*!//
9574 :repl
9575 t repl
9576 s/'"$ac_delim"'$//
9577 t delim
9578 :nl
9579 h
9580 s/\(.\{148\}\)..*/\1/
9581 t more1
9582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9583 p
9584 n
9585 b repl
9586 :more1
9587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9588 p
9589 g
9590 s/.\{148\}//
9591 t nl
9592 :delim
9593 h
9594 s/\(.\{148\}\)..*/\1/
9595 t more2
9596 s/["\\]/\\&/g; s/^/"/; s/$/"/
9597 p
9598 b
9599 :more2
9600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9601 p
9602 g
9603 s/.\{148\}//
9604 t delim
9605 ' <conf$$subs.awk | sed '
9606 /^[^""]/{
9607 N
9608 s/\n//
9609 }
9610 ' >>$CONFIG_STATUS || ac_write_fail=1
9611 rm -f conf$$subs.awk
9612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9613 _ACAWK
9614 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9615 for (key in S) S_is_set[key] = 1
9616 FS = ""
9617
9618 }
9619 {
9620 line = $ 0
9621 nfields = split(line, field, "@")
9622 substed = 0
9623 len = length(field[1])
9624 for (i = 2; i < nfields; i++) {
9625 key = field[i]
9626 keylen = length(key)
9627 if (S_is_set[key]) {
9628 value = S[key]
9629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9630 len += length(value) + length(field[++i])
9631 substed = 1
9632 } else
9633 len += 1 + keylen
9634 }
9635
9636 print line
9637 }
9638
9639 _ACAWK
9640 _ACEOF
9641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9644 else
9645 cat
9646 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9647 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9648 _ACEOF
9649
9650 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9651 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9652 # trailing colons and then remove the whole line if VPATH becomes empty
9653 # (actually we leave an empty line to preserve line numbers).
9654 if test "x$srcdir" = x.; then
9655 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9656 h
9657 s///
9658 s/^/:/
9659 s/[ ]*$/:/
9660 s/:\$(srcdir):/:/g
9661 s/:\${srcdir}:/:/g
9662 s/:@srcdir@:/:/g
9663 s/^:*//
9664 s/:*$//
9665 x
9666 s/\(=[ ]*\).*/\1/
9667 G
9668 s/\n//
9669 s/^[^=]*=[ ]*$//
9670 }'
9671 fi
9672
9673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9674 fi # test -n "$CONFIG_FILES"
9675
9676 # Set up the scripts for CONFIG_HEADERS section.
9677 # No need to generate them if there are no CONFIG_HEADERS.
9678 # This happens for instance with `./config.status Makefile'.
9679 if test -n "$CONFIG_HEADERS"; then
9680 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9681 BEGIN {
9682 _ACEOF
9683
9684 # Transform confdefs.h into an awk script `defines.awk', embedded as
9685 # here-document in config.status, that substitutes the proper values into
9686 # config.h.in to produce config.h.
9687
9688 # Create a delimiter string that does not exist in confdefs.h, to ease
9689 # handling of long lines.
9690 ac_delim='%!_!# '
9691 for ac_last_try in false false :; do
9692 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9693 if test -z "$ac_tt"; then
9694 break
9695 elif $ac_last_try; then
9696 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9697 else
9698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9699 fi
9700 done
9701
9702 # For the awk script, D is an array of macro values keyed by name,
9703 # likewise P contains macro parameters if any. Preserve backslash
9704 # newline sequences.
9705
9706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9707 sed -n '
9708 s/.\{148\}/&'"$ac_delim"'/g
9709 t rset
9710 :rset
9711 s/^[ ]*#[ ]*define[ ][ ]*/ /
9712 t def
9713 d
9714 :def
9715 s/\\$//
9716 t bsnl
9717 s/["\\]/\\&/g
9718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9719 D["\1"]=" \3"/p
9720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9721 d
9722 :bsnl
9723 s/["\\]/\\&/g
9724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9725 D["\1"]=" \3\\\\\\n"\\/p
9726 t cont
9727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9728 t cont
9729 d
9730 :cont
9731 n
9732 s/.\{148\}/&'"$ac_delim"'/g
9733 t clear
9734 :clear
9735 s/\\$//
9736 t bsnlc
9737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9738 d
9739 :bsnlc
9740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9741 b cont
9742 ' <confdefs.h | sed '
9743 s/'"$ac_delim"'/"\\\
9744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9745
9746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9747 for (key in D) D_is_set[key] = 1
9748 FS = ""
9749 }
9750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9751 line = \$ 0
9752 split(line, arg, " ")
9753 if (arg[1] == "#") {
9754 defundef = arg[2]
9755 mac1 = arg[3]
9756 } else {
9757 defundef = substr(arg[1], 2)
9758 mac1 = arg[2]
9759 }
9760 split(mac1, mac2, "(") #)
9761 macro = mac2[1]
9762 prefix = substr(line, 1, index(line, defundef) - 1)
9763 if (D_is_set[macro]) {
9764 # Preserve the white space surrounding the "#".
9765 print prefix "define", macro P[macro] D[macro]
9766 next
9767 } else {
9768 # Replace #undef with comments. This is necessary, for example,
9769 # in the case of _POSIX_SOURCE, which is predefined and required
9770 # on some systems where configure will not decide to define it.
9771 if (defundef == "undef") {
9772 print "/*", prefix defundef, macro, "*/"
9773 next
9774 }
9775 }
9776 }
9777 { print }
9778 _ACAWK
9779 _ACEOF
9780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9781 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9782 fi # test -n "$CONFIG_HEADERS"
9783
9784
9785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9786 shift
9787 for ac_tag
9788 do
9789 case $ac_tag in
9790 :[FHLC]) ac_mode=$ac_tag; continue;;
9791 esac
9792 case $ac_mode$ac_tag in
9793 :[FHL]*:*);;
9794 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9795 :[FH]-) ac_tag=-:-;;
9796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9797 esac
9798 ac_save_IFS=$IFS
9799 IFS=:
9800 set x $ac_tag
9801 IFS=$ac_save_IFS
9802 shift
9803 ac_file=$1
9804 shift
9805
9806 case $ac_mode in
9807 :L) ac_source=$1;;
9808 :[FH])
9809 ac_file_inputs=
9810 for ac_f
9811 do
9812 case $ac_f in
9813 -) ac_f="$ac_tmp/stdin";;
9814 *) # Look for the file first in the build tree, then in the source tree
9815 # (if the path is not absolute). The absolute path cannot be DOS-style,
9816 # because $ac_f cannot contain `:'.
9817 test -f "$ac_f" ||
9818 case $ac_f in
9819 [\\/$]*) false;;
9820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9821 esac ||
9822 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9823 esac
9824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9825 as_fn_append ac_file_inputs " '$ac_f'"
9826 done
9827
9828 # Let's still pretend it is `configure' which instantiates (i.e., don't
9829 # use $as_me), people would be surprised to read:
9830 # /* config.h. Generated by config.status. */
9831 configure_input='Generated from '`
9832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9833 `' by configure.'
9834 if test x"$ac_file" != x-; then
9835 configure_input="$ac_file. $configure_input"
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9837 $as_echo "$as_me: creating $ac_file" >&6;}
9838 fi
9839 # Neutralize special characters interpreted by sed in replacement strings.
9840 case $configure_input in #(
9841 *\&* | *\|* | *\\* )
9842 ac_sed_conf_input=`$as_echo "$configure_input" |
9843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9844 *) ac_sed_conf_input=$configure_input;;
9845 esac
9846
9847 case $ac_tag in
9848 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9850 esac
9851 ;;
9852 esac
9853
9854 ac_dir=`$as_dirname -- "$ac_file" ||
9855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9856 X"$ac_file" : 'X\(//\)[^/]' \| \
9857 X"$ac_file" : 'X\(//\)$' \| \
9858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9859 $as_echo X"$ac_file" |
9860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9861 s//\1/
9862 q
9863 }
9864 /^X\(\/\/\)[^/].*/{
9865 s//\1/
9866 q
9867 }
9868 /^X\(\/\/\)$/{
9869 s//\1/
9870 q
9871 }
9872 /^X\(\/\).*/{
9873 s//\1/
9874 q
9875 }
9876 s/.*/./; q'`
9877 as_dir="$ac_dir"; as_fn_mkdir_p
9878 ac_builddir=.
9879
9880 case "$ac_dir" in
9881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9882 *)
9883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9884 # A ".." for each directory in $ac_dir_suffix.
9885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9886 case $ac_top_builddir_sub in
9887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9889 esac ;;
9890 esac
9891 ac_abs_top_builddir=$ac_pwd
9892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9893 # for backward compatibility:
9894 ac_top_builddir=$ac_top_build_prefix
9895
9896 case $srcdir in
9897 .) # We are building in place.
9898 ac_srcdir=.
9899 ac_top_srcdir=$ac_top_builddir_sub
9900 ac_abs_top_srcdir=$ac_pwd ;;
9901 [\\/]* | ?:[\\/]* ) # Absolute name.
9902 ac_srcdir=$srcdir$ac_dir_suffix;
9903 ac_top_srcdir=$srcdir
9904 ac_abs_top_srcdir=$srcdir ;;
9905 *) # Relative name.
9906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9907 ac_top_srcdir=$ac_top_build_prefix$srcdir
9908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9909 esac
9910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9911
9912
9913 case $ac_mode in
9914 :F)
9915 #
9916 # CONFIG_FILE
9917 #
9918
9919 case $INSTALL in
9920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9922 esac
9923 ac_MKDIR_P=$MKDIR_P
9924 case $MKDIR_P in
9925 [\\/$]* | ?:[\\/]* ) ;;
9926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9927 esac
9928 _ACEOF
9929
9930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9931 # If the template does not know about datarootdir, expand it.
9932 # FIXME: This hack should be removed a few years after 2.60.
9933 ac_datarootdir_hack=; ac_datarootdir_seen=
9934 ac_sed_dataroot='
9935 /datarootdir/ {
9936 p
9937 q
9938 }
9939 /@datadir@/p
9940 /@docdir@/p
9941 /@infodir@/p
9942 /@localedir@/p
9943 /@mandir@/p'
9944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9945 *datarootdir*) ac_datarootdir_seen=yes;;
9946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9949 _ACEOF
9950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9951 ac_datarootdir_hack='
9952 s&@datadir@&$datadir&g
9953 s&@docdir@&$docdir&g
9954 s&@infodir@&$infodir&g
9955 s&@localedir@&$localedir&g
9956 s&@mandir@&$mandir&g
9957 s&\\\${datarootdir}&$datarootdir&g' ;;
9958 esac
9959 _ACEOF
9960
9961 # Neutralize VPATH when `$srcdir' = `.'.
9962 # Shell code in configure.ac might set extrasub.
9963 # FIXME: do we really want to maintain this feature?
9964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9965 ac_sed_extra="$ac_vpsub
9966 $extrasub
9967 _ACEOF
9968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9969 :t
9970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9971 s|@configure_input@|$ac_sed_conf_input|;t t
9972 s&@top_builddir@&$ac_top_builddir_sub&;t t
9973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9974 s&@srcdir@&$ac_srcdir&;t t
9975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9976 s&@top_srcdir@&$ac_top_srcdir&;t t
9977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9978 s&@builddir@&$ac_builddir&;t t
9979 s&@abs_builddir@&$ac_abs_builddir&;t t
9980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9981 s&@INSTALL@&$ac_INSTALL&;t t
9982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9983 $ac_datarootdir_hack
9984 "
9985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9987
9988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9993 which seems to be undefined. Please make sure it is defined" >&5
9994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9995 which seems to be undefined. Please make sure it is defined" >&2;}
9996
9997 rm -f "$ac_tmp/stdin"
9998 case $ac_file in
9999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10001 esac \
10002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10003 ;;
10004 :H)
10005 #
10006 # CONFIG_HEADER
10007 #
10008 if test x"$ac_file" != x-; then
10009 {
10010 $as_echo "/* $configure_input */" \
10011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10012 } >"$ac_tmp/config.h" \
10013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10017 else
10018 rm -f "$ac_file"
10019 mv "$ac_tmp/config.h" "$ac_file" \
10020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10021 fi
10022 else
10023 $as_echo "/* $configure_input */" \
10024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10025 || as_fn_error $? "could not create -" "$LINENO" 5
10026 fi
10027 # Compute "$ac_file"'s index in $config_headers.
10028 _am_arg="$ac_file"
10029 _am_stamp_count=1
10030 for _am_header in $config_headers :; do
10031 case $_am_header in
10032 $_am_arg | $_am_arg:* )
10033 break ;;
10034 * )
10035 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10036 esac
10037 done
10038 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10039 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10040 X"$_am_arg" : 'X\(//\)[^/]' \| \
10041 X"$_am_arg" : 'X\(//\)$' \| \
10042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10043 $as_echo X"$_am_arg" |
10044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10045 s//\1/
10046 q
10047 }
10048 /^X\(\/\/\)[^/].*/{
10049 s//\1/
10050 q
10051 }
10052 /^X\(\/\/\)$/{
10053 s//\1/
10054 q
10055 }
10056 /^X\(\/\).*/{
10057 s//\1/
10058 q
10059 }
10060 s/.*/./; q'`/stamp-h$_am_stamp_count
10061 ;;
10062
10063 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10064 $as_echo "$as_me: executing $ac_file commands" >&6;}
10065 ;;
10066 esac
10067
10068
10069 case $ac_file$ac_mode in
10070 "default-1":C)
10071 for ac_file in $CONFIG_FILES; do
10072 # Support "outfile[:infile[:infile...]]"
10073 case "$ac_file" in
10074 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10075 esac
10076 # PO directories have a Makefile.in generated from Makefile.in.in.
10077 case "$ac_file" in */Makefile.in)
10078 # Adjust a relative srcdir.
10079 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10080 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10081 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10082 # In autoconf-2.13 it is called $ac_given_srcdir.
10083 # In autoconf-2.50 it is called $srcdir.
10084 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10085 case "$ac_given_srcdir" in
10086 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10087 /*) top_srcdir="$ac_given_srcdir" ;;
10088 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10089 esac
10090 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10091 rm -f "$ac_dir/POTFILES"
10092 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10093 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10094 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10095 # on $ac_dir but don't depend on user-specified configuration
10096 # parameters.
10097 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10098 # The LINGUAS file contains the set of available languages.
10099 if test -n "$ALL_LINGUAS"; then
10100 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10101 fi
10102 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10103 # Hide the ALL_LINGUAS assigment from automake.
10104 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10105 fi
10106 case "$ac_given_srcdir" in
10107 .) srcdirpre= ;;
10108 *) srcdirpre='$(srcdir)/' ;;
10109 esac
10110 POFILES=
10111 GMOFILES=
10112 UPDATEPOFILES=
10113 DUMMYPOFILES=
10114 for lang in $ALL_LINGUAS; do
10115 POFILES="$POFILES $srcdirpre$lang.po"
10116 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10117 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10118 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10119 done
10120 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10121 # environment variable.
10122 INST_LINGUAS=
10123 if test -n "$ALL_LINGUAS"; then
10124 for presentlang in $ALL_LINGUAS; do
10125 useit=no
10126 if test "%UNSET%" != "$LINGUAS"; then
10127 desiredlanguages="$LINGUAS"
10128 else
10129 desiredlanguages="$ALL_LINGUAS"
10130 fi
10131 for desiredlang in $desiredlanguages; do
10132 # Use the presentlang catalog if desiredlang is
10133 # a. equal to presentlang, or
10134 # b. a variant of presentlang (because in this case,
10135 # presentlang can be used as a fallback for messages
10136 # which are not translated in the desiredlang catalog).
10137 case "$desiredlang" in
10138 "$presentlang"*) useit=yes;;
10139 esac
10140 done
10141 if test $useit = yes; then
10142 INST_LINGUAS="$INST_LINGUAS $presentlang"
10143 fi
10144 done
10145 fi
10146 CATALOGS=
10147 if test -n "$INST_LINGUAS"; then
10148 for lang in $INST_LINGUAS; do
10149 CATALOGS="$CATALOGS $lang.gmo"
10150 done
10151 fi
10152 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10153 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10154 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10155 if test -f "$f"; then
10156 case "$f" in
10157 *.orig | *.bak | *~) ;;
10158 *) cat "$f" >> "$ac_dir/Makefile" ;;
10159 esac
10160 fi
10161 done
10162 fi
10163 ;;
10164 esac
10165 done ;;
10166 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10167 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10168 # are listed without --file. Let's play safe and only enable the eval
10169 # if we detect the quoting.
10170 case $CONFIG_FILES in
10171 *\'*) eval set x "$CONFIG_FILES" ;;
10172 *) set x $CONFIG_FILES ;;
10173 esac
10174 shift
10175 for mf
10176 do
10177 # Strip MF so we end up with the name of the file.
10178 mf=`echo "$mf" | sed -e 's/:.*$//'`
10179 # Check whether this is an Automake generated Makefile or not.
10180 # We used to match only the files named `Makefile.in', but
10181 # some people rename them; so instead we look at the file content.
10182 # Grep'ing the first line is not enough: some people post-process
10183 # each Makefile.in and add a new line on top of each file to say so.
10184 # Grep'ing the whole file is not good either: AIX grep has a line
10185 # limit of 2048, but all sed's we know have understand at least 4000.
10186 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10187 dirpart=`$as_dirname -- "$mf" ||
10188 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10189 X"$mf" : 'X\(//\)[^/]' \| \
10190 X"$mf" : 'X\(//\)$' \| \
10191 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10192 $as_echo X"$mf" |
10193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10194 s//\1/
10195 q
10196 }
10197 /^X\(\/\/\)[^/].*/{
10198 s//\1/
10199 q
10200 }
10201 /^X\(\/\/\)$/{
10202 s//\1/
10203 q
10204 }
10205 /^X\(\/\).*/{
10206 s//\1/
10207 q
10208 }
10209 s/.*/./; q'`
10210 else
10211 continue
10212 fi
10213 # Extract the definition of DEPDIR, am__include, and am__quote
10214 # from the Makefile without running `make'.
10215 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10216 test -z "$DEPDIR" && continue
10217 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10218 test -z "am__include" && continue
10219 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10220 # When using ansi2knr, U may be empty or an underscore; expand it
10221 U=`sed -n 's/^U = //p' < "$mf"`
10222 # Find all dependency output files, they are included files with
10223 # $(DEPDIR) in their names. We invoke sed twice because it is the
10224 # simplest approach to changing $(DEPDIR) to its actual value in the
10225 # expansion.
10226 for file in `sed -n "
10227 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10228 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10229 # Make sure the directory exists.
10230 test -f "$dirpart/$file" && continue
10231 fdir=`$as_dirname -- "$file" ||
10232 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10233 X"$file" : 'X\(//\)[^/]' \| \
10234 X"$file" : 'X\(//\)$' \| \
10235 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10236 $as_echo X"$file" |
10237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10238 s//\1/
10239 q
10240 }
10241 /^X\(\/\/\)[^/].*/{
10242 s//\1/
10243 q
10244 }
10245 /^X\(\/\/\)$/{
10246 s//\1/
10247 q
10248 }
10249 /^X\(\/\).*/{
10250 s//\1/
10251 q
10252 }
10253 s/.*/./; q'`
10254 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10255 # echo "creating $dirpart/$file"
10256 echo '# dummy' > "$dirpart/$file"
10257 done
10258 done
10259 }
10260 ;;
10261
10262 esac
10263 done # for ac_tag
10264
10265
10266 as_fn_exit 0
10267 _ACEOF
10268 ac_clean_files=$ac_clean_files_save
10269
10270 test $ac_write_fail = 0 ||
10271 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10272
10273
10274 # configure is writing to config.log, and then calls config.status.
10275 # config.status does its own redirection, appending to config.log.
10276 # Unfortunately, on DOS this fails, as config.log is still kept open
10277 # by configure, so config.status won't be able to write to it; its
10278 # output is simply discarded. So we exec the FD to /dev/null,
10279 # effectively closing config.log, so it can be properly (re)opened and
10280 # appended to by config.status. When coming back to configure, we
10281 # need to make the FD available again.
10282 if test "$no_create" != yes; then
10283 ac_cs_success=:
10284 ac_config_status_args=
10285 test "$silent" = yes &&
10286 ac_config_status_args="$ac_config_status_args --quiet"
10287 exec 5>/dev/null
10288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10289 exec 5>>config.log
10290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10291 # would make configure fail if this is the last instruction.
10292 $ac_cs_success || as_fn_exit 1
10293 fi
10294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10296 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10297 fi
10298
10299
10300 echo
10301 echo "***"
10302 echo "*** Configuration Summary"
10303 echo "***"
10304 echo "*** Kernel Iface: $IFTYPE/$IFSUBTYPE"
10305 echo "*** RSA size: $RSA"
10306 echo "*** Cipher used: $CIPHER"
10307 echo "*** Digest used: $DIGEST"
10308 echo "*** Authdigest: $AUTH"
10309 echo "*** HMAC length: $HMAC"
10310 echo "*** RAND used: $RAND"
10311 echo "*** Max. MTU: $MTU"
10312
10313 echo "***"
10314 echo "*** Enable options:"
10315 grep ENABLE_ config.h | sed -e 's/^/*** /'
10316
10317 if test "$HMAC" -lt 12; then
10318 echo "***"
10319 echo "*** WARNING: The hmac length you have chosen ($HMAC) is quite insecure"
10320 fi
10321
10322 if test "$RAND" -lt 8; then
10323 echo "***"
10324 echo "*** WARNING: The random prefix you have chosen ($RAND) is probably insecure"
10325 fi
10326
10327 echo "***"
10328 echo
10329
10330