Debian Codegraph @

nbase/configure

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