ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
Revision: 1.55
Committed: Wed Jun 18 20:40:51 2014 UTC (9 years, 10 months ago) by root
Branch: MAIN
Changes since 1.54: +224 -384 lines
Log Message:
*** empty log message ***

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