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